# ExpressGatewayServiceAwsLogsConfigurationProperty

Specifies the Amazon CloudWatch Logs configuration for the Express service container.

- Source: Generated at build time
- Type last changed: v2.230.0 · 26 Nov 2025

## 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 expressGatewayServiceAwsLogsConfigurationProperty: ecs.CfnExpressGatewayService.ExpressGatewayServiceAwsLogsConfigurationProperty = {
  logGroup: 'logGroup',
  logStreamPrefix: 'logStreamPrefix',
};
```

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

express_gateway_service_aws_logs_configuration_property = ecs.CfnExpressGatewayService.ExpressGatewayServiceAwsLogsConfigurationProperty(
    log_group="logGroup",
    log_stream_prefix="logStreamPrefix"
)
```

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.*;

ExpressGatewayServiceAwsLogsConfigurationProperty expressGatewayServiceAwsLogsConfigurationProperty = ExpressGatewayServiceAwsLogsConfigurationProperty.builder()
        .logGroup("logGroup")
        .logStreamPrefix("logStreamPrefix")
        .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 expressGatewayServiceAwsLogsConfigurationProperty = new ExpressGatewayServiceAwsLogsConfigurationProperty {
    LogGroup = "logGroup",
    LogStreamPrefix = "logStreamPrefix"
};
```

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"

expressGatewayServiceAwsLogsConfigurationProperty := &ExpressGatewayServiceAwsLogsConfigurationProperty{
	LogGroup: jsii.String("logGroup"),
	LogStreamPrefix: jsii.String("logStreamPrefix"),
}
```

## Properties

- `logGroup`: string (required) — The name of the CloudWatch Logs log group to send container logs to.

- `logStreamPrefix`: string (required) = "ecs" — The prefix for the CloudWatch Logs log stream names.

  The default for an Express service is `ecs` .
