CfnStorageLensGroupProps

class aws_cdk.aws_s3.CfnStorageLensGroupProps(*, filter, name, tags=None)

Bases: object

Properties for defining a CfnStorageLensGroup.

Parameters:
  • filter (Union[IResolvable, FilterProperty, Dict[str, Any]]) – This property contains the criteria for the Storage Lens group data that is displayed.

  • name (str) – This property contains the Storage Lens group name.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – This property contains the AWS resource tags that you’re adding to your Storage Lens group. This parameter is optional.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-storagelensgroup.html

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 import aws_s3 as s3

cfn_storage_lens_group_props = s3.CfnStorageLensGroupProps(
    filter=s3.CfnStorageLensGroup.FilterProperty(
        and=s3.CfnStorageLensGroup.AndProperty(
            match_any_prefix=["matchAnyPrefix"],
            match_any_suffix=["matchAnySuffix"],
            match_any_tag=[CfnTag(
                key="key",
                value="value"
            )],
            match_object_age=s3.CfnStorageLensGroup.MatchObjectAgeProperty(
                days_greater_than=123,
                days_less_than=123
            ),
            match_object_size=s3.CfnStorageLensGroup.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.CfnStorageLensGroup.MatchObjectAgeProperty(
            days_greater_than=123,
            days_less_than=123
        ),
        match_object_size=s3.CfnStorageLensGroup.MatchObjectSizeProperty(
            bytes_greater_than=123,
            bytes_less_than=123
        ),
        or=s3.CfnStorageLensGroup.OrProperty(
            match_any_prefix=["matchAnyPrefix"],
            match_any_suffix=["matchAnySuffix"],
            match_any_tag=[CfnTag(
                key="key",
                value="value"
            )],
            match_object_age=s3.CfnStorageLensGroup.MatchObjectAgeProperty(
                days_greater_than=123,
                days_less_than=123
            ),
            match_object_size=s3.CfnStorageLensGroup.MatchObjectSizeProperty(
                bytes_greater_than=123,
                bytes_less_than=123
            )
        )
    ),
    name="name",

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

filter

This property contains the criteria for the Storage Lens group data that is displayed.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-storagelensgroup.html#cfn-s3-storagelensgroup-filter

name

This property contains the Storage Lens group name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-storagelensgroup.html#cfn-s3-storagelensgroup-name

tags

This property contains the AWS resource tags that you’re adding to your Storage Lens group.

This parameter is optional.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-storagelensgroup.html#cfn-s3-storagelensgroup-tags