@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:19.047Z") @Stability(value=Stable) public class CfnStorageLens extends CfnResource implements IInspectable
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.*;
CfnStorageLens cfnStorageLens = CfnStorageLens.Builder.create(this, "MyCfnStorageLens")
.storageLensConfiguration(StorageLensConfigurationProperty.builder()
.accountLevel(AccountLevelProperty.builder()
.bucketLevel(BucketLevelProperty.builder()
.activityMetrics(ActivityMetricsProperty.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())
.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().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
Example:
|
static interface |
CfnStorageLens.ActivityMetricsProperty
Example:
|
static interface |
CfnStorageLens.AwsOrgProperty
Example:
|
static interface |
CfnStorageLens.BucketLevelProperty
Example:
|
static interface |
CfnStorageLens.BucketsAndRegionsProperty
Example:
|
static class |
CfnStorageLens.Builder
A fluent builder for
CfnStorageLens. |
static interface |
CfnStorageLens.CloudWatchMetricsProperty
Example:
|
static interface |
CfnStorageLens.DataExportProperty
Example:
|
static interface |
CfnStorageLens.EncryptionProperty
Example:
|
static interface |
CfnStorageLens.PrefixLevelProperty
Example:
|
static interface |
CfnStorageLens.PrefixLevelStorageMetricsProperty
Example:
|
static interface |
CfnStorageLens.S3BucketDestinationProperty
Example:
|
static interface |
CfnStorageLens.SelectionCriteriaProperty
Example:
|
static interface |
CfnStorageLens.StorageLensConfigurationProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnStorageLens(software.constructs.Construct scope,
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 |
|---|---|
String |
getAttrStorageLensConfigurationStorageLensArn() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getStorageLensConfiguration()
`AWS::S3::StorageLens.StorageLensConfiguration`.
|
TagManager |
getTags()
`AWS::S3::StorageLens.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setStorageLensConfiguration(CfnStorageLens.StorageLensConfigurationProperty value)
`AWS::S3::StorageLens.StorageLensConfiguration`.
|
void |
setStorageLensConfiguration(IResolvable value)
`AWS::S3::StorageLens.StorageLensConfiguration`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnStorageLens(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStorageLens(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnStorageLens(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrStorageLensConfigurationStorageLensArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getStorageLensConfiguration()
@Stability(value=Stable)
public void setStorageLensConfiguration(@NotNull
CfnStorageLens.StorageLensConfigurationProperty value)
@Stability(value=Stable)
public void setStorageLensConfiguration(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public TagManager getTags()
Copyright © 2021. All rights reserved.