PrefixLevelStorageMetricsProperty Struct
This resource contains the details of the prefix-level storage metrics for 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 prefixLevelStorageMetricsProperty: s3.CfnStorageLens.PrefixLevelStorageMetricsProperty = {
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_storage_metrics_property = 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.*;
PrefixLevelStorageMetricsProperty prefixLevelStorageMetricsProperty = PrefixLevelStorageMetricsProperty.builder()
.isEnabled(false)
.selectionCriteria(SelectionCriteriaProperty.builder()
.delimiter("delimiter")
.maxDepth(123)
.minStorageBytesPercentage(123)
.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 prefixLevelStorageMetricsProperty = 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"
prefixLevelStorageMetricsProperty := &PrefixLevelStorageMetricsProperty{
IsEnabled: jsii.Boolean(false),
SelectionCriteria: &SelectionCriteriaProperty{
Delimiter: jsii.String("delimiter"),
MaxDepth: jsii.Number(123),
MinStorageBytesPercentage: jsii.Number(123),
},
}
Properties
isEnabledoptionalboolean | IResolvableis_enabledoptionaltyping.Union[bool, IResolvable]isEnabledoptionalBooleanIsEnabledoptionalboolIsEnabledoptionalinterface{} #This property identifies whether the details of the prefix-level storage metrics for S3 Storage Lens are enabled.
selectionCriteriaoptionalIResolvable | CfnStorageLens.selection_criteriaoptionaltyping.Union[IResolvable, SelectionCriteriaProperty]selectionCriteriaoptionalIResolvableSelectionCriteriaoptionalIResolvableSelectionCriteriaoptionalinterface{} #This property identifies whether the details of the prefix-level storage metrics for S3 Storage Lens are enabled.