Deployment Args
data class DeploymentArgs(val apiId: Output<String>? = null, val description: Output<String>? = null, val triggers: Output<Map<String, String>>? = null) : ConvertibleToJava<DeploymentArgs>
Manages an Amazon API Gateway Version 2 deployment. More information can be found in the Amazon API Gateway Developer Guide.
Note: Creating a deployment for an API requires at least one
aws.apigatewayv2.Routeresource associated with that API. To avoid race conditions when all resources are being created together, you need to add implicit resource references via thetriggersargument or explicit resource references using the resourcedependsOnmeta-argument.
Example Usage
Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apigatewayv2.Deployment;
import com.pulumi.aws.apigatewayv2.DeploymentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Deployment("example", DeploymentArgs.builder()
.apiId(aws_apigatewayv2_api.example().id())
.description("Example deployment")
.build());
}
}Content copied to clipboard
Import
aws_apigatewayv2_deployment can be imported by using the API identifier and deployment identifier, e.g.,
$ pulumi import aws:apigatewayv2/deployment:Deployment example aabbccddee/1122334Content copied to clipboard
The triggers argument cannot be imported.