# MatchObjectSizeProperty

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

- Source: Generated at build time
- Type last changed: v2.109.0 · 16 Nov 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const matchObjectSizeProperty: s3.CfnStorageLensGroup.MatchObjectSizeProperty = {
  bytesGreaterThan: 123,
  bytesLessThan: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3

match_object_size_property = s3.CfnStorageLensGroup.MatchObjectSizeProperty(
    bytes_greater_than=123,
    bytes_less_than=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;

MatchObjectSizeProperty matchObjectSizeProperty = MatchObjectSizeProperty.builder()
        .bytesGreaterThan(123)
        .bytesLessThan(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;

var matchObjectSizeProperty = new MatchObjectSizeProperty {
    BytesGreaterThan = 123,
    BytesLessThan = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

matchObjectSizeProperty := &MatchObjectSizeProperty{
	BytesGreaterThan: jsii.Number(123),
	BytesLessThan: jsii.Number(123),
}
```

## Properties

- `bytesGreaterThan`: number — This property specifies the minimum object size in bytes.

  The value must be a positive number, greater than 0 and less than 5 TB.

- `bytesLessThan`: number — 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.
