Class: AWSCDK::Forecast::CfnDataset::AttributesItemsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
forecast/cfn_dataset.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_name: nil, attribute_type: nil) ⇒ AttributesItemsProperty

Returns a new instance of AttributesItemsProperty.

Parameters:

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

    Name of the dataset field.

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

    Data type of the field.



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_nameString? (readonly)

Name of the dataset field.



614
615
616
# File 'forecast/cfn_dataset.rb', line 614

def attribute_name
  @attribute_name
end

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



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_jsiiObject



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