AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Pinpoint::Types::SimpleCondition

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing SimpleCondition as input to an Aws::Client method, you can use a vanilla Hash:

{
  event_condition: {
    dimensions: { # required
      attributes: {
        "__string" => {
          attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
          values: ["__string"], # required
        },
      },
      event_type: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
      metrics: {
        "__string" => {
          comparison_operator: "__string", # required
          value: 1.0, # required
        },
      },
    },
    message_activity: "__string",
  },
  segment_condition: {
    segment_id: "__string", # required
  },
  segment_dimensions: {
    attributes: {
      "__string" => {
        attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
    },
    behavior: {
      recency: {
        duration: "HR_24", # required, accepts HR_24, DAY_7, DAY_14, DAY_30
        recency_type: "ACTIVE", # required, accepts ACTIVE, INACTIVE
      },
    },
    demographic: {
      app_version: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
      channel: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
      device_type: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
      make: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
      model: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
      platform: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
    },
    location: {
      country: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
      gps_point: {
        coordinates: { # required
          latitude: 1.0, # required
          longitude: 1.0, # required
        },
        range_in_kilometers: 1.0,
      },
    },
    metrics: {
      "__string" => {
        comparison_operator: "__string", # required
        value: 1.0, # required
      },
    },
    user_attributes: {
      "__string" => {
        attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"], # required
      },
    },
  },
}

Specifies a condition to evaluate for an activity in a journey.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#event_conditionTypes::EventCondition

The dimension settings for the event that\'s associated with the activity.

Returns:

#segment_conditionTypes::SegmentCondition

The segment that\'s associated with the activity.

Returns:

#segment_dimensionsTypes::SegmentDimensions

The dimension settings for the segment that\'s associated with the activity.

Returns: