Class: Aws::ServiceDiscovery::Types::UpdateServiceRequest

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 UpdateServiceRequest data as a hash:

{
  id: "ResourceId", # required
  service: { # required
    description: "ResourceDescription",
    dns_config: {
      dns_records: [ # required
        {
          type: "SRV", # required, accepts SRV, A, AAAA, CNAME
          ttl: 1, # required
        },
      ],
    },
    health_check_config: {
      type: "HTTP", # required, accepts HTTP, HTTPS, TCP
      resource_path: "ResourcePath",
      failure_threshold: 1,
    },
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#idString

The ID of the service that you want to update.

Returns:

  • (String)


3303
3304
3305
3306
3307
3308
# File 'lib/aws-sdk-servicediscovery/types.rb', line 3303

class UpdateServiceRequest < Struct.new(
  :id,
  :service)
  SENSITIVE = []
  include Aws::Structure
end

#serviceTypes::ServiceChange

A complex type that contains the new settings for the service.



3303
3304
3305
3306
3307
3308
# File 'lib/aws-sdk-servicediscovery/types.rb', line 3303

class UpdateServiceRequest < Struct.new(
  :id,
  :service)
  SENSITIVE = []
  include Aws::Structure
end