Class: AWSCDK::IoTTwinMaker::CfnEntity::DataTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTTwinMaker::CfnEntity::DataTypeProperty
- Defined in:
- io_t_twin_maker/cfn_entity.rb
Overview
The entity data type.
Instance Attribute Summary collapse
-
#allowed_values ⇒ AWSCDK::IResolvable, ...
readonly
The allowed values.
-
#nested_type ⇒ AWSCDK::IResolvable, ...
readonly
The nested type.
-
#relationship ⇒ AWSCDK::IResolvable, ...
readonly
The relationship.
-
#type ⇒ String?
readonly
The entity type.
-
#unit_of_measure ⇒ String?
readonly
The unit of measure.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_values: nil, nested_type: nil, relationship: nil, type: nil, unit_of_measure: nil) ⇒ DataTypeProperty
constructor
A new instance of DataTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_values: nil, nested_type: nil, relationship: nil, type: nil, unit_of_measure: nil) ⇒ DataTypeProperty
Returns a new instance of DataTypeProperty.
857 858 859 860 861 862 863 864 865 866 867 868 |
# File 'io_t_twin_maker/cfn_entity.rb', line 857 def initialize(allowed_values: nil, nested_type: nil, relationship: nil, type: nil, unit_of_measure: nil) @allowed_values = allowed_values Jsii::Type.check_type(@allowed_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90dHdpbm1ha2VyLkNmbkVudGl0eS5EYXRhVmFsdWVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "allowedValues") unless @allowed_values.nil? @nested_type = nested_type.is_a?(Hash) ? ::AWSCDK::IoTTwinMaker::CfnEntity::DataTypeProperty.new(**nested_type.transform_keys(&:to_sym)) : nested_type Jsii::Type.check_type(@nested_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R0d2lubWFrZXIuQ2ZuRW50aXR5LkRhdGFUeXBlUHJvcGVydHkifV19fQ==")), "nestedType") unless @nested_type.nil? @relationship = relationship.is_a?(Hash) ? ::AWSCDK::IoTTwinMaker::CfnEntity::RelationshipProperty.new(**relationship.transform_keys(&:to_sym)) : relationship Jsii::Type.check_type(@relationship, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R0d2lubWFrZXIuQ2ZuRW50aXR5LlJlbGF0aW9uc2hpcFByb3BlcnR5In1dfX0=")), "relationship") unless @relationship.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? @unit_of_measure = unit_of_measure Jsii::Type.check_type(@unit_of_measure, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "unitOfMeasure") unless @unit_of_measure.nil? end |
Instance Attribute Details
#allowed_values ⇒ AWSCDK::IResolvable, ... (readonly)
The allowed values.
874 875 876 |
# File 'io_t_twin_maker/cfn_entity.rb', line 874 def allowed_values @allowed_values end |
#nested_type ⇒ AWSCDK::IResolvable, ... (readonly)
The nested type.
879 880 881 |
# File 'io_t_twin_maker/cfn_entity.rb', line 879 def nested_type @nested_type end |
#relationship ⇒ AWSCDK::IResolvable, ... (readonly)
The relationship.
884 885 886 |
# File 'io_t_twin_maker/cfn_entity.rb', line 884 def relationship @relationship end |
#type ⇒ String? (readonly)
The entity type.
889 890 891 |
# File 'io_t_twin_maker/cfn_entity.rb', line 889 def type @type end |
#unit_of_measure ⇒ String? (readonly)
The unit of measure.
894 895 896 |
# File 'io_t_twin_maker/cfn_entity.rb', line 894 def unit_of_measure @unit_of_measure end |
Class Method Details
.jsii_properties ⇒ Object
896 897 898 899 900 901 902 903 904 |
# File 'io_t_twin_maker/cfn_entity.rb', line 896 def self.jsii_properties { :allowed_values => "allowedValues", :nested_type => "nestedType", :relationship => "relationship", :type => "type", :unit_of_measure => "unitOfMeasure", } end |
Instance Method Details
#to_jsii ⇒ Object
906 907 908 909 910 911 912 913 914 915 916 |
# File 'io_t_twin_maker/cfn_entity.rb', line 906 def to_jsii result = {} result.merge!({ "allowedValues" => @allowed_values, "nestedType" => @nested_type, "relationship" => @relationship, "type" => @type, "unitOfMeasure" => @unit_of_measure, }) result.compact end |