lib/aws/route_53/client.rb in aws-sdk-1.6.3 vs lib/aws/route_53/client.rb in aws-sdk-1.6.4
- old
+ new
@@ -11,16 +11,14 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
module AWS
class Route53
- class Client < Core::Client
+ class Client < Core::RESTClient
- API_VERSION = '2012-02-29'
+ define_client_methods('2012-02-29')
- extend Core::RESTClient
-
# @private
CACHEABLE_REQUESTS = Set[]
## client methods ##
@@ -47,14 +45,14 @@
# the resource record set to create or delete.
# * +:name+ - *required* - (String) The domain name of the current
# resource record set.
# * +:type+ - *required* - (String) The type of the current
# resource record set.
- # * +:set_identifier+ - (String) Weighted resource record sets or
- # Regional resource record sets only: An identifier that
- # differentiates among multiple resource record sets that have
- # the same combination of DNS name and type.
+ # * +:set_identifier+ - (String) Weighted resource record sets
+ # only: An identifier that differentiates among multiple resource
+ # record sets that have the same combination of DNS name and
+ # type.
# * +:weight+ - (Integer) Weighted resource record sets only: Among
# resource record sets that have the same combination of DNS name
# and type, a value that determines what portion of traffic for
# the current resource record set is routed to the associated
# location.
@@ -94,11 +92,10 @@
# * +:change_info+ - (Hash)
# * +:id+ - (String)
# * +:status+ - (String)
# * +:submitted_at+ - (Time)
# * +:comment+ - (String)
- define_client_method :change_resource_record_sets, 'ChangeResourceRecordSets'
# Calls the POST CreateHostedZone API operation.
# @method create_hosted_zone(options = {})
# @param [Hash] options
# * +:name+ - *required* - (String) The name of the domain. This must be
@@ -139,11 +136,10 @@
# * +:status+ - (String)
# * +:submitted_at+ - (Time)
# * +:comment+ - (String)
# * +:delegation_set+ - (Hash)
# * +:name_servers+ - (Array<String>)
- define_client_method :create_hosted_zone, 'CreateHostedZone'
# Calls the DELETE DeleteHostedZone API operation.
# @method delete_hosted_zone(options = {})
# @param [Hash] options
# * +:id+ - *required* - (String) The ID of the request. Include this ID
@@ -155,11 +151,10 @@
# * +:change_info+ - (Hash)
# * +:id+ - (String)
# * +:status+ - (String)
# * +:submitted_at+ - (Time)
# * +:comment+ - (String)
- define_client_method :delete_hosted_zone, 'DeleteHostedZone'
# Calls the GET GetChange API operation.
# @method get_change(options = {})
# @param [Hash] options
# * +:id+ - *required* - (String) The ID of the change batch request. The
@@ -172,11 +167,10 @@
# * +:change_info+ - (Hash)
# * +:id+ - (String)
# * +:status+ - (String)
# * +:submitted_at+ - (Time)
# * +:comment+ - (String)
- define_client_method :get_change, 'GetChange'
# Calls the GET GetHostedZone API operation.
# @method get_hosted_zone(options = {})
# @param [Hash] options
# * +:id+ - *required* - (String) The ID of the hosted zone for which you
@@ -191,11 +185,10 @@
# * +:config+ - (Hash)
# * +:comment+ - (String)
# * +:resource_record_set_count+ - (Integer)
# * +:delegation_set+ - (Hash)
# * +:name_servers+ - (Array<String>)
- define_client_method :get_hosted_zone, 'GetHostedZone'
# Calls the GET ListHostedZones API operation.
# @method list_hosted_zones(options = {})
# @param [Hash] options
# * +:marker+ - (String) If the request returned more than one page of
@@ -216,11 +209,10 @@
# * +:resource_record_set_count+ - (Integer)
# * +:marker+ - (String)
# * +:is_truncated+ - (Boolean)
# * +:next_marker+ - (String)
# * +:max_items+ - (Integer)
- define_client_method :list_hosted_zones, 'ListHostedZones'
# Calls the GET ListResourceRecordSets API operation.
# @method list_resource_record_sets(options = {})
# @param [Hash] options
# * +:hosted_zone_id+ - *required* - (String) The ID of the hosted zone
@@ -229,11 +221,10 @@
# ordering of domain names that you want the ListResourceRecordSets
# request to list.
# * +:start_record_type+ - (String) The DNS type at which to begin the
# listing of resource record sets. Valid values: A | AAAA | CNAME | MX
# | NS | PTR | SOA | SPF | SRV | TXT Values for Weighted Resource
- # Record Sets: A | AAAA | CNAME | TXT Values for Regional Resource
# Record Sets: A | AAAA | CNAME | TXT Values for Alias Resource Record
# Sets: A | AAAA Constraint: Specifying type without specifying name
# returns an InvalidInput error.
# * +:start_record_identifier+ - (String) Weighted resource record sets
# only: If results were truncated for a given DNS name and type,
@@ -261,10 +252,9 @@
# * +:is_truncated+ - (Boolean)
# * +:next_record_name+ - (String)
# * +:next_record_type+ - (String)
# * +:next_record_identifier+ - (String)
# * +:max_items+ - (Integer)
- define_client_method :list_resource_record_sets, 'ListResourceRecordSets'
## end client methods ##
end
end