Skip to content
v2.277.0

GatewayElbAccessLogDestinationProperty Struct ​

The destination for gateway ALB access logs.

Exactly one destination type must be specified.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const gatewayElbAccessLogDestinationProperty: ecs.CfnGateway.GatewayElbAccessLogDestinationProperty = {
  s3: {
    bucket: 'bucket',

    // the properties below are optional
    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_ecs as ecs

gateway_elb_access_log_destination_property = ecs.CfnGateway.GatewayElbAccessLogDestinationProperty(
    s3=ecs.CfnGateway.GatewayElbAccessLogS3DestinationProperty(
        bucket="bucket",

        # the properties below are optional
        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.ecs.*;

GatewayElbAccessLogDestinationProperty gatewayElbAccessLogDestinationProperty = GatewayElbAccessLogDestinationProperty.builder()
        .s3(GatewayElbAccessLogS3DestinationProperty.builder()
                .bucket("bucket")

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

var gatewayElbAccessLogDestinationProperty = new GatewayElbAccessLogDestinationProperty {
    S3 = new GatewayElbAccessLogS3DestinationProperty {
        Bucket = "bucket",

        // the properties below are optional
        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"

gatewayElbAccessLogDestinationProperty := &GatewayElbAccessLogDestinationProperty{
	S3: &GatewayElbAccessLogS3DestinationProperty{
		Bucket: jsii.String("bucket"),

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

Properties ​

The S3 destination for gateway ALB access logs.