interface CloudWatchMetricsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3.CfnStorageLens.CloudWatchMetricsProperty |
Java | software.amazon.awscdk.services.s3.CfnStorageLens.CloudWatchMetricsProperty |
Python | aws_cdk.aws_s3.CfnStorageLens.CloudWatchMetricsProperty |
TypeScript | @aws-cdk/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 * as s3 from '@aws-cdk/aws-s3';
const cloudWatchMetricsProperty: s3.CfnStorageLens.CloudWatchMetricsProperty = {
isEnabled: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| is | boolean | IResolvable | This 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.

.NET
Java
Python
TypeScript