Interface CfnStorageLensProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnStorageLensProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:49.450Z")
@Stability(Stable)
public interface CfnStorageLensProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnStorageLens.
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;
CfnStorageLensProps cfnStorageLensProps = CfnStorageLensProps.builder()
.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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnStorageLensPropsstatic final classAn implementation forCfnStorageLensProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnStorageLensProps.Builderbuilder()This resource contains the details Amazon S3 Storage Lens configuration.getTags()A set of tags (key–value pairs) to associate with the Storage Lens configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStorageLensConfiguration
This resource contains the details Amazon S3 Storage Lens configuration.Returns union: either
IResolvableorCfnStorageLens.StorageLensConfigurationProperty- See Also:
-
getTags
A set of tags (key–value pairs) to associate with the Storage Lens configuration.- See Also:
-
builder
- Returns:
- a
CfnStorageLensProps.BuilderofCfnStorageLensProps
-