class AWS::Route53::HostedZoneCollection


hosted_zone = r53.hosted_zones[‘example.com.’]
r53 = AWS::Route53.new
# Find existing hosted zone
hosted_zone = r53.hosted_zones.create(‘example.com.’)
r53 = AWS::Route53.new
# Create new hosted zone

def [] hosted_zone_id

Returns:
  • (HostedZone) -

Parameters:
  • hosted_zone_id (String) --
def [] hosted_zone_id
  HostedZone.new(hosted_zone_id, :config => config)
end

def _each_item next_token, limit, options = {}, &block

def _each_item next_token, limit, options = {}, &block
  options = @filters.merge(options)
  options[:marker] = next_token if next_token
  options[:maxitems] = limit if limit
  resp = client.list_hosted_zones(options)
  resp.data[:hosted_zones].each do |details|
    hosted_zone = HostedZone.new_from(
      :list_hosted_zones,
      details,
      details[:id],
      :config => config)
    yield(hosted_zone)
  end
  resp.data[:next_marker]
end

def create name, options = {}

Returns:
  • (HostedZone) -

Options Hash: (**options)
  • :caller_reference (String) --
  • :comment (String) --

Parameters:
  • name (String) --
def create name, options = {}
  options[:name] = name
  unless options[:caller_reference]
    options[:caller_reference] = "CreateHostedZone, #{name}, #{Time.now.httpdate}"
  end
  if options[:comment]
    options[:hosted_zone_config] ||= {}
    options[:hosted_zone_config][:comment] = options.delete(:comment)
  end
  resp = client.create_hosted_zone(options)
  change_info = ChangeInfo.new_from(:create_hosted_zone, resp,
    resp[:change_info][:id],
    :config => config)
  HostedZone.new_from(:create_hosted_zone, resp,
    resp[:hosted_zone][:id],
    :change_info => change_info,
    :config => config)
end

def initialize options = {}

Other tags:
    Api: - private
def initialize options = {}
  @filters = options[:filters] || {}
  super
end