# NOT RUN {
# This example enables instance protection for the specified instance.
svc$set_instance_protection(
AutoScalingGroupName = "my-auto-scaling-group",
InstanceIds = list(
"i-93633f9b"
),
ProtectedFromScaleIn = TRUE
)
# This example disables instance protection for the specified instance.
svc$set_instance_protection(
AutoScalingGroupName = "my-auto-scaling-group",
InstanceIds = list(
"i-93633f9b"
),
ProtectedFromScaleIn = FALSE
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab