Class: Fog::DNS::AWS

Inherits:
Service
  • Object
show all
Extended by:
AWS::CredentialFetcher::ServiceMethods
Defined in:
lib/fog/aws/dns.rb,
lib/fog/aws/models/dns/zone.rb,
lib/fog/aws/models/dns/zones.rb,
lib/fog/aws/models/dns/record.rb,
lib/fog/aws/models/dns/records.rb,
lib/fog/aws/requests/dns/get_change.rb,
lib/fog/aws/requests/dns/get_hosted_zone.rb,
lib/fog/aws/requests/dns/list_hosted_zones.rb,
lib/fog/aws/requests/dns/delete_hosted_zone.rb,
lib/fog/aws/requests/dns/create_hosted_zone.rb,
lib/fog/aws/requests/dns/list_resource_record_sets.rb,
lib/fog/aws/requests/dns/change_resource_record_sets.rb

Defined Under Namespace

Classes: Mock, Real, Record, Records, Zone, Zones

Class Method Summary (collapse)

Methods included from AWS::CredentialFetcher::ServiceMethods

fetch_credentials

Class Method Details

+ (Object) elb_hosted_zone_mapping



210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/fog/aws/requests/dns/change_resource_record_sets.rb', line 210

def self.elb_hosted_zone_mapping
  @elb_hosted_zone_mapping ||= {
    "ap-northeast-1" => "Z2YN17T5R711GT",
    "ap-southeast-1" => "Z1WI8VXHPB1R38",
    "ap-southeast-2" => "Z2999QAZ9SRTIC",
    "eu-west-1"      => "Z3NF1Z3NOM5OY2",
    "sa-east-1"      => "Z2ES78Y61JGQKS",
    "us-east-1"      => "Z3DZXE0Q79N41H",
    "us-west-1"      => "Z1M58G0W56PQJA",
    "us-west-2"      => "Z33MTJ483KN6FU",
  }
end

+ (Object) hosted_zone_for_alias_target(dns_name)



203
204
205
206
207
208
# File 'lib/fog/aws/requests/dns/change_resource_record_sets.rb', line 203

def self.hosted_zone_for_alias_target(dns_name)
  k = elb_hosted_zone_mapping.keys.find do |k|
    dns_name =~ /\A.+\.#{k}\.elb\.amazonaws\.com\.?\z/
  end
  elb_hosted_zone_mapping[k]
end