Class: AWSCDK::Rekognition::CfnProjectProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Rekognition::CfnProjectProps
- Defined in:
- rekognition/cfn_project_props.rb
Overview
Properties for defining a CfnProject.
Instance Attribute Summary collapse
-
#project_name ⇒ String
readonly
The name of the project to create.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(project_name:, tags: nil) ⇒ CfnProjectProps
constructor
A new instance of CfnProjectProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(project_name:, tags: nil) ⇒ CfnProjectProps
Returns a new instance of CfnProjectProps.
11 12 13 14 15 16 |
# File 'rekognition/cfn_project_props.rb', line 11 def initialize(project_name:, tags: nil) @project_name = project_name Jsii::Type.check_type(@project_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "projectName") @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
#project_name ⇒ String (readonly)
The name of the project to create.
22 23 24 |
# File 'rekognition/cfn_project_props.rb', line 22 def project_name @project_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
27 28 29 |
# File 'rekognition/cfn_project_props.rb', line 27 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'rekognition/cfn_project_props.rb', line 29 def self.jsii_properties { :project_name => "projectName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'rekognition/cfn_project_props.rb', line 36 def to_jsii result = {} result.merge!({ "projectName" => @project_name, "tags" => @tags, }) result.compact end |