Class: AWSCDK::Route53::CfnRecordSet::CoordinatesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53/cfn_record_set.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).



917
918
919
920
921
922
# File 'route53/cfn_record_set.rb', line 917

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).



928
929
930
# File 'route53/cfn_record_set.rb', line 928

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).



933
934
935
# File 'route53/cfn_record_set.rb', line 933

def longitude
  @longitude
end

Class Method Details

.jsii_propertiesObject



935
936
937
938
939
940
# File 'route53/cfn_record_set.rb', line 935

def self.jsii_properties
  {
    :latitude => "latitude",
    :longitude => "longitude",
  }
end

Instance Method Details

#to_jsiiObject



942
943
944
945
946
947
948
949
# File 'route53/cfn_record_set.rb', line 942

def to_jsii
  result = {}
  result.merge!({
    "latitude" => @latitude,
    "longitude" => @longitude,
  })
  result.compact
end