Class CfnStorageLensGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.s3.CfnStorageLensGroup
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:25:04.758Z")
@Stability(Stable)
public class CfnStorageLensGroup
extends CfnResource
implements IInspectable, ITaggableV2
The
AWS::S3::StorageLensGroup
resource 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 AND
or OR
logical operators. For more information about S3 Storage Lens groups, see Working with S3 Storage Lens groups .
Example:
// 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.*; CfnStorageLensGroup cfnStorageLensGroup = CfnStorageLensGroup.Builder.create(this, "MyCfnStorageLensGroup") .filter(FilterProperty.builder() .and(AndProperty.builder() .matchAnyPrefix(List.of("matchAnyPrefix")) .matchAnySuffix(List.of("matchAnySuffix")) .matchAnyTag(List.of(CfnTag.builder() .key("key") .value("value") .build())) .matchObjectAge(MatchObjectAgeProperty.builder() .daysGreaterThan(123) .daysLessThan(123) .build()) .matchObjectSize(MatchObjectSizeProperty.builder() .bytesGreaterThan(123) .bytesLessThan(123) .build()) .build()) .matchAnyPrefix(List.of("matchAnyPrefix")) .matchAnySuffix(List.of("matchAnySuffix")) .matchAnyTag(List.of(CfnTag.builder() .key("key") .value("value") .build())) .matchObjectAge(MatchObjectAgeProperty.builder() .daysGreaterThan(123) .daysLessThan(123) .build()) .matchObjectSize(MatchObjectSizeProperty.builder() .bytesGreaterThan(123) .bytesLessThan(123) .build()) .or(OrProperty.builder() .matchAnyPrefix(List.of("matchAnyPrefix")) .matchAnySuffix(List.of("matchAnySuffix")) .matchAnyTag(List.of(CfnTag.builder() .key("key") .value("value") .build())) .matchObjectAge(MatchObjectAgeProperty.builder() .daysGreaterThan(123) .daysLessThan(123) .build()) .matchObjectSize(MatchObjectSizeProperty.builder() .bytesGreaterThan(123) .bytesLessThan(123) .build()) .build()) .build()) .name("name") // the properties below are optional .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
This resource is a logical operator that allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data.static final class
A fluent builder forCfnStorageLensGroup
.static interface
This resource sets the criteria for the Storage Lens group data that is displayed.static interface
This resource containsDaysGreaterThan
andDaysLessThan
to define the object age range (minimum and maximum number of days).static interface
This resource filters objects that match the specified object size range.static interface
This resource contains theOr
logical operator, which allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnStorageLensGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnStorageLensGroup
(software.amazon.jsii.JsiiObjectRef objRef) CfnStorageLensGroup
(software.constructs.Construct scope, String id, CfnStorageLensGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN for the Amazon S3 Storage Lens Group.Tag Manager which manages the tags for this resource.This property contains the criteria for the Storage Lens group data that is displayed.getName()
This property contains the Storage Lens group name.getTags()
This property contains the AWS resource tags that you're adding to your Storage Lens group.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setFilter
(IResolvable value) This property contains the criteria for the Storage Lens group data that is displayed.void
This property contains the criteria for the Storage Lens group data that is displayed.void
This property contains the Storage Lens group name.void
This property contains the AWS resource tags that you're adding to your Storage Lens group.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnStorageLensGroup
protected CfnStorageLensGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStorageLensGroup
protected CfnStorageLensGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStorageLensGroup
@Stability(Stable) public CfnStorageLensGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnStorageLensGroupProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrStorageLensGroupArn
The ARN for the Amazon S3 Storage Lens Group. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getFilter
This property contains the criteria for the Storage Lens group data that is displayed. -
setFilter
This property contains the criteria for the Storage Lens group data that is displayed. -
setFilter
This property contains the criteria for the Storage Lens group data that is displayed. -
getName
This property contains the Storage Lens group name. -
setName
This property contains the Storage Lens group name. -
getTags
This property contains the AWS resource tags that you're adding to your Storage Lens group. -
setTags
This property contains the AWS resource tags that you're adding to your Storage Lens group.
-