Class CfnStage.AccessLogSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnStage.AccessLogSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStage.AccessLogSettingProperty>
- Enclosing interface:
CfnStage.AccessLogSettingProperty
@Stability(Stable)
public static final class CfnStage.AccessLogSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStage.AccessLogSettingProperty>
A builder for
CfnStage.AccessLogSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationArn(String destinationArn) Sets the value ofCfnStage.AccessLogSettingProperty.getDestinationArn()Sets the value ofCfnStage.AccessLogSettingProperty.getFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationArn
@Stability(Stable) public CfnStage.AccessLogSettingProperty.Builder destinationArn(String destinationArn) Sets the value ofCfnStage.AccessLogSettingProperty.getDestinationArn()- Parameters:
destinationArn- The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin withamazon-apigateway-. This parameter is required to enable access logging.- Returns:
this
-
format
Sets the value ofCfnStage.AccessLogSettingProperty.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.AccessLogSettingProperty>- Returns:
- a new instance of
CfnStage.AccessLogSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-