Class: Aws::Pinpoint::Types::Condition
- Inherits:
-
Struct
- Object
- Struct
- Aws::Pinpoint::Types::Condition
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-pinpoint/types.rb
Overview
Note:
When making an API call, you may pass Condition data as a hash:
{
conditions: [
{
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
},
},
},
},
],
operator: "ALL", # accepts ALL, ANY
}
Specifies the conditions to evaluate for an activity in a journey, and how to evaluate those conditions.
Instance Attribute Summary collapse
-
#conditions ⇒ Array<Types::SimpleCondition>
The conditions to evaluate for the activity.
-
#operator ⇒ String
Specifies how to handle multiple conditions for the activity.
Instance Attribute Details
#conditions ⇒ Array<Types::SimpleCondition>
The conditions to evaluate for the activity.
2916 2917 2918 2919 2920 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 2916 class Condition < Struct.new( :conditions, :operator) include Aws::Structure end |
#operator ⇒ String
Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.
2916 2917 2918 2919 2920 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 2916 class Condition < Struct.new( :conditions, :operator) include Aws::Structure end |