Amazon Pinpoint

2019/11/01 - Amazon Pinpoint - 9 new 14 updated api methods

Changes  This release of the Amazon Pinpoint API introduces support for using and managing journeys, and querying analytics data for journeys.

CreateJourney (new) Link ¶

Creates a journey for an application.

See also: AWS API Documentation

Request Syntax

client.create_journey(
    ApplicationId='string',
    WriteJourneyRequest={
        'Activities': {
            'string': {
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'Wait': {
                    'NextActivity': 'string',
                    'WaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                }
            }
        },
        'CreationDate': 'string',
        'LastModifiedDate': 'string',
        'Limits': {
            'DailyCap': 123,
            'EndpointReentryCap': 123,
            'MessagesPerSecond': 123
        },
        'LocalTime': True|False,
        'Name': 'string',
        'QuietTime': {
            'End': 'string',
            'Start': 'string'
        },
        'RefreshFrequency': 'string',
        'Schedule': {
            'EndTime': datetime(2015, 1, 1),
            'StartTime': datetime(2015, 1, 1),
            'Timezone': 'string'
        },
        'StartActivity': 'string',
        'StartCondition': {
            'Description': 'string',
            'SegmentStartCondition': {
                'SegmentId': 'string'
            }
        },
        'State': 'DRAFT'|'ACTIVE'|'COMPLETED'|'CANCELLED'|'CLOSED'
    }
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type WriteJourneyRequest

dict

param WriteJourneyRequest

[REQUIRED]

Specifies the configuration and other settings for a journey.

  • Activities (dict) --

    The configuration and other settings for the activities that comprise the journey.

    • (string) --

      • (dict) --

        Specifies the configuration and other settings for an activity in a journey.

        • ConditionalSplit (dict) --

          The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.

          • Condition (dict) --

            The conditions that define the paths for the activity, and the relationship between the conditions.

            • Conditions (list) --

              The conditions to evaluate for the activity.

              • (dict) --

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

                • EventCondition (dict) --

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

                  • Dimensions (dict) -- [REQUIRED]

                    The dimensions for the event filter to use for the activity.

                    • Attributes (dict) --

                      One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                      • (string) --

                        • (dict) --

                          Specifies attribute-based criteria for including or excluding endpoints from a segment.

                          • AttributeType (string) --

                            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.

                          • Values (list) -- [REQUIRED]

                            The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                            • (string) --

                    • EventType (dict) --

                      The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Metrics (dict) --

                      One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                      • (string) --

                        • (dict) --

                          Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                          • ComparisonOperator (string) -- [REQUIRED]

                            The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                          • Value (float) -- [REQUIRED]

                            The value to compare.

                  • MessageActivity (string) --

                    The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                • SegmentCondition (dict) --

                  The segment that's associated with the activity.

                  • SegmentId (string) -- [REQUIRED]

                    The unique identifier for the segment to associate with the activity.

                • SegmentDimensions (dict) --

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

                  • Attributes (dict) --

                    One or more custom attributes to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies attribute-based criteria for including or excluding endpoints from a segment.

                        • AttributeType (string) --

                          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.

                        • Values (list) -- [REQUIRED]

                          The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                          • (string) --

                  • Behavior (dict) --

                    The behavior-based criteria, such as how recently users have used your app, for the segment.

                    • Recency (dict) --

                      The dimension settings that are based on how recently an endpoint was active.

                      • Duration (string) -- [REQUIRED]

                        The duration to use when determining whether an endpoint is active or inactive.

                      • RecencyType (string) -- [REQUIRED]

                        The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                  • Demographic (dict) --

                    The demographic-based criteria, such as device platform, for the segment.

                    • AppVersion (dict) --

                      The app version criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Channel (dict) --

                      The channel criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • DeviceType (dict) --

                      The device type criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Make (dict) --

                      The device make criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Model (dict) --

                      The device model criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Platform (dict) --

                      The device platform criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                  • Location (dict) --

                    The location-based criteria, such as region or GPS coordinates, for the segment.

                    • Country (dict) --

                      The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • GPSPoint (dict) --

                      The GPS location and range for the segment.

                      • Coordinates (dict) -- [REQUIRED]

                        The GPS coordinates to measure distance from.

                        • Latitude (float) -- [REQUIRED]

                          The latitude coordinate of the location.

                        • Longitude (float) -- [REQUIRED]

                          The longitude coordinate of the location.

                      • RangeInKilometers (float) --

                        The range, in kilometers, from the GPS coordinates.

                  • Metrics (dict) --

                    One or more custom metrics to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                        • ComparisonOperator (string) -- [REQUIRED]

                          The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                        • Value (float) -- [REQUIRED]

                          The value to compare.

                  • UserAttributes (dict) --

                    One or more custom user attributes to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies attribute-based criteria for including or excluding endpoints from a segment.

                        • AttributeType (string) --

                          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.

                        • Values (list) -- [REQUIRED]

                          The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                          • (string) --

            • 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.

          • EvaluationWaitTime (dict) --

            The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.

            • WaitFor (string) --

              The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

            • WaitUntil (string) --

              The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

          • FalseActivity (string) --

            The unique identifier for the activity to perform if the condition isn't met.

          • TrueActivity (string) --

            The unique identifier for the activity to perform if the condition is met.

        • Description (string) --

          The custom description of the activity.

        • EMAIL (dict) --

          The settings for an email activity. This type of activity sends an email message to participants.

          • MessageConfig (dict) --

            The "From" address to use for the message.

            • FromAddress (string) --

              The verified email address to send the email message from. The default address is the FromAddress specified for the email channel for the application.

          • NextActivity (string) --

            The unique identifier for the next activity to perform, after the message is sent.

          • TemplateName (string) --

            The name of the email template to use for the message.

        • Holdout (dict) --

          The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.

          • NextActivity (string) --

            The unique identifier for the next activity to perform, after performing the holdout activity.

          • Percentage (integer) -- [REQUIRED]

            The percentage of participants who shouldn't continue the journey.

        • MultiCondition (dict) --

          The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths in a journey, based on conditions that you specify.

          • Branches (list) --

            The paths for the activity, including the conditions for entering each path and the activity to perform for each path.

            • (dict) --

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

              • Condition (dict) --

                The condition to evaluate for the activity path.

                • EventCondition (dict) --

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

                  • Dimensions (dict) -- [REQUIRED]

                    The dimensions for the event filter to use for the activity.

                    • Attributes (dict) --

                      One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                      • (string) --

                        • (dict) --

                          Specifies attribute-based criteria for including or excluding endpoints from a segment.

                          • AttributeType (string) --

                            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.

                          • Values (list) -- [REQUIRED]

                            The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                            • (string) --

                    • EventType (dict) --

                      The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Metrics (dict) --

                      One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                      • (string) --

                        • (dict) --

                          Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                          • ComparisonOperator (string) -- [REQUIRED]

                            The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                          • Value (float) -- [REQUIRED]

                            The value to compare.

                  • MessageActivity (string) --

                    The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                • SegmentCondition (dict) --

                  The segment that's associated with the activity.

                  • SegmentId (string) -- [REQUIRED]

                    The unique identifier for the segment to associate with the activity.

                • SegmentDimensions (dict) --

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

                  • Attributes (dict) --

                    One or more custom attributes to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies attribute-based criteria for including or excluding endpoints from a segment.

                        • AttributeType (string) --

                          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.

                        • Values (list) -- [REQUIRED]

                          The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                          • (string) --

                  • Behavior (dict) --

                    The behavior-based criteria, such as how recently users have used your app, for the segment.

                    • Recency (dict) --

                      The dimension settings that are based on how recently an endpoint was active.

                      • Duration (string) -- [REQUIRED]

                        The duration to use when determining whether an endpoint is active or inactive.

                      • RecencyType (string) -- [REQUIRED]

                        The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                  • Demographic (dict) --

                    The demographic-based criteria, such as device platform, for the segment.

                    • AppVersion (dict) --

                      The app version criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Channel (dict) --

                      The channel criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • DeviceType (dict) --

                      The device type criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Make (dict) --

                      The device make criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Model (dict) --

                      The device model criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Platform (dict) --

                      The device platform criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                  • Location (dict) --

                    The location-based criteria, such as region or GPS coordinates, for the segment.

                    • Country (dict) --

                      The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • GPSPoint (dict) --

                      The GPS location and range for the segment.

                      • Coordinates (dict) -- [REQUIRED]

                        The GPS coordinates to measure distance from.

                        • Latitude (float) -- [REQUIRED]

                          The latitude coordinate of the location.

                        • Longitude (float) -- [REQUIRED]

                          The longitude coordinate of the location.

                      • RangeInKilometers (float) --

                        The range, in kilometers, from the GPS coordinates.

                  • Metrics (dict) --

                    One or more custom metrics to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                        • ComparisonOperator (string) -- [REQUIRED]

                          The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                        • Value (float) -- [REQUIRED]

                          The value to compare.

                  • UserAttributes (dict) --

                    One or more custom user attributes to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies attribute-based criteria for including or excluding endpoints from a segment.

                        • AttributeType (string) --

                          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.

                        • Values (list) -- [REQUIRED]

                          The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                          • (string) --

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after completing the activity for the path.

          • DefaultActivity (string) --

            The activity to perform by default for any path in the activity.

          • EvaluationWaitTime (dict) --

            The amount of time to wait or the date and time when Amazon Pinpoint determines whether the conditions are met.

            • WaitFor (string) --

              The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

            • WaitUntil (string) --

              The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

        • RandomSplit (dict) --

          The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.

          • Branches (list) --

            The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.

            • (dict) --

              Specifies the settings for a path in a random split activity in a journey.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after completing the activity for the path.

              • Percentage (integer) --

                The percentage of participants to send down the activity path.

        • Wait (dict) --

          The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.

          • NextActivity (string) --

            The unique identifier for the next activity to perform, after performing the wait activity.

          • WaitTime (dict) --

            The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.

            • WaitFor (string) --

              The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

            • WaitUntil (string) --

              The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

  • CreationDate (string) --

    The date, in ISO 8601 format, when the journey was created.

  • LastModifiedDate (string) --

    The date, in ISO 8601 format, when the journey was last modified.

  • Limits (dict) --

    The messaging and entry limits for the journey.

    • DailyCap (integer) --

      The maximum number of messages that the journey can send to a single participant during a 24-hour period. The maximum value is 100.

    • EndpointReentryCap (integer) --

      The maximum number of times that a participant can enter the journey. The maximum value is 100. To allow participants to enter the journey an unlimited number of times, set this value to 0.

    • MessagesPerSecond (integer) --

      The maximum number of messages that the journey can send each second.

  • LocalTime (boolean) --

    Specifies whether the journey's scheduled start and end times use each participant's local time. To base the schedule on each participant's local time, set this value to true.

  • Name (string) -- [REQUIRED]

    The name of the journey. A journey name can contain a maximum of 150 characters. The characters can be alphanumeric characters or symbols, such as underscores (_) or hyphens (-). A journey name can't contain any spaces.

  • QuietTime (dict) --

    The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

    • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.

    • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.

    • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

    If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

    • End (string) --

      The specific time when quiet time ends. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

    • Start (string) --

      The specific time when quiet time begins. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

  • RefreshFrequency (string) --

    The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

  • Schedule (dict) --

    The schedule settings for the journey.

    • EndTime (datetime) --

      The scheduled time, in ISO 8601 format, when the journey ended or will end.

    • StartTime (datetime) --

      The scheduled time, in ISO 8601 format, when the journey began or will begin.

    • Timezone (string) --

      The starting UTC offset for the journey schedule, if the value of the journey's LocalTime property is true. Valid values are: UTC, UTC+01, UTC+02, UTC+03, UTC+03:30, UTC+04, UTC+04:30, UTC+05, UTC+05:30, UTC+05:45, UTC+06, UTC+06:30, UTC+07, UTC+08, UTC+08:45, UTC+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+12:45, UTC+13, UTC+13:45, UTC-02, UTC-02:30, UTC-03, UTC-03:30, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-09:30, UTC-10, and UTC-11.

  • StartActivity (string) --

    The unique identifier for the first activity in the journey.

  • StartCondition (dict) --

    The segment that defines which users are participants in the journey.

    • Description (string) --

      The custom description of the condition.

    • SegmentStartCondition (dict) --

      The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.

      • SegmentId (string) -- [REQUIRED]

        The unique identifier for the segment to associate with the activity.

  • State (string) --

    The status of the journey. Valid values are:

    • DRAFT - Saves the journey and doesn't publish it.

    • ACTIVE - Saves and publishes the journey. Depending on the journey's schedule, the journey starts running immediately or at the scheduled start time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.

    The CANCELLED, COMPLETED, and CLOSED values are not supported in requests to create or update a journey. To cancel a journey, use the Journey Stateresource.

rtype

dict

returns

Response Syntax

{
    'JourneyResponse': {
        'Activities': {
            'string': {
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'Wait': {
                    'NextActivity': 'string',
                    'WaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                }
            }
        },
        'ApplicationId': 'string',
        'CreationDate': 'string',
        'Id': 'string',
        'LastModifiedDate': 'string',
        'Limits': {
            'DailyCap': 123,
            'EndpointReentryCap': 123,
            'MessagesPerSecond': 123
        },
        'LocalTime': True|False,
        'Name': 'string',
        'QuietTime': {
            'End': 'string',
            'Start': 'string'
        },
        'RefreshFrequency': 'string',
        'Schedule': {
            'EndTime': datetime(2015, 1, 1),
            'StartTime': datetime(2015, 1, 1),
            'Timezone': 'string'
        },
        'StartActivity': 'string',
        'StartCondition': {
            'Description': 'string',
            'SegmentStartCondition': {
                'SegmentId': 'string'
            }
        },
        'State': 'DRAFT'|'ACTIVE'|'COMPLETED'|'CANCELLED'|'CLOSED',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded and the specified resource was created.

    • JourneyResponse (dict) --

      Provides information about the status, configuration, and other settings for a journey.

      • Activities (dict) --

        The configuration and other settings for the activities that comprise the journey.

        • (string) --

          • (dict) --

            Specifies the configuration and other settings for an activity in a journey.

            • ConditionalSplit (dict) --

              The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.

              • Condition (dict) --

                The conditions that define the paths for the activity, and the relationship between the conditions.

                • Conditions (list) --

                  The conditions to evaluate for the activity.

                  • (dict) --

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

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                • 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.

              • EvaluationWaitTime (dict) --

                The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

              • FalseActivity (string) --

                The unique identifier for the activity to perform if the condition isn't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the condition is met.

            • Description (string) --

              The custom description of the activity.

            • EMAIL (dict) --

              The settings for an email activity. This type of activity sends an email message to participants.

              • MessageConfig (dict) --

                The "From" address to use for the message.

                • FromAddress (string) --

                  The verified email address to send the email message from. The default address is the FromAddress specified for the email channel for the application.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after the message is sent.

              • TemplateName (string) --

                The name of the email template to use for the message.

            • Holdout (dict) --

              The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the holdout activity.

              • Percentage (integer) --

                The percentage of participants who shouldn't continue the journey.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the conditions for entering each path and the activity to perform for each path.

                • (dict) --

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

                  • Condition (dict) --

                    The condition to evaluate for the activity path.

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

              • DefaultActivity (string) --

                The activity to perform by default for any path in the activity.

              • EvaluationWaitTime (dict) --

                The amount of time to wait or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

            • RandomSplit (dict) --

              The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.

                • (dict) --

                  Specifies the settings for a path in a random split activity in a journey.

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

                  • Percentage (integer) --

                    The percentage of participants to send down the activity path.

            • Wait (dict) --

              The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the wait activity.

              • WaitTime (dict) --

                The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

      • ApplicationId (string) --

        The unique identifier for the application that the journey applies to.

      • CreationDate (string) --

        The date, in ISO 8601 format, when the journey was created.

      • Id (string) --

        The unique identifier for the journey.

      • LastModifiedDate (string) --

        The date, in ISO 8601 format, when the journey was last modified.

      • Limits (dict) --

        The messaging and entry limits for the journey.

        • DailyCap (integer) --

          The maximum number of messages that the journey can send to a single participant during a 24-hour period. The maximum value is 100.

        • EndpointReentryCap (integer) --

          The maximum number of times that a participant can enter the journey. The maximum value is 100. To allow participants to enter the journey an unlimited number of times, set this value to 0.

        • MessagesPerSecond (integer) --

          The maximum number of messages that the journey can send each second.

      • LocalTime (boolean) --

        Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.

      • Name (string) --

        The name of the journey.

      • QuietTime (dict) --

        The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

        • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.

        • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.

        • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

        If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

        • End (string) --

          The specific time when quiet time ends. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

        • Start (string) --

          The specific time when quiet time begins. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

      • RefreshFrequency (string) --

        The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

      • Schedule (dict) --

        The schedule settings for the journey.

        • EndTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey ended or will end.

        • StartTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey began or will begin.

        • Timezone (string) --

          The starting UTC offset for the journey schedule, if the value of the journey's LocalTime property is true. Valid values are: UTC, UTC+01, UTC+02, UTC+03, UTC+03:30, UTC+04, UTC+04:30, UTC+05, UTC+05:30, UTC+05:45, UTC+06, UTC+06:30, UTC+07, UTC+08, UTC+08:45, UTC+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+12:45, UTC+13, UTC+13:45, UTC-02, UTC-02:30, UTC-03, UTC-03:30, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-09:30, UTC-10, and UTC-11.

      • StartActivity (string) --

        The unique identifier for the first activity in the journey.

      • StartCondition (dict) --

        The segment that defines which users are participants in the journey.

        • Description (string) --

          The custom description of the condition.

        • SegmentStartCondition (dict) --

          The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.

          • SegmentId (string) --

            The unique identifier for the segment to associate with the activity.

      • State (string) --

        The current status of the journey. Possible values are:

        • DRAFT - The journey is being developed and hasn't been published yet.

        • ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.

        • COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.

        • CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.

        • CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may resume the journey.

      • tags (dict) --

        A string-to-string map of key-value pairs that identifies the tags that are associated with the journey. Each tag consists of a required tag key and an associated tag value.

        • (string) --

          • (string) --

DeleteJourney (new) Link ¶

Deletes a journey from an application.

See also: AWS API Documentation

Request Syntax

client.delete_journey(
    ApplicationId='string',
    JourneyId='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type JourneyId

string

param JourneyId

[REQUIRED]

The unique identifier for the journey.

rtype

dict

returns

Response Syntax

{
    'JourneyResponse': {
        'Activities': {
            'string': {
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'Wait': {
                    'NextActivity': 'string',
                    'WaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                }
            }
        },
        'ApplicationId': 'string',
        'CreationDate': 'string',
        'Id': 'string',
        'LastModifiedDate': 'string',
        'Limits': {
            'DailyCap': 123,
            'EndpointReentryCap': 123,
            'MessagesPerSecond': 123
        },
        'LocalTime': True|False,
        'Name': 'string',
        'QuietTime': {
            'End': 'string',
            'Start': 'string'
        },
        'RefreshFrequency': 'string',
        'Schedule': {
            'EndTime': datetime(2015, 1, 1),
            'StartTime': datetime(2015, 1, 1),
            'Timezone': 'string'
        },
        'StartActivity': 'string',
        'StartCondition': {
            'Description': 'string',
            'SegmentStartCondition': {
                'SegmentId': 'string'
            }
        },
        'State': 'DRAFT'|'ACTIVE'|'COMPLETED'|'CANCELLED'|'CLOSED',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • JourneyResponse (dict) --

      Provides information about the status, configuration, and other settings for a journey.

      • Activities (dict) --

        The configuration and other settings for the activities that comprise the journey.

        • (string) --

          • (dict) --

            Specifies the configuration and other settings for an activity in a journey.

            • ConditionalSplit (dict) --

              The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.

              • Condition (dict) --

                The conditions that define the paths for the activity, and the relationship between the conditions.

                • Conditions (list) --

                  The conditions to evaluate for the activity.

                  • (dict) --

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

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                • 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.

              • EvaluationWaitTime (dict) --

                The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

              • FalseActivity (string) --

                The unique identifier for the activity to perform if the condition isn't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the condition is met.

            • Description (string) --

              The custom description of the activity.

            • EMAIL (dict) --

              The settings for an email activity. This type of activity sends an email message to participants.

              • MessageConfig (dict) --

                The "From" address to use for the message.

                • FromAddress (string) --

                  The verified email address to send the email message from. The default address is the FromAddress specified for the email channel for the application.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after the message is sent.

              • TemplateName (string) --

                The name of the email template to use for the message.

            • Holdout (dict) --

              The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the holdout activity.

              • Percentage (integer) --

                The percentage of participants who shouldn't continue the journey.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the conditions for entering each path and the activity to perform for each path.

                • (dict) --

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

                  • Condition (dict) --

                    The condition to evaluate for the activity path.

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

              • DefaultActivity (string) --

                The activity to perform by default for any path in the activity.

              • EvaluationWaitTime (dict) --

                The amount of time to wait or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

            • RandomSplit (dict) --

              The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.

                • (dict) --

                  Specifies the settings for a path in a random split activity in a journey.

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

                  • Percentage (integer) --

                    The percentage of participants to send down the activity path.

            • Wait (dict) --

              The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the wait activity.

              • WaitTime (dict) --

                The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

      • ApplicationId (string) --

        The unique identifier for the application that the journey applies to.

      • CreationDate (string) --

        The date, in ISO 8601 format, when the journey was created.

      • Id (string) --

        The unique identifier for the journey.

      • LastModifiedDate (string) --

        The date, in ISO 8601 format, when the journey was last modified.

      • Limits (dict) --

        The messaging and entry limits for the journey.

        • DailyCap (integer) --

          The maximum number of messages that the journey can send to a single participant during a 24-hour period. The maximum value is 100.

        • EndpointReentryCap (integer) --

          The maximum number of times that a participant can enter the journey. The maximum value is 100. To allow participants to enter the journey an unlimited number of times, set this value to 0.

        • MessagesPerSecond (integer) --

          The maximum number of messages that the journey can send each second.

      • LocalTime (boolean) --

        Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.

      • Name (string) --

        The name of the journey.

      • QuietTime (dict) --

        The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

        • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.

        • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.

        • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

        If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

        • End (string) --

          The specific time when quiet time ends. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

        • Start (string) --

          The specific time when quiet time begins. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

      • RefreshFrequency (string) --

        The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

      • Schedule (dict) --

        The schedule settings for the journey.

        • EndTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey ended or will end.

        • StartTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey began or will begin.

        • Timezone (string) --

          The starting UTC offset for the journey schedule, if the value of the journey's LocalTime property is true. Valid values are: UTC, UTC+01, UTC+02, UTC+03, UTC+03:30, UTC+04, UTC+04:30, UTC+05, UTC+05:30, UTC+05:45, UTC+06, UTC+06:30, UTC+07, UTC+08, UTC+08:45, UTC+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+12:45, UTC+13, UTC+13:45, UTC-02, UTC-02:30, UTC-03, UTC-03:30, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-09:30, UTC-10, and UTC-11.

      • StartActivity (string) --

        The unique identifier for the first activity in the journey.

      • StartCondition (dict) --

        The segment that defines which users are participants in the journey.

        • Description (string) --

          The custom description of the condition.

        • SegmentStartCondition (dict) --

          The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.

          • SegmentId (string) --

            The unique identifier for the segment to associate with the activity.

      • State (string) --

        The current status of the journey. Possible values are:

        • DRAFT - The journey is being developed and hasn't been published yet.

        • ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.

        • COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.

        • CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.

        • CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may resume the journey.

      • tags (dict) --

        A string-to-string map of key-value pairs that identifies the tags that are associated with the journey. Each tag consists of a required tag key and an associated tag value.

        • (string) --

          • (string) --

GetJourney (new) Link ¶

Retrieves information about the status, configuration, and other settings for a journey.

See also: AWS API Documentation

Request Syntax

client.get_journey(
    ApplicationId='string',
    JourneyId='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type JourneyId

string

param JourneyId

[REQUIRED]

The unique identifier for the journey.

rtype

dict

returns

Response Syntax

{
    'JourneyResponse': {
        'Activities': {
            'string': {
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'Wait': {
                    'NextActivity': 'string',
                    'WaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                }
            }
        },
        'ApplicationId': 'string',
        'CreationDate': 'string',
        'Id': 'string',
        'LastModifiedDate': 'string',
        'Limits': {
            'DailyCap': 123,
            'EndpointReentryCap': 123,
            'MessagesPerSecond': 123
        },
        'LocalTime': True|False,
        'Name': 'string',
        'QuietTime': {
            'End': 'string',
            'Start': 'string'
        },
        'RefreshFrequency': 'string',
        'Schedule': {
            'EndTime': datetime(2015, 1, 1),
            'StartTime': datetime(2015, 1, 1),
            'Timezone': 'string'
        },
        'StartActivity': 'string',
        'StartCondition': {
            'Description': 'string',
            'SegmentStartCondition': {
                'SegmentId': 'string'
            }
        },
        'State': 'DRAFT'|'ACTIVE'|'COMPLETED'|'CANCELLED'|'CLOSED',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • JourneyResponse (dict) --

      Provides information about the status, configuration, and other settings for a journey.

      • Activities (dict) --

        The configuration and other settings for the activities that comprise the journey.

        • (string) --

          • (dict) --

            Specifies the configuration and other settings for an activity in a journey.

            • ConditionalSplit (dict) --

              The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.

              • Condition (dict) --

                The conditions that define the paths for the activity, and the relationship between the conditions.

                • Conditions (list) --

                  The conditions to evaluate for the activity.

                  • (dict) --

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

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                • 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.

              • EvaluationWaitTime (dict) --

                The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

              • FalseActivity (string) --

                The unique identifier for the activity to perform if the condition isn't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the condition is met.

            • Description (string) --

              The custom description of the activity.

            • EMAIL (dict) --

              The settings for an email activity. This type of activity sends an email message to participants.

              • MessageConfig (dict) --

                The "From" address to use for the message.

                • FromAddress (string) --

                  The verified email address to send the email message from. The default address is the FromAddress specified for the email channel for the application.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after the message is sent.

              • TemplateName (string) --

                The name of the email template to use for the message.

            • Holdout (dict) --

              The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the holdout activity.

              • Percentage (integer) --

                The percentage of participants who shouldn't continue the journey.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the conditions for entering each path and the activity to perform for each path.

                • (dict) --

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

                  • Condition (dict) --

                    The condition to evaluate for the activity path.

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

              • DefaultActivity (string) --

                The activity to perform by default for any path in the activity.

              • EvaluationWaitTime (dict) --

                The amount of time to wait or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

            • RandomSplit (dict) --

              The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.

                • (dict) --

                  Specifies the settings for a path in a random split activity in a journey.

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

                  • Percentage (integer) --

                    The percentage of participants to send down the activity path.

            • Wait (dict) --

              The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the wait activity.

              • WaitTime (dict) --

                The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

      • ApplicationId (string) --

        The unique identifier for the application that the journey applies to.

      • CreationDate (string) --

        The date, in ISO 8601 format, when the journey was created.

      • Id (string) --

        The unique identifier for the journey.

      • LastModifiedDate (string) --

        The date, in ISO 8601 format, when the journey was last modified.

      • Limits (dict) --

        The messaging and entry limits for the journey.

        • DailyCap (integer) --

          The maximum number of messages that the journey can send to a single participant during a 24-hour period. The maximum value is 100.

        • EndpointReentryCap (integer) --

          The maximum number of times that a participant can enter the journey. The maximum value is 100. To allow participants to enter the journey an unlimited number of times, set this value to 0.

        • MessagesPerSecond (integer) --

          The maximum number of messages that the journey can send each second.

      • LocalTime (boolean) --

        Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.

      • Name (string) --

        The name of the journey.

      • QuietTime (dict) --

        The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

        • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.

        • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.

        • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

        If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

        • End (string) --

          The specific time when quiet time ends. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

        • Start (string) --

          The specific time when quiet time begins. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

      • RefreshFrequency (string) --

        The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

      • Schedule (dict) --

        The schedule settings for the journey.

        • EndTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey ended or will end.

        • StartTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey began or will begin.

        • Timezone (string) --

          The starting UTC offset for the journey schedule, if the value of the journey's LocalTime property is true. Valid values are: UTC, UTC+01, UTC+02, UTC+03, UTC+03:30, UTC+04, UTC+04:30, UTC+05, UTC+05:30, UTC+05:45, UTC+06, UTC+06:30, UTC+07, UTC+08, UTC+08:45, UTC+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+12:45, UTC+13, UTC+13:45, UTC-02, UTC-02:30, UTC-03, UTC-03:30, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-09:30, UTC-10, and UTC-11.

      • StartActivity (string) --

        The unique identifier for the first activity in the journey.

      • StartCondition (dict) --

        The segment that defines which users are participants in the journey.

        • Description (string) --

          The custom description of the condition.

        • SegmentStartCondition (dict) --

          The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.

          • SegmentId (string) --

            The unique identifier for the segment to associate with the activity.

      • State (string) --

        The current status of the journey. Possible values are:

        • DRAFT - The journey is being developed and hasn't been published yet.

        • ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.

        • COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.

        • CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.

        • CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may resume the journey.

      • tags (dict) --

        A string-to-string map of key-value pairs that identifies the tags that are associated with the journey. Each tag consists of a required tag key and an associated tag value.

        • (string) --

          • (string) --

ListJourneys (new) Link ¶

Retrieves information about the status, configuration, and other settings for all the journeys that are associated with an application.

See also: AWS API Documentation

Request Syntax

client.list_journeys(
    ApplicationId='string',
    PageSize='string',
    Token='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type Token

string

param Token

The NextToken string that specifies which page of results to return in a paginated response.

rtype

dict

returns

Response Syntax

{
    'JourneysResponse': {
        'Item': [
            {
                'Activities': {
                    'string': {
                        'ConditionalSplit': {
                            'Condition': {
                                'Conditions': [
                                    {
                                        'EventCondition': {
                                            'Dimensions': {
                                                'Attributes': {
                                                    'string': {
                                                        'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                        'Values': [
                                                            'string',
                                                        ]
                                                    }
                                                },
                                                'EventType': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Metrics': {
                                                    'string': {
                                                        'ComparisonOperator': 'string',
                                                        'Value': 123.0
                                                    }
                                                }
                                            },
                                            'MessageActivity': 'string'
                                        },
                                        'SegmentCondition': {
                                            'SegmentId': 'string'
                                        },
                                        'SegmentDimensions': {
                                            'Attributes': {
                                                'string': {
                                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                }
                                            },
                                            'Behavior': {
                                                'Recency': {
                                                    'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                                    'RecencyType': 'ACTIVE'|'INACTIVE'
                                                }
                                            },
                                            'Demographic': {
                                                'AppVersion': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Channel': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'DeviceType': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Make': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Model': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Platform': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                }
                                            },
                                            'Location': {
                                                'Country': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'GPSPoint': {
                                                    'Coordinates': {
                                                        'Latitude': 123.0,
                                                        'Longitude': 123.0
                                                    },
                                                    'RangeInKilometers': 123.0
                                                }
                                            },
                                            'Metrics': {
                                                'string': {
                                                    'ComparisonOperator': 'string',
                                                    'Value': 123.0
                                                }
                                            },
                                            'UserAttributes': {
                                                'string': {
                                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                }
                                            }
                                        }
                                    },
                                ],
                                'Operator': 'ALL'|'ANY'
                            },
                            'EvaluationWaitTime': {
                                'WaitFor': 'string',
                                'WaitUntil': 'string'
                            },
                            'FalseActivity': 'string',
                            'TrueActivity': 'string'
                        },
                        'Description': 'string',
                        'EMAIL': {
                            'MessageConfig': {
                                'FromAddress': 'string'
                            },
                            'NextActivity': 'string',
                            'TemplateName': 'string'
                        },
                        'Holdout': {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                        'MultiCondition': {
                            'Branches': [
                                {
                                    'Condition': {
                                        'EventCondition': {
                                            'Dimensions': {
                                                'Attributes': {
                                                    'string': {
                                                        'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                        'Values': [
                                                            'string',
                                                        ]
                                                    }
                                                },
                                                'EventType': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Metrics': {
                                                    'string': {
                                                        'ComparisonOperator': 'string',
                                                        'Value': 123.0
                                                    }
                                                }
                                            },
                                            'MessageActivity': 'string'
                                        },
                                        'SegmentCondition': {
                                            'SegmentId': 'string'
                                        },
                                        'SegmentDimensions': {
                                            'Attributes': {
                                                'string': {
                                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                }
                                            },
                                            'Behavior': {
                                                'Recency': {
                                                    'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                                    'RecencyType': 'ACTIVE'|'INACTIVE'
                                                }
                                            },
                                            'Demographic': {
                                                'AppVersion': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Channel': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'DeviceType': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Make': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Model': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'Platform': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                }
                                            },
                                            'Location': {
                                                'Country': {
                                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                },
                                                'GPSPoint': {
                                                    'Coordinates': {
                                                        'Latitude': 123.0,
                                                        'Longitude': 123.0
                                                    },
                                                    'RangeInKilometers': 123.0
                                                }
                                            },
                                            'Metrics': {
                                                'string': {
                                                    'ComparisonOperator': 'string',
                                                    'Value': 123.0
                                                }
                                            },
                                            'UserAttributes': {
                                                'string': {
                                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                }
                                            }
                                        }
                                    },
                                    'NextActivity': 'string'
                                },
                            ],
                            'DefaultActivity': 'string',
                            'EvaluationWaitTime': {
                                'WaitFor': 'string',
                                'WaitUntil': 'string'
                            }
                        },
                        'RandomSplit': {
                            'Branches': [
                                {
                                    'NextActivity': 'string',
                                    'Percentage': 123
                                },
                            ]
                        },
                        'Wait': {
                            'NextActivity': 'string',
                            'WaitTime': {
                                'WaitFor': 'string',
                                'WaitUntil': 'string'
                            }
                        }
                    }
                },
                'ApplicationId': 'string',
                'CreationDate': 'string',
                'Id': 'string',
                'LastModifiedDate': 'string',
                'Limits': {
                    'DailyCap': 123,
                    'EndpointReentryCap': 123,
                    'MessagesPerSecond': 123
                },
                'LocalTime': True|False,
                'Name': 'string',
                'QuietTime': {
                    'End': 'string',
                    'Start': 'string'
                },
                'RefreshFrequency': 'string',
                'Schedule': {
                    'EndTime': datetime(2015, 1, 1),
                    'StartTime': datetime(2015, 1, 1),
                    'Timezone': 'string'
                },
                'StartActivity': 'string',
                'StartCondition': {
                    'Description': 'string',
                    'SegmentStartCondition': {
                        'SegmentId': 'string'
                    }
                },
                'State': 'DRAFT'|'ACTIVE'|'COMPLETED'|'CANCELLED'|'CLOSED',
                'tags': {
                    'string': 'string'
                }
            },
        ],
        'NextToken': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • JourneysResponse (dict) --

      Provides information about the status, configuration, and other settings for all the journeys that are associated with an application.

      • Item (list) --

        An array of responses, one for each journey that's associated with the application.

        • (dict) --

          Provides information about the status, configuration, and other settings for a journey.

          • Activities (dict) --

            The configuration and other settings for the activities that comprise the journey.

            • (string) --

              • (dict) --

                Specifies the configuration and other settings for an activity in a journey.

                • ConditionalSplit (dict) --

                  The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.

                  • Condition (dict) --

                    The conditions that define the paths for the activity, and the relationship between the conditions.

                    • Conditions (list) --

                      The conditions to evaluate for the activity.

                      • (dict) --

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

                        • EventCondition (dict) --

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

                          • Dimensions (dict) --

                            The dimensions for the event filter to use for the activity.

                            • Attributes (dict) --

                              One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                              • (string) --

                                • (dict) --

                                  Specifies attribute-based criteria for including or excluding endpoints from a segment.

                                  • AttributeType (string) --

                                    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.

                                  • Values (list) --

                                    The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                    • (string) --

                            • EventType (dict) --

                              The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Metrics (dict) --

                              One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                              • (string) --

                                • (dict) --

                                  Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                                  • ComparisonOperator (string) --

                                    The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                                  • Value (float) --

                                    The value to compare.

                          • MessageActivity (string) --

                            The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                        • SegmentCondition (dict) --

                          The segment that's associated with the activity.

                          • SegmentId (string) --

                            The unique identifier for the segment to associate with the activity.

                        • SegmentDimensions (dict) --

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

                          • Attributes (dict) --

                            One or more custom attributes to use as criteria for the segment.

                            • (string) --

                              • (dict) --

                                Specifies attribute-based criteria for including or excluding endpoints from a segment.

                                • AttributeType (string) --

                                  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.

                                • Values (list) --

                                  The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                  • (string) --

                          • Behavior (dict) --

                            The behavior-based criteria, such as how recently users have used your app, for the segment.

                            • Recency (dict) --

                              The dimension settings that are based on how recently an endpoint was active.

                              • Duration (string) --

                                The duration to use when determining whether an endpoint is active or inactive.

                              • RecencyType (string) --

                                The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                          • Demographic (dict) --

                            The demographic-based criteria, such as device platform, for the segment.

                            • AppVersion (dict) --

                              The app version criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Channel (dict) --

                              The channel criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • DeviceType (dict) --

                              The device type criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Make (dict) --

                              The device make criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Model (dict) --

                              The device model criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Platform (dict) --

                              The device platform criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                          • Location (dict) --

                            The location-based criteria, such as region or GPS coordinates, for the segment.

                            • Country (dict) --

                              The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • GPSPoint (dict) --

                              The GPS location and range for the segment.

                              • Coordinates (dict) --

                                The GPS coordinates to measure distance from.

                                • Latitude (float) --

                                  The latitude coordinate of the location.

                                • Longitude (float) --

                                  The longitude coordinate of the location.

                              • RangeInKilometers (float) --

                                The range, in kilometers, from the GPS coordinates.

                          • Metrics (dict) --

                            One or more custom metrics to use as criteria for the segment.

                            • (string) --

                              • (dict) --

                                Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                                • ComparisonOperator (string) --

                                  The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                                • Value (float) --

                                  The value to compare.

                          • UserAttributes (dict) --

                            One or more custom user attributes to use as criteria for the segment.

                            • (string) --

                              • (dict) --

                                Specifies attribute-based criteria for including or excluding endpoints from a segment.

                                • AttributeType (string) --

                                  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.

                                • Values (list) --

                                  The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                  • (string) --

                    • 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.

                  • EvaluationWaitTime (dict) --

                    The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.

                    • WaitFor (string) --

                      The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                    • WaitUntil (string) --

                      The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

                  • FalseActivity (string) --

                    The unique identifier for the activity to perform if the condition isn't met.

                  • TrueActivity (string) --

                    The unique identifier for the activity to perform if the condition is met.

                • Description (string) --

                  The custom description of the activity.

                • EMAIL (dict) --

                  The settings for an email activity. This type of activity sends an email message to participants.

                  • MessageConfig (dict) --

                    The "From" address to use for the message.

                    • FromAddress (string) --

                      The verified email address to send the email message from. The default address is the FromAddress specified for the email channel for the application.

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after the message is sent.

                  • TemplateName (string) --

                    The name of the email template to use for the message.

                • Holdout (dict) --

                  The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after performing the holdout activity.

                  • Percentage (integer) --

                    The percentage of participants who shouldn't continue the journey.

                • MultiCondition (dict) --

                  The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths in a journey, based on conditions that you specify.

                  • Branches (list) --

                    The paths for the activity, including the conditions for entering each path and the activity to perform for each path.

                    • (dict) --

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

                      • Condition (dict) --

                        The condition to evaluate for the activity path.

                        • EventCondition (dict) --

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

                          • Dimensions (dict) --

                            The dimensions for the event filter to use for the activity.

                            • Attributes (dict) --

                              One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                              • (string) --

                                • (dict) --

                                  Specifies attribute-based criteria for including or excluding endpoints from a segment.

                                  • AttributeType (string) --

                                    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.

                                  • Values (list) --

                                    The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                    • (string) --

                            • EventType (dict) --

                              The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Metrics (dict) --

                              One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                              • (string) --

                                • (dict) --

                                  Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                                  • ComparisonOperator (string) --

                                    The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                                  • Value (float) --

                                    The value to compare.

                          • MessageActivity (string) --

                            The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                        • SegmentCondition (dict) --

                          The segment that's associated with the activity.

                          • SegmentId (string) --

                            The unique identifier for the segment to associate with the activity.

                        • SegmentDimensions (dict) --

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

                          • Attributes (dict) --

                            One or more custom attributes to use as criteria for the segment.

                            • (string) --

                              • (dict) --

                                Specifies attribute-based criteria for including or excluding endpoints from a segment.

                                • AttributeType (string) --

                                  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.

                                • Values (list) --

                                  The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                  • (string) --

                          • Behavior (dict) --

                            The behavior-based criteria, such as how recently users have used your app, for the segment.

                            • Recency (dict) --

                              The dimension settings that are based on how recently an endpoint was active.

                              • Duration (string) --

                                The duration to use when determining whether an endpoint is active or inactive.

                              • RecencyType (string) --

                                The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                          • Demographic (dict) --

                            The demographic-based criteria, such as device platform, for the segment.

                            • AppVersion (dict) --

                              The app version criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Channel (dict) --

                              The channel criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • DeviceType (dict) --

                              The device type criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Make (dict) --

                              The device make criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Model (dict) --

                              The device model criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • Platform (dict) --

                              The device platform criteria for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                          • Location (dict) --

                            The location-based criteria, such as region or GPS coordinates, for the segment.

                            • Country (dict) --

                              The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                              • DimensionType (string) --

                                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.

                              • Values (list) --

                                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.

                                • (string) --

                            • GPSPoint (dict) --

                              The GPS location and range for the segment.

                              • Coordinates (dict) --

                                The GPS coordinates to measure distance from.

                                • Latitude (float) --

                                  The latitude coordinate of the location.

                                • Longitude (float) --

                                  The longitude coordinate of the location.

                              • RangeInKilometers (float) --

                                The range, in kilometers, from the GPS coordinates.

                          • Metrics (dict) --

                            One or more custom metrics to use as criteria for the segment.

                            • (string) --

                              • (dict) --

                                Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                                • ComparisonOperator (string) --

                                  The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                                • Value (float) --

                                  The value to compare.

                          • UserAttributes (dict) --

                            One or more custom user attributes to use as criteria for the segment.

                            • (string) --

                              • (dict) --

                                Specifies attribute-based criteria for including or excluding endpoints from a segment.

                                • AttributeType (string) --

                                  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.

                                • Values (list) --

                                  The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                  • (string) --

                      • NextActivity (string) --

                        The unique identifier for the next activity to perform, after completing the activity for the path.

                  • DefaultActivity (string) --

                    The activity to perform by default for any path in the activity.

                  • EvaluationWaitTime (dict) --

                    The amount of time to wait or the date and time when Amazon Pinpoint determines whether the conditions are met.

                    • WaitFor (string) --

                      The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                    • WaitUntil (string) --

                      The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

                • RandomSplit (dict) --

                  The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.

                  • Branches (list) --

                    The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.

                    • (dict) --

                      Specifies the settings for a path in a random split activity in a journey.

                      • NextActivity (string) --

                        The unique identifier for the next activity to perform, after completing the activity for the path.

                      • Percentage (integer) --

                        The percentage of participants to send down the activity path.

                • Wait (dict) --

                  The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after performing the wait activity.

                  • WaitTime (dict) --

                    The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.

                    • WaitFor (string) --

                      The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                    • WaitUntil (string) --

                      The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

          • ApplicationId (string) --

            The unique identifier for the application that the journey applies to.

          • CreationDate (string) --

            The date, in ISO 8601 format, when the journey was created.

          • Id (string) --

            The unique identifier for the journey.

          • LastModifiedDate (string) --

            The date, in ISO 8601 format, when the journey was last modified.

          • Limits (dict) --

            The messaging and entry limits for the journey.

            • DailyCap (integer) --

              The maximum number of messages that the journey can send to a single participant during a 24-hour period. The maximum value is 100.

            • EndpointReentryCap (integer) --

              The maximum number of times that a participant can enter the journey. The maximum value is 100. To allow participants to enter the journey an unlimited number of times, set this value to 0.

            • MessagesPerSecond (integer) --

              The maximum number of messages that the journey can send each second.

          • LocalTime (boolean) --

            Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.

          • Name (string) --

            The name of the journey.

          • QuietTime (dict) --

            The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

            • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.

            • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.

            • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

            If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

            • End (string) --

              The specific time when quiet time ends. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

            • Start (string) --

              The specific time when quiet time begins. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

          • RefreshFrequency (string) --

            The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

          • Schedule (dict) --

            The schedule settings for the journey.

            • EndTime (datetime) --

              The scheduled time, in ISO 8601 format, when the journey ended or will end.

            • StartTime (datetime) --

              The scheduled time, in ISO 8601 format, when the journey began or will begin.

            • Timezone (string) --

              The starting UTC offset for the journey schedule, if the value of the journey's LocalTime property is true. Valid values are: UTC, UTC+01, UTC+02, UTC+03, UTC+03:30, UTC+04, UTC+04:30, UTC+05, UTC+05:30, UTC+05:45, UTC+06, UTC+06:30, UTC+07, UTC+08, UTC+08:45, UTC+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+12:45, UTC+13, UTC+13:45, UTC-02, UTC-02:30, UTC-03, UTC-03:30, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-09:30, UTC-10, and UTC-11.

          • StartActivity (string) --

            The unique identifier for the first activity in the journey.

          • StartCondition (dict) --

            The segment that defines which users are participants in the journey.

            • Description (string) --

              The custom description of the condition.

            • SegmentStartCondition (dict) --

              The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.

              • SegmentId (string) --

                The unique identifier for the segment to associate with the activity.

          • State (string) --

            The current status of the journey. Possible values are:

            • DRAFT - The journey is being developed and hasn't been published yet.

            • ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.

            • COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.

            • CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.

            • CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may resume the journey.

          • tags (dict) --

            A string-to-string map of key-value pairs that identifies the tags that are associated with the journey. Each tag consists of a required tag key and an associated tag value.

            • (string) --

              • (string) --

      • NextToken (string) --

        The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

UpdateJourney (new) Link ¶

Updates the configuration and other settings for a journey.

See also: AWS API Documentation

Request Syntax

client.update_journey(
    ApplicationId='string',
    JourneyId='string',
    WriteJourneyRequest={
        'Activities': {
            'string': {
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'Wait': {
                    'NextActivity': 'string',
                    'WaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                }
            }
        },
        'CreationDate': 'string',
        'LastModifiedDate': 'string',
        'Limits': {
            'DailyCap': 123,
            'EndpointReentryCap': 123,
            'MessagesPerSecond': 123
        },
        'LocalTime': True|False,
        'Name': 'string',
        'QuietTime': {
            'End': 'string',
            'Start': 'string'
        },
        'RefreshFrequency': 'string',
        'Schedule': {
            'EndTime': datetime(2015, 1, 1),
            'StartTime': datetime(2015, 1, 1),
            'Timezone': 'string'
        },
        'StartActivity': 'string',
        'StartCondition': {
            'Description': 'string',
            'SegmentStartCondition': {
                'SegmentId': 'string'
            }
        },
        'State': 'DRAFT'|'ACTIVE'|'COMPLETED'|'CANCELLED'|'CLOSED'
    }
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type JourneyId

string

param JourneyId

[REQUIRED]

The unique identifier for the journey.

type WriteJourneyRequest

dict

param WriteJourneyRequest

[REQUIRED]

Specifies the configuration and other settings for a journey.

  • Activities (dict) --

    The configuration and other settings for the activities that comprise the journey.

    • (string) --

      • (dict) --

        Specifies the configuration and other settings for an activity in a journey.

        • ConditionalSplit (dict) --

          The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.

          • Condition (dict) --

            The conditions that define the paths for the activity, and the relationship between the conditions.

            • Conditions (list) --

              The conditions to evaluate for the activity.

              • (dict) --

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

                • EventCondition (dict) --

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

                  • Dimensions (dict) -- [REQUIRED]

                    The dimensions for the event filter to use for the activity.

                    • Attributes (dict) --

                      One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                      • (string) --

                        • (dict) --

                          Specifies attribute-based criteria for including or excluding endpoints from a segment.

                          • AttributeType (string) --

                            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.

                          • Values (list) -- [REQUIRED]

                            The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                            • (string) --

                    • EventType (dict) --

                      The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Metrics (dict) --

                      One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                      • (string) --

                        • (dict) --

                          Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                          • ComparisonOperator (string) -- [REQUIRED]

                            The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                          • Value (float) -- [REQUIRED]

                            The value to compare.

                  • MessageActivity (string) --

                    The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                • SegmentCondition (dict) --

                  The segment that's associated with the activity.

                  • SegmentId (string) -- [REQUIRED]

                    The unique identifier for the segment to associate with the activity.

                • SegmentDimensions (dict) --

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

                  • Attributes (dict) --

                    One or more custom attributes to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies attribute-based criteria for including or excluding endpoints from a segment.

                        • AttributeType (string) --

                          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.

                        • Values (list) -- [REQUIRED]

                          The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                          • (string) --

                  • Behavior (dict) --

                    The behavior-based criteria, such as how recently users have used your app, for the segment.

                    • Recency (dict) --

                      The dimension settings that are based on how recently an endpoint was active.

                      • Duration (string) -- [REQUIRED]

                        The duration to use when determining whether an endpoint is active or inactive.

                      • RecencyType (string) -- [REQUIRED]

                        The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                  • Demographic (dict) --

                    The demographic-based criteria, such as device platform, for the segment.

                    • AppVersion (dict) --

                      The app version criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Channel (dict) --

                      The channel criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • DeviceType (dict) --

                      The device type criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Make (dict) --

                      The device make criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Model (dict) --

                      The device model criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Platform (dict) --

                      The device platform criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                  • Location (dict) --

                    The location-based criteria, such as region or GPS coordinates, for the segment.

                    • Country (dict) --

                      The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • GPSPoint (dict) --

                      The GPS location and range for the segment.

                      • Coordinates (dict) -- [REQUIRED]

                        The GPS coordinates to measure distance from.

                        • Latitude (float) -- [REQUIRED]

                          The latitude coordinate of the location.

                        • Longitude (float) -- [REQUIRED]

                          The longitude coordinate of the location.

                      • RangeInKilometers (float) --

                        The range, in kilometers, from the GPS coordinates.

                  • Metrics (dict) --

                    One or more custom metrics to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                        • ComparisonOperator (string) -- [REQUIRED]

                          The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                        • Value (float) -- [REQUIRED]

                          The value to compare.

                  • UserAttributes (dict) --

                    One or more custom user attributes to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies attribute-based criteria for including or excluding endpoints from a segment.

                        • AttributeType (string) --

                          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.

                        • Values (list) -- [REQUIRED]

                          The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                          • (string) --

            • 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.

          • EvaluationWaitTime (dict) --

            The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.

            • WaitFor (string) --

              The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

            • WaitUntil (string) --

              The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

          • FalseActivity (string) --

            The unique identifier for the activity to perform if the condition isn't met.

          • TrueActivity (string) --

            The unique identifier for the activity to perform if the condition is met.

        • Description (string) --

          The custom description of the activity.

        • EMAIL (dict) --

          The settings for an email activity. This type of activity sends an email message to participants.

          • MessageConfig (dict) --

            The "From" address to use for the message.

            • FromAddress (string) --

              The verified email address to send the email message from. The default address is the FromAddress specified for the email channel for the application.

          • NextActivity (string) --

            The unique identifier for the next activity to perform, after the message is sent.

          • TemplateName (string) --

            The name of the email template to use for the message.

        • Holdout (dict) --

          The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.

          • NextActivity (string) --

            The unique identifier for the next activity to perform, after performing the holdout activity.

          • Percentage (integer) -- [REQUIRED]

            The percentage of participants who shouldn't continue the journey.

        • MultiCondition (dict) --

          The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths in a journey, based on conditions that you specify.

          • Branches (list) --

            The paths for the activity, including the conditions for entering each path and the activity to perform for each path.

            • (dict) --

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

              • Condition (dict) --

                The condition to evaluate for the activity path.

                • EventCondition (dict) --

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

                  • Dimensions (dict) -- [REQUIRED]

                    The dimensions for the event filter to use for the activity.

                    • Attributes (dict) --

                      One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                      • (string) --

                        • (dict) --

                          Specifies attribute-based criteria for including or excluding endpoints from a segment.

                          • AttributeType (string) --

                            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.

                          • Values (list) -- [REQUIRED]

                            The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                            • (string) --

                    • EventType (dict) --

                      The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Metrics (dict) --

                      One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                      • (string) --

                        • (dict) --

                          Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                          • ComparisonOperator (string) -- [REQUIRED]

                            The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                          • Value (float) -- [REQUIRED]

                            The value to compare.

                  • MessageActivity (string) --

                    The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                • SegmentCondition (dict) --

                  The segment that's associated with the activity.

                  • SegmentId (string) -- [REQUIRED]

                    The unique identifier for the segment to associate with the activity.

                • SegmentDimensions (dict) --

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

                  • Attributes (dict) --

                    One or more custom attributes to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies attribute-based criteria for including or excluding endpoints from a segment.

                        • AttributeType (string) --

                          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.

                        • Values (list) -- [REQUIRED]

                          The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                          • (string) --

                  • Behavior (dict) --

                    The behavior-based criteria, such as how recently users have used your app, for the segment.

                    • Recency (dict) --

                      The dimension settings that are based on how recently an endpoint was active.

                      • Duration (string) -- [REQUIRED]

                        The duration to use when determining whether an endpoint is active or inactive.

                      • RecencyType (string) -- [REQUIRED]

                        The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                  • Demographic (dict) --

                    The demographic-based criteria, such as device platform, for the segment.

                    • AppVersion (dict) --

                      The app version criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Channel (dict) --

                      The channel criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • DeviceType (dict) --

                      The device type criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Make (dict) --

                      The device make criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Model (dict) --

                      The device model criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • Platform (dict) --

                      The device platform criteria for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                  • Location (dict) --

                    The location-based criteria, such as region or GPS coordinates, for the segment.

                    • Country (dict) --

                      The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                      • DimensionType (string) --

                        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.

                      • Values (list) -- [REQUIRED]

                        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.

                        • (string) --

                    • GPSPoint (dict) --

                      The GPS location and range for the segment.

                      • Coordinates (dict) -- [REQUIRED]

                        The GPS coordinates to measure distance from.

                        • Latitude (float) -- [REQUIRED]

                          The latitude coordinate of the location.

                        • Longitude (float) -- [REQUIRED]

                          The longitude coordinate of the location.

                      • RangeInKilometers (float) --

                        The range, in kilometers, from the GPS coordinates.

                  • Metrics (dict) --

                    One or more custom metrics to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                        • ComparisonOperator (string) -- [REQUIRED]

                          The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                        • Value (float) -- [REQUIRED]

                          The value to compare.

                  • UserAttributes (dict) --

                    One or more custom user attributes to use as criteria for the segment.

                    • (string) --

                      • (dict) --

                        Specifies attribute-based criteria for including or excluding endpoints from a segment.

                        • AttributeType (string) --

                          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.

                        • Values (list) -- [REQUIRED]

                          The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                          • (string) --

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after completing the activity for the path.

          • DefaultActivity (string) --

            The activity to perform by default for any path in the activity.

          • EvaluationWaitTime (dict) --

            The amount of time to wait or the date and time when Amazon Pinpoint determines whether the conditions are met.

            • WaitFor (string) --

              The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

            • WaitUntil (string) --

              The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

        • RandomSplit (dict) --

          The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.

          • Branches (list) --

            The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.

            • (dict) --

              Specifies the settings for a path in a random split activity in a journey.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after completing the activity for the path.

              • Percentage (integer) --

                The percentage of participants to send down the activity path.

        • Wait (dict) --

          The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.

          • NextActivity (string) --

            The unique identifier for the next activity to perform, after performing the wait activity.

          • WaitTime (dict) --

            The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.

            • WaitFor (string) --

              The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

            • WaitUntil (string) --

              The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

  • CreationDate (string) --

    The date, in ISO 8601 format, when the journey was created.

  • LastModifiedDate (string) --

    The date, in ISO 8601 format, when the journey was last modified.

  • Limits (dict) --

    The messaging and entry limits for the journey.

    • DailyCap (integer) --

      The maximum number of messages that the journey can send to a single participant during a 24-hour period. The maximum value is 100.

    • EndpointReentryCap (integer) --

      The maximum number of times that a participant can enter the journey. The maximum value is 100. To allow participants to enter the journey an unlimited number of times, set this value to 0.

    • MessagesPerSecond (integer) --

      The maximum number of messages that the journey can send each second.

  • LocalTime (boolean) --

    Specifies whether the journey's scheduled start and end times use each participant's local time. To base the schedule on each participant's local time, set this value to true.

  • Name (string) -- [REQUIRED]

    The name of the journey. A journey name can contain a maximum of 150 characters. The characters can be alphanumeric characters or symbols, such as underscores (_) or hyphens (-). A journey name can't contain any spaces.

  • QuietTime (dict) --

    The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

    • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.

    • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.

    • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

    If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

    • End (string) --

      The specific time when quiet time ends. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

    • Start (string) --

      The specific time when quiet time begins. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

  • RefreshFrequency (string) --

    The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

  • Schedule (dict) --

    The schedule settings for the journey.

    • EndTime (datetime) --

      The scheduled time, in ISO 8601 format, when the journey ended or will end.

    • StartTime (datetime) --

      The scheduled time, in ISO 8601 format, when the journey began or will begin.

    • Timezone (string) --

      The starting UTC offset for the journey schedule, if the value of the journey's LocalTime property is true. Valid values are: UTC, UTC+01, UTC+02, UTC+03, UTC+03:30, UTC+04, UTC+04:30, UTC+05, UTC+05:30, UTC+05:45, UTC+06, UTC+06:30, UTC+07, UTC+08, UTC+08:45, UTC+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+12:45, UTC+13, UTC+13:45, UTC-02, UTC-02:30, UTC-03, UTC-03:30, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-09:30, UTC-10, and UTC-11.

  • StartActivity (string) --

    The unique identifier for the first activity in the journey.

  • StartCondition (dict) --

    The segment that defines which users are participants in the journey.

    • Description (string) --

      The custom description of the condition.

    • SegmentStartCondition (dict) --

      The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.

      • SegmentId (string) -- [REQUIRED]

        The unique identifier for the segment to associate with the activity.

  • State (string) --

    The status of the journey. Valid values are:

    • DRAFT - Saves the journey and doesn't publish it.

    • ACTIVE - Saves and publishes the journey. Depending on the journey's schedule, the journey starts running immediately or at the scheduled start time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.

    The CANCELLED, COMPLETED, and CLOSED values are not supported in requests to create or update a journey. To cancel a journey, use the Journey Stateresource.

rtype

dict

returns

Response Syntax

{
    'JourneyResponse': {
        'Activities': {
            'string': {
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'Wait': {
                    'NextActivity': 'string',
                    'WaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                }
            }
        },
        'ApplicationId': 'string',
        'CreationDate': 'string',
        'Id': 'string',
        'LastModifiedDate': 'string',
        'Limits': {
            'DailyCap': 123,
            'EndpointReentryCap': 123,
            'MessagesPerSecond': 123
        },
        'LocalTime': True|False,
        'Name': 'string',
        'QuietTime': {
            'End': 'string',
            'Start': 'string'
        },
        'RefreshFrequency': 'string',
        'Schedule': {
            'EndTime': datetime(2015, 1, 1),
            'StartTime': datetime(2015, 1, 1),
            'Timezone': 'string'
        },
        'StartActivity': 'string',
        'StartCondition': {
            'Description': 'string',
            'SegmentStartCondition': {
                'SegmentId': 'string'
            }
        },
        'State': 'DRAFT'|'ACTIVE'|'COMPLETED'|'CANCELLED'|'CLOSED',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • JourneyResponse (dict) --

      Provides information about the status, configuration, and other settings for a journey.

      • Activities (dict) --

        The configuration and other settings for the activities that comprise the journey.

        • (string) --

          • (dict) --

            Specifies the configuration and other settings for an activity in a journey.

            • ConditionalSplit (dict) --

              The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.

              • Condition (dict) --

                The conditions that define the paths for the activity, and the relationship between the conditions.

                • Conditions (list) --

                  The conditions to evaluate for the activity.

                  • (dict) --

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

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                • 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.

              • EvaluationWaitTime (dict) --

                The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

              • FalseActivity (string) --

                The unique identifier for the activity to perform if the condition isn't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the condition is met.

            • Description (string) --

              The custom description of the activity.

            • EMAIL (dict) --

              The settings for an email activity. This type of activity sends an email message to participants.

              • MessageConfig (dict) --

                The "From" address to use for the message.

                • FromAddress (string) --

                  The verified email address to send the email message from. The default address is the FromAddress specified for the email channel for the application.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after the message is sent.

              • TemplateName (string) --

                The name of the email template to use for the message.

            • Holdout (dict) --

              The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the holdout activity.

              • Percentage (integer) --

                The percentage of participants who shouldn't continue the journey.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the conditions for entering each path and the activity to perform for each path.

                • (dict) --

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

                  • Condition (dict) --

                    The condition to evaluate for the activity path.

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

              • DefaultActivity (string) --

                The activity to perform by default for any path in the activity.

              • EvaluationWaitTime (dict) --

                The amount of time to wait or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

            • RandomSplit (dict) --

              The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.

                • (dict) --

                  Specifies the settings for a path in a random split activity in a journey.

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

                  • Percentage (integer) --

                    The percentage of participants to send down the activity path.

            • Wait (dict) --

              The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the wait activity.

              • WaitTime (dict) --

                The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

      • ApplicationId (string) --

        The unique identifier for the application that the journey applies to.

      • CreationDate (string) --

        The date, in ISO 8601 format, when the journey was created.

      • Id (string) --

        The unique identifier for the journey.

      • LastModifiedDate (string) --

        The date, in ISO 8601 format, when the journey was last modified.

      • Limits (dict) --

        The messaging and entry limits for the journey.

        • DailyCap (integer) --

          The maximum number of messages that the journey can send to a single participant during a 24-hour period. The maximum value is 100.

        • EndpointReentryCap (integer) --

          The maximum number of times that a participant can enter the journey. The maximum value is 100. To allow participants to enter the journey an unlimited number of times, set this value to 0.

        • MessagesPerSecond (integer) --

          The maximum number of messages that the journey can send each second.

      • LocalTime (boolean) --

        Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.

      • Name (string) --

        The name of the journey.

      • QuietTime (dict) --

        The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

        • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.

        • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.

        • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

        If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

        • End (string) --

          The specific time when quiet time ends. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

        • Start (string) --

          The specific time when quiet time begins. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

      • RefreshFrequency (string) --

        The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

      • Schedule (dict) --

        The schedule settings for the journey.

        • EndTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey ended or will end.

        • StartTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey began or will begin.

        • Timezone (string) --

          The starting UTC offset for the journey schedule, if the value of the journey's LocalTime property is true. Valid values are: UTC, UTC+01, UTC+02, UTC+03, UTC+03:30, UTC+04, UTC+04:30, UTC+05, UTC+05:30, UTC+05:45, UTC+06, UTC+06:30, UTC+07, UTC+08, UTC+08:45, UTC+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+12:45, UTC+13, UTC+13:45, UTC-02, UTC-02:30, UTC-03, UTC-03:30, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-09:30, UTC-10, and UTC-11.

      • StartActivity (string) --

        The unique identifier for the first activity in the journey.

      • StartCondition (dict) --

        The segment that defines which users are participants in the journey.

        • Description (string) --

          The custom description of the condition.

        • SegmentStartCondition (dict) --

          The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.

          • SegmentId (string) --

            The unique identifier for the segment to associate with the activity.

      • State (string) --

        The current status of the journey. Possible values are:

        • DRAFT - The journey is being developed and hasn't been published yet.

        • ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.

        • COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.

        • CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.

        • CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may resume the journey.

      • tags (dict) --

        A string-to-string map of key-value pairs that identifies the tags that are associated with the journey. Each tag consists of a required tag key and an associated tag value.

        • (string) --

          • (string) --

UpdateJourneyState (new) Link ¶

Cancels an active journey.

See also: AWS API Documentation

Request Syntax

client.update_journey_state(
    ApplicationId='string',
    JourneyId='string',
    JourneyStateRequest={
        'State': 'DRAFT'|'ACTIVE'|'COMPLETED'|'CANCELLED'|'CLOSED'
    }
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type JourneyId

string

param JourneyId

[REQUIRED]

The unique identifier for the journey.

type JourneyStateRequest

dict

param JourneyStateRequest

[REQUIRED]

Changes the status of a journey.

  • State (string) --

    The status of the journey. Currently, the only supported value is CANCELLED.

    If you cancel a journey, Amazon Pinpoint continues to perform activities that are currently in progress, until those activities are complete. Amazon Pinpoint also continues to collect and aggregate analytics data for those activities, until they are complete, and any activities that were complete when you cancelled the journey.

    After you cancel a journey, you can't add, change, or remove any activities from the journey. In addition, Amazon Pinpoint stops evaluating the journey and doesn't perform any activities that haven't started.

rtype

dict

returns

Response Syntax

{
    'JourneyResponse': {
        'Activities': {
            'string': {
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                                'Values': [
                                                    'string',
                                                ]
                                            }
                                        },
                                        'EventType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Metrics': {
                                            'string': {
                                                'ComparisonOperator': 'string',
                                                'Value': 123.0
                                            }
                                        }
                                    },
                                    'MessageActivity': 'string'
                                },
                                'SegmentCondition': {
                                    'SegmentId': 'string'
                                },
                                'SegmentDimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Behavior': {
                                        'Recency': {
                                            'Duration': 'HR_24'|'DAY_7'|'DAY_14'|'DAY_30',
                                            'RecencyType': 'ACTIVE'|'INACTIVE'
                                        }
                                    },
                                    'Demographic': {
                                        'AppVersion': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Channel': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'DeviceType': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Make': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Model': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'Platform': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'Location': {
                                        'Country': {
                                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        },
                                        'GPSPoint': {
                                            'Coordinates': {
                                                'Latitude': 123.0,
                                                'Longitude': 123.0
                                            },
                                            'RangeInKilometers': 123.0
                                        }
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    },
                                    'UserAttributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'Wait': {
                    'NextActivity': 'string',
                    'WaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                }
            }
        },
        'ApplicationId': 'string',
        'CreationDate': 'string',
        'Id': 'string',
        'LastModifiedDate': 'string',
        'Limits': {
            'DailyCap': 123,
            'EndpointReentryCap': 123,
            'MessagesPerSecond': 123
        },
        'LocalTime': True|False,
        'Name': 'string',
        'QuietTime': {
            'End': 'string',
            'Start': 'string'
        },
        'RefreshFrequency': 'string',
        'Schedule': {
            'EndTime': datetime(2015, 1, 1),
            'StartTime': datetime(2015, 1, 1),
            'Timezone': 'string'
        },
        'StartActivity': 'string',
        'StartCondition': {
            'Description': 'string',
            'SegmentStartCondition': {
                'SegmentId': 'string'
            }
        },
        'State': 'DRAFT'|'ACTIVE'|'COMPLETED'|'CANCELLED'|'CLOSED',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • JourneyResponse (dict) --

      Provides information about the status, configuration, and other settings for a journey.

      • Activities (dict) --

        The configuration and other settings for the activities that comprise the journey.

        • (string) --

          • (dict) --

            Specifies the configuration and other settings for an activity in a journey.

            • ConditionalSplit (dict) --

              The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.

              • Condition (dict) --

                The conditions that define the paths for the activity, and the relationship between the conditions.

                • Conditions (list) --

                  The conditions to evaluate for the activity.

                  • (dict) --

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

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                • 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.

              • EvaluationWaitTime (dict) --

                The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

              • FalseActivity (string) --

                The unique identifier for the activity to perform if the condition isn't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the condition is met.

            • Description (string) --

              The custom description of the activity.

            • EMAIL (dict) --

              The settings for an email activity. This type of activity sends an email message to participants.

              • MessageConfig (dict) --

                The "From" address to use for the message.

                • FromAddress (string) --

                  The verified email address to send the email message from. The default address is the FromAddress specified for the email channel for the application.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after the message is sent.

              • TemplateName (string) --

                The name of the email template to use for the message.

            • Holdout (dict) --

              The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the holdout activity.

              • Percentage (integer) --

                The percentage of participants who shouldn't continue the journey.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the conditions for entering each path and the activity to perform for each path.

                • (dict) --

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

                  • Condition (dict) --

                    The condition to evaluate for the activity path.

                    • EventCondition (dict) --

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

                      • Dimensions (dict) --

                        The dimensions for the event filter to use for the activity.

                        • Attributes (dict) --

                          One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies attribute-based criteria for including or excluding endpoints from a segment.

                              • AttributeType (string) --

                                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.

                              • Values (list) --

                                The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                                • (string) --

                        • EventType (dict) --

                          The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard type of event that Amazon Pinpoint generates, such as _email.delivered, or a custom event that's specific to your application.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Metrics (dict) --

                          One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

                          • (string) --

                            • (dict) --

                              Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                              • ComparisonOperator (string) --

                                The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                              • Value (float) --

                                The value to compare.

                      • MessageActivity (string) --

                        The message identifier (message_id) for the message to use when determining whether message events meet the condition.

                    • SegmentCondition (dict) --

                      The segment that's associated with the activity.

                      • SegmentId (string) --

                        The unique identifier for the segment to associate with the activity.

                    • SegmentDimensions (dict) --

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

                      • Attributes (dict) --

                        One or more custom attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                      • Behavior (dict) --

                        The behavior-based criteria, such as how recently users have used your app, for the segment.

                        • Recency (dict) --

                          The dimension settings that are based on how recently an endpoint was active.

                          • Duration (string) --

                            The duration to use when determining whether an endpoint is active or inactive.

                          • RecencyType (string) --

                            The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.

                      • Demographic (dict) --

                        The demographic-based criteria, such as device platform, for the segment.

                        • AppVersion (dict) --

                          The app version criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Channel (dict) --

                          The channel criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • DeviceType (dict) --

                          The device type criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Make (dict) --

                          The device make criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Model (dict) --

                          The device model criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • Platform (dict) --

                          The device platform criteria for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                      • Location (dict) --

                        The location-based criteria, such as region or GPS coordinates, for the segment.

                        • Country (dict) --

                          The country or region code, in ISO 3166-1 alpha-2 format, for the segment.

                          • DimensionType (string) --

                            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.

                          • Values (list) --

                            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.

                            • (string) --

                        • GPSPoint (dict) --

                          The GPS location and range for the segment.

                          • Coordinates (dict) --

                            The GPS coordinates to measure distance from.

                            • Latitude (float) --

                              The latitude coordinate of the location.

                            • Longitude (float) --

                              The longitude coordinate of the location.

                          • RangeInKilometers (float) --

                            The range, in kilometers, from the GPS coordinates.

                      • Metrics (dict) --

                        One or more custom metrics to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

                            • ComparisonOperator (string) --

                              The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.

                            • Value (float) --

                              The value to compare.

                      • UserAttributes (dict) --

                        One or more custom user attributes to use as criteria for the segment.

                        • (string) --

                          • (dict) --

                            Specifies attribute-based criteria for including or excluding endpoints from a segment.

                            • AttributeType (string) --

                              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.

                            • Values (list) --

                              The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values.

                              • (string) --

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

              • DefaultActivity (string) --

                The activity to perform by default for any path in the activity.

              • EvaluationWaitTime (dict) --

                The amount of time to wait or the date and time when Amazon Pinpoint determines whether the conditions are met.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

            • RandomSplit (dict) --

              The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.

              • Branches (list) --

                The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.

                • (dict) --

                  Specifies the settings for a path in a random split activity in a journey.

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after completing the activity for the path.

                  • Percentage (integer) --

                    The percentage of participants to send down the activity path.

            • Wait (dict) --

              The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after performing the wait activity.

              • WaitTime (dict) --

                The amount of time to wait or the date and time when the activity moves participants to the next activity in the journey.

                • WaitFor (string) --

                  The amount of time, as a duration in ISO 8601 format, to wait before determining whether the activity's conditions have been met or moving participants to the next activity in the journey.

                • WaitUntil (string) --

                  The date and time, in ISO 8601 format, when Amazon Pinpoint determines whether the activity's conditions have been met or the activity moves participants to the next activity in the journey.

      • ApplicationId (string) --

        The unique identifier for the application that the journey applies to.

      • CreationDate (string) --

        The date, in ISO 8601 format, when the journey was created.

      • Id (string) --

        The unique identifier for the journey.

      • LastModifiedDate (string) --

        The date, in ISO 8601 format, when the journey was last modified.

      • Limits (dict) --

        The messaging and entry limits for the journey.

        • DailyCap (integer) --

          The maximum number of messages that the journey can send to a single participant during a 24-hour period. The maximum value is 100.

        • EndpointReentryCap (integer) --

          The maximum number of times that a participant can enter the journey. The maximum value is 100. To allow participants to enter the journey an unlimited number of times, set this value to 0.

        • MessagesPerSecond (integer) --

          The maximum number of messages that the journey can send each second.

      • LocalTime (boolean) --

        Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.

      • Name (string) --

        The name of the journey.

      • QuietTime (dict) --

        The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

        • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.

        • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.

        • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

        If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

        • End (string) --

          The specific time when quiet time ends. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

        • Start (string) --

          The specific time when quiet time begins. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.

      • RefreshFrequency (string) --

        The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

      • Schedule (dict) --

        The schedule settings for the journey.

        • EndTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey ended or will end.

        • StartTime (datetime) --

          The scheduled time, in ISO 8601 format, when the journey began or will begin.

        • Timezone (string) --

          The starting UTC offset for the journey schedule, if the value of the journey's LocalTime property is true. Valid values are: UTC, UTC+01, UTC+02, UTC+03, UTC+03:30, UTC+04, UTC+04:30, UTC+05, UTC+05:30, UTC+05:45, UTC+06, UTC+06:30, UTC+07, UTC+08, UTC+08:45, UTC+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+12:45, UTC+13, UTC+13:45, UTC-02, UTC-02:30, UTC-03, UTC-03:30, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-09:30, UTC-10, and UTC-11.

      • StartActivity (string) --

        The unique identifier for the first activity in the journey.

      • StartCondition (dict) --

        The segment that defines which users are participants in the journey.

        • Description (string) --

          The custom description of the condition.

        • SegmentStartCondition (dict) --

          The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.

          • SegmentId (string) --

            The unique identifier for the segment to associate with the activity.

      • State (string) --

        The current status of the journey. Possible values are:

        • DRAFT - The journey is being developed and hasn't been published yet.

        • ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.

        • COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.

        • CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.

        • CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may resume the journey.

      • tags (dict) --

        A string-to-string map of key-value pairs that identifies the tags that are associated with the journey. Each tag consists of a required tag key and an associated tag value.

        • (string) --

          • (string) --

GetJourneyExecutionMetrics (new) Link ¶

Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey.

See also: AWS API Documentation

Request Syntax

client.get_journey_execution_metrics(
    ApplicationId='string',
    JourneyId='string',
    NextToken='string',
    PageSize='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type JourneyId

string

param JourneyId

[REQUIRED]

The unique identifier for the journey.

type NextToken

string

param NextToken

The string that specifies which page of results to return in a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

rtype

dict

returns

Response Syntax

{
    'JourneyExecutionMetricsResponse': {
        'ApplicationId': 'string',
        'JourneyId': 'string',
        'LastEvaluatedTime': 'string',
        'Metrics': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • JourneyExecutionMetricsResponse (dict) --

      Provides the results of a query that retrieved the data for a standard execution metric that applies to a journey.

      • ApplicationId (string) --

        The unique identifier for the application that the metric applies to.

      • JourneyId (string) --

        The unique identifier for the journey that the metric applies to.

      • LastEvaluatedTime (string) --

        The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated the journey and updated the data for the metric.

      • Metrics (dict) --

        A JSON object that contains the results of the query. For information about the structure and contents of the results, see the Amazon Pinpoint Developer Guide.

        • (string) --

          • (string) --

GetJourneyDateRangeKpi (new) Link ¶

Retrieves (queries) pre-aggregated data for a standard engagement metric that applies to a journey.

See also: AWS API Documentation

Request Syntax

client.get_journey_date_range_kpi(
    ApplicationId='string',
    EndTime=datetime(2015, 1, 1),
    JourneyId='string',
    KpiName='string',
    NextToken='string',
    PageSize='string',
    StartTime=datetime(2015, 1, 1)
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type EndTime

datetime

param EndTime

The last date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format, for example: 2019-07-19T00:00:00Z for July 19, 2019 and 2019-07-19T20:00:00Z for 8:00 PM July 19, 2019.

type JourneyId

string

param JourneyId

[REQUIRED]

The unique identifier for the journey.

type KpiName

string

param KpiName

[REQUIRED]

The name of the metric, also referred to as a key performance indicator (KPI) , to retrieve data for. This value describes the associated metric and consists of two or more terms, which are comprised of lowercase alphanumeric characters, separated by a hyphen. Examples are email-open-rate and successful-delivery-rate. For a list of valid values, see the Amazon Pinpoint Developer Guide.

type NextToken

string

param NextToken

The string that specifies which page of results to return in a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type StartTime

datetime

param StartTime

The first date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format, for example: 2019-07-15T00:00:00Z for July 15, 2019 and 2019-07-15T16:00:00Z for 4:00 PM July 15, 2019.

rtype

dict

returns

Response Syntax

{
    'JourneyDateRangeKpiResponse': {
        'ApplicationId': 'string',
        'EndTime': datetime(2015, 1, 1),
        'JourneyId': 'string',
        'KpiName': 'string',
        'KpiResult': {
            'Rows': [
                {
                    'GroupedBys': [
                        {
                            'Key': 'string',
                            'Type': 'string',
                            'Value': 'string'
                        },
                    ],
                    'Values': [
                        {
                            'Key': 'string',
                            'Type': 'string',
                            'Value': 'string'
                        },
                    ]
                },
            ]
        },
        'NextToken': 'string',
        'StartTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • JourneyDateRangeKpiResponse (dict) --

      Provides the results of a query that retrieved the data for a standard engagement metric that applies to a journey, and provides information about that query.

      • ApplicationId (string) --

        The unique identifier for the application that the metric applies to.

      • EndTime (datetime) --

        The last date and time of the date range that was used to filter the query results, in extended ISO 8601 format. The date range is inclusive.

      • JourneyId (string) --

        The unique identifier for the journey that the metric applies to.

      • KpiName (string) --

        The name of the metric, also referred to as a key performance indicator (KPI) , that the data was retrieved for. This value describes the associated metric and consists of two or more terms, which are comprised of lowercase alphanumeric characters, separated by a hyphen. For a list of possible values, see the Amazon Pinpoint Developer Guide.

      • KpiResult (dict) --

        An array of objects that contains the results of the query. Each object contains the value for the metric and metadata about that value.

        • Rows (list) --

          An array of objects that provides the results of a query that retrieved the data for a standard metric that applies to an application, campaign, or journey.

          • (dict) --

            Provides the results of a query that retrieved the data for a standard metric that applies to an application, campaign, or journey.

            • GroupedBys (list) --

              An array of objects that defines the field and field values that were used to group data in a result set that contains multiple results. This value is null if the data in a result set isn’t grouped.

              • (dict) --

                Provides a single value and metadata about that value as part of an array of query results for a standard metric that applies to an application, campaign, or journey.

                • Key (string) --

                  The friendly name of the metric whose value is specified by the Value property.

                • Type (string) --

                  The data type of the value specified by the Value property.

                • Value (string) --

                  In a Values object, the value for the metric that the query retrieved data for. In a GroupedBys object, the value for the field that was used to group data in a result set that contains multiple results (Values objects).

            • Values (list) --

              An array of objects that provides pre-aggregated values for a standard metric that applies to an application, campaign, or journey.

              • (dict) --

                Provides a single value and metadata about that value as part of an array of query results for a standard metric that applies to an application, campaign, or journey.

                • Key (string) --

                  The friendly name of the metric whose value is specified by the Value property.

                • Type (string) --

                  The data type of the value specified by the Value property.

                • Value (string) --

                  In a Values object, the value for the metric that the query retrieved data for. In a GroupedBys object, the value for the field that was used to group data in a result set that contains multiple results (Values objects).

      • NextToken (string) --

        The string to use in a subsequent request to get the next page of results in a paginated response. This value is null for the Journey Engagement Metrics resource because the resource returns all results in a single page.

      • StartTime (datetime) --

        The first date and time of the date range that was used to filter the query results, in extended ISO 8601 format. The date range is inclusive.

GetJourneyExecutionActivityMetrics (new) Link ¶

Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey activity.

See also: AWS API Documentation

Request Syntax

client.get_journey_execution_activity_metrics(
    ApplicationId='string',
    JourneyActivityId='string',
    JourneyId='string',
    NextToken='string',
    PageSize='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type JourneyActivityId

string

param JourneyActivityId

[REQUIRED]

The unique identifier for the journey activity.

type JourneyId

string

param JourneyId

[REQUIRED]

The unique identifier for the journey.

type NextToken

string

param NextToken

The string that specifies which page of results to return in a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

rtype

dict

returns

Response Syntax

{
    'JourneyExecutionActivityMetricsResponse': {
        'ActivityType': 'string',
        'ApplicationId': 'string',
        'JourneyActivityId': 'string',
        'JourneyId': 'string',
        'LastEvaluatedTime': 'string',
        'Metrics': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • JourneyExecutionActivityMetricsResponse (dict) --

      Provides the results of a query that retrieved the data for a standard execution metric that applies to a journey activity, and provides information about that query.

      • ActivityType (string) --

        The type of activity that the metric applies to. Possible values are:

        • CONDITIONAL_SPLIT - For a yes/no split activity, which is an activity that sends participants down one of two paths in a journey.

        • HOLDOUT - For a holdout activity, which is an activity that stops a journey for a specified percentage of participants.

        • MESSAGE - For an email activity, which is an activity that sends an email message to participants.

        • MULTI_CONDITIONAL_SPLIT - For a multivariate split activity, which is an activity that sends participants down one of as many as five paths in a journey.

        • RANDOM_SPLIT - For a random split activity, which is an activity that sends specified percentages of participants down one of as many as five paths in a journey.

        • WAIT - For a wait activity, which is an activity that waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.

      • ApplicationId (string) --

        The unique identifier for the application that the metric applies to.

      • JourneyActivityId (string) --

        The unique identifier for the activity that the metric applies to.

      • JourneyId (string) --

        The unique identifier for the journey that the metric applies to.

      • LastEvaluatedTime (string) --

        The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated the execution status of the activity and updated the data for the metric.

      • Metrics (dict) --

        A JSON object that contains the results of the query. The results vary depending on the type of activity (ActivityType). For information about the structure and contents of the results, see the Amazon Pinpoint Developer Guide.

        • (string) --

          • (string) --

CreateExportJob (updated) Link ¶
Changes (response)
{'ExportJobResponse': {'JobStatus': {'PENDING_JOB',
                                     'PREPARING_FOR_INITIALIZATION'}}}

Creates an export job for an application.

See also: AWS API Documentation

Request Syntax

client.create_export_job(
    ApplicationId='string',
    ExportJobRequest={
        'RoleArn': 'string',
        'S3UrlPrefix': 'string',
        'SegmentId': 'string',
        'SegmentVersion': 123
    }
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type ExportJobRequest

dict

param ExportJobRequest

[REQUIRED]

Specifies the settings for a job that exports endpoint definitions to an Amazon Simple Storage Service (Amazon S3) bucket.

  • RoleArn (string) -- [REQUIRED]

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location where you want to export endpoint definitions to.

  • S3UrlPrefix (string) -- [REQUIRED]

    The URL of the location in an Amazon Simple Storage Service (Amazon S3) bucket where you want to export endpoint definitions to. This location is typically a folder that contains multiple files. The URL should be in the following format: s3://bucket-name/folder-name/.

  • SegmentId (string) --

    The identifier for the segment to export endpoint definitions from. If you don't specify this value, Amazon Pinpoint exports definitions for all the endpoints that are associated with the application.

  • SegmentVersion (integer) --

    The version of the segment to export endpoint definitions from, if specified.

rtype

dict

returns

Response Syntax

{
    'ExportJobResponse': {
        'ApplicationId': 'string',
        'CompletedPieces': 123,
        'CompletionDate': 'string',
        'CreationDate': 'string',
        'Definition': {
            'RoleArn': 'string',
            'S3UrlPrefix': 'string',
            'SegmentId': 'string',
            'SegmentVersion': 123
        },
        'FailedPieces': 123,
        'Failures': [
            'string',
        ],
        'Id': 'string',
        'JobStatus': 'CREATED'|'PREPARING_FOR_INITIALIZATION'|'INITIALIZING'|'PROCESSING'|'PENDING_JOB'|'COMPLETING'|'COMPLETED'|'FAILING'|'FAILED',
        'TotalFailures': 123,
        'TotalPieces': 123,
        'TotalProcessed': 123,
        'Type': 'string'
    }
}

Response Structure

  • (dict) --

    The request was accepted for processing. Processing may not be complete.

    • ExportJobResponse (dict) --

      Provides information about the status and settings of a job that exports endpoint definitions to a file. The file can be added directly to an Amazon Simple Storage Service (Amazon S3) bucket by using the Amazon Pinpoint API or downloaded directly to a computer by using the Amazon Pinpoint console.

      • ApplicationId (string) --

        The unique identifier for the application that's associated with the export job.

      • CompletedPieces (integer) --

        The number of pieces that were processed successfully (completed) by the export job, as of the time of the request.

      • CompletionDate (string) --

        The date, in ISO 8601 format, when the export job was completed.

      • CreationDate (string) --

        The date, in ISO 8601 format, when the export job was created.

      • Definition (dict) --

        The resource settings that apply to the export job.

        • RoleArn (string) --

          The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorized Amazon Pinpoint to access the Amazon S3 location where the endpoint definitions were exported to.

        • S3UrlPrefix (string) --

          The URL of the location in an Amazon Simple Storage Service (Amazon S3) bucket where the endpoint definitions were exported to. This location is typically a folder that contains multiple files. The URL should be in the following format: s3://bucket-name/folder-name/.

        • SegmentId (string) --

          The identifier for the segment that the endpoint definitions were exported from. If this value isn't present, Amazon Pinpoint exported definitions for all the endpoints that are associated with the application.

        • SegmentVersion (integer) --

          The version of the segment that the endpoint definitions were exported from.

      • FailedPieces (integer) --

        The number of pieces that weren't processed successfully (failed) by the export job, as of the time of the request.

      • Failures (list) --

        An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the export job, if any.

        • (string) --

      • Id (string) --

        The unique identifier for the export job.

      • JobStatus (string) --

        The status of the export job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

      • TotalFailures (integer) --

        The total number of endpoint definitions that weren't processed successfully (failed) by the export job, typically because an error, such as a syntax error, occurred.

      • TotalPieces (integer) --

        The total number of pieces that must be processed to complete the export job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the export job.

      • TotalProcessed (integer) --

        The total number of endpoint definitions that were processed by the export job.

      • Type (string) --

        The job type. This value is EXPORT for export jobs.

CreateImportJob (updated) Link ¶
Changes (response)
{'ImportJobResponse': {'JobStatus': {'PENDING_JOB',
                                     'PREPARING_FOR_INITIALIZATION'}}}

Creates an import job for an application.

See also: AWS API Documentation

Request Syntax

client.create_import_job(
    ApplicationId='string',
    ImportJobRequest={
        'DefineSegment': True|False,
        'ExternalId': 'string',
        'Format': 'CSV'|'JSON',
        'RegisterEndpoints': True|False,
        'RoleArn': 'string',
        'S3Url': 'string',
        'SegmentId': 'string',
        'SegmentName': 'string'
    }
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type ImportJobRequest

dict

param ImportJobRequest

[REQUIRED]

Specifies the settings for a job that imports endpoint definitions from an Amazon Simple Storage Service (Amazon S3) bucket.

  • DefineSegment (boolean) --

    Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.

  • ExternalId (string) --

    (Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.

  • Format (string) -- [REQUIRED]

    The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.

  • RegisterEndpoints (boolean) --

    Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.

  • RoleArn (string) -- [REQUIRED]

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.

  • S3Url (string) -- [REQUIRED]

    The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.

    The URL should be in the following format: s3://bucket-name/folder-name/file-name. The location can end with the key for an individual object or a prefix that qualifies multiple objects.

  • SegmentId (string) --

    The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant to update an existing segment.

  • SegmentName (string) --

    The custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.

rtype

dict

returns

Response Syntax

{
    'ImportJobResponse': {
        'ApplicationId': 'string',
        'CompletedPieces': 123,
        'CompletionDate': 'string',
        'CreationDate': 'string',
        'Definition': {
            'DefineSegment': True|False,
            'ExternalId': 'string',
            'Format': 'CSV'|'JSON',
            'RegisterEndpoints': True|False,
            'RoleArn': 'string',
            'S3Url': 'string',
            'SegmentId': 'string',
            'SegmentName': 'string'
        },
        'FailedPieces': 123,
        'Failures': [
            'string',
        ],
        'Id': 'string',
        'JobStatus': 'CREATED'|'PREPARING_FOR_INITIALIZATION'|'INITIALIZING'|'PROCESSING'|'PENDING_JOB'|'COMPLETING'|'COMPLETED'|'FAILING'|'FAILED',
        'TotalFailures': 123,
        'TotalPieces': 123,
        'TotalProcessed': 123,
        'Type': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded and the specified resource was created.

    • ImportJobResponse (dict) --

      Provides information about the status and settings of a job that imports endpoint definitions from one or more files. The files can be stored in an Amazon Simple Storage Service (Amazon S3) bucket or uploaded directly from a computer by using the Amazon Pinpoint console.

      • ApplicationId (string) --

        The unique identifier for the application that's associated with the import job.

      • CompletedPieces (integer) --

        The number of pieces that were processed successfully (completed) by the import job, as of the time of the request.

      • CompletionDate (string) --

        The date, in ISO 8601 format, when the import job was completed.

      • CreationDate (string) --

        The date, in ISO 8601 format, when the import job was created.

      • Definition (dict) --

        The resource settings that apply to the import job.

        • DefineSegment (boolean) --

          Specifies whether the import job creates a segment that contains the endpoints, when the endpoint definitions are imported.

        • ExternalId (string) --

          (Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.

        • Format (string) --

          The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format.

          If the files are stored in an Amazon S3 location and that location contains multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.

        • RegisterEndpoints (boolean) --

          Specifies whether the import job registers the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.

        • RoleArn (string) --

          The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.

        • S3Url (string) --

          The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.

          The URL should be in the following format: s3://bucket-name/folder-name/file-name. The location can end with the key for an individual object or a prefix that qualifies multiple objects.

        • SegmentId (string) --

          The identifier for the segment that the import job updates or adds endpoint definitions to, if the import job updates an existing segment.

        • SegmentName (string) --

          The custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.

      • FailedPieces (integer) --

        The number of pieces that weren't processed successfully (failed) by the import job, as of the time of the request.

      • Failures (list) --

        An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the import job, if any.

        • (string) --

      • Id (string) --

        The unique identifier for the import job.

      • JobStatus (string) --

        The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

      • TotalFailures (integer) --

        The total number of endpoint definitions that weren't processed successfully (failed) by the import job, typically because an error, such as a syntax error, occurred.

      • TotalPieces (integer) --

        The total number of pieces that must be processed to complete the import job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the import job.

      • TotalProcessed (integer) --

        The total number of endpoint definitions that were processed by the import job.

      • Type (string) --

        The job type. This value is IMPORT for import jobs.

GetEmailTemplate (updated) Link ¶
Changes (response)
{'EmailTemplateResponse': {'TemplateType': {'VOICE'}}}

Retrieves the content and settings for a message template that you can use in messages that are sent through the email channel.

See also: AWS API Documentation

Request Syntax

client.get_email_template(
    TemplateName='string'
)
type TemplateName

string

param TemplateName

[REQUIRED]

The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

rtype

dict

returns

Response Syntax

{
    'EmailTemplateResponse': {
        'Arn': 'string',
        'CreationDate': 'string',
        'HtmlPart': 'string',
        'LastModifiedDate': 'string',
        'Subject': 'string',
        'tags': {
            'string': 'string'
        },
        'TemplateName': 'string',
        'TemplateType': 'EMAIL'|'SMS'|'VOICE'|'PUSH',
        'TextPart': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • EmailTemplateResponse (dict) --

      Provides information about the content and settings for a message template that can be used in messages that are sent through the email channel.

      • Arn (string) --

        The Amazon Resource Name (ARN) of the message template.

      • CreationDate (string) --

        The date when the message template was created.

      • HtmlPart (string) --

        The message body, in HTML format, that's used in email messages that are based on the message template.

      • LastModifiedDate (string) --

        The date when the message template was last modified.

      • Subject (string) --

        The subject line, or title, that's used in email messages that are based on the message template.

      • tags (dict) --

        A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. Each tag consists of a required tag key and an associated tag value.

        • (string) --

          • (string) --

      • TemplateName (string) --

        The name of the message template.

      • TemplateType (string) --

        The type of channel that the message template is designed for. For an email template, this value is EMAIL.

      • TextPart (string) --

        The message body, in text format, that's used in email messages that are based on the message template.

GetExportJob (updated) Link ¶
Changes (response)
{'ExportJobResponse': {'JobStatus': {'PENDING_JOB',
                                     'PREPARING_FOR_INITIALIZATION'}}}

Retrieves information about the status and settings of a specific export job for an application.

See also: AWS API Documentation

Request Syntax

client.get_export_job(
    ApplicationId='string',
    JobId='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type JobId

string

param JobId

[REQUIRED]

The unique identifier for the job.

rtype

dict

returns

Response Syntax

{
    'ExportJobResponse': {
        'ApplicationId': 'string',
        'CompletedPieces': 123,
        'CompletionDate': 'string',
        'CreationDate': 'string',
        'Definition': {
            'RoleArn': 'string',
            'S3UrlPrefix': 'string',
            'SegmentId': 'string',
            'SegmentVersion': 123
        },
        'FailedPieces': 123,
        'Failures': [
            'string',
        ],
        'Id': 'string',
        'JobStatus': 'CREATED'|'PREPARING_FOR_INITIALIZATION'|'INITIALIZING'|'PROCESSING'|'PENDING_JOB'|'COMPLETING'|'COMPLETED'|'FAILING'|'FAILED',
        'TotalFailures': 123,
        'TotalPieces': 123,
        'TotalProcessed': 123,
        'Type': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • ExportJobResponse (dict) --

      Provides information about the status and settings of a job that exports endpoint definitions to a file. The file can be added directly to an Amazon Simple Storage Service (Amazon S3) bucket by using the Amazon Pinpoint API or downloaded directly to a computer by using the Amazon Pinpoint console.

      • ApplicationId (string) --

        The unique identifier for the application that's associated with the export job.

      • CompletedPieces (integer) --

        The number of pieces that were processed successfully (completed) by the export job, as of the time of the request.

      • CompletionDate (string) --

        The date, in ISO 8601 format, when the export job was completed.

      • CreationDate (string) --

        The date, in ISO 8601 format, when the export job was created.

      • Definition (dict) --

        The resource settings that apply to the export job.

        • RoleArn (string) --

          The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorized Amazon Pinpoint to access the Amazon S3 location where the endpoint definitions were exported to.

        • S3UrlPrefix (string) --

          The URL of the location in an Amazon Simple Storage Service (Amazon S3) bucket where the endpoint definitions were exported to. This location is typically a folder that contains multiple files. The URL should be in the following format: s3://bucket-name/folder-name/.

        • SegmentId (string) --

          The identifier for the segment that the endpoint definitions were exported from. If this value isn't present, Amazon Pinpoint exported definitions for all the endpoints that are associated with the application.

        • SegmentVersion (integer) --

          The version of the segment that the endpoint definitions were exported from.

      • FailedPieces (integer) --

        The number of pieces that weren't processed successfully (failed) by the export job, as of the time of the request.

      • Failures (list) --

        An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the export job, if any.

        • (string) --

      • Id (string) --

        The unique identifier for the export job.

      • JobStatus (string) --

        The status of the export job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

      • TotalFailures (integer) --

        The total number of endpoint definitions that weren't processed successfully (failed) by the export job, typically because an error, such as a syntax error, occurred.

      • TotalPieces (integer) --

        The total number of pieces that must be processed to complete the export job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the export job.

      • TotalProcessed (integer) --

        The total number of endpoint definitions that were processed by the export job.

      • Type (string) --

        The job type. This value is EXPORT for export jobs.

GetExportJobs (updated) Link ¶
Changes (response)
{'ExportJobsResponse': {'Item': {'JobStatus': {'PENDING_JOB',
                                               'PREPARING_FOR_INITIALIZATION'}}}}

Retrieves information about the status and settings of all the export jobs for an application.

See also: AWS API Documentation

Request Syntax

client.get_export_jobs(
    ApplicationId='string',
    PageSize='string',
    Token='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type Token

string

param Token

The NextToken string that specifies which page of results to return in a paginated response.

rtype

dict

returns

Response Syntax

{
    'ExportJobsResponse': {
        'Item': [
            {
                'ApplicationId': 'string',
                'CompletedPieces': 123,
                'CompletionDate': 'string',
                'CreationDate': 'string',
                'Definition': {
                    'RoleArn': 'string',
                    'S3UrlPrefix': 'string',
                    'SegmentId': 'string',
                    'SegmentVersion': 123
                },
                'FailedPieces': 123,
                'Failures': [
                    'string',
                ],
                'Id': 'string',
                'JobStatus': 'CREATED'|'PREPARING_FOR_INITIALIZATION'|'INITIALIZING'|'PROCESSING'|'PENDING_JOB'|'COMPLETING'|'COMPLETED'|'FAILING'|'FAILED',
                'TotalFailures': 123,
                'TotalPieces': 123,
                'TotalProcessed': 123,
                'Type': 'string'
            },
        ],
        'NextToken': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • ExportJobsResponse (dict) --

      Provides information about all the export jobs that are associated with an application or segment. An export job is a job that exports endpoint definitions to a file.

      • Item (list) --

        An array of responses, one for each export job that's associated with the application (Export Jobs resource) or segment (Segment Export Jobs resource).

        • (dict) --

          Provides information about the status and settings of a job that exports endpoint definitions to a file. The file can be added directly to an Amazon Simple Storage Service (Amazon S3) bucket by using the Amazon Pinpoint API or downloaded directly to a computer by using the Amazon Pinpoint console.

          • ApplicationId (string) --

            The unique identifier for the application that's associated with the export job.

          • CompletedPieces (integer) --

            The number of pieces that were processed successfully (completed) by the export job, as of the time of the request.

          • CompletionDate (string) --

            The date, in ISO 8601 format, when the export job was completed.

          • CreationDate (string) --

            The date, in ISO 8601 format, when the export job was created.

          • Definition (dict) --

            The resource settings that apply to the export job.

            • RoleArn (string) --

              The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorized Amazon Pinpoint to access the Amazon S3 location where the endpoint definitions were exported to.

            • S3UrlPrefix (string) --

              The URL of the location in an Amazon Simple Storage Service (Amazon S3) bucket where the endpoint definitions were exported to. This location is typically a folder that contains multiple files. The URL should be in the following format: s3://bucket-name/folder-name/.

            • SegmentId (string) --

              The identifier for the segment that the endpoint definitions were exported from. If this value isn't present, Amazon Pinpoint exported definitions for all the endpoints that are associated with the application.

            • SegmentVersion (integer) --

              The version of the segment that the endpoint definitions were exported from.

          • FailedPieces (integer) --

            The number of pieces that weren't processed successfully (failed) by the export job, as of the time of the request.

          • Failures (list) --

            An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the export job, if any.

            • (string) --

          • Id (string) --

            The unique identifier for the export job.

          • JobStatus (string) --

            The status of the export job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

          • TotalFailures (integer) --

            The total number of endpoint definitions that weren't processed successfully (failed) by the export job, typically because an error, such as a syntax error, occurred.

          • TotalPieces (integer) --

            The total number of pieces that must be processed to complete the export job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the export job.

          • TotalProcessed (integer) --

            The total number of endpoint definitions that were processed by the export job.

          • Type (string) --

            The job type. This value is EXPORT for export jobs.

      • NextToken (string) --

        The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

GetImportJob (updated) Link ¶
Changes (response)
{'ImportJobResponse': {'JobStatus': {'PENDING_JOB',
                                     'PREPARING_FOR_INITIALIZATION'}}}

Retrieves information about the status and settings of a specific import job for an application.

See also: AWS API Documentation

Request Syntax

client.get_import_job(
    ApplicationId='string',
    JobId='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type JobId

string

param JobId

[REQUIRED]

The unique identifier for the job.

rtype

dict

returns

Response Syntax

{
    'ImportJobResponse': {
        'ApplicationId': 'string',
        'CompletedPieces': 123,
        'CompletionDate': 'string',
        'CreationDate': 'string',
        'Definition': {
            'DefineSegment': True|False,
            'ExternalId': 'string',
            'Format': 'CSV'|'JSON',
            'RegisterEndpoints': True|False,
            'RoleArn': 'string',
            'S3Url': 'string',
            'SegmentId': 'string',
            'SegmentName': 'string'
        },
        'FailedPieces': 123,
        'Failures': [
            'string',
        ],
        'Id': 'string',
        'JobStatus': 'CREATED'|'PREPARING_FOR_INITIALIZATION'|'INITIALIZING'|'PROCESSING'|'PENDING_JOB'|'COMPLETING'|'COMPLETED'|'FAILING'|'FAILED',
        'TotalFailures': 123,
        'TotalPieces': 123,
        'TotalProcessed': 123,
        'Type': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • ImportJobResponse (dict) --

      Provides information about the status and settings of a job that imports endpoint definitions from one or more files. The files can be stored in an Amazon Simple Storage Service (Amazon S3) bucket or uploaded directly from a computer by using the Amazon Pinpoint console.

      • ApplicationId (string) --

        The unique identifier for the application that's associated with the import job.

      • CompletedPieces (integer) --

        The number of pieces that were processed successfully (completed) by the import job, as of the time of the request.

      • CompletionDate (string) --

        The date, in ISO 8601 format, when the import job was completed.

      • CreationDate (string) --

        The date, in ISO 8601 format, when the import job was created.

      • Definition (dict) --

        The resource settings that apply to the import job.

        • DefineSegment (boolean) --

          Specifies whether the import job creates a segment that contains the endpoints, when the endpoint definitions are imported.

        • ExternalId (string) --

          (Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.

        • Format (string) --

          The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format.

          If the files are stored in an Amazon S3 location and that location contains multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.

        • RegisterEndpoints (boolean) --

          Specifies whether the import job registers the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.

        • RoleArn (string) --

          The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.

        • S3Url (string) --

          The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.

          The URL should be in the following format: s3://bucket-name/folder-name/file-name. The location can end with the key for an individual object or a prefix that qualifies multiple objects.

        • SegmentId (string) --

          The identifier for the segment that the import job updates or adds endpoint definitions to, if the import job updates an existing segment.

        • SegmentName (string) --

          The custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.

      • FailedPieces (integer) --

        The number of pieces that weren't processed successfully (failed) by the import job, as of the time of the request.

      • Failures (list) --

        An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the import job, if any.

        • (string) --

      • Id (string) --

        The unique identifier for the import job.

      • JobStatus (string) --

        The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

      • TotalFailures (integer) --

        The total number of endpoint definitions that weren't processed successfully (failed) by the import job, typically because an error, such as a syntax error, occurred.

      • TotalPieces (integer) --

        The total number of pieces that must be processed to complete the import job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the import job.

      • TotalProcessed (integer) --

        The total number of endpoint definitions that were processed by the import job.

      • Type (string) --

        The job type. This value is IMPORT for import jobs.

GetImportJobs (updated) Link ¶
Changes (response)
{'ImportJobsResponse': {'Item': {'JobStatus': {'PENDING_JOB',
                                               'PREPARING_FOR_INITIALIZATION'}}}}

Retrieves information about the status and settings of all the import jobs for an application.

See also: AWS API Documentation

Request Syntax

client.get_import_jobs(
    ApplicationId='string',
    PageSize='string',
    Token='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type Token

string

param Token

The NextToken string that specifies which page of results to return in a paginated response.

rtype

dict

returns

Response Syntax

{
    'ImportJobsResponse': {
        'Item': [
            {
                'ApplicationId': 'string',
                'CompletedPieces': 123,
                'CompletionDate': 'string',
                'CreationDate': 'string',
                'Definition': {
                    'DefineSegment': True|False,
                    'ExternalId': 'string',
                    'Format': 'CSV'|'JSON',
                    'RegisterEndpoints': True|False,
                    'RoleArn': 'string',
                    'S3Url': 'string',
                    'SegmentId': 'string',
                    'SegmentName': 'string'
                },
                'FailedPieces': 123,
                'Failures': [
                    'string',
                ],
                'Id': 'string',
                'JobStatus': 'CREATED'|'PREPARING_FOR_INITIALIZATION'|'INITIALIZING'|'PROCESSING'|'PENDING_JOB'|'COMPLETING'|'COMPLETED'|'FAILING'|'FAILED',
                'TotalFailures': 123,
                'TotalPieces': 123,
                'TotalProcessed': 123,
                'Type': 'string'
            },
        ],
        'NextToken': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • ImportJobsResponse (dict) --

      Provides information about the status and settings of all the import jobs that are associated with an application or segment. An import job is a job that imports endpoint definitions from one or more files.

      • Item (list) --

        An array of responses, one for each import job that's associated with the application (Import Jobs resource) or segment (Segment Import Jobs resource).

        • (dict) --

          Provides information about the status and settings of a job that imports endpoint definitions from one or more files. The files can be stored in an Amazon Simple Storage Service (Amazon S3) bucket or uploaded directly from a computer by using the Amazon Pinpoint console.

          • ApplicationId (string) --

            The unique identifier for the application that's associated with the import job.

          • CompletedPieces (integer) --

            The number of pieces that were processed successfully (completed) by the import job, as of the time of the request.

          • CompletionDate (string) --

            The date, in ISO 8601 format, when the import job was completed.

          • CreationDate (string) --

            The date, in ISO 8601 format, when the import job was created.

          • Definition (dict) --

            The resource settings that apply to the import job.

            • DefineSegment (boolean) --

              Specifies whether the import job creates a segment that contains the endpoints, when the endpoint definitions are imported.

            • ExternalId (string) --

              (Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.

            • Format (string) --

              The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format.

              If the files are stored in an Amazon S3 location and that location contains multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.

            • RegisterEndpoints (boolean) --

              Specifies whether the import job registers the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.

            • RoleArn (string) --

              The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.

            • S3Url (string) --

              The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.

              The URL should be in the following format: s3://bucket-name/folder-name/file-name. The location can end with the key for an individual object or a prefix that qualifies multiple objects.

            • SegmentId (string) --

              The identifier for the segment that the import job updates or adds endpoint definitions to, if the import job updates an existing segment.

            • SegmentName (string) --

              The custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.

          • FailedPieces (integer) --

            The number of pieces that weren't processed successfully (failed) by the import job, as of the time of the request.

          • Failures (list) --

            An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the import job, if any.

            • (string) --

          • Id (string) --

            The unique identifier for the import job.

          • JobStatus (string) --

            The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

          • TotalFailures (integer) --

            The total number of endpoint definitions that weren't processed successfully (failed) by the import job, typically because an error, such as a syntax error, occurred.

          • TotalPieces (integer) --

            The total number of pieces that must be processed to complete the import job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the import job.

          • TotalProcessed (integer) --

            The total number of endpoint definitions that were processed by the import job.

          • Type (string) --

            The job type. This value is IMPORT for import jobs.

      • NextToken (string) --

        The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

GetPushTemplate (updated) Link ¶
Changes (response)
{'PushNotificationTemplateResponse': {'TemplateType': {'VOICE'}}}

Retrieves the content and settings for a message template that you can use in messages that are sent through a push notification channel.

See also: AWS API Documentation

Request Syntax

client.get_push_template(
    TemplateName='string'
)
type TemplateName

string

param TemplateName

[REQUIRED]

The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

rtype

dict

returns

Response Syntax

{
    'PushNotificationTemplateResponse': {
        'ADM': {
            'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
            'Body': 'string',
            'ImageIconUrl': 'string',
            'ImageUrl': 'string',
            'SmallImageIconUrl': 'string',
            'Sound': 'string',
            'Title': 'string',
            'Url': 'string'
        },
        'APNS': {
            'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
            'Body': 'string',
            'MediaUrl': 'string',
            'Sound': 'string',
            'Title': 'string',
            'Url': 'string'
        },
        'Arn': 'string',
        'Baidu': {
            'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
            'Body': 'string',
            'ImageIconUrl': 'string',
            'ImageUrl': 'string',
            'SmallImageIconUrl': 'string',
            'Sound': 'string',
            'Title': 'string',
            'Url': 'string'
        },
        'CreationDate': 'string',
        'Default': {
            'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
            'Body': 'string',
            'Sound': 'string',
            'Title': 'string',
            'Url': 'string'
        },
        'GCM': {
            'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
            'Body': 'string',
            'ImageIconUrl': 'string',
            'ImageUrl': 'string',
            'SmallImageIconUrl': 'string',
            'Sound': 'string',
            'Title': 'string',
            'Url': 'string'
        },
        'LastModifiedDate': 'string',
        'tags': {
            'string': 'string'
        },
        'TemplateName': 'string',
        'TemplateType': 'EMAIL'|'SMS'|'VOICE'|'PUSH'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • PushNotificationTemplateResponse (dict) --

      Provides information about the content and settings for a message template that can be used in messages that are sent through a push notification channel.

      • ADM (dict) --

        The message template that's used for the ADM (Amazon Device Messaging) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).

        • Action (string) --

          The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:

          • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

          • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.

          • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

        • Body (string) --

          The message body to use in a push notification that's based on the message template.

        • ImageIconUrl (string) --

          The URL of the large icon image to display in the content view of a push notification that's based on the message template.

        • ImageUrl (string) --

          The URL of an image to display in a push notification that's based on the message template.

        • SmallImageIconUrl (string) --

          The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.

        • Sound (string) --

          The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

        • Title (string) --

          The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.

        • Url (string) --

          The URL to open in a recipient's default mobile browser, if a recipient taps a a push notification that's based on the message template and the value of the Action property is URL.

      • APNS (dict) --

        The message template that's used for the APNs (Apple Push Notification service) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).

        • Action (string) --

          The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:

          • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

          • DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS platform.

          • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

        • Body (string) --

          The message body to use in push notifications that are based on the message template.

        • MediaUrl (string) --

          The URL of an image or video to display in push notifications that are based on the message template.

        • Sound (string) --

          The key for the sound to play when the recipient receives a push notification that's based on the message template. The value for this key is the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.

        • Title (string) --

          The title to use in push notifications that are based on the message template. This title appears above the notification message on a recipient's device.

        • Url (string) --

          The URL to open in the recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.

      • Arn (string) --

        The Amazon Resource Name (ARN) of the message template.

      • Baidu (dict) --

        The message template that's used for the Baidu (Baidu Cloud Push) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).

        • Action (string) --

          The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:

          • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

          • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.

          • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

        • Body (string) --

          The message body to use in a push notification that's based on the message template.

        • ImageIconUrl (string) --

          The URL of the large icon image to display in the content view of a push notification that's based on the message template.

        • ImageUrl (string) --

          The URL of an image to display in a push notification that's based on the message template.

        • SmallImageIconUrl (string) --

          The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.

        • Sound (string) --

          The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

        • Title (string) --

          The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.

        • Url (string) --

          The URL to open in a recipient's default mobile browser, if a recipient taps a a push notification that's based on the message template and the value of the Action property is URL.

      • CreationDate (string) --

        The date when the message template was created.

      • Default (dict) --

        The default message template that's used for push notification channels.

        • Action (string) --

          The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:

          • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

          • DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS and Android platforms.

          • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

        • Body (string) --

          The message body to use in push notifications that are based on the message template.

        • Sound (string) --

          The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

          For an iOS platform, this value is the key for the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.

        • Title (string) --

          The title to use in push notifications that are based on the message template. This title appears above the notification message on a recipient's device.

        • Url (string) --

          The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.

      • GCM (dict) --

        The message template that's used for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).

        • Action (string) --

          The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:

          • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

          • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.

          • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

        • Body (string) --

          The message body to use in a push notification that's based on the message template.

        • ImageIconUrl (string) --

          The URL of the large icon image to display in the content view of a push notification that's based on the message template.

        • ImageUrl (string) --

          The URL of an image to display in a push notification that's based on the message template.

        • SmallImageIconUrl (string) --

          The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.

        • Sound (string) --

          The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

        • Title (string) --

          The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.

        • Url (string) --

          The URL to open in a recipient's default mobile browser, if a recipient taps a a push notification that's based on the message template and the value of the Action property is URL.

      • LastModifiedDate (string) --

        The date when the message template was last modified.

      • tags (dict) --

        A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. Each tag consists of a required tag key and an associated tag value.

        • (string) --

          • (string) --

      • TemplateName (string) --

        The name of the message template.

      • TemplateType (string) --

        The type of channel that the message template is designed for. For a push notification template, this value is PUSH.

GetSegmentExportJobs (updated) Link ¶
Changes (response)
{'ExportJobsResponse': {'Item': {'JobStatus': {'PENDING_JOB',
                                               'PREPARING_FOR_INITIALIZATION'}}}}

Retrieves information about the status and settings of the export jobs for a segment.

See also: AWS API Documentation

Request Syntax

client.get_segment_export_jobs(
    ApplicationId='string',
    PageSize='string',
    SegmentId='string',
    Token='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type SegmentId

string

param SegmentId

[REQUIRED]

The unique identifier for the segment.

type Token

string

param Token

The NextToken string that specifies which page of results to return in a paginated response.

rtype

dict

returns

Response Syntax

{
    'ExportJobsResponse': {
        'Item': [
            {
                'ApplicationId': 'string',
                'CompletedPieces': 123,
                'CompletionDate': 'string',
                'CreationDate': 'string',
                'Definition': {
                    'RoleArn': 'string',
                    'S3UrlPrefix': 'string',
                    'SegmentId': 'string',
                    'SegmentVersion': 123
                },
                'FailedPieces': 123,
                'Failures': [
                    'string',
                ],
                'Id': 'string',
                'JobStatus': 'CREATED'|'PREPARING_FOR_INITIALIZATION'|'INITIALIZING'|'PROCESSING'|'PENDING_JOB'|'COMPLETING'|'COMPLETED'|'FAILING'|'FAILED',
                'TotalFailures': 123,
                'TotalPieces': 123,
                'TotalProcessed': 123,
                'Type': 'string'
            },
        ],
        'NextToken': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • ExportJobsResponse (dict) --

      Provides information about all the export jobs that are associated with an application or segment. An export job is a job that exports endpoint definitions to a file.

      • Item (list) --

        An array of responses, one for each export job that's associated with the application (Export Jobs resource) or segment (Segment Export Jobs resource).

        • (dict) --

          Provides information about the status and settings of a job that exports endpoint definitions to a file. The file can be added directly to an Amazon Simple Storage Service (Amazon S3) bucket by using the Amazon Pinpoint API or downloaded directly to a computer by using the Amazon Pinpoint console.

          • ApplicationId (string) --

            The unique identifier for the application that's associated with the export job.

          • CompletedPieces (integer) --

            The number of pieces that were processed successfully (completed) by the export job, as of the time of the request.

          • CompletionDate (string) --

            The date, in ISO 8601 format, when the export job was completed.

          • CreationDate (string) --

            The date, in ISO 8601 format, when the export job was created.

          • Definition (dict) --

            The resource settings that apply to the export job.

            • RoleArn (string) --

              The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorized Amazon Pinpoint to access the Amazon S3 location where the endpoint definitions were exported to.

            • S3UrlPrefix (string) --

              The URL of the location in an Amazon Simple Storage Service (Amazon S3) bucket where the endpoint definitions were exported to. This location is typically a folder that contains multiple files. The URL should be in the following format: s3://bucket-name/folder-name/.

            • SegmentId (string) --

              The identifier for the segment that the endpoint definitions were exported from. If this value isn't present, Amazon Pinpoint exported definitions for all the endpoints that are associated with the application.

            • SegmentVersion (integer) --

              The version of the segment that the endpoint definitions were exported from.

          • FailedPieces (integer) --

            The number of pieces that weren't processed successfully (failed) by the export job, as of the time of the request.

          • Failures (list) --

            An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the export job, if any.

            • (string) --

          • Id (string) --

            The unique identifier for the export job.

          • JobStatus (string) --

            The status of the export job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

          • TotalFailures (integer) --

            The total number of endpoint definitions that weren't processed successfully (failed) by the export job, typically because an error, such as a syntax error, occurred.

          • TotalPieces (integer) --

            The total number of pieces that must be processed to complete the export job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the export job.

          • TotalProcessed (integer) --

            The total number of endpoint definitions that were processed by the export job.

          • Type (string) --

            The job type. This value is EXPORT for export jobs.

      • NextToken (string) --

        The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

GetSegmentImportJobs (updated) Link ¶
Changes (response)
{'ImportJobsResponse': {'Item': {'JobStatus': {'PENDING_JOB',
                                               'PREPARING_FOR_INITIALIZATION'}}}}

Retrieves information about the status and settings of the import jobs for a segment.

See also: AWS API Documentation

Request Syntax

client.get_segment_import_jobs(
    ApplicationId='string',
    PageSize='string',
    SegmentId='string',
    Token='string'
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type SegmentId

string

param SegmentId

[REQUIRED]

The unique identifier for the segment.

type Token

string

param Token

The NextToken string that specifies which page of results to return in a paginated response.

rtype

dict

returns

Response Syntax

{
    'ImportJobsResponse': {
        'Item': [
            {
                'ApplicationId': 'string',
                'CompletedPieces': 123,
                'CompletionDate': 'string',
                'CreationDate': 'string',
                'Definition': {
                    'DefineSegment': True|False,
                    'ExternalId': 'string',
                    'Format': 'CSV'|'JSON',
                    'RegisterEndpoints': True|False,
                    'RoleArn': 'string',
                    'S3Url': 'string',
                    'SegmentId': 'string',
                    'SegmentName': 'string'
                },
                'FailedPieces': 123,
                'Failures': [
                    'string',
                ],
                'Id': 'string',
                'JobStatus': 'CREATED'|'PREPARING_FOR_INITIALIZATION'|'INITIALIZING'|'PROCESSING'|'PENDING_JOB'|'COMPLETING'|'COMPLETED'|'FAILING'|'FAILED',
                'TotalFailures': 123,
                'TotalPieces': 123,
                'TotalProcessed': 123,
                'Type': 'string'
            },
        ],
        'NextToken': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • ImportJobsResponse (dict) --

      Provides information about the status and settings of all the import jobs that are associated with an application or segment. An import job is a job that imports endpoint definitions from one or more files.

      • Item (list) --

        An array of responses, one for each import job that's associated with the application (Import Jobs resource) or segment (Segment Import Jobs resource).

        • (dict) --

          Provides information about the status and settings of a job that imports endpoint definitions from one or more files. The files can be stored in an Amazon Simple Storage Service (Amazon S3) bucket or uploaded directly from a computer by using the Amazon Pinpoint console.

          • ApplicationId (string) --

            The unique identifier for the application that's associated with the import job.

          • CompletedPieces (integer) --

            The number of pieces that were processed successfully (completed) by the import job, as of the time of the request.

          • CompletionDate (string) --

            The date, in ISO 8601 format, when the import job was completed.

          • CreationDate (string) --

            The date, in ISO 8601 format, when the import job was created.

          • Definition (dict) --

            The resource settings that apply to the import job.

            • DefineSegment (boolean) --

              Specifies whether the import job creates a segment that contains the endpoints, when the endpoint definitions are imported.

            • ExternalId (string) --

              (Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.

            • Format (string) --

              The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format.

              If the files are stored in an Amazon S3 location and that location contains multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.

            • RegisterEndpoints (boolean) --

              Specifies whether the import job registers the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.

            • RoleArn (string) --

              The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.

            • S3Url (string) --

              The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.

              The URL should be in the following format: s3://bucket-name/folder-name/file-name. The location can end with the key for an individual object or a prefix that qualifies multiple objects.

            • SegmentId (string) --

              The identifier for the segment that the import job updates or adds endpoint definitions to, if the import job updates an existing segment.

            • SegmentName (string) --

              The custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.

          • FailedPieces (integer) --

            The number of pieces that weren't processed successfully (failed) by the import job, as of the time of the request.

          • Failures (list) --

            An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the import job, if any.

            • (string) --

          • Id (string) --

            The unique identifier for the import job.

          • JobStatus (string) --

            The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.

          • TotalFailures (integer) --

            The total number of endpoint definitions that weren't processed successfully (failed) by the import job, typically because an error, such as a syntax error, occurred.

          • TotalPieces (integer) --

            The total number of pieces that must be processed to complete the import job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the import job.

          • TotalProcessed (integer) --

            The total number of endpoint definitions that were processed by the import job.

          • Type (string) --

            The job type. This value is IMPORT for import jobs.

      • NextToken (string) --

        The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

GetSmsTemplate (updated) Link ¶
Changes (response)
{'SMSTemplateResponse': {'TemplateType': {'VOICE'}}}

Retrieves the content and settings for a message template that you can use in messages that are sent through the SMS channel.

See also: AWS API Documentation

Request Syntax

client.get_sms_template(
    TemplateName='string'
)
type TemplateName

string

param TemplateName

[REQUIRED]

The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

rtype

dict

returns

Response Syntax

{
    'SMSTemplateResponse': {
        'Arn': 'string',
        'Body': 'string',
        'CreationDate': 'string',
        'LastModifiedDate': 'string',
        'tags': {
            'string': 'string'
        },
        'TemplateName': 'string',
        'TemplateType': 'EMAIL'|'SMS'|'VOICE'|'PUSH'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • SMSTemplateResponse (dict) --

      Provides information about the content and settings for a message template that can be used in text messages that are sent through the SMS channel.

      • Arn (string) --

        The Amazon Resource Name (ARN) of the message template.

      • Body (string) --

        The message body that's used in text messages that are based on the message template.

      • CreationDate (string) --

        The date when the message template was created.

      • LastModifiedDate (string) --

        The date when the message template was last modified.

      • tags (dict) --

        A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. Each tag consists of a required tag key and an associated tag value.

        • (string) --

          • (string) --

      • TemplateName (string) --

        The name of the message template.

      • TemplateType (string) --

        The type of channel that the message template is designed for. For an SMS template, this value is SMS.

ListTemplates (updated) Link ¶
Changes (response)
{'TemplatesResponse': {'Item': {'TemplateType': {'VOICE'}}}}

Retrieves information about all the message templates that are associated with your Amazon Pinpoint account.

See also: AWS API Documentation

Request Syntax

client.list_templates(
    NextToken='string',
    PageSize='string',
    Prefix='string',
    TemplateType='string'
)
type NextToken

string

param NextToken

The string that specifies which page of results to return in a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is currently not supported for application, campaign, and journey metrics.

type Prefix

string

param Prefix

The substring to match in the names of the message templates to include in the results. If you specify this value, Amazon Pinpoint returns only those templates whose names begin with the value that you specify.

type TemplateType

string

param TemplateType

The type of message template to include in the results. Valid values are: EMAIL, SMS, and PUSH. To include all types of templates in the results, don't include this parameter in your request.

rtype

dict

returns

Response Syntax

{
    'TemplatesResponse': {
        'Item': [
            {
                'Arn': 'string',
                'CreationDate': 'string',
                'LastModifiedDate': 'string',
                'tags': {
                    'string': 'string'
                },
                'TemplateName': 'string',
                'TemplateType': 'EMAIL'|'SMS'|'VOICE'|'PUSH'
            },
        ],
        'NextToken': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • TemplatesResponse (dict) --

      Provides information about all the message templates that are associated with your Amazon Pinpoint account.

      • Item (list) --

        An array of responses, one for each message template that's associated with your Amazon Pinpoint account and meets any filter criteria that you specified in the request.

        • (dict) --

          Provides information about a message template that's associated with your Amazon Pinpoint account.

          • Arn (string) --

            The Amazon Resource Name (ARN) of the message template.

          • CreationDate (string) --

            The date when the message template was created.

          • LastModifiedDate (string) --

            The date when the message template was last modified.

          • tags (dict) --

            A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. Each tag consists of a required tag key and an associated tag value.

            • (string) --

              • (string) --

          • TemplateName (string) --

            The name of the message template.

          • TemplateType (string) --

            The type of channel that the message template is designed for.

      • NextToken (string) --

        The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

SendMessages (updated) Link ¶
Changes (request)
{'MessageRequest': {'MessageConfiguration': {'APNSMessage': {'APNSPushType': 'string'}}}}

Creates and sends a direct message.

See also: AWS API Documentation

Request Syntax

client.send_messages(
    ApplicationId='string',
    MessageRequest={
        'Addresses': {
            'string': {
                'BodyOverride': 'string',
                'ChannelType': 'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                'Context': {
                    'string': 'string'
                },
                'RawContent': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'TitleOverride': 'string'
            }
        },
        'Context': {
            'string': 'string'
        },
        'Endpoints': {
            'string': {
                'BodyOverride': 'string',
                'Context': {
                    'string': 'string'
                },
                'RawContent': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'TitleOverride': 'string'
            }
        },
        'MessageConfiguration': {
            'ADMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ConsolidationKey': 'string',
                'Data': {
                    'string': 'string'
                },
                'ExpiresAfter': 'string',
                'IconReference': 'string',
                'ImageIconUrl': 'string',
                'ImageUrl': 'string',
                'MD5': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'SmallImageIconUrl': 'string',
                'Sound': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'Title': 'string',
                'Url': 'string'
            },
            'APNSMessage': {
                'APNSPushType': 'string',
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Badge': 123,
                'Body': 'string',
                'Category': 'string',
                'CollapseId': 'string',
                'Data': {
                    'string': 'string'
                },
                'MediaUrl': 'string',
                'PreferredAuthenticationMethod': 'string',
                'Priority': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'Sound': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'ThreadId': 'string',
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'BaiduMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'Data': {
                    'string': 'string'
                },
                'IconReference': 'string',
                'ImageIconUrl': 'string',
                'ImageUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'SmallImageIconUrl': 'string',
                'Sound': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'DefaultMessage': {
                'Body': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                }
            },
            'DefaultPushNotificationMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'Data': {
                    'string': 'string'
                },
                'SilentPush': True|False,
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'Title': 'string',
                'Url': 'string'
            },
            'EmailMessage': {
                'Body': 'string',
                'FeedbackForwardingAddress': 'string',
                'FromAddress': 'string',
                'RawEmail': {
                    'Data': b'bytes'
                },
                'ReplyToAddresses': [
                    'string',
                ],
                'SimpleEmail': {
                    'HtmlPart': {
                        'Charset': 'string',
                        'Data': 'string'
                    },
                    'Subject': {
                        'Charset': 'string',
                        'Data': 'string'
                    },
                    'TextPart': {
                        'Charset': 'string',
                        'Data': 'string'
                    }
                },
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                }
            },
            'GCMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'CollapseKey': 'string',
                'Data': {
                    'string': 'string'
                },
                'IconReference': 'string',
                'ImageIconUrl': 'string',
                'ImageUrl': 'string',
                'Priority': 'string',
                'RawContent': 'string',
                'RestrictedPackageName': 'string',
                'SilentPush': True|False,
                'SmallImageIconUrl': 'string',
                'Sound': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'SMSMessage': {
                'Body': 'string',
                'Keyword': 'string',
                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                'OriginationNumber': 'string',
                'SenderId': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                }
            },
            'VoiceMessage': {
                'Body': 'string',
                'LanguageCode': 'string',
                'OriginationNumber': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'VoiceId': 'string'
            }
        },
        'TemplateConfiguration': {
            'EmailTemplate': {
                'Name': 'string'
            },
            'PushTemplate': {
                'Name': 'string'
            },
            'SMSTemplate': {
                'Name': 'string'
            }
        },
        'TraceId': 'string'
    }
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type MessageRequest

dict

param MessageRequest

[REQUIRED]

Specifies the objects that define configuration and other settings for a message.

  • Addresses (dict) --

    A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object. An address can be a push notification token, a phone number, or an email address. You can use an AddressConfiguration object to tailor the message for an address by specifying settings such as content overrides and message variables.

    • (string) --

      • (dict) --

        Specifies address-based configuration settings for a message that's sent directly to an endpoint.

        • BodyOverride (string) --

          The message body to use instead of the default message body. This value overrides the default message body.

        • ChannelType (string) --

          The channel to use when sending the message.

        • Context (dict) --

          An object that maps custom attributes to attributes for the address and is attached to the message. For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.

          • (string) --

            • (string) --

        • RawContent (string) --

          The raw, JSON-formatted string to use as the payload for the notification message. This value overrides the message.

        • Substitutions (dict) --

          An object that maps variable values for the message. Amazon Pinpoint merges these values with the variable values specified by properties of the DefaultMessage object. The substitutions in this map take precedence over all other substitutions.

          • (string) --

            • (list) --

              • (string) --

        • TitleOverride (string) --

          The message title to use instead of the default message title. This value overrides the default message title.

  • Context (dict) --

    A map of custom attributes to attach to the message. For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.

    • (string) --

      • (string) --

  • Endpoints (dict) --

    A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object. You can use an EndpointSendConfiguration object to tailor the message for an endpoint by specifying settings such as content overrides and message variables.

    • (string) --

      • (dict) --

        Specifies the content, including message variables and attributes, to use in a message that's sent directly to an endpoint.

        • BodyOverride (string) --

          The body of the message. If specified, this value overrides the default message body.

        • Context (dict) --

          A map of custom attributes to attach to the message for the address. For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.

          • (string) --

            • (string) --

        • RawContent (string) --

          The raw, JSON-formatted string to use as the payload for the message. If specified, this value overrides the message.

        • Substitutions (dict) --

          A map of the message variables to merge with the variables specified for the default message (DefaultMessage.Substitutions). The variables specified in this map take precedence over all other variables.

          • (string) --

            • (list) --

              • (string) --

        • TitleOverride (string) --

          The title or subject line of the message. If specified, this value overrides the default message title or subject line.

  • MessageConfiguration (dict) -- [REQUIRED]

    The set of properties that defines the configuration settings for the message.

    • ADMMessage (dict) --

      The default push notification message for the ADM (Amazon Device Messaging) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

      • Action (string) --

        The action to occur if the recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Body (string) --

        The body of the notification message.

      • ConsolidationKey (string) --

        An arbitrary string that indicates that multiple messages are logically the same and that Amazon Device Messaging (ADM) can drop previously enqueued messages in favor of this message.

      • Data (dict) --

        The JSON data payload to use for the push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • ExpiresAfter (string) --

        The amount of time, in seconds, that ADM should store the message if the recipient's device is offline. Amazon Pinpoint specifies this value in the expiresAfter parameter when it sends the notification message to ADM.

      • IconReference (string) --

        The icon image name of the asset saved in your app.

      • ImageIconUrl (string) --

        The URL of the large icon image to display in the content view of the push notification.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • MD5 (string) --

        The base64-encoded, MD5 checksum of the value specified by the Data property. ADM uses the MD5 value to verify the integrity of the data.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. This value overrides the message.

      • SilentPush (boolean) --

        Specifies whether the notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or supporting phone home functionality.

      • SmallImageIconUrl (string) --

        The URL of the small icon image to display in the status bar and the content view of the push notification.

      • Sound (string) --

        The sound to play when the recipient receives the push notification. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • Title (string) --

        The title to display above the notification message on the recipient's device.

      • Url (string) --

        The URL to open in the recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • APNSMessage (dict) --

      The default push notification message for the APNs (Apple Push Notification service) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

      • APNSPushType (string) --

        The type of push notification to send. Valid values are:

        • alert - For a standard notification that's displayed on recipients' devices and prompts a recipient to interact with the notification.

        • background - For a silent notification that delivers content in the background and isn't displayed on recipients' devices.

        • complication - For a notification that contains update information for an app’s complication timeline.

        • fileprovider - For a notification that signals changes to a File Provider extension.

        • mdm - For a notification that tells managed devices to contact the MDM server.

        • voip - For a notification that provides information about an incoming VoIP call.

        Amazon Pinpoint specifies this value in the apns-push-type request header when it sends the notification message to APNs. If you don't specify a value for this property, Amazon Pinpoint sets the value to alert or background automatically, based on the value that you specify for the SilentPush or RawContent property of the message.

        For more information about the apns-push-type request header, see Sending Notification Requests to APNs on the Apple Developer website.

      • Action (string) --

        The action to occur if the recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS platform.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Badge (integer) --

        The key that indicates whether and how to modify the badge of your app's icon when the recipient receives the push notification. If this key isn't included in the dictionary, the badge doesn't change. To remove the badge, set this value to 0.

      • Body (string) --

        The body of the notification message.

      • Category (string) --

        The key that indicates the notification type for the push notification. This key is a value that's defined by the identifier property of one of your app's registered categories.

      • CollapseId (string) --

        An arbitrary identifier that, if assigned to multiple messages, APNs uses to coalesce the messages into a single push notification instead of delivering each message individually. This value can't exceed 64 bytes.

        Amazon Pinpoint specifies this value in the apns-collapse-id request header when it sends the notification message to APNs.

      • Data (dict) --

        The JSON payload to use for a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • MediaUrl (string) --

        The URL of an image or video to display in the push notification.

      • PreferredAuthenticationMethod (string) --

        The authentication method that you want Amazon Pinpoint to use when authenticating with APNs, CERTIFICATE or TOKEN.

      • Priority (string) --

        para>5 - Low priority, the notification might be delayed, delivered as part of a group, or throttled.

        /listitem> * 10 - High priority, the notification is sent immediately. This is the default value. A high priority notification should trigger an alert, play a sound, or badge your app's icon on the recipient's device. /para>

        Amazon Pinpoint specifies this value in the apns-priority request header when it sends the notification message to APNs.

        The equivalent values for Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), are normal, for 5, and high, for 10. If you specify an FCM value for this property, Amazon Pinpoint accepts and converts the value to the corresponding APNs value.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. This value overrides all other content for the message.

        Note

        If you specify the raw content of an APNs push notification, the message payload has to include the content-available key. The value of the content-available key has to be an integer, and can only be 0 or 1. If you're sending a standard notification, set the value of content-available to 0. If you're sending a silent (background) notification, set the value of content-available to 1. Additionally, silent notification payloads can't include the alert, badge, or sound keys. For more information, see Generating a Remote Notification and Pushing Background Updates to Your App on the Apple Developer website.

      • SilentPush (boolean) --

        Specifies whether the notification is a silent push notification. A silent (or background) push notification isn't displayed on recipients' devices. You can use silent push notifications to make small updates to your app, or to display messages in an in-app message center.

        Amazon Pinpoint uses this property to determine the correct value for the apns-push-type request header when it sends the notification message to APNs. If you specify a value of true for this property, Amazon Pinpoint sets the value for the apns-push-type header field to background.

        Note

        If you specify the raw content of an APNs push notification, the message payload has to include the content-available key. For silent (background) notifications, set the value of content-available to 1. Additionally, the message payload for a silent notification can't include the alert, badge, or sound keys. For more information, see Generating a Remote Notification and Pushing Background Updates to Your App on the Apple Developer website.

        Apple has indicated that they will throttle "excessive" background notifications based on current traffic volumes. To prevent your notifications being throttled, Apple recommends that you send no more than 3 silent push notifications to each recipient per hour.

      • Sound (string) --

        The key for the sound to play when the recipient receives the push notification. The value for this key is the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override these default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • ThreadId (string) --

        The key that represents your app-specific identifier for grouping notifications. If you provide a Notification Content app extension, you can use this value to group your notifications together.

      • TimeToLive (integer) --

        The amount of time, in seconds, that APNs should store and attempt to deliver the push notification, if the service is unable to deliver the notification the first time. If this value is 0, APNs treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        Amazon Pinpoint specifies this value in the apns-expiration request header when it sends the notification message to APNs.

      • Title (string) --

        The title to display above the notification message on the recipient's device.

      • Url (string) --

        The URL to open in the recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • BaiduMessage (dict) --

      The default push notification message for the Baidu (Baidu Cloud Push) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

      • Action (string) --

        The action to occur if the recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Body (string) --

        The body of the notification message.

      • Data (dict) --

        The JSON data payload to use for the push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • IconReference (string) --

        The icon image name of the asset saved in your app.

      • ImageIconUrl (string) --

        The URL of the large icon image to display in the content view of the push notification.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. This value overrides the message.

      • SilentPush (boolean) --

        Specifies whether the notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or supporting phone home functionality.

      • SmallImageIconUrl (string) --

        The URL of the small icon image to display in the status bar and the content view of the push notification.

      • Sound (string) --

        The sound to play when the recipient receives the push notification. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • TimeToLive (integer) --

        The amount of time, in seconds, that the Baidu Cloud Push service should store the message if the recipient's device is offline. The default value and maximum supported time is 604,800 seconds (7 days).

      • Title (string) --

        The title to display above the notification message on the recipient's device.

      • Url (string) --

        The URL to open in the recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • DefaultMessage (dict) --

      The default message body for all channels.

      • Body (string) --

        The default message body of the push notification, email, or SMS message.

      • Substitutions (dict) --

        The default message variables to use in the push notification, email, or SMS message. You can override these default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

    • DefaultPushNotificationMessage (dict) --

      The default push notification message for all push notification channels.

      • Action (string) --

        The default action to occur if a recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS and Android platforms.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Body (string) --

        The default body of the notification message.

      • Data (dict) --

        The JSON data payload to use for the default push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • SilentPush (boolean) --

        Specifies whether the default notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or delivering messages to an in-app notification center.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • Title (string) --

        The default title to display above the notification message on a recipient's device.

      • Url (string) --

        The default URL to open in a recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • EmailMessage (dict) --

      The default message for the email channel. This message overrides the default message (DefaultMessage).

      • Body (string) --

        The body of the email message.

      • FeedbackForwardingAddress (string) --

        The email address to forward bounces and complaints to, if feedback forwarding is enabled.

      • FromAddress (string) --

        The verified email address to send the email message from. The default value is the FromAddress specified for the email channel.

      • RawEmail (dict) --

        The email message, represented as a raw MIME message.

        • Data (bytes) --

          The email message, represented as a raw MIME message. The entire message must be base64 encoded.

      • ReplyToAddresses (list) --

        The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.

        • (string) --

      • SimpleEmail (dict) --

        The email message, composed of a subject, a text part, and an HTML part.

        • HtmlPart (dict) --

          The body of the email message, in HTML format. We recommend using an HTML part for email clients that support HTML. You can include links, formatted text, and more in an HTML message.

          • Charset (string) --

            The applicable character set for the message content.

          • Data (string) --

            The textual data of the message content.

        • Subject (dict) --

          The subject line, or title, of the email.

          • Charset (string) --

            The applicable character set for the message content.

          • Data (string) --

            The textual data of the message content.

        • TextPart (dict) --

          The body of the email message, in text format. We recommend using a text part for email clients that don't support HTML and clients that are connected to high-latency networks, such as mobile devices.

          • Charset (string) --

            The applicable character set for the message content.

          • Data (string) --

            The textual data of the message content.

      • Substitutions (dict) --

        The default message variables to use in the email message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

    • GCMMessage (dict) --

      The default push notification message for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message overrides the default push notification message (DefaultPushNotificationMessage).

      • Action (string) --

        The action to occur if the recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Body (string) --

        The body of the notification message.

      • CollapseKey (string) --

        An arbitrary string that identifies a group of messages that can be collapsed to ensure that only the last message is sent when delivery can resume. This helps avoid sending too many instances of the same messages when the recipient's device comes online again or becomes active.

        Amazon Pinpoint specifies this value in the Firebase Cloud Messaging (FCM) collapse_key parameter when it sends the notification message to FCM.

      • Data (dict) --

        The JSON data payload to use for the push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • IconReference (string) --

        The icon image name of the asset saved in your app.

      • ImageIconUrl (string) --

        The URL of the large icon image to display in the content view of the push notification.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • Priority (string) --

        para>normal - The notification might be delayed. Delivery is optimized for battery usage on the recipient's device. Use this value unless immediate delivery is required.

        /listitem> * high - The notification is sent immediately and might wake a sleeping device. /para>

        Amazon Pinpoint specifies this value in the FCM priority parameter when it sends the notification message to FCM.

        The equivalent values for Apple Push Notification service (APNs) are 5, for normal, and 10, for high. If you specify an APNs value for this property, Amazon Pinpoint accepts and converts the value to the corresponding FCM value.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. This value overrides the message.

      • RestrictedPackageName (string) --

        The package name of the application where registration tokens must match in order for the recipient to receive the message.

      • SilentPush (boolean) --

        Specifies whether the notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or supporting phone home functionality.

      • SmallImageIconUrl (string) --

        The URL of the small icon image to display in the status bar and the content view of the push notification.

      • Sound (string) --

        The sound to play when the recipient receives the push notification. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • TimeToLive (integer) --

        The amount of time, in seconds, that FCM should store and attempt to deliver the push notification, if the service is unable to deliver the notification the first time. If you don't specify this value, FCM defaults to the maximum value, which is 2,419,200 seconds (28 days).

        Amazon Pinpoint specifies this value in the FCM time_to_live parameter when it sends the notification message to FCM.

      • Title (string) --

        The title to display above the notification message on the recipient's device.

      • Url (string) --

        The URL to open in the recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • SMSMessage (dict) --

      The default message for the SMS channel. This message overrides the default message (DefaultMessage).

      • Body (string) --

        The body of the SMS message.

      • Keyword (string) --

        The SMS program name that you provided to AWS Support when you requested your dedicated number.

      • MessageType (string) --

        The SMS message type. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message is not critical or time-sensitive, such as a marketing message.

      • OriginationNumber (string) --

        The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.

      • SenderId (string) --

        The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.

      • Substitutions (dict) --

        The message variables to use in the SMS message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

    • VoiceMessage (dict) --

      The default message for the voice channel. This message overrides the default message (DefaultMessage).

      • Body (string) --

        The text script for the voice message.

      • LanguageCode (string) --

        The language to use when delivering the message. For a list of supported languages, see the Amazon Polly Developer Guide.

      • OriginationNumber (string) --

        The long code to send the voice message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code in E.164 format, for example +12065550100, to ensure prompt and accurate delivery of the message.

      • Substitutions (dict) --

        The default message variables to use in the voice message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • VoiceId (string) --

        The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.

  • TemplateConfiguration (dict) --

    The message template to use for the message.

    • EmailTemplate (dict) --

      The email template to use for the message.

      • Name (string) --

        The name of the message template to use for the message. If specified, this value must match the name of an existing message template.

    • PushTemplate (dict) --

      The push notification template to use for the message.

      • Name (string) --

        The name of the message template to use for the message. If specified, this value must match the name of an existing message template.

    • SMSTemplate (dict) --

      The SMS template to use for the message.

      • Name (string) --

        The name of the message template to use for the message. If specified, this value must match the name of an existing message template.

  • TraceId (string) --

    The unique identifier for tracing the message. This identifier is visible to message recipients.

rtype

dict

returns

Response Syntax

{
    'MessageResponse': {
        'ApplicationId': 'string',
        'EndpointResult': {
            'string': {
                'Address': 'string',
                'DeliveryStatus': 'SUCCESSFUL'|'THROTTLED'|'TEMPORARY_FAILURE'|'PERMANENT_FAILURE'|'UNKNOWN_FAILURE'|'OPT_OUT'|'DUPLICATE',
                'MessageId': 'string',
                'StatusCode': 123,
                'StatusMessage': 'string',
                'UpdatedToken': 'string'
            }
        },
        'RequestId': 'string',
        'Result': {
            'string': {
                'DeliveryStatus': 'SUCCESSFUL'|'THROTTLED'|'TEMPORARY_FAILURE'|'PERMANENT_FAILURE'|'UNKNOWN_FAILURE'|'OPT_OUT'|'DUPLICATE',
                'MessageId': 'string',
                'StatusCode': 123,
                'StatusMessage': 'string',
                'UpdatedToken': 'string'
            }
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • MessageResponse (dict) --

      Provides information about the results of a request to send a message to an endpoint address.

      • ApplicationId (string) --

        The unique identifier for the application that was used to send the message.

      • EndpointResult (dict) --

        A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.

        • (string) --

          • (dict) --

            Provides information about the delivery status and results of sending a message directly to an endpoint.

            • Address (string) --

              The endpoint address that the message was delivered to.

            • DeliveryStatus (string) --

              The delivery status of the message. Possible values are:

              • DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to send the message again.

              • OPT_OUT - The user who's associated with the endpoint has opted out of receiving messages from you. Amazon Pinpoint won't attempt to send the message again.

              • PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.

              • SUCCESSFUL - The message was successfully delivered to the endpoint.

              • TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint will attempt to deliver the message again later.

              • THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint.

              • TIMEOUT - The message couldn't be sent within the timeout period.

              • UNKNOWN_FAILURE - An unknown error occurred.

            • MessageId (string) --

              The unique identifier for the message that was sent.

            • StatusCode (integer) --

              The downstream service status code for delivering the message.

            • StatusMessage (string) --

              The status message for delivering the message.

            • UpdatedToken (string) --

              For push notifications that are sent through the GCM channel, specifies whether the endpoint's device registration token was updated as part of delivering the message.

      • RequestId (string) --

        The identifier for the original request that the message was delivered for.

      • Result (dict) --

        A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.

        • (string) --

          • (dict) --

            Provides information about the results of sending a message directly to an endpoint address.

            • DeliveryStatus (string) --

              The delivery status of the message. Possible values are:

              • DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to send the message again.

              • OPT_OUT - The user who's associated with the endpoint address has opted out of receiving messages from you. Amazon Pinpoint won't attempt to send the message again.

              • PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint address. Amazon Pinpoint won't attempt to send the message again.

              • SUCCESSFUL - The message was successfully delivered to the endpoint address.

              • TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint will attempt to deliver the message again later.

              • THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint address.

              • TIMEOUT - The message couldn't be sent within the timeout period.

              • UNKNOWN_FAILURE - An unknown error occurred.

            • MessageId (string) --

              The unique identifier for the message that was sent.

            • StatusCode (integer) --

              The downstream service status code for delivering the message.

            • StatusMessage (string) --

              The status message for delivering the message.

            • UpdatedToken (string) --

              For push notifications that are sent through the GCM channel, specifies whether the endpoint's device registration token was updated as part of delivering the message.

SendUsersMessages (updated) Link ¶
Changes (request)
{'SendUsersMessageRequest': {'MessageConfiguration': {'APNSMessage': {'APNSPushType': 'string'}}}}

Creates and sends a message to a list of users.

See also: AWS API Documentation

Request Syntax

client.send_users_messages(
    ApplicationId='string',
    SendUsersMessageRequest={
        'Context': {
            'string': 'string'
        },
        'MessageConfiguration': {
            'ADMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ConsolidationKey': 'string',
                'Data': {
                    'string': 'string'
                },
                'ExpiresAfter': 'string',
                'IconReference': 'string',
                'ImageIconUrl': 'string',
                'ImageUrl': 'string',
                'MD5': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'SmallImageIconUrl': 'string',
                'Sound': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'Title': 'string',
                'Url': 'string'
            },
            'APNSMessage': {
                'APNSPushType': 'string',
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Badge': 123,
                'Body': 'string',
                'Category': 'string',
                'CollapseId': 'string',
                'Data': {
                    'string': 'string'
                },
                'MediaUrl': 'string',
                'PreferredAuthenticationMethod': 'string',
                'Priority': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'Sound': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'ThreadId': 'string',
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'BaiduMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'Data': {
                    'string': 'string'
                },
                'IconReference': 'string',
                'ImageIconUrl': 'string',
                'ImageUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'SmallImageIconUrl': 'string',
                'Sound': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'DefaultMessage': {
                'Body': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                }
            },
            'DefaultPushNotificationMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'Data': {
                    'string': 'string'
                },
                'SilentPush': True|False,
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'Title': 'string',
                'Url': 'string'
            },
            'EmailMessage': {
                'Body': 'string',
                'FeedbackForwardingAddress': 'string',
                'FromAddress': 'string',
                'RawEmail': {
                    'Data': b'bytes'
                },
                'ReplyToAddresses': [
                    'string',
                ],
                'SimpleEmail': {
                    'HtmlPart': {
                        'Charset': 'string',
                        'Data': 'string'
                    },
                    'Subject': {
                        'Charset': 'string',
                        'Data': 'string'
                    },
                    'TextPart': {
                        'Charset': 'string',
                        'Data': 'string'
                    }
                },
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                }
            },
            'GCMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'CollapseKey': 'string',
                'Data': {
                    'string': 'string'
                },
                'IconReference': 'string',
                'ImageIconUrl': 'string',
                'ImageUrl': 'string',
                'Priority': 'string',
                'RawContent': 'string',
                'RestrictedPackageName': 'string',
                'SilentPush': True|False,
                'SmallImageIconUrl': 'string',
                'Sound': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'SMSMessage': {
                'Body': 'string',
                'Keyword': 'string',
                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                'OriginationNumber': 'string',
                'SenderId': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                }
            },
            'VoiceMessage': {
                'Body': 'string',
                'LanguageCode': 'string',
                'OriginationNumber': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'VoiceId': 'string'
            }
        },
        'TemplateConfiguration': {
            'EmailTemplate': {
                'Name': 'string'
            },
            'PushTemplate': {
                'Name': 'string'
            },
            'SMSTemplate': {
                'Name': 'string'
            }
        },
        'TraceId': 'string',
        'Users': {
            'string': {
                'BodyOverride': 'string',
                'Context': {
                    'string': 'string'
                },
                'RawContent': 'string',
                'Substitutions': {
                    'string': [
                        'string',
                    ]
                },
                'TitleOverride': 'string'
            }
        }
    }
)
type ApplicationId

string

param ApplicationId

[REQUIRED]

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

type SendUsersMessageRequest

dict

param SendUsersMessageRequest

[REQUIRED]

Specifies the configuration and other settings for a message to send to all the endpoints that are associated with a list of users.

  • Context (dict) --

    A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries.

    • (string) --

      • (string) --

  • MessageConfiguration (dict) -- [REQUIRED]

    The message definitions for the default message and any default messages that you defined for specific channels.

    • ADMMessage (dict) --

      The default push notification message for the ADM (Amazon Device Messaging) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

      • Action (string) --

        The action to occur if the recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Body (string) --

        The body of the notification message.

      • ConsolidationKey (string) --

        An arbitrary string that indicates that multiple messages are logically the same and that Amazon Device Messaging (ADM) can drop previously enqueued messages in favor of this message.

      • Data (dict) --

        The JSON data payload to use for the push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • ExpiresAfter (string) --

        The amount of time, in seconds, that ADM should store the message if the recipient's device is offline. Amazon Pinpoint specifies this value in the expiresAfter parameter when it sends the notification message to ADM.

      • IconReference (string) --

        The icon image name of the asset saved in your app.

      • ImageIconUrl (string) --

        The URL of the large icon image to display in the content view of the push notification.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • MD5 (string) --

        The base64-encoded, MD5 checksum of the value specified by the Data property. ADM uses the MD5 value to verify the integrity of the data.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. This value overrides the message.

      • SilentPush (boolean) --

        Specifies whether the notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or supporting phone home functionality.

      • SmallImageIconUrl (string) --

        The URL of the small icon image to display in the status bar and the content view of the push notification.

      • Sound (string) --

        The sound to play when the recipient receives the push notification. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • Title (string) --

        The title to display above the notification message on the recipient's device.

      • Url (string) --

        The URL to open in the recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • APNSMessage (dict) --

      The default push notification message for the APNs (Apple Push Notification service) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

      • APNSPushType (string) --

        The type of push notification to send. Valid values are:

        • alert - For a standard notification that's displayed on recipients' devices and prompts a recipient to interact with the notification.

        • background - For a silent notification that delivers content in the background and isn't displayed on recipients' devices.

        • complication - For a notification that contains update information for an app’s complication timeline.

        • fileprovider - For a notification that signals changes to a File Provider extension.

        • mdm - For a notification that tells managed devices to contact the MDM server.

        • voip - For a notification that provides information about an incoming VoIP call.

        Amazon Pinpoint specifies this value in the apns-push-type request header when it sends the notification message to APNs. If you don't specify a value for this property, Amazon Pinpoint sets the value to alert or background automatically, based on the value that you specify for the SilentPush or RawContent property of the message.

        For more information about the apns-push-type request header, see Sending Notification Requests to APNs on the Apple Developer website.

      • Action (string) --

        The action to occur if the recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS platform.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Badge (integer) --

        The key that indicates whether and how to modify the badge of your app's icon when the recipient receives the push notification. If this key isn't included in the dictionary, the badge doesn't change. To remove the badge, set this value to 0.

      • Body (string) --

        The body of the notification message.

      • Category (string) --

        The key that indicates the notification type for the push notification. This key is a value that's defined by the identifier property of one of your app's registered categories.

      • CollapseId (string) --

        An arbitrary identifier that, if assigned to multiple messages, APNs uses to coalesce the messages into a single push notification instead of delivering each message individually. This value can't exceed 64 bytes.

        Amazon Pinpoint specifies this value in the apns-collapse-id request header when it sends the notification message to APNs.

      • Data (dict) --

        The JSON payload to use for a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • MediaUrl (string) --

        The URL of an image or video to display in the push notification.

      • PreferredAuthenticationMethod (string) --

        The authentication method that you want Amazon Pinpoint to use when authenticating with APNs, CERTIFICATE or TOKEN.

      • Priority (string) --

        para>5 - Low priority, the notification might be delayed, delivered as part of a group, or throttled.

        /listitem> * 10 - High priority, the notification is sent immediately. This is the default value. A high priority notification should trigger an alert, play a sound, or badge your app's icon on the recipient's device. /para>

        Amazon Pinpoint specifies this value in the apns-priority request header when it sends the notification message to APNs.

        The equivalent values for Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), are normal, for 5, and high, for 10. If you specify an FCM value for this property, Amazon Pinpoint accepts and converts the value to the corresponding APNs value.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. This value overrides all other content for the message.

        Note

        If you specify the raw content of an APNs push notification, the message payload has to include the content-available key. The value of the content-available key has to be an integer, and can only be 0 or 1. If you're sending a standard notification, set the value of content-available to 0. If you're sending a silent (background) notification, set the value of content-available to 1. Additionally, silent notification payloads can't include the alert, badge, or sound keys. For more information, see Generating a Remote Notification and Pushing Background Updates to Your App on the Apple Developer website.

      • SilentPush (boolean) --

        Specifies whether the notification is a silent push notification. A silent (or background) push notification isn't displayed on recipients' devices. You can use silent push notifications to make small updates to your app, or to display messages in an in-app message center.

        Amazon Pinpoint uses this property to determine the correct value for the apns-push-type request header when it sends the notification message to APNs. If you specify a value of true for this property, Amazon Pinpoint sets the value for the apns-push-type header field to background.

        Note

        If you specify the raw content of an APNs push notification, the message payload has to include the content-available key. For silent (background) notifications, set the value of content-available to 1. Additionally, the message payload for a silent notification can't include the alert, badge, or sound keys. For more information, see Generating a Remote Notification and Pushing Background Updates to Your App on the Apple Developer website.

        Apple has indicated that they will throttle "excessive" background notifications based on current traffic volumes. To prevent your notifications being throttled, Apple recommends that you send no more than 3 silent push notifications to each recipient per hour.

      • Sound (string) --

        The key for the sound to play when the recipient receives the push notification. The value for this key is the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override these default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • ThreadId (string) --

        The key that represents your app-specific identifier for grouping notifications. If you provide a Notification Content app extension, you can use this value to group your notifications together.

      • TimeToLive (integer) --

        The amount of time, in seconds, that APNs should store and attempt to deliver the push notification, if the service is unable to deliver the notification the first time. If this value is 0, APNs treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        Amazon Pinpoint specifies this value in the apns-expiration request header when it sends the notification message to APNs.

      • Title (string) --

        The title to display above the notification message on the recipient's device.

      • Url (string) --

        The URL to open in the recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • BaiduMessage (dict) --

      The default push notification message for the Baidu (Baidu Cloud Push) channel. This message overrides the default push notification message (DefaultPushNotificationMessage).

      • Action (string) --

        The action to occur if the recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Body (string) --

        The body of the notification message.

      • Data (dict) --

        The JSON data payload to use for the push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • IconReference (string) --

        The icon image name of the asset saved in your app.

      • ImageIconUrl (string) --

        The URL of the large icon image to display in the content view of the push notification.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. This value overrides the message.

      • SilentPush (boolean) --

        Specifies whether the notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or supporting phone home functionality.

      • SmallImageIconUrl (string) --

        The URL of the small icon image to display in the status bar and the content view of the push notification.

      • Sound (string) --

        The sound to play when the recipient receives the push notification. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • TimeToLive (integer) --

        The amount of time, in seconds, that the Baidu Cloud Push service should store the message if the recipient's device is offline. The default value and maximum supported time is 604,800 seconds (7 days).

      • Title (string) --

        The title to display above the notification message on the recipient's device.

      • Url (string) --

        The URL to open in the recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • DefaultMessage (dict) --

      The default message body for all channels.

      • Body (string) --

        The default message body of the push notification, email, or SMS message.

      • Substitutions (dict) --

        The default message variables to use in the push notification, email, or SMS message. You can override these default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

    • DefaultPushNotificationMessage (dict) --

      The default push notification message for all push notification channels.

      • Action (string) --

        The default action to occur if a recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS and Android platforms.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Body (string) --

        The default body of the notification message.

      • Data (dict) --

        The JSON data payload to use for the default push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • SilentPush (boolean) --

        Specifies whether the default notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or delivering messages to an in-app notification center.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • Title (string) --

        The default title to display above the notification message on a recipient's device.

      • Url (string) --

        The default URL to open in a recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • EmailMessage (dict) --

      The default message for the email channel. This message overrides the default message (DefaultMessage).

      • Body (string) --

        The body of the email message.

      • FeedbackForwardingAddress (string) --

        The email address to forward bounces and complaints to, if feedback forwarding is enabled.

      • FromAddress (string) --

        The verified email address to send the email message from. The default value is the FromAddress specified for the email channel.

      • RawEmail (dict) --

        The email message, represented as a raw MIME message.

        • Data (bytes) --

          The email message, represented as a raw MIME message. The entire message must be base64 encoded.

      • ReplyToAddresses (list) --

        The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.

        • (string) --

      • SimpleEmail (dict) --

        The email message, composed of a subject, a text part, and an HTML part.

        • HtmlPart (dict) --

          The body of the email message, in HTML format. We recommend using an HTML part for email clients that support HTML. You can include links, formatted text, and more in an HTML message.

          • Charset (string) --

            The applicable character set for the message content.

          • Data (string) --

            The textual data of the message content.

        • Subject (dict) --

          The subject line, or title, of the email.

          • Charset (string) --

            The applicable character set for the message content.

          • Data (string) --

            The textual data of the message content.

        • TextPart (dict) --

          The body of the email message, in text format. We recommend using a text part for email clients that don't support HTML and clients that are connected to high-latency networks, such as mobile devices.

          • Charset (string) --

            The applicable character set for the message content.

          • Data (string) --

            The textual data of the message content.

      • Substitutions (dict) --

        The default message variables to use in the email message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

    • GCMMessage (dict) --

      The default push notification message for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message overrides the default push notification message (DefaultPushNotificationMessage).

      • Action (string) --

        The action to occur if the recipient taps the push notification. Valid values are:

        • OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.

        • DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.

        • URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.

      • Body (string) --

        The body of the notification message.

      • CollapseKey (string) --

        An arbitrary string that identifies a group of messages that can be collapsed to ensure that only the last message is sent when delivery can resume. This helps avoid sending too many instances of the same messages when the recipient's device comes online again or becomes active.

        Amazon Pinpoint specifies this value in the Firebase Cloud Messaging (FCM) collapse_key parameter when it sends the notification message to FCM.

      • Data (dict) --

        The JSON data payload to use for the push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

        • (string) --

          • (string) --

      • IconReference (string) --

        The icon image name of the asset saved in your app.

      • ImageIconUrl (string) --

        The URL of the large icon image to display in the content view of the push notification.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • Priority (string) --

        para>normal - The notification might be delayed. Delivery is optimized for battery usage on the recipient's device. Use this value unless immediate delivery is required.

        /listitem> * high - The notification is sent immediately and might wake a sleeping device. /para>

        Amazon Pinpoint specifies this value in the FCM priority parameter when it sends the notification message to FCM.

        The equivalent values for Apple Push Notification service (APNs) are 5, for normal, and 10, for high. If you specify an APNs value for this property, Amazon Pinpoint accepts and converts the value to the corresponding FCM value.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. This value overrides the message.

      • RestrictedPackageName (string) --

        The package name of the application where registration tokens must match in order for the recipient to receive the message.

      • SilentPush (boolean) --

        Specifies whether the notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or supporting phone home functionality.

      • SmallImageIconUrl (string) --

        The URL of the small icon image to display in the status bar and the content view of the push notification.

      • Sound (string) --

        The sound to play when the recipient receives the push notification. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.

      • Substitutions (dict) --

        The default message variables to use in the notification message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • TimeToLive (integer) --

        The amount of time, in seconds, that FCM should store and attempt to deliver the push notification, if the service is unable to deliver the notification the first time. If you don't specify this value, FCM defaults to the maximum value, which is 2,419,200 seconds (28 days).

        Amazon Pinpoint specifies this value in the FCM time_to_live parameter when it sends the notification message to FCM.

      • Title (string) --

        The title to display above the notification message on the recipient's device.

      • Url (string) --

        The URL to open in the recipient's default mobile browser, if a recipient taps the push notification and the value of the Action property is URL.

    • SMSMessage (dict) --

      The default message for the SMS channel. This message overrides the default message (DefaultMessage).

      • Body (string) --

        The body of the SMS message.

      • Keyword (string) --

        The SMS program name that you provided to AWS Support when you requested your dedicated number.

      • MessageType (string) --

        The SMS message type. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message is not critical or time-sensitive, such as a marketing message.

      • OriginationNumber (string) --

        The number to send the SMS message from. This value should be one of the dedicated long or short codes that's assigned to your AWS account. If you don't specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.

      • SenderId (string) --

        The sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region.

      • Substitutions (dict) --

        The message variables to use in the SMS message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

    • VoiceMessage (dict) --

      The default message for the voice channel. This message overrides the default message (DefaultMessage).

      • Body (string) --

        The text script for the voice message.

      • LanguageCode (string) --

        The language to use when delivering the message. For a list of supported languages, see the Amazon Polly Developer Guide.

      • OriginationNumber (string) --

        The long code to send the voice message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code in E.164 format, for example +12065550100, to ensure prompt and accurate delivery of the message.

      • Substitutions (dict) --

        The default message variables to use in the voice message. You can override the default variables with individual address variables.

        • (string) --

          • (list) --

            • (string) --

      • VoiceId (string) --

        The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.

  • TemplateConfiguration (dict) --

    The message template to use for the message.

    • EmailTemplate (dict) --

      The email template to use for the message.

      • Name (string) --

        The name of the message template to use for the message. If specified, this value must match the name of an existing message template.

    • PushTemplate (dict) --

      The push notification template to use for the message.

      • Name (string) --

        The name of the message template to use for the message. If specified, this value must match the name of an existing message template.

    • SMSTemplate (dict) --

      The SMS template to use for the message.

      • Name (string) --

        The name of the message template to use for the message. If specified, this value must match the name of an existing message template.

  • TraceId (string) --

    The unique identifier for tracing the message. This identifier is visible to message recipients.

  • Users (dict) -- [REQUIRED]

    A map that associates user IDs with EndpointSendConfiguration objects. You can use an EndpointSendConfiguration object to tailor the message for a user by specifying settings such as content overrides and message variables.

    • (string) --

      • (dict) --

        Specifies the content, including message variables and attributes, to use in a message that's sent directly to an endpoint.

        • BodyOverride (string) --

          The body of the message. If specified, this value overrides the default message body.

        • Context (dict) --

          A map of custom attributes to attach to the message for the address. For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.

          • (string) --

            • (string) --

        • RawContent (string) --

          The raw, JSON-formatted string to use as the payload for the message. If specified, this value overrides the message.

        • Substitutions (dict) --

          A map of the message variables to merge with the variables specified for the default message (DefaultMessage.Substitutions). The variables specified in this map take precedence over all other variables.

          • (string) --

            • (list) --

              • (string) --

        • TitleOverride (string) --

          The title or subject line of the message. If specified, this value overrides the default message title or subject line.

rtype

dict

returns

Response Syntax

{
    'SendUsersMessageResponse': {
        'ApplicationId': 'string',
        'RequestId': 'string',
        'Result': {
            'string': {
                'string': {
                    'Address': 'string',
                    'DeliveryStatus': 'SUCCESSFUL'|'THROTTLED'|'TEMPORARY_FAILURE'|'PERMANENT_FAILURE'|'UNKNOWN_FAILURE'|'OPT_OUT'|'DUPLICATE',
                    'MessageId': 'string',
                    'StatusCode': 123,
                    'StatusMessage': 'string',
                    'UpdatedToken': 'string'
                }
            }
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • SendUsersMessageResponse (dict) --

      Provides information about which users and endpoints a message was sent to.

      • ApplicationId (string) --

        The unique identifier for the application that was used to send the message.

      • RequestId (string) --

        The unique identifier that was assigned to the message request.

      • Result (dict) --

        An object that indicates which endpoints the message was sent to, for each user. The object lists user IDs and, for each user ID, provides the endpoint IDs that the message was sent to. For each endpoint ID, it provides an EndpointMessageResult object.

        • (string) --

          • (dict) --

            • (string) --

              • (dict) --

                Provides information about the delivery status and results of sending a message directly to an endpoint.

                • Address (string) --

                  The endpoint address that the message was delivered to.

                • DeliveryStatus (string) --

                  The delivery status of the message. Possible values are:

                  • DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to send the message again.

                  • OPT_OUT - The user who's associated with the endpoint has opted out of receiving messages from you. Amazon Pinpoint won't attempt to send the message again.

                  • PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.

                  • SUCCESSFUL - The message was successfully delivered to the endpoint.

                  • TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint will attempt to deliver the message again later.

                  • THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint.

                  • TIMEOUT - The message couldn't be sent within the timeout period.

                  • UNKNOWN_FAILURE - An unknown error occurred.

                • MessageId (string) --

                  The unique identifier for the message that was sent.

                • StatusCode (integer) --

                  The downstream service status code for delivering the message.

                • StatusMessage (string) --

                  The status message for delivering the message.

                • UpdatedToken (string) --

                  For push notifications that are sent through the GCM channel, specifies whether the endpoint's device registration token was updated as part of delivering the message.