Class: AWSCDK::IoTThingsGraph::CfnFlowTemplateProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTThingsGraph::CfnFlowTemplateProps
- Defined in:
- io_t_things_graph/cfn_flow_template_props.rb
Overview
Properties for defining a CfnFlowTemplate.
Instance Attribute Summary collapse
- #compatible_namespace_version ⇒ Numeric? readonly
- #definition ⇒ AWSCDK::IResolvable, AWSCDK::IoTThingsGraph::CfnFlowTemplate::DefinitionDocumentProperty readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition:, compatible_namespace_version: nil) ⇒ CfnFlowTemplateProps
constructor
A new instance of CfnFlowTemplateProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition:, compatible_namespace_version: nil) ⇒ CfnFlowTemplateProps
Returns a new instance of CfnFlowTemplateProps.
11 12 13 14 15 16 |
# File 'io_t_things_graph/cfn_flow_template_props.rb', line 11 def initialize(definition:, compatible_namespace_version: nil) @definition = definition.is_a?(Hash) ? ::AWSCDK::IoTThingsGraph::CfnFlowTemplate::DefinitionDocumentProperty.new(**definition.transform_keys(&:to_sym)) : definition Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R0aGluZ3NncmFwaC5DZm5GbG93VGVtcGxhdGUuRGVmaW5pdGlvbkRvY3VtZW50UHJvcGVydHkifV19fQ==")), "definition") @compatible_namespace_version = compatible_namespace_version Jsii::Type.check_type(@compatible_namespace_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "compatibleNamespaceVersion") unless @compatible_namespace_version.nil? end |
Instance Attribute Details
#compatible_namespace_version ⇒ Numeric? (readonly)
23 24 25 |
# File 'io_t_things_graph/cfn_flow_template_props.rb', line 23 def compatible_namespace_version @compatible_namespace_version end |
#definition ⇒ AWSCDK::IResolvable, AWSCDK::IoTThingsGraph::CfnFlowTemplate::DefinitionDocumentProperty (readonly)
20 21 22 |
# File 'io_t_things_graph/cfn_flow_template_props.rb', line 20 def definition @definition end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'io_t_things_graph/cfn_flow_template_props.rb', line 25 def self.jsii_properties { :definition => "definition", :compatible_namespace_version => "compatibleNamespaceVersion", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'io_t_things_graph/cfn_flow_template_props.rb', line 32 def to_jsii result = {} result.merge!({ "definition" => @definition, "compatibleNamespaceVersion" => @compatible_namespace_version, }) result.compact end |