Class: AWSCDK::FraudDetector::CfnListProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FraudDetector::CfnListProps
- Defined in:
- fraud_detector/cfn_list_props.rb
Overview
Properties for defining a CfnList.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the list.
-
#elements ⇒ Array<String>?
readonly
The elements in the list.
-
#name ⇒ String
readonly
The name of the list.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
-
#variable_type ⇒ String?
readonly
The variable type of the list.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, description: nil, elements: nil, tags: nil, variable_type: nil) ⇒ CfnListProps
constructor
A new instance of CfnListProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, description: nil, elements: nil, tags: nil, variable_type: nil) ⇒ CfnListProps
Returns a new instance of CfnListProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'fraud_detector/cfn_list_props.rb', line 14 def initialize(name:, description: nil, elements: nil, tags: nil, variable_type: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @elements = elements Jsii::Type.check_type(@elements, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "elements") unless @elements.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? @variable_type = variable_type Jsii::Type.check_type(@variable_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variableType") unless @variable_type.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the list.
36 37 38 |
# File 'fraud_detector/cfn_list_props.rb', line 36 def description @description end |
#elements ⇒ Array<String>? (readonly)
The elements in the list.
41 42 43 |
# File 'fraud_detector/cfn_list_props.rb', line 41 def elements @elements end |
#name ⇒ String (readonly)
The name of the list.
31 32 33 |
# File 'fraud_detector/cfn_list_props.rb', line 31 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
48 49 50 |
# File 'fraud_detector/cfn_list_props.rb', line 48 def @tags end |
#variable_type ⇒ String? (readonly)
The variable type of the list.
For more information, see Variable types
55 56 57 |
# File 'fraud_detector/cfn_list_props.rb', line 55 def variable_type @variable_type end |
Class Method Details
.jsii_properties ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'fraud_detector/cfn_list_props.rb', line 57 def self.jsii_properties { :name => "name", :description => "description", :elements => "elements", :tags => "tags", :variable_type => "variableType", } end |
Instance Method Details
#to_jsii ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 |
# File 'fraud_detector/cfn_list_props.rb', line 67 def to_jsii result = {} result.merge!({ "name" => @name, "description" => @description, "elements" => @elements, "tags" => @tags, "variableType" => @variable_type, }) result.compact end |