Class: Fog::DNS::AWS
- 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
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_mapping ⇒ Object
197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/fog/aws/requests/dns/change_resource_record_sets.rb', line 197 def self.elb_hosted_zone_mapping @elb_hosted_zone_mapping ||= { "ap-northeast-1" => "Z2YN17T5R711GT", "ap-southeast-1" => "Z1WI8VXHPB1R38", "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
190 191 192 193 194 195 |
# File 'lib/fog/aws/requests/dns/change_resource_record_sets.rb', line 190 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 |