@Stability(value=Stable) public static final class DeploymentProps.Builder extends Object implements software.amazon.jsii.Builder<DeploymentProps>
DeploymentProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DeploymentProps.Builder |
api(IRestApi api)
Sets the value of
DeploymentProps.getApi() |
DeploymentProps |
build()
Builds the configured instance.
|
DeploymentProps.Builder |
description(String description)
Sets the value of
DeploymentProps.getDescription() |
DeploymentProps.Builder |
retainDeployments(Boolean retainDeployments)
Sets the value of
DeploymentProps.getRetainDeployments() |
@Stability(value=Stable) public DeploymentProps.Builder api(IRestApi api)
DeploymentProps.getApi()api - The Rest API to deploy. This parameter is required.this@Stability(value=Stable) public DeploymentProps.Builder description(String description)
DeploymentProps.getDescription()description - A description of the purpose of the API Gateway deployment.this@Stability(value=Stable) public DeploymentProps.Builder retainDeployments(Boolean retainDeployments)
DeploymentProps.getRetainDeployments()retainDeployments - When an API Gateway model is updated, a new deployment will automatically be created.
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 examplethis@Stability(value=Stable) public DeploymentProps build()
build in interface software.amazon.jsii.Builder<DeploymentProps>DeploymentPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.