Class: AWSCDK::Route53::CfnRecordSetGroup::CoordinatesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::CfnRecordSetGroup::CoordinatesProperty
- Defined in:
- route53/cfn_record_set_group.rb
Overview
A complex type that lists the coordinates for a geoproximity resource record.
Instance Attribute Summary collapse
-
#latitude ⇒ String
readonly
Specifies a coordinate of the north–south position of a geographic point on the surface of the Earth (-90 - 90).
-
#longitude ⇒ String
readonly
Specifies a coordinate of the east–west position of a geographic point on the surface of the Earth (-180 - 180).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(latitude:, longitude:) ⇒ CoordinatesProperty
constructor
A new instance of CoordinatesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(latitude:, longitude:) ⇒ CoordinatesProperty
Returns a new instance of CoordinatesProperty.
734 735 736 737 738 739 |
# File 'route53/cfn_record_set_group.rb', line 734 def initialize(latitude:, longitude:) @latitude = latitude Jsii::Type.check_type(@latitude, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "latitude") @longitude = longitude Jsii::Type.check_type(@longitude, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "longitude") end |
Instance Attribute Details
#latitude ⇒ String (readonly)
Specifies a coordinate of the north–south position of a geographic point on the surface of the Earth (-90 - 90).
745 746 747 |
# File 'route53/cfn_record_set_group.rb', line 745 def latitude @latitude end |
#longitude ⇒ String (readonly)
Specifies a coordinate of the east–west position of a geographic point on the surface of the Earth (-180 - 180).
750 751 752 |
# File 'route53/cfn_record_set_group.rb', line 750 def longitude @longitude end |
Class Method Details
.jsii_properties ⇒ Object
752 753 754 755 756 757 |
# File 'route53/cfn_record_set_group.rb', line 752 def self.jsii_properties { :latitude => "latitude", :longitude => "longitude", } end |
Instance Method Details
#to_jsii ⇒ Object
759 760 761 762 763 764 765 766 |
# File 'route53/cfn_record_set_group.rb', line 759 def to_jsii result = {} result.merge!({ "latitude" => @latitude, "longitude" => @longitude, }) result.compact end |