Class: AWSCDK::Interfaces::AWSLocation::PlaceIndexReference

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

Overview

A reference to a PlaceIndex resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index_name:, place_index_arn:) ⇒ PlaceIndexReference

Returns a new instance of PlaceIndexReference.

Parameters:

  • index_name (String)

    The IndexName of the PlaceIndex resource.

  • place_index_arn (String)

    The ARN of the PlaceIndex resource.



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

def initialize(index_name:, place_index_arn:)
  @index_name = index_name
  Jsii::Type.check_type(@index_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "indexName")
  @place_index_arn = place_index_arn
  Jsii::Type.check_type(@place_index_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "placeIndexArn")
end

Instance Attribute Details

#index_nameString (readonly)

The IndexName of the PlaceIndex resource.

Returns:

  • (String)


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

def index_name
  @index_name
end

#place_index_arnString (readonly)

The ARN of the PlaceIndex resource.

Returns:

  • (String)


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

def place_index_arn
  @place_index_arn
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :index_name => "indexName",
    :place_index_arn => "placeIndexArn",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "indexName" => @index_name,
    "placeIndexArn" => @place_index_arn,
  })
  result.compact
end