ExpressGatewayServiceAwsLogsConfigurationProperty Struct
Specifies the Amazon CloudWatch Logs configuration for the Express service container.
| 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 expressGatewayServiceAwsLogsConfigurationProperty: ecs.CfnExpressGatewayService.ExpressGatewayServiceAwsLogsConfigurationProperty = {
logGroup: 'logGroup',
logStreamPrefix: 'logStreamPrefix',
};
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
// 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();
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"
};
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
The name of the CloudWatch Logs log group to send container logs to.
logStreamPrefixstringlog_stream_prefixstrlogStreamPrefixStringLogStreamPrefixstringLogStreamPrefix*string = "ecs" required #The prefix for the CloudWatch Logs log stream names.
The default for an Express service is ecs .