Class CfnStorageLens
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.CfnStorageLens
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:56:05.363Z")
@Stability(Stable)
public class CfnStorageLens
extends CfnResource
implements IInspectable, ITaggable
The AWS::S3::StorageLens resource creates an Amazon S3 Storage Lens configuration.
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.*; Object sses3; CfnStorageLens cfnStorageLens = CfnStorageLens.Builder.create(this, "MyCfnStorageLens") .storageLensConfiguration(StorageLensConfigurationProperty.builder() .accountLevel(AccountLevelProperty.builder() .bucketLevel(BucketLevelProperty.builder() .activityMetrics(ActivityMetricsProperty.builder() .isEnabled(false) .build()) .advancedCostOptimizationMetrics(AdvancedCostOptimizationMetricsProperty.builder() .isEnabled(false) .build()) .advancedDataProtectionMetrics(AdvancedDataProtectionMetricsProperty.builder() .isEnabled(false) .build()) .detailedStatusCodesMetrics(DetailedStatusCodesMetricsProperty.builder() .isEnabled(false) .build()) .prefixLevel(PrefixLevelProperty.builder() .storageMetrics(PrefixLevelStorageMetricsProperty.builder() .isEnabled(false) .selectionCriteria(SelectionCriteriaProperty.builder() .delimiter("delimiter") .maxDepth(123) .minStorageBytesPercentage(123) .build()) .build()) .build()) .build()) // the properties below are optional .activityMetrics(ActivityMetricsProperty.builder() .isEnabled(false) .build()) .advancedCostOptimizationMetrics(AdvancedCostOptimizationMetricsProperty.builder() .isEnabled(false) .build()) .advancedDataProtectionMetrics(AdvancedDataProtectionMetricsProperty.builder() .isEnabled(false) .build()) .detailedStatusCodesMetrics(DetailedStatusCodesMetricsProperty.builder() .isEnabled(false) .build()) .storageLensGroupLevel(StorageLensGroupLevelProperty.builder() .storageLensGroupSelectionCriteria(StorageLensGroupSelectionCriteriaProperty.builder() .exclude(List.of("exclude")) .include(List.of("include")) .build()) .build()) .build()) .id("id") .isEnabled(false) // the properties below are optional .awsOrg(AwsOrgProperty.builder() .arn("arn") .build()) .dataExport(DataExportProperty.builder() .cloudWatchMetrics(CloudWatchMetricsProperty.builder() .isEnabled(false) .build()) .s3BucketDestination(S3BucketDestinationProperty.builder() .accountId("accountId") .arn("arn") .format("format") .outputSchemaVersion("outputSchemaVersion") // the properties below are optional .encryption(EncryptionProperty.builder() .ssekms(SSEKMSProperty.builder() .keyId("keyId") .build()) .sses3(sses3) .build()) .prefix("prefix") .build()) .build()) .exclude(BucketsAndRegionsProperty.builder() .buckets(List.of("buckets")) .regions(List.of("regions")) .build()) .include(BucketsAndRegionsProperty.builder() .buckets(List.of("buckets")) .regions(List.of("regions")) .build()) .storageLensArn("storageLensArn") .build()) // the properties below are optional .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
This resource contains the details of the account-level metrics for Amazon S3 Storage Lens.static interface
This resource enables Amazon S3 Storage Lens activity metrics.static interface
This resource enables Amazon S3 Storage Lens advanced cost optimization metrics.static interface
This resource enables Amazon S3 Storage Lens advanced data protection metrics.static interface
This resource contains the details of the AWS Organization for Amazon S3 Storage Lens.static interface
A property for the bucket-level storage metrics for Amazon S3 Storage Lens.static interface
This resource contains the details of the buckets and Regions for the Amazon S3 Storage Lens configuration.static final class
A fluent builder forCfnStorageLens
.static interface
This resource enables the Amazon CloudWatch publishing option for Amazon S3 Storage Lens metrics.static interface
This resource contains the details of the Amazon S3 Storage Lens metrics export.static interface
This resource enables Amazon S3 Storage Lens detailed status code metrics.static interface
This resource contains the type of server-side encryption used to encrypt an Amazon S3 Storage Lens metrics export.static interface
This resource contains the details of the prefix-level of the Amazon S3 Storage Lens.static interface
This resource contains the details of the prefix-level storage metrics for Amazon S3 Storage Lens.static interface
This resource contains the details of the bucket where the Amazon S3 Storage Lens metrics export will be placed.static interface
This resource contains the details of the Amazon S3 Storage Lens selection criteria.static interface
Specifies the use of server-side encryption using an AWS Key Management Service key (SSE-KMS) to encrypt the delivered S3 Storage Lens metrics export file.static interface
This is the property of the Amazon S3 Storage Lens configuration.static interface
This resource determines the scope of Storage Lens group data that is displayed in the Storage Lens dashboard.static interface
This resource indicates which Storage Lens group ARNs to include or exclude in the Storage Lens group aggregation.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.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnStorageLens
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnStorageLens
(software.amazon.jsii.JsiiObjectRef objRef) CfnStorageLens
(software.constructs.Construct scope, String id, CfnStorageLensProps props) -
Method Summary
Modifier and TypeMethodDescriptionThis property contains the details of the ARN of the S3 Storage Lens configuration.This resource contains the details Amazon S3 Storage Lens configuration.getTags()
Tag Manager which manages the tags for this resource.A set of tags (key–value pairs) to associate with the Storage Lens configuration.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
This resource contains the details Amazon S3 Storage Lens configuration.void
This resource contains the details Amazon S3 Storage Lens configuration.void
setTagsRaw
(List<CfnTag> value) A set of tags (key–value pairs) to associate with the Storage Lens configuration.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
-
CfnStorageLens
protected CfnStorageLens(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStorageLens
protected CfnStorageLens(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStorageLens
@Stability(Stable) public CfnStorageLens(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnStorageLensProps 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.
-
getAttrStorageLensConfigurationStorageLensArn
This property contains the details of the ARN of the S3 Storage Lens configuration.This property is read-only.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getStorageLensConfiguration
This resource contains the details Amazon S3 Storage Lens configuration. -
setStorageLensConfiguration
This resource contains the details Amazon S3 Storage Lens configuration. -
setStorageLensConfiguration
@Stability(Stable) public void setStorageLensConfiguration(@NotNull CfnStorageLens.StorageLensConfigurationProperty value) This resource contains the details Amazon S3 Storage Lens configuration. -
getTagsRaw
A set of tags (key–value pairs) to associate with the Storage Lens configuration. -
setTagsRaw
A set of tags (key–value pairs) to associate with the Storage Lens configuration.
-