# NOT RUN {
# The following operation updates an environment named "my-env" to version
# "v2" of the application to which it belongs:
# }
# NOT RUN {
svc$update_environment(
EnvironmentName = "my-env",
VersionLabel = "v2"
)
# }
# NOT RUN {
# The following operation configures several options in the
# aws:elb:loadbalancer namespace:
# }
# NOT RUN {
svc$update_environment(
EnvironmentName = "my-env",
OptionSettings = list(
list(
Namespace = "aws:elb:healthcheck",
OptionName = "Interval",
Value = "15"
),
list(
Namespace = "aws:elb:healthcheck",
OptionName = "Timeout",
Value = "8"
),
list(
Namespace = "aws:elb:healthcheck",
OptionName = "HealthyThreshold",
Value = "2"
),
list(
Namespace = "aws:elb:healthcheck",
OptionName = "UnhealthyThreshold",
Value = "3"
)
)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab