We recommend new projects start with resources from the AWS provider.
aws-native.appconfig.DeploymentStrategy
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::AppConfig::DeploymentStrategy
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var basicDeploymentStrategy = new AwsNative.AppConfig.DeploymentStrategy("basicDeploymentStrategy", new()
{
Name = "MyTestDeploymentStrategy",
Description = "A sample test deployment strategy.",
DeploymentDurationInMinutes = 3,
FinalBakeTimeInMinutes = 4,
GrowthFactor = 10,
GrowthType = AwsNative.AppConfig.DeploymentStrategyGrowthType.Linear,
ReplicateTo = AwsNative.AppConfig.DeploymentStrategyReplicateTo.None,
Tags = new[]
{
new AwsNative.Inputs.TagArgs
{
Key = "Env",
Value = "test",
},
},
});
});
package main
import (
awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/appconfig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appconfig.NewDeploymentStrategy(ctx, "basicDeploymentStrategy", &appconfig.DeploymentStrategyArgs{
Name: pulumi.String("MyTestDeploymentStrategy"),
Description: pulumi.String("A sample test deployment strategy."),
DeploymentDurationInMinutes: pulumi.Float64(3),
FinalBakeTimeInMinutes: pulumi.Float64(4),
GrowthFactor: pulumi.Float64(10),
GrowthType: appconfig.DeploymentStrategyGrowthTypeLinear,
ReplicateTo: appconfig.DeploymentStrategyReplicateToNone,
Tags: aws.TagArray{
&aws.TagArgs{
Key: pulumi.String("Env"),
Value: pulumi.String("test"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
basic_deployment_strategy = aws_native.appconfig.DeploymentStrategy("basicDeploymentStrategy",
name="MyTestDeploymentStrategy",
description="A sample test deployment strategy.",
deployment_duration_in_minutes=3,
final_bake_time_in_minutes=4,
growth_factor=10,
growth_type=aws_native.appconfig.DeploymentStrategyGrowthType.LINEAR,
replicate_to=aws_native.appconfig.DeploymentStrategyReplicateTo.NONE,
tags=[{
"key": "Env",
"value": "test",
}])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const basicDeploymentStrategy = new aws_native.appconfig.DeploymentStrategy("basicDeploymentStrategy", {
name: "MyTestDeploymentStrategy",
description: "A sample test deployment strategy.",
deploymentDurationInMinutes: 3,
finalBakeTimeInMinutes: 4,
growthFactor: 10,
growthType: aws_native.appconfig.DeploymentStrategyGrowthType.Linear,
replicateTo: aws_native.appconfig.DeploymentStrategyReplicateTo.None,
tags: [{
key: "Env",
value: "test",
}],
});
Coming soon!
Create DeploymentStrategy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DeploymentStrategy(name: string, args: DeploymentStrategyArgs, opts?: CustomResourceOptions);
@overload
def DeploymentStrategy(resource_name: str,
args: DeploymentStrategyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DeploymentStrategy(resource_name: str,
opts: Optional[ResourceOptions] = None,
deployment_duration_in_minutes: Optional[float] = None,
growth_factor: Optional[float] = None,
replicate_to: Optional[DeploymentStrategyReplicateTo] = None,
description: Optional[str] = None,
final_bake_time_in_minutes: Optional[float] = None,
growth_type: Optional[DeploymentStrategyGrowthType] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewDeploymentStrategy(ctx *Context, name string, args DeploymentStrategyArgs, opts ...ResourceOption) (*DeploymentStrategy, error)
public DeploymentStrategy(string name, DeploymentStrategyArgs args, CustomResourceOptions? opts = null)
public DeploymentStrategy(String name, DeploymentStrategyArgs args)
public DeploymentStrategy(String name, DeploymentStrategyArgs args, CustomResourceOptions options)
type: aws-native:appconfig:DeploymentStrategy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DeploymentStrategyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DeploymentStrategyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DeploymentStrategyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeploymentStrategyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeploymentStrategyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DeploymentStrategy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DeploymentStrategy resource accepts the following input properties:
- Deployment
Duration doubleIn Minutes - Total amount of time for a deployment to last.
- Growth
Factor double - The percentage of targets to receive a deployed configuration during each interval.
- Replicate
To Pulumi.Aws Native. App Config. Deployment Strategy Replicate To - Save the deployment strategy to a Systems Manager (SSM) document.
- Description string
- A description of the deployment strategy.
- Final
Bake doubleTime In Minutes - Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AWS AppConfig rolls back the deployment. You must configure permissions for AWS AppConfig to roll back based on CloudWatch alarms. For more information, see Configuring permissions for rollback based on Amazon CloudWatch alarms in the AWS AppConfig User Guide.
- Growth
Type Pulumi.Aws Native. App Config. Deployment Strategy Growth Type The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types:
Linear: For this type, AWS AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.
Exponential: For this type, AWS AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:
2*(2^0)
2*(2^1)
2*(2^2)
Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.
- Name string
- A name for the deployment strategy.
- List<Pulumi.
Aws Native. Inputs. Tag> - Assigns metadata to an AWS AppConfig resource. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define. You can specify a maximum of 50 tags for a resource.
- Deployment
Duration float64In Minutes - Total amount of time for a deployment to last.
- Growth
Factor float64 - The percentage of targets to receive a deployed configuration during each interval.
- Replicate
To DeploymentStrategy Replicate To - Save the deployment strategy to a Systems Manager (SSM) document.
- Description string
- A description of the deployment strategy.
- Final
Bake float64Time In Minutes - Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AWS AppConfig rolls back the deployment. You must configure permissions for AWS AppConfig to roll back based on CloudWatch alarms. For more information, see Configuring permissions for rollback based on Amazon CloudWatch alarms in the AWS AppConfig User Guide.
- Growth
Type DeploymentStrategy Growth Type The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types:
Linear: For this type, AWS AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.
Exponential: For this type, AWS AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:
2*(2^0)
2*(2^1)
2*(2^2)
Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.
- Name string
- A name for the deployment strategy.
- Tag
Args - Assigns metadata to an AWS AppConfig resource. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define. You can specify a maximum of 50 tags for a resource.
- deployment
Duration DoubleIn Minutes - Total amount of time for a deployment to last.
- growth
Factor Double - The percentage of targets to receive a deployed configuration during each interval.
- replicate
To DeploymentStrategy Replicate To - Save the deployment strategy to a Systems Manager (SSM) document.
- description String
- A description of the deployment strategy.
- final
Bake DoubleTime In Minutes - Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AWS AppConfig rolls back the deployment. You must configure permissions for AWS AppConfig to roll back based on CloudWatch alarms. For more information, see Configuring permissions for rollback based on Amazon CloudWatch alarms in the AWS AppConfig User Guide.
- growth
Type DeploymentStrategy Growth Type The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types:
Linear: For this type, AWS AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.
Exponential: For this type, AWS AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:
2*(2^0)
2*(2^1)
2*(2^2)
Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.
- name String
- A name for the deployment strategy.
- List<Tag>
- Assigns metadata to an AWS AppConfig resource. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define. You can specify a maximum of 50 tags for a resource.
- deployment
Duration numberIn Minutes - Total amount of time for a deployment to last.
- growth
Factor number - The percentage of targets to receive a deployed configuration during each interval.
- replicate
To DeploymentStrategy Replicate To - Save the deployment strategy to a Systems Manager (SSM) document.
- description string
- A description of the deployment strategy.
- final
Bake numberTime In Minutes - Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AWS AppConfig rolls back the deployment. You must configure permissions for AWS AppConfig to roll back based on CloudWatch alarms. For more information, see Configuring permissions for rollback based on Amazon CloudWatch alarms in the AWS AppConfig User Guide.
- growth
Type DeploymentStrategy Growth Type The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types:
Linear: For this type, AWS AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.
Exponential: For this type, AWS AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:
2*(2^0)
2*(2^1)
2*(2^2)
Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.
- name string
- A name for the deployment strategy.
- Tag[]
- Assigns metadata to an AWS AppConfig resource. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define. You can specify a maximum of 50 tags for a resource.
- deployment_
duration_ floatin_ minutes - Total amount of time for a deployment to last.
- growth_
factor float - The percentage of targets to receive a deployed configuration during each interval.
- replicate_
to DeploymentStrategy Replicate To - Save the deployment strategy to a Systems Manager (SSM) document.
- description str
- A description of the deployment strategy.
- final_
bake_ floattime_ in_ minutes - Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AWS AppConfig rolls back the deployment. You must configure permissions for AWS AppConfig to roll back based on CloudWatch alarms. For more information, see Configuring permissions for rollback based on Amazon CloudWatch alarms in the AWS AppConfig User Guide.
- growth_
type DeploymentStrategy Growth Type The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types:
Linear: For this type, AWS AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.
Exponential: For this type, AWS AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:
2*(2^0)
2*(2^1)
2*(2^2)
Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.
- name str
- A name for the deployment strategy.
- Sequence[Tag
Args] - Assigns metadata to an AWS AppConfig resource. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define. You can specify a maximum of 50 tags for a resource.
- deployment
Duration NumberIn Minutes - Total amount of time for a deployment to last.
- growth
Factor Number - The percentage of targets to receive a deployed configuration during each interval.
- replicate
To "NONE" | "SSM_DOCUMENT" - Save the deployment strategy to a Systems Manager (SSM) document.
- description String
- A description of the deployment strategy.
- final
Bake NumberTime In Minutes - Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AWS AppConfig rolls back the deployment. You must configure permissions for AWS AppConfig to roll back based on CloudWatch alarms. For more information, see Configuring permissions for rollback based on Amazon CloudWatch alarms in the AWS AppConfig User Guide.
- growth
Type "EXPONENTIAL" | "LINEAR" The algorithm used to define how percentage grows over time. AWS AppConfig supports the following growth types:
Linear: For this type, AWS AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.
Exponential: For this type, AWS AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:
2*(2^0)
2*(2^1)
2*(2^2)
Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.
- name String
- A name for the deployment strategy.
- List<Property Map>
- Assigns metadata to an AWS AppConfig resource. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define. You can specify a maximum of 50 tags for a resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DeploymentStrategy resource produces the following output properties:
Supporting Types
DeploymentStrategyGrowthType, DeploymentStrategyGrowthTypeArgs
- Exponential
- EXPONENTIAL
- Linear
- LINEAR
- Deployment
Strategy Growth Type Exponential - EXPONENTIAL
- Deployment
Strategy Growth Type Linear - LINEAR
- Exponential
- EXPONENTIAL
- Linear
- LINEAR
- Exponential
- EXPONENTIAL
- Linear
- LINEAR
- EXPONENTIAL
- EXPONENTIAL
- LINEAR
- LINEAR
- "EXPONENTIAL"
- EXPONENTIAL
- "LINEAR"
- LINEAR
DeploymentStrategyReplicateTo, DeploymentStrategyReplicateToArgs
- None
- NONE
- Ssm
Document - SSM_DOCUMENT
- Deployment
Strategy Replicate To None - NONE
- Deployment
Strategy Replicate To Ssm Document - SSM_DOCUMENT
- None
- NONE
- Ssm
Document - SSM_DOCUMENT
- None
- NONE
- Ssm
Document - SSM_DOCUMENT
- NONE
- NONE
- SSM_DOCUMENT
- SSM_DOCUMENT
- "NONE"
- NONE
- "SSM_DOCUMENT"
- SSM_DOCUMENT
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.