Interface CfnRecordSet.GeoLocationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRecordSet.GeoLocationProperty.Jsii$Proxy
- Enclosing class:
CfnRecordSet
@Stability(Stable)
public static interface CfnRecordSet.GeoLocationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.route53.*; GeoLocationProperty geoLocationProperty = GeoLocationProperty.builder() .continentCode("continentCode") .countryCode("countryCode") .subdivisionCode("subdivisionCode") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRecordSet.GeoLocationProperty
static final class
An implementation forCfnRecordSet.GeoLocationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
For geolocation resource record sets, a two-letter abbreviation that identifies a continent.default String
For geolocation resource record sets, the two-letter code for a country.default String
For geolocation resource record sets, the two-letter code for a state of the United States.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContinentCode
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 eitherCountryCode
orSubdivisionCode
returns anInvalidInput
error.- See Also:
-
getCountryCode
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 .
- See Also:
-
getSubdivisionCode
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 specifyUS
forCountryCode
.- See Also:
-
builder
-