interface AndProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3.CfnStorageLensGroup.AndProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnStorageLensGroup_AndProperty |
Java | software.amazon.awscdk.services.s3.CfnStorageLensGroup.AndProperty |
Python | aws_cdk.aws_s3.CfnStorageLensGroup.AndProperty |
TypeScript | aws-cdk-lib » aws_s3 » CfnStorageLensGroup » AndProperty |
This resource is a logical operator that allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data.
Objects must match all of the listed filter conditions that are joined by the And logical operator. Only one of each filter condition is allowed.
Example
// 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 andProperty: s3.CfnStorageLensGroup.AndProperty = {
matchAnyPrefix: ['matchAnyPrefix'],
matchAnySuffix: ['matchAnySuffix'],
matchAnyTag: [{
key: 'key',
value: 'value',
}],
matchObjectAge: {
daysGreaterThan: 123,
daysLessThan: 123,
},
matchObjectSize: {
bytesGreaterThan: 123,
bytesLessThan: 123,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| match | string[] | This property contains a list of prefixes. |
| match | string[] | This property contains a list of suffixes. |
| match | IResolvable | (IResolvable | Cfn)[] | This property contains the list of object tags. |
| match | IResolvable | Match | This property contains DaysGreaterThan and DaysLessThan properties to define the object age range (minimum and maximum number of days). |
| match | IResolvable | Match | This property contains BytesGreaterThan and BytesLessThan to define the object size range (minimum and maximum number of Bytes). |
matchAnyPrefix?
Type:
string[]
(optional)
This property contains a list of prefixes.
At least one prefix must be specified. Up to 10 prefixes are allowed.
matchAnySuffix?
Type:
string[]
(optional)
This property contains a list of suffixes.
At least one suffix must be specified. Up to 10 suffixes are allowed.
matchAnyTag?
Type:
IResolvable | (IResolvable | Cfn)[]
(optional)
This property contains the list of object tags.
At least one object tag must be specified. Up to 10 object tags are allowed.
matchObjectAge?
Type:
IResolvable | Match
(optional)
This property contains DaysGreaterThan and DaysLessThan properties to define the object age range (minimum and maximum number of days).
matchObjectSize?
Type:
IResolvable | Match
(optional)
This property contains BytesGreaterThan and BytesLessThan to define the object size range (minimum and maximum number of Bytes).

.NET
Go
Java
Python
TypeScript