Class ServiceConnectAccessLogConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ServiceConnectAccessLogConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceConnectAccessLogConfiguration>
- Enclosing interface:
ServiceConnectAccessLogConfiguration
@Stability(Stable)
public static final class ServiceConnectAccessLogConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<ServiceConnectAccessLogConfiguration>
A builder for
ServiceConnectAccessLogConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.format(ServiceConnectAccessLogFormat format) Sets the value ofServiceConnectAccessLogConfiguration.getFormat()includeQueryParameters(Boolean includeQueryParameters) Sets the value ofServiceConnectAccessLogConfiguration.getIncludeQueryParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
format
@Stability(Stable) public ServiceConnectAccessLogConfiguration.Builder format(ServiceConnectAccessLogFormat format) Sets the value ofServiceConnectAccessLogConfiguration.getFormat()- Parameters:
format- The format for Service Connect access log output. This parameter is required.- TEXT: Human-readable text format
- JSON: Structured JSON format for log analysis tools
- Returns:
this
-
includeQueryParameters
@Stability(Stable) public ServiceConnectAccessLogConfiguration.Builder includeQueryParameters(Boolean includeQueryParameters) Sets the value ofServiceConnectAccessLogConfiguration.getIncludeQueryParameters()- Parameters:
includeQueryParameters- 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 as query parameters may contain sensitive information such as request IDs and tokens.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceConnectAccessLogConfiguration>- Returns:
- a new instance of
ServiceConnectAccessLogConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-