Class: AWSCDK::FraudDetector::CfnListProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fraud_detector/cfn_list_props.rb

Overview

Properties for defining a CfnList.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description: nil, elements: nil, tags: nil, variable_type: nil) ⇒ CfnListProps

Returns a new instance of CfnListProps.

Parameters:

  • name (String)

    The name of the list.

  • description (String, nil) (defaults to: nil)

    The description of the list.

  • elements (Array<String>, nil) (defaults to: nil)

    The elements in the list.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.

  • variable_type (String, nil) (defaults to: nil)

    The variable type of the list.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  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

#descriptionString? (readonly)

The description of the list.



36
37
38
# File 'fraud_detector/cfn_list_props.rb', line 36

def description
  @description
end

#elementsArray<String>? (readonly)

The elements in the list.



41
42
43
# File 'fraud_detector/cfn_list_props.rb', line 41

def elements
  @elements
end

#nameString (readonly)

The name of the list.



31
32
33
# File 'fraud_detector/cfn_list_props.rb', line 31

def name
  @name
end

#tagsArray<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
  @tags
end

#variable_typeString? (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_propertiesObject



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_jsiiObject



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