

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::S3::StorageLensGroup MatchObjectSize
<a name="aws-properties-s3-storagelensgroup-matchobjectsize"></a>

This resource filters objects that match the specified object size range.

## Syntax
<a name="aws-properties-s3-storagelensgroup-matchobjectsize-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-s3-storagelensgroup-matchobjectsize-syntax.json"></a>

```
{
  "[BytesGreaterThan](#cfn-s3-storagelensgroup-matchobjectsize-bytesgreaterthan)" : {{Integer}},
  "[BytesLessThan](#cfn-s3-storagelensgroup-matchobjectsize-byteslessthan)" : {{Integer}}
}
```

### YAML
<a name="aws-properties-s3-storagelensgroup-matchobjectsize-syntax.yaml"></a>

```
  [BytesGreaterThan](#cfn-s3-storagelensgroup-matchobjectsize-bytesgreaterthan): {{Integer}}
  [BytesLessThan](#cfn-s3-storagelensgroup-matchobjectsize-byteslessthan): {{Integer}}
```

## Properties
<a name="aws-properties-s3-storagelensgroup-matchobjectsize-properties"></a>

`BytesGreaterThan`  <a name="cfn-s3-storagelensgroup-matchobjectsize-bytesgreaterthan"></a>
This property specifies the minimum object size in bytes. The value must be a positive number, greater than 0 and less than 5 TB.  
*Required*: No  
*Type*: Integer  
*Minimum*: `1`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`BytesLessThan`  <a name="cfn-s3-storagelensgroup-matchobjectsize-byteslessthan"></a>
This property specifies the maximum object size in bytes. The value must be a positive number, greater than the minimum object size and less than 5 TB.  
*Required*: No  
*Type*: Integer  
*Minimum*: `1`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)