CfnStorageLensGroupPropsMixin
- class aws_cdk.mixins_preview.aws_s3.mixins.CfnStorageLensGroupPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::S3::StorageLensGroupresource creates an S3 Storage Lens group.A Storage Lens group is a custom grouping of objects that include filters for prefixes, suffixes, object tags, object size, or object age. You can create an S3 Storage Lens group that includes a single filter or multiple filter conditions. To specify multiple filter conditions, you use
ANDorORlogical operators. For more information about S3 Storage Lens groups, see Working with S3 Storage Lens groups .- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-storagelensgroup.html
- CloudformationResource:
AWS::S3::StorageLensGroup
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins cfn_storage_lens_group_props_mixin = s3_mixins.CfnStorageLensGroupPropsMixin(s3_mixins.CfnStorageLensGroupMixinProps( filter=s3_mixins.CfnStorageLensGroupPropsMixin.FilterProperty( and=s3_mixins.CfnStorageLensGroupPropsMixin.AndProperty( match_any_prefix=["matchAnyPrefix"], match_any_suffix=["matchAnySuffix"], match_any_tag=[CfnTag( key="key", value="value" )], match_object_age=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty( days_greater_than=123, days_less_than=123 ), match_object_size=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty( bytes_greater_than=123, bytes_less_than=123 ) ), match_any_prefix=["matchAnyPrefix"], match_any_suffix=["matchAnySuffix"], match_any_tag=[CfnTag( key="key", value="value" )], match_object_age=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty( days_greater_than=123, days_less_than=123 ), match_object_size=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty( bytes_greater_than=123, bytes_less_than=123 ), or=s3_mixins.CfnStorageLensGroupPropsMixin.OrProperty( match_any_prefix=["matchAnyPrefix"], match_any_suffix=["matchAnySuffix"], match_any_tag=[CfnTag( key="key", value="value" )], match_object_age=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty( days_greater_than=123, days_less_than=123 ), match_object_size=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty( bytes_greater_than=123, bytes_less_than=123 ) ) ), name="name", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::S3::StorageLensGroup.- Parameters:
props (
Union[CfnStorageLensGroupMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['filter', 'name', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AndProperty
- class CfnStorageLensGroupPropsMixin.AndProperty(*, match_any_prefix=None, match_any_suffix=None, match_any_tag=None, match_object_age=None, match_object_size=None)
Bases:
objectThis 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
Andlogical operator. Only one of each filter condition is allowed.- Parameters:
match_any_prefix (
Optional[Sequence[str]]) – This property contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.match_any_suffix (
Optional[Sequence[str]]) – This property contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.match_any_tag (
Union[IResolvable,Sequence[Union[IResolvable,CfnTag,Dict[str,Any]]],None]) – This property contains the list of object tags. At least one object tag must be specified. Up to 10 object tags are allowed.match_object_age (
Union[IResolvable,MatchObjectAgeProperty,Dict[str,Any],None]) – This property containsDaysGreaterThanandDaysLessThanproperties to define the object age range (minimum and maximum number of days).match_object_size (
Union[IResolvable,MatchObjectSizeProperty,Dict[str,Any],None]) – This property containsBytesGreaterThanandBytesLessThanto define the object size range (minimum and maximum number of Bytes).
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins and_property = s3_mixins.CfnStorageLensGroupPropsMixin.AndProperty( match_any_prefix=["matchAnyPrefix"], match_any_suffix=["matchAnySuffix"], match_any_tag=[CfnTag( key="key", value="value" )], match_object_age=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty( days_greater_than=123, days_less_than=123 ), match_object_size=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty( bytes_greater_than=123, bytes_less_than=123 ) )
Attributes
- match_any_prefix
This property contains a list of prefixes.
At least one prefix must be specified. Up to 10 prefixes are allowed.
- match_any_suffix
This property contains a list of suffixes.
At least one suffix must be specified. Up to 10 suffixes are allowed.
- match_any_tag
This property contains the list of object tags.
At least one object tag must be specified. Up to 10 object tags are allowed.
- match_object_age
This property contains
DaysGreaterThanandDaysLessThanproperties to define the object age range (minimum and maximum number of days).
- match_object_size
This property contains
BytesGreaterThanandBytesLessThanto define the object size range (minimum and maximum number of Bytes).
FilterProperty
- class CfnStorageLensGroupPropsMixin.FilterProperty(*, and_=None, match_any_prefix=None, match_any_suffix=None, match_any_tag=None, match_object_age=None, match_object_size=None, or_=None)
Bases:
objectThis resource sets the criteria for the Storage Lens group data that is displayed.
For multiple filter conditions, the
ANDorORlogical operator is used.- Parameters:
and – This property contains the
Andlogical operator, which 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 theAndlogical operator. Only one of each filter condition is allowed.match_any_prefix (
Optional[Sequence[str]]) – This property contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.match_any_suffix (
Optional[Sequence[str]]) – This property contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.match_any_tag (
Union[IResolvable,Sequence[Union[IResolvable,CfnTag,Dict[str,Any]]],None]) – This property contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.match_object_age (
Union[IResolvable,MatchObjectAgeProperty,Dict[str,Any],None]) – This property containsDaysGreaterThanandDaysLessThanto define the object age range (minimum and maximum number of days).match_object_size (
Union[IResolvable,MatchObjectSizeProperty,Dict[str,Any],None]) – This property containsBytesGreaterThanandBytesLessThanto define the object size range (minimum and maximum number of Bytes).or – This property contains the
Orlogical operator, which allows multiple filter conditions to be joined. Objects can match any of the listed filter conditions, which are joined by theOrlogical operator. Only one of each filter condition is allowed.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins filter_property = s3_mixins.CfnStorageLensGroupPropsMixin.FilterProperty( and=s3_mixins.CfnStorageLensGroupPropsMixin.AndProperty( match_any_prefix=["matchAnyPrefix"], match_any_suffix=["matchAnySuffix"], match_any_tag=[CfnTag( key="key", value="value" )], match_object_age=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty( days_greater_than=123, days_less_than=123 ), match_object_size=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty( bytes_greater_than=123, bytes_less_than=123 ) ), match_any_prefix=["matchAnyPrefix"], match_any_suffix=["matchAnySuffix"], match_any_tag=[CfnTag( key="key", value="value" )], match_object_age=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty( days_greater_than=123, days_less_than=123 ), match_object_size=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty( bytes_greater_than=123, bytes_less_than=123 ), or=s3_mixins.CfnStorageLensGroupPropsMixin.OrProperty( match_any_prefix=["matchAnyPrefix"], match_any_suffix=["matchAnySuffix"], match_any_tag=[CfnTag( key="key", value="value" )], match_object_age=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty( days_greater_than=123, days_less_than=123 ), match_object_size=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty( bytes_greater_than=123, bytes_less_than=123 ) ) )
Attributes
- and_
This property contains the
Andlogical operator, which 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
Andlogical operator. Only one of each filter condition is allowed.
- match_any_prefix
This property contains a list of prefixes.
At least one prefix must be specified. Up to 10 prefixes are allowed.
- match_any_suffix
This property contains a list of suffixes.
At least one suffix must be specified. Up to 10 suffixes are allowed.
- match_any_tag
This property contains the list of S3 object tags.
At least one object tag must be specified. Up to 10 object tags are allowed.
- match_object_age
This property contains
DaysGreaterThanandDaysLessThanto define the object age range (minimum and maximum number of days).
- match_object_size
This property contains
BytesGreaterThanandBytesLessThanto define the object size range (minimum and maximum number of Bytes).
- or_
This property contains the
Orlogical operator, which allows multiple filter conditions to be joined.Objects can match any of the listed filter conditions, which are joined by the
Orlogical operator. Only one of each filter condition is allowed.
MatchObjectAgeProperty
- class CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty(*, days_greater_than=None, days_less_than=None)
Bases:
objectThis resource contains
DaysGreaterThanandDaysLessThanto define the object age range (minimum and maximum number of days).- Parameters:
days_greater_than (
Union[int,float,None]) – This property indicates the minimum object age in days.days_less_than (
Union[int,float,None]) – This property indicates the maximum object age in days.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins match_object_age_property = s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty( days_greater_than=123, days_less_than=123 )
Attributes
- days_greater_than
This property indicates the minimum object age in days.
- days_less_than
This property indicates the maximum object age in days.
MatchObjectSizeProperty
- class CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty(*, bytes_greater_than=None, bytes_less_than=None)
Bases:
objectThis resource filters objects that match the specified object size range.
- Parameters:
bytes_greater_than (
Union[int,float,None]) – This property specifies the minimum object size in bytes. The value must be a positive number, greater than 0 and less than 5 TB.bytes_less_than (
Union[int,float,None]) – 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.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins match_object_size_property = s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty( bytes_greater_than=123, bytes_less_than=123 )
Attributes
- bytes_greater_than
This property specifies the minimum object size in bytes.
The value must be a positive number, greater than 0 and less than 5 TB.
- bytes_less_than
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.
OrProperty
- class CfnStorageLensGroupPropsMixin.OrProperty(*, match_any_prefix=None, match_any_suffix=None, match_any_tag=None, match_object_age=None, match_object_size=None)
Bases:
objectThis resource contains the
Orlogical 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
Orlogical operator. Only one of each filter condition is allowed.- Parameters:
match_any_prefix (
Optional[Sequence[str]]) – This property contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.match_any_suffix (
Optional[Sequence[str]]) – This property contains the list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.match_any_tag (
Union[IResolvable,Sequence[Union[IResolvable,CfnTag,Dict[str,Any]]],None]) – This property contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.match_object_age (
Union[IResolvable,MatchObjectAgeProperty,Dict[str,Any],None]) – This property filters objects that match the specified object age range.match_object_size (
Union[IResolvable,MatchObjectSizeProperty,Dict[str,Any],None]) – This property contains theBytesGreaterThanandBytesLessThanvalues to define the object size range (minimum and maximum number of Bytes).
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins or_property = s3_mixins.CfnStorageLensGroupPropsMixin.OrProperty( match_any_prefix=["matchAnyPrefix"], match_any_suffix=["matchAnySuffix"], match_any_tag=[CfnTag( key="key", value="value" )], match_object_age=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectAgeProperty( days_greater_than=123, days_less_than=123 ), match_object_size=s3_mixins.CfnStorageLensGroupPropsMixin.MatchObjectSizeProperty( bytes_greater_than=123, bytes_less_than=123 ) )
Attributes
- match_any_prefix
This property contains a list of prefixes.
At least one prefix must be specified. Up to 10 prefixes are allowed.
- match_any_suffix
This property contains the list of suffixes.
At least one suffix must be specified. Up to 10 suffixes are allowed.
- match_any_tag
This property contains the list of S3 object tags.
At least one object tag must be specified. Up to 10 object tags are allowed.
- match_object_age
This property filters objects that match the specified object age range.
- match_object_size
This property contains the
BytesGreaterThanandBytesLessThanvalues to define the object size range (minimum and maximum number of Bytes).