aws-cdk-lib.aws_s3.CfnStorageLens.CloudWatchMetricsProperty

interface CloudWatchMetricsProperty

LanguageType name
.NETAmazon.CDK.AWS.S3.CfnStorageLens.CloudWatchMetricsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnStorageLens_CloudWatchMetricsProperty
Javasoftware.amazon.awscdk.services.s3.CfnStorageLens.CloudWatchMetricsProperty
Pythonaws_cdk.aws_s3.CfnStorageLens.CloudWatchMetricsProperty
TypeScript aws-cdk-lib » aws_s3 » CfnStorageLens » CloudWatchMetricsProperty

This resource enables the Amazon CloudWatch publishing option for Amazon S3 Storage Lens metrics.

For more information, see Monitor S3 Storage Lens metrics in CloudWatch in the Amazon S3 User Guide .

Example

// 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 cloudWatchMetricsProperty: s3.CfnStorageLens.CloudWatchMetricsProperty = {
  isEnabled: false,
};

Properties

NameTypeDescription
isEnabledboolean | IResolvableThis property identifies whether the CloudWatch publishing option for S3 Storage Lens is enabled.

isEnabled

Type: boolean | IResolvable

This property identifies whether the CloudWatch publishing option for S3 Storage Lens is enabled.