Class: AWSCDK::Rekognition::CfnCollectionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Rekognition::CfnCollectionProps
- Defined in:
- rekognition/cfn_collection_props.rb
Overview
Properties for defining a CfnCollection.
Instance Attribute Summary collapse
-
#collection_id ⇒ String
readonly
ID for the collection that you are creating.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A set of tags (key-value pairs) that you want to attach to the collection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(collection_id:, tags: nil) ⇒ CfnCollectionProps
constructor
A new instance of CfnCollectionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(collection_id:, tags: nil) ⇒ CfnCollectionProps
Returns a new instance of CfnCollectionProps.
11 12 13 14 15 16 |
# File 'rekognition/cfn_collection_props.rb', line 11 def initialize(collection_id:, tags: nil) @collection_id = collection_id Jsii::Type.check_type(@collection_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "collectionId") @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_id ⇒ String (readonly)
ID for the collection that you are creating.
22 23 24 |
# File 'rekognition/cfn_collection_props.rb', line 22 def collection_id @collection_id end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A set of tags (key-value pairs) that you want to attach to the collection.
27 28 29 |
# File 'rekognition/cfn_collection_props.rb', line 27 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'rekognition/cfn_collection_props.rb', line 29 def self.jsii_properties { :collection_id => "collectionId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'rekognition/cfn_collection_props.rb', line 36 def to_jsii result = {} result.merge!({ "collectionId" => @collection_id, "tags" => @tags, }) result.compact end |