Class: Fog::DNS::AWS

Inherits:
Service 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/create_hosted_zone.rb,
lib/fog/aws/requests/dns/delete_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

Methods inherited from Service

coerce_options, collection, collections, fetch_credentials, inherited, mocked_requests, model, model_path, models, new, recognized, recognizes, request, request_path, requests, requirements, requires, secrets, setup_requirements, validate_options

Class Method Details

.elb_hosted_zone_mappingObject



214
215
216
217
218
219
220
221
222
223
224
225
# File 'lib/fog/aws/requests/dns/change_resource_record_sets.rb', line 214

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



207
208
209
210
211
212
# File 'lib/fog/aws/requests/dns/change_resource_record_sets.rb', line 207

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