interface ServiceConnectAccessLogConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.CfnService.ServiceConnectAccessLogConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnService_ServiceConnectAccessLogConfigurationProperty |
Java | software.amazon.awscdk.services.ecs.CfnService.ServiceConnectAccessLogConfigurationProperty |
Python | aws_cdk.aws_ecs.CfnService.ServiceConnectAccessLogConfigurationProperty |
TypeScript | aws-cdk-lib » aws_ecs » CfnService » ServiceConnectAccessLogConfigurationProperty |
Configuration for Service Connect access logging.
Access logs provide detailed information about requests made to your service, including request patterns, response codes, and timing data for debugging and monitoring purposes.
To enable access logs, you must also specify a
logConfigurationin theserviceConnectConfiguration.
Example
// 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 serviceConnectAccessLogConfigurationProperty: ecs.CfnService.ServiceConnectAccessLogConfigurationProperty = {
format: 'format',
// the properties below are optional
includeQueryParameters: 'includeQueryParameters',
};
Properties
| Name | Type | Description |
|---|---|---|
| format | string | The format for Service Connect access log output. |
| include | string | Specifies whether to include query parameters in Service Connect access logs. |
format
Type:
string
The format for Service Connect access log output.
Choose TEXT for human-readable logs or JSON for structured data that integrates well with log analysis tools.
includeQueryParameters?
Type:
string
(optional)
Specifies whether to include query parameters in Service Connect access logs.
When enabled, query parameters from HTTP requests are included in the access logs. Consider security and privacy implications when enabling this feature, as query parameters may contain sensitive information such as request IDs and tokens. By default, this parameter is DISABLED .

.NET
Go
Java
Python
TypeScript