Class: AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
q_business/cfn_data_accessor.rb

Overview

A document attribute or metadata field.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:) ⇒ DocumentAttributeProperty

Returns a new instance of DocumentAttributeProperty.

Parameters:



957
958
959
960
961
962
# File 'q_business/cfn_data_accessor.rb', line 957

def initialize(name:, value:)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @value = value.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeValueProperty.new(**value.transform_keys(&:to_sym)) : value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YUFjY2Vzc29yLkRvY3VtZW50QXR0cmlidXRlVmFsdWVQcm9wZXJ0eSJ9XX19")), "value")
end

Instance Attribute Details

#nameString (readonly)

The identifier for the attribute.



968
969
970
# File 'q_business/cfn_data_accessor.rb', line 968

def name
  @name
end

Class Method Details

.jsii_propertiesObject



975
976
977
978
979
980
# File 'q_business/cfn_data_accessor.rb', line 975

def self.jsii_properties
  {
    :name => "name",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



982
983
984
985
986
987
988
989
# File 'q_business/cfn_data_accessor.rb', line 982

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