Skip to content
v2.278.0

MetricsConfigurationProperty Struct ​

Specifies a metrics configuration for the CloudWatch request metrics from an Amazon S3 Express bucket.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3express as s3express } from 'aws-cdk-lib';
const metricsConfigurationProperty: s3express.CfnDirectoryBucket.MetricsConfigurationProperty = {
  id: 'id',

  // the properties below are optional
  accessPointArn: 'accessPointArn',
  prefix: 'prefix',
};
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_s3express as s3express

metrics_configuration_property = s3express.CfnDirectoryBucket.MetricsConfigurationProperty(
    id="id",

    # the properties below are optional
    access_point_arn="accessPointArn",
    prefix="prefix"
)
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.s3express.*;

MetricsConfigurationProperty metricsConfigurationProperty = MetricsConfigurationProperty.builder()
        .id("id")

        // the properties below are optional
        .accessPointArn("accessPointArn")
        .prefix("prefix")
        .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.S3Express;

var metricsConfigurationProperty = new MetricsConfigurationProperty {
    Id = "id",

    // the properties below are optional
    AccessPointArn = "accessPointArn",
    Prefix = "prefix"
};
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"

metricsConfigurationProperty := &MetricsConfigurationProperty{
	Id: jsii.String("id"),

	// the properties below are optional
	AccessPointArn: jsii.String("accessPointArn"),
	Prefix: jsii.String("prefix"),
}

Properties ​

accessPointArnoptionalstringaccess_point_arnoptionalstraccessPointArnoptionalStringAccessPointArnoptionalstringAccessPointArnoptional*string #
The access point ARN used when evaluating a metrics filter.
idstringidstridStringIdstringId*string required #
The ID used to identify the metrics configuration.
prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*string #
The prefix used when evaluating a metrics filter.