GatewayElbAccessLogConfigurationProperty Struct
The access log configuration for the gateway ALB.
Access logging is enabled by the presence of a destination.
| Source | |
|---|---|
| Type last changed |
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 gatewayElbAccessLogConfigurationProperty: ecs.CfnGateway.GatewayElbAccessLogConfigurationProperty = {
destination: {
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_configuration_property = ecs.CfnGateway.GatewayElbAccessLogConfigurationProperty(
destination=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.*;
GatewayElbAccessLogConfigurationProperty gatewayElbAccessLogConfigurationProperty = GatewayElbAccessLogConfigurationProperty.builder()
.destination(GatewayElbAccessLogDestinationProperty.builder()
.s3(GatewayElbAccessLogS3DestinationProperty.builder()
.bucket("bucket")
// the properties below are optional
.prefix("prefix")
.build())
.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 gatewayElbAccessLogConfigurationProperty = new GatewayElbAccessLogConfigurationProperty {
Destination = 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"
gatewayElbAccessLogConfigurationProperty := &GatewayElbAccessLogConfigurationProperty{
Destination: &GatewayElbAccessLogDestinationProperty{
S3: &GatewayElbAccessLogS3DestinationProperty{
Bucket: jsii.String("bucket"),
// the properties below are optional
Prefix: jsii.String("prefix"),
},
},
}
Properties
destinationoptionalIResolvable | CfnGateway.destinationoptionaltyping.Union[IResolvable, GatewayElbAccessLogDestinationProperty]destinationoptionalIResolvableDestinationoptionalIResolvableDestinationoptionalinterface{} #The destination for gateway ALB access logs.
Exactly one destination type must be specified.