# GatewayElbAccessLogConfigurationProperty

The access log configuration for the gateway ALB.

Access logging is enabled by the presence of a destination.

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
        }
    }
};
```

Golang:

```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

- `destination`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGateway.GatewayElbAccessLogDestinationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnGateway.GatewayElbAccessLogDestinationProperty.html) — The destination for gateway ALB access logs.

  Exactly one destination type must be specified.
