PrefixLevelProperty Struct
This resource contains the details of the prefix-level of the Amazon S3 Storage Lens.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const prefixLevelProperty: s3.CfnStorageLens.PrefixLevelProperty = {
storageMetrics: {
isEnabled: false,
selectionCriteria: {
delimiter: 'delimiter',
maxDepth: 123,
minStorageBytesPercentage: 123,
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3
prefix_level_property = s3.CfnStorageLens.PrefixLevelProperty(
storage_metrics=s3.CfnStorageLens.PrefixLevelStorageMetricsProperty(
is_enabled=False,
selection_criteria=s3.CfnStorageLens.SelectionCriteriaProperty(
delimiter="delimiter",
max_depth=123,
min_storage_bytes_percentage=123
)
)
)
java
// 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.*;
PrefixLevelProperty prefixLevelProperty = PrefixLevelProperty.builder()
.storageMetrics(PrefixLevelStorageMetricsProperty.builder()
.isEnabled(false)
.selectionCriteria(SelectionCriteriaProperty.builder()
.delimiter("delimiter")
.maxDepth(123)
.minStorageBytesPercentage(123)
.build())
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var prefixLevelProperty = new PrefixLevelProperty {
StorageMetrics = new PrefixLevelStorageMetricsProperty {
IsEnabled = false,
SelectionCriteria = new SelectionCriteriaProperty {
Delimiter = "delimiter",
MaxDepth = 123,
MinStorageBytesPercentage = 123
}
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
prefixLevelProperty := &PrefixLevelProperty{
StorageMetrics: &PrefixLevelStorageMetricsProperty{
IsEnabled: jsii.Boolean(false),
SelectionCriteria: &SelectionCriteriaProperty{
Delimiter: jsii.String("delimiter"),
MaxDepth: jsii.Number(123),
MinStorageBytesPercentage: jsii.Number(123),
},
},
}
Properties
storageMetricsIResolvable | CfnStorageLens.storage_metricstyping.Union[IResolvable, PrefixLevelStorageMetricsProperty]storageMetricsIResolvableStorageMetricsIResolvableStorageMetricsinterface{} required #A property for the prefix-level storage metrics for Amazon S3 Storage Lens.