Class: AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::AttributeDetailsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes:, expression:) ⇒ AttributeDetailsProperty

Returns a new instance of AttributeDetailsProperty.

Parameters:



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

#expressionString (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_propertiesObject



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_jsiiObject



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