aws-cdk-lib.aws_s3.CfnStorageLens.DetailedStatusCodesMetricsProperty

interface DetailedStatusCodesMetricsProperty

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

This resource enables Amazon S3 Storage Lens detailed status code metrics.

Detailed status code metrics generate metrics for HTTP status codes, such as 200 OK , 403 Forbidden , 503 Service Unavailable and others.

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

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

Properties

NameTypeDescription
isEnabled?boolean | IResolvableIndicates whether detailed status code metrics are enabled.

isEnabled?

Type: boolean | IResolvable (optional)

Indicates whether detailed status code metrics are enabled.