updateAlias
Updates the configuration of a Lambda function alias.
Samples
// The following example updates the alias named BLUE to send 30 of traffic to version 2 and 70 to
// version 1.
val resp = lambdaClient.updateAlias {
functionName = "my-function"
name = "BLUE"
functionVersion = "2"
routingConfig = AliasRoutingConfiguration {
additionalVersionWeights = mapOf<String, Double>(
"1" to 0.7.toDouble()
)
}
}Content copied to clipboard