Class CfnStage.AccessLogSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnStage.AccessLogSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStage.AccessLogSettingsProperty>
- Enclosing interface:
CfnStage.AccessLogSettingsProperty
@Stability(Stable)
public static final class CfnStage.AccessLogSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStage.AccessLogSettingsProperty>
A builder for
CfnStage.AccessLogSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationArn(String destinationArn) Sets the value ofCfnStage.AccessLogSettingsProperty.getDestinationArn()Sets the value ofCfnStage.AccessLogSettingsProperty.getFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationArn
@Stability(Stable) public CfnStage.AccessLogSettingsProperty.Builder destinationArn(String destinationArn) Sets the value ofCfnStage.AccessLogSettingsProperty.getDestinationArn()- Parameters:
destinationArn- The ARN of the CloudWatch Logs log group to receive access logs. This parameter is required to enable access logging.- Returns:
this
-
format
Sets the value ofCfnStage.AccessLogSettingsProperty.getFormat()- Parameters:
format- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId. This parameter is required to enable access logging.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStage.AccessLogSettingsProperty>- Returns:
- a new instance of
CfnStage.AccessLogSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-