Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::DimensionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_segment_definition.rb

Overview

Defines the attribute to segment on.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(calculated_attributes: nil, profile_attributes: nil) ⇒ DimensionProperty

Returns a new instance of DimensionProperty.

Parameters:



886
887
888
889
890
891
# File 'customer_profiles/cfn_segment_definition.rb', line 886

def initialize(calculated_attributes: nil, profile_attributes: nil)
  @calculated_attributes = calculated_attributes
  Jsii::Type.check_type(@calculated_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY3VzdG9tZXJwcm9maWxlcy5DZm5TZWdtZW50RGVmaW5pdGlvbi5DYWxjdWxhdGVkQXR0cmlidXRlRGltZW5zaW9uUHJvcGVydHkifV19fSwia2luZCI6Im1hcCJ9fV19fQ==")), "calculatedAttributes") unless @calculated_attributes.nil?
  @profile_attributes = profile_attributes.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnSegmentDefinition::ProfileAttributesProperty.new(**profile_attributes.transform_keys(&:to_sym)) : profile_attributes
  Jsii::Type.check_type(@profile_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblNlZ21lbnREZWZpbml0aW9uLlByb2ZpbGVBdHRyaWJ1dGVzUHJvcGVydHkifV19fQ==")), "profileAttributes") unless @profile_attributes.nil?
end

Instance Attribute Details

#calculated_attributesAWSCDK::IResolvable, ... (readonly)

Object that holds the calculated attributes to segment on.



897
898
899
# File 'customer_profiles/cfn_segment_definition.rb', line 897

def calculated_attributes
  @calculated_attributes
end

#profile_attributesAWSCDK::IResolvable, ... (readonly)

Object that holds the profile attributes to segment on.



902
903
904
# File 'customer_profiles/cfn_segment_definition.rb', line 902

def profile_attributes
  @profile_attributes
end

Class Method Details

.jsii_propertiesObject



904
905
906
907
908
909
# File 'customer_profiles/cfn_segment_definition.rb', line 904

def self.jsii_properties
  {
    :calculated_attributes => "calculatedAttributes",
    :profile_attributes => "profileAttributes",
  }
end

Instance Method Details

#to_jsiiObject



911
912
913
914
915
916
917
918
# File 'customer_profiles/cfn_segment_definition.rb', line 911

def to_jsii
  result = {}
  result.merge!({
    "calculatedAttributes" => @calculated_attributes,
    "profileAttributes" => @profile_attributes,
  })
  result.compact
end