Class: AWSCDK::IoTEvents::CfnInputProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_events/cfn_input_props.rb

Overview

Properties for defining a CfnInput.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input_definition:, input_description: nil, input_name: nil, tags: nil) ⇒ CfnInputProps

Returns a new instance of CfnInputProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'io_t_events/cfn_input_props.rb', line 13

def initialize(input_definition:, input_description: nil, input_name: nil, tags: nil)
  @input_definition = input_definition.is_a?(Hash) ? ::AWSCDK::IoTEvents::CfnInput::InputDefinitionProperty.new(**input_definition.transform_keys(&:to_sym)) : input_definition
  Jsii::Type.check_type(@input_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RldmVudHMuQ2ZuSW5wdXQuSW5wdXREZWZpbml0aW9uUHJvcGVydHkifV19fQ==")), "inputDefinition")
  @input_description = input_description
  Jsii::Type.check_type(@input_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputDescription") unless @input_description.nil?
  @input_name = input_name
  Jsii::Type.check_type(@input_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputName") unless @input_name.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?
end

Instance Attribute Details

#input_definitionAWSCDK::IResolvable, AWSCDK::IoTEvents::CfnInput::InputDefinitionProperty (readonly)

The definition of the input.



28
29
30
# File 'io_t_events/cfn_input_props.rb', line 28

def input_definition
  @input_definition
end

#input_descriptionString? (readonly)

A brief description of the input.



33
34
35
# File 'io_t_events/cfn_input_props.rb', line 33

def input_description
  @input_description
end

#input_nameString? (readonly)

The name of the input.



38
39
40
# File 'io_t_events/cfn_input_props.rb', line 38

def input_name
  @input_name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

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

For more information, see Tag .



45
46
47
# File 'io_t_events/cfn_input_props.rb', line 45

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'io_t_events/cfn_input_props.rb', line 47

def self.jsii_properties
  {
    :input_definition => "inputDefinition",
    :input_description => "inputDescription",
    :input_name => "inputName",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'io_t_events/cfn_input_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "inputDefinition" => @input_definition,
    "inputDescription" => @input_description,
    "inputName" => @input_name,
    "tags" => @tags,
  })
  result.compact
end