Class: AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeProperty
- Defined in:
- q_business/cfn_data_accessor.rb
Overview
A document attribute or metadata field.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The identifier for the attribute.
-
#value ⇒ AWSCDK::IResolvable, AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeValueProperty
readonly
The value of the attribute.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ DocumentAttributeProperty
constructor
A new instance of DocumentAttributeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:) ⇒ DocumentAttributeProperty
Returns a new instance of DocumentAttributeProperty.
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
#name ⇒ String (readonly)
The identifier for the attribute.
968 969 970 |
# File 'q_business/cfn_data_accessor.rb', line 968 def name @name end |
#value ⇒ AWSCDK::IResolvable, AWSCDK::QBusiness::CfnDataAccessor::DocumentAttributeValueProperty (readonly)
The value of the attribute.
973 974 975 |
# File 'q_business/cfn_data_accessor.rb', line 973 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |