Class: AWSCDK::Forecast::CfnDataset::AttributesItemsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Forecast::CfnDataset::AttributesItemsProperty
- Defined in:
- forecast/cfn_dataset.rb
Overview
Instance Attribute Summary collapse
-
#attribute_name ⇒ String?
readonly
Name of the dataset field.
-
#attribute_type ⇒ String?
readonly
Data type of the field.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attribute_name: nil, attribute_type: nil) ⇒ AttributesItemsProperty
constructor
A new instance of AttributesItemsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attribute_name: nil, attribute_type: nil) ⇒ AttributesItemsProperty
Returns a new instance of AttributesItemsProperty.
603 604 605 606 607 608 |
# File 'forecast/cfn_dataset.rb', line 603 def initialize(attribute_name: nil, attribute_type: nil) @attribute_name = attribute_name Jsii::Type.check_type(@attribute_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeName") unless @attribute_name.nil? @attribute_type = attribute_type Jsii::Type.check_type(@attribute_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeType") unless @attribute_type.nil? end |
Instance Attribute Details
#attribute_name ⇒ String? (readonly)
Name of the dataset field.
614 615 616 |
# File 'forecast/cfn_dataset.rb', line 614 def attribute_name @attribute_name end |
#attribute_type ⇒ String? (readonly)
Data type of the field.
619 620 621 |
# File 'forecast/cfn_dataset.rb', line 619 def attribute_type @attribute_type end |
Class Method Details
.jsii_properties ⇒ Object
621 622 623 624 625 626 |
# File 'forecast/cfn_dataset.rb', line 621 def self.jsii_properties { :attribute_name => "attributeName", :attribute_type => "attributeType", } end |
Instance Method Details
#to_jsii ⇒ Object
628 629 630 631 632 633 634 635 |
# File 'forecast/cfn_dataset.rb', line 628 def to_jsii result = {} result.merge!({ "attributeName" => @attribute_name, "attributeType" => @attribute_type, }) result.compact end |