Class CfnRecordSet.GeoLocationProperty
A complex type that contains information about a geographic location.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GeoLocationProperty : Object, CfnRecordSet.IGeoLocationProperty
Syntax (vb)
Public Class GeoLocationProperty
Inherits Object
Implements CfnRecordSet.IGeoLocationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53;
var geoLocationProperty = new GeoLocationProperty {
ContinentCode = "continentCode",
CountryCode = "countryCode",
SubdivisionCode = "subdivisionCode"
};
Synopsis
Constructors
GeoLocationProperty() |
Properties
ContinentCode | For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Route 53 supports the following continent codes:. |
CountryCode | For geolocation resource record sets, the two-letter code for a country. |
SubdivisionCode | For geolocation resource record sets, the two-letter code for a state of the United States. |
Constructors
GeoLocationProperty()
public GeoLocationProperty()
Properties
ContinentCode
For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Route 53 supports the following continent codes:.
public string ContinentCode { get; set; }
Property Value
System.String
Remarks
Constraint: Specifying ContinentCode
with either CountryCode
or SubdivisionCode
returns an InvalidInput
error.
CountryCode
For geolocation resource record sets, the two-letter code for a country.
public string CountryCode { get; set; }
Property Value
System.String
Remarks
Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2 .
SubdivisionCode
For geolocation resource record sets, the two-letter code for a state of the United States.
public string SubdivisionCode { get; set; }
Property Value
System.String
Remarks
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
.