Enum Continent
Continents for geolocation routing.
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum Continent
Syntax (vb)
Public Enum Continent
Remarks
ExampleMetadata: infused
Examples
HostedZone myZone;
// continent
// continent
new ARecord(this, "ARecordGeoLocationContinent", new ARecordProps {
Zone = myZone,
Target = RecordTarget.FromIpAddresses("1.2.3.0", "5.6.7.0"),
GeoLocation = GeoLocation.Continent(Continent.EUROPE)
});
// country
// country
new ARecord(this, "ARecordGeoLocationCountry", new ARecordProps {
Zone = myZone,
Target = RecordTarget.FromIpAddresses("1.2.3.1", "5.6.7.1"),
GeoLocation = GeoLocation.Country("DE")
});
// subdivision
// subdivision
new ARecord(this, "ARecordGeoLocationSubDividion", new ARecordProps {
Zone = myZone,
Target = RecordTarget.FromIpAddresses("1.2.3.2", "5.6.7.2"),
GeoLocation = GeoLocation.Subdivision("WA")
});
// default (wildcard record if no specific record is found)
// default (wildcard record if no specific record is found)
new ARecord(this, "ARecordGeoLocationDefault", new ARecordProps {
Zone = myZone,
Target = RecordTarget.FromIpAddresses("1.2.3.3", "5.6.7.3"),
GeoLocation = GeoLocation.Default()
});
Synopsis
Fields
| AFRICA | Africa. |
| ANTARCTICA | Antarctica. |
| ASIA | Asia. |
| EUROPE | Europe. |
| NORTH_AMERICA | North America. |
| OCEANIA | Oceania. |
| SOUTH_AMERICA | South America. |
Fields
| Name | Description |
|---|---|
| AFRICA | Africa. |
| ANTARCTICA | Antarctica. |
| ASIA | Asia. |
| EUROPE | Europe. |
| NORTH_AMERICA | North America. |
| OCEANIA | Oceania. |
| SOUTH_AMERICA | South America. |