Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::DimensionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnSegmentDefinition::DimensionProperty
- Defined in:
- customer_profiles/cfn_segment_definition.rb
Overview
Defines the attribute to segment on.
Instance Attribute Summary collapse
-
#calculated_attributes ⇒ AWSCDK::IResolvable, ...
readonly
Object that holds the calculated attributes to segment on.
-
#profile_attributes ⇒ AWSCDK::IResolvable, ...
readonly
Object that holds the profile attributes to segment on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(calculated_attributes: nil, profile_attributes: nil) ⇒ DimensionProperty
constructor
A new instance of DimensionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(calculated_attributes: nil, profile_attributes: nil) ⇒ DimensionProperty
Returns a new instance of DimensionProperty.
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_attributes ⇒ AWSCDK::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_attributes ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |