Package com.pulumi.aws.appconfig
Class Deployment
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.appconfig.Deployment
-
public class Deployment extends com.pulumi.resources.CustomResourceProvides an AppConfig Deployment resource for an `aws.appconfig.Application` resource. ## Example Usage
## Import Using `pulumi import`, import AppConfig Deployments using the application ID, environment ID, and deployment number separated by a slash (`/`). For example: ```sh $ pulumi import aws:appconfig/deployment:Deployment example 71abcde/11xxxxx/1 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.appconfig.Deployment; import com.pulumi.aws.appconfig.DeploymentArgs; import java.util.ArrayList; import java.util.Arrays; 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() .applicationId(exampleAwsAppconfigApplication.id()) .configurationProfileId(exampleAwsAppconfigConfigurationProfile.configurationProfileId()) .configurationVersion(exampleAwsAppconfigHostedConfigurationVersion.versionNumber()) .deploymentStrategyId(exampleAwsAppconfigDeploymentStrategy.id()) .description("My example deployment") .environmentId(exampleAwsAppconfigEnvironment.environmentId()) .kmsKeyIdentifier(exampleAwsKmsKey.arn()) .tags(Map.of("Type", "AppConfig Deployment")) .build()); } }
-
-
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>applicationId()com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.String>configurationProfileId()com.pulumi.core.Output<java.lang.String>configurationVersion()com.pulumi.core.Output<java.lang.Integer>deploymentNumber()com.pulumi.core.Output<java.lang.String>deploymentStrategyId()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()com.pulumi.core.Output<java.lang.String>environmentId()static Deploymentget(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.lang.String>kmsKeyArn()com.pulumi.core.Output<java.util.Optional<java.lang.String>>kmsKeyIdentifier()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>state()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()
-
-
-
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
-
applicationId
public com.pulumi.core.Output<java.lang.String> applicationId()
- Returns:
- Application ID. Must be between 4 and 7 characters in length.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the AppConfig Deployment.
-
configurationProfileId
public com.pulumi.core.Output<java.lang.String> configurationProfileId()
- Returns:
- Configuration profile ID. Must be between 4 and 7 characters in length.
-
configurationVersion
public com.pulumi.core.Output<java.lang.String> configurationVersion()
- Returns:
- Configuration version to deploy. Can be at most 1024 characters.
-
deploymentNumber
public com.pulumi.core.Output<java.lang.Integer> deploymentNumber()
- Returns:
- Deployment number.
-
deploymentStrategyId
public com.pulumi.core.Output<java.lang.String> deploymentStrategyId()
- Returns:
- Deployment strategy ID or name of a predefined deployment strategy. See [Predefined Deployment Strategies](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-deployment-strategy.html#appconfig-creating-deployment-strategy-predefined) for more details.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- Description of the deployment. Can be at most 1024 characters.
-
environmentId
public com.pulumi.core.Output<java.lang.String> environmentId()
- Returns:
- Environment ID. Must be between 4 and 7 characters in length.
-
kmsKeyArn
public com.pulumi.core.Output<java.lang.String> kmsKeyArn()
- Returns:
- ARN of the KMS key used to encrypt configuration data.
-
kmsKeyIdentifier
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> kmsKeyIdentifier()
- Returns:
- KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this to encrypt the configuration data using a customer managed key.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
state
public com.pulumi.core.Output<java.lang.String> state()
- Returns:
- State of the deployment.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
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.
-
-