autoscaling_set_instance_health: Sets the health status of the specified instance

View source: R/autoscaling_operations.R

autoscaling_set_instance_healthR Documentation

Sets the health status of the specified instance

Description

Sets the health status of the specified instance.

See https://www.paws-r-sdk.com/docs/autoscaling_set_instance_health/ for full documentation.

Usage

autoscaling_set_instance_health(
  InstanceId,
  HealthStatus,
  ShouldRespectGracePeriod = NULL
)

Arguments

InstanceId

[required] The ID of the instance.

HealthStatus

[required] The health status of the instance. Set to Healthy to have the instance remain in service. Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.

ShouldRespectGracePeriod

If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call respects the grace period. Set this to False, to have the call not respect the grace period associated with the group.

For more information about the health check grace period, see Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.


paws.management documentation built on Sept. 12, 2024, 6:19 a.m.