# RolloutStrategyProps

Properties for the Rollout Strategy.

Used as argument in: [RolloutStrategy.exponential](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.RolloutStrategy.html#exponential), [RolloutStrategy.linear](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.RolloutStrategy.html#linear)

- Source: [`aws-appconfig/lib/deployment-strategy.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-appconfig/lib/deployment-strategy.ts#L265)
- Type last changed: v2.130.0 · 23 Feb 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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)
        })
    })
});
```

Golang:

```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

- `deploymentDuration`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) (required) — The deployment duration of the deployment strategy.

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

- `finalBakeTime`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Duration.minutes(0) — The final bake time of the deployment strategy.

  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.

- `growthFactor`: number (required) — The growth factor of the deployment strategy.

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