Package com.pulumi.aws.apigatewayv2
Class Deployment
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.apigatewayv2.Deployment
-
public class Deployment extends com.pulumi.resources.CustomResource
Manages an Amazon API Gateway Version 2 deployment. More information can be found in the [Amazon API Gateway Developer Guide](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html). > **Note:** Creating a deployment for an API requires at least one `aws.apigatewayv2.Route` resource associated with that API. To avoid race conditions when all resources are being created together, you need to add implicit resource references via the `triggers` argument or explicit resource references using the [resource `dependsOn` meta-argument](https://www.pulumi.com/docs/intro/concepts/programming-model/#dependson). ## Example Usage ## Import Using `pulumi import`, import `aws_apigatewayv2_deployment` using the API identifier and deployment identifier. For example: ```sh $ pulumi import aws:apigatewayv2/deployment:Deployment example aabbccddee/1122334 ``` The `triggers` argument cannot be imported.
-
-
Constructor Summary
Constructors Constructor Description Deployment(java.lang.String name)
Deployment(java.lang.String name, DeploymentArgs args)
Deployment(java.lang.String name, DeploymentArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
apiId()
com.pulumi.core.Output<java.lang.Boolean>
autoDeployed()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
description()
static Deployment
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DeploymentState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
triggers()
-
-
-
Constructor Detail
-
Deployment
public Deployment(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
Deployment
public Deployment(java.lang.String name, DeploymentArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
Deployment
public Deployment(java.lang.String name, DeploymentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
apiId
public com.pulumi.core.Output<java.lang.String> apiId()
- Returns:
- API identifier.
-
autoDeployed
public com.pulumi.core.Output<java.lang.Boolean> autoDeployed()
- Returns:
- Whether the deployment was automatically released.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- Description for the deployment resource. Must be less than or equal to 1024 characters in length.
-
triggers
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> triggers()
- Returns:
- Map of arbitrary keys and values that, when changed, will trigger a redeployment.
-
get
public static Deployment get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable DeploymentState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-