Class: AWSCDK::Location::CfnGeofenceCollectionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Location::CfnGeofenceCollectionProps
- Defined in:
- location/cfn_geofence_collection_props.rb
Overview
Properties for defining a CfnGeofenceCollection.
Instance Attribute Summary collapse
-
#collection_name ⇒ String
readonly
A custom name for the geofence collection.
-
#description ⇒ String?
readonly
An optional description for the geofence collection.
-
#kms_key_id ⇒ String?
readonly
A key identifier for an AWS KMS customer managed key .
-
#pricing_plan ⇒ String?
readonly
deprecated
Deprecated.
this property has been deprecated
-
#pricing_plan_data_source ⇒ String?
readonly
deprecated
Deprecated.
this property has been deprecated
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Applies one or more tags to the geofence collection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(collection_name:, description: nil, kms_key_id: nil, pricing_plan: nil, pricing_plan_data_source: nil, tags: nil) ⇒ CfnGeofenceCollectionProps
constructor
A new instance of CfnGeofenceCollectionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(collection_name:, description: nil, kms_key_id: nil, pricing_plan: nil, pricing_plan_data_source: nil, tags: nil) ⇒ CfnGeofenceCollectionProps
Returns a new instance of CfnGeofenceCollectionProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'location/cfn_geofence_collection_props.rb', line 15 def initialize(collection_name:, description: nil, kms_key_id: nil, pricing_plan: nil, pricing_plan_data_source: nil, tags: nil) @collection_name = collection_name Jsii::Type.check_type(@collection_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "collectionName") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @kms_key_id = kms_key_id Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.nil? @pricing_plan = pricing_plan Jsii::Type.check_type(@pricing_plan, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pricingPlan") unless @pricing_plan.nil? @pricing_plan_data_source = pricing_plan_data_source Jsii::Type.check_type(@pricing_plan_data_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pricingPlanDataSource") unless @pricing_plan_data_source.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#collection_name ⇒ String (readonly)
A custom name for the geofence collection.
Requirements:
- Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
- Must be a unique geofence collection name.
- No spaces allowed. For example,
ExampleGeofenceCollection.
40 41 42 |
# File 'location/cfn_geofence_collection_props.rb', line 40 def collection_name @collection_name end |
#description ⇒ String? (readonly)
An optional description for the geofence collection.
45 46 47 |
# File 'location/cfn_geofence_collection_props.rb', line 45 def description @description end |
#kms_key_id ⇒ String? (readonly)
A key identifier for an AWS KMS customer managed key . Enter a key ID, key ARN, alias name, or alias ARN.
50 51 52 |
# File 'location/cfn_geofence_collection_props.rb', line 50 def kms_key_id @kms_key_id end |
#pricing_plan ⇒ String? (readonly)
this property has been deprecated
54 55 56 |
# File 'location/cfn_geofence_collection_props.rb', line 54 def pricing_plan @pricing_plan end |
#pricing_plan_data_source ⇒ String? (readonly)
this property has been deprecated
This shape is deprecated since 2022-02-01: Deprecated.
No longer allowed.
62 63 64 |
# File 'location/cfn_geofence_collection_props.rb', line 62 def pricing_plan_data_source @pricing_plan_data_source end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Applies one or more tags to the geofence collection.
A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them.
Format: "key" : "value"
Restrictions:
- Maximum 50 tags per resource
- Each resource tag must be unique with a maximum of one value.
- Maximum key length: 128 Unicode characters in UTF-8
- Maximum value length: 256 Unicode characters in UTF-8
- Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : /
79 80 81 |
# File 'location/cfn_geofence_collection_props.rb', line 79 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
81 82 83 84 85 86 87 88 89 90 |
# File 'location/cfn_geofence_collection_props.rb', line 81 def self.jsii_properties { :collection_name => "collectionName", :description => "description", :kms_key_id => "kmsKeyId", :pricing_plan => "pricingPlan", :pricing_plan_data_source => "pricingPlanDataSource", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'location/cfn_geofence_collection_props.rb', line 92 def to_jsii result = {} result.merge!({ "collectionName" => @collection_name, "description" => @description, "kmsKeyId" => @kms_key_id, "pricingPlan" => @pricing_plan, "pricingPlanDataSource" => @pricing_plan_data_source, "tags" => @tags, }) result.compact end |