if (FALSE) {
# The following example updates the alias named BLUE to send 30% of
# traffic to version 2 and 70% to version 1.
svc$update_alias(
FunctionName = "my-function",
FunctionVersion = "2",
Name = "BLUE",
RoutingConfig = list(
AdditionalVersionWeights = list(
`1` = 0.7
)
)
)
}
Run the code above in your browser using DataLab