Skip to content
v2.278.0

RolloutStrategyProps Struct ​

Properties for the Rollout Strategy.

Example ​

ts
declare const application: appconfig.Application;

new appconfig.HostedConfiguration(this, 'MyHostedConfiguration', {
  application,
  content: appconfig.ConfigurationContent.fromInlineText('This is my configuration content.'),
  deploymentStrategy: new appconfig.DeploymentStrategy(this, 'MyDeploymentStrategy', {
    rolloutStrategy: appconfig.RolloutStrategy.linear({
      growthFactor: 15,
      deploymentDuration: Duration.minutes(30),
      finalBakeTime: Duration.minutes(15),
    }),
  }),
});
python
# application: appconfig.Application


appconfig.HostedConfiguration(self, "MyHostedConfiguration",
    application=application,
    content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content."),
    deployment_strategy=appconfig.DeploymentStrategy(self, "MyDeploymentStrategy",
        rollout_strategy=appconfig.RolloutStrategy.linear(
            growth_factor=15,
            deployment_duration=Duration.minutes(30),
            final_bake_time=Duration.minutes(15)
        )
    )
)
java
Application application;


HostedConfiguration.Builder.create(this, "MyHostedConfiguration")
        .application(application)
        .content(ConfigurationContent.fromInlineText("This is my configuration content."))
        .deploymentStrategy(DeploymentStrategy.Builder.create(this, "MyDeploymentStrategy")
                .rolloutStrategy(RolloutStrategy.linear(RolloutStrategyProps.builder()
                        .growthFactor(15)
                        .deploymentDuration(Duration.minutes(30))
                        .finalBakeTime(Duration.minutes(15))
                        .build()))
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
Application application;


new HostedConfiguration(this, "MyHostedConfiguration", new HostedConfigurationProps {
    Application = application,
    Content = ConfigurationContent.FromInlineText("This is my configuration content."),
    DeploymentStrategy = new DeploymentStrategy(this, "MyDeploymentStrategy", new DeploymentStrategyProps {
        RolloutStrategy = RolloutStrategy.Linear(new RolloutStrategyProps {
            GrowthFactor = 15,
            DeploymentDuration = Duration.Minutes(30),
            FinalBakeTime = Duration.Minutes(15)
        })
    })
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var application Application


appconfig.NewHostedConfiguration(this, jsii.String("MyHostedConfiguration"), &HostedConfigurationProps{
	Application: Application,
	Content: appconfig.ConfigurationContent_FromInlineText(jsii.String("This is my configuration content.")),
	DeploymentStrategy: appconfig.NewDeploymentStrategy(this, jsii.String("MyDeploymentStrategy"), &DeploymentStrategyProps{
		RolloutStrategy: appconfig.RolloutStrategy_Linear(&RolloutStrategyProps{
			GrowthFactor: jsii.Number(15),
			DeploymentDuration: awscdk.Duration_Minutes(jsii.Number(30)),
			FinalBakeTime: awscdk.Duration_*Minutes(jsii.Number(15)),
		}),
	}),
})

Properties ​

deploymentDurationDurationdeployment_durationDurationdeploymentDurationDurationDeploymentDurationDurationDeploymentDurationDuration required #
The deployment duration of the deployment strategy.

This defines the total amount of time for a deployment to last.

finalBakeTimeoptionalDurationfinal_bake_timeoptionalDurationfinalBakeTimeoptionalDurationFinalBakeTimeoptionalDurationFinalBakeTimeoptionalDuration = Duration.minutes(0) #
The final bake time of the deployment strategy.
notes

This setting 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.

growthFactornumbergrowth_factorint | floatgrowthFactorNumberGrowthFactordoubleGrowthFactor*float64 required #
The growth factor of the deployment strategy.

This defines the percentage of targets to receive a deployed configuration during each interval.