lib/aws-sdk-servicediscovery/client.rb in aws-sdk-servicediscovery-1.36.0 vs lib/aws-sdk-servicediscovery/client.rb in aws-sdk-servicediscovery-1.37.0
- old
+ new
@@ -340,12 +340,12 @@
# Creates an HTTP namespace. Service instances registered using an HTTP
# namespace can be discovered using a `DiscoverInstances` request but
# can't be discovered using DNS.
#
# For the current quota on the number of namespaces that you can create
- # using the same AWS account, see [AWS Cloud Map quotas][1] in the *AWS
- # Cloud Map Developer Guide*.
+ # using the same account, see [Cloud Map quotas][1] in the *Cloud Map
+ # Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html
#
@@ -421,21 +421,21 @@
# scheme. For example, if you name your namespace `example.com` and name
# your service `backend`, the resulting DNS name for the service is
# `backend.example.com`. Service instances that are registered using a
# private DNS namespace can be discovered using either a
# `DiscoverInstances` request or using DNS. For the current quota on the
- # number of namespaces that you can create using the same AWS account,
- # see [AWS Cloud Map Limits][1] in the *AWS Cloud Map Developer Guide*.
+ # number of namespaces that you can create using the same account, see
+ # [Cloud Map quotas][1] in the *Cloud Map Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html
#
# @option params [required, String] :name
# The name that you want to assign to this namespace. When you create a
- # private DNS namespace, AWS Cloud Map automatically creates an Amazon
- # Route 53 private hosted zone that has the same name as the namespace.
+ # private DNS namespace, Cloud Map automatically creates an Amazon Route
+ # 53 private hosted zone that has the same name as the namespace.
#
# @option params [String] :creator_request_id
# A unique string that identifies the request and that allows failed
# `CreatePrivateDnsNamespace` requests to be retried without the risk of
# running the operation twice. `CreatorRequestId` can be any unique
@@ -454,10 +454,13 @@
# @option params [Array<Types::Tag>] :tags
# The tags to add to the namespace. Each tag consists of a key and an
# optional value that you define. Tags keys can be up to 128 characters
# in length, and tag values can be up to 256 characters in length.
#
+ # @option params [Types::PrivateDnsNamespaceProperties] :properties
+ # Properties for the private DNS namespace.
+ #
# @return [Types::CreatePrivateDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreatePrivateDnsNamespaceResponse#operation_id #operation_id} => String
#
#
@@ -487,10 +490,17 @@
# {
# key: "TagKey", # required
# value: "TagValue", # required
# },
# ],
+ # properties: {
+ # dns_properties: { # required
+ # soa: { # required
+ # ttl: 1, # required
+ # },
+ # },
+ # },
# })
#
# @example Response structure
#
# resp.operation_id #=> String
@@ -509,12 +519,12 @@
# example, if you name your namespace `example.com` and name your
# service `backend`, the resulting DNS name for the service is
# `backend.example.com`. You can discover instances that were registered
# with a public DNS namespace by using either a `DiscoverInstances`
# request or using DNS. For the current quota on the number of
- # namespaces that you can create using the same AWS account, see [AWS
- # Cloud Map Quotas][1]in the *AWS Cloud Map Developer Guide*.
+ # namespaces that you can create using the same account, see [Cloud Map
+ # quotas][1] in the *Cloud Map Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html
#
@@ -536,10 +546,13 @@
# @option params [Array<Types::Tag>] :tags
# The tags to add to the namespace. Each tag consists of a key and an
# optional value that you define. Tags keys can be up to 128 characters
# in length, and tag values can be up to 256 characters in length.
#
+ # @option params [Types::PublicDnsNamespaceProperties] :properties
+ # Properties for the public DNS namespace.
+ #
# @return [Types::CreatePublicDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreatePublicDnsNamespaceResponse#operation_id #operation_id} => String
#
#
@@ -568,10 +581,17 @@
# {
# key: "TagKey", # required
# value: "TagValue", # required
# },
# ],
+ # properties: {
+ # dns_properties: { # required
+ # soa: { # required
+ # ttl: 1, # required
+ # },
+ # },
+ # },
# })
#
# @example Response structure
#
# resp.operation_id #=> String
@@ -587,11 +607,11 @@
# Creates a service. This action defines the configuration for the
# following entities:
#
# * For public and private DNS namespaces, one of the following
- # combinations of DNS records in Amazon Route 53:
+ # combinations of DNS records in Amazon Route 53:
#
# * `A`
#
# * `AAAA`
#
@@ -602,36 +622,36 @@
# * `CNAME`
#
# * Optionally, a health check
#
# After you create the service, you can submit a [RegisterInstance][1]
- # request, and AWS Cloud Map uses the values in the configuration to
- # create the specified entities.
+ # request, and Cloud Map uses the values in the configuration to create
+ # the specified entities.
#
# For the current quota on the number of instances that you can register
- # using the same namespace and using the same service, see [AWS Cloud
- # Map Limits][2] in the *AWS Cloud Map Developer Guide*.
+ # using the same namespace and using the same service, see [Cloud Map
+ # quotas][2] in the *Cloud Map Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html
# [2]: https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html
#
# @option params [required, String] :name
# The name that you want to assign to the service.
#
- # If you want AWS Cloud Map to create an `SRV` record when you register
- # an instance and you're using a system that requires a specific `SRV`
+ # If you want Cloud Map to create an `SRV` record when you register an
+ # instance and you're using a system that requires a specific `SRV`
# format, such as [HAProxy][1], specify the following for `Name`\:
#
# * Start the name with an underscore (\_), such as `_exampleservice`.
#
# * End the name with *.\_protocol*, such as `._tcp`.
#
- # When you register an instance, AWS Cloud Map creates an `SRV` record
- # and assigns a name to the record by concatenating the service name and
- # the namespace name (for example,
+ # When you register an instance, Cloud Map creates an `SRV` record and
+ # assigns a name to the record by concatenating the service name and the
+ # namespace name (for example,
#
# `_exampleservice._tcp.example.com`).
#
# <note markdown="1"> For services that are accessible by DNS queries, you can't create
# multiple services with names that differ only by case (such as EXAMPLE
@@ -662,25 +682,25 @@
#
# @option params [String] :description
# A description for the service.
#
# @option params [Types::DnsConfig] :dns_config
- # A complex type that contains information about the Amazon Route 53
- # records that you want AWS Cloud Map to create when you register an
+ # A complex type that contains information about the Amazon Route 53
+ # records that you want Cloud Map to create when you register an
# instance.
#
# @option params [Types::HealthCheckConfig] :health_check_config
# *Public DNS and HTTP namespaces only.* A complex type that contains
- # settings for an optional Route 53 health check. If you specify
- # settings for a health check, AWS Cloud Map associates the health check
- # with all the Route 53 DNS records that you specify in `DnsConfig`.
+ # settings for an optional Route 53 health check. If you specify
+ # settings for a health check, Cloud Map associates the health check
+ # with all the Route 53 DNS records that you specify in `DnsConfig`.
#
# If you specify a health check configuration, you can specify either
# `HealthCheckCustomConfig` or `HealthCheckConfig` but not both.
#
- # For information about the charges for health checks, see [AWS Cloud
- # Map Pricing][1].
+ # For information about the charges for health checks, see [Cloud Map
+ # Pricing][1].
#
#
#
# [1]: http://aws.amazon.com/cloud-map/pricing/
#
@@ -892,12 +912,12 @@
def delete_service(params = {}, options = {})
req = build_request(:delete_service, params)
req.send_request(options)
end
- # Deletes the Amazon Route 53 DNS records and health check, if any, that
- # AWS Cloud Map created for the specified instance.
+ # Deletes the Amazon Route 53 DNS records and health check, if any, that
+ # Cloud Map created for the specified instance.
#
# @option params [required, String] :service_id
# The ID of the service that the instance is associated with.
#
# @option params [required, String] :instance_id
@@ -959,14 +979,13 @@
# @option params [required, String] :service_name
# The name of the service that you specified when you registered the
# instance.
#
# @option params [Integer] :max_results
- # The maximum number of instances that you want AWS Cloud Map to return
- # in the response to a `DiscoverInstances` request. If you don't
- # specify a value for `MaxResults`, AWS Cloud Map returns up to 100
- # instances.
+ # The maximum number of instances that you want Cloud Map to return in
+ # the response to a `DiscoverInstances` request. If you don't specify a
+ # value for `MaxResults`, Cloud Map returns up to 100 instances.
#
# @option params [Hash<String,String>] :query_parameters
# Filters to scope the results based on custom attributes for the
# instance (for example, `\{version=v1, az=1a\}`). Only instances that
# match all the specified key-value pairs are returned.
@@ -1140,12 +1159,12 @@
#
# @option params [Array<String>] :instances
# An array that contains the IDs of all the instances that you want to
# get the health status for.
#
- # If you omit `Instances`, AWS Cloud Map returns the health status for
- # all the instances that are associated with the specified service.
+ # If you omit `Instances`, Cloud Map returns the health status for all
+ # the instances that are associated with the specified service.
#
# <note markdown="1"> To get the IDs for the instances that you've registered by using a
# specified service, submit a [ListInstances][1] request.
#
# </note>
@@ -1153,13 +1172,13 @@
#
#
# [1]: https://docs.aws.amazon.com/cloud-map/latest/api/API_ListInstances.html
#
# @option params [Integer] :max_results
- # The maximum number of instances that you want AWS Cloud Map to return
- # in the response to a `GetInstancesHealthStatus` request. If you don't
- # specify a value for `MaxResults`, AWS Cloud Map returns up to 100
+ # The maximum number of instances that you want Cloud Map to return in
+ # the response to a `GetInstancesHealthStatus` request. If you don't
+ # specify a value for `MaxResults`, Cloud Map returns up to 100
# instances.
#
# @option params [String] :next_token
# For the first `GetInstancesHealthStatus` request, omit this value.
#
@@ -1267,10 +1286,11 @@
# resp.namespace.name #=> String
# resp.namespace.type #=> String, one of "DNS_PUBLIC", "DNS_PRIVATE", "HTTP"
# resp.namespace.description #=> String
# resp.namespace.service_count #=> Integer
# resp.namespace.properties.dns_properties.hosted_zone_id #=> String
+ # resp.namespace.properties.dns_properties.soa.ttl #=> Integer
# resp.namespace.properties.http_properties.http_name #=> String
# resp.namespace.create_date #=> Time
# resp.namespace.creator_request_id #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetNamespace AWS API Documentation
@@ -1331,11 +1351,11 @@
# })
#
# @example Response structure
#
# resp.operation.id #=> String
- # resp.operation.type #=> String, one of "CREATE_NAMESPACE", "DELETE_NAMESPACE", "UPDATE_SERVICE", "REGISTER_INSTANCE", "DEREGISTER_INSTANCE"
+ # resp.operation.type #=> String, one of "CREATE_NAMESPACE", "DELETE_NAMESPACE", "UPDATE_NAMESPACE", "UPDATE_SERVICE", "REGISTER_INSTANCE", "DEREGISTER_INSTANCE"
# resp.operation.status #=> String, one of "SUBMITTED", "PENDING", "SUCCESS", "FAIL"
# resp.operation.error_message #=> String
# resp.operation.error_code #=> String
# resp.operation.create_date #=> Time
# resp.operation.update_date #=> Time
@@ -1436,13 +1456,13 @@
# can submit another `ListInstances` request to get the next group of
# results. Specify the value of `NextToken` from the previous response
# in the next request.
#
# @option params [Integer] :max_results
- # The maximum number of instances that you want AWS Cloud Map to return
- # in the response to a `ListInstances` request. If you don't specify a
- # value for `MaxResults`, AWS Cloud Map returns up to 100 instances.
+ # The maximum number of instances that you want Cloud Map to return in
+ # the response to a `ListInstances` request. If you don't specify a
+ # value for `MaxResults`, Cloud Map returns up to 100 instances.
#
# @return [Types::ListInstancesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListInstancesResponse#instances #instances} => Array<Types::InstanceSummary>
# * {Types::ListInstancesResponse#next_token #next_token} => String
@@ -1495,31 +1515,31 @@
req = build_request(:list_instances, params)
req.send_request(options)
end
# Lists summary information about the namespaces that were created by
- # the current AWS account.
+ # the current account.
#
# @option params [String] :next_token
# For the first `ListNamespaces` request, omit this value.
#
# If the response contains `NextToken`, submit another `ListNamespaces`
# request to get the next group of results. Specify the value of
# `NextToken` from the previous response in the next request.
#
- # <note markdown="1"> AWS Cloud Map gets `MaxResults` namespaces and then filters them based
- # on the specified criteria. It's possible that no namespaces in the
- # first `MaxResults` namespaces matched the specified criteria but that
+ # <note markdown="1"> Cloud Map gets `MaxResults` namespaces and then filters them based on
+ # the specified criteria. It's possible that no namespaces in the first
+ # `MaxResults` namespaces matched the specified criteria but that
# subsequent groups of `MaxResults` namespaces do contain namespaces
# that match the criteria.
#
# </note>
#
# @option params [Integer] :max_results
- # The maximum number of namespaces that you want AWS Cloud Map to return
- # in the response to a `ListNamespaces` request. If you don't specify a
- # value for `MaxResults`, AWS Cloud Map returns up to 100 namespaces.
+ # The maximum number of namespaces that you want Cloud Map to return in
+ # the response to a `ListNamespaces` request. If you don't specify a
+ # value for `MaxResults`, Cloud Map returns up to 100 namespaces.
#
# @option params [Array<Types::NamespaceFilter>] :filters
# A complex type that contains specifications for the namespaces that
# you want to list.
#
@@ -1614,10 +1634,11 @@
# resp.namespaces[0].name #=> String
# resp.namespaces[0].type #=> String, one of "DNS_PUBLIC", "DNS_PRIVATE", "HTTP"
# resp.namespaces[0].description #=> String
# resp.namespaces[0].service_count #=> Integer
# resp.namespaces[0].properties.dns_properties.hosted_zone_id #=> String
+ # resp.namespaces[0].properties.dns_properties.soa.ttl #=> Integer
# resp.namespaces[0].properties.http_properties.http_name #=> String
# resp.namespaces[0].create_date #=> Time
# resp.next_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListNamespaces AWS API Documentation
@@ -1636,22 +1657,22 @@
#
# If the response contains `NextToken`, submit another `ListOperations`
# request to get the next group of results. Specify the value of
# `NextToken` from the previous response in the next request.
#
- # <note markdown="1"> AWS Cloud Map gets `MaxResults` operations and then filters them based
- # on the specified criteria. It's possible that no operations in the
- # first `MaxResults` operations matched the specified criteria but that
+ # <note markdown="1"> Cloud Map gets `MaxResults` operations and then filters them based on
+ # the specified criteria. It's possible that no operations in the first
+ # `MaxResults` operations matched the specified criteria but that
# subsequent groups of `MaxResults` operations do contain operations
# that match the criteria.
#
# </note>
#
# @option params [Integer] :max_results
- # The maximum number of items that you want AWS Cloud Map to return in
- # the response to a `ListOperations` request. If you don't specify a
- # value for `MaxResults`, AWS Cloud Map returns up to 100 operations.
+ # The maximum number of items that you want Cloud Map to return in the
+ # response to a `ListOperations` request. If you don't specify a value
+ # for `MaxResults`, Cloud Map returns up to 100 operations.
#
# @option params [Array<Types::OperationFilter>] :filters
# A complex type that contains specifications for the operations that
# you want to list, for example, operations that you started between a
# specified start date and end date.
@@ -1740,22 +1761,22 @@
#
# If the response contains `NextToken`, submit another `ListServices`
# request to get the next group of results. Specify the value of
# `NextToken` from the previous response in the next request.
#
- # <note markdown="1"> AWS Cloud Map gets `MaxResults` services and then filters them based
- # on the specified criteria. It's possible that no services in the
- # first `MaxResults` services matched the specified criteria but that
+ # <note markdown="1"> Cloud Map gets `MaxResults` services and then filters them based on
+ # the specified criteria. It's possible that no services in the first
+ # `MaxResults` services matched the specified criteria but that
# subsequent groups of `MaxResults` services do contain services that
# match the criteria.
#
# </note>
#
# @option params [Integer] :max_results
- # The maximum number of services that you want AWS Cloud Map to return
- # in the response to a `ListServices` request. If you don't specify a
- # value for `MaxResults`, AWS Cloud Map returns up to 100 services.
+ # The maximum number of services that you want Cloud Map to return in
+ # the response to a `ListServices` request. If you don't specify a
+ # value for `MaxResults`, Cloud Map returns up to 100 services.
#
# @option params [Array<Types::ServiceFilter>] :filters
# A complex type that contains specifications for the namespaces that
# you want to list services for.
#
@@ -1913,11 +1934,11 @@
# One `RegisterInstance` request must complete before you can submit
# another request and specify the same service ID and instance ID.
#
# For more information, see [CreateService][1].
#
- # When AWS Cloud Map receives a DNS query for the specified DNS name, it
+ # When Cloud Map receives a DNS query for the specified DNS name, it
# returns the applicable value:
#
# * **If the health check is healthy**\: returns all the records
#
# * **If the health check is unhealthy**\: returns the applicable value
@@ -1925,12 +1946,12 @@
#
# * **If you didn't specify a health check configuration**\: returns
# all the records
#
# For the current quota on the number of instances that you can register
- # using the same namespace and using the same service, see [AWS Cloud
- # Map Limits][2] in the *AWS Cloud Map Developer Guide*.
+ # using the same namespace and using the same service, see [Cloud Map
+ # quotas][2] in the *Cloud Map Developer Guide*.
#
#
#
# [1]: https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html
# [2]: https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html
@@ -1951,14 +1972,14 @@
# * You can use this value to update an existing instance.
#
# * To register a new instance, you must specify a value that's unique
# among instances that you register by using the same service.
#
- # * If you specify an existing `InstanceId` and `ServiceId`, AWS Cloud
- # Map updates the existing DNS records, if any. If there's also an
- # existing health check, AWS Cloud Map deletes the old health check
- # and creates a new one.
+ # * If you specify an existing `InstanceId` and `ServiceId`, Cloud Map
+ # updates the existing DNS records, if any. If there's also an
+ # existing health check, Cloud Map deletes the old health check and
+ # creates a new one.
#
# <note markdown="1"> The health check isn't deleted immediately, so it will still appear
# for a while if you submit a `ListHealthChecks` request, for example.
#
# </note>
@@ -1990,15 +2011,15 @@
#
# Supported attribute keys include the following:
#
# AWS\_ALIAS\_DNS\_NAME
#
- # : If you want AWS Cloud Map to create an Amazon Route 53 alias record
- # that routes traffic to an Elastic Load Balancing load balancer,
- # specify the DNS name that's associated with the load balancer. For
+ # : If you want Cloud Map to create an Amazon Route 53 alias record that
+ # routes traffic to an Elastic Load Balancing load balancer, specify
+ # the DNS name that's associated with the load balancer. For
# information about how to get the DNS name, see "DNSName" in the
- # topic [AliasTarget][1] in the *Route 53 API Reference*.
+ # topic [AliasTarget][1] in the *Route 53 API Reference*.
#
# Note the following:
#
# * The configuration for the service that's specified by `ServiceId`
# must include settings for an `A` record, an `AAAA` record, or
@@ -2006,17 +2027,17 @@
#
# * In the service that's specified by `ServiceId`, the value of
# `RoutingPolicy` must be `WEIGHTED`.
#
# * If the service that's specified by `ServiceId` includes
- # `HealthCheckConfig` settings, AWS Cloud Map will create the
- # Route 53 health check, but it doesn't associate the health check
- # with the alias record.
+ # `HealthCheckConfig` settings, Cloud Map will create the Route 53
+ # health check, but it doesn't associate the health check with the
+ # alias record.
#
# * Auto naming currently doesn't support creating alias records that
- # route traffic to AWS resources other than Elastic Load Balancing
- # load balancers.
+ # route traffic to Amazon Web Services resources other than Elastic
+ # Load Balancing load balancers.
#
# * If you specify a value for `AWS_ALIAS_DNS_NAME`, don't specify
# values for any of the `AWS_INSTANCE` attributes.
#
# AWS\_EC2\_INSTANCE\_ID
@@ -2037,48 +2058,48 @@
# status is `HEALTHY`.
#
# AWS\_INSTANCE\_CNAME
#
# : If the service configuration includes a `CNAME` record, the domain
- # name that you want Route 53 to return in response to DNS queries
+ # name that you want Route 53 to return in response to DNS queries
# (for example, `example.com`).
#
# This value is required if the service specified by `ServiceId`
# includes settings for an `CNAME` record.
#
# AWS\_INSTANCE\_IPV4
#
# : If the service configuration includes an `A` record, the IPv4
- # address that you want Route 53 to return in response to DNS queries
+ # address that you want Route 53 to return in response to DNS queries
# (for example, `192.0.2.44`).
#
# This value is required if the service specified by `ServiceId`
# includes settings for an `A` record. If the service includes
# settings for an `SRV` record, you must specify a value for
# `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
#
# AWS\_INSTANCE\_IPV6
#
# : If the service configuration includes an `AAAA` record, the IPv6
- # address that you want Route 53 to return in response to DNS queries
+ # address that you want Route 53 to return in response to DNS queries
# (for example, `2001:0db8:85a3:0000:0000:abcd:0001:2345`).
#
# This value is required if the service specified by `ServiceId`
# includes settings for an `AAAA` record. If the service includes
# settings for an `SRV` record, you must specify a value for
# `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
#
# AWS\_INSTANCE\_PORT
#
# : If the service includes an `SRV` record, the value that you want
- # Route 53 to return for the port.
+ # Route 53 to return for the port.
#
# If the service includes `HealthCheckConfig`, the port on the
- # endpoint that you want Route 53 to send requests to.
+ # endpoint that you want Route 53 to send requests to.
#
# This value is required if you specified settings for an `SRV` record
- # or a Route 53 health check when you created the service.
+ # or a Route 53 health check when you created the service.
#
# Custom attributes
#
# : You can add up to 30 custom attributes. For each key-value pair, the
# maximum length of the attribute name is 255 characters, and the
@@ -2237,17 +2258,61 @@
def untag_resource(params = {}, options = {})
req = build_request(:untag_resource, params)
req.send_request(options)
end
+ # Updates an HTTP namespace.
+ #
+ # @option params [required, String] :id
+ # The ID of the namespace that you want to update.
+ #
+ # @option params [String] :updater_request_id
+ # A unique string that identifies the request and that allows failed
+ # `UpdateHttpNamespace` requests to be retried without the risk of
+ # running the operation twice. `UpdaterRequestId` can be any unique
+ # string (for example, a date/timestamp).
+ #
+ # **A suitable default value is auto-generated.** You should normally
+ # not need to pass this option.**
+ #
+ # @option params [required, Types::HttpNamespaceChange] :namespace
+ # Updated properties for the the HTTP namespace.
+ #
+ # @return [Types::UpdateHttpNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::UpdateHttpNamespaceResponse#operation_id #operation_id} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.update_http_namespace({
+ # id: "ResourceId", # required
+ # updater_request_id: "ResourceId",
+ # namespace: { # required
+ # description: "ResourceDescription", # required
+ # },
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.operation_id #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdateHttpNamespace AWS API Documentation
+ #
+ # @overload update_http_namespace(params = {})
+ # @param [Hash] params ({})
+ def update_http_namespace(params = {}, options = {})
+ req = build_request(:update_http_namespace, params)
+ req.send_request(options)
+ end
+
# Submits a request to change the health status of a custom health check
# to healthy or unhealthy.
#
# You can use `UpdateInstanceCustomHealthStatus` to change the status
# only for custom health checks, which you define using
# `HealthCheckCustomConfig` when you create a service. You can't use it
- # to change the status for Route 53 health checks, which you define
+ # to change the status for Route 53 health checks, which you define
# using `HealthCheckConfig`.
#
# For more information, see [HealthCheckCustomConfig][1].
#
#
@@ -2293,10 +2358,112 @@
def update_instance_custom_health_status(params = {}, options = {})
req = build_request(:update_instance_custom_health_status, params)
req.send_request(options)
end
+ # Updates a private DNS namespace.
+ #
+ # @option params [required, String] :id
+ # The ID of the namespace that you want to update.
+ #
+ # @option params [String] :updater_request_id
+ # A unique string that identifies the request and that allows failed
+ # `UpdatePrivateDnsNamespace` requests to be retried without the risk of
+ # running the operation twice. `UpdaterRequestId` can be any unique
+ # string (for example, a date/timestamp).
+ #
+ # **A suitable default value is auto-generated.** You should normally
+ # not need to pass this option.**
+ #
+ # @option params [required, Types::PrivateDnsNamespaceChange] :namespace
+ # Updated properties for the private DNS namespace.
+ #
+ # @return [Types::UpdatePrivateDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::UpdatePrivateDnsNamespaceResponse#operation_id #operation_id} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.update_private_dns_namespace({
+ # id: "ResourceId", # required
+ # updater_request_id: "ResourceId",
+ # namespace: { # required
+ # description: "ResourceDescription",
+ # properties: {
+ # dns_properties: { # required
+ # soa: { # required
+ # ttl: 1, # required
+ # },
+ # },
+ # },
+ # },
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.operation_id #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdatePrivateDnsNamespace AWS API Documentation
+ #
+ # @overload update_private_dns_namespace(params = {})
+ # @param [Hash] params ({})
+ def update_private_dns_namespace(params = {}, options = {})
+ req = build_request(:update_private_dns_namespace, params)
+ req.send_request(options)
+ end
+
+ # Updates a public DNS namespace.
+ #
+ # @option params [required, String] :id
+ # The ID of the namespace being updated.
+ #
+ # @option params [String] :updater_request_id
+ # A unique string that identifies the request and that allows failed
+ # `UpdatePublicDnsNamespace` requests to be retried without the risk of
+ # running the operation twice. `UpdaterRequestId` can be any unique
+ # string (for example, a date/timestamp).
+ #
+ # **A suitable default value is auto-generated.** You should normally
+ # not need to pass this option.**
+ #
+ # @option params [required, Types::PublicDnsNamespaceChange] :namespace
+ # Updated properties for the public DNS namespace.
+ #
+ # @return [Types::UpdatePublicDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::UpdatePublicDnsNamespaceResponse#operation_id #operation_id} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.update_public_dns_namespace({
+ # id: "ResourceId", # required
+ # updater_request_id: "ResourceId",
+ # namespace: { # required
+ # description: "ResourceDescription",
+ # properties: {
+ # dns_properties: { # required
+ # soa: { # required
+ # ttl: 1, # required
+ # },
+ # },
+ # },
+ # },
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.operation_id #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdatePublicDnsNamespace AWS API Documentation
+ #
+ # @overload update_public_dns_namespace(params = {})
+ # @param [Hash] params ({})
+ def update_public_dns_namespace(params = {}, options = {})
+ req = build_request(:update_public_dns_namespace, params)
+ req.send_request(options)
+ end
+
# Submits a request to perform the following operations:
#
# * Update the TTL setting for existing `DnsRecords` configurations
#
# * Add, update, or delete `HealthCheckConfig` for a specified service
@@ -2314,11 +2481,11 @@
#
# * If you omit an existing `HealthCheckCustomConfig` configuration from
# an `UpdateService` request, the configuration isn't deleted from
# the service.
#
- # When you update settings for a service, AWS Cloud Map also updates the
+ # When you update settings for a service, Cloud Map also updates the
# corresponding settings in all the records and health checks that were
# created by using the specified service.
#
# @option params [required, String] :id
# The ID of the service that you want to update.
@@ -2405,10 +2572,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-servicediscovery'
- context[:gem_version] = '1.36.0'
+ context[:gem_version] = '1.37.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated