interface GeoProximityLocationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53.CfnRecordSetGroup.GeoProximityLocationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#CfnRecordSetGroup_GeoProximityLocationProperty |
![]() | software.amazon.awscdk.services.route53.CfnRecordSetGroup.GeoProximityLocationProperty |
![]() | aws_cdk.aws_route53.CfnRecordSetGroup.GeoProximityLocationProperty |
![]() | aws-cdk-lib » aws_route53 » CfnRecordSetGroup » GeoProximityLocationProperty |
(Resource record sets only): A complex type that lets you specify where your resources are located.
Only one of LocalZoneGroup
, Coordinates
, or AWS Region
is allowed per request at a time.
For more information about geoproximity routing, see Geoproximity routing in the Amazon Route 53 Developer Guide .
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 geoProximityLocationProperty: route53.CfnRecordSetGroup.GeoProximityLocationProperty = {
awsRegion: 'awsRegion',
bias: 123,
coordinates: {
latitude: 'latitude',
longitude: 'longitude',
},
localZoneGroup: 'localZoneGroup',
};
Properties
Name | Type | Description |
---|---|---|
aws | string | The AWS Region the resource you are directing DNS traffic to, is in. |
bias? | number | The bias increases or decreases the size of the geographic region from which Route 53 routes traffic to a resource. |
coordinates? | IResolvable | Coordinates | Contains the longitude and latitude for a geographic region. |
local | string | Specifies an AWS Local Zone Group. |
awsRegion?
Type:
string
(optional)
The AWS Region the resource you are directing DNS traffic to, is in.
bias?
Type:
number
(optional)
The bias increases or decreases the size of the geographic region from which Route 53 routes traffic to a resource.
To use Bias
to change the size of the geographic region, specify the applicable value for the bias:
- To expand the size of the geographic region from which Route 53 routes traffic to a resource, specify a positive integer from 1 to 99 for the bias. Route 53 shrinks the size of adjacent regions.
- To shrink the size of the geographic region from which Route 53 routes traffic to a resource, specify a negative bias of -1 to -99. Route 53 expands the size of adjacent regions.
coordinates?
Type:
IResolvable
|
Coordinates
(optional)
Contains the longitude and latitude for a geographic region.
localZoneGroup?
Type:
string
(optional)
Specifies an AWS Local Zone Group.
A local Zone Group is usually the Local Zone code without the ending character. For example, if the Local Zone is us-east-1-bue-1a
the Local Zone Group is us-east-1-bue-1
.
You can identify the Local Zones Group for a specific Local Zone by using the describe-availability-zones CLI command:
This command returns: "GroupName": "us-west-2-den-1"
, specifying that the Local Zone us-west-2-den-1a
belongs to the Local Zone Group us-west-2-den-1
.