Class: AWSCDK::Route53::CfnRecordSetGroup::GeoProximityLocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::CfnRecordSetGroup::GeoProximityLocationProperty
- Defined in:
- route53/cfn_record_set_group.rb
Overview
(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 .
Instance Attribute Summary collapse
-
#aws_region ⇒ String?
readonly
The AWS Region the resource you are directing DNS traffic to, is in.
-
#bias ⇒ Numeric?
readonly
The bias increases or decreases the size of the geographic region from which Route 53 routes traffic to a resource.
-
#coordinates ⇒ AWSCDK::IResolvable, ...
readonly
Contains the longitude and latitude for a geographic region.
-
#local_zone_group ⇒ String?
readonly
Specifies an AWS Local Zone Group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(aws_region: nil, bias: nil, coordinates: nil, local_zone_group: nil) ⇒ GeoProximityLocationProperty
constructor
A new instance of GeoProximityLocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(aws_region: nil, bias: nil, coordinates: nil, local_zone_group: nil) ⇒ GeoProximityLocationProperty
Returns a new instance of GeoProximityLocationProperty.
852 853 854 855 856 857 858 859 860 861 |
# File 'route53/cfn_record_set_group.rb', line 852 def initialize(aws_region: nil, bias: nil, coordinates: nil, local_zone_group: nil) @aws_region = aws_region Jsii::Type.check_type(@aws_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "awsRegion") unless @aws_region.nil? @bias = bias Jsii::Type.check_type(@bias, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "bias") unless @bias.nil? @coordinates = coordinates.is_a?(Hash) ? ::AWSCDK::Route53::CfnRecordSetGroup::CoordinatesProperty.new(**coordinates.transform_keys(&:to_sym)) : coordinates Jsii::Type.check_type(@coordinates, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb3V0ZTUzLkNmblJlY29yZFNldEdyb3VwLkNvb3JkaW5hdGVzUHJvcGVydHkifV19fQ==")), "coordinates") unless @coordinates.nil? @local_zone_group = local_zone_group Jsii::Type.check_type(@local_zone_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localZoneGroup") unless @local_zone_group.nil? end |
Instance Attribute Details
#aws_region ⇒ String? (readonly)
The AWS Region the resource you are directing DNS traffic to, is in.
867 868 869 |
# File 'route53/cfn_record_set_group.rb', line 867 def aws_region @aws_region end |
#bias ⇒ Numeric? (readonly)
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.
877 878 879 |
# File 'route53/cfn_record_set_group.rb', line 877 def bias @bias end |
#coordinates ⇒ AWSCDK::IResolvable, ... (readonly)
Contains the longitude and latitude for a geographic region.
882 883 884 |
# File 'route53/cfn_record_set_group.rb', line 882 def coordinates @coordinates end |
#local_zone_group ⇒ String? (readonly)
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 .
893 894 895 |
# File 'route53/cfn_record_set_group.rb', line 893 def local_zone_group @local_zone_group end |
Class Method Details
.jsii_properties ⇒ Object
895 896 897 898 899 900 901 902 |
# File 'route53/cfn_record_set_group.rb', line 895 def self.jsii_properties { :aws_region => "awsRegion", :bias => "bias", :coordinates => "coordinates", :local_zone_group => "localZoneGroup", } end |
Instance Method Details
#to_jsii ⇒ Object
904 905 906 907 908 909 910 911 912 913 |
# File 'route53/cfn_record_set_group.rb', line 904 def to_jsii result = {} result.merge!({ "awsRegion" => @aws_region, "bias" => @bias, "coordinates" => @coordinates, "localZoneGroup" => @local_zone_group, }) result.compact end |