interface GeoLocationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53.CfnRecordSetGroup.GeoLocationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#CfnRecordSetGroup_GeoLocationProperty |
![]() | software.amazon.awscdk.services.route53.CfnRecordSetGroup.GeoLocationProperty |
![]() | aws_cdk.aws_route53.CfnRecordSetGroup.GeoLocationProperty |
![]() | aws-cdk-lib » aws_route53 » CfnRecordSetGroup » GeoLocationProperty |
A complex type that contains information about a geographic location.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53 as route53 } from 'aws-cdk-lib';
const geoLocationProperty: route53.CfnRecordSetGroup.GeoLocationProperty = {
continentCode: 'continentCode',
countryCode: 'countryCode',
subdivisionCode: 'subdivisionCode',
};
Properties
Name | Type | Description |
---|---|---|
continent | string | For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Route 53 supports the following continent codes:. |
country | string | For geolocation resource record sets, the two-letter code for a country. |
subdivision | string | For geolocation resource record sets, the two-letter code for a state of the United States. |
continentCode?
Type:
string
(optional)
For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Route 53 supports the following continent codes:.
- AF : Africa
- AN : Antarctica
- AS : Asia
- EU : Europe
- OC : Oceania
- NA : North America
- SA : South America
Constraint: Specifying ContinentCode
with either CountryCode
or SubdivisionCode
returns an InvalidInput
error.
countryCode?
Type:
string
(optional)
For geolocation resource record sets, the two-letter code for a country.
Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2 .
subdivisionCode?
Type:
string
(optional)
For geolocation resource record sets, the two-letter code for a state of the United States.
Route 53 doesn't support any other values for SubdivisionCode
. For a list of state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on the United States Postal Service website.
If you specify subdivisioncode
, you must also specify US
for CountryCode
.