Class: AWSCDK::Location::CfnTrackerConsumerProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
location/cfn_tracker_consumer_props.rb

Overview

Properties for defining a CfnTrackerConsumer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(consumer_arn:, tracker_name:) ⇒ CfnTrackerConsumerProps

Returns a new instance of CfnTrackerConsumerProps.

Parameters:

  • consumer_arn (String)

    The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource.

  • tracker_name (String)

    The name for the tracker resource.



11
12
13
14
15
16
# File 'location/cfn_tracker_consumer_props.rb', line 11

def initialize(consumer_arn:, tracker_name:)
  @consumer_arn = consumer_arn
  Jsii::Type.check_type(@consumer_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "consumerArn")
  @tracker_name = tracker_name
  Jsii::Type.check_type(@tracker_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "trackerName")
end

Instance Attribute Details

#consumer_arnString (readonly)

The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource.

Used when you need to specify a resource across all AWS .

  • Format example: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer


26
27
28
# File 'location/cfn_tracker_consumer_props.rb', line 26

def consumer_arn
  @consumer_arn
end

#tracker_nameString (readonly)

The name for the tracker resource.

Requirements:

  • Contain only alphanumeric characters (A-Z, a-z, 0-9) , hyphens (-), periods (.), and underscores (_).
  • Must be a unique tracker resource name.
  • No spaces allowed. For example, ExampleTracker .


37
38
39
# File 'location/cfn_tracker_consumer_props.rb', line 37

def tracker_name
  @tracker_name
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
# File 'location/cfn_tracker_consumer_props.rb', line 39

def self.jsii_properties
  {
    :consumer_arn => "consumerArn",
    :tracker_name => "trackerName",
  }
end

Instance Method Details

#to_jsiiObject



46
47
48
49
50
51
52
53
# File 'location/cfn_tracker_consumer_props.rb', line 46

def to_jsii
  result = {}
  result.merge!({
    "consumerArn" => @consumer_arn,
    "trackerName" => @tracker_name,
  })
  result.compact
end