Class CfnStorageLens
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.s3.CfnStorageLens
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.650Z")
@Stability(Stable)
public class CfnStorageLens
extends CfnResource
implements IInspectable
A CloudFormation
AWS::S3::StorageLens.
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())
.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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThis resource contains the details of the account-level metrics for Amazon S3 Storage Lens.static interfaceThis resource enables Amazon S3 Storage Lens activity metrics.static interfaceThis resource enables Amazon S3 Storage Lens advanced cost optimization metrics.static interfaceThis resource enables Amazon S3 Storage Lens advanced data protection metrics.static interfaceThis resource contains the details of the AWS Organization for Amazon S3 Storage Lens.static interfaceA property for the bucket-level storage metrics for Amazon S3 Storage Lens.static interfaceThis resource contains the details of the buckets and Regions for the Amazon S3 Storage Lens configuration.static final classA fluent builder forCfnStorageLens.static interfaceThis resource enables the Amazon CloudWatch publishing option for Amazon S3 Storage Lens metrics.static interfaceThis resource contains the details of the Amazon S3 Storage Lens metrics export.static interfaceThis resource enables Amazon S3 Storage Lens detailed status code metrics.static interfaceThis resource contains the type of server-side encryption used to encrypt an Amazon S3 Storage Lens metrics export.static interfaceThis resource contains the details of the prefix-level of the Amazon S3 Storage Lens.static interfaceThis resource contains the details of the prefix-level storage metrics for Amazon S3 Storage Lens.static interfaceThis resource contains the details of the bucket where the Amazon S3 Storage Lens metrics export will be placed.static interfaceThis resource contains the details of the Amazon S3 Storage Lens selection criteria.static interfaceSpecifies 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 interfaceThis is the property of the Amazon S3 Storage Lens configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnStorageLens(Construct scope, String id, CfnStorageLensProps props) Create a newAWS::S3::StorageLens.protectedCfnStorageLens(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStorageLens(software.amazon.jsii.JsiiObjectRef objRef) -
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()A set of tags (key–value pairs) to associate with the Storage Lens configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThis resource contains the details Amazon S3 Storage Lens configuration.voidThis resource contains the details Amazon S3 Storage Lens configuration.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 Construct scope, @NotNull String id, @NotNull CfnStorageLensProps props) Create a newAWS::S3::StorageLens.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin 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:
getCfnPropertiesin classCfnResource
-
getTags
A set of tags (key–value pairs) to associate with the Storage Lens configuration. -
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.
-