Class: AWSCDK::Location::CfnTrackerConsumerProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Location::CfnTrackerConsumerProps
- Defined in:
- location/cfn_tracker_consumer_props.rb
Overview
Properties for defining a CfnTrackerConsumer.
Instance Attribute Summary collapse
-
#consumer_arn ⇒ String
readonly
The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource.
-
#tracker_name ⇒ String
readonly
The name for the tracker resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(consumer_arn:, tracker_name:) ⇒ CfnTrackerConsumerProps
constructor
A new instance of CfnTrackerConsumerProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(consumer_arn:, tracker_name:) ⇒ CfnTrackerConsumerProps
Returns a new instance of CfnTrackerConsumerProps.
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_arn ⇒ String (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_name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |