You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-servicediscovery/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: { # required
      dns_records: [ # required
        {
          type: "SRV", # required, accepts SRV, A, AAAA, CNAME
          ttl: 1, # required
        },
      ],
    },
    health_check_config: {
      type: "HTTP", # accepts HTTP, HTTPS, TCP
      resource_path: "ResourcePath",
      failure_threshold: 1,
    },
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#idString

The ID of the service that you want to update.

Returns:

  • (String)


2222
2223
2224
2225
2226
# File 'gems/aws-sdk-servicediscovery/lib/aws-sdk-servicediscovery/types.rb', line 2222

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

#serviceTypes::ServiceChange

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



2222
2223
2224
2225
2226
# File 'gems/aws-sdk-servicediscovery/lib/aws-sdk-servicediscovery/types.rb', line 2222

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