enum Continent
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Route53.Continent |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#Continent |
Java | software.amazon.awscdk.services.route53.Continent |
Python | aws_cdk.aws_route53.Continent |
TypeScript (source) | aws-cdk-lib » aws_route53 » Continent |
Continents for geolocation routing.
Example
declare const myZone: route53.HostedZone;
// continent
new route53.ARecord(this, 'ARecordGeoLocationContinent', {
zone: myZone,
target: route53.RecordTarget.fromIpAddresses('1.2.3.0', '5.6.7.0'),
geoLocation: route53.GeoLocation.continent(route53.Continent.EUROPE),
});
// country
new route53.ARecord(this, 'ARecordGeoLocationCountry', {
zone: myZone,
target: route53.RecordTarget.fromIpAddresses('1.2.3.1', '5.6.7.1'),
geoLocation: route53.GeoLocation.country('DE'), // Germany
});
// subdivision
new route53.ARecord(this, 'ARecordGeoLocationSubDividion', {
zone: myZone,
target: route53.RecordTarget.fromIpAddresses('1.2.3.2', '5.6.7.2'),
geoLocation: route53.GeoLocation.subdivision('WA'), // Washington
});
// default (wildcard record if no specific record is found)
new route53.ARecord(this, 'ARecordGeoLocationDefault', {
zone: myZone,
target: route53.RecordTarget.fromIpAddresses('1.2.3.3', '5.6.7.3'),
geoLocation: route53.GeoLocation.default(),
});
Members
Name | Description |
---|---|
AFRICA | Africa. |
ANTARCTICA | Antarctica. |
ASIA | Asia. |
EUROPE | Europe. |
OCEANIA | Oceania. |
NORTH_AMERICA | North America. |
SOUTH_AMERICA | South America. |
AFRICA
Africa.
ANTARCTICA
Antarctica.
ASIA
Asia.
EUROPE
Europe.
OCEANIA
Oceania.
NORTH_AMERICA
North America.
SOUTH_AMERICA
South America.