@Stability(value=Stable) public static final class Deployment.Builder extends Object implements software.amazon.jsii.Builder<Deployment>
Deployment.| Modifier and Type | Method and Description |
|---|---|
Deployment.Builder |
api(IRestApi api)
The Rest API to deploy.
|
Deployment |
build() |
static Deployment.Builder |
create(software.constructs.Construct scope,
String id) |
Deployment.Builder |
description(String description)
A description of the purpose of the API Gateway deployment.
|
Deployment.Builder |
retainDeployments(Boolean retainDeployments)
When an API Gateway model is updated, a new deployment will automatically be created.
|
@Stability(value=Stable) public static Deployment.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Deployment.Builder.@Stability(value=Stable) public Deployment.Builder api(IRestApi api)
api - The Rest API to deploy. This parameter is required.this@Stability(value=Stable) public Deployment.Builder description(String description)
Default: - No description.
description - A description of the purpose of the API Gateway deployment. This parameter is required.this@Stability(value=Stable) public Deployment.Builder retainDeployments(Boolean retainDeployments)
If this is true, the old API Gateway Deployment resource will not be deleted. This will allow manually reverting back to a previous deployment in case for example
Default: false
retainDeployments - When an API Gateway model is updated, a new deployment will automatically be created. This parameter is required.this@Stability(value=Stable) public Deployment build()
build in interface software.amazon.jsii.Builder<Deployment>Copyright © 2022. All rights reserved.