AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Creates a deployment strategy that defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateDeploymentStrategyAsync.

Namespace: Amazon.AppConfig
Assembly: AWSSDK.AppConfig.dll
Version: 3.x.y.z

Syntax

C#
public virtual CreateDeploymentStrategyResponse CreateDeploymentStrategy(
         CreateDeploymentStrategyRequest request
)

Parameters

request
Type: Amazon.AppConfig.Model.CreateDeploymentStrategyRequest

Container for the necessary parameters to execute the CreateDeploymentStrategy service method.

Return Value


The response from the CreateDeploymentStrategy service method, as returned by AppConfig.

Exceptions

ExceptionCondition
BadRequestException The input fails to satisfy the constraints specified by an Amazon Web Services service.
InternalServerException There was an internal failure in the AppConfig service.
ServiceQuotaExceededException The number of one more AppConfig resources exceeds the maximum allowed. Verify that your environment doesn't exceed the following service quotas: Applications: 100 max Deployment strategies: 20 max Configuration profiles: 100 max per application Environments: 20 max per application To resolve this issue, you can delete one or more resources and try again. Or, you can request a quota increase. For more information about quotas and to request an increase, see Service quotas for AppConfig in the Amazon Web Services General Reference.

Examples

The following create-deployment-strategy example creates a deployment strategy called Example-Deployment that takes 15 minutes and deploys the configuration to 25% of the application at a time. The strategy is also copied to an SSM Document.

To create a deployment strategy


var client = new AmazonAppConfigClient();
var response = client.CreateDeploymentStrategy(new CreateDeploymentStrategyRequest 
{
    DeploymentDurationInMinutes = 15,
    GrowthFactor = 25,
    Name = "Example-Deployment",
    ReplicateTo = "SSM_DOCUMENT"
});

int deploymentDurationInMinutes = response.DeploymentDurationInMinutes;
int finalBakeTimeInMinutes = response.FinalBakeTimeInMinutes;
float growthFactor = response.GrowthFactor;
string growthType = response.GrowthType;
string id = response.Id;
string name = response.Name;
string replicateTo = response.ReplicateTo;

            

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also