BucketLevelProperty Struct
A property for the bucket-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 bucketLevelProperty: s3.CfnStorageLens.BucketLevelProperty = {
activityMetrics: {
isEnabled: false,
},
advancedCostOptimizationMetrics: {
isEnabled: false,
},
advancedDataProtectionMetrics: {
isEnabled: false,
},
advancedPerformanceMetrics: {
isEnabled: false,
},
detailedStatusCodesMetrics: {
isEnabled: false,
},
prefixLevel: {
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
bucket_level_property = s3.CfnStorageLens.BucketLevelProperty(
activity_metrics=s3.CfnStorageLens.ActivityMetricsProperty(
is_enabled=False
),
advanced_cost_optimization_metrics=s3.CfnStorageLens.AdvancedCostOptimizationMetricsProperty(
is_enabled=False
),
advanced_data_protection_metrics=s3.CfnStorageLens.AdvancedDataProtectionMetricsProperty(
is_enabled=False
),
advanced_performance_metrics=s3.CfnStorageLens.AdvancedPerformanceMetricsProperty(
is_enabled=False
),
detailed_status_codes_metrics=s3.CfnStorageLens.DetailedStatusCodesMetricsProperty(
is_enabled=False
),
prefix_level=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.*;
BucketLevelProperty bucketLevelProperty = BucketLevelProperty.builder()
.activityMetrics(ActivityMetricsProperty.builder()
.isEnabled(false)
.build())
.advancedCostOptimizationMetrics(AdvancedCostOptimizationMetricsProperty.builder()
.isEnabled(false)
.build())
.advancedDataProtectionMetrics(AdvancedDataProtectionMetricsProperty.builder()
.isEnabled(false)
.build())
.advancedPerformanceMetrics(AdvancedPerformanceMetricsProperty.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();
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 bucketLevelProperty = new BucketLevelProperty {
ActivityMetrics = new ActivityMetricsProperty {
IsEnabled = false
},
AdvancedCostOptimizationMetrics = new AdvancedCostOptimizationMetricsProperty {
IsEnabled = false
},
AdvancedDataProtectionMetrics = new AdvancedDataProtectionMetricsProperty {
IsEnabled = false
},
AdvancedPerformanceMetrics = new AdvancedPerformanceMetricsProperty {
IsEnabled = false
},
DetailedStatusCodesMetrics = new DetailedStatusCodesMetricsProperty {
IsEnabled = false
},
PrefixLevel = 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"
bucketLevelProperty := &BucketLevelProperty{
ActivityMetrics: &ActivityMetricsProperty{
IsEnabled: jsii.Boolean(false),
},
AdvancedCostOptimizationMetrics: &AdvancedCostOptimizationMetricsProperty{
IsEnabled: jsii.Boolean(false),
},
AdvancedDataProtectionMetrics: &AdvancedDataProtectionMetricsProperty{
IsEnabled: jsii.Boolean(false),
},
AdvancedPerformanceMetrics: &AdvancedPerformanceMetricsProperty{
IsEnabled: jsii.Boolean(false),
},
DetailedStatusCodesMetrics: &DetailedStatusCodesMetricsProperty{
IsEnabled: jsii.Boolean(false),
},
PrefixLevel: &PrefixLevelProperty{
StorageMetrics: &PrefixLevelStorageMetricsProperty{
IsEnabled: jsii.Boolean(false),
SelectionCriteria: &SelectionCriteriaProperty{
Delimiter: jsii.String("delimiter"),
MaxDepth: jsii.Number(123),
MinStorageBytesPercentage: jsii.Number(123),
},
},
},
}
Properties
activityMetricsoptionalIResolvable | CfnStorageLens.activity_metricsoptionaltyping.Union[IResolvable, ActivityMetricsProperty]activityMetricsoptionalIResolvableActivityMetricsoptionalIResolvableActivityMetricsoptionalinterface{} #A property for bucket-level activity metrics for S3 Storage Lens.
advancedCostOptimizationMetricsoptionalIResolvable | CfnStorageLens.advanced_cost_optimization_metricsoptionaltyping.Union[IResolvable, AdvancedCostOptimizationMetricsProperty]advancedCostOptimizationMetricsoptionalIResolvableAdvancedCostOptimizationMetricsoptionalIResolvableAdvancedCostOptimizationMetricsoptionalinterface{} #A property for bucket-level advanced cost optimization metrics for S3 Storage Lens.
advancedDataProtectionMetricsoptionalIResolvable | CfnStorageLens.advanced_data_protection_metricsoptionaltyping.Union[IResolvable, AdvancedDataProtectionMetricsProperty]advancedDataProtectionMetricsoptionalIResolvableAdvancedDataProtectionMetricsoptionalIResolvableAdvancedDataProtectionMetricsoptionalinterface{} #A property for bucket-level advanced data protection metrics for S3 Storage Lens.
advancedPerformanceMetricsoptionalIResolvable | CfnStorageLens.advanced_performance_metricsoptionaltyping.Union[IResolvable, AdvancedPerformanceMetricsProperty]advancedPerformanceMetricsoptionalIResolvableAdvancedPerformanceMetricsoptionalIResolvableAdvancedPerformanceMetricsoptionalinterface{} #A property for bucket-level advanced performance metrics for S3 Storage Lens.
detailedStatusCodesMetricsoptionalIResolvable | CfnStorageLens.detailed_status_codes_metricsoptionaltyping.Union[IResolvable, DetailedStatusCodesMetricsProperty]detailedStatusCodesMetricsoptionalIResolvableDetailedStatusCodesMetricsoptionalIResolvableDetailedStatusCodesMetricsoptionalinterface{} #A property for bucket-level detailed status code metrics for S3 Storage Lens.
prefixLeveloptionalIResolvable | CfnStorageLens.prefix_leveloptionaltyping.Union[IResolvable, PrefixLevelProperty]prefixLeveloptionalIResolvablePrefixLeveloptionalIResolvablePrefixLeveloptionalinterface{} #A property for bucket-level prefix-level storage metrics for S3 Storage Lens.