Skip to content
v2.278.0

ServiceConnectAccessLogConfigurationProperty Struct ​

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 logConfiguration in the serviceConnectConfiguration .

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 serviceConnectAccessLogConfigurationProperty: ecs.CfnService.ServiceConnectAccessLogConfigurationProperty = {
  format: 'format',

  // the properties below are optional
  includeQueryParameters: 'includeQueryParameters',
};
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

service_connect_access_log_configuration_property = ecs.CfnService.ServiceConnectAccessLogConfigurationProperty(
    format="format",

    # the properties below are optional
    include_query_parameters="includeQueryParameters"
)
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.*;

ServiceConnectAccessLogConfigurationProperty serviceConnectAccessLogConfigurationProperty = ServiceConnectAccessLogConfigurationProperty.builder()
        .format("format")

        // the properties below are optional
        .includeQueryParameters("includeQueryParameters")
        .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 serviceConnectAccessLogConfigurationProperty = new ServiceConnectAccessLogConfigurationProperty {
    Format = "format",

    // the properties below are optional
    IncludeQueryParameters = "includeQueryParameters"
};
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"

serviceConnectAccessLogConfigurationProperty := &ServiceConnectAccessLogConfigurationProperty{
	Format: jsii.String("format"),

	// the properties below are optional
	IncludeQueryParameters: jsii.String("includeQueryParameters"),
}

Properties ​

formatstringformatstrformatStringFormatstringFormat*string required #
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.

includeQueryParametersoptionalstringinclude_query_parametersoptionalstrincludeQueryParametersoptionalStringIncludeQueryParametersoptionalstringIncludeQueryParametersoptional*string #
Specifies whether to include query parameters in Service Connect access logs.
notes

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 .