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/get_health_check.rb,
lib/fog/aws/requests/dns/list_hosted_zones.rb,
lib/fog/aws/requests/dns/create_hosted_zone.rb,
lib/fog/aws/requests/dns/delete_hosted_zone.rb,
lib/fog/aws/requests/dns/list_health_checks.rb,
lib/fog/aws/requests/dns/create_health_check.rb,
lib/fog/aws/requests/dns/delete_health_check.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

.elb_hosted_zone_mappingObject



229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/fog/aws/requests/dns/change_resource_record_sets.rb', line 229

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

.hosted_zone_for_alias_target(dns_name) ⇒ Object



222
223
224
225
226
227
# File 'lib/fog/aws/requests/dns/change_resource_record_sets.rb', line 222

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