Class: AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::AttributeDetailsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::AttributeDetailsProperty
- Defined in:
- customer_profiles/cfn_calculated_attribute_definition.rb
Overview
Mathematical expression and a list of attribute items specified in that expression.
Instance Attribute Summary collapse
-
#attributes ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::AttributeItemProperty>
readonly
Mathematical expression and a list of attribute items specified in that expression.
-
#expression ⇒ String
readonly
Mathematical expression that is performed on attribute items provided in the attribute list.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes:, expression:) ⇒ AttributeDetailsProperty
constructor
A new instance of AttributeDetailsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attributes:, expression:) ⇒ AttributeDetailsProperty
Returns a new instance of AttributeDetailsProperty.
641 642 643 644 645 646 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 641 def initialize(attributes:, expression:) @attributes = attributes Jsii::Type.check_type(@attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY3VzdG9tZXJwcm9maWxlcy5DZm5DYWxjdWxhdGVkQXR0cmlidXRlRGVmaW5pdGlvbi5BdHRyaWJ1dGVJdGVtUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "attributes") @expression = expression Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression") end |
Instance Attribute Details
#attributes ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::AttributeItemProperty> (readonly)
Mathematical expression and a list of attribute items specified in that expression.
652 653 654 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 652 def attributes @attributes end |
#expression ⇒ String (readonly)
Mathematical expression that is performed on attribute items provided in the attribute list.
Each element in the expression should follow the structure of "ObjectTypeName.AttributeName".
659 660 661 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 659 def expression @expression end |
Class Method Details
.jsii_properties ⇒ Object
661 662 663 664 665 666 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 661 def self.jsii_properties { :attributes => "attributes", :expression => "expression", } end |
Instance Method Details
#to_jsii ⇒ Object
668 669 670 671 672 673 674 675 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 668 def to_jsii result = {} result.merge!({ "attributes" => @attributes, "expression" => @expression, }) result.compact end |