interface OrProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3.CfnStorageLensGroup.OrProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnStorageLensGroup_OrProperty |
![]() | software.amazon.awscdk.services.s3.CfnStorageLensGroup.OrProperty |
![]() | aws_cdk.aws_s3.CfnStorageLensGroup.OrProperty |
![]() | aws-cdk-lib » aws_s3 » CfnStorageLensGroup » OrProperty |
This resource contains the Or
logical operator, which allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data.
Objects can match any of the listed filter conditions that are joined by the Or
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 orProperty: s3.CfnStorageLensGroup.OrProperty = {
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 the list of suffixes. |
match | IResolvable | IResolvable | Cfn [] | This property contains the list of S3 object tags. |
match | IResolvable | Match | This property filters objects that match the specified object age range. |
match | IResolvable | Match | This property contains the BytesGreaterThan and BytesLessThan values 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 the 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 S3 object tags.
At least one object tag must be specified. Up to 10 object tags are allowed.
matchObjectAge?
Type:
IResolvable
|
Match
(optional)
This property filters objects that match the specified object age range.
matchObjectSize?
Type:
IResolvable
|
Match
(optional)
This property contains the BytesGreaterThan
and BytesLessThan
values to define the object size range (minimum and maximum number of Bytes).