Class: AWSCDK::Route53::CfnRecordSetGroup::CoordinatesProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(latitude:, longitude:) ⇒ CoordinatesProperty

Returns a new instance of CoordinatesProperty.

Parameters:

  • latitude (String)

    Specifies a coordinate of the north–south position of a geographic point on the surface of the Earth (-90 - 90).

  • longitude (String)

    Specifies a coordinate of the east–west position of a geographic point on the surface of the Earth (-180 - 180).



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

#latitudeString (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

#longitudeString (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_propertiesObject



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_jsiiObject



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