Class: AWSCDK::Pinpoint::CfnCampaign::SetDimensionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint/cfn_campaign.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.



2204
2205
2206
2207
2208
2209
# File 'pinpoint/cfn_campaign.rb', line 2204

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.



2217
2218
2219
# File 'pinpoint/cfn_campaign.rb', line 2217

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.



2224
2225
2226
# File 'pinpoint/cfn_campaign.rb', line 2224

def values
  @values
end

Class Method Details

.jsii_propertiesObject



2226
2227
2228
2229
2230
2231
# File 'pinpoint/cfn_campaign.rb', line 2226

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

Instance Method Details

#to_jsiiObject



2233
2234
2235
2236
2237
2238
2239
2240
# File 'pinpoint/cfn_campaign.rb', line 2233

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