Skip to content
v2.278.0

AdvancedCostOptimizationMetricsProperty Struct ​

This resource enables Amazon S3 Storage Lens advanced cost optimization metrics.

Advanced cost optimization metrics provide insights that you can use to manage and optimize your storage costs, for example, lifecycle rule counts for transitions, expirations, and incomplete multipart uploads.

For more information, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide . For a complete list of metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide .

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 advancedCostOptimizationMetricsProperty: s3.CfnStorageLens.AdvancedCostOptimizationMetricsProperty = {
  isEnabled: false,
};
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

advanced_cost_optimization_metrics_property = s3.CfnStorageLens.AdvancedCostOptimizationMetricsProperty(
    is_enabled=False
)
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.*;

AdvancedCostOptimizationMetricsProperty advancedCostOptimizationMetricsProperty = AdvancedCostOptimizationMetricsProperty.builder()
        .isEnabled(false)
        .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 advancedCostOptimizationMetricsProperty = new AdvancedCostOptimizationMetricsProperty {
    IsEnabled = false
};
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"

advancedCostOptimizationMetricsProperty := &AdvancedCostOptimizationMetricsProperty{
	IsEnabled: jsii.Boolean(false),
}

Properties ​

isEnabledoptionalboolean | IResolvableis_enabledoptionaltyping.Union[bool, IResolvable]isEnabledoptionalBooleanIsEnabledoptionalboolIsEnabledoptionalinterface{} #
Indicates whether advanced cost optimization metrics are enabled.