Class: AWSCDK::Pinpoint::CfnSegment::SetDimensionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint/cfn_segment.rb

Overview

Specifies the dimension type and values for a segment dimension.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimension_type: nil, values: nil) ⇒ SetDimensionProperty

Returns a new instance of SetDimensionProperty.

Parameters:

  • dimension_type (String, nil) (defaults to: nil)

    The type of segment dimension to use.

  • values (Array<String>, nil) (defaults to: nil)

    The criteria values to use for the segment dimension.



1109
1110
1111
1112
1113
1114
# File 'pinpoint/cfn_segment.rb', line 1109

def initialize(dimension_type: nil, values: nil)
  @dimension_type = dimension_type
  Jsii::Type.check_type(@dimension_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dimensionType") unless @dimension_type.nil?
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") unless @values.nil?
end

Instance Attribute Details

#dimension_typeString? (readonly)

The type of segment dimension to use.

Valid values are: INCLUSIVE , endpoints that match the criteria are included in the segment; and, EXCLUSIVE , endpoints that match the criteria are excluded from the segment.



1122
1123
1124
# File 'pinpoint/cfn_segment.rb', line 1122

def dimension_type
  @dimension_type
end

#valuesArray<String>? (readonly)

The criteria values to use for the segment dimension.

Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.



1129
1130
1131
# File 'pinpoint/cfn_segment.rb', line 1129

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1131
1132
1133
1134
1135
1136
# File 'pinpoint/cfn_segment.rb', line 1131

def self.jsii_properties
  {
    :dimension_type => "dimensionType",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



1138
1139
1140
1141
1142
1143
1144
1145
# File 'pinpoint/cfn_segment.rb', line 1138

def to_jsii
  result = {}
  result.merge!({
    "dimensionType" => @dimension_type,
    "values" => @values,
  })
  result.compact
end