Class: AWSCDK::IoTSiteWise::CfnAssetModel::AttributeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_site_wise/cfn_asset_model.rb

Overview

Contains an asset attribute property.

For more information, see Attributes in the AWS IoT SiteWise User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_value: nil) ⇒ AttributeProperty

Returns a new instance of AttributeProperty.

Parameters:

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

    The default value of the asset model property attribute.



995
996
997
998
# File 'io_t_site_wise/cfn_asset_model.rb', line 995

def initialize(default_value: nil)
  @default_value = default_value
  Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultValue") unless @default_value.nil?
end

Instance Attribute Details

#default_valueString? (readonly)

The default value of the asset model property attribute.

All assets that you create from the asset model contain this attribute value. You can update an attribute's value after you create an asset. For more information, see Updating attribute values in the AWS IoT SiteWise User Guide .



1006
1007
1008
# File 'io_t_site_wise/cfn_asset_model.rb', line 1006

def default_value
  @default_value
end

Class Method Details

.jsii_propertiesObject



1008
1009
1010
1011
1012
# File 'io_t_site_wise/cfn_asset_model.rb', line 1008

def self.jsii_properties
  {
    :default_value => "defaultValue",
  }
end

Instance Method Details

#to_jsiiObject



1014
1015
1016
1017
1018
1019
1020
# File 'io_t_site_wise/cfn_asset_model.rb', line 1014

def to_jsii
  result = {}
  result.merge!({
    "defaultValue" => @default_value,
  })
  result.compact
end