createDeploymentStrategy
abstract suspend fun createDeploymentStrategy(input: CreateDeploymentStrategyRequest): CreateDeploymentStrategyResponse
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.
Samples
fun main() {
//sampleStart
// 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.
val resp = appConfigClient.createDeploymentStrategy {
name = "Example-Deployment"
deploymentDurationInMinutes = 15
growthFactor = 25.toFloat()
replicateTo = ReplicateTo.fromValue("SSM_DOCUMENT")
}
//sampleEnd
}