Class: Aws::ServiceDiscovery::Types::UpdateInstanceCustomHealthStatusRequest

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-servicediscovery/types.rb

Overview

Note:

When making an API call, you may pass UpdateInstanceCustomHealthStatusRequest data as a hash:

{
  service_id: "ResourceId", # required
  instance_id: "ResourceId", # required
  status: "HEALTHY", # required, accepts HEALTHY, UNHEALTHY
}

Instance Attribute Summary collapse

Instance Attribute Details

#instance_idString

The ID of the instance that you want to change the health status for.

Returns:

  • (String)


2666
2667
2668
2669
2670
2671
# File 'lib/aws-sdk-servicediscovery/types.rb', line 2666

class UpdateInstanceCustomHealthStatusRequest < Struct.new(
  :service_id,
  :instance_id,
  :status)
  include Aws::Structure
end

#service_idString

The ID of the service that includes the configuration for the custom health check that you want to change the status for.

Returns:

  • (String)


2666
2667
2668
2669
2670
2671
# File 'lib/aws-sdk-servicediscovery/types.rb', line 2666

class UpdateInstanceCustomHealthStatusRequest < Struct.new(
  :service_id,
  :instance_id,
  :status)
  include Aws::Structure
end

#statusString

The new status of the instance, ‘HEALTHY` or `UNHEALTHY`.

Returns:

  • (String)


2666
2667
2668
2669
2670
2671
# File 'lib/aws-sdk-servicediscovery/types.rb', line 2666

class UpdateInstanceCustomHealthStatusRequest < Struct.new(
  :service_id,
  :instance_id,
  :status)
  include Aws::Structure
end