Class CfnStage.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnStage.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStage>
- Enclosing class:
CfnStage
@Stability(Stable)
public static final class CfnStage.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStage>
A fluent builder for
CfnStage
.-
Method Summary
Modifier and TypeMethodDescriptionaccessLogSettings
(IResolvable accessLogSettings) Settings for logging access in this stage.accessLogSettings
(CfnStage.AccessLogSettingsProperty accessLogSettings) Settings for logging access in this stage.accessPolicyId
(String accessPolicyId) This parameter is not currently supported.The API identifier.autoDeploy
(Boolean autoDeploy) Specifies whether updates to an API automatically trigger a new deployment.autoDeploy
(IResolvable autoDeploy) Specifies whether updates to an API automatically trigger a new deployment.build()
clientCertificateId
(String clientCertificateId) The identifier of a client certificate for aStage
.static CfnStage.Builder
defaultRouteSettings
(IResolvable defaultRouteSettings) The default route settings for the stage.defaultRouteSettings
(CfnStage.RouteSettingsProperty defaultRouteSettings) The default route settings for the stage.deploymentId
(String deploymentId) The deployment identifier for the API stage.description
(String description) The description for the API stage.routeSettings
(Object routeSettings) Route settings for the stage.The stage name.stageVariables
(Object stageVariables) A map that defines the stage variables for aStage
.The collection of tags.
-
Method Details
-
create
@Stability(Stable) public static CfnStage.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnStage.Builder
.
-
apiId
The API identifier.- Parameters:
apiId
- The API identifier. This parameter is required.- Returns:
this
- See Also:
-
stageName
The stage name.Stage names can contain only alphanumeric characters, hyphens, and underscores, or be
$default
. Maximum length is 128 characters.- Parameters:
stageName
- The stage name. This parameter is required.- Returns:
this
- See Also:
-
accessLogSettings
Settings for logging access in this stage.- Parameters:
accessLogSettings
- Settings for logging access in this stage. This parameter is required.- Returns:
this
- See Also:
-
accessLogSettings
@Stability(Stable) public CfnStage.Builder accessLogSettings(CfnStage.AccessLogSettingsProperty accessLogSettings) Settings for logging access in this stage.- Parameters:
accessLogSettings
- Settings for logging access in this stage. This parameter is required.- Returns:
this
- See Also:
-
accessPolicyId
This parameter is not currently supported.- Parameters:
accessPolicyId
- This parameter is not currently supported. This parameter is required.- Returns:
this
- See Also:
-
autoDeploy
Specifies whether updates to an API automatically trigger a new deployment.The default value is
false
.- Parameters:
autoDeploy
- Specifies whether updates to an API automatically trigger a new deployment. This parameter is required.- Returns:
this
- See Also:
-
autoDeploy
Specifies whether updates to an API automatically trigger a new deployment.The default value is
false
.- Parameters:
autoDeploy
- Specifies whether updates to an API automatically trigger a new deployment. This parameter is required.- Returns:
this
- See Also:
-
clientCertificateId
The identifier of a client certificate for aStage
.Supported only for WebSocket APIs.
- Parameters:
clientCertificateId
- The identifier of a client certificate for aStage
. This parameter is required.- Returns:
this
- See Also:
-
defaultRouteSettings
The default route settings for the stage.- Parameters:
defaultRouteSettings
- The default route settings for the stage. This parameter is required.- Returns:
this
- See Also:
-
defaultRouteSettings
@Stability(Stable) public CfnStage.Builder defaultRouteSettings(CfnStage.RouteSettingsProperty defaultRouteSettings) The default route settings for the stage.- Parameters:
defaultRouteSettings
- The default route settings for the stage. This parameter is required.- Returns:
this
- See Also:
-
deploymentId
The deployment identifier for the API stage.Can't be updated if
autoDeploy
is enabled.- Parameters:
deploymentId
- The deployment identifier for the API stage. This parameter is required.- Returns:
this
- See Also:
-
description
The description for the API stage.- Parameters:
description
- The description for the API stage. This parameter is required.- Returns:
this
- See Also:
-
routeSettings
Route settings for the stage.- Parameters:
routeSettings
- Route settings for the stage. This parameter is required.- Returns:
this
- See Also:
-
stageVariables
A map that defines the stage variables for aStage
.Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
- Parameters:
stageVariables
- A map that defines the stage variables for aStage
. This parameter is required.- Returns:
this
- See Also:
-
tags
The collection of tags.Each tag element is associated with a given resource.
- Parameters:
tags
- The collection of tags. This parameter is required.- Returns:
this
- See Also:
-
build
-