Amazon Pinpoint

2021/02/15 - Amazon Pinpoint - 13 updated api methods

Changes  Lets customers use origination number when specifying SMS message configuration for Campaigns and Journeys.

CreateCampaign (updated) Link ΒΆ
Changes (request, response)
Request
{'WriteCampaignRequest': {'AdditionalTreatments': {'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}},
                          'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}}}
Response
{'CampaignResponse': {'AdditionalTreatments': {'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}},
                      'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}}}

Creates a new campaign for an application or updates the settings of an existing campaign for an application.

See also: AWS API Documentation

Request Syntax

client.create_campaign(
    ApplicationId='string',
    WriteCampaignRequest={
        'AdditionalTreatments': [
            {
                'CustomDeliveryConfiguration': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ]
                },
                'MessageConfiguration': {
                    'ADMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'APNSMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'BaiduMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'CustomMessage': {
                        'Data': 'string'
                    },
                    'DefaultMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'EmailMessage': {
                        'Body': 'string',
                        'FromAddress': 'string',
                        'HtmlBody': 'string',
                        'Title': 'string'
                    },
                    'GCMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'SMSMessage': {
                        'Body': 'string',
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    }
                },
                'Schedule': {
                    'EndTime': 'string',
                    'EventFilter': {
                        'Dimensions': {
                            'Attributes': {
                                'string': {
                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                    'Values': [
                                        'string',
                                    ]
                                }
                            },
                            'EventType': {
                                'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                'Values': [
                                    'string',
                                ]
                            },
                            'Metrics': {
                                'string': {
                                    'ComparisonOperator': 'string',
                                    'Value': 123.0
                                }
                            }
                        },
                        'FilterType': 'SYSTEM'|'ENDPOINT'
                    },
                    'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                    'IsLocalTime': True|False,
                    'QuietTime': {
                        'End': 'string',
                        'Start': 'string'
                    },
                    'StartTime': 'string',
                    'Timezone': 'string'
                },
                'SizePercent': 123,
                'TemplateConfiguration': {
                    'EmailTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'PushTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'SMSTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'VoiceTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    }
                },
                'TreatmentDescription': 'string',
                'TreatmentName': 'string'
            },
        ],
        'CustomDeliveryConfiguration': {
            'DeliveryUri': 'string',
            'EndpointTypes': [
                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
            ]
        },
        'Description': 'string',
        'HoldoutPercent': 123,
        'Hook': {
            'LambdaFunctionName': 'string',
            'Mode': 'DELIVERY'|'FILTER',
            'WebUrl': 'string'
        },
        'IsPaused': True|False,
        'Limits': {
            'Daily': 123,
            'MaximumDuration': 123,
            'MessagesPerSecond': 123,
            'Total': 123
        },
        'MessageConfiguration': {
            'ADMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'APNSMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'BaiduMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'CustomMessage': {
                'Data': 'string'
            },
            'DefaultMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'EmailMessage': {
                'Body': 'string',
                'FromAddress': 'string',
                'HtmlBody': 'string',
                'Title': 'string'
            },
            'GCMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'SMSMessage': {
                'Body': 'string',
                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                'OriginationNumber': 'string',
                'SenderId': 'string'
            }
        },
        'Name': 'string',
        'Schedule': {
            'EndTime': 'string',
            'EventFilter': {
                'Dimensions': {
                    'Attributes': {
                        'string': {
                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                            'Values': [
                                'string',
                            ]
                        }
                    },
                    'EventType': {
                        'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                        'Values': [
                            'string',
                        ]
                    },
                    'Metrics': {
                        'string': {
                            'ComparisonOperator': 'string',
                            'Value': 123.0
                        }
                    }
                },
                'FilterType': 'SYSTEM'|'ENDPOINT'
            },
            'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
            'IsLocalTime': True|False,
            'QuietTime': {
                'End': 'string',
                'Start': 'string'
            },
            'StartTime': 'string',
            'Timezone': 'string'
        },
        'SegmentId': 'string',
        'SegmentVersion': 123,
        'tags': {
            'string': 'string'
        },
        'TemplateConfiguration': {
            'EmailTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'PushTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'SMSTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'VoiceTemplate': {
                'Name': 'string',
                'Version': 'string'
            }
        },
        'TreatmentDescription': 'string',
        'TreatmentName': '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 WriteCampaignRequest

dict

param WriteCampaignRequest

[REQUIRED]

Specifies the configuration and other settings for a campaign.

  • AdditionalTreatments (list) --

    An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.

    • (dict) --

      Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

      • CustomDeliveryConfiguration (dict) --

        The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

        • DeliveryUri (string) -- [REQUIRED]

          The destination to send the campaign or treatment to. This value can be one of the following:

          • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

          • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

        • EndpointTypes (list) --

          The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

          • (string) --

      • MessageConfiguration (dict) --

        The message configuration settings for the treatment.

        • ADMMessage (dict) --

          The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • APNSMessage (dict) --

          The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • BaiduMessage (dict) --

          The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • CustomMessage (dict) --

          The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

          • Data (string) --

            The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

        • DefaultMessage (dict) --

          The default message that the campaign sends through all the channels that are configured for the campaign.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • EmailMessage (dict) --

          The message that the campaign sends through the email channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the email for recipients whose email clients don't render HTML content.

          • FromAddress (string) --

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

          • HtmlBody (string) --

            The body of the email, in HTML format, for recipients whose email clients render HTML content.

          • Title (string) --

            The subject line, or title, of the email.

        • GCMMessage (dict) --

          The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • SMSMessage (dict) --

          The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the SMS message.

          • MessageType (string) --

            The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

          • OriginationNumber (string) --

            The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

          • SenderId (string) --

            The sender ID to display on recipients' devices when they receive the SMS message.

      • Schedule (dict) --

        The schedule settings for the treatment.

        • EndTime (string) --

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

        • EventFilter (dict) --

          The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

          • Dimensions (dict) -- [REQUIRED]

            The dimension settings of the event filter for the campaign.

            • 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 have attributes matching the values are included in the segment.

                    • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                    • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                    • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                    • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                    • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                    • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

          • FilterType (string) -- [REQUIRED]

            The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

        • Frequency (string) --

          Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

        • IsLocalTime (boolean) --

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

        • QuietTime (dict) --

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

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

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

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

          If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

        • StartTime (string) -- [REQUIRED]

          The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

        • Timezone (string) --

          The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

      • SizePercent (integer) -- [REQUIRED]

        The allocated percentage of users (segment members) to send the treatment to.

      • TemplateConfiguration (dict) --

        The message template to use for the treatment.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • VoiceTemplate (dict) --

          The voice template to use for the message. This object isn't supported for campaigns.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

      • TreatmentDescription (string) --

        A custom description of the treatment.

      • TreatmentName (string) --

        A custom name for the treatment.

  • CustomDeliveryConfiguration (dict) --

    The delivery configuration settings for sending the campaign through a custom channel. This object is required if the MessageConfiguration object for the campaign specifies a CustomMessage object.

    • DeliveryUri (string) -- [REQUIRED]

      The destination to send the campaign or treatment to. This value can be one of the following:

      • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

      • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

    • EndpointTypes (list) --

      The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

      • (string) --

  • Description (string) --

    A custom description of the campaign.

  • HoldoutPercent (integer) --

    The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

  • Hook (dict) --

    The settings for the AWS Lambda function to invoke as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

    • LambdaFunctionName (string) --

      The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

    • Mode (string) --

      The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

      • FILTER - Invoke the function to customize the segment that's used by a campaign.

      • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

    • WebUrl (string) --

      The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

  • IsPaused (boolean) --

    Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by changing this value to false.

  • Limits (dict) --

    The messaging limits for the campaign.

    • Daily (integer) --

      The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.

    • MaximumDuration (integer) --

      The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.

    • MessagesPerSecond (integer) --

      The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

    • Total (integer) --

      The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.

  • MessageConfiguration (dict) --

    The message configuration settings for the campaign.

    • ADMMessage (dict) --

      The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • APNSMessage (dict) --

      The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • BaiduMessage (dict) --

      The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • CustomMessage (dict) --

      The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

      • Data (string) --

        The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

    • DefaultMessage (dict) --

      The default message that the campaign sends through all the channels that are configured for the campaign.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • EmailMessage (dict) --

      The message that the campaign sends through the email channel. If specified, this message overrides the default message.

      • Body (string) --

        The body of the email for recipients whose email clients don't render HTML content.

      • FromAddress (string) --

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

      • HtmlBody (string) --

        The body of the email, in HTML format, for recipients whose email clients render HTML content.

      • Title (string) --

        The subject line, or title, of the email.

    • GCMMessage (dict) --

      The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • SMSMessage (dict) --

      The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

      • Body (string) --

        The body of the SMS message.

      • MessageType (string) --

        The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

      • OriginationNumber (string) --

        The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

      • SenderId (string) --

        The sender ID to display on recipients' devices when they receive the SMS message.

  • Name (string) --

    A custom name for the campaign.

  • Schedule (dict) --

    The schedule settings for the campaign.

    • EndTime (string) --

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

    • EventFilter (dict) --

      The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

      • Dimensions (dict) -- [REQUIRED]

        The dimension settings of the event filter for the campaign.

        • 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 have attributes matching the values are included in the segment.

                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

      • FilterType (string) -- [REQUIRED]

        The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

    • Frequency (string) --

      Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

    • IsLocalTime (boolean) --

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

    • QuietTime (dict) --

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

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

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

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

      If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

    • StartTime (string) -- [REQUIRED]

      The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

    • Timezone (string) --

      The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

  • SegmentId (string) --

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

  • SegmentVersion (integer) --

    The version of the segment to associate with the campaign.

  • tags (dict) --

    A string-to-string map of key-value pairs that defines the tags to associate with the campaign. Each tag consists of a required tag key and an associated tag value.

    • (string) --

      • (string) --

  • TemplateConfiguration (dict) --

    The message template to use for the campaign.

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

      • Version (string) --

        The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

        If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

      • Version (string) --

        The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

        If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

      • Version (string) --

        The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

        If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

    • VoiceTemplate (dict) --

      The voice template to use for the message. This object isn't supported for campaigns.

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

      • Version (string) --

        The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

        If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

  • TreatmentDescription (string) --

    A custom description of the default treatment for the campaign.

  • TreatmentName (string) --

    A custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

rtype

dict

returns

Response Syntax

{
    'CampaignResponse': {
        'AdditionalTreatments': [
            {
                'CustomDeliveryConfiguration': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ]
                },
                'Id': 'string',
                'MessageConfiguration': {
                    'ADMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'APNSMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'BaiduMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'CustomMessage': {
                        'Data': 'string'
                    },
                    'DefaultMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'EmailMessage': {
                        'Body': 'string',
                        'FromAddress': 'string',
                        'HtmlBody': 'string',
                        'Title': 'string'
                    },
                    'GCMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'SMSMessage': {
                        'Body': 'string',
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    }
                },
                'Schedule': {
                    'EndTime': 'string',
                    'EventFilter': {
                        'Dimensions': {
                            'Attributes': {
                                'string': {
                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                    'Values': [
                                        'string',
                                    ]
                                }
                            },
                            'EventType': {
                                'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                'Values': [
                                    'string',
                                ]
                            },
                            'Metrics': {
                                'string': {
                                    'ComparisonOperator': 'string',
                                    'Value': 123.0
                                }
                            }
                        },
                        'FilterType': 'SYSTEM'|'ENDPOINT'
                    },
                    'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                    'IsLocalTime': True|False,
                    'QuietTime': {
                        'End': 'string',
                        'Start': 'string'
                    },
                    'StartTime': 'string',
                    'Timezone': 'string'
                },
                'SizePercent': 123,
                'State': {
                    'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                },
                'TemplateConfiguration': {
                    'EmailTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'PushTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'SMSTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'VoiceTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    }
                },
                'TreatmentDescription': 'string',
                'TreatmentName': 'string'
            },
        ],
        'ApplicationId': 'string',
        'Arn': 'string',
        'CreationDate': 'string',
        'CustomDeliveryConfiguration': {
            'DeliveryUri': 'string',
            'EndpointTypes': [
                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
            ]
        },
        'DefaultState': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'Description': 'string',
        'HoldoutPercent': 123,
        'Hook': {
            'LambdaFunctionName': 'string',
            'Mode': 'DELIVERY'|'FILTER',
            'WebUrl': 'string'
        },
        'Id': 'string',
        'IsPaused': True|False,
        'LastModifiedDate': 'string',
        'Limits': {
            'Daily': 123,
            'MaximumDuration': 123,
            'MessagesPerSecond': 123,
            'Total': 123
        },
        'MessageConfiguration': {
            'ADMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'APNSMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'BaiduMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'CustomMessage': {
                'Data': 'string'
            },
            'DefaultMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'EmailMessage': {
                'Body': 'string',
                'FromAddress': 'string',
                'HtmlBody': 'string',
                'Title': 'string'
            },
            'GCMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'SMSMessage': {
                'Body': 'string',
                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                'OriginationNumber': 'string',
                'SenderId': 'string'
            }
        },
        'Name': 'string',
        'Schedule': {
            'EndTime': 'string',
            'EventFilter': {
                'Dimensions': {
                    'Attributes': {
                        'string': {
                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                            'Values': [
                                'string',
                            ]
                        }
                    },
                    'EventType': {
                        'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                        'Values': [
                            'string',
                        ]
                    },
                    'Metrics': {
                        'string': {
                            'ComparisonOperator': 'string',
                            'Value': 123.0
                        }
                    }
                },
                'FilterType': 'SYSTEM'|'ENDPOINT'
            },
            'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
            'IsLocalTime': True|False,
            'QuietTime': {
                'End': 'string',
                'Start': 'string'
            },
            'StartTime': 'string',
            'Timezone': 'string'
        },
        'SegmentId': 'string',
        'SegmentVersion': 123,
        'State': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'tags': {
            'string': 'string'
        },
        'TemplateConfiguration': {
            'EmailTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'PushTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'SMSTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'VoiceTemplate': {
                'Name': 'string',
                'Version': 'string'
            }
        },
        'TreatmentDescription': 'string',
        'TreatmentName': 'string',
        'Version': 123
    }
}

Response Structure

  • (dict) --

    The request succeeded and the specified resource was created.

    • CampaignResponse (dict) --

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

      • AdditionalTreatments (list) --

        An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

        • (dict) --

          Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

          • CustomDeliveryConfiguration (dict) --

            The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

            • DeliveryUri (string) --

              The destination to send the campaign or treatment to. This value can be one of the following:

              • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

              • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

            • EndpointTypes (list) --

              The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

              • (string) --

          • Id (string) --

            The unique identifier for the treatment.

          • MessageConfiguration (dict) --

            The message configuration settings for the treatment.

            • ADMMessage (dict) --

              The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • APNSMessage (dict) --

              The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • BaiduMessage (dict) --

              The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • CustomMessage (dict) --

              The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

              • Data (string) --

                The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

            • DefaultMessage (dict) --

              The default message that the campaign sends through all the channels that are configured for the campaign.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • EmailMessage (dict) --

              The message that the campaign sends through the email channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the email for recipients whose email clients don't render HTML content.

              • FromAddress (string) --

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

              • HtmlBody (string) --

                The body of the email, in HTML format, for recipients whose email clients render HTML content.

              • Title (string) --

                The subject line, or title, of the email.

            • GCMMessage (dict) --

              The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • SMSMessage (dict) --

              The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the SMS message.

              • MessageType (string) --

                The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

              • OriginationNumber (string) --

                The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

              • SenderId (string) --

                The sender ID to display on recipients' devices when they receive the SMS message.

          • Schedule (dict) --

            The schedule settings for the treatment.

            • EndTime (string) --

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

            • EventFilter (dict) --

              The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

              • Dimensions (dict) --

                The dimension settings of the event filter for the campaign.

                • 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 have attributes matching the values are included in the segment.

                        • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                        • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                        • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                        • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                        • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                        • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

              • FilterType (string) --

                The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

            • Frequency (string) --

              Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

            • IsLocalTime (boolean) --

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

            • QuietTime (dict) --

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

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

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

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

              If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

            • StartTime (string) --

              The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

            • Timezone (string) --

              The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

          • SizePercent (integer) --

            The allocated percentage of users (segment members) that the treatment is sent to.

          • State (dict) --

            The current status of the treatment.

            • CampaignStatus (string) --

              The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

              If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

          • TemplateConfiguration (dict) --

            The message template to use for the treatment.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • VoiceTemplate (dict) --

              The voice template to use for the message. This object isn't supported for campaigns.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

          • TreatmentDescription (string) --

            The custom description of the treatment.

          • TreatmentName (string) --

            The custom name of the treatment.

      • ApplicationId (string) --

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

      • Arn (string) --

        The Amazon Resource Name (ARN) of the campaign.

      • CreationDate (string) --

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

      • CustomDeliveryConfiguration (dict) --

        The delivery configuration settings for sending the campaign through a custom channel.

        • DeliveryUri (string) --

          The destination to send the campaign or treatment to. This value can be one of the following:

          • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

          • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

        • EndpointTypes (list) --

          The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

          • (string) --

      • DefaultState (dict) --

        The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • Description (string) --

        The custom description of the campaign.

      • HoldoutPercent (integer) --

        The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

      • Hook (dict) --

        The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

        • LambdaFunctionName (string) --

          The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

        • Mode (string) --

          The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

          • FILTER - Invoke the function to customize the segment that's used by a campaign.

          • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

        • WebUrl (string) --

          The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

      • Id (string) --

        The unique identifier for the campaign.

      • IsPaused (boolean) --

        Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

      • LastModifiedDate (string) --

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

      • Limits (dict) --

        The messaging limits for the campaign.

        • Daily (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.

        • MaximumDuration (integer) --

          The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.

        • MessagesPerSecond (integer) --

          The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

        • Total (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.

      • MessageConfiguration (dict) --

        The message configuration settings for the campaign.

        • ADMMessage (dict) --

          The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • APNSMessage (dict) --

          The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • BaiduMessage (dict) --

          The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • CustomMessage (dict) --

          The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

          • Data (string) --

            The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

        • DefaultMessage (dict) --

          The default message that the campaign sends through all the channels that are configured for the campaign.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • EmailMessage (dict) --

          The message that the campaign sends through the email channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the email for recipients whose email clients don't render HTML content.

          • FromAddress (string) --

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

          • HtmlBody (string) --

            The body of the email, in HTML format, for recipients whose email clients render HTML content.

          • Title (string) --

            The subject line, or title, of the email.

        • GCMMessage (dict) --

          The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • SMSMessage (dict) --

          The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the SMS message.

          • MessageType (string) --

            The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

          • OriginationNumber (string) --

            The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

          • SenderId (string) --

            The sender ID to display on recipients' devices when they receive the SMS message.

      • Name (string) --

        The name of the campaign.

      • Schedule (dict) --

        The schedule settings for the campaign.

        • EndTime (string) --

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

        • EventFilter (dict) --

          The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

          • Dimensions (dict) --

            The dimension settings of the event filter for the campaign.

            • 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 have attributes matching the values are included in the segment.

                    • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                    • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                    • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                    • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                    • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                    • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

          • FilterType (string) --

            The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

        • Frequency (string) --

          Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

        • IsLocalTime (boolean) --

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

        • QuietTime (dict) --

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

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

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

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

          If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

        • StartTime (string) --

          The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

        • Timezone (string) --

          The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

      • SegmentId (string) --

        The unique identifier for the segment that's associated with the campaign.

      • SegmentVersion (integer) --

        The version number of the segment that's associated with the campaign.

      • State (dict) --

        The current status of the campaign.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • tags (dict) --

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

        • (string) --

          • (string) --

      • TemplateConfiguration (dict) --

        The message template that’s used for the campaign.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • VoiceTemplate (dict) --

          The voice template to use for the message. This object isn't supported for campaigns.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

      • TreatmentDescription (string) --

        The custom description of the default treatment for the campaign.

      • TreatmentName (string) --

        The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

      • Version (integer) --

        The version number of the campaign.

CreateJourney (updated) Link ΒΆ
Changes (request, response)
Request
{'WriteJourneyRequest': {'Activities': {'SMS': {'MessageConfig': {'OriginationNumber': 'string'}}}}}
Response
{'JourneyResponse': {'Activities': {'SMS': {'MessageConfig': {'OriginationNumber': 'string'}}}}}

Creates a journey for an application.

See also: AWS API Documentation

Request Syntax

client.create_journey(
    ApplicationId='string',
    WriteJourneyRequest={
        'Activities': {
            'string': {
                'CUSTOM': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ],
                    'MessageConfig': {
                        'Data': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'PUSH': {
                    'MessageConfig': {
                        'TimeToLive': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'SMS': {
                    'MessageConfig': {
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                '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',
            'EventStartCondition': {
                'EventFilter': {
                    'Dimensions': {
                        'Attributes': {
                            'string': {
                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                'Values': [
                                    'string',
                                ]
                            }
                        },
                        'EventType': {
                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                            'Values': [
                                'string',
                            ]
                        },
                        'Metrics': {
                            'string': {
                                'ComparisonOperator': 'string',
                                'Value': 123.0
                            }
                        }
                    },
                    'FilterType': 'SYSTEM'|'ENDPOINT'
                },
                'SegmentId': '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) --

    A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity. An activity identifier can contain a maximum of 100 characters. The characters must be alphanumeric characters.

    • (string) --

      • (dict) --

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

        • CUSTOM (dict) --

          The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.

          • DeliveryUri (string) --

            The destination to send the campaign or treatment to. This value can be one of the following:

            • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

            • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

          • EndpointTypes (list) --

            The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

            • (string) --

          • MessageConfig (dict) --

            Specifies the message data included in a custom channel message that's sent to participants in a journey.

            • Data (string) --

              The message content that's passed to an AWS Lambda function or to a web hook.

          • NextActivity (string) --

            The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.

          • TemplateName (string) --

            The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.

          • TemplateVersion (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • 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 have attributes matching the values are included in the segment.

                            • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                            • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                            • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                            • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                            • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                            • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                      • 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 have attributes matching the values are included in the segment.

                          • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                          • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                          • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                          • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                          • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                          • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                          • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                          • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                          • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                          • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                          • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                          • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 to wait, as a duration in ISO 8601 format, 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 conditions aren't met.

          • TrueActivity (string) --

            The unique identifier for the activity to perform if the conditions are 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) --

            Specifies the sender address for an email message that's sent to participants in the journey.

            • 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 message template to use for the message. If specified, this value must match the name of an existing message template.

          • TemplateVersion (string) --

            The unique identifier for the version of the email template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

            To determine which participants are held out, Amazon Pinpoint applies a probability-based algorithm to the percentage that you specify. Therefore, the actual percentage of participants who are held out may not be equal to the percentage that you specify.

        • MultiCondition (dict) --

          The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) 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 have attributes matching the values are included in the segment.

                            • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                            • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                            • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                            • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                            • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                            • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                      • 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 have attributes matching the values are included in the segment.

                          • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                          • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                          • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                          • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                          • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                          • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                          • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                          • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                          • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                          • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                          • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                          • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 unique identifier for the activity to perform for participants who don't meet any of the conditions specified for other paths 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 to wait, as a duration in ISO 8601 format, 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.

        • PUSH (dict) --

          The settings for a push notification activity. This type of activity sends a push notification to participants.

          • MessageConfig (dict) --

            Specifies the time to live (TTL) value for push notifications that are sent to participants in a journey.

            • TimeToLive (string) --

              The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

              This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • NextActivity (string) --

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

          • TemplateName (string) --

            The name of the push notification template to use for the message. If specified, this value must match the name of an existing message template.

          • TemplateVersion (string) --

            The unique identifier for the version of the push notification template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                To determine which participants are sent down each path, Amazon Pinpoint applies a probability-based algorithm to the percentages that you specify for the paths. Therefore, the actual percentage of participants who are sent down a path may not be equal to the percentage that you specify.

        • SMS (dict) --

          The settings for an SMS activity. This type of activity sends a text message to participants.

          • MessageConfig (dict) --

            Specifies the sender ID and message type for an SMS message that's sent to participants in a journey.

            • MessageType (string) --

              The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

            • OriginationNumber (string) --

              The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

            • 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. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.

          • NextActivity (string) --

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

          • TemplateName (string) --

            The name of the SMS message template to use for the message. If specified, this value must match the name of an existing message template.

          • TemplateVersion (string) --

            The unique identifier for the version of the SMS template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • 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 to wait, as a duration in ISO 8601 format, 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. The identifier for this activity can contain a maximum of 128 characters. The characters must be alphanumeric characters.

  • StartCondition (dict) --

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

    • Description (string) --

      The custom description of the condition.

    • EventStartCondition (dict) --

      Specifies the settings for an event that causes a journey activity to start.

      • EventFilter (dict) --

        Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.

        • Dimensions (dict) -- [REQUIRED]

          The dimensions for the event filter to use for the campaign or the journey 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 have attributes matching the values are included in the segment.

                  • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                  • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                  • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                  • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                  • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                  • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

        • FilterType (string) -- [REQUIRED]

          The type of event that causes the campaign to be sent or the journey activity to be performed. Valid values are: SYSTEM, sends the campaign or performs the activity when a system event occurs; and, ENDPOINT, sends the campaign or performs the activity when an endpoint event (Events resource) occurs.

      • SegmentId (string) --

    • 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': {
                'CUSTOM': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ],
                    'MessageConfig': {
                        'Data': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'PUSH': {
                    'MessageConfig': {
                        'TimeToLive': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'SMS': {
                    'MessageConfig': {
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                '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',
            'EventStartCondition': {
                'EventFilter': {
                    'Dimensions': {
                        'Attributes': {
                            'string': {
                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                'Values': [
                                    'string',
                                ]
                            }
                        },
                        'EventType': {
                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                            'Values': [
                                'string',
                            ]
                        },
                        'Metrics': {
                            'string': {
                                'ComparisonOperator': 'string',
                                'Value': 123.0
                            }
                        }
                    },
                    'FilterType': 'SYSTEM'|'ENDPOINT'
                },
                'SegmentId': '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) --

        A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

        • (string) --

          • (dict) --

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

            • CUSTOM (dict) --

              The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.

              • DeliveryUri (string) --

                The destination to send the campaign or treatment to. This value can be one of the following:

                • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

                • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

              • EndpointTypes (list) --

                The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

                • (string) --

              • MessageConfig (dict) --

                Specifies the message data included in a custom channel message that's sent to participants in a journey.

                • Data (string) --

                  The message content that's passed to an AWS Lambda function or to a web hook.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.

              • TemplateName (string) --

                The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 to wait, as a duration in ISO 8601 format, 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 conditions aren't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the conditions are 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) --

                Specifies the sender address for an email message that's sent to participants in the journey.

                • 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 message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the email template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                To determine which participants are held out, Amazon Pinpoint applies a probability-based algorithm to the percentage that you specify. Therefore, the actual percentage of participants who are held out may not be equal to the percentage that you specify.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 unique identifier for the activity to perform for participants who don't meet any of the conditions specified for other paths 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 to wait, as a duration in ISO 8601 format, 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.

            • PUSH (dict) --

              The settings for a push notification activity. This type of activity sends a push notification to participants.

              • MessageConfig (dict) --

                Specifies the time to live (TTL) value for push notifications that are sent to participants in a journey.

                • TimeToLive (string) --

                  The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                  This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the push notification template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the push notification template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                    To determine which participants are sent down each path, Amazon Pinpoint applies a probability-based algorithm to the percentages that you specify for the paths. Therefore, the actual percentage of participants who are sent down a path may not be equal to the percentage that you specify.

            • SMS (dict) --

              The settings for an SMS activity. This type of activity sends a text message to participants.

              • MessageConfig (dict) --

                Specifies the sender ID and message type for an SMS message that's sent to participants in a journey.

                • MessageType (string) --

                  The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

                • OriginationNumber (string) --

                  The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

                • 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. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the SMS message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the SMS template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 to wait, as a duration in ISO 8601 format, 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.

        • EventStartCondition (dict) --

          Specifies the settings for an event that causes a journey activity to start.

          • EventFilter (dict) --

            Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.

            • Dimensions (dict) --

              The dimensions for the event filter to use for the campaign or the journey 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 have attributes matching the values are included in the segment.

                      • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                      • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                      • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                      • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                      • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                      • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

            • FilterType (string) --

              The type of event that causes the campaign to be sent or the journey activity to be performed. Valid values are: SYSTEM, sends the campaign or performs the activity when a system event occurs; and, ENDPOINT, sends the campaign or performs the activity when an endpoint event (Events resource) occurs.

          • SegmentId (string) --

        • 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 continue the journey.

      • tags (dict) --

        This object is not used or supported.

        • (string) --

          • (string) --

DeleteCampaign (updated) Link ΒΆ
Changes (response)
{'CampaignResponse': {'AdditionalTreatments': {'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}},
                      'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}}}

Deletes a campaign from an application.

See also: AWS API Documentation

Request Syntax

client.delete_campaign(
    ApplicationId='string',
    CampaignId='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 CampaignId

string

param CampaignId

[REQUIRED]

The unique identifier for the campaign.

rtype

dict

returns

Response Syntax

{
    'CampaignResponse': {
        'AdditionalTreatments': [
            {
                'CustomDeliveryConfiguration': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ]
                },
                'Id': 'string',
                'MessageConfiguration': {
                    'ADMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'APNSMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'BaiduMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'CustomMessage': {
                        'Data': 'string'
                    },
                    'DefaultMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'EmailMessage': {
                        'Body': 'string',
                        'FromAddress': 'string',
                        'HtmlBody': 'string',
                        'Title': 'string'
                    },
                    'GCMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'SMSMessage': {
                        'Body': 'string',
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    }
                },
                'Schedule': {
                    'EndTime': 'string',
                    'EventFilter': {
                        'Dimensions': {
                            'Attributes': {
                                'string': {
                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                    'Values': [
                                        'string',
                                    ]
                                }
                            },
                            'EventType': {
                                'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                'Values': [
                                    'string',
                                ]
                            },
                            'Metrics': {
                                'string': {
                                    'ComparisonOperator': 'string',
                                    'Value': 123.0
                                }
                            }
                        },
                        'FilterType': 'SYSTEM'|'ENDPOINT'
                    },
                    'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                    'IsLocalTime': True|False,
                    'QuietTime': {
                        'End': 'string',
                        'Start': 'string'
                    },
                    'StartTime': 'string',
                    'Timezone': 'string'
                },
                'SizePercent': 123,
                'State': {
                    'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                },
                'TemplateConfiguration': {
                    'EmailTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'PushTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'SMSTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'VoiceTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    }
                },
                'TreatmentDescription': 'string',
                'TreatmentName': 'string'
            },
        ],
        'ApplicationId': 'string',
        'Arn': 'string',
        'CreationDate': 'string',
        'CustomDeliveryConfiguration': {
            'DeliveryUri': 'string',
            'EndpointTypes': [
                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
            ]
        },
        'DefaultState': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'Description': 'string',
        'HoldoutPercent': 123,
        'Hook': {
            'LambdaFunctionName': 'string',
            'Mode': 'DELIVERY'|'FILTER',
            'WebUrl': 'string'
        },
        'Id': 'string',
        'IsPaused': True|False,
        'LastModifiedDate': 'string',
        'Limits': {
            'Daily': 123,
            'MaximumDuration': 123,
            'MessagesPerSecond': 123,
            'Total': 123
        },
        'MessageConfiguration': {
            'ADMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'APNSMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'BaiduMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'CustomMessage': {
                'Data': 'string'
            },
            'DefaultMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'EmailMessage': {
                'Body': 'string',
                'FromAddress': 'string',
                'HtmlBody': 'string',
                'Title': 'string'
            },
            'GCMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'SMSMessage': {
                'Body': 'string',
                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                'OriginationNumber': 'string',
                'SenderId': 'string'
            }
        },
        'Name': 'string',
        'Schedule': {
            'EndTime': 'string',
            'EventFilter': {
                'Dimensions': {
                    'Attributes': {
                        'string': {
                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                            'Values': [
                                'string',
                            ]
                        }
                    },
                    'EventType': {
                        'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                        'Values': [
                            'string',
                        ]
                    },
                    'Metrics': {
                        'string': {
                            'ComparisonOperator': 'string',
                            'Value': 123.0
                        }
                    }
                },
                'FilterType': 'SYSTEM'|'ENDPOINT'
            },
            'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
            'IsLocalTime': True|False,
            'QuietTime': {
                'End': 'string',
                'Start': 'string'
            },
            'StartTime': 'string',
            'Timezone': 'string'
        },
        'SegmentId': 'string',
        'SegmentVersion': 123,
        'State': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'tags': {
            'string': 'string'
        },
        'TemplateConfiguration': {
            'EmailTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'PushTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'SMSTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'VoiceTemplate': {
                'Name': 'string',
                'Version': 'string'
            }
        },
        'TreatmentDescription': 'string',
        'TreatmentName': 'string',
        'Version': 123
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • CampaignResponse (dict) --

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

      • AdditionalTreatments (list) --

        An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

        • (dict) --

          Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

          • CustomDeliveryConfiguration (dict) --

            The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

            • DeliveryUri (string) --

              The destination to send the campaign or treatment to. This value can be one of the following:

              • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

              • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

            • EndpointTypes (list) --

              The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

              • (string) --

          • Id (string) --

            The unique identifier for the treatment.

          • MessageConfiguration (dict) --

            The message configuration settings for the treatment.

            • ADMMessage (dict) --

              The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • APNSMessage (dict) --

              The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • BaiduMessage (dict) --

              The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • CustomMessage (dict) --

              The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

              • Data (string) --

                The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

            • DefaultMessage (dict) --

              The default message that the campaign sends through all the channels that are configured for the campaign.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • EmailMessage (dict) --

              The message that the campaign sends through the email channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the email for recipients whose email clients don't render HTML content.

              • FromAddress (string) --

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

              • HtmlBody (string) --

                The body of the email, in HTML format, for recipients whose email clients render HTML content.

              • Title (string) --

                The subject line, or title, of the email.

            • GCMMessage (dict) --

              The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • SMSMessage (dict) --

              The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the SMS message.

              • MessageType (string) --

                The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

              • OriginationNumber (string) --

                The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

              • SenderId (string) --

                The sender ID to display on recipients' devices when they receive the SMS message.

          • Schedule (dict) --

            The schedule settings for the treatment.

            • EndTime (string) --

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

            • EventFilter (dict) --

              The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

              • Dimensions (dict) --

                The dimension settings of the event filter for the campaign.

                • 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 have attributes matching the values are included in the segment.

                        • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                        • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                        • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                        • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                        • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                        • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

              • FilterType (string) --

                The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

            • Frequency (string) --

              Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

            • IsLocalTime (boolean) --

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

            • QuietTime (dict) --

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

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

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

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

              If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

            • StartTime (string) --

              The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

            • Timezone (string) --

              The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

          • SizePercent (integer) --

            The allocated percentage of users (segment members) that the treatment is sent to.

          • State (dict) --

            The current status of the treatment.

            • CampaignStatus (string) --

              The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

              If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

          • TemplateConfiguration (dict) --

            The message template to use for the treatment.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • VoiceTemplate (dict) --

              The voice template to use for the message. This object isn't supported for campaigns.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

          • TreatmentDescription (string) --

            The custom description of the treatment.

          • TreatmentName (string) --

            The custom name of the treatment.

      • ApplicationId (string) --

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

      • Arn (string) --

        The Amazon Resource Name (ARN) of the campaign.

      • CreationDate (string) --

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

      • CustomDeliveryConfiguration (dict) --

        The delivery configuration settings for sending the campaign through a custom channel.

        • DeliveryUri (string) --

          The destination to send the campaign or treatment to. This value can be one of the following:

          • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

          • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

        • EndpointTypes (list) --

          The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

          • (string) --

      • DefaultState (dict) --

        The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • Description (string) --

        The custom description of the campaign.

      • HoldoutPercent (integer) --

        The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

      • Hook (dict) --

        The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

        • LambdaFunctionName (string) --

          The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

        • Mode (string) --

          The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

          • FILTER - Invoke the function to customize the segment that's used by a campaign.

          • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

        • WebUrl (string) --

          The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

      • Id (string) --

        The unique identifier for the campaign.

      • IsPaused (boolean) --

        Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

      • LastModifiedDate (string) --

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

      • Limits (dict) --

        The messaging limits for the campaign.

        • Daily (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.

        • MaximumDuration (integer) --

          The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.

        • MessagesPerSecond (integer) --

          The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

        • Total (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.

      • MessageConfiguration (dict) --

        The message configuration settings for the campaign.

        • ADMMessage (dict) --

          The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • APNSMessage (dict) --

          The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • BaiduMessage (dict) --

          The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • CustomMessage (dict) --

          The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

          • Data (string) --

            The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

        • DefaultMessage (dict) --

          The default message that the campaign sends through all the channels that are configured for the campaign.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • EmailMessage (dict) --

          The message that the campaign sends through the email channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the email for recipients whose email clients don't render HTML content.

          • FromAddress (string) --

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

          • HtmlBody (string) --

            The body of the email, in HTML format, for recipients whose email clients render HTML content.

          • Title (string) --

            The subject line, or title, of the email.

        • GCMMessage (dict) --

          The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • SMSMessage (dict) --

          The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the SMS message.

          • MessageType (string) --

            The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

          • OriginationNumber (string) --

            The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

          • SenderId (string) --

            The sender ID to display on recipients' devices when they receive the SMS message.

      • Name (string) --

        The name of the campaign.

      • Schedule (dict) --

        The schedule settings for the campaign.

        • EndTime (string) --

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

        • EventFilter (dict) --

          The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

          • Dimensions (dict) --

            The dimension settings of the event filter for the campaign.

            • 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 have attributes matching the values are included in the segment.

                    • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                    • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                    • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                    • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                    • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                    • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

          • FilterType (string) --

            The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

        • Frequency (string) --

          Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

        • IsLocalTime (boolean) --

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

        • QuietTime (dict) --

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

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

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

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

          If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

        • StartTime (string) --

          The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

        • Timezone (string) --

          The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

      • SegmentId (string) --

        The unique identifier for the segment that's associated with the campaign.

      • SegmentVersion (integer) --

        The version number of the segment that's associated with the campaign.

      • State (dict) --

        The current status of the campaign.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • tags (dict) --

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

        • (string) --

          • (string) --

      • TemplateConfiguration (dict) --

        The message template that’s used for the campaign.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • VoiceTemplate (dict) --

          The voice template to use for the message. This object isn't supported for campaigns.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

      • TreatmentDescription (string) --

        The custom description of the default treatment for the campaign.

      • TreatmentName (string) --

        The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

      • Version (integer) --

        The version number of the campaign.

DeleteJourney (updated) Link ΒΆ
Changes (response)
{'JourneyResponse': {'Activities': {'SMS': {'MessageConfig': {'OriginationNumber': 'string'}}}}}

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': {
                'CUSTOM': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ],
                    'MessageConfig': {
                        'Data': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'PUSH': {
                    'MessageConfig': {
                        'TimeToLive': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'SMS': {
                    'MessageConfig': {
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                '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',
            'EventStartCondition': {
                'EventFilter': {
                    'Dimensions': {
                        'Attributes': {
                            'string': {
                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                'Values': [
                                    'string',
                                ]
                            }
                        },
                        'EventType': {
                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                            'Values': [
                                'string',
                            ]
                        },
                        'Metrics': {
                            'string': {
                                'ComparisonOperator': 'string',
                                'Value': 123.0
                            }
                        }
                    },
                    'FilterType': 'SYSTEM'|'ENDPOINT'
                },
                'SegmentId': '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) --

        A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

        • (string) --

          • (dict) --

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

            • CUSTOM (dict) --

              The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.

              • DeliveryUri (string) --

                The destination to send the campaign or treatment to. This value can be one of the following:

                • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

                • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

              • EndpointTypes (list) --

                The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

                • (string) --

              • MessageConfig (dict) --

                Specifies the message data included in a custom channel message that's sent to participants in a journey.

                • Data (string) --

                  The message content that's passed to an AWS Lambda function or to a web hook.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.

              • TemplateName (string) --

                The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 to wait, as a duration in ISO 8601 format, 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 conditions aren't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the conditions are 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) --

                Specifies the sender address for an email message that's sent to participants in the journey.

                • 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 message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the email template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                To determine which participants are held out, Amazon Pinpoint applies a probability-based algorithm to the percentage that you specify. Therefore, the actual percentage of participants who are held out may not be equal to the percentage that you specify.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 unique identifier for the activity to perform for participants who don't meet any of the conditions specified for other paths 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 to wait, as a duration in ISO 8601 format, 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.

            • PUSH (dict) --

              The settings for a push notification activity. This type of activity sends a push notification to participants.

              • MessageConfig (dict) --

                Specifies the time to live (TTL) value for push notifications that are sent to participants in a journey.

                • TimeToLive (string) --

                  The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                  This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the push notification template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the push notification template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                    To determine which participants are sent down each path, Amazon Pinpoint applies a probability-based algorithm to the percentages that you specify for the paths. Therefore, the actual percentage of participants who are sent down a path may not be equal to the percentage that you specify.

            • SMS (dict) --

              The settings for an SMS activity. This type of activity sends a text message to participants.

              • MessageConfig (dict) --

                Specifies the sender ID and message type for an SMS message that's sent to participants in a journey.

                • MessageType (string) --

                  The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

                • OriginationNumber (string) --

                  The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

                • 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. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the SMS message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the SMS template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 to wait, as a duration in ISO 8601 format, 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.

        • EventStartCondition (dict) --

          Specifies the settings for an event that causes a journey activity to start.

          • EventFilter (dict) --

            Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.

            • Dimensions (dict) --

              The dimensions for the event filter to use for the campaign or the journey 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 have attributes matching the values are included in the segment.

                      • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                      • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                      • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                      • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                      • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                      • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

            • FilterType (string) --

              The type of event that causes the campaign to be sent or the journey activity to be performed. Valid values are: SYSTEM, sends the campaign or performs the activity when a system event occurs; and, ENDPOINT, sends the campaign or performs the activity when an endpoint event (Events resource) occurs.

          • SegmentId (string) --

        • 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 continue the journey.

      • tags (dict) --

        This object is not used or supported.

        • (string) --

          • (string) --

GetCampaign (updated) Link ΒΆ
Changes (response)
{'CampaignResponse': {'AdditionalTreatments': {'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}},
                      'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}}}

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

See also: AWS API Documentation

Request Syntax

client.get_campaign(
    ApplicationId='string',
    CampaignId='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 CampaignId

string

param CampaignId

[REQUIRED]

The unique identifier for the campaign.

rtype

dict

returns

Response Syntax

{
    'CampaignResponse': {
        'AdditionalTreatments': [
            {
                'CustomDeliveryConfiguration': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ]
                },
                'Id': 'string',
                'MessageConfiguration': {
                    'ADMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'APNSMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'BaiduMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'CustomMessage': {
                        'Data': 'string'
                    },
                    'DefaultMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'EmailMessage': {
                        'Body': 'string',
                        'FromAddress': 'string',
                        'HtmlBody': 'string',
                        'Title': 'string'
                    },
                    'GCMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'SMSMessage': {
                        'Body': 'string',
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    }
                },
                'Schedule': {
                    'EndTime': 'string',
                    'EventFilter': {
                        'Dimensions': {
                            'Attributes': {
                                'string': {
                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                    'Values': [
                                        'string',
                                    ]
                                }
                            },
                            'EventType': {
                                'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                'Values': [
                                    'string',
                                ]
                            },
                            'Metrics': {
                                'string': {
                                    'ComparisonOperator': 'string',
                                    'Value': 123.0
                                }
                            }
                        },
                        'FilterType': 'SYSTEM'|'ENDPOINT'
                    },
                    'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                    'IsLocalTime': True|False,
                    'QuietTime': {
                        'End': 'string',
                        'Start': 'string'
                    },
                    'StartTime': 'string',
                    'Timezone': 'string'
                },
                'SizePercent': 123,
                'State': {
                    'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                },
                'TemplateConfiguration': {
                    'EmailTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'PushTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'SMSTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'VoiceTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    }
                },
                'TreatmentDescription': 'string',
                'TreatmentName': 'string'
            },
        ],
        'ApplicationId': 'string',
        'Arn': 'string',
        'CreationDate': 'string',
        'CustomDeliveryConfiguration': {
            'DeliveryUri': 'string',
            'EndpointTypes': [
                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
            ]
        },
        'DefaultState': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'Description': 'string',
        'HoldoutPercent': 123,
        'Hook': {
            'LambdaFunctionName': 'string',
            'Mode': 'DELIVERY'|'FILTER',
            'WebUrl': 'string'
        },
        'Id': 'string',
        'IsPaused': True|False,
        'LastModifiedDate': 'string',
        'Limits': {
            'Daily': 123,
            'MaximumDuration': 123,
            'MessagesPerSecond': 123,
            'Total': 123
        },
        'MessageConfiguration': {
            'ADMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'APNSMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'BaiduMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'CustomMessage': {
                'Data': 'string'
            },
            'DefaultMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'EmailMessage': {
                'Body': 'string',
                'FromAddress': 'string',
                'HtmlBody': 'string',
                'Title': 'string'
            },
            'GCMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'SMSMessage': {
                'Body': 'string',
                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                'OriginationNumber': 'string',
                'SenderId': 'string'
            }
        },
        'Name': 'string',
        'Schedule': {
            'EndTime': 'string',
            'EventFilter': {
                'Dimensions': {
                    'Attributes': {
                        'string': {
                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                            'Values': [
                                'string',
                            ]
                        }
                    },
                    'EventType': {
                        'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                        'Values': [
                            'string',
                        ]
                    },
                    'Metrics': {
                        'string': {
                            'ComparisonOperator': 'string',
                            'Value': 123.0
                        }
                    }
                },
                'FilterType': 'SYSTEM'|'ENDPOINT'
            },
            'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
            'IsLocalTime': True|False,
            'QuietTime': {
                'End': 'string',
                'Start': 'string'
            },
            'StartTime': 'string',
            'Timezone': 'string'
        },
        'SegmentId': 'string',
        'SegmentVersion': 123,
        'State': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'tags': {
            'string': 'string'
        },
        'TemplateConfiguration': {
            'EmailTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'PushTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'SMSTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'VoiceTemplate': {
                'Name': 'string',
                'Version': 'string'
            }
        },
        'TreatmentDescription': 'string',
        'TreatmentName': 'string',
        'Version': 123
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • CampaignResponse (dict) --

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

      • AdditionalTreatments (list) --

        An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

        • (dict) --

          Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

          • CustomDeliveryConfiguration (dict) --

            The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

            • DeliveryUri (string) --

              The destination to send the campaign or treatment to. This value can be one of the following:

              • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

              • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

            • EndpointTypes (list) --

              The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

              • (string) --

          • Id (string) --

            The unique identifier for the treatment.

          • MessageConfiguration (dict) --

            The message configuration settings for the treatment.

            • ADMMessage (dict) --

              The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • APNSMessage (dict) --

              The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • BaiduMessage (dict) --

              The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • CustomMessage (dict) --

              The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

              • Data (string) --

                The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

            • DefaultMessage (dict) --

              The default message that the campaign sends through all the channels that are configured for the campaign.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • EmailMessage (dict) --

              The message that the campaign sends through the email channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the email for recipients whose email clients don't render HTML content.

              • FromAddress (string) --

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

              • HtmlBody (string) --

                The body of the email, in HTML format, for recipients whose email clients render HTML content.

              • Title (string) --

                The subject line, or title, of the email.

            • GCMMessage (dict) --

              The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • SMSMessage (dict) --

              The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the SMS message.

              • MessageType (string) --

                The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

              • OriginationNumber (string) --

                The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

              • SenderId (string) --

                The sender ID to display on recipients' devices when they receive the SMS message.

          • Schedule (dict) --

            The schedule settings for the treatment.

            • EndTime (string) --

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

            • EventFilter (dict) --

              The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

              • Dimensions (dict) --

                The dimension settings of the event filter for the campaign.

                • 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 have attributes matching the values are included in the segment.

                        • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                        • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                        • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                        • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                        • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                        • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

              • FilterType (string) --

                The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

            • Frequency (string) --

              Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

            • IsLocalTime (boolean) --

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

            • QuietTime (dict) --

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

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

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

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

              If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

            • StartTime (string) --

              The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

            • Timezone (string) --

              The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

          • SizePercent (integer) --

            The allocated percentage of users (segment members) that the treatment is sent to.

          • State (dict) --

            The current status of the treatment.

            • CampaignStatus (string) --

              The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

              If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

          • TemplateConfiguration (dict) --

            The message template to use for the treatment.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • VoiceTemplate (dict) --

              The voice template to use for the message. This object isn't supported for campaigns.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

          • TreatmentDescription (string) --

            The custom description of the treatment.

          • TreatmentName (string) --

            The custom name of the treatment.

      • ApplicationId (string) --

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

      • Arn (string) --

        The Amazon Resource Name (ARN) of the campaign.

      • CreationDate (string) --

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

      • CustomDeliveryConfiguration (dict) --

        The delivery configuration settings for sending the campaign through a custom channel.

        • DeliveryUri (string) --

          The destination to send the campaign or treatment to. This value can be one of the following:

          • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

          • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

        • EndpointTypes (list) --

          The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

          • (string) --

      • DefaultState (dict) --

        The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • Description (string) --

        The custom description of the campaign.

      • HoldoutPercent (integer) --

        The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

      • Hook (dict) --

        The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

        • LambdaFunctionName (string) --

          The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

        • Mode (string) --

          The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

          • FILTER - Invoke the function to customize the segment that's used by a campaign.

          • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

        • WebUrl (string) --

          The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

      • Id (string) --

        The unique identifier for the campaign.

      • IsPaused (boolean) --

        Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

      • LastModifiedDate (string) --

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

      • Limits (dict) --

        The messaging limits for the campaign.

        • Daily (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.

        • MaximumDuration (integer) --

          The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.

        • MessagesPerSecond (integer) --

          The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

        • Total (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.

      • MessageConfiguration (dict) --

        The message configuration settings for the campaign.

        • ADMMessage (dict) --

          The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • APNSMessage (dict) --

          The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • BaiduMessage (dict) --

          The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • CustomMessage (dict) --

          The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

          • Data (string) --

            The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

        • DefaultMessage (dict) --

          The default message that the campaign sends through all the channels that are configured for the campaign.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • EmailMessage (dict) --

          The message that the campaign sends through the email channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the email for recipients whose email clients don't render HTML content.

          • FromAddress (string) --

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

          • HtmlBody (string) --

            The body of the email, in HTML format, for recipients whose email clients render HTML content.

          • Title (string) --

            The subject line, or title, of the email.

        • GCMMessage (dict) --

          The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • SMSMessage (dict) --

          The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the SMS message.

          • MessageType (string) --

            The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

          • OriginationNumber (string) --

            The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

          • SenderId (string) --

            The sender ID to display on recipients' devices when they receive the SMS message.

      • Name (string) --

        The name of the campaign.

      • Schedule (dict) --

        The schedule settings for the campaign.

        • EndTime (string) --

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

        • EventFilter (dict) --

          The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

          • Dimensions (dict) --

            The dimension settings of the event filter for the campaign.

            • 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 have attributes matching the values are included in the segment.

                    • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                    • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                    • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                    • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                    • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                    • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

          • FilterType (string) --

            The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

        • Frequency (string) --

          Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

        • IsLocalTime (boolean) --

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

        • QuietTime (dict) --

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

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

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

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

          If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

        • StartTime (string) --

          The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

        • Timezone (string) --

          The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

      • SegmentId (string) --

        The unique identifier for the segment that's associated with the campaign.

      • SegmentVersion (integer) --

        The version number of the segment that's associated with the campaign.

      • State (dict) --

        The current status of the campaign.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • tags (dict) --

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

        • (string) --

          • (string) --

      • TemplateConfiguration (dict) --

        The message template that’s used for the campaign.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • VoiceTemplate (dict) --

          The voice template to use for the message. This object isn't supported for campaigns.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

      • TreatmentDescription (string) --

        The custom description of the default treatment for the campaign.

      • TreatmentName (string) --

        The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

      • Version (integer) --

        The version number of the campaign.

GetCampaignVersion (updated) Link ΒΆ
Changes (response)
{'CampaignResponse': {'AdditionalTreatments': {'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}},
                      'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}}}

Retrieves information about the status, configuration, and other settings for a specific version of a campaign.

See also: AWS API Documentation

Request Syntax

client.get_campaign_version(
    ApplicationId='string',
    CampaignId='string',
    Version='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 CampaignId

string

param CampaignId

[REQUIRED]

The unique identifier for the campaign.

type Version

string

param Version

[REQUIRED]

The unique version number (Version property) for the campaign version.

rtype

dict

returns

Response Syntax

{
    'CampaignResponse': {
        'AdditionalTreatments': [
            {
                'CustomDeliveryConfiguration': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ]
                },
                'Id': 'string',
                'MessageConfiguration': {
                    'ADMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'APNSMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'BaiduMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'CustomMessage': {
                        'Data': 'string'
                    },
                    'DefaultMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'EmailMessage': {
                        'Body': 'string',
                        'FromAddress': 'string',
                        'HtmlBody': 'string',
                        'Title': 'string'
                    },
                    'GCMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'SMSMessage': {
                        'Body': 'string',
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    }
                },
                'Schedule': {
                    'EndTime': 'string',
                    'EventFilter': {
                        'Dimensions': {
                            'Attributes': {
                                'string': {
                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                    'Values': [
                                        'string',
                                    ]
                                }
                            },
                            'EventType': {
                                'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                'Values': [
                                    'string',
                                ]
                            },
                            'Metrics': {
                                'string': {
                                    'ComparisonOperator': 'string',
                                    'Value': 123.0
                                }
                            }
                        },
                        'FilterType': 'SYSTEM'|'ENDPOINT'
                    },
                    'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                    'IsLocalTime': True|False,
                    'QuietTime': {
                        'End': 'string',
                        'Start': 'string'
                    },
                    'StartTime': 'string',
                    'Timezone': 'string'
                },
                'SizePercent': 123,
                'State': {
                    'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                },
                'TemplateConfiguration': {
                    'EmailTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'PushTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'SMSTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'VoiceTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    }
                },
                'TreatmentDescription': 'string',
                'TreatmentName': 'string'
            },
        ],
        'ApplicationId': 'string',
        'Arn': 'string',
        'CreationDate': 'string',
        'CustomDeliveryConfiguration': {
            'DeliveryUri': 'string',
            'EndpointTypes': [
                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
            ]
        },
        'DefaultState': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'Description': 'string',
        'HoldoutPercent': 123,
        'Hook': {
            'LambdaFunctionName': 'string',
            'Mode': 'DELIVERY'|'FILTER',
            'WebUrl': 'string'
        },
        'Id': 'string',
        'IsPaused': True|False,
        'LastModifiedDate': 'string',
        'Limits': {
            'Daily': 123,
            'MaximumDuration': 123,
            'MessagesPerSecond': 123,
            'Total': 123
        },
        'MessageConfiguration': {
            'ADMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'APNSMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'BaiduMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'CustomMessage': {
                'Data': 'string'
            },
            'DefaultMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'EmailMessage': {
                'Body': 'string',
                'FromAddress': 'string',
                'HtmlBody': 'string',
                'Title': 'string'
            },
            'GCMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'SMSMessage': {
                'Body': 'string',
                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                'OriginationNumber': 'string',
                'SenderId': 'string'
            }
        },
        'Name': 'string',
        'Schedule': {
            'EndTime': 'string',
            'EventFilter': {
                'Dimensions': {
                    'Attributes': {
                        'string': {
                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                            'Values': [
                                'string',
                            ]
                        }
                    },
                    'EventType': {
                        'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                        'Values': [
                            'string',
                        ]
                    },
                    'Metrics': {
                        'string': {
                            'ComparisonOperator': 'string',
                            'Value': 123.0
                        }
                    }
                },
                'FilterType': 'SYSTEM'|'ENDPOINT'
            },
            'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
            'IsLocalTime': True|False,
            'QuietTime': {
                'End': 'string',
                'Start': 'string'
            },
            'StartTime': 'string',
            'Timezone': 'string'
        },
        'SegmentId': 'string',
        'SegmentVersion': 123,
        'State': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'tags': {
            'string': 'string'
        },
        'TemplateConfiguration': {
            'EmailTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'PushTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'SMSTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'VoiceTemplate': {
                'Name': 'string',
                'Version': 'string'
            }
        },
        'TreatmentDescription': 'string',
        'TreatmentName': 'string',
        'Version': 123
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • CampaignResponse (dict) --

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

      • AdditionalTreatments (list) --

        An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

        • (dict) --

          Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

          • CustomDeliveryConfiguration (dict) --

            The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

            • DeliveryUri (string) --

              The destination to send the campaign or treatment to. This value can be one of the following:

              • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

              • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

            • EndpointTypes (list) --

              The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

              • (string) --

          • Id (string) --

            The unique identifier for the treatment.

          • MessageConfiguration (dict) --

            The message configuration settings for the treatment.

            • ADMMessage (dict) --

              The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • APNSMessage (dict) --

              The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • BaiduMessage (dict) --

              The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • CustomMessage (dict) --

              The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

              • Data (string) --

                The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

            • DefaultMessage (dict) --

              The default message that the campaign sends through all the channels that are configured for the campaign.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • EmailMessage (dict) --

              The message that the campaign sends through the email channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the email for recipients whose email clients don't render HTML content.

              • FromAddress (string) --

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

              • HtmlBody (string) --

                The body of the email, in HTML format, for recipients whose email clients render HTML content.

              • Title (string) --

                The subject line, or title, of the email.

            • GCMMessage (dict) --

              The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • SMSMessage (dict) --

              The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the SMS message.

              • MessageType (string) --

                The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

              • OriginationNumber (string) --

                The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

              • SenderId (string) --

                The sender ID to display on recipients' devices when they receive the SMS message.

          • Schedule (dict) --

            The schedule settings for the treatment.

            • EndTime (string) --

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

            • EventFilter (dict) --

              The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

              • Dimensions (dict) --

                The dimension settings of the event filter for the campaign.

                • 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 have attributes matching the values are included in the segment.

                        • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                        • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                        • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                        • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                        • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                        • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

              • FilterType (string) --

                The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

            • Frequency (string) --

              Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

            • IsLocalTime (boolean) --

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

            • QuietTime (dict) --

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

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

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

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

              If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

            • StartTime (string) --

              The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

            • Timezone (string) --

              The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

          • SizePercent (integer) --

            The allocated percentage of users (segment members) that the treatment is sent to.

          • State (dict) --

            The current status of the treatment.

            • CampaignStatus (string) --

              The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

              If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

          • TemplateConfiguration (dict) --

            The message template to use for the treatment.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • VoiceTemplate (dict) --

              The voice template to use for the message. This object isn't supported for campaigns.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

          • TreatmentDescription (string) --

            The custom description of the treatment.

          • TreatmentName (string) --

            The custom name of the treatment.

      • ApplicationId (string) --

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

      • Arn (string) --

        The Amazon Resource Name (ARN) of the campaign.

      • CreationDate (string) --

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

      • CustomDeliveryConfiguration (dict) --

        The delivery configuration settings for sending the campaign through a custom channel.

        • DeliveryUri (string) --

          The destination to send the campaign or treatment to. This value can be one of the following:

          • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

          • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

        • EndpointTypes (list) --

          The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

          • (string) --

      • DefaultState (dict) --

        The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • Description (string) --

        The custom description of the campaign.

      • HoldoutPercent (integer) --

        The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

      • Hook (dict) --

        The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

        • LambdaFunctionName (string) --

          The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

        • Mode (string) --

          The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

          • FILTER - Invoke the function to customize the segment that's used by a campaign.

          • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

        • WebUrl (string) --

          The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

      • Id (string) --

        The unique identifier for the campaign.

      • IsPaused (boolean) --

        Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

      • LastModifiedDate (string) --

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

      • Limits (dict) --

        The messaging limits for the campaign.

        • Daily (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.

        • MaximumDuration (integer) --

          The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.

        • MessagesPerSecond (integer) --

          The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

        • Total (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.

      • MessageConfiguration (dict) --

        The message configuration settings for the campaign.

        • ADMMessage (dict) --

          The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • APNSMessage (dict) --

          The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • BaiduMessage (dict) --

          The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • CustomMessage (dict) --

          The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

          • Data (string) --

            The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

        • DefaultMessage (dict) --

          The default message that the campaign sends through all the channels that are configured for the campaign.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • EmailMessage (dict) --

          The message that the campaign sends through the email channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the email for recipients whose email clients don't render HTML content.

          • FromAddress (string) --

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

          • HtmlBody (string) --

            The body of the email, in HTML format, for recipients whose email clients render HTML content.

          • Title (string) --

            The subject line, or title, of the email.

        • GCMMessage (dict) --

          The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • SMSMessage (dict) --

          The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the SMS message.

          • MessageType (string) --

            The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

          • OriginationNumber (string) --

            The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

          • SenderId (string) --

            The sender ID to display on recipients' devices when they receive the SMS message.

      • Name (string) --

        The name of the campaign.

      • Schedule (dict) --

        The schedule settings for the campaign.

        • EndTime (string) --

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

        • EventFilter (dict) --

          The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

          • Dimensions (dict) --

            The dimension settings of the event filter for the campaign.

            • 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 have attributes matching the values are included in the segment.

                    • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                    • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                    • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                    • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                    • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                    • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

          • FilterType (string) --

            The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

        • Frequency (string) --

          Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

        • IsLocalTime (boolean) --

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

        • QuietTime (dict) --

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

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

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

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

          If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

        • StartTime (string) --

          The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

        • Timezone (string) --

          The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

      • SegmentId (string) --

        The unique identifier for the segment that's associated with the campaign.

      • SegmentVersion (integer) --

        The version number of the segment that's associated with the campaign.

      • State (dict) --

        The current status of the campaign.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • tags (dict) --

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

        • (string) --

          • (string) --

      • TemplateConfiguration (dict) --

        The message template that’s used for the campaign.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • VoiceTemplate (dict) --

          The voice template to use for the message. This object isn't supported for campaigns.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

      • TreatmentDescription (string) --

        The custom description of the default treatment for the campaign.

      • TreatmentName (string) --

        The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

      • Version (integer) --

        The version number of the campaign.

GetCampaignVersions (updated) Link ΒΆ
Changes (response)
{'CampaignsResponse': {'Item': {'AdditionalTreatments': {'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}},
                                'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}}}}

Retrieves information about the status, configuration, and other settings for all versions of a campaign.

See also: AWS API Documentation

Request Syntax

client.get_campaign_versions(
    ApplicationId='string',
    CampaignId='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 CampaignId

string

param CampaignId

[REQUIRED]

The unique identifier for the campaign.

type PageSize

string

param PageSize

The maximum number of items to include in each page of a paginated response. This parameter is 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

{
    'CampaignsResponse': {
        'Item': [
            {
                'AdditionalTreatments': [
                    {
                        'CustomDeliveryConfiguration': {
                            'DeliveryUri': 'string',
                            'EndpointTypes': [
                                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                            ]
                        },
                        'Id': 'string',
                        'MessageConfiguration': {
                            'ADMMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'APNSMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'BaiduMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'CustomMessage': {
                                'Data': 'string'
                            },
                            'DefaultMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'EmailMessage': {
                                'Body': 'string',
                                'FromAddress': 'string',
                                'HtmlBody': 'string',
                                'Title': 'string'
                            },
                            'GCMMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'SMSMessage': {
                                'Body': 'string',
                                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                                'OriginationNumber': 'string',
                                'SenderId': 'string'
                            }
                        },
                        'Schedule': {
                            'EndTime': 'string',
                            'EventFilter': {
                                'Dimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'EventType': {
                                        'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                        'Values': [
                                            'string',
                                        ]
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    }
                                },
                                'FilterType': 'SYSTEM'|'ENDPOINT'
                            },
                            'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                            'IsLocalTime': True|False,
                            'QuietTime': {
                                'End': 'string',
                                'Start': 'string'
                            },
                            'StartTime': 'string',
                            'Timezone': 'string'
                        },
                        'SizePercent': 123,
                        'State': {
                            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                        },
                        'TemplateConfiguration': {
                            'EmailTemplate': {
                                'Name': 'string',
                                'Version': 'string'
                            },
                            'PushTemplate': {
                                'Name': 'string',
                                'Version': 'string'
                            },
                            'SMSTemplate': {
                                'Name': 'string',
                                'Version': 'string'
                            },
                            'VoiceTemplate': {
                                'Name': 'string',
                                'Version': 'string'
                            }
                        },
                        'TreatmentDescription': 'string',
                        'TreatmentName': 'string'
                    },
                ],
                'ApplicationId': 'string',
                'Arn': 'string',
                'CreationDate': 'string',
                'CustomDeliveryConfiguration': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ]
                },
                'DefaultState': {
                    'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                },
                'Description': 'string',
                'HoldoutPercent': 123,
                'Hook': {
                    'LambdaFunctionName': 'string',
                    'Mode': 'DELIVERY'|'FILTER',
                    'WebUrl': 'string'
                },
                'Id': 'string',
                'IsPaused': True|False,
                'LastModifiedDate': 'string',
                'Limits': {
                    'Daily': 123,
                    'MaximumDuration': 123,
                    'MessagesPerSecond': 123,
                    'Total': 123
                },
                'MessageConfiguration': {
                    'ADMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'APNSMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'BaiduMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'CustomMessage': {
                        'Data': 'string'
                    },
                    'DefaultMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'EmailMessage': {
                        'Body': 'string',
                        'FromAddress': 'string',
                        'HtmlBody': 'string',
                        'Title': 'string'
                    },
                    'GCMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'SMSMessage': {
                        'Body': 'string',
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    }
                },
                'Name': 'string',
                'Schedule': {
                    'EndTime': 'string',
                    'EventFilter': {
                        'Dimensions': {
                            'Attributes': {
                                'string': {
                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                    'Values': [
                                        'string',
                                    ]
                                }
                            },
                            'EventType': {
                                'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                'Values': [
                                    'string',
                                ]
                            },
                            'Metrics': {
                                'string': {
                                    'ComparisonOperator': 'string',
                                    'Value': 123.0
                                }
                            }
                        },
                        'FilterType': 'SYSTEM'|'ENDPOINT'
                    },
                    'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                    'IsLocalTime': True|False,
                    'QuietTime': {
                        'End': 'string',
                        'Start': 'string'
                    },
                    'StartTime': 'string',
                    'Timezone': 'string'
                },
                'SegmentId': 'string',
                'SegmentVersion': 123,
                'State': {
                    'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                },
                'tags': {
                    'string': 'string'
                },
                'TemplateConfiguration': {
                    'EmailTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'PushTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'SMSTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'VoiceTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    }
                },
                'TreatmentDescription': 'string',
                'TreatmentName': 'string',
                'Version': 123
            },
        ],
        'NextToken': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • CampaignsResponse (dict) --

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

      • Item (list) --

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

        • (dict) --

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

          • AdditionalTreatments (list) --

            An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

            • (dict) --

              Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

              • CustomDeliveryConfiguration (dict) --

                The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

                • DeliveryUri (string) --

                  The destination to send the campaign or treatment to. This value can be one of the following:

                  • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

                  • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

                • EndpointTypes (list) --

                  The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

                  • (string) --

              • Id (string) --

                The unique identifier for the treatment.

              • MessageConfiguration (dict) --

                The message configuration settings for the treatment.

                • ADMMessage (dict) --

                  The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • APNSMessage (dict) --

                  The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • BaiduMessage (dict) --

                  The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • CustomMessage (dict) --

                  The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

                  • Data (string) --

                    The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

                • DefaultMessage (dict) --

                  The default message that the campaign sends through all the channels that are configured for the campaign.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • EmailMessage (dict) --

                  The message that the campaign sends through the email channel. If specified, this message overrides the default message.

                  • Body (string) --

                    The body of the email for recipients whose email clients don't render HTML content.

                  • FromAddress (string) --

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

                  • HtmlBody (string) --

                    The body of the email, in HTML format, for recipients whose email clients render HTML content.

                  • Title (string) --

                    The subject line, or title, of the email.

                • GCMMessage (dict) --

                  The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • SMSMessage (dict) --

                  The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

                  • Body (string) --

                    The body of the SMS message.

                  • MessageType (string) --

                    The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

                  • OriginationNumber (string) --

                    The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

                  • SenderId (string) --

                    The sender ID to display on recipients' devices when they receive the SMS message.

              • Schedule (dict) --

                The schedule settings for the treatment.

                • EndTime (string) --

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

                • EventFilter (dict) --

                  The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

                  • Dimensions (dict) --

                    The dimension settings of the event filter for the campaign.

                    • 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 have attributes matching the values are included in the segment.

                            • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                            • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                            • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                            • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                            • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                            • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

                  • FilterType (string) --

                    The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

                • Frequency (string) --

                  Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

                • IsLocalTime (boolean) --

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

                • QuietTime (dict) --

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

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

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

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

                  If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

                • StartTime (string) --

                  The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

                • Timezone (string) --

                  The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

              • SizePercent (integer) --

                The allocated percentage of users (segment members) that the treatment is sent to.

              • State (dict) --

                The current status of the treatment.

                • CampaignStatus (string) --

                  The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

                  If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

              • TemplateConfiguration (dict) --

                The message template to use for the treatment.

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

                  • Version (string) --

                    The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

                  • Version (string) --

                    The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

                  • Version (string) --

                    The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

                • VoiceTemplate (dict) --

                  The voice template to use for the message. This object isn't supported for campaigns.

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

                  • Version (string) --

                    The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

              • TreatmentDescription (string) --

                The custom description of the treatment.

              • TreatmentName (string) --

                The custom name of the treatment.

          • ApplicationId (string) --

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

          • Arn (string) --

            The Amazon Resource Name (ARN) of the campaign.

          • CreationDate (string) --

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

          • CustomDeliveryConfiguration (dict) --

            The delivery configuration settings for sending the campaign through a custom channel.

            • DeliveryUri (string) --

              The destination to send the campaign or treatment to. This value can be one of the following:

              • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

              • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

            • EndpointTypes (list) --

              The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

              • (string) --

          • DefaultState (dict) --

            The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

            • CampaignStatus (string) --

              The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

              If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

          • Description (string) --

            The custom description of the campaign.

          • HoldoutPercent (integer) --

            The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

          • Hook (dict) --

            The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

            • LambdaFunctionName (string) --

              The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

            • Mode (string) --

              The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

              • FILTER - Invoke the function to customize the segment that's used by a campaign.

              • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

            • WebUrl (string) --

              The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

          • Id (string) --

            The unique identifier for the campaign.

          • IsPaused (boolean) --

            Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

          • LastModifiedDate (string) --

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

          • Limits (dict) --

            The messaging limits for the campaign.

            • Daily (integer) --

              The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.

            • MaximumDuration (integer) --

              The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.

            • MessagesPerSecond (integer) --

              The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

            • Total (integer) --

              The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.

          • MessageConfiguration (dict) --

            The message configuration settings for the campaign.

            • ADMMessage (dict) --

              The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • APNSMessage (dict) --

              The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • BaiduMessage (dict) --

              The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • CustomMessage (dict) --

              The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

              • Data (string) --

                The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

            • DefaultMessage (dict) --

              The default message that the campaign sends through all the channels that are configured for the campaign.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • EmailMessage (dict) --

              The message that the campaign sends through the email channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the email for recipients whose email clients don't render HTML content.

              • FromAddress (string) --

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

              • HtmlBody (string) --

                The body of the email, in HTML format, for recipients whose email clients render HTML content.

              • Title (string) --

                The subject line, or title, of the email.

            • GCMMessage (dict) --

              The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • SMSMessage (dict) --

              The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the SMS message.

              • MessageType (string) --

                The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

              • OriginationNumber (string) --

                The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

              • SenderId (string) --

                The sender ID to display on recipients' devices when they receive the SMS message.

          • Name (string) --

            The name of the campaign.

          • Schedule (dict) --

            The schedule settings for the campaign.

            • EndTime (string) --

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

            • EventFilter (dict) --

              The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

              • Dimensions (dict) --

                The dimension settings of the event filter for the campaign.

                • 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 have attributes matching the values are included in the segment.

                        • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                        • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                        • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                        • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                        • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                        • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

              • FilterType (string) --

                The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

            • Frequency (string) --

              Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

            • IsLocalTime (boolean) --

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

            • QuietTime (dict) --

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

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

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

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

              If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

            • StartTime (string) --

              The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

            • Timezone (string) --

              The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

          • SegmentId (string) --

            The unique identifier for the segment that's associated with the campaign.

          • SegmentVersion (integer) --

            The version number of the segment that's associated with the campaign.

          • State (dict) --

            The current status of the campaign.

            • CampaignStatus (string) --

              The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

              If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

          • tags (dict) --

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

            • (string) --

              • (string) --

          • TemplateConfiguration (dict) --

            The message template that’s used for the campaign.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • VoiceTemplate (dict) --

              The voice template to use for the message. This object isn't supported for campaigns.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

          • TreatmentDescription (string) --

            The custom description of the default treatment for the campaign.

          • TreatmentName (string) --

            The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

          • Version (integer) --

            The version number of the campaign.

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

GetCampaigns (updated) Link ΒΆ
Changes (response)
{'CampaignsResponse': {'Item': {'AdditionalTreatments': {'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}},
                                'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}}}}

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

See also: AWS API Documentation

Request Syntax

client.get_campaigns(
    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 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

{
    'CampaignsResponse': {
        'Item': [
            {
                'AdditionalTreatments': [
                    {
                        'CustomDeliveryConfiguration': {
                            'DeliveryUri': 'string',
                            'EndpointTypes': [
                                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                            ]
                        },
                        'Id': 'string',
                        'MessageConfiguration': {
                            'ADMMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'APNSMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'BaiduMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'CustomMessage': {
                                'Data': 'string'
                            },
                            'DefaultMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'EmailMessage': {
                                'Body': 'string',
                                'FromAddress': 'string',
                                'HtmlBody': 'string',
                                'Title': 'string'
                            },
                            'GCMMessage': {
                                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                                'Body': 'string',
                                'ImageIconUrl': 'string',
                                'ImageSmallIconUrl': 'string',
                                'ImageUrl': 'string',
                                'JsonBody': 'string',
                                'MediaUrl': 'string',
                                'RawContent': 'string',
                                'SilentPush': True|False,
                                'TimeToLive': 123,
                                'Title': 'string',
                                'Url': 'string'
                            },
                            'SMSMessage': {
                                'Body': 'string',
                                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                                'OriginationNumber': 'string',
                                'SenderId': 'string'
                            }
                        },
                        'Schedule': {
                            'EndTime': 'string',
                            'EventFilter': {
                                'Dimensions': {
                                    'Attributes': {
                                        'string': {
                                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'EventType': {
                                        'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                        'Values': [
                                            'string',
                                        ]
                                    },
                                    'Metrics': {
                                        'string': {
                                            'ComparisonOperator': 'string',
                                            'Value': 123.0
                                        }
                                    }
                                },
                                'FilterType': 'SYSTEM'|'ENDPOINT'
                            },
                            'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                            'IsLocalTime': True|False,
                            'QuietTime': {
                                'End': 'string',
                                'Start': 'string'
                            },
                            'StartTime': 'string',
                            'Timezone': 'string'
                        },
                        'SizePercent': 123,
                        'State': {
                            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                        },
                        'TemplateConfiguration': {
                            'EmailTemplate': {
                                'Name': 'string',
                                'Version': 'string'
                            },
                            'PushTemplate': {
                                'Name': 'string',
                                'Version': 'string'
                            },
                            'SMSTemplate': {
                                'Name': 'string',
                                'Version': 'string'
                            },
                            'VoiceTemplate': {
                                'Name': 'string',
                                'Version': 'string'
                            }
                        },
                        'TreatmentDescription': 'string',
                        'TreatmentName': 'string'
                    },
                ],
                'ApplicationId': 'string',
                'Arn': 'string',
                'CreationDate': 'string',
                'CustomDeliveryConfiguration': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ]
                },
                'DefaultState': {
                    'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                },
                'Description': 'string',
                'HoldoutPercent': 123,
                'Hook': {
                    'LambdaFunctionName': 'string',
                    'Mode': 'DELIVERY'|'FILTER',
                    'WebUrl': 'string'
                },
                'Id': 'string',
                'IsPaused': True|False,
                'LastModifiedDate': 'string',
                'Limits': {
                    'Daily': 123,
                    'MaximumDuration': 123,
                    'MessagesPerSecond': 123,
                    'Total': 123
                },
                'MessageConfiguration': {
                    'ADMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'APNSMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'BaiduMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'CustomMessage': {
                        'Data': 'string'
                    },
                    'DefaultMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'EmailMessage': {
                        'Body': 'string',
                        'FromAddress': 'string',
                        'HtmlBody': 'string',
                        'Title': 'string'
                    },
                    'GCMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'SMSMessage': {
                        'Body': 'string',
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    }
                },
                'Name': 'string',
                'Schedule': {
                    'EndTime': 'string',
                    'EventFilter': {
                        'Dimensions': {
                            'Attributes': {
                                'string': {
                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                    'Values': [
                                        'string',
                                    ]
                                }
                            },
                            'EventType': {
                                'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                'Values': [
                                    'string',
                                ]
                            },
                            'Metrics': {
                                'string': {
                                    'ComparisonOperator': 'string',
                                    'Value': 123.0
                                }
                            }
                        },
                        'FilterType': 'SYSTEM'|'ENDPOINT'
                    },
                    'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                    'IsLocalTime': True|False,
                    'QuietTime': {
                        'End': 'string',
                        'Start': 'string'
                    },
                    'StartTime': 'string',
                    'Timezone': 'string'
                },
                'SegmentId': 'string',
                'SegmentVersion': 123,
                'State': {
                    'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                },
                'tags': {
                    'string': 'string'
                },
                'TemplateConfiguration': {
                    'EmailTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'PushTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'SMSTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'VoiceTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    }
                },
                'TreatmentDescription': 'string',
                'TreatmentName': 'string',
                'Version': 123
            },
        ],
        'NextToken': 'string'
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • CampaignsResponse (dict) --

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

      • Item (list) --

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

        • (dict) --

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

          • AdditionalTreatments (list) --

            An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

            • (dict) --

              Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

              • CustomDeliveryConfiguration (dict) --

                The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

                • DeliveryUri (string) --

                  The destination to send the campaign or treatment to. This value can be one of the following:

                  • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

                  • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

                • EndpointTypes (list) --

                  The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

                  • (string) --

              • Id (string) --

                The unique identifier for the treatment.

              • MessageConfiguration (dict) --

                The message configuration settings for the treatment.

                • ADMMessage (dict) --

                  The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • APNSMessage (dict) --

                  The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • BaiduMessage (dict) --

                  The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • CustomMessage (dict) --

                  The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

                  • Data (string) --

                    The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

                • DefaultMessage (dict) --

                  The default message that the campaign sends through all the channels that are configured for the campaign.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • EmailMessage (dict) --

                  The message that the campaign sends through the email channel. If specified, this message overrides the default message.

                  • Body (string) --

                    The body of the email for recipients whose email clients don't render HTML content.

                  • FromAddress (string) --

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

                  • HtmlBody (string) --

                    The body of the email, in HTML format, for recipients whose email clients render HTML content.

                  • Title (string) --

                    The subject line, or title, of the email.

                • GCMMessage (dict) --

                  The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

                  • Action (string) --

                    The 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 iOS and Android.

                    • 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. The maximum number of characters is 200.

                  • ImageIconUrl (string) --

                    The URL of the image to display as the push-notification icon, such as the icon for the app.

                  • ImageSmallIconUrl (string) --

                    The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

                  • ImageUrl (string) --

                    The URL of an image to display in the push notification.

                  • JsonBody (string) --

                    The JSON payload to use for a silent push notification.

                  • MediaUrl (string) --

                    The URL of the image or video to display in the push notification.

                  • RawContent (string) --

                    The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

                  • TimeToLive (integer) --

                    The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                    This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • Title (string) --

                    The title to display 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 the push notification and the value of the Action property is URL.

                • SMSMessage (dict) --

                  The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

                  • Body (string) --

                    The body of the SMS message.

                  • MessageType (string) --

                    The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

                  • OriginationNumber (string) --

                    The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

                  • SenderId (string) --

                    The sender ID to display on recipients' devices when they receive the SMS message.

              • Schedule (dict) --

                The schedule settings for the treatment.

                • EndTime (string) --

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

                • EventFilter (dict) --

                  The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

                  • Dimensions (dict) --

                    The dimension settings of the event filter for the campaign.

                    • 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 have attributes matching the values are included in the segment.

                            • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                            • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                            • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                            • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                            • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                            • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

                  • FilterType (string) --

                    The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

                • Frequency (string) --

                  Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

                • IsLocalTime (boolean) --

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

                • QuietTime (dict) --

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

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

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

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

                  If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

                • StartTime (string) --

                  The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

                • Timezone (string) --

                  The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

              • SizePercent (integer) --

                The allocated percentage of users (segment members) that the treatment is sent to.

              • State (dict) --

                The current status of the treatment.

                • CampaignStatus (string) --

                  The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

                  If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

              • TemplateConfiguration (dict) --

                The message template to use for the treatment.

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

                  • Version (string) --

                    The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

                  • Version (string) --

                    The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

                  • Version (string) --

                    The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

                • VoiceTemplate (dict) --

                  The voice template to use for the message. This object isn't supported for campaigns.

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

                  • Version (string) --

                    The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

              • TreatmentDescription (string) --

                The custom description of the treatment.

              • TreatmentName (string) --

                The custom name of the treatment.

          • ApplicationId (string) --

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

          • Arn (string) --

            The Amazon Resource Name (ARN) of the campaign.

          • CreationDate (string) --

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

          • CustomDeliveryConfiguration (dict) --

            The delivery configuration settings for sending the campaign through a custom channel.

            • DeliveryUri (string) --

              The destination to send the campaign or treatment to. This value can be one of the following:

              • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

              • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

            • EndpointTypes (list) --

              The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

              • (string) --

          • DefaultState (dict) --

            The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

            • CampaignStatus (string) --

              The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

              If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

          • Description (string) --

            The custom description of the campaign.

          • HoldoutPercent (integer) --

            The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

          • Hook (dict) --

            The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

            • LambdaFunctionName (string) --

              The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

            • Mode (string) --

              The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

              • FILTER - Invoke the function to customize the segment that's used by a campaign.

              • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

            • WebUrl (string) --

              The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

          • Id (string) --

            The unique identifier for the campaign.

          • IsPaused (boolean) --

            Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

          • LastModifiedDate (string) --

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

          • Limits (dict) --

            The messaging limits for the campaign.

            • Daily (integer) --

              The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.

            • MaximumDuration (integer) --

              The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.

            • MessagesPerSecond (integer) --

              The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

            • Total (integer) --

              The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.

          • MessageConfiguration (dict) --

            The message configuration settings for the campaign.

            • ADMMessage (dict) --

              The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • APNSMessage (dict) --

              The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • BaiduMessage (dict) --

              The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • CustomMessage (dict) --

              The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

              • Data (string) --

                The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

            • DefaultMessage (dict) --

              The default message that the campaign sends through all the channels that are configured for the campaign.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • EmailMessage (dict) --

              The message that the campaign sends through the email channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the email for recipients whose email clients don't render HTML content.

              • FromAddress (string) --

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

              • HtmlBody (string) --

                The body of the email, in HTML format, for recipients whose email clients render HTML content.

              • Title (string) --

                The subject line, or title, of the email.

            • GCMMessage (dict) --

              The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • SMSMessage (dict) --

              The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the SMS message.

              • MessageType (string) --

                The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

              • OriginationNumber (string) --

                The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

              • SenderId (string) --

                The sender ID to display on recipients' devices when they receive the SMS message.

          • Name (string) --

            The name of the campaign.

          • Schedule (dict) --

            The schedule settings for the campaign.

            • EndTime (string) --

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

            • EventFilter (dict) --

              The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

              • Dimensions (dict) --

                The dimension settings of the event filter for the campaign.

                • 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 have attributes matching the values are included in the segment.

                        • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                        • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                        • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                        • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                        • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                        • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

              • FilterType (string) --

                The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

            • Frequency (string) --

              Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

            • IsLocalTime (boolean) --

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

            • QuietTime (dict) --

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

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

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

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

              If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

            • StartTime (string) --

              The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

            • Timezone (string) --

              The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

          • SegmentId (string) --

            The unique identifier for the segment that's associated with the campaign.

          • SegmentVersion (integer) --

            The version number of the segment that's associated with the campaign.

          • State (dict) --

            The current status of the campaign.

            • CampaignStatus (string) --

              The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

              If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

          • tags (dict) --

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

            • (string) --

              • (string) --

          • TemplateConfiguration (dict) --

            The message template that’s used for the campaign.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • VoiceTemplate (dict) --

              The voice template to use for the message. This object isn't supported for campaigns.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

          • TreatmentDescription (string) --

            The custom description of the default treatment for the campaign.

          • TreatmentName (string) --

            The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

          • Version (integer) --

            The version number of the campaign.

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

GetJourney (updated) Link ΒΆ
Changes (response)
{'JourneyResponse': {'Activities': {'SMS': {'MessageConfig': {'OriginationNumber': 'string'}}}}}

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': {
                'CUSTOM': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ],
                    'MessageConfig': {
                        'Data': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'PUSH': {
                    'MessageConfig': {
                        'TimeToLive': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'SMS': {
                    'MessageConfig': {
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                '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',
            'EventStartCondition': {
                'EventFilter': {
                    'Dimensions': {
                        'Attributes': {
                            'string': {
                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                'Values': [
                                    'string',
                                ]
                            }
                        },
                        'EventType': {
                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                            'Values': [
                                'string',
                            ]
                        },
                        'Metrics': {
                            'string': {
                                'ComparisonOperator': 'string',
                                'Value': 123.0
                            }
                        }
                    },
                    'FilterType': 'SYSTEM'|'ENDPOINT'
                },
                'SegmentId': '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) --

        A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

        • (string) --

          • (dict) --

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

            • CUSTOM (dict) --

              The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.

              • DeliveryUri (string) --

                The destination to send the campaign or treatment to. This value can be one of the following:

                • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

                • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

              • EndpointTypes (list) --

                The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

                • (string) --

              • MessageConfig (dict) --

                Specifies the message data included in a custom channel message that's sent to participants in a journey.

                • Data (string) --

                  The message content that's passed to an AWS Lambda function or to a web hook.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.

              • TemplateName (string) --

                The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 to wait, as a duration in ISO 8601 format, 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 conditions aren't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the conditions are 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) --

                Specifies the sender address for an email message that's sent to participants in the journey.

                • 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 message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the email template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                To determine which participants are held out, Amazon Pinpoint applies a probability-based algorithm to the percentage that you specify. Therefore, the actual percentage of participants who are held out may not be equal to the percentage that you specify.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 unique identifier for the activity to perform for participants who don't meet any of the conditions specified for other paths 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 to wait, as a duration in ISO 8601 format, 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.

            • PUSH (dict) --

              The settings for a push notification activity. This type of activity sends a push notification to participants.

              • MessageConfig (dict) --

                Specifies the time to live (TTL) value for push notifications that are sent to participants in a journey.

                • TimeToLive (string) --

                  The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                  This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the push notification template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the push notification template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                    To determine which participants are sent down each path, Amazon Pinpoint applies a probability-based algorithm to the percentages that you specify for the paths. Therefore, the actual percentage of participants who are sent down a path may not be equal to the percentage that you specify.

            • SMS (dict) --

              The settings for an SMS activity. This type of activity sends a text message to participants.

              • MessageConfig (dict) --

                Specifies the sender ID and message type for an SMS message that's sent to participants in a journey.

                • MessageType (string) --

                  The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

                • OriginationNumber (string) --

                  The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

                • 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. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the SMS message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the SMS template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 to wait, as a duration in ISO 8601 format, 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.

        • EventStartCondition (dict) --

          Specifies the settings for an event that causes a journey activity to start.

          • EventFilter (dict) --

            Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.

            • Dimensions (dict) --

              The dimensions for the event filter to use for the campaign or the journey 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 have attributes matching the values are included in the segment.

                      • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                      • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                      • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                      • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                      • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                      • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

            • FilterType (string) --

              The type of event that causes the campaign to be sent or the journey activity to be performed. Valid values are: SYSTEM, sends the campaign or performs the activity when a system event occurs; and, ENDPOINT, sends the campaign or performs the activity when an endpoint event (Events resource) occurs.

          • SegmentId (string) --

        • 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 continue the journey.

      • tags (dict) --

        This object is not used or supported.

        • (string) --

          • (string) --

ListJourneys (updated) Link ΒΆ
Changes (response)
{'JourneysResponse': {'Item': {'Activities': {'SMS': {'MessageConfig': {'OriginationNumber': 'string'}}}}}}

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 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': {
                        'CUSTOM': {
                            'DeliveryUri': 'string',
                            'EndpointTypes': [
                                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                            ],
                            'MessageConfig': {
                                'Data': 'string'
                            },
                            'NextActivity': 'string',
                            'TemplateName': 'string',
                            'TemplateVersion': 'string'
                        },
                        'ConditionalSplit': {
                            'Condition': {
                                'Conditions': [
                                    {
                                        'EventCondition': {
                                            'Dimensions': {
                                                'Attributes': {
                                                    'string': {
                                                        'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                        '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                    '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                }
                                            }
                                        }
                                    },
                                ],
                                'Operator': 'ALL'|'ANY'
                            },
                            'EvaluationWaitTime': {
                                'WaitFor': 'string',
                                'WaitUntil': 'string'
                            },
                            'FalseActivity': 'string',
                            'TrueActivity': 'string'
                        },
                        'Description': 'string',
                        'EMAIL': {
                            'MessageConfig': {
                                'FromAddress': 'string'
                            },
                            'NextActivity': 'string',
                            'TemplateName': 'string',
                            'TemplateVersion': 'string'
                        },
                        'Holdout': {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                        'MultiCondition': {
                            'Branches': [
                                {
                                    'Condition': {
                                        'EventCondition': {
                                            'Dimensions': {
                                                'Attributes': {
                                                    'string': {
                                                        'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                        '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                    '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                    'Values': [
                                                        'string',
                                                    ]
                                                }
                                            }
                                        }
                                    },
                                    'NextActivity': 'string'
                                },
                            ],
                            'DefaultActivity': 'string',
                            'EvaluationWaitTime': {
                                'WaitFor': 'string',
                                'WaitUntil': 'string'
                            }
                        },
                        'PUSH': {
                            'MessageConfig': {
                                'TimeToLive': 'string'
                            },
                            'NextActivity': 'string',
                            'TemplateName': 'string',
                            'TemplateVersion': 'string'
                        },
                        'RandomSplit': {
                            'Branches': [
                                {
                                    'NextActivity': 'string',
                                    'Percentage': 123
                                },
                            ]
                        },
                        'SMS': {
                            'MessageConfig': {
                                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                                'OriginationNumber': 'string',
                                'SenderId': 'string'
                            },
                            'NextActivity': 'string',
                            'TemplateName': 'string',
                            'TemplateVersion': 'string'
                        },
                        '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',
                    'EventStartCondition': {
                        'EventFilter': {
                            'Dimensions': {
                                'Attributes': {
                                    'string': {
                                        'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                        'Values': [
                                            'string',
                                        ]
                                    }
                                },
                                'EventType': {
                                    'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                    'Values': [
                                        'string',
                                    ]
                                },
                                'Metrics': {
                                    'string': {
                                        'ComparisonOperator': 'string',
                                        'Value': 123.0
                                    }
                                }
                            },
                            'FilterType': 'SYSTEM'|'ENDPOINT'
                        },
                        'SegmentId': '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) --

            A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

            • (string) --

              • (dict) --

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

                • CUSTOM (dict) --

                  The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.

                  • DeliveryUri (string) --

                    The destination to send the campaign or treatment to. This value can be one of the following:

                    • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

                    • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

                  • EndpointTypes (list) --

                    The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

                    • (string) --

                  • MessageConfig (dict) --

                    Specifies the message data included in a custom channel message that's sent to participants in a journey.

                    • Data (string) --

                      The message content that's passed to an AWS Lambda function or to a web hook.

                  • NextActivity (string) --

                    The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.

                  • TemplateName (string) --

                    The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.

                  • TemplateVersion (string) --

                    The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

                • 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 have attributes matching the values are included in the segment.

                                    • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                    • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                    • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                    • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                    • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                    • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                              • 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 have attributes matching the values are included in the segment.

                                  • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                  • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                  • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                  • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                  • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                  • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                                  • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                  • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                  • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                  • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                  • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                  • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 to wait, as a duration in ISO 8601 format, 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 conditions aren't met.

                  • TrueActivity (string) --

                    The unique identifier for the activity to perform if the conditions are 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) --

                    Specifies the sender address for an email message that's sent to participants in the journey.

                    • 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 message template to use for the message. If specified, this value must match the name of an existing message template.

                  • TemplateVersion (string) --

                    The unique identifier for the version of the email template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                    To determine which participants are held out, Amazon Pinpoint applies a probability-based algorithm to the percentage that you specify. Therefore, the actual percentage of participants who are held out may not be equal to the percentage that you specify.

                • MultiCondition (dict) --

                  The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) 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 have attributes matching the values are included in the segment.

                                    • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                    • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                    • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                    • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                    • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                    • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                              • 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 have attributes matching the values are included in the segment.

                                  • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                  • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                  • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                  • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                  • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                  • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                                  • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                  • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                  • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                  • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                  • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                  • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 unique identifier for the activity to perform for participants who don't meet any of the conditions specified for other paths 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 to wait, as a duration in ISO 8601 format, 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.

                • PUSH (dict) --

                  The settings for a push notification activity. This type of activity sends a push notification to participants.

                  • MessageConfig (dict) --

                    Specifies the time to live (TTL) value for push notifications that are sent to participants in a journey.

                    • TimeToLive (string) --

                      The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                      This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

                  • NextActivity (string) --

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

                  • TemplateName (string) --

                    The name of the push notification template to use for the message. If specified, this value must match the name of an existing message template.

                  • TemplateVersion (string) --

                    The unique identifier for the version of the push notification template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                        To determine which participants are sent down each path, Amazon Pinpoint applies a probability-based algorithm to the percentages that you specify for the paths. Therefore, the actual percentage of participants who are sent down a path may not be equal to the percentage that you specify.

                • SMS (dict) --

                  The settings for an SMS activity. This type of activity sends a text message to participants.

                  • MessageConfig (dict) --

                    Specifies the sender ID and message type for an SMS message that's sent to participants in a journey.

                    • MessageType (string) --

                      The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

                    • OriginationNumber (string) --

                      The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

                    • 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. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.

                  • NextActivity (string) --

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

                  • TemplateName (string) --

                    The name of the SMS message template to use for the message. If specified, this value must match the name of an existing message template.

                  • TemplateVersion (string) --

                    The unique identifier for the version of the SMS template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                    If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

                • 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 to wait, as a duration in ISO 8601 format, 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.

            • EventStartCondition (dict) --

              Specifies the settings for an event that causes a journey activity to start.

              • EventFilter (dict) --

                Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.

                • Dimensions (dict) --

                  The dimensions for the event filter to use for the campaign or the journey 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 have attributes matching the values are included in the segment.

                          • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                          • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                          • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                          • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                          • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                          • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

                • FilterType (string) --

                  The type of event that causes the campaign to be sent or the journey activity to be performed. Valid values are: SYSTEM, sends the campaign or performs the activity when a system event occurs; and, ENDPOINT, sends the campaign or performs the activity when an endpoint event (Events resource) occurs.

              • SegmentId (string) --

            • 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 continue the journey.

          • tags (dict) --

            This object is not used or supported.

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

UpdateCampaign (updated) Link ΒΆ
Changes (request, response)
Request
{'WriteCampaignRequest': {'AdditionalTreatments': {'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}},
                          'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}}}
Response
{'CampaignResponse': {'AdditionalTreatments': {'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}},
                      'MessageConfiguration': {'SMSMessage': {'OriginationNumber': 'string'}}}}

Updates the configuration and other settings for a campaign.

See also: AWS API Documentation

Request Syntax

client.update_campaign(
    ApplicationId='string',
    CampaignId='string',
    WriteCampaignRequest={
        'AdditionalTreatments': [
            {
                'CustomDeliveryConfiguration': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ]
                },
                'MessageConfiguration': {
                    'ADMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'APNSMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'BaiduMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'CustomMessage': {
                        'Data': 'string'
                    },
                    'DefaultMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'EmailMessage': {
                        'Body': 'string',
                        'FromAddress': 'string',
                        'HtmlBody': 'string',
                        'Title': 'string'
                    },
                    'GCMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'SMSMessage': {
                        'Body': 'string',
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    }
                },
                'Schedule': {
                    'EndTime': 'string',
                    'EventFilter': {
                        'Dimensions': {
                            'Attributes': {
                                'string': {
                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                    'Values': [
                                        'string',
                                    ]
                                }
                            },
                            'EventType': {
                                'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                'Values': [
                                    'string',
                                ]
                            },
                            'Metrics': {
                                'string': {
                                    'ComparisonOperator': 'string',
                                    'Value': 123.0
                                }
                            }
                        },
                        'FilterType': 'SYSTEM'|'ENDPOINT'
                    },
                    'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                    'IsLocalTime': True|False,
                    'QuietTime': {
                        'End': 'string',
                        'Start': 'string'
                    },
                    'StartTime': 'string',
                    'Timezone': 'string'
                },
                'SizePercent': 123,
                'TemplateConfiguration': {
                    'EmailTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'PushTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'SMSTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'VoiceTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    }
                },
                'TreatmentDescription': 'string',
                'TreatmentName': 'string'
            },
        ],
        'CustomDeliveryConfiguration': {
            'DeliveryUri': 'string',
            'EndpointTypes': [
                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
            ]
        },
        'Description': 'string',
        'HoldoutPercent': 123,
        'Hook': {
            'LambdaFunctionName': 'string',
            'Mode': 'DELIVERY'|'FILTER',
            'WebUrl': 'string'
        },
        'IsPaused': True|False,
        'Limits': {
            'Daily': 123,
            'MaximumDuration': 123,
            'MessagesPerSecond': 123,
            'Total': 123
        },
        'MessageConfiguration': {
            'ADMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'APNSMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'BaiduMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'CustomMessage': {
                'Data': 'string'
            },
            'DefaultMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'EmailMessage': {
                'Body': 'string',
                'FromAddress': 'string',
                'HtmlBody': 'string',
                'Title': 'string'
            },
            'GCMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'SMSMessage': {
                'Body': 'string',
                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                'OriginationNumber': 'string',
                'SenderId': 'string'
            }
        },
        'Name': 'string',
        'Schedule': {
            'EndTime': 'string',
            'EventFilter': {
                'Dimensions': {
                    'Attributes': {
                        'string': {
                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                            'Values': [
                                'string',
                            ]
                        }
                    },
                    'EventType': {
                        'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                        'Values': [
                            'string',
                        ]
                    },
                    'Metrics': {
                        'string': {
                            'ComparisonOperator': 'string',
                            'Value': 123.0
                        }
                    }
                },
                'FilterType': 'SYSTEM'|'ENDPOINT'
            },
            'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
            'IsLocalTime': True|False,
            'QuietTime': {
                'End': 'string',
                'Start': 'string'
            },
            'StartTime': 'string',
            'Timezone': 'string'
        },
        'SegmentId': 'string',
        'SegmentVersion': 123,
        'tags': {
            'string': 'string'
        },
        'TemplateConfiguration': {
            'EmailTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'PushTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'SMSTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'VoiceTemplate': {
                'Name': 'string',
                'Version': 'string'
            }
        },
        'TreatmentDescription': 'string',
        'TreatmentName': '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 CampaignId

string

param CampaignId

[REQUIRED]

The unique identifier for the campaign.

type WriteCampaignRequest

dict

param WriteCampaignRequest

[REQUIRED]

Specifies the configuration and other settings for a campaign.

  • AdditionalTreatments (list) --

    An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.

    • (dict) --

      Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

      • CustomDeliveryConfiguration (dict) --

        The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

        • DeliveryUri (string) -- [REQUIRED]

          The destination to send the campaign or treatment to. This value can be one of the following:

          • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

          • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

        • EndpointTypes (list) --

          The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

          • (string) --

      • MessageConfiguration (dict) --

        The message configuration settings for the treatment.

        • ADMMessage (dict) --

          The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • APNSMessage (dict) --

          The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • BaiduMessage (dict) --

          The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • CustomMessage (dict) --

          The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

          • Data (string) --

            The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

        • DefaultMessage (dict) --

          The default message that the campaign sends through all the channels that are configured for the campaign.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • EmailMessage (dict) --

          The message that the campaign sends through the email channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the email for recipients whose email clients don't render HTML content.

          • FromAddress (string) --

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

          • HtmlBody (string) --

            The body of the email, in HTML format, for recipients whose email clients render HTML content.

          • Title (string) --

            The subject line, or title, of the email.

        • GCMMessage (dict) --

          The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • SMSMessage (dict) --

          The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the SMS message.

          • MessageType (string) --

            The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

          • OriginationNumber (string) --

            The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

          • SenderId (string) --

            The sender ID to display on recipients' devices when they receive the SMS message.

      • Schedule (dict) --

        The schedule settings for the treatment.

        • EndTime (string) --

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

        • EventFilter (dict) --

          The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

          • Dimensions (dict) -- [REQUIRED]

            The dimension settings of the event filter for the campaign.

            • 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 have attributes matching the values are included in the segment.

                    • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                    • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                    • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                    • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                    • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                    • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

          • FilterType (string) -- [REQUIRED]

            The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

        • Frequency (string) --

          Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

        • IsLocalTime (boolean) --

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

        • QuietTime (dict) --

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

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

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

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

          If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

        • StartTime (string) -- [REQUIRED]

          The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

        • Timezone (string) --

          The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

      • SizePercent (integer) -- [REQUIRED]

        The allocated percentage of users (segment members) to send the treatment to.

      • TemplateConfiguration (dict) --

        The message template to use for the treatment.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • VoiceTemplate (dict) --

          The voice template to use for the message. This object isn't supported for campaigns.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

      • TreatmentDescription (string) --

        A custom description of the treatment.

      • TreatmentName (string) --

        A custom name for the treatment.

  • CustomDeliveryConfiguration (dict) --

    The delivery configuration settings for sending the campaign through a custom channel. This object is required if the MessageConfiguration object for the campaign specifies a CustomMessage object.

    • DeliveryUri (string) -- [REQUIRED]

      The destination to send the campaign or treatment to. This value can be one of the following:

      • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

      • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

    • EndpointTypes (list) --

      The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

      • (string) --

  • Description (string) --

    A custom description of the campaign.

  • HoldoutPercent (integer) --

    The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

  • Hook (dict) --

    The settings for the AWS Lambda function to invoke as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

    • LambdaFunctionName (string) --

      The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

    • Mode (string) --

      The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

      • FILTER - Invoke the function to customize the segment that's used by a campaign.

      • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

    • WebUrl (string) --

      The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

  • IsPaused (boolean) --

    Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by changing this value to false.

  • Limits (dict) --

    The messaging limits for the campaign.

    • Daily (integer) --

      The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.

    • MaximumDuration (integer) --

      The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.

    • MessagesPerSecond (integer) --

      The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

    • Total (integer) --

      The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.

  • MessageConfiguration (dict) --

    The message configuration settings for the campaign.

    • ADMMessage (dict) --

      The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • APNSMessage (dict) --

      The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • BaiduMessage (dict) --

      The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • CustomMessage (dict) --

      The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

      • Data (string) --

        The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

    • DefaultMessage (dict) --

      The default message that the campaign sends through all the channels that are configured for the campaign.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • EmailMessage (dict) --

      The message that the campaign sends through the email channel. If specified, this message overrides the default message.

      • Body (string) --

        The body of the email for recipients whose email clients don't render HTML content.

      • FromAddress (string) --

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

      • HtmlBody (string) --

        The body of the email, in HTML format, for recipients whose email clients render HTML content.

      • Title (string) --

        The subject line, or title, of the email.

    • GCMMessage (dict) --

      The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

      • Action (string) --

        The 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 iOS and Android.

        • 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. The maximum number of characters is 200.

      • ImageIconUrl (string) --

        The URL of the image to display as the push-notification icon, such as the icon for the app.

      • ImageSmallIconUrl (string) --

        The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

      • ImageUrl (string) --

        The URL of an image to display in the push notification.

      • JsonBody (string) --

        The JSON payload to use for a silent push notification.

      • MediaUrl (string) --

        The URL of the image or video to display in the push notification.

      • RawContent (string) --

        The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

      • TimeToLive (integer) --

        The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

        This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

      • Title (string) --

        The title to display 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 the push notification and the value of the Action property is URL.

    • SMSMessage (dict) --

      The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

      • Body (string) --

        The body of the SMS message.

      • MessageType (string) --

        The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

      • OriginationNumber (string) --

        The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

      • SenderId (string) --

        The sender ID to display on recipients' devices when they receive the SMS message.

  • Name (string) --

    A custom name for the campaign.

  • Schedule (dict) --

    The schedule settings for the campaign.

    • EndTime (string) --

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

    • EventFilter (dict) --

      The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

      • Dimensions (dict) -- [REQUIRED]

        The dimension settings of the event filter for the campaign.

        • 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 have attributes matching the values are included in the segment.

                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

      • FilterType (string) -- [REQUIRED]

        The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

    • Frequency (string) --

      Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

    • IsLocalTime (boolean) --

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

    • QuietTime (dict) --

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

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

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

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

      If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

    • StartTime (string) -- [REQUIRED]

      The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

    • Timezone (string) --

      The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

  • SegmentId (string) --

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

  • SegmentVersion (integer) --

    The version of the segment to associate with the campaign.

  • tags (dict) --

    A string-to-string map of key-value pairs that defines the tags to associate with the campaign. Each tag consists of a required tag key and an associated tag value.

    • (string) --

      • (string) --

  • TemplateConfiguration (dict) --

    The message template to use for the campaign.

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

      • Version (string) --

        The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

        If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

      • Version (string) --

        The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

        If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

      • Version (string) --

        The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

        If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

    • VoiceTemplate (dict) --

      The voice template to use for the message. This object isn't supported for campaigns.

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

      • Version (string) --

        The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

        If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

  • TreatmentDescription (string) --

    A custom description of the default treatment for the campaign.

  • TreatmentName (string) --

    A custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

rtype

dict

returns

Response Syntax

{
    'CampaignResponse': {
        'AdditionalTreatments': [
            {
                'CustomDeliveryConfiguration': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ]
                },
                'Id': 'string',
                'MessageConfiguration': {
                    'ADMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'APNSMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'BaiduMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'CustomMessage': {
                        'Data': 'string'
                    },
                    'DefaultMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'EmailMessage': {
                        'Body': 'string',
                        'FromAddress': 'string',
                        'HtmlBody': 'string',
                        'Title': 'string'
                    },
                    'GCMMessage': {
                        'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                        'Body': 'string',
                        'ImageIconUrl': 'string',
                        'ImageSmallIconUrl': 'string',
                        'ImageUrl': 'string',
                        'JsonBody': 'string',
                        'MediaUrl': 'string',
                        'RawContent': 'string',
                        'SilentPush': True|False,
                        'TimeToLive': 123,
                        'Title': 'string',
                        'Url': 'string'
                    },
                    'SMSMessage': {
                        'Body': 'string',
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    }
                },
                'Schedule': {
                    'EndTime': 'string',
                    'EventFilter': {
                        'Dimensions': {
                            'Attributes': {
                                'string': {
                                    'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                    'Values': [
                                        'string',
                                    ]
                                }
                            },
                            'EventType': {
                                'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                                'Values': [
                                    'string',
                                ]
                            },
                            'Metrics': {
                                'string': {
                                    'ComparisonOperator': 'string',
                                    'Value': 123.0
                                }
                            }
                        },
                        'FilterType': 'SYSTEM'|'ENDPOINT'
                    },
                    'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
                    'IsLocalTime': True|False,
                    'QuietTime': {
                        'End': 'string',
                        'Start': 'string'
                    },
                    'StartTime': 'string',
                    'Timezone': 'string'
                },
                'SizePercent': 123,
                'State': {
                    'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
                },
                'TemplateConfiguration': {
                    'EmailTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'PushTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'SMSTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    },
                    'VoiceTemplate': {
                        'Name': 'string',
                        'Version': 'string'
                    }
                },
                'TreatmentDescription': 'string',
                'TreatmentName': 'string'
            },
        ],
        'ApplicationId': 'string',
        'Arn': 'string',
        'CreationDate': 'string',
        'CustomDeliveryConfiguration': {
            'DeliveryUri': 'string',
            'EndpointTypes': [
                'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
            ]
        },
        'DefaultState': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'Description': 'string',
        'HoldoutPercent': 123,
        'Hook': {
            'LambdaFunctionName': 'string',
            'Mode': 'DELIVERY'|'FILTER',
            'WebUrl': 'string'
        },
        'Id': 'string',
        'IsPaused': True|False,
        'LastModifiedDate': 'string',
        'Limits': {
            'Daily': 123,
            'MaximumDuration': 123,
            'MessagesPerSecond': 123,
            'Total': 123
        },
        'MessageConfiguration': {
            'ADMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'APNSMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'BaiduMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'CustomMessage': {
                'Data': 'string'
            },
            'DefaultMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'EmailMessage': {
                'Body': 'string',
                'FromAddress': 'string',
                'HtmlBody': 'string',
                'Title': 'string'
            },
            'GCMMessage': {
                'Action': 'OPEN_APP'|'DEEP_LINK'|'URL',
                'Body': 'string',
                'ImageIconUrl': 'string',
                'ImageSmallIconUrl': 'string',
                'ImageUrl': 'string',
                'JsonBody': 'string',
                'MediaUrl': 'string',
                'RawContent': 'string',
                'SilentPush': True|False,
                'TimeToLive': 123,
                'Title': 'string',
                'Url': 'string'
            },
            'SMSMessage': {
                'Body': 'string',
                'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                'OriginationNumber': 'string',
                'SenderId': 'string'
            }
        },
        'Name': 'string',
        'Schedule': {
            'EndTime': 'string',
            'EventFilter': {
                'Dimensions': {
                    'Attributes': {
                        'string': {
                            'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                            'Values': [
                                'string',
                            ]
                        }
                    },
                    'EventType': {
                        'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                        'Values': [
                            'string',
                        ]
                    },
                    'Metrics': {
                        'string': {
                            'ComparisonOperator': 'string',
                            'Value': 123.0
                        }
                    }
                },
                'FilterType': 'SYSTEM'|'ENDPOINT'
            },
            'Frequency': 'ONCE'|'HOURLY'|'DAILY'|'WEEKLY'|'MONTHLY'|'EVENT',
            'IsLocalTime': True|False,
            'QuietTime': {
                'End': 'string',
                'Start': 'string'
            },
            'StartTime': 'string',
            'Timezone': 'string'
        },
        'SegmentId': 'string',
        'SegmentVersion': 123,
        'State': {
            'CampaignStatus': 'SCHEDULED'|'EXECUTING'|'PENDING_NEXT_RUN'|'COMPLETED'|'PAUSED'|'DELETED'|'INVALID'
        },
        'tags': {
            'string': 'string'
        },
        'TemplateConfiguration': {
            'EmailTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'PushTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'SMSTemplate': {
                'Name': 'string',
                'Version': 'string'
            },
            'VoiceTemplate': {
                'Name': 'string',
                'Version': 'string'
            }
        },
        'TreatmentDescription': 'string',
        'TreatmentName': 'string',
        'Version': 123
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • CampaignResponse (dict) --

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

      • AdditionalTreatments (list) --

        An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.

        • (dict) --

          Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

          • CustomDeliveryConfiguration (dict) --

            The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.

            • DeliveryUri (string) --

              The destination to send the campaign or treatment to. This value can be one of the following:

              • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

              • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

            • EndpointTypes (list) --

              The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

              • (string) --

          • Id (string) --

            The unique identifier for the treatment.

          • MessageConfiguration (dict) --

            The message configuration settings for the treatment.

            • ADMMessage (dict) --

              The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • APNSMessage (dict) --

              The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • BaiduMessage (dict) --

              The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • CustomMessage (dict) --

              The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

              • Data (string) --

                The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

            • DefaultMessage (dict) --

              The default message that the campaign sends through all the channels that are configured for the campaign.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • EmailMessage (dict) --

              The message that the campaign sends through the email channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the email for recipients whose email clients don't render HTML content.

              • FromAddress (string) --

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

              • HtmlBody (string) --

                The body of the email, in HTML format, for recipients whose email clients render HTML content.

              • Title (string) --

                The subject line, or title, of the email.

            • GCMMessage (dict) --

              The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

              • Action (string) --

                The 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 iOS and Android.

                • 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. The maximum number of characters is 200.

              • ImageIconUrl (string) --

                The URL of the image to display as the push-notification icon, such as the icon for the app.

              • ImageSmallIconUrl (string) --

                The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

              • ImageUrl (string) --

                The URL of an image to display in the push notification.

              • JsonBody (string) --

                The JSON payload to use for a silent push notification.

              • MediaUrl (string) --

                The URL of the image or video to display in the push notification.

              • RawContent (string) --

                The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

              • TimeToLive (integer) --

                The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • Title (string) --

                The title to display 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 the push notification and the value of the Action property is URL.

            • SMSMessage (dict) --

              The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

              • Body (string) --

                The body of the SMS message.

              • MessageType (string) --

                The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

              • OriginationNumber (string) --

                The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

              • SenderId (string) --

                The sender ID to display on recipients' devices when they receive the SMS message.

          • Schedule (dict) --

            The schedule settings for the treatment.

            • EndTime (string) --

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

            • EventFilter (dict) --

              The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

              • Dimensions (dict) --

                The dimension settings of the event filter for the campaign.

                • 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 have attributes matching the values are included in the segment.

                        • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                        • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                        • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                        • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                        • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                        • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

              • FilterType (string) --

                The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

            • Frequency (string) --

              Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

            • IsLocalTime (boolean) --

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

            • QuietTime (dict) --

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

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

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

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

              If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

            • StartTime (string) --

              The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

            • Timezone (string) --

              The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

          • SizePercent (integer) --

            The allocated percentage of users (segment members) that the treatment is sent to.

          • State (dict) --

            The current status of the treatment.

            • CampaignStatus (string) --

              The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

              If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

          • TemplateConfiguration (dict) --

            The message template to use for the treatment.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • VoiceTemplate (dict) --

              The voice template to use for the message. This object isn't supported for campaigns.

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

              • Version (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

          • TreatmentDescription (string) --

            The custom description of the treatment.

          • TreatmentName (string) --

            The custom name of the treatment.

      • ApplicationId (string) --

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

      • Arn (string) --

        The Amazon Resource Name (ARN) of the campaign.

      • CreationDate (string) --

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

      • CustomDeliveryConfiguration (dict) --

        The delivery configuration settings for sending the campaign through a custom channel.

        • DeliveryUri (string) --

          The destination to send the campaign or treatment to. This value can be one of the following:

          • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

          • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

        • EndpointTypes (list) --

          The types of endpoints to send the campaign or treatment to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

          • (string) --

      • DefaultState (dict) --

        The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • Description (string) --

        The custom description of the campaign.

      • HoldoutPercent (integer) --

        The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.

      • Hook (dict) --

        The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.

        • LambdaFunctionName (string) --

          The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.

        • Mode (string) --

          The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:

          • FILTER - Invoke the function to customize the segment that's used by a campaign.

          • DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.

        • WebUrl (string) --

          The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.

      • Id (string) --

        The unique identifier for the campaign.

      • IsPaused (boolean) --

        Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.

      • LastModifiedDate (string) --

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

      • Limits (dict) --

        The messaging limits for the campaign.

        • Daily (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.

        • MaximumDuration (integer) --

          The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.

        • MessagesPerSecond (integer) --

          The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

        • Total (integer) --

          The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.

      • MessageConfiguration (dict) --

        The message configuration settings for the campaign.

        • ADMMessage (dict) --

          The message that the campaign sends through the ADM (Amazon Device Messaging) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • APNSMessage (dict) --

          The message that the campaign sends through the APNs (Apple Push Notification service) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • BaiduMessage (dict) --

          The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • CustomMessage (dict) --

          The message that the campaign sends through a custom channel, as specified by the delivery configuration (CustomDeliveryConfiguration) settings for the campaign. If specified, this message overrides the default message.

          • Data (string) --

            The raw, JSON-formatted string to use as the payload for the message. The maximum size is 5 KB.

        • DefaultMessage (dict) --

          The default message that the campaign sends through all the channels that are configured for the campaign.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • EmailMessage (dict) --

          The message that the campaign sends through the email channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the email for recipients whose email clients don't render HTML content.

          • FromAddress (string) --

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

          • HtmlBody (string) --

            The body of the email, in HTML format, for recipients whose email clients render HTML content.

          • Title (string) --

            The subject line, or title, of the email.

        • GCMMessage (dict) --

          The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. If specified, this message overrides the default message.

          • Action (string) --

            The 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 iOS and Android.

            • 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. The maximum number of characters is 200.

          • ImageIconUrl (string) --

            The URL of the image to display as the push-notification icon, such as the icon for the app.

          • ImageSmallIconUrl (string) --

            The URL of the image to display as the small, push-notification icon, such as a small version of the icon for the app.

          • ImageUrl (string) --

            The URL of an image to display in the push notification.

          • JsonBody (string) --

            The JSON payload to use for a silent push notification.

          • MediaUrl (string) --

            The URL of the image or video to display in the push notification.

          • RawContent (string) --

            The raw, JSON-formatted string to use as the payload for the notification message. If specified, this value overrides all other content for 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, displaying messages in an in-app message center, or supporting phone home functionality.

          • TimeToLive (integer) --

            The number of seconds that the push-notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

            This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • Title (string) --

            The title to display 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 the push notification and the value of the Action property is URL.

        • SMSMessage (dict) --

          The message that the campaign sends through the SMS channel. If specified, this message overrides the default message.

          • Body (string) --

            The body of the SMS message.

          • MessageType (string) --

            The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

          • OriginationNumber (string) --

            The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

          • SenderId (string) --

            The sender ID to display on recipients' devices when they receive the SMS message.

      • Name (string) --

        The name of the campaign.

      • Schedule (dict) --

        The schedule settings for the campaign.

        • EndTime (string) --

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

        • EventFilter (dict) --

          The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.

          • Dimensions (dict) --

            The dimension settings of the event filter for the campaign.

            • 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 have attributes matching the values are included in the segment.

                    • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                    • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                    • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                    • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                    • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                    • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

          • FilterType (string) --

            The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Eventsresource) occurs.

        • Frequency (string) --

          Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.

        • IsLocalTime (boolean) --

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

        • QuietTime (dict) --

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

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

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

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

          If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, 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.

        • StartTime (string) --

          The scheduled time when the campaign began or will begin. Valid values are: IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.

        • Timezone (string) --

          The starting UTC offset for the campaign schedule, if the value of the IsLocalTime 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+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10, and UTC-11.

      • SegmentId (string) --

        The unique identifier for the segment that's associated with the campaign.

      • SegmentVersion (integer) --

        The version number of the segment that's associated with the campaign.

      • State (dict) --

        The current status of the campaign.

        • CampaignStatus (string) --

          The current status of the campaign, or the current status of a treatment that belongs to an A/B test campaign.

          If a campaign uses A/B testing, the campaign has a status of COMPLETED only if all campaign treatments have a status of COMPLETED. If you delete the segment that's associated with a campaign, the campaign fails and has a status of DELETED.

      • tags (dict) --

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

        • (string) --

          • (string) --

      • TemplateConfiguration (dict) --

        The message template that’s used for the campaign.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a 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.

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • VoiceTemplate (dict) --

          The voice template to use for the message. This object isn't supported for campaigns.

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

          • Version (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

      • TreatmentDescription (string) --

        The custom description of the default treatment for the campaign.

      • TreatmentName (string) --

        The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.

      • Version (integer) --

        The version number of the campaign.

UpdateJourney (updated) Link ΒΆ
Changes (request, response)
Request
{'WriteJourneyRequest': {'Activities': {'SMS': {'MessageConfig': {'OriginationNumber': 'string'}}}}}
Response
{'JourneyResponse': {'Activities': {'SMS': {'MessageConfig': {'OriginationNumber': 'string'}}}}}

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': {
                'CUSTOM': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ],
                    'MessageConfig': {
                        'Data': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'PUSH': {
                    'MessageConfig': {
                        'TimeToLive': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'SMS': {
                    'MessageConfig': {
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                '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',
            'EventStartCondition': {
                'EventFilter': {
                    'Dimensions': {
                        'Attributes': {
                            'string': {
                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                'Values': [
                                    'string',
                                ]
                            }
                        },
                        'EventType': {
                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                            'Values': [
                                'string',
                            ]
                        },
                        'Metrics': {
                            'string': {
                                'ComparisonOperator': 'string',
                                'Value': 123.0
                            }
                        }
                    },
                    'FilterType': 'SYSTEM'|'ENDPOINT'
                },
                'SegmentId': '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) --

    A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity. An activity identifier can contain a maximum of 100 characters. The characters must be alphanumeric characters.

    • (string) --

      • (dict) --

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

        • CUSTOM (dict) --

          The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.

          • DeliveryUri (string) --

            The destination to send the campaign or treatment to. This value can be one of the following:

            • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

            • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

          • EndpointTypes (list) --

            The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

            • (string) --

          • MessageConfig (dict) --

            Specifies the message data included in a custom channel message that's sent to participants in a journey.

            • Data (string) --

              The message content that's passed to an AWS Lambda function or to a web hook.

          • NextActivity (string) --

            The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.

          • TemplateName (string) --

            The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.

          • TemplateVersion (string) --

            The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • 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 have attributes matching the values are included in the segment.

                            • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                            • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                            • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                            • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                            • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                            • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                      • 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 have attributes matching the values are included in the segment.

                          • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                          • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                          • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                          • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                          • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                          • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                          • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                          • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                          • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                          • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                          • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                          • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 to wait, as a duration in ISO 8601 format, 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 conditions aren't met.

          • TrueActivity (string) --

            The unique identifier for the activity to perform if the conditions are 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) --

            Specifies the sender address for an email message that's sent to participants in the journey.

            • 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 message template to use for the message. If specified, this value must match the name of an existing message template.

          • TemplateVersion (string) --

            The unique identifier for the version of the email template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

            To determine which participants are held out, Amazon Pinpoint applies a probability-based algorithm to the percentage that you specify. Therefore, the actual percentage of participants who are held out may not be equal to the percentage that you specify.

        • MultiCondition (dict) --

          The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) 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 have attributes matching the values are included in the segment.

                            • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                            • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                            • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                            • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                            • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                            • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                      • 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 have attributes matching the values are included in the segment.

                          • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                          • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                          • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                          • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                          • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                          • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                          • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                          • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                          • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                          • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                          • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                          • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 unique identifier for the activity to perform for participants who don't meet any of the conditions specified for other paths 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 to wait, as a duration in ISO 8601 format, 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.

        • PUSH (dict) --

          The settings for a push notification activity. This type of activity sends a push notification to participants.

          • MessageConfig (dict) --

            Specifies the time to live (TTL) value for push notifications that are sent to participants in a journey.

            • TimeToLive (string) --

              The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

              This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

          • NextActivity (string) --

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

          • TemplateName (string) --

            The name of the push notification template to use for the message. If specified, this value must match the name of an existing message template.

          • TemplateVersion (string) --

            The unique identifier for the version of the push notification template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                To determine which participants are sent down each path, Amazon Pinpoint applies a probability-based algorithm to the percentages that you specify for the paths. Therefore, the actual percentage of participants who are sent down a path may not be equal to the percentage that you specify.

        • SMS (dict) --

          The settings for an SMS activity. This type of activity sends a text message to participants.

          • MessageConfig (dict) --

            Specifies the sender ID and message type for an SMS message that's sent to participants in a journey.

            • MessageType (string) --

              The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

            • OriginationNumber (string) --

              The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

            • 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. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.

          • NextActivity (string) --

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

          • TemplateName (string) --

            The name of the SMS message template to use for the message. If specified, this value must match the name of an existing message template.

          • TemplateVersion (string) --

            The unique identifier for the version of the SMS template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

            If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

        • 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 to wait, as a duration in ISO 8601 format, 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. The identifier for this activity can contain a maximum of 128 characters. The characters must be alphanumeric characters.

  • StartCondition (dict) --

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

    • Description (string) --

      The custom description of the condition.

    • EventStartCondition (dict) --

      Specifies the settings for an event that causes a journey activity to start.

      • EventFilter (dict) --

        Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.

        • Dimensions (dict) -- [REQUIRED]

          The dimensions for the event filter to use for the campaign or the journey 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 have attributes matching the values are included in the segment.

                  • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                  • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                  • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                  • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                  • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                  • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

        • FilterType (string) -- [REQUIRED]

          The type of event that causes the campaign to be sent or the journey activity to be performed. Valid values are: SYSTEM, sends the campaign or performs the activity when a system event occurs; and, ENDPOINT, sends the campaign or performs the activity when an endpoint event (Events resource) occurs.

      • SegmentId (string) --

    • 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': {
                'CUSTOM': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ],
                    'MessageConfig': {
                        'Data': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'PUSH': {
                    'MessageConfig': {
                        'TimeToLive': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'SMS': {
                    'MessageConfig': {
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                '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',
            'EventStartCondition': {
                'EventFilter': {
                    'Dimensions': {
                        'Attributes': {
                            'string': {
                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                'Values': [
                                    'string',
                                ]
                            }
                        },
                        'EventType': {
                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                            'Values': [
                                'string',
                            ]
                        },
                        'Metrics': {
                            'string': {
                                'ComparisonOperator': 'string',
                                'Value': 123.0
                            }
                        }
                    },
                    'FilterType': 'SYSTEM'|'ENDPOINT'
                },
                'SegmentId': '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) --

        A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

        • (string) --

          • (dict) --

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

            • CUSTOM (dict) --

              The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.

              • DeliveryUri (string) --

                The destination to send the campaign or treatment to. This value can be one of the following:

                • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

                • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

              • EndpointTypes (list) --

                The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

                • (string) --

              • MessageConfig (dict) --

                Specifies the message data included in a custom channel message that's sent to participants in a journey.

                • Data (string) --

                  The message content that's passed to an AWS Lambda function or to a web hook.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.

              • TemplateName (string) --

                The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 to wait, as a duration in ISO 8601 format, 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 conditions aren't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the conditions are 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) --

                Specifies the sender address for an email message that's sent to participants in the journey.

                • 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 message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the email template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                To determine which participants are held out, Amazon Pinpoint applies a probability-based algorithm to the percentage that you specify. Therefore, the actual percentage of participants who are held out may not be equal to the percentage that you specify.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 unique identifier for the activity to perform for participants who don't meet any of the conditions specified for other paths 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 to wait, as a duration in ISO 8601 format, 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.

            • PUSH (dict) --

              The settings for a push notification activity. This type of activity sends a push notification to participants.

              • MessageConfig (dict) --

                Specifies the time to live (TTL) value for push notifications that are sent to participants in a journey.

                • TimeToLive (string) --

                  The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                  This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the push notification template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the push notification template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                    To determine which participants are sent down each path, Amazon Pinpoint applies a probability-based algorithm to the percentages that you specify for the paths. Therefore, the actual percentage of participants who are sent down a path may not be equal to the percentage that you specify.

            • SMS (dict) --

              The settings for an SMS activity. This type of activity sends a text message to participants.

              • MessageConfig (dict) --

                Specifies the sender ID and message type for an SMS message that's sent to participants in a journey.

                • MessageType (string) --

                  The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

                • OriginationNumber (string) --

                  The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

                • 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. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the SMS message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the SMS template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 to wait, as a duration in ISO 8601 format, 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.

        • EventStartCondition (dict) --

          Specifies the settings for an event that causes a journey activity to start.

          • EventFilter (dict) --

            Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.

            • Dimensions (dict) --

              The dimensions for the event filter to use for the campaign or the journey 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 have attributes matching the values are included in the segment.

                      • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                      • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                      • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                      • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                      • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                      • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

            • FilterType (string) --

              The type of event that causes the campaign to be sent or the journey activity to be performed. Valid values are: SYSTEM, sends the campaign or performs the activity when a system event occurs; and, ENDPOINT, sends the campaign or performs the activity when an endpoint event (Events resource) occurs.

          • SegmentId (string) --

        • 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 continue the journey.

      • tags (dict) --

        This object is not used or supported.

        • (string) --

          • (string) --

UpdateJourneyState (updated) Link ΒΆ
Changes (response)
{'JourneyResponse': {'Activities': {'SMS': {'MessageConfig': {'OriginationNumber': 'string'}}}}}

Cancels (stops) 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': {
                'CUSTOM': {
                    'DeliveryUri': 'string',
                    'EndpointTypes': [
                        'PUSH'|'GCM'|'APNS'|'APNS_SANDBOX'|'APNS_VOIP'|'APNS_VOIP_SANDBOX'|'ADM'|'SMS'|'VOICE'|'EMAIL'|'BAIDU'|'CUSTOM',
                    ],
                    'MessageConfig': {
                        'Data': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'ConditionalSplit': {
                    'Condition': {
                        'Conditions': [
                            {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                        ],
                        'Operator': 'ALL'|'ANY'
                    },
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    },
                    'FalseActivity': 'string',
                    'TrueActivity': 'string'
                },
                'Description': 'string',
                'EMAIL': {
                    'MessageConfig': {
                        'FromAddress': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'Holdout': {
                    'NextActivity': 'string',
                    'Percentage': 123
                },
                'MultiCondition': {
                    'Branches': [
                        {
                            'Condition': {
                                'EventCondition': {
                                    'Dimensions': {
                                        'Attributes': {
                                            'string': {
                                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                                '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            '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'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                            'Values': [
                                                'string',
                                            ]
                                        }
                                    }
                                }
                            },
                            'NextActivity': 'string'
                        },
                    ],
                    'DefaultActivity': 'string',
                    'EvaluationWaitTime': {
                        'WaitFor': 'string',
                        'WaitUntil': 'string'
                    }
                },
                'PUSH': {
                    'MessageConfig': {
                        'TimeToLive': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                'RandomSplit': {
                    'Branches': [
                        {
                            'NextActivity': 'string',
                            'Percentage': 123
                        },
                    ]
                },
                'SMS': {
                    'MessageConfig': {
                        'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
                        'OriginationNumber': 'string',
                        'SenderId': 'string'
                    },
                    'NextActivity': 'string',
                    'TemplateName': 'string',
                    'TemplateVersion': 'string'
                },
                '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',
            'EventStartCondition': {
                'EventFilter': {
                    'Dimensions': {
                        'Attributes': {
                            'string': {
                                'AttributeType': 'INCLUSIVE'|'EXCLUSIVE'|'CONTAINS'|'BEFORE'|'AFTER'|'ON'|'BETWEEN',
                                'Values': [
                                    'string',
                                ]
                            }
                        },
                        'EventType': {
                            'DimensionType': 'INCLUSIVE'|'EXCLUSIVE',
                            'Values': [
                                'string',
                            ]
                        },
                        'Metrics': {
                            'string': {
                                'ComparisonOperator': 'string',
                                'Value': 123.0
                            }
                        }
                    },
                    'FilterType': 'SYSTEM'|'ENDPOINT'
                },
                'SegmentId': '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) --

        A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

        • (string) --

          • (dict) --

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

            • CUSTOM (dict) --

              The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.

              • DeliveryUri (string) --

                The destination to send the campaign or treatment to. This value can be one of the following:

                • The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or treatment.

                • The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a full URL, including the HTTPS protocol.

              • EndpointTypes (list) --

                The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can associate with an endpoint by using the ChannelType property of an endpoint.

                • (string) --

              • MessageConfig (dict) --

                Specifies the message data included in a custom channel message that's sent to participants in a journey.

                • Data (string) --

                  The message content that's passed to an AWS Lambda function or to a web hook.

              • NextActivity (string) --

                The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or web hook.

              • TemplateName (string) --

                The name of the custom message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the message template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 to wait, as a duration in ISO 8601 format, 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 conditions aren't met.

              • TrueActivity (string) --

                The unique identifier for the activity to perform if the conditions are 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) --

                Specifies the sender address for an email message that's sent to participants in the journey.

                • 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 message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the email template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                To determine which participants are held out, Amazon Pinpoint applies a probability-based algorithm to the percentage that you specify. Therefore, the actual percentage of participants who are held out may not be equal to the percentage that you specify.

            • MultiCondition (dict) --

              The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) 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 have attributes matching the values are included in the segment.

                                • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                                • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                                • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                                • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                                • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                                • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

                          • 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 have attributes matching the values are included in the segment.

                              • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                              • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                              • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                              • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                              • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                              • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 unique identifier for the activity to perform for participants who don't meet any of the conditions specified for other paths 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 to wait, as a duration in ISO 8601 format, 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.

            • PUSH (dict) --

              The settings for a push notification activity. This type of activity sends a push notification to participants.

              • MessageConfig (dict) --

                Specifies the time to live (TTL) value for push notifications that are sent to participants in a journey.

                • TimeToLive (string) --

                  The number of seconds that the push notification service should keep the message, if the service is unable to deliver the notification the first time. This value is converted to an expiration value when it's sent to a push-notification service. If this value is 0, the service treats the notification as if it expires immediately and the service doesn't store or try to deliver the notification again.

                  This value doesn't apply to messages that are sent through the Amazon Device Messaging (ADM) service.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the push notification template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the push notification template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

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

                    To determine which participants are sent down each path, Amazon Pinpoint applies a probability-based algorithm to the percentages that you specify for the paths. Therefore, the actual percentage of participants who are sent down a path may not be equal to the percentage that you specify.

            • SMS (dict) --

              The settings for an SMS activity. This type of activity sends a text message to participants.

              • MessageConfig (dict) --

                Specifies the sender ID and message type for an SMS message that's sent to participants in a journey.

                • MessageType (string) --

                  The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).

                • OriginationNumber (string) --

                  The long code to send the SMS 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 using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.

                • 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. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide.

              • NextActivity (string) --

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

              • TemplateName (string) --

                The name of the SMS message template to use for the message. If specified, this value must match the name of an existing message template.

              • TemplateVersion (string) --

                The unique identifier for the version of the SMS template to use for the message. If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versionsresource.

                If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.

            • 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 to wait, as a duration in ISO 8601 format, 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.

        • EventStartCondition (dict) --

          Specifies the settings for an event that causes a journey activity to start.

          • EventFilter (dict) --

            Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.

            • Dimensions (dict) --

              The dimensions for the event filter to use for the campaign or the journey 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 have attributes matching the values are included in the segment.

                      • EXCLUSIVE - endpoints that have attributes matching the values are excluded in the segment.

                      • CONTAINS - endpoints that have attributes' substrings match the values are included in the segment.

                      • BEFORE - endpoints with attributes read as ISO_INSTANT datetimes before the value are included in the segment.

                      • AFTER - endpoints with attributes read as ISO_INSTANT datetimes after the value are included in the segment.

                      • ON - endpoints with attributes read as ISO_INSTANT dates on the value are included in the segment. Time is ignored in this comparison.

                      • BETWEEN - endpoints with attributes read as ISO_INSTANT datetimes between the values are included in 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 event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide .

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

            • FilterType (string) --

              The type of event that causes the campaign to be sent or the journey activity to be performed. Valid values are: SYSTEM, sends the campaign or performs the activity when a system event occurs; and, ENDPOINT, sends the campaign or performs the activity when an endpoint event (Events resource) occurs.

          • SegmentId (string) --

        • 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 continue the journey.

      • tags (dict) --

        This object is not used or supported.

        • (string) --

          • (string) --