@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:20.815Z") public class CfnStorageLens extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnStorageLens.AccountLevelProperty
This resource contains the details of the account-level metrics for Amazon S3 Storage Lens.
|
static interface |
CfnStorageLens.ActivityMetricsProperty
This resource enables Amazon S3 Storage Lens activity metrics.
|
static interface |
CfnStorageLens.AdvancedCostOptimizationMetricsProperty
This resource enables Amazon S3 Storage Lens advanced cost optimization metrics.
|
static interface |
CfnStorageLens.AdvancedDataProtectionMetricsProperty
This resource enables Amazon S3 Storage Lens advanced data protection metrics.
|
static interface |
CfnStorageLens.AwsOrgProperty
This resource contains the details of the AWS Organization for Amazon S3 Storage Lens.
|
static interface |
CfnStorageLens.BucketLevelProperty
A property for the bucket-level storage metrics for Amazon S3 Storage Lens.
|
static interface |
CfnStorageLens.BucketsAndRegionsProperty
This resource contains the details of the buckets and Regions for the Amazon S3 Storage Lens configuration.
|
static class |
CfnStorageLens.Builder
A fluent builder for
CfnStorageLens . |
static interface |
CfnStorageLens.CloudWatchMetricsProperty
This resource enables the Amazon CloudWatch publishing option for Amazon S3 Storage Lens metrics.
|
static interface |
CfnStorageLens.DataExportProperty
This resource contains the details of the Amazon S3 Storage Lens metrics export.
|
static interface |
CfnStorageLens.DetailedStatusCodesMetricsProperty
This resource enables Amazon S3 Storage Lens detailed status code metrics.
|
static interface |
CfnStorageLens.EncryptionProperty
This resource contains the type of server-side encryption used to encrypt an Amazon S3 Storage Lens metrics export.
|
static interface |
CfnStorageLens.PrefixLevelProperty
This resource contains the details of the prefix-level of the Amazon S3 Storage Lens.
|
static interface |
CfnStorageLens.PrefixLevelStorageMetricsProperty
This resource contains the details of the prefix-level storage metrics for Amazon S3 Storage Lens.
|
static interface |
CfnStorageLens.S3BucketDestinationProperty
This resource contains the details of the bucket where the Amazon S3 Storage Lens metrics export will be placed.
|
static interface |
CfnStorageLens.SelectionCriteriaProperty
This resource contains the details of the Amazon S3 Storage Lens selection criteria.
|
static interface |
CfnStorageLens.SSEKMSProperty
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 |
CfnStorageLens.StorageLensConfigurationProperty
This is the property of the Amazon S3 Storage Lens configuration.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnStorageLens(Construct scope,
java.lang.String id,
CfnStorageLensProps props)
Create a new `AWS::S3::StorageLens`.
|
protected |
CfnStorageLens(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnStorageLens(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrStorageLensConfigurationStorageLensArn()
This property contains the details of the ARN of the S3 Storage Lens configuration.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getStorageLensConfiguration()
This resource contains the details Amazon S3 Storage Lens configuration.
|
TagManager |
getTags()
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.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setStorageLensConfiguration(CfnStorageLens.StorageLensConfigurationProperty value)
This resource contains the details Amazon S3 Storage Lens configuration.
|
void |
setStorageLensConfiguration(IResolvable value)
This resource contains the details Amazon S3 Storage Lens configuration.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnStorageLens(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStorageLens(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnStorageLens(Construct scope, java.lang.String id, CfnStorageLensProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrStorageLensConfigurationStorageLensArn()
This property is read-only.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.Object getStorageLensConfiguration()
public void setStorageLensConfiguration(IResolvable value)
public void setStorageLensConfiguration(CfnStorageLens.StorageLensConfigurationProperty value)