Class: AWSCDK::Interfaces::AWSLocation::MapReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_location/map_reference.rb

Overview

A reference to a Map resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(map_arn:, map_name:) ⇒ MapReference

Returns a new instance of MapReference.

Parameters:

  • map_arn (String)

    The ARN of the Map resource.

  • map_name (String)

    The MapName of the Map resource.



9
10
11
12
13
14
# File 'interfaces/aws_location/map_reference.rb', line 9

def initialize(map_arn:, map_name:)
  @map_arn = map_arn
  Jsii::Type.check_type(@map_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mapArn")
  @map_name = map_name
  Jsii::Type.check_type(@map_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mapName")
end

Instance Attribute Details

#map_arnString (readonly)

The ARN of the Map resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_location/map_reference.rb', line 19

def map_arn
  @map_arn
end

#map_nameString (readonly)

The MapName of the Map resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_location/map_reference.rb', line 23

def map_name
  @map_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_location/map_reference.rb', line 25

def self.jsii_properties
  {
    :map_arn => "mapArn",
    :map_name => "mapName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_location/map_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "mapArn" => @map_arn,
    "mapName" => @map_name,
  })
  result.compact
end