Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::AttributeDimensionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnSegmentDefinition::AttributeDimensionProperty
- Defined in:
- customer_profiles/cfn_segment_definition.rb
Overview
Object that defines how to filter the incoming objects for the calculated attribute.
Instance Attribute Summary collapse
-
#dimension_type ⇒ String
readonly
The action to segment with.
-
#values ⇒ Array<String>
readonly
The values to apply the DimensionType on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dimension_type:, values:) ⇒ AttributeDimensionProperty
constructor
A new instance of AttributeDimensionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dimension_type:, values:) ⇒ AttributeDimensionProperty
Returns a new instance of AttributeDimensionProperty.
714 715 716 717 718 719 |
# File 'customer_profiles/cfn_segment_definition.rb', line 714 def initialize(dimension_type:, values:) @dimension_type = dimension_type Jsii::Type.check_type(@dimension_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dimensionType") @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") end |
Instance Attribute Details
#dimension_type ⇒ String (readonly)
The action to segment with.
725 726 727 |
# File 'customer_profiles/cfn_segment_definition.rb', line 725 def dimension_type @dimension_type end |
#values ⇒ Array<String> (readonly)
The values to apply the DimensionType on.
730 731 732 |
# File 'customer_profiles/cfn_segment_definition.rb', line 730 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
732 733 734 735 736 737 |
# File 'customer_profiles/cfn_segment_definition.rb', line 732 def self.jsii_properties { :dimension_type => "dimensionType", :values => "values", } end |
Instance Method Details
#to_jsii ⇒ Object
739 740 741 742 743 744 745 746 |
# File 'customer_profiles/cfn_segment_definition.rb', line 739 def to_jsii result = {} result.merge!({ "dimensionType" => @dimension_type, "values" => @values, }) result.compact end |