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.

This is the response object from the CreateDeploymentStrategy operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.AppConfig.Model.CreateDeploymentStrategyResponse

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

Syntax

C#
public class CreateDeploymentStrategyResponse : AmazonWebServiceResponse

The CreateDeploymentStrategyResponse type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property DeploymentDurationInMinutes System.Int32

Gets and sets the property DeploymentDurationInMinutes.

Total amount of time the deployment lasted.

Public Property Description System.String

Gets and sets the property Description.

The description of the deployment strategy.

Public Property FinalBakeTimeInMinutes System.Int32

Gets and sets the property FinalBakeTimeInMinutes.

The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic rollback.

Public Property GrowthFactor System.Single

Gets and sets the property GrowthFactor.

The percentage of targets that received a deployed configuration during each interval.

Public Property GrowthType Amazon.AppConfig.GrowthType

Gets and sets the property GrowthType.

The algorithm used to define how percentage grew over time.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Id System.String

Gets and sets the property Id.

The deployment strategy ID.

Public Property Name System.String

Gets and sets the property Name.

The name of the deployment strategy.

Public Property ReplicateTo Amazon.AppConfig.ReplicateTo

Gets and sets the property ReplicateTo.

Save the deployment strategy to a Systems Manager (SSM) document.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

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:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5