Package com.pulumi.aws.appconfig
Class DeploymentStrategy
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.appconfig.DeploymentStrategy
-
public class DeploymentStrategy extends com.pulumi.resources.CustomResourceProvides an AppConfig Deployment Strategy resource. ## Example Usage
## Import Using `pulumi import`, import AppConfig Deployment Strategies using their deployment strategy ID. For example: ```sh $ pulumi import aws:appconfig/deploymentStrategy:DeploymentStrategy example 11xxxxx ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.appconfig.DeploymentStrategy; import com.pulumi.aws.appconfig.DeploymentStrategyArgs; 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 DeploymentStrategy("example", DeploymentStrategyArgs.builder() .name("example-deployment-strategy-tf") .description("Example Deployment Strategy") .deploymentDurationInMinutes(3) .finalBakeTimeInMinutes(4) .growthFactor(10.0) .growthType("LINEAR") .replicateTo("NONE") .tags(Map.of("Type", "AppConfig Deployment Strategy")) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description DeploymentStrategy(java.lang.String name)DeploymentStrategy(java.lang.String name, DeploymentStrategyArgs args)DeploymentStrategy(java.lang.String name, DeploymentStrategyArgs 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>arn()com.pulumi.core.Output<java.lang.Integer>deploymentDurationInMinutes()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>finalBakeTimeInMinutes()static DeploymentStrategyget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DeploymentStrategyState 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.Double>growthFactor()com.pulumi.core.Output<java.util.Optional<java.lang.String>>growthType()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>replicateTo()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
-
DeploymentStrategy
public DeploymentStrategy(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
DeploymentStrategy
public DeploymentStrategy(java.lang.String name, DeploymentStrategyArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
DeploymentStrategy
public DeploymentStrategy(java.lang.String name, DeploymentStrategyArgs 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
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the AppConfig Deployment Strategy.
-
deploymentDurationInMinutes
public com.pulumi.core.Output<java.lang.Integer> deploymentDurationInMinutes()
- Returns:
- Total amount of time for a deployment to last. Minimum value of 0, maximum value of 1440.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- Description of the deployment strategy. Can be at most 1024 characters.
-
finalBakeTimeInMinutes
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> finalBakeTimeInMinutes()
- Returns:
- Amount of time AWS AppConfig monitors for alarms before considering the deployment to be complete and no longer eligible for automatic roll back. Minimum value of 0, maximum value of 1440.
-
growthFactor
public com.pulumi.core.Output<java.lang.Double> growthFactor()
- Returns:
- Percentage of targets to receive a deployed configuration during each interval. Minimum value of 1.0, maximum value of 100.0.
-
growthType
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> growthType()
- Returns:
- Algorithm used to define how percentage grows over time. Valid value: `LINEAR` and `EXPONENTIAL`. Defaults to `LINEAR`.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Name for the deployment strategy. Must be between 1 and 64 characters in length.
-
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.
-
replicateTo
public com.pulumi.core.Output<java.lang.String> replicateTo()
- Returns:
- Where to save the deployment strategy. Valid values: `NONE` and `SSM_DOCUMENT`.
-
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.
-
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 DeploymentStrategy get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable DeploymentStrategyState 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.
-
-