Class: AWS.Pinpoint
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Pinpoint
- Identifier:
- pinpoint
- API Version:
- 2016-12-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Doc Engage API - Amazon Pinpoint API
Sending a Request Using Pinpoint
var pinpoint = new AWS.Pinpoint();
pinpoint.createApp(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Pinpoint object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var pinpoint = new AWS.Pinpoint({apiVersion: '2016-12-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the pinpoint service identifier:
AWS.config.apiVersions = {
pinpoint: '2016-12-01',
// other service API versions
};
var pinpoint = new AWS.Pinpoint();
Version:
-
2016-12-01
Constructor Summary collapse
-
new AWS.Pinpoint(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
createApp(params = {}, callback) ⇒ AWS.Request
Creates an application.
.
-
createCampaign(params = {}, callback) ⇒ AWS.Request
Creates a new campaign for an application or updates the settings of an existing campaign for an application.
.
-
createEmailTemplate(params = {}, callback) ⇒ AWS.Request
Creates a message template for messages that are sent through the email channel.
.
-
createExportJob(params = {}, callback) ⇒ AWS.Request
Creates an export job for an application.
.
-
createImportJob(params = {}, callback) ⇒ AWS.Request
Creates an import job for an application.
.
-
createInAppTemplate(params = {}, callback) ⇒ AWS.Request
Creates a new message template for messages using the in-app message channel.
.
-
createJourney(params = {}, callback) ⇒ AWS.Request
Creates a journey for an application.
.
-
createPushTemplate(params = {}, callback) ⇒ AWS.Request
Creates a message template for messages that are sent through a push notification channel.
.
-
createRecommenderConfiguration(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Pinpoint configuration for a recommender model.
.
-
createSegment(params = {}, callback) ⇒ AWS.Request
Creates a new segment for an application or updates the configuration, dimension, and other settings for an existing segment that's associated with an application.
.
-
createSmsTemplate(params = {}, callback) ⇒ AWS.Request
Creates a message template for messages that are sent through the SMS channel.
.
-
createVoiceTemplate(params = {}, callback) ⇒ AWS.Request
Creates a message template for messages that are sent through the voice channel.
.
-
deleteAdmChannel(params = {}, callback) ⇒ AWS.Request
Disables the ADM channel for an application and deletes any existing settings for the channel.
.
-
deleteApnsChannel(params = {}, callback) ⇒ AWS.Request
Disables the APNs channel for an application and deletes any existing settings for the channel.
.
-
deleteApnsSandboxChannel(params = {}, callback) ⇒ AWS.Request
Disables the APNs sandbox channel for an application and deletes any existing settings for the channel.
.
-
deleteApnsVoipChannel(params = {}, callback) ⇒ AWS.Request
Disables the APNs VoIP channel for an application and deletes any existing settings for the channel.
.
-
deleteApnsVoipSandboxChannel(params = {}, callback) ⇒ AWS.Request
Disables the APNs VoIP sandbox channel for an application and deletes any existing settings for the channel.
.
-
deleteApp(params = {}, callback) ⇒ AWS.Request
Deletes an application.
.
-
deleteBaiduChannel(params = {}, callback) ⇒ AWS.Request
Disables the Baidu channel for an application and deletes any existing settings for the channel.
.
-
deleteCampaign(params = {}, callback) ⇒ AWS.Request
Deletes a campaign from an application.
.
-
deleteEmailChannel(params = {}, callback) ⇒ AWS.Request
Disables the email channel for an application and deletes any existing settings for the channel.
.
-
deleteEmailTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages that were sent through the email channel.
.
-
deleteEndpoint(params = {}, callback) ⇒ AWS.Request
Deletes an endpoint from an application.
.
-
deleteEventStream(params = {}, callback) ⇒ AWS.Request
Deletes the event stream for an application.
.
-
deleteGcmChannel(params = {}, callback) ⇒ AWS.Request
Disables the GCM channel for an application and deletes any existing settings for the channel.
.
-
deleteInAppTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages sent using the in-app message channel.
.
-
deleteJourney(params = {}, callback) ⇒ AWS.Request
Deletes a journey from an application.
.
-
deletePushTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages that were sent through a push notification channel.
.
-
deleteRecommenderConfiguration(params = {}, callback) ⇒ AWS.Request
Deletes an Amazon Pinpoint configuration for a recommender model.
.
-
deleteSegment(params = {}, callback) ⇒ AWS.Request
Deletes a segment from an application.
.
-
deleteSmsChannel(params = {}, callback) ⇒ AWS.Request
Disables the SMS channel for an application and deletes any existing settings for the channel.
.
-
deleteSmsTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages that were sent through the SMS channel.
.
-
deleteUserEndpoints(params = {}, callback) ⇒ AWS.Request
Deletes all the endpoints that are associated with a specific user ID.
.
-
deleteVoiceChannel(params = {}, callback) ⇒ AWS.Request
Disables the voice channel for an application and deletes any existing settings for the channel.
.
-
deleteVoiceTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages that were sent through the voice channel.
.
-
getAdmChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the ADM channel for an application.
.
-
getApnsChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the APNs channel for an application.
.
-
getApnsSandboxChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the APNs sandbox channel for an application.
.
-
getApnsVoipChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the APNs VoIP channel for an application.
.
-
getApnsVoipSandboxChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the APNs VoIP sandbox channel for an application.
.
-
getApp(params = {}, callback) ⇒ AWS.Request
Retrieves information about an application.
.
-
getApplicationDateRangeKpi(params = {}, callback) ⇒ AWS.Request
Retrieves (queries) pre-aggregated data for a standard metric that applies to an application.
.
-
getApplicationSettings(params = {}, callback) ⇒ AWS.Request
Retrieves information about the settings for an application.
.
-
getApps(params = {}, callback) ⇒ AWS.Request
Retrieves information about all the applications that are associated with your Amazon Pinpoint account.
.
-
getBaiduChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the Baidu channel for an application.
.
-
getCampaign(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status, configuration, and other settings for a campaign.
.
-
getCampaignActivities(params = {}, callback) ⇒ AWS.Request
Retrieves information about all the activities for a campaign.
.
-
getCampaignDateRangeKpi(params = {}, callback) ⇒ AWS.Request
Retrieves (queries) pre-aggregated data for a standard metric that applies to a campaign.
.
-
getCampaigns(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status, configuration, and other settings for all the campaigns that are associated with an application.
.
-
getCampaignVersion(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status, configuration, and other settings for a specific version of a campaign.
.
-
getCampaignVersions(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status, configuration, and other settings for all versions of a campaign.
.
-
getChannels(params = {}, callback) ⇒ AWS.Request
Retrieves information about the history and status of each channel for an application.
.
-
getEmailChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the email channel for an application.
.
-
getEmailTemplate(params = {}, callback) ⇒ AWS.Request
Retrieves the content and settings of a message template for messages that are sent through the email channel.
.
-
getEndpoint(params = {}, callback) ⇒ AWS.Request
Retrieves information about the settings and attributes of a specific endpoint for an application.
.
-
getEventStream(params = {}, callback) ⇒ AWS.Request
Retrieves information about the event stream settings for an application.
.
-
getExportJob(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of a specific export job for an application.
.
-
getExportJobs(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of all the export jobs for an application.
.
-
getGcmChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the GCM channel for an application.
.
-
getImportJob(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of a specific import job for an application.
.
-
getImportJobs(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of all the import jobs for an application.
.
-
getInAppMessages(params = {}, callback) ⇒ AWS.Request
Retrieves the in-app messages targeted for the provided endpoint ID.
.
-
getInAppTemplate(params = {}, callback) ⇒ AWS.Request
Retrieves the content and settings of a message template for messages sent through the in-app channel.
.
-
getJourney(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status, configuration, and other settings for a journey.
.
-
getJourneyDateRangeKpi(params = {}, callback) ⇒ AWS.Request
Retrieves (queries) pre-aggregated data for a standard engagement metric that applies to a journey.
.
-
getJourneyExecutionActivityMetrics(params = {}, callback) ⇒ AWS.Request
Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey activity.
.
-
getJourneyExecutionMetrics(params = {}, callback) ⇒ AWS.Request
Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey.
.
-
getJourneyRunExecutionActivityMetrics(params = {}, callback) ⇒ AWS.Request
Retrieves (queries) pre-aggregated data for a standard run execution metric that applies to a journey activity.
.
-
getJourneyRunExecutionMetrics(params = {}, callback) ⇒ AWS.Request
Retrieves (queries) pre-aggregated data for a standard run execution metric that applies to a journey.
.
-
getJourneyRuns(params = {}, callback) ⇒ AWS.Request
Provides information about the runs of a journey.
.
-
getPushTemplate(params = {}, callback) ⇒ AWS.Request
Retrieves the content and settings of a message template for messages that are sent through a push notification channel.
.
-
getRecommenderConfiguration(params = {}, callback) ⇒ AWS.Request
Retrieves information about an Amazon Pinpoint configuration for a recommender model.
.
-
getRecommenderConfigurations(params = {}, callback) ⇒ AWS.Request
Retrieves information about all the recommender model configurations that are associated with your Amazon Pinpoint account.
.
-
getSegment(params = {}, callback) ⇒ AWS.Request
Retrieves information about the configuration, dimension, and other settings for a specific segment that's associated with an application.
.
-
getSegmentExportJobs(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the export jobs for a segment.
.
-
getSegmentImportJobs(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the import jobs for a segment.
.
-
getSegments(params = {}, callback) ⇒ AWS.Request
Retrieves information about the configuration, dimension, and other settings for all the segments that are associated with an application.
.
-
getSegmentVersion(params = {}, callback) ⇒ AWS.Request
Retrieves information about the configuration, dimension, and other settings for a specific version of a segment that's associated with an application.
.
-
getSegmentVersions(params = {}, callback) ⇒ AWS.Request
Retrieves information about the configuration, dimension, and other settings for all the versions of a specific segment that's associated with an application.
.
-
getSmsChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the SMS channel for an application.
.
-
getSmsTemplate(params = {}, callback) ⇒ AWS.Request
Retrieves the content and settings of a message template for messages that are sent through the SMS channel.
.
-
getUserEndpoints(params = {}, callback) ⇒ AWS.Request
Retrieves information about all the endpoints that are associated with a specific user ID.
.
-
getVoiceChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the voice channel for an application.
.
-
getVoiceTemplate(params = {}, callback) ⇒ AWS.Request
Retrieves the content and settings of a message template for messages that are sent through the voice channel.
.
-
listJourneys(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status, configuration, and other settings for all the journeys that are associated with an application.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Retrieves all the tags (keys and values) that are associated with an application, campaign, message template, or segment.
.
-
listTemplates(params = {}, callback) ⇒ AWS.Request
Retrieves information about all the message templates that are associated with your Amazon Pinpoint account.
.
-
listTemplateVersions(params = {}, callback) ⇒ AWS.Request
Retrieves information about all the versions of a specific message template.
.
-
phoneNumberValidate(params = {}, callback) ⇒ AWS.Request
Retrieves information about a phone number.
.
-
putEvents(params = {}, callback) ⇒ AWS.Request
Creates a new event to record for endpoints, or creates or updates endpoint data that existing events are associated with.
.
-
putEventStream(params = {}, callback) ⇒ AWS.Request
Creates a new event stream for an application or updates the settings of an existing event stream for an application.
.
-
removeAttributes(params = {}, callback) ⇒ AWS.Request
Removes one or more custom attributes, of the same attribute type, from the application.
-
sendMessages(params = {}, callback) ⇒ AWS.Request
Creates and sends a direct message.
.
-
sendOTPMessage(params = {}, callback) ⇒ AWS.Request
Send an OTP message
.
-
sendUsersMessages(params = {}, callback) ⇒ AWS.Request
Creates and sends a message to a list of users.
.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Adds one or more tags (keys and values) to an application, campaign, message template, or segment.
.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes one or more tags (keys and values) from an application, campaign, message template, or segment.
.
-
updateAdmChannel(params = {}, callback) ⇒ AWS.Request
Enables the ADM channel for an application or updates the status and settings of the ADM channel for an application.
.
-
updateApnsChannel(params = {}, callback) ⇒ AWS.Request
Enables the APNs channel for an application or updates the status and settings of the APNs channel for an application.
.
-
updateApnsSandboxChannel(params = {}, callback) ⇒ AWS.Request
Enables the APNs sandbox channel for an application or updates the status and settings of the APNs sandbox channel for an application.
.
-
updateApnsVoipChannel(params = {}, callback) ⇒ AWS.Request
Enables the APNs VoIP channel for an application or updates the status and settings of the APNs VoIP channel for an application.
.
-
updateApnsVoipSandboxChannel(params = {}, callback) ⇒ AWS.Request
Enables the APNs VoIP sandbox channel for an application or updates the status and settings of the APNs VoIP sandbox channel for an application.
.
-
updateApplicationSettings(params = {}, callback) ⇒ AWS.Request
Updates the settings for an application.
.
-
updateBaiduChannel(params = {}, callback) ⇒ AWS.Request
Enables the Baidu channel for an application or updates the status and settings of the Baidu channel for an application.
.
-
updateCampaign(params = {}, callback) ⇒ AWS.Request
Updates the configuration and other settings for a campaign.
.
-
updateEmailChannel(params = {}, callback) ⇒ AWS.Request
Enables the email channel for an application or updates the status and settings of the email channel for an application.
.
-
updateEmailTemplate(params = {}, callback) ⇒ AWS.Request
Updates an existing message template for messages that are sent through the email channel.
.
-
updateEndpoint(params = {}, callback) ⇒ AWS.Request
Creates a new endpoint for an application or updates the settings and attributes of an existing endpoint for an application.
-
updateEndpointsBatch(params = {}, callback) ⇒ AWS.Request
Creates a new batch of endpoints for an application or updates the settings and attributes of a batch of existing endpoints for an application.
-
updateGcmChannel(params = {}, callback) ⇒ AWS.Request
Enables the GCM channel for an application or updates the status and settings of the GCM channel for an application.
.
-
updateInAppTemplate(params = {}, callback) ⇒ AWS.Request
Updates an existing message template for messages sent through the in-app message channel.
.
-
updateJourney(params = {}, callback) ⇒ AWS.Request
Updates the configuration and other settings for a journey.
.
-
updateJourneyState(params = {}, callback) ⇒ AWS.Request
Cancels (stops) an active journey.
.
-
updatePushTemplate(params = {}, callback) ⇒ AWS.Request
Updates an existing message template for messages that are sent through a push notification channel.
.
-
updateRecommenderConfiguration(params = {}, callback) ⇒ AWS.Request
Updates an Amazon Pinpoint configuration for a recommender model.
.
-
updateSegment(params = {}, callback) ⇒ AWS.Request
Creates a new segment for an application or updates the configuration, dimension, and other settings for an existing segment that's associated with an application.
.
-
updateSmsChannel(params = {}, callback) ⇒ AWS.Request
Enables the SMS channel for an application or updates the status and settings of the SMS channel for an application.
.
-
updateSmsTemplate(params = {}, callback) ⇒ AWS.Request
Updates an existing message template for messages that are sent through the SMS channel.
.
-
updateTemplateActiveVersion(params = {}, callback) ⇒ AWS.Request
Changes the status of a specific version of a message template to active.
.
-
updateVoiceChannel(params = {}, callback) ⇒ AWS.Request
Enables the voice channel for an application or updates the status and settings of the voice channel for an application.
.
-
updateVoiceTemplate(params = {}, callback) ⇒ AWS.Request
Updates an existing message template for messages that are sent through the voice channel.
.
-
verifyOTPMessage(params = {}, callback) ⇒ AWS.Request
Verify an OTP
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.Pinpoint(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a Pinpoint object
var pinpoint = new AWS.Pinpoint({apiVersion: '2016-12-01'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.Pinpoint.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.Pinpoint.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.Pinpoint.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true
. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true
. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false
. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpoint
to be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4
. Body signing can only be disabled when using https. Defaults totrue
. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy
-
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true
-
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
base
option will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent
) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeout
milliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions
). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.config
object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true
. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true
. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false
. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true
. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false
. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false
.
Property Details
Method Details
createApp(params = {}, callback) ⇒ AWS.Request
Creates an application.
Service Reference:
Examples:
Calling the createApp operation
var params = {
CreateApplicationRequest: { /* required */
Name: 'STRING_VALUE', /* required */
tags: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
}
}
};
pinpoint.createApp(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
CreateApplicationRequest
— (map
)Specifies the display name of an application and the tags to associate with the application.
Name
— required — (String
)The display name of the application. This name is displayed as the Project name on the Amazon Pinpoint console.
tags
— (map<String>
)A string-to-string map of key-value pairs that defines the tags to associate with the application. Each tag consists of a required tag key and an associated tag value.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ApplicationResponse
— (map
)Provides information about an application.
Arn
— required — (String
)The Amazon Resource Name (ARN) of the application.
Id
— required — (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Name
— required — (String
)The display name of the application. This name is displayed as the Project name on the Amazon Pinpoint console.
tags
— (map<String>
)A string-to-string map of key-value pairs that identifies the tags that are associated with the application. Each tag consists of a required tag key and an associated tag value.
CreationDate
— (String
)The date and time when the Application was created.
-
(AWS.Response)
—
Returns:
createCampaign(params = {}, callback) ⇒ AWS.Request
Creates a new campaign for an application or updates the settings of an existing campaign for an application.
Service Reference:
Examples:
Calling the createCampaign operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
WriteCampaignRequest: { /* required */
AdditionalTreatments: [
{
SizePercent: 'NUMBER_VALUE', /* required */
CustomDeliveryConfiguration: {
DeliveryUri: 'STRING_VALUE', /* required */
EndpointTypes: [
PUSH | GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | VOICE | EMAIL | BAIDU | CUSTOM | IN_APP,
/* more items */
]
},
MessageConfiguration: {
ADMMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
APNSMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
BaiduMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
CustomMessage: {
Data: 'STRING_VALUE'
},
DefaultMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
EmailMessage: {
Body: 'STRING_VALUE',
FromAddress: 'STRING_VALUE',
HtmlBody: 'STRING_VALUE',
Title: 'STRING_VALUE'
},
GCMMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
InAppMessage: {
Body: 'STRING_VALUE',
Content: [
{
BackgroundColor: 'STRING_VALUE',
BodyConfig: {
Alignment: LEFT | CENTER | RIGHT, /* required */
Body: 'STRING_VALUE', /* required */
TextColor: 'STRING_VALUE' /* required */
},
HeaderConfig: {
Alignment: LEFT | CENTER | RIGHT, /* required */
Header: 'STRING_VALUE', /* required */
TextColor: 'STRING_VALUE' /* required */
},
ImageUrl: 'STRING_VALUE',
PrimaryBtn: {
Android: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
DefaultConfig: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Text: 'STRING_VALUE', /* required */
BackgroundColor: 'STRING_VALUE',
BorderRadius: 'NUMBER_VALUE',
Link: 'STRING_VALUE',
TextColor: 'STRING_VALUE'
},
IOS: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
Web: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
}
},
SecondaryBtn: {
Android: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
DefaultConfig: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Text: 'STRING_VALUE', /* required */
BackgroundColor: 'STRING_VALUE',
BorderRadius: 'NUMBER_VALUE',
Link: 'STRING_VALUE',
TextColor: 'STRING_VALUE'
},
IOS: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
Web: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
}
}
},
/* more items */
],
CustomConfig: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
},
Layout: BOTTOM_BANNER | TOP_BANNER | OVERLAYS | MOBILE_FEED | MIDDLE_BANNER | CAROUSEL
},
SMSMessage: {
Body: 'STRING_VALUE',
EntityId: 'STRING_VALUE',
MessageType: TRANSACTIONAL | PROMOTIONAL,
OriginationNumber: 'STRING_VALUE',
SenderId: 'STRING_VALUE',
TemplateId: 'STRING_VALUE'
}
},
Schedule: {
StartTime: 'STRING_VALUE', /* required */
EndTime: 'STRING_VALUE',
EventFilter: {
Dimensions: { /* required */
Attributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
},
EventType: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Metrics: {
'<__string>': {
ComparisonOperator: 'STRING_VALUE', /* required */
Value: 'NUMBER_VALUE' /* required */
},
/* '<__string>': ... */
}
},
FilterType: SYSTEM | ENDPOINT /* required */
},
Frequency: ONCE | HOURLY | DAILY | WEEKLY | MONTHLY | EVENT | IN_APP_EVENT,
IsLocalTime: true || false,
QuietTime: {
End: 'STRING_VALUE',
Start: 'STRING_VALUE'
},
Timezone: 'STRING_VALUE'
},
TemplateConfiguration: {
EmailTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
},
InAppTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
},
PushTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
},
SMSTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
},
VoiceTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
}
},
TreatmentDescription: 'STRING_VALUE',
TreatmentName: 'STRING_VALUE'
},
/* more items */
],
CustomDeliveryConfiguration: {
DeliveryUri: 'STRING_VALUE', /* required */
EndpointTypes: [
PUSH | GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | VOICE | EMAIL | BAIDU | CUSTOM | IN_APP,
/* more items */
]
},
Description: 'STRING_VALUE',
HoldoutPercent: 'NUMBER_VALUE',
Hook: {
LambdaFunctionName: 'STRING_VALUE',
Mode: DELIVERY | FILTER,
WebUrl: 'STRING_VALUE'
},
IsPaused: true || false,
Limits: {
Daily: 'NUMBER_VALUE',
MaximumDuration: 'NUMBER_VALUE',
MessagesPerSecond: 'NUMBER_VALUE',
Session: 'NUMBER_VALUE',
Total: 'NUMBER_VALUE'
},
MessageConfiguration: {
ADMMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
APNSMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
BaiduMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
CustomMessage: {
Data: 'STRING_VALUE'
},
DefaultMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
EmailMessage: {
Body: 'STRING_VALUE',
FromAddress: 'STRING_VALUE',
HtmlBody: 'STRING_VALUE',
Title: 'STRING_VALUE'
},
GCMMessage: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageSmallIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
JsonBody: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SilentPush: true || false,
TimeToLive: 'NUMBER_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
InAppMessage: {
Body: 'STRING_VALUE',
Content: [
{
BackgroundColor: 'STRING_VALUE',
BodyConfig: {
Alignment: LEFT | CENTER | RIGHT, /* required */
Body: 'STRING_VALUE', /* required */
TextColor: 'STRING_VALUE' /* required */
},
HeaderConfig: {
Alignment: LEFT | CENTER | RIGHT, /* required */
Header: 'STRING_VALUE', /* required */
TextColor: 'STRING_VALUE' /* required */
},
ImageUrl: 'STRING_VALUE',
PrimaryBtn: {
Android: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
DefaultConfig: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Text: 'STRING_VALUE', /* required */
BackgroundColor: 'STRING_VALUE',
BorderRadius: 'NUMBER_VALUE',
Link: 'STRING_VALUE',
TextColor: 'STRING_VALUE'
},
IOS: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
Web: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
}
},
SecondaryBtn: {
Android: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
DefaultConfig: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Text: 'STRING_VALUE', /* required */
BackgroundColor: 'STRING_VALUE',
BorderRadius: 'NUMBER_VALUE',
Link: 'STRING_VALUE',
TextColor: 'STRING_VALUE'
},
IOS: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
Web: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
}
}
},
/* more items */
],
CustomConfig: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
},
Layout: BOTTOM_BANNER | TOP_BANNER | OVERLAYS | MOBILE_FEED | MIDDLE_BANNER | CAROUSEL
},
SMSMessage: {
Body: 'STRING_VALUE',
EntityId: 'STRING_VALUE',
MessageType: TRANSACTIONAL | PROMOTIONAL,
OriginationNumber: 'STRING_VALUE',
SenderId: 'STRING_VALUE',
TemplateId: 'STRING_VALUE'
}
},
Name: 'STRING_VALUE',
Priority: 'NUMBER_VALUE',
Schedule: {
StartTime: 'STRING_VALUE', /* required */
EndTime: 'STRING_VALUE',
EventFilter: {
Dimensions: { /* required */
Attributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
},
EventType: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Metrics: {
'<__string>': {
ComparisonOperator: 'STRING_VALUE', /* required */
Value: 'NUMBER_VALUE' /* required */
},
/* '<__string>': ... */
}
},
FilterType: SYSTEM | ENDPOINT /* required */
},
Frequency: ONCE | HOURLY | DAILY | WEEKLY | MONTHLY | EVENT | IN_APP_EVENT,
IsLocalTime: true || false,
QuietTime: {
End: 'STRING_VALUE',
Start: 'STRING_VALUE'
},
Timezone: 'STRING_VALUE'
},
SegmentId: 'STRING_VALUE',
SegmentVersion: 'NUMBER_VALUE',
TemplateConfiguration: {
EmailTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
},
InAppTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
},
PushTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
},
SMSTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
},
VoiceTemplate: {
Name: 'STRING_VALUE',
Version: 'STRING_VALUE'
}
},
TreatmentDescription: 'STRING_VALUE',
TreatmentName: 'STRING_VALUE',
tags: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
}
}
};
pinpoint.createCampaign(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
WriteCampaignRequest
— (map
)Specifies the configuration and other settings for a campaign.
AdditionalTreatments
— (Array<map>
)An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
CustomDeliveryConfiguration
— (map
)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
— required — (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
— (Array<String>
)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.
MessageConfiguration
— (map
)The message configuration settings for the treatment.
ADMMessage
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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).
Possible values include:"TRANSACTIONAL"
"PROMOTIONAL"
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.
EntityId
— (String
)The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
TemplateId
— (String
)The template ID received from the regulatory body for sending SMS in your country.
InAppMessage
— (map
)The in-app message configuration.
Body
— (String
)The message body of the notification, the email body or the text message.
Content
— (Array<map>
)In-app message content.
BackgroundColor
— (String
)The background color for the message.
BodyConfig
— (map
)The configuration for the message body.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Body
— required — (String
)Message Body.
TextColor
— required — (String
)The text color.
HeaderConfig
— (map
)The configuration for the message header.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Header
— required — (String
)Message Header.
TextColor
— required — (String
)The text color.
ImageUrl
— (String
)The image url for the background of message.
PrimaryBtn
— (map
)The first button inside the message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
SecondaryBtn
— (map
)The second button inside message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
CustomConfig
— (map<String>
)Custom config to be sent to client.
Layout
— (String
)In-app message layout.
Possible values include:"BOTTOM_BANNER"
"TOP_BANNER"
"OVERLAYS"
"MOBILE_FEED"
"MIDDLE_BANNER"
"CAROUSEL"
Schedule
— (map
)The schedule settings for the treatment.
EndTime
— (String
)The scheduled time, in ISO 8601 format, when the campaign ended or will end.
EventFilter
— (map
)The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.
Dimensions
— required — (map
)The dimension settings of the event filter for the campaign.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
FilterType
— required — (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 (Events resource) occurs.
Possible values include:"SYSTEM"
"ENDPOINT"
Frequency
— (String
)Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.
Possible values include:"ONCE"
"HOURLY"
"DAILY"
"WEEKLY"
"MONTHLY"
"EVENT"
"IN_APP_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
— (map
)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
— required — (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
— required — (Integer
)The allocated percentage of users (segment members) to send the treatment to.
TemplateConfiguration
— (map
)The message template to use for the treatment.
EmailTemplate
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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.
InAppTemplate
— (map
)The InApp template to use for the message. The InApp template object is not supported for SendMessages.
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 Versions resource.
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
— (map
)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
— required — (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
— (Array<String>
)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.
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
— (map
)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.
"DELIVERY"
"FILTER"
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
— (map
)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.
Session
— (Integer
)The maximum total number of messages that the campaign can send per user session.
MessageConfiguration
— (map
)The message configuration settings for the campaign.
ADMMessage
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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).
Possible values include:"TRANSACTIONAL"
"PROMOTIONAL"
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.
EntityId
— (String
)The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
TemplateId
— (String
)The template ID received from the regulatory body for sending SMS in your country.
InAppMessage
— (map
)The in-app message configuration.
Body
— (String
)The message body of the notification, the email body or the text message.
Content
— (Array<map>
)In-app message content.
BackgroundColor
— (String
)The background color for the message.
BodyConfig
— (map
)The configuration for the message body.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Body
— required — (String
)Message Body.
TextColor
— required — (String
)The text color.
HeaderConfig
— (map
)The configuration for the message header.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Header
— required — (String
)Message Header.
TextColor
— required — (String
)The text color.
ImageUrl
— (String
)The image url for the background of message.
PrimaryBtn
— (map
)The first button inside the message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
SecondaryBtn
— (map
)The second button inside message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
CustomConfig
— (map<String>
)Custom config to be sent to client.
Layout
— (String
)In-app message layout.
Possible values include:"BOTTOM_BANNER"
"TOP_BANNER"
"OVERLAYS"
"MOBILE_FEED"
"MIDDLE_BANNER"
"CAROUSEL"
Name
— (String
)A custom name for the campaign.
Schedule
— (map
)The schedule settings for the campaign.
EndTime
— (String
)The scheduled time, in ISO 8601 format, when the campaign ended or will end.
EventFilter
— (map
)The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.
Dimensions
— required — (map
)The dimension settings of the event filter for the campaign.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
FilterType
— required — (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 (Events resource) occurs.
Possible values include:"SYSTEM"
"ENDPOINT"
Frequency
— (String
)Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.
Possible values include:"ONCE"
"HOURLY"
"DAILY"
"WEEKLY"
"MONTHLY"
"EVENT"
"IN_APP_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
— (map
)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
— required — (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 to associate with the campaign.
SegmentVersion
— (Integer
)The version of the segment to associate with the campaign.
tags
— (map<String>
)Note: As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.(Deprecated) 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.
TemplateConfiguration
— (map
)The message template to use for the campaign.
EmailTemplate
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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.
InAppTemplate
— (map
)The InApp template to use for the message. The InApp template object is not supported for SendMessages.
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 Versions resource.
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.
Priority
— (Integer
)Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CampaignResponse
— (map
)Provides information about the status, configuration, and other settings for a campaign.
AdditionalTreatments
— (Array<map>
)An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
CustomDeliveryConfiguration
— (map
)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
— required — (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
— (Array<String>
)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.
Id
— required — (String
)The unique identifier for the treatment.
MessageConfiguration
— (map
)The message configuration settings for the treatment.
ADMMessage
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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).
Possible values include:"TRANSACTIONAL"
"PROMOTIONAL"
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.
EntityId
— (String
)The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
TemplateId
— (String
)The template ID received from the regulatory body for sending SMS in your country.
InAppMessage
— (map
)The in-app message configuration.
Body
— (String
)The message body of the notification, the email body or the text message.
Content
— (Array<map>
)In-app message content.
BackgroundColor
— (String
)The background color for the message.
BodyConfig
— (map
)The configuration for the message body.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Body
— required — (String
)Message Body.
TextColor
— required — (String
)The text color.
HeaderConfig
— (map
)The configuration for the message header.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Header
— required — (String
)Message Header.
TextColor
— required — (String
)The text color.
ImageUrl
— (String
)The image url for the background of message.
PrimaryBtn
— (map
)The first button inside the message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
SecondaryBtn
— (map
)The second button inside message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
CustomConfig
— (map<String>
)Custom config to be sent to client.
Layout
— (String
)In-app message layout.
Possible values include:"BOTTOM_BANNER"
"TOP_BANNER"
"OVERLAYS"
"MOBILE_FEED"
"MIDDLE_BANNER"
"CAROUSEL"
Schedule
— (map
)The schedule settings for the treatment.
EndTime
— (String
)The scheduled time, in ISO 8601 format, when the campaign ended or will end.
EventFilter
— (map
)The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.
Dimensions
— required — (map
)The dimension settings of the event filter for the campaign.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
FilterType
— required — (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 (Events resource) occurs.
Possible values include:"SYSTEM"
"ENDPOINT"
Frequency
— (String
)Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.
Possible values include:"ONCE"
"HOURLY"
"DAILY"
"WEEKLY"
"MONTHLY"
"EVENT"
"IN_APP_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
— (map
)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
— required — (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
— required — (Integer
)The allocated percentage of users (segment members) that the treatment is sent to.
State
— (map
)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.
Possible values include:"SCHEDULED"
"EXECUTING"
"PENDING_NEXT_RUN"
"COMPLETED"
"PAUSED"
"DELETED"
"INVALID"
TemplateConfiguration
— (map
)The message template to use for the treatment.
EmailTemplate
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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.
InAppTemplate
— (map
)The InApp template to use for the message. The InApp template object is not supported for SendMessages.
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 Versions resource.
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
— required — (String
)The unique identifier for the application that the campaign applies to.
Arn
— required — (String
)The Amazon Resource Name (ARN) of the campaign.
CreationDate
— required — (String
)The date, in ISO 8601 format, when the campaign was created.
CustomDeliveryConfiguration
— (map
)The delivery configuration settings for sending the campaign through a custom channel.
DeliveryUri
— required — (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
— (Array<String>
)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.
DefaultState
— (map
)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.
Possible values include:"SCHEDULED"
"EXECUTING"
"PENDING_NEXT_RUN"
"COMPLETED"
"PAUSED"
"DELETED"
"INVALID"
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
— (map
)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.
"DELIVERY"
"FILTER"
WebUrl
— (String
)The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.
Id
— required — (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
— required — (String
)The date, in ISO 8601 format, when the campaign was last modified.
Limits
— (map
)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.
Session
— (Integer
)The maximum total number of messages that the campaign can send per user session.
MessageConfiguration
— (map
)The message configuration settings for the campaign.
ADMMessage
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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).
Possible values include:"TRANSACTIONAL"
"PROMOTIONAL"
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.
EntityId
— (String
)The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
TemplateId
— (String
)The template ID received from the regulatory body for sending SMS in your country.
InAppMessage
— (map
)The in-app message configuration.
Body
— (String
)The message body of the notification, the email body or the text message.
Content
— (Array<map>
)In-app message content.
BackgroundColor
— (String
)The background color for the message.
BodyConfig
— (map
)The configuration for the message body.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Body
— required — (String
)Message Body.
TextColor
— required — (String
)The text color.
HeaderConfig
— (map
)The configuration for the message header.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Header
— required — (String
)Message Header.
TextColor
— required — (String
)The text color.
ImageUrl
— (String
)The image url for the background of message.
PrimaryBtn
— (map
)The first button inside the message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
SecondaryBtn
— (map
)The second button inside message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
CustomConfig
— (map<String>
)Custom config to be sent to client.
Layout
— (String
)In-app message layout.
Possible values include:"BOTTOM_BANNER"
"TOP_BANNER"
"OVERLAYS"
"MOBILE_FEED"
"MIDDLE_BANNER"
"CAROUSEL"
Name
— (String
)The name of the campaign.
Schedule
— (map
)The schedule settings for the campaign.
EndTime
— (String
)The scheduled time, in ISO 8601 format, when the campaign ended or will end.
EventFilter
— (map
)The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.
Dimensions
— required — (map
)The dimension settings of the event filter for the campaign.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
FilterType
— required — (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 (Events resource) occurs.
Possible values include:"SYSTEM"
"ENDPOINT"
Frequency
— (String
)Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.
Possible values include:"ONCE"
"HOURLY"
"DAILY"
"WEEKLY"
"MONTHLY"
"EVENT"
"IN_APP_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
— (map
)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
— required — (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
— required — (String
)The unique identifier for the segment that's associated with the campaign.
SegmentVersion
— required — (Integer
)The version number of the segment that's associated with the campaign.
State
— (map
)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.
Possible values include:"SCHEDULED"
"EXECUTING"
"PENDING_NEXT_RUN"
"COMPLETED"
"PAUSED"
"DELETED"
"INVALID"
tags
— (map<String>
)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.
TemplateConfiguration
— (map
)The message template that’s used for the campaign.
EmailTemplate
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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.
InAppTemplate
— (map
)The InApp template to use for the message. The InApp template object is not supported for SendMessages.
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 Versions resource.
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.
Priority
— (Integer
)Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.
-
(AWS.Response)
—
Returns:
createEmailTemplate(params = {}, callback) ⇒ AWS.Request
Creates a message template for messages that are sent through the email channel.
Service Reference:
Examples:
Calling the createEmailTemplate operation
var params = {
EmailTemplateRequest: { /* required */
DefaultSubstitutions: 'STRING_VALUE',
HtmlPart: 'STRING_VALUE',
RecommenderId: 'STRING_VALUE',
Subject: 'STRING_VALUE',
TemplateDescription: 'STRING_VALUE',
TextPart: 'STRING_VALUE',
tags: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
}
},
TemplateName: 'STRING_VALUE' /* required */
};
pinpoint.createEmailTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
EmailTemplateRequest
— (map
)Specifies the content and settings for a message template that can be used in messages that are sent through the email channel.
DefaultSubstitutions
— (String
)A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
HtmlPart
— (String
)The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
RecommenderId
— (String
)The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.
Subject
— (String
)The subject line, or title, to use in email messages that are based on the message template.
tags
— (map<String>
)Note: As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
TemplateDescription
— (String
)A custom description of the message template.
TextPart
— (String
)The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CreateTemplateMessageBody
— (map
)Provides information about a request to create a message template.
Arn
— (String
)The Amazon Resource Name (ARN) of the message template that was created.
Message
— (String
)The message that's returned from the API for the request to create the message template.
RequestID
— (String
)The unique identifier for the request to create the message template.
-
(AWS.Response)
—
Returns:
createExportJob(params = {}, callback) ⇒ AWS.Request
Creates an export job for an application.
Service Reference:
Examples:
Calling the createExportJob operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
ExportJobRequest: { /* required */
RoleArn: 'STRING_VALUE', /* required */
S3UrlPrefix: 'STRING_VALUE', /* required */
SegmentId: 'STRING_VALUE',
SegmentVersion: 'NUMBER_VALUE'
}
};
pinpoint.createExportJob(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
ExportJobRequest
— (map
)Specifies the settings for a job that exports endpoint definitions to an Amazon Simple Storage Service (Amazon S3) bucket.
RoleArn
— required — (String
)The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location where you want to export endpoint definitions to.
S3UrlPrefix
— required — (String
)The URL of the location in an Amazon Simple Storage Service (Amazon S3) bucket where you want to export endpoint definitions to. This location is typically a folder that contains multiple files. The URL should be in the following format: s3://
bucket-name /folder-name /.SegmentId
— (String
)The identifier for the segment to export endpoint definitions from. If you don't specify this value, Amazon Pinpoint exports definitions for all the endpoints that are associated with the application.
SegmentVersion
— (Integer
)The version of the segment to export endpoint definitions from, if specified.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ExportJobResponse
— (map
)Provides information about the status and settings of a job that exports endpoint definitions to a file. The file can be added directly to an Amazon Simple Storage Service (Amazon S3) bucket by using the Amazon Pinpoint API or downloaded directly to a computer by using the Amazon Pinpoint console.
ApplicationId
— required — (String
)The unique identifier for the application that's associated with the export job.
CompletedPieces
— (Integer
)The number of pieces that were processed successfully (completed) by the export job, as of the time of the request.
CompletionDate
— (String
)The date, in ISO 8601 format, when the export job was completed.
CreationDate
— required — (String
)The date, in ISO 8601 format, when the export job was created.
Definition
— required — (map
)The resource settings that apply to the export job.
RoleArn
— required — (String
)The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorized Amazon Pinpoint to access the Amazon S3 location where the endpoint definitions were exported to.
S3UrlPrefix
— required — (String
)The URL of the location in an Amazon Simple Storage Service (Amazon S3) bucket where the endpoint definitions were exported to. This location is typically a folder that contains multiple files. The URL should be in the following format: s3://
bucket-name /folder-name /.SegmentId
— (String
)The identifier for the segment that the endpoint definitions were exported from. If this value isn't present, Amazon Pinpoint exported definitions for all the endpoints that are associated with the application.
SegmentVersion
— (Integer
)The version of the segment that the endpoint definitions were exported from.
FailedPieces
— (Integer
)The number of pieces that weren't processed successfully (failed) by the export job, as of the time of the request.
Failures
— (Array<String>
)An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the export job, if any.
Id
— required — (String
)The unique identifier for the export job.
JobStatus
— required — (String
)The status of the export job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.
Possible values include:"CREATED"
"PREPARING_FOR_INITIALIZATION"
"INITIALIZING"
"PROCESSING"
"PENDING_JOB"
"COMPLETING"
"COMPLETED"
"FAILING"
"FAILED"
TotalFailures
— (Integer
)The total number of endpoint definitions that weren't processed successfully (failed) by the export job, typically because an error, such as a syntax error, occurred.
TotalPieces
— (Integer
)The total number of pieces that must be processed to complete the export job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the export job.
TotalProcessed
— (Integer
)The total number of endpoint definitions that were processed by the export job.
Type
— required — (String
)The job type. This value is EXPORT for export jobs.
-
(AWS.Response)
—
Returns:
createImportJob(params = {}, callback) ⇒ AWS.Request
Creates an import job for an application.
Service Reference:
Examples:
Calling the createImportJob operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
ImportJobRequest: { /* required */
Format: CSV | JSON, /* required */
RoleArn: 'STRING_VALUE', /* required */
S3Url: 'STRING_VALUE', /* required */
DefineSegment: true || false,
ExternalId: 'STRING_VALUE',
RegisterEndpoints: true || false,
SegmentId: 'STRING_VALUE',
SegmentName: 'STRING_VALUE'
}
};
pinpoint.createImportJob(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
ImportJobRequest
— (map
)Specifies the settings for a job that imports endpoint definitions from an Amazon Simple Storage Service (Amazon S3) bucket.
DefineSegment
— (Boolean
)Specifies whether to create a segment that contains the endpoints, when the endpoint definitions are imported.
ExternalId
— (String
)(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.
Format
— required — (String
)The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format. If the Amazon S3 location stores multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.
Possible values include:"CSV"
"JSON"
RegisterEndpoints
— (Boolean
)Specifies whether to register the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
RoleArn
— required — (String
)The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.
S3Url
— required — (String
)The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.
The URL should be in the following format: s3://
bucket-name /folder-name /file-name . The location can end with the key for an individual object or a prefix that qualifies multiple objects.SegmentId
— (String
)The identifier for the segment to update or add the imported endpoint definitions to, if the import job is meant to update an existing segment.
SegmentName
— (String
)A custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ImportJobResponse
— (map
)Provides information about the status and settings of a job that imports endpoint definitions from one or more files. The files can be stored in an Amazon Simple Storage Service (Amazon S3) bucket or uploaded directly from a computer by using the Amazon Pinpoint console.
ApplicationId
— required — (String
)The unique identifier for the application that's associated with the import job.
CompletedPieces
— (Integer
)The number of pieces that were processed successfully (completed) by the import job, as of the time of the request.
CompletionDate
— (String
)The date, in ISO 8601 format, when the import job was completed.
CreationDate
— required — (String
)The date, in ISO 8601 format, when the import job was created.
Definition
— required — (map
)The resource settings that apply to the import job.
DefineSegment
— (Boolean
)Specifies whether the import job creates a segment that contains the endpoints, when the endpoint definitions are imported.
ExternalId
— (String
)(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.
Format
— required — (String
)The format of the files that contain the endpoint definitions to import. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format.
If the files are stored in an Amazon S3 location and that location contains multiple files that use different formats, Amazon Pinpoint imports data only from the files that use the specified format.
Possible values include:"CSV"
"JSON"
RegisterEndpoints
— (Boolean
)Specifies whether the import job registers the endpoints with Amazon Pinpoint, when the endpoint definitions are imported.
RoleArn
— required — (String
)The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.
S3Url
— required — (String
)The URL of the Amazon Simple Storage Service (Amazon S3) bucket that contains the endpoint definitions to import. This location can be a folder or a single file. If the location is a folder, Amazon Pinpoint imports endpoint definitions from the files in this location, including any subfolders that the folder contains.
The URL should be in the following format: s3://
bucket-name /folder-name /file-name . The location can end with the key for an individual object or a prefix that qualifies multiple objects.SegmentId
— (String
)The identifier for the segment that the import job updates or adds endpoint definitions to, if the import job updates an existing segment.
SegmentName
— (String
)The custom name for the segment that's created by the import job, if the value of the DefineSegment property is true.
FailedPieces
— (Integer
)The number of pieces that weren't processed successfully (failed) by the import job, as of the time of the request.
Failures
— (Array<String>
)An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the import job, if any.
Id
— required — (String
)The unique identifier for the import job.
JobStatus
— required — (String
)The status of the import job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job.
Possible values include:"CREATED"
"PREPARING_FOR_INITIALIZATION"
"INITIALIZING"
"PROCESSING"
"PENDING_JOB"
"COMPLETING"
"COMPLETED"
"FAILING"
"FAILED"
TotalFailures
— (Integer
)The total number of endpoint definitions that weren't processed successfully (failed) by the import job, typically because an error, such as a syntax error, occurred.
TotalPieces
— (Integer
)The total number of pieces that must be processed to complete the import job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the import job.
TotalProcessed
— (Integer
)The total number of endpoint definitions that were processed by the import job.
Type
— required — (String
)The job type. This value is IMPORT for import jobs.
-
(AWS.Response)
—
Returns:
createInAppTemplate(params = {}, callback) ⇒ AWS.Request
Creates a new message template for messages using the in-app message channel.
Service Reference:
Examples:
Calling the createInAppTemplate operation
var params = {
InAppTemplateRequest: { /* required */
Content: [
{
BackgroundColor: 'STRING_VALUE',
BodyConfig: {
Alignment: LEFT | CENTER | RIGHT, /* required */
Body: 'STRING_VALUE', /* required */
TextColor: 'STRING_VALUE' /* required */
},
HeaderConfig: {
Alignment: LEFT | CENTER | RIGHT, /* required */
Header: 'STRING_VALUE', /* required */
TextColor: 'STRING_VALUE' /* required */
},
ImageUrl: 'STRING_VALUE',
PrimaryBtn: {
Android: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
DefaultConfig: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Text: 'STRING_VALUE', /* required */
BackgroundColor: 'STRING_VALUE',
BorderRadius: 'NUMBER_VALUE',
Link: 'STRING_VALUE',
TextColor: 'STRING_VALUE'
},
IOS: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
Web: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
}
},
SecondaryBtn: {
Android: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
DefaultConfig: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Text: 'STRING_VALUE', /* required */
BackgroundColor: 'STRING_VALUE',
BorderRadius: 'NUMBER_VALUE',
Link: 'STRING_VALUE',
TextColor: 'STRING_VALUE'
},
IOS: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
},
Web: {
ButtonAction: LINK | DEEP_LINK | CLOSE, /* required */
Link: 'STRING_VALUE'
}
}
},
/* more items */
],
CustomConfig: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
},
Layout: BOTTOM_BANNER | TOP_BANNER | OVERLAYS | MOBILE_FEED | MIDDLE_BANNER | CAROUSEL,
TemplateDescription: 'STRING_VALUE',
tags: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
}
},
TemplateName: 'STRING_VALUE' /* required */
};
pinpoint.createInAppTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
InAppTemplateRequest
— (map
)InApp Template Request.
Content
— (Array<map>
)The content of the message, can include up to 5 modals. Each modal must contain a message, a header, and background color. ImageUrl and buttons are optional.
BackgroundColor
— (String
)The background color for the message.
BodyConfig
— (map
)The configuration for the message body.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Body
— required — (String
)Message Body.
TextColor
— required — (String
)The text color.
HeaderConfig
— (map
)The configuration for the message header.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Header
— required — (String
)Message Header.
TextColor
— required — (String
)The text color.
ImageUrl
— (String
)The image url for the background of message.
PrimaryBtn
— (map
)The first button inside the message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
SecondaryBtn
— (map
)The second button inside message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
CustomConfig
— (map<String>
)Custom config to be sent to client.
Layout
— (String
)The layout of the message.
Possible values include:"BOTTOM_BANNER"
"TOP_BANNER"
"OVERLAYS"
"MOBILE_FEED"
"MIDDLE_BANNER"
"CAROUSEL"
tags
— (map<String>
)Note: As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
TemplateDescription
— (String
)The description of the template.
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:TemplateCreateMessageBody
— (map
)Provides information about a request to create a message template.
Arn
— (String
)The Amazon Resource Name (ARN) of the message template that was created.
Message
— (String
)The message that's returned from the API for the request to create the message template.
RequestID
— (String
)The unique identifier for the request to create the message template.
-
(AWS.Response)
—
Returns:
createJourney(params = {}, callback) ⇒ AWS.Request
Creates a journey for an application.
Service Reference:
Examples:
Calling the createJourney operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
WriteJourneyRequest: { /* required */
Name: 'STRING_VALUE', /* required */
Activities: {
'<__string>': {
CUSTOM: {
DeliveryUri: 'STRING_VALUE',
EndpointTypes: [
PUSH | GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | VOICE | EMAIL | BAIDU | CUSTOM | IN_APP,
/* more items */
],
MessageConfig: {
Data: 'STRING_VALUE'
},
NextActivity: 'STRING_VALUE',
TemplateName: 'STRING_VALUE',
TemplateVersion: 'STRING_VALUE'
},
ConditionalSplit: {
Condition: {
Conditions: [
{
EventCondition: {
Dimensions: {
Attributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
},
EventType: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Metrics: {
'<__string>': {
ComparisonOperator: 'STRING_VALUE', /* required */
Value: 'NUMBER_VALUE' /* required */
},
/* '<__string>': ... */
}
},
MessageActivity: 'STRING_VALUE'
},
SegmentCondition: {
SegmentId: 'STRING_VALUE' /* required */
},
SegmentDimensions: {
Attributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
},
Behavior: {
Recency: {
Duration: HR_24 | DAY_7 | DAY_14 | DAY_30, /* required */
RecencyType: ACTIVE | INACTIVE /* required */
}
},
Demographic: {
AppVersion: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Channel: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
DeviceType: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Make: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Model: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Platform: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
}
},
Location: {
Country: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
GPSPoint: {
Coordinates: { /* required */
Latitude: 'NUMBER_VALUE', /* required */
Longitude: 'NUMBER_VALUE' /* required */
},
RangeInKilometers: 'NUMBER_VALUE'
}
},
Metrics: {
'<__string>': {
ComparisonOperator: 'STRING_VALUE', /* required */
Value: 'NUMBER_VALUE' /* required */
},
/* '<__string>': ... */
},
UserAttributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
}
}
},
/* more items */
],
Operator: ALL | ANY
},
EvaluationWaitTime: {
WaitFor: 'STRING_VALUE',
WaitUntil: 'STRING_VALUE'
},
FalseActivity: 'STRING_VALUE',
TrueActivity: 'STRING_VALUE'
},
ContactCenter: {
NextActivity: 'STRING_VALUE'
},
Description: 'STRING_VALUE',
EMAIL: {
MessageConfig: {
FromAddress: 'STRING_VALUE'
},
NextActivity: 'STRING_VALUE',
TemplateName: 'STRING_VALUE',
TemplateVersion: 'STRING_VALUE'
},
Holdout: {
Percentage: 'NUMBER_VALUE', /* required */
NextActivity: 'STRING_VALUE'
},
MultiCondition: {
Branches: [
{
Condition: {
EventCondition: {
Dimensions: {
Attributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
},
EventType: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Metrics: {
'<__string>': {
ComparisonOperator: 'STRING_VALUE', /* required */
Value: 'NUMBER_VALUE' /* required */
},
/* '<__string>': ... */
}
},
MessageActivity: 'STRING_VALUE'
},
SegmentCondition: {
SegmentId: 'STRING_VALUE' /* required */
},
SegmentDimensions: {
Attributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
},
Behavior: {
Recency: {
Duration: HR_24 | DAY_7 | DAY_14 | DAY_30, /* required */
RecencyType: ACTIVE | INACTIVE /* required */
}
},
Demographic: {
AppVersion: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Channel: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
DeviceType: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Make: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Model: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Platform: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
}
},
Location: {
Country: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
GPSPoint: {
Coordinates: { /* required */
Latitude: 'NUMBER_VALUE', /* required */
Longitude: 'NUMBER_VALUE' /* required */
},
RangeInKilometers: 'NUMBER_VALUE'
}
},
Metrics: {
'<__string>': {
ComparisonOperator: 'STRING_VALUE', /* required */
Value: 'NUMBER_VALUE' /* required */
},
/* '<__string>': ... */
},
UserAttributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
}
}
},
NextActivity: 'STRING_VALUE'
},
/* more items */
],
DefaultActivity: 'STRING_VALUE',
EvaluationWaitTime: {
WaitFor: 'STRING_VALUE',
WaitUntil: 'STRING_VALUE'
}
},
PUSH: {
MessageConfig: {
TimeToLive: 'STRING_VALUE'
},
NextActivity: 'STRING_VALUE',
TemplateName: 'STRING_VALUE',
TemplateVersion: 'STRING_VALUE'
},
RandomSplit: {
Branches: [
{
NextActivity: 'STRING_VALUE',
Percentage: 'NUMBER_VALUE'
},
/* more items */
]
},
SMS: {
MessageConfig: {
EntityId: 'STRING_VALUE',
MessageType: TRANSACTIONAL | PROMOTIONAL,
OriginationNumber: 'STRING_VALUE',
SenderId: 'STRING_VALUE',
TemplateId: 'STRING_VALUE'
},
NextActivity: 'STRING_VALUE',
TemplateName: 'STRING_VALUE',
TemplateVersion: 'STRING_VALUE'
},
Wait: {
NextActivity: 'STRING_VALUE',
WaitTime: {
WaitFor: 'STRING_VALUE',
WaitUntil: 'STRING_VALUE'
}
}
},
/* '<__string>': ... */
},
ClosedDays: {
CUSTOM: [
{
EndDateTime: 'STRING_VALUE',
Name: 'STRING_VALUE',
StartDateTime: 'STRING_VALUE'
},
/* more items */
],
EMAIL: [
{
EndDateTime: 'STRING_VALUE',
Name: 'STRING_VALUE',
StartDateTime: 'STRING_VALUE'
},
/* more items */
],
PUSH: [
{
EndDateTime: 'STRING_VALUE',
Name: 'STRING_VALUE',
StartDateTime: 'STRING_VALUE'
},
/* more items */
],
SMS: [
{
EndDateTime: 'STRING_VALUE',
Name: 'STRING_VALUE',
StartDateTime: 'STRING_VALUE'
},
/* more items */
],
VOICE: [
{
EndDateTime: 'STRING_VALUE',
Name: 'STRING_VALUE',
StartDateTime: 'STRING_VALUE'
},
/* more items */
]
},
CreationDate: 'STRING_VALUE',
JourneyChannelSettings: {
ConnectCampaignArn: 'STRING_VALUE',
ConnectCampaignExecutionRoleArn: 'STRING_VALUE'
},
LastModifiedDate: 'STRING_VALUE',
Limits: {
DailyCap: 'NUMBER_VALUE',
EndpointReentryCap: 'NUMBER_VALUE',
EndpointReentryInterval: 'STRING_VALUE',
MessagesPerSecond: 'NUMBER_VALUE',
TimeframeCap: {
Cap: 'NUMBER_VALUE',
Days: 'NUMBER_VALUE'
},
TotalCap: 'NUMBER_VALUE'
},
LocalTime: true || false,
OpenHours: {
CUSTOM: {
'<DayOfWeek>': [
{
EndTime: 'STRING_VALUE',
StartTime: 'STRING_VALUE'
},
/* more items */
],
/* '<DayOfWeek>': ... */
},
EMAIL: {
'<DayOfWeek>': [
{
EndTime: 'STRING_VALUE',
StartTime: 'STRING_VALUE'
},
/* more items */
],
/* '<DayOfWeek>': ... */
},
PUSH: {
'<DayOfWeek>': [
{
EndTime: 'STRING_VALUE',
StartTime: 'STRING_VALUE'
},
/* more items */
],
/* '<DayOfWeek>': ... */
},
SMS: {
'<DayOfWeek>': [
{
EndTime: 'STRING_VALUE',
StartTime: 'STRING_VALUE'
},
/* more items */
],
/* '<DayOfWeek>': ... */
},
VOICE: {
'<DayOfWeek>': [
{
EndTime: 'STRING_VALUE',
StartTime: 'STRING_VALUE'
},
/* more items */
],
/* '<DayOfWeek>': ... */
}
},
QuietTime: {
End: 'STRING_VALUE',
Start: 'STRING_VALUE'
},
RefreshFrequency: 'STRING_VALUE',
RefreshOnSegmentUpdate: true || false,
Schedule: {
EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
Timezone: 'STRING_VALUE'
},
SendingSchedule: true || false,
StartActivity: 'STRING_VALUE',
StartCondition: {
Description: 'STRING_VALUE',
EventStartCondition: {
EventFilter: {
Dimensions: { /* required */
Attributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
},
EventType: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Metrics: {
'<__string>': {
ComparisonOperator: 'STRING_VALUE', /* required */
Value: 'NUMBER_VALUE' /* required */
},
/* '<__string>': ... */
}
},
FilterType: SYSTEM | ENDPOINT /* required */
},
SegmentId: 'STRING_VALUE'
},
SegmentStartCondition: {
SegmentId: 'STRING_VALUE' /* required */
}
},
State: DRAFT | ACTIVE | COMPLETED | CANCELLED | CLOSED | PAUSED,
TimezoneEstimationMethods: [
PHONE_NUMBER | POSTAL_CODE,
/* more items */
],
WaitForQuietTime: true || false
}
};
pinpoint.createJourney(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
WriteJourneyRequest
— (map
)Specifies the configuration and other settings for a journey.
Activities
— (map<map>
)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.
CUSTOM
— (map
)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
— (Array<String>
)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.
MessageConfig
— (map
)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 Versions resource.
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
— (map
)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
— (map
)The conditions that define the paths for the activity, and the relationship between the conditions.
Conditions
— (Array<map>
)The conditions to evaluate for the activity.
EventCondition
— (map
)The dimension settings for the event that's associated with the activity.
Dimensions
— (map
)The dimensions for the event filter to use for the activity.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (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
— (map
)The segment that's associated with the activity.
SegmentId
— required — (String
)The unique identifier for the segment to associate with the activity.
SegmentDimensions
— (map
)The dimension settings for the segment that's associated with the activity.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
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.
Possible values include:"ALL"
"ANY"
EvaluationWaitTime
— (map
)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
— (map
)The settings for an email activity. This type of activity sends an email message to participants.
MessageConfig
— (map
)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 Versions resource.
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
— (map
)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
— required — (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
— (map
)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
— (Array<map>
)The paths for the activity, including the conditions for entering each path and the activity to perform for each path.
Condition
— (map
)The condition to evaluate for the activity path.
EventCondition
— (map
)The dimension settings for the event that's associated with the activity.
Dimensions
— (map
)The dimensions for the event filter to use for the activity.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (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
— (map
)The segment that's associated with the activity.
SegmentId
— required — (String
)The unique identifier for the segment to associate with the activity.
SegmentDimensions
— (map
)The dimension settings for the segment that's associated with the activity.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
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
— (map
)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
— (map
)The settings for a push notification activity. This type of activity sends a push notification to participants.
MessageConfig
— (map
)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 Versions resource.
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
— (map
)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
— (Array<map>
)The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.
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
— (map
)The settings for an SMS activity. This type of activity sends a text message to participants.
MessageConfig
— (map
)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).
Possible values include:"TRANSACTIONAL"
"PROMOTIONAL"
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.
EntityId
— (String
)The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
TemplateId
— (String
)The template ID received from the regulatory body for sending SMS in your country.
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 Versions resource.
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
— (map
)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
— (map
)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.
ContactCenter
— (map
)The settings for a connect activity. This type of activity initiates a contact center call to participants.
NextActivity
— (String
)The unique identifier for the next activity to perform after the this activity.
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
— (map
)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.
EndpointReentryInterval
— (String
)Minimum time that must pass before an endpoint can re-enter a given journey. The duration should use an ISO 8601 format, such as PT1H.
TimeframeCap
— (map
)The number of messages that an endpoint can receive during the specified timeframe.
Cap
— (Integer
)The maximum number of messages that all journeys can send to an endpoint during the specified timeframe. The maximum value is 100. If set to 0, this limit will not apply.
Days
— (Integer
)The length of the timeframe in days. The maximum value is 30. If set to 0, this limit will not apply.
TotalCap
— (Integer
)The maximum number of messages a journey can sent to a single endpoint. The maximum value is 100. If set to 0, this limit will not apply.
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
— required — (String
)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
— (map
)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
— (map
)The schedule settings for the journey.
EndTime
— (Date
)The scheduled time, in ISO 8601 format, when the journey ended or will end.
StartTime
— (Date
)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
— (map
)The segment that defines which users are participants in the journey.
Description
— (String
)The custom description of the condition.
EventStartCondition
— (map
)Specifies the settings for an event that causes a journey activity to start.
EventFilter
— (map
)Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.
Dimensions
— required — (map
)The dimensions for the event filter to use for the campaign or the journey activity.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
FilterType
— required — (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.
Possible values include:"SYSTEM"
"ENDPOINT"
SegmentId
— (String
)
SegmentStartCondition
— (map
)The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.
SegmentId
— required — (String
)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.
PAUSED, CANCELLED, COMPLETED, and CLOSED states are not supported in requests to create or update a journey. To cancel, pause, or resume a journey, use the Journey State resource.
Possible values include:"DRAFT"
"ACTIVE"
"COMPLETED"
"CANCELLED"
"CLOSED"
"PAUSED"
WaitForQuietTime
— (Boolean
)Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours.
RefreshOnSegmentUpdate
— (Boolean
)Indicates whether the journey participants should be refreshed when a segment is updated.
JourneyChannelSettings
— (map
)The channel-specific configurations for the journey.
ConnectCampaignArn
— (String
)Amazon Resource Name (ARN) of the Connect Campaign.
ConnectCampaignExecutionRoleArn
— (String
)IAM role ARN to be assumed when invoking Connect campaign execution APIs for dialing.
SendingSchedule
— (Boolean
)Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using OpenHours and ClosedDays.
OpenHours
— (map
)The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.
EMAIL
— (map<Array<map>>
)Specifies the schedule settings for the email channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
SMS
— (map<Array<map>>
)Specifies the schedule settings for the SMS channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
PUSH
— (map<Array<map>>
)Specifies the schedule settings for the push channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
VOICE
— (map<Array<map>>
)Specifies the schedule settings for the voice channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
CUSTOM
— (map<Array<map>>
)Specifies the schedule settings for the custom channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
ClosedDays
— (map
)The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should be set to true.
EMAIL
— (Array<map>
)Rules for the Email channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
SMS
— (Array<map>
)Rules for the SMS channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
PUSH
— (Array<map>
)Rules for the Push channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
VOICE
— (Array<map>
)Rules for the Voice channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
CUSTOM
— (Array<map>
)Rules for the Custom channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
TimezoneEstimationMethods
— (Array<String>
)An array of time zone estimation methods, if any, to use for determining an Endpoints time zone if the Endpoint does not have a value for the Demographic.Timezone attribute.
PHONE_NUMBER - A time zone is determined based on the Endpoint.Address and Endpoint.Location.Country.
POSTAL_CODE - A time zone is determined based on the Endpoint.Location.PostalCode and Endpoint.Location.Country.
Note: POSTAL_CODE detection is only supported in the United States, United Kingdom, Australia, New Zealand, Canada, France, Italy, Spain, Germany and in regions where Amazon Pinpoint is available.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:JourneyResponse
— (map
)Provides information about the status, configuration, and other settings for a journey.
Activities
— (map<map>
)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.
CUSTOM
— (map
)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
— (Array<String>
)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.
MessageConfig
— (map
)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 Versions resource.
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
— (map
)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
— (map
)The conditions that define the paths for the activity, and the relationship between the conditions.
Conditions
— (Array<map>
)The conditions to evaluate for the activity.
EventCondition
— (map
)The dimension settings for the event that's associated with the activity.
Dimensions
— (map
)The dimensions for the event filter to use for the activity.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (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
— (map
)The segment that's associated with the activity.
SegmentId
— required — (String
)The unique identifier for the segment to associate with the activity.
SegmentDimensions
— (map
)The dimension settings for the segment that's associated with the activity.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
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.
Possible values include:"ALL"
"ANY"
EvaluationWaitTime
— (map
)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
— (map
)The settings for an email activity. This type of activity sends an email message to participants.
MessageConfig
— (map
)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 Versions resource.
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
— (map
)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
— required — (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
— (map
)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
— (Array<map>
)The paths for the activity, including the conditions for entering each path and the activity to perform for each path.
Condition
— (map
)The condition to evaluate for the activity path.
EventCondition
— (map
)The dimension settings for the event that's associated with the activity.
Dimensions
— (map
)The dimensions for the event filter to use for the activity.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (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
— (map
)The segment that's associated with the activity.
SegmentId
— required — (String
)The unique identifier for the segment to associate with the activity.
SegmentDimensions
— (map
)The dimension settings for the segment that's associated with the activity.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
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
— (map
)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
— (map
)The settings for a push notification activity. This type of activity sends a push notification to participants.
MessageConfig
— (map
)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 Versions resource.
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
— (map
)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
— (Array<map>
)The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.
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
— (map
)The settings for an SMS activity. This type of activity sends a text message to participants.
MessageConfig
— (map
)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).
Possible values include:"TRANSACTIONAL"
"PROMOTIONAL"
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.
EntityId
— (String
)The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
TemplateId
— (String
)The template ID received from the regulatory body for sending SMS in your country.
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 Versions resource.
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
— (map
)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
— (map
)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.
ContactCenter
— (map
)The settings for a connect activity. This type of activity initiates a contact center call to participants.
NextActivity
— (String
)The unique identifier for the next activity to perform after the this activity.
ApplicationId
— required — (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
— required — (String
)The unique identifier for the journey.
LastModifiedDate
— (String
)The date, in ISO 8601 format, when the journey was last modified.
Limits
— (map
)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.
EndpointReentryInterval
— (String
)Minimum time that must pass before an endpoint can re-enter a given journey. The duration should use an ISO 8601 format, such as PT1H.
TimeframeCap
— (map
)The number of messages that an endpoint can receive during the specified timeframe.
Cap
— (Integer
)The maximum number of messages that all journeys can send to an endpoint during the specified timeframe. The maximum value is 100. If set to 0, this limit will not apply.
Days
— (Integer
)The length of the timeframe in days. The maximum value is 30. If set to 0, this limit will not apply.
TotalCap
— (Integer
)The maximum number of messages a journey can sent to a single endpoint. The maximum value is 100. If set to 0, this limit will not apply.
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
— required — (String
)The name of the journey.
QuietTime
— (map
)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
— (map
)The schedule settings for the journey.
EndTime
— (Date
)The scheduled time, in ISO 8601 format, when the journey ended or will end.
StartTime
— (Date
)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
— (map
)The segment that defines which users are participants in the journey.
Description
— (String
)The custom description of the condition.
EventStartCondition
— (map
)Specifies the settings for an event that causes a journey activity to start.
EventFilter
— (map
)Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.
Dimensions
— required — (map
)The dimensions for the event filter to use for the campaign or the journey activity.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
FilterType
— required — (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.
Possible values include:"SYSTEM"
"ENDPOINT"
SegmentId
— (String
)
SegmentStartCondition
— (map
)The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.
SegmentId
— required — (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.
"DRAFT"
"ACTIVE"
"COMPLETED"
"CANCELLED"
"CLOSED"
"PAUSED"
tags
— (map<String>
)This object is not used or supported.
WaitForQuietTime
— (Boolean
)Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed.
RefreshOnSegmentUpdate
— (Boolean
)Indicates whether the journey participants should be refreshed when a segment is updated.
JourneyChannelSettings
— (map
)The channel-specific configurations for the journey.
ConnectCampaignArn
— (String
)Amazon Resource Name (ARN) of the Connect Campaign.
ConnectCampaignExecutionRoleArn
— (String
)IAM role ARN to be assumed when invoking Connect campaign execution APIs for dialing.
SendingSchedule
— (Boolean
)Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using OpenHours and ClosedDays.
OpenHours
— (map
)The time when a journey can send messages. QuietTime should be configured first and SendingSchedule should be set to true.
EMAIL
— (map<Array<map>>
)Specifies the schedule settings for the email channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
SMS
— (map<Array<map>>
)Specifies the schedule settings for the SMS channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
PUSH
— (map<Array<map>>
)Specifies the schedule settings for the push channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
VOICE
— (map<Array<map>>
)Specifies the schedule settings for the voice channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
CUSTOM
— (map<Array<map>>
)Specifies the schedule settings for the custom channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
ClosedDays
— (map
)The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule should be set to true.
EMAIL
— (Array<map>
)Rules for the Email channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
SMS
— (Array<map>
)Rules for the SMS channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
PUSH
— (Array<map>
)Rules for the Push channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
VOICE
— (Array<map>
)Rules for the Voice channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
CUSTOM
— (Array<map>
)Rules for the Custom channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
TimezoneEstimationMethods
— (Array<String>
)An array of time zone estimation methods, if any, to use for determining an Endpoints time zone if the Endpoint does not have a value for the Demographic.Timezone attribute.
PHONE_NUMBER - A time zone is determined based on the Endpoint.Address and Endpoint.Location.Country.
POSTAL_CODE - A time zone is determined based on the Endpoint.Location.PostalCode and Endpoint.Location.Country.
Note: POSTAL_CODE detection is only supported in the United States, United Kingdom, Australia, New Zealand, Canada, France, Italy, Spain, Germany and in regions where Amazon Pinpoint is available.
-
(AWS.Response)
—
Returns:
createPushTemplate(params = {}, callback) ⇒ AWS.Request
Creates a message template for messages that are sent through a push notification channel.
Service Reference:
Examples:
Calling the createPushTemplate operation
var params = {
PushNotificationTemplateRequest: { /* required */
ADM: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SmallImageIconUrl: 'STRING_VALUE',
Sound: 'STRING_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
APNS: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
MediaUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
Sound: 'STRING_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
Baidu: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SmallImageIconUrl: 'STRING_VALUE',
Sound: 'STRING_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
Default: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
Sound: 'STRING_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
DefaultSubstitutions: 'STRING_VALUE',
GCM: {
Action: OPEN_APP | DEEP_LINK | URL,
Body: 'STRING_VALUE',
ImageIconUrl: 'STRING_VALUE',
ImageUrl: 'STRING_VALUE',
RawContent: 'STRING_VALUE',
SmallImageIconUrl: 'STRING_VALUE',
Sound: 'STRING_VALUE',
Title: 'STRING_VALUE',
Url: 'STRING_VALUE'
},
RecommenderId: 'STRING_VALUE',
TemplateDescription: 'STRING_VALUE',
tags: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
}
},
TemplateName: 'STRING_VALUE' /* required */
};
pinpoint.createPushTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
PushNotificationTemplateRequest
— (map
)Specifies the content and settings for a message template that can be used in messages that are sent through a push notification channel.
ADM
— (map
)The message template to use for the ADM (Amazon Device Messaging) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
Action
— (String
)The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
"OPEN_APP"
"DEEP_LINK"
"URL"
Body
— (String
)The message body to use in a push notification that's based on the message template.
ImageIconUrl
— (String
)The URL of the large icon image to display in the content view of a push notification that's based on the message template.
ImageUrl
— (String
)The URL of an image to display in a push notification that's based on the message template.
RawContent
— (String
)The raw, JSON-formatted string to use as the payload for a push notification that's based on the message template. If specified, this value overrides all other content for the message template.
SmallImageIconUrl
— (String
)The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.
Sound
— (String
)The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.
Title
— (String
)The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.
Url
— (String
)The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.
APNS
— (map
)The message template to use for the APNs (Apple Push Notification service) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
Action
— (String
)The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
"OPEN_APP"
"DEEP_LINK"
"URL"
Body
— (String
)The message body to use in push notifications that are based on the message template.
MediaUrl
— (String
)The URL of an image or video to display in push notifications that are based on the message template.
RawContent
— (String
)The raw, JSON-formatted string to use as the payload for push notifications that are based on the message template. If specified, this value overrides all other content for the message template.
Sound
— (String
)The key for the sound to play when the recipient receives a push notification that's based on the message template. The value for this key is the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.
Title
— (String
)The title to use in push notifications that are based on the message template. This title appears above the notification message on a recipient's device.
Url
— (String
)The URL to open in the recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.
Baidu
— (map
)The message template to use for the Baidu (Baidu Cloud Push) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
Action
— (String
)The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
"OPEN_APP"
"DEEP_LINK"
"URL"
Body
— (String
)The message body to use in a push notification that's based on the message template.
ImageIconUrl
— (String
)The URL of the large icon image to display in the content view of a push notification that's based on the message template.
ImageUrl
— (String
)The URL of an image to display in a push notification that's based on the message template.
RawContent
— (String
)The raw, JSON-formatted string to use as the payload for a push notification that's based on the message template. If specified, this value overrides all other content for the message template.
SmallImageIconUrl
— (String
)The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.
Sound
— (String
)The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.
Title
— (String
)The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.
Url
— (String
)The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.
Default
— (map
)The default message template to use for push notification channels.
Action
— (String
)The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This setting uses the deep-linking features of the iOS and Android platforms.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
"OPEN_APP"
"DEEP_LINK"
"URL"
Body
— (String
)The message body to use in push notifications that are based on the message template.
Sound
— (String
)The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.
For an iOS platform, this value is the key for the name of a sound file in your app's main bundle or the Library/Sounds folder in your app's data container. If the sound file can't be found or you specify default for the value, the system plays the default alert sound.
Title
— (String
)The title to use in push notifications that are based on the message template. This title appears above the notification message on a recipient's device.
Url
— (String
)The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.
DefaultSubstitutions
— (String
)A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
GCM
— (map
)The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
Action
— (String
)The action to occur if a recipient taps a push notification that's based on the message template. Valid values are:
OPEN_APP - Your app opens or it becomes the foreground app if it was sent to the background. This is the default action.
DEEP_LINK - Your app opens and displays a designated user interface in the app. This action uses the deep-linking features of the Android platform.
URL - The default mobile browser on the recipient's device opens and loads the web page at a URL that you specify.
"OPEN_APP"
"DEEP_LINK"
"URL"
Body
— (String
)The message body to use in a push notification that's based on the message template.
ImageIconUrl
— (String
)The URL of the large icon image to display in the content view of a push notification that's based on the message template.
ImageUrl
— (String
)The URL of an image to display in a push notification that's based on the message template.
RawContent
— (String
)The raw, JSON-formatted string to use as the payload for a push notification that's based on the message template. If specified, this value overrides all other content for the message template.
SmallImageIconUrl
— (String
)The URL of the small icon image to display in the status bar and the content view of a push notification that's based on the message template.
Sound
— (String
)The sound to play when a recipient receives a push notification that's based on the message template. You can use the default stream or specify the file name of a sound resource that's bundled in your app. On an Android platform, the sound file must reside in /res/raw/.
Title
— (String
)The title to use in a push notification that's based on the message template. This title appears above the notification message on a recipient's device.
Url
— (String
)The URL to open in a recipient's default mobile browser, if a recipient taps a push notification that's based on the message template and the value of the Action property is URL.
RecommenderId
— (String
)The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.
tags
— (map<String>
)Note: As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
TemplateDescription
— (String
)A custom description of the message template.
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CreateTemplateMessageBody
— (map
)Provides information about a request to create a message template.
Arn
— (String
)The Amazon Resource Name (ARN) of the message template that was created.
Message
— (String
)The message that's returned from the API for the request to create the message template.
RequestID
— (String
)The unique identifier for the request to create the message template.
-
(AWS.Response)
—
Returns:
createRecommenderConfiguration(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Pinpoint configuration for a recommender model.
Service Reference:
Examples:
Calling the createRecommenderConfiguration operation
var params = {
CreateRecommenderConfiguration: { /* required */
RecommendationProviderRoleArn: 'STRING_VALUE', /* required */
RecommendationProviderUri: 'STRING_VALUE', /* required */
Attributes: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
},
Description: 'STRING_VALUE',
Name: 'STRING_VALUE',
RecommendationProviderIdType: 'STRING_VALUE',
RecommendationTransformerUri: 'STRING_VALUE',
RecommendationsDisplayName: 'STRING_VALUE',
RecommendationsPerMessage: 'NUMBER_VALUE'
}
};
pinpoint.createRecommenderConfiguration(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
CreateRecommenderConfiguration
— (map
)Specifies Amazon Pinpoint configuration settings for retrieving and processing recommendation data from a recommender model.
Attributes
— (map<String>
)A map of key-value pairs that defines 1-10 custom endpoint or user attributes, depending on the value for the RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute can be used as a message variable in a message template.
In the map, the key is the name of a custom attribute and the value is a custom display name for that attribute. The display name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. The following restrictions apply to these names:
An attribute name must start with a letter or number and it can contain up to 50 characters. The characters can be letters, numbers, underscores (), or hyphens (-). Attribute names are case sensitive and must be unique.
An attribute display name must start with a letter or number and it can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (), or hyphens (-).
This object is required if the configuration invokes an AWS Lambda function (RecommendationTransformerUri) to process recommendation data. Otherwise, don't include this object in your request.
Description
— (String
)A custom description of the configuration for the recommender model. The description can contain up to 128 characters. The characters can be letters, numbers, spaces, or the following symbols: _ ; () , ‐.
Name
— (String
)A custom name of the configuration for the recommender model. The name must start with a letter or number and it can contain up to 128 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-).
RecommendationProviderIdType
— (String
)The type of Amazon Pinpoint ID to associate with unique user IDs in the recommender model. This value enables the model to use attribute and event data that’s specific to a particular endpoint or user in an Amazon Pinpoint application. Valid values are:
PINPOINT_ENDPOINT_ID - Associate each user in the model with a particular endpoint in Amazon Pinpoint. The data is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value.
PINPOINT_USER_ID - Associate each user in the model with a particular user and endpoint in Amazon Pinpoint. The data is correlated based on user IDs in Amazon Pinpoint. If you specify this value, an endpoint definition in Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. Otherwise, messages won’t be sent to the user's endpoint.
RecommendationProviderRoleArn
— required — (String
)The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to retrieve recommendation data from the recommender model.
RecommendationProviderUri
— required — (String
)The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value must match the ARN of an Amazon Personalize campaign.
RecommendationTransformerUri
— (String
)The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of recommendation data that's retrieved from the recommender model.
RecommendationsDisplayName
— (String
)A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily stores recommended items for each endpoint or user, depending on the value for the RecommendationProviderIdType property. This value is required if the configuration doesn't invoke an AWS Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data.
This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. The name can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-). These restrictions don't apply to attribute values.
RecommendationsPerMessage
— (Integer
)The number of recommended items to retrieve from the model for each endpoint or user, depending on the value for the RecommendationProviderIdType property. This number determines how many recommended items are available for use in message variables. The minimum value is 1. The maximum value is 5. The default value is 5.
To use multiple recommended items and custom attributes with message variables, you have to use an AWS Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RecommenderConfigurationResponse
— (map
)Provides information about Amazon Pinpoint configuration settings for retrieving and processing data from a recommender model.
Attributes
— (map<String>
)A map that defines 1-10 custom endpoint or user attributes, depending on the value for the RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute can be used as a message variable in a message template.
This value is null if the configuration doesn't invoke an AWS Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data.
CreationDate
— required — (String
)The date, in extended ISO 8601 format, when the configuration was created for the recommender model.
Description
— (String
)The custom description of the configuration for the recommender model.
Id
— required — (String
)The unique identifier for the recommender model configuration.
LastModifiedDate
— required — (String
)The date, in extended ISO 8601 format, when the configuration for the recommender model was last modified.
Name
— (String
)The custom name of the configuration for the recommender model.
RecommendationProviderIdType
— (String
)The type of Amazon Pinpoint ID that's associated with unique user IDs in the recommender model. This value enables the model to use attribute and event data that’s specific to a particular endpoint or user in an Amazon Pinpoint application. Possible values are:
PINPOINT_ENDPOINT_ID - Each user in the model is associated with a particular endpoint in Amazon Pinpoint. The data is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value.
PINPOINT_USER_ID - Each user in the model is associated with a particular user and endpoint in Amazon Pinpoint. The data is correlated based on user IDs in Amazon Pinpoint. If this value is specified, an endpoint definition in Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. Otherwise, messages won’t be sent to the user's endpoint.
RecommendationProviderRoleArn
— required — (String
)The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to retrieve recommendation data from the recommender model.
RecommendationProviderUri
— required — (String
)The Amazon Resource Name (ARN) of the recommender model that Amazon Pinpoint retrieves the recommendation data from. This value is the ARN of an Amazon Personalize campaign.
RecommendationTransformerUri
— (String
)The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to perform additional processing of recommendation data that it retrieves from the recommender model.
RecommendationsDisplayName
— (String
)The custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily stores recommended items for each endpoint or user, depending on the value for the RecommendationProviderIdType property. This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console.
This value is null if the configuration doesn't invoke an AWS Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data.
RecommendationsPerMessage
— (Integer
)The number of recommended items that are retrieved from the model for each endpoint or user, depending on the value for the RecommendationProviderIdType property. This number determines how many recommended items are available for use in message variables.
-
(AWS.Response)
—
Returns:
createSegment(params = {}, callback) ⇒ AWS.Request
Creates a new segment for an application or updates the configuration, dimension, and other settings for an existing segment that's associated with an application.
Service Reference:
Examples:
Calling the createSegment operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
WriteSegmentRequest: { /* required */
Dimensions: {
Attributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
},
Behavior: {
Recency: {
Duration: HR_24 | DAY_7 | DAY_14 | DAY_30, /* required */
RecencyType: ACTIVE | INACTIVE /* required */
}
},
Demographic: {
AppVersion: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Channel: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
DeviceType: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Make: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Model: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Platform: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
}
},
Location: {
Country: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
GPSPoint: {
Coordinates: { /* required */
Latitude: 'NUMBER_VALUE', /* required */
Longitude: 'NUMBER_VALUE' /* required */
},
RangeInKilometers: 'NUMBER_VALUE'
}
},
Metrics: {
'<__string>': {
ComparisonOperator: 'STRING_VALUE', /* required */
Value: 'NUMBER_VALUE' /* required */
},
/* '<__string>': ... */
},
UserAttributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
}
},
Name: 'STRING_VALUE',
SegmentGroups: {
Groups: [
{
Dimensions: [
{
Attributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
},
Behavior: {
Recency: {
Duration: HR_24 | DAY_7 | DAY_14 | DAY_30, /* required */
RecencyType: ACTIVE | INACTIVE /* required */
}
},
Demographic: {
AppVersion: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Channel: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
DeviceType: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Make: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Model: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
Platform: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
}
},
Location: {
Country: {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
DimensionType: INCLUSIVE | EXCLUSIVE
},
GPSPoint: {
Coordinates: { /* required */
Latitude: 'NUMBER_VALUE', /* required */
Longitude: 'NUMBER_VALUE' /* required */
},
RangeInKilometers: 'NUMBER_VALUE'
}
},
Metrics: {
'<__string>': {
ComparisonOperator: 'STRING_VALUE', /* required */
Value: 'NUMBER_VALUE' /* required */
},
/* '<__string>': ... */
},
UserAttributes: {
'<__string>': {
Values: [ /* required */
'STRING_VALUE',
/* more items */
],
AttributeType: INCLUSIVE | EXCLUSIVE | CONTAINS | BEFORE | AFTER | ON | BETWEEN
},
/* '<__string>': ... */
}
},
/* more items */
],
SourceSegments: [
{
Id: 'STRING_VALUE', /* required */
Version: 'NUMBER_VALUE'
},
/* more items */
],
SourceType: ALL | ANY | NONE,
Type: ALL | ANY | NONE
},
/* more items */
],
Include: ALL | ANY | NONE
},
tags: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
}
}
};
pinpoint.createSegment(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
WriteSegmentRequest
— (map
)Specifies the configuration, dimension, and other settings for a segment. A WriteSegmentRequest object can include a Dimensions object or a SegmentGroups object, but not both.
Dimensions
— (map
)The criteria that define the dimensions for the segment.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Name
— (String
)The name of the segment.
SegmentGroups
— (map
)The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. A segment group can consist of zero or more base segments. Your request can include only one segment group.
Groups
— (Array<map>
)An array that defines the set of segment criteria to evaluate when handling segment groups for the segment.
Dimensions
— (Array<map>
)An array that defines the dimensions for the segment.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
SourceSegments
— (Array<map>
)The base segment to build the segment on. A base segment, also referred to as a source segment, defines the initial population of endpoints for a segment. When you add dimensions to a segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.
You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the Amazon Pinpoint console displays a segment size estimate that indicates the size of the imported segment without any filters applied to it.
Id
— required — (String
)The unique identifier for the segment.
Version
— (Integer
)The version number of the segment.
SourceType
— (String
)Specifies how to handle multiple base segments for the segment. For example, if you specify three base segments for the segment, whether the resulting segment is based on all, any, or none of the base segments.
Possible values include:"ALL"
"ANY"
"NONE"
Type
— (String
)Specifies how to handle multiple dimensions for the segment. For example, if you specify three dimensions for the segment, whether the resulting segment includes endpoints that match all, any, or none of the dimensions.
Possible values include:"ALL"
"ANY"
"NONE"
Include
— (String
)Specifies how to handle multiple segment groups for the segment. For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
Possible values include:"ALL"
"ANY"
"NONE"
tags
— (map<String>
)Note: As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the segment. Each tag consists of a required tag key and an associated tag value.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:SegmentResponse
— (map
)Provides information about the configuration, dimension, and other settings for a segment.
ApplicationId
— required — (String
)The unique identifier for the application that the segment is associated with.
Arn
— required — (String
)The Amazon Resource Name (ARN) of the segment.
CreationDate
— required — (String
)The date and time when the segment was created.
Dimensions
— (map
)The dimension settings for the segment.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Id
— required — (String
)The unique identifier for the segment.
ImportDefinition
— (map
)The settings for the import job that's associated with the segment.
ChannelCounts
— (map<Integer>
)The number of channel types in the endpoint definitions that were imported to create the segment.
ExternalId
— required — (String
)(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.
Format
— required — (String
)The format of the files that were imported to create the segment. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format.
Possible values include:"CSV"
"JSON"
RoleArn
— required — (String
)The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorized Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.
S3Url
— required — (String
)The URL of the Amazon Simple Storage Service (Amazon S3) bucket that the endpoint definitions were imported from to create the segment.
Size
— required — (Integer
)The number of endpoint definitions that were imported successfully to create the segment.
LastModifiedDate
— (String
)The date and time when the segment was last modified.
Name
— (String
)The name of the segment.
SegmentGroups
— (map
)A list of one or more segment groups that apply to the segment. Each segment group consists of zero or more base segments and the dimensions that are applied to those base segments.
Groups
— (Array<map>
)An array that defines the set of segment criteria to evaluate when handling segment groups for the segment.
Dimensions
— (Array<map>
)An array that defines the dimensions for the segment.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
SourceSegments
— (Array<map>
)The base segment to build the segment on. A base segment, also referred to as a source segment, defines the initial population of endpoints for a segment. When you add dimensions to a segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.
You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the Amazon Pinpoint console displays a segment size estimate that indicates the size of the imported segment without any filters applied to it.
Id
— required — (String
)The unique identifier for the segment.
Version
— (Integer
)The version number of the segment.
SourceType
— (String
)Specifies how to handle multiple base segments for the segment. For example, if you specify three base segments for the segment, whether the resulting segment is based on all, any, or none of the base segments.
Possible values include:"ALL"
"ANY"
"NONE"
Type
— (String
)Specifies how to handle multiple dimensions for the segment. For example, if you specify three dimensions for the segment, whether the resulting segment includes endpoints that match all, any, or none of the dimensions.
Possible values include:"ALL"
"ANY"
"NONE"
Include
— (String
)Specifies how to handle multiple segment groups for the segment. For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
Possible values include:"ALL"
"ANY"
"NONE"
SegmentType
— required — (String
)The segment type. Valid values are:
DIMENSIONAL - A dynamic segment, which is a segment that uses selection criteria that you specify and is based on endpoint data that's reported by your app. Dynamic segments can change over time.
IMPORT - A static segment, which is a segment that uses selection criteria that you specify and is based on endpoint definitions that you import from a file. Imported segments are static; they don't change over time.
"DIMENSIONAL"
"IMPORT"
tags
— (map<String>
)A string-to-string map of key-value pairs that identifies the tags that are associated with the segment. Each tag consists of a required tag key and an associated tag value.
Version
— (Integer
)The version number of the segment.
-
(AWS.Response)
—
Returns:
createSmsTemplate(params = {}, callback) ⇒ AWS.Request
Creates a message template for messages that are sent through the SMS channel.
Service Reference:
Examples:
Calling the createSmsTemplate operation
var params = {
SMSTemplateRequest: { /* required */
Body: 'STRING_VALUE',
DefaultSubstitutions: 'STRING_VALUE',
RecommenderId: 'STRING_VALUE',
TemplateDescription: 'STRING_VALUE',
tags: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
}
},
TemplateName: 'STRING_VALUE' /* required */
};
pinpoint.createSmsTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
SMSTemplateRequest
— (map
)Specifies the content and settings for a message template that can be used in text messages that are sent through the SMS channel.
Body
— (String
)The message body to use in text messages that are based on the message template.
DefaultSubstitutions
— (String
)A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
RecommenderId
— (String
)The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.
tags
— (map<String>
)Note: As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
TemplateDescription
— (String
)A custom description of the message template.
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CreateTemplateMessageBody
— (map
)Provides information about a request to create a message template.
Arn
— (String
)The Amazon Resource Name (ARN) of the message template that was created.
Message
— (String
)The message that's returned from the API for the request to create the message template.
RequestID
— (String
)The unique identifier for the request to create the message template.
-
(AWS.Response)
—
Returns:
createVoiceTemplate(params = {}, callback) ⇒ AWS.Request
Creates a message template for messages that are sent through the voice channel.
Service Reference:
Examples:
Calling the createVoiceTemplate operation
var params = {
TemplateName: 'STRING_VALUE', /* required */
VoiceTemplateRequest: { /* required */
Body: 'STRING_VALUE',
DefaultSubstitutions: 'STRING_VALUE',
LanguageCode: 'STRING_VALUE',
TemplateDescription: 'STRING_VALUE',
VoiceId: 'STRING_VALUE',
tags: {
'<__string>': 'STRING_VALUE',
/* '<__string>': ... */
}
}
};
pinpoint.createVoiceTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
VoiceTemplateRequest
— (map
)Specifies the content and settings for a message template that can be used in messages that are sent through the voice channel.
Body
— (String
)The text of the script to use in messages that are based on the message template, in plain text format.
DefaultSubstitutions
— (String
)A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
LanguageCode
— (String
)The code for the language to use when synthesizing the text of the script in messages that are based on the message template. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.
tags
— (map<String>
)Note: As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.(Deprecated) A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
TemplateDescription
— (String
)A custom description of the message template.
VoiceId
— (String
)The name of the voice to use when delivering messages that are based on the message template. For a list of supported voices, see the Amazon Polly Developer Guide.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CreateTemplateMessageBody
— (map
)Provides information about a request to create a message template.
Arn
— (String
)The Amazon Resource Name (ARN) of the message template that was created.
Message
— (String
)The message that's returned from the API for the request to create the message template.
RequestID
— (String
)The unique identifier for the request to create the message template.
-
(AWS.Response)
—
Returns:
deleteAdmChannel(params = {}, callback) ⇒ AWS.Request
Disables the ADM channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteAdmChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteAdmChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ADMChannelResponse
— (map
)Provides information about the status and settings of the ADM (Amazon Device Messaging) channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the ADM channel applies to.
CreationDate
— (String
)The date and time when the ADM channel was enabled.
Enabled
— (Boolean
)Specifies whether the ADM channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
Id
— (String
)(Deprecated) An identifier for the ADM channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the ADM channel is archived.
LastModifiedBy
— (String
)The user who last modified the ADM channel.
LastModifiedDate
— (String
)The date and time when the ADM channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the ADM channel, this value is ADM.
Version
— (Integer
)The current version of the ADM channel.
-
(AWS.Response)
—
Returns:
deleteApnsChannel(params = {}, callback) ⇒ AWS.Request
Disables the APNs channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteApnsChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteApnsChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:APNSChannelResponse
— (map
)Provides information about the status and settings of the APNs (Apple Push Notification service) channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the APNs channel applies to.
CreationDate
— (String
)The date and time when the APNs channel was enabled.
DefaultAuthenticationMethod
— (String
)The default authentication method that Amazon Pinpoint uses to authenticate with APNs for this channel, key or certificate.
Enabled
— (Boolean
)Specifies whether the APNs channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
HasTokenKey
— (Boolean
)Specifies whether the APNs channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.
Id
— (String
)(Deprecated) An identifier for the APNs channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the APNs channel is archived.
LastModifiedBy
— (String
)The user who last modified the APNs channel.
LastModifiedDate
— (String
)The date and time when the APNs channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the APNs channel, this value is APNS.
Version
— (Integer
)The current version of the APNs channel.
-
(AWS.Response)
—
Returns:
deleteApnsSandboxChannel(params = {}, callback) ⇒ AWS.Request
Disables the APNs sandbox channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteApnsSandboxChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteApnsSandboxChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:APNSSandboxChannelResponse
— (map
)Provides information about the status and settings of the APNs (Apple Push Notification service) sandbox channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the APNs sandbox channel applies to.
CreationDate
— (String
)The date and time when the APNs sandbox channel was enabled.
DefaultAuthenticationMethod
— (String
)The default authentication method that Amazon Pinpoint uses to authenticate with the APNs sandbox environment for this channel, key or certificate.
Enabled
— (Boolean
)Specifies whether the APNs sandbox channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
HasTokenKey
— (Boolean
)Specifies whether the APNs sandbox channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.
Id
— (String
)(Deprecated) An identifier for the APNs sandbox channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the APNs sandbox channel is archived.
LastModifiedBy
— (String
)The user who last modified the APNs sandbox channel.
LastModifiedDate
— (String
)The date and time when the APNs sandbox channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the APNs sandbox channel, this value is APNS_SANDBOX.
Version
— (Integer
)The current version of the APNs sandbox channel.
-
(AWS.Response)
—
Returns:
deleteApnsVoipChannel(params = {}, callback) ⇒ AWS.Request
Disables the APNs VoIP channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteApnsVoipChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteApnsVoipChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:APNSVoipChannelResponse
— (map
)Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the APNs VoIP channel applies to.
CreationDate
— (String
)The date and time when the APNs VoIP channel was enabled.
DefaultAuthenticationMethod
— (String
)The default authentication method that Amazon Pinpoint uses to authenticate with APNs for this channel, key or certificate.
Enabled
— (Boolean
)Specifies whether the APNs VoIP channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
HasTokenKey
— (Boolean
)Specifies whether the APNs VoIP channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.
Id
— (String
)(Deprecated) An identifier for the APNs VoIP channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the APNs VoIP channel is archived.
LastModifiedBy
— (String
)The user who last modified the APNs VoIP channel.
LastModifiedDate
— (String
)The date and time when the APNs VoIP channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the APNs VoIP channel, this value is APNS_VOIP.
Version
— (Integer
)The current version of the APNs VoIP channel.
-
(AWS.Response)
—
Returns:
deleteApnsVoipSandboxChannel(params = {}, callback) ⇒ AWS.Request
Disables the APNs VoIP sandbox channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteApnsVoipSandboxChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteApnsVoipSandboxChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:APNSVoipSandboxChannelResponse
— (map
)Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP sandbox channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the APNs VoIP sandbox channel applies to.
CreationDate
— (String
)The date and time when the APNs VoIP sandbox channel was enabled.
DefaultAuthenticationMethod
— (String
)The default authentication method that Amazon Pinpoint uses to authenticate with the APNs sandbox environment for this channel, key or certificate.
Enabled
— (Boolean
)Specifies whether the APNs VoIP sandbox channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
HasTokenKey
— (Boolean
)Specifies whether the APNs VoIP sandbox channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.
Id
— (String
)(Deprecated) An identifier for the APNs VoIP sandbox channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the APNs VoIP sandbox channel is archived.
LastModifiedBy
— (String
)The user who last modified the APNs VoIP sandbox channel.
LastModifiedDate
— (String
)The date and time when the APNs VoIP sandbox channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the APNs VoIP sandbox channel, this value is APNS_VOIP_SANDBOX.
Version
— (Integer
)The current version of the APNs VoIP sandbox channel.
-
(AWS.Response)
—
Returns:
deleteApp(params = {}, callback) ⇒ AWS.Request
Deletes an application.
Service Reference:
Examples:
Calling the deleteApp operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteApp(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ApplicationResponse
— (map
)Provides information about an application.
Arn
— required — (String
)The Amazon Resource Name (ARN) of the application.
Id
— required — (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Name
— required — (String
)The display name of the application. This name is displayed as the Project name on the Amazon Pinpoint console.
tags
— (map<String>
)A string-to-string map of key-value pairs that identifies the tags that are associated with the application. Each tag consists of a required tag key and an associated tag value.
CreationDate
— (String
)The date and time when the Application was created.
-
(AWS.Response)
—
Returns:
deleteBaiduChannel(params = {}, callback) ⇒ AWS.Request
Disables the Baidu channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteBaiduChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteBaiduChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BaiduChannelResponse
— (map
)Provides information about the status and settings of the Baidu (Baidu Cloud Push) channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the Baidu channel applies to.
CreationDate
— (String
)The date and time when the Baidu channel was enabled.
Credential
— required — (String
)The API key that you received from the Baidu Cloud Push service to communicate with the service.
Enabled
— (Boolean
)Specifies whether the Baidu channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
Id
— (String
)(Deprecated) An identifier for the Baidu channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the Baidu channel is archived.
LastModifiedBy
— (String
)The user who last modified the Baidu channel.
LastModifiedDate
— (String
)The date and time when the Baidu channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the Baidu channel, this value is BAIDU.
Version
— (Integer
)The current version of the Baidu channel.
-
(AWS.Response)
—
Returns:
deleteCampaign(params = {}, callback) ⇒ AWS.Request
Deletes a campaign from an application.
Service Reference:
Examples:
Calling the deleteCampaign operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
CampaignId: 'STRING_VALUE' /* required */
};
pinpoint.deleteCampaign(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
CampaignId
— (String
)The unique identifier for the campaign.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CampaignResponse
— (map
)Provides information about the status, configuration, and other settings for a campaign.
AdditionalTreatments
— (Array<map>
)An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
CustomDeliveryConfiguration
— (map
)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
— required — (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
— (Array<String>
)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.
Id
— required — (String
)The unique identifier for the treatment.
MessageConfiguration
— (map
)The message configuration settings for the treatment.
ADMMessage
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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).
Possible values include:"TRANSACTIONAL"
"PROMOTIONAL"
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.
EntityId
— (String
)The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
TemplateId
— (String
)The template ID received from the regulatory body for sending SMS in your country.
InAppMessage
— (map
)The in-app message configuration.
Body
— (String
)The message body of the notification, the email body or the text message.
Content
— (Array<map>
)In-app message content.
BackgroundColor
— (String
)The background color for the message.
BodyConfig
— (map
)The configuration for the message body.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Body
— required — (String
)Message Body.
TextColor
— required — (String
)The text color.
HeaderConfig
— (map
)The configuration for the message header.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Header
— required — (String
)Message Header.
TextColor
— required — (String
)The text color.
ImageUrl
— (String
)The image url for the background of message.
PrimaryBtn
— (map
)The first button inside the message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
SecondaryBtn
— (map
)The second button inside message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
CustomConfig
— (map<String>
)Custom config to be sent to client.
Layout
— (String
)In-app message layout.
Possible values include:"BOTTOM_BANNER"
"TOP_BANNER"
"OVERLAYS"
"MOBILE_FEED"
"MIDDLE_BANNER"
"CAROUSEL"
Schedule
— (map
)The schedule settings for the treatment.
EndTime
— (String
)The scheduled time, in ISO 8601 format, when the campaign ended or will end.
EventFilter
— (map
)The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.
Dimensions
— required — (map
)The dimension settings of the event filter for the campaign.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
FilterType
— required — (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 (Events resource) occurs.
Possible values include:"SYSTEM"
"ENDPOINT"
Frequency
— (String
)Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.
Possible values include:"ONCE"
"HOURLY"
"DAILY"
"WEEKLY"
"MONTHLY"
"EVENT"
"IN_APP_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
— (map
)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
— required — (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
— required — (Integer
)The allocated percentage of users (segment members) that the treatment is sent to.
State
— (map
)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.
Possible values include:"SCHEDULED"
"EXECUTING"
"PENDING_NEXT_RUN"
"COMPLETED"
"PAUSED"
"DELETED"
"INVALID"
TemplateConfiguration
— (map
)The message template to use for the treatment.
EmailTemplate
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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.
InAppTemplate
— (map
)The InApp template to use for the message. The InApp template object is not supported for SendMessages.
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 Versions resource.
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
— required — (String
)The unique identifier for the application that the campaign applies to.
Arn
— required — (String
)The Amazon Resource Name (ARN) of the campaign.
CreationDate
— required — (String
)The date, in ISO 8601 format, when the campaign was created.
CustomDeliveryConfiguration
— (map
)The delivery configuration settings for sending the campaign through a custom channel.
DeliveryUri
— required — (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
— (Array<String>
)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.
DefaultState
— (map
)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.
Possible values include:"SCHEDULED"
"EXECUTING"
"PENDING_NEXT_RUN"
"COMPLETED"
"PAUSED"
"DELETED"
"INVALID"
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
— (map
)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.
"DELIVERY"
"FILTER"
WebUrl
— (String
)The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.
Id
— required — (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
— required — (String
)The date, in ISO 8601 format, when the campaign was last modified.
Limits
— (map
)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.
Session
— (Integer
)The maximum total number of messages that the campaign can send per user session.
MessageConfiguration
— (map
)The message configuration settings for the campaign.
ADMMessage
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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
— (map
)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).
Possible values include:"TRANSACTIONAL"
"PROMOTIONAL"
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.
EntityId
— (String
)The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
TemplateId
— (String
)The template ID received from the regulatory body for sending SMS in your country.
InAppMessage
— (map
)The in-app message configuration.
Body
— (String
)The message body of the notification, the email body or the text message.
Content
— (Array<map>
)In-app message content.
BackgroundColor
— (String
)The background color for the message.
BodyConfig
— (map
)The configuration for the message body.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Body
— required — (String
)Message Body.
TextColor
— required — (String
)The text color.
HeaderConfig
— (map
)The configuration for the message header.
Alignment
— required — (String
)The alignment of the text. Valid values: LEFT, CENTER, RIGHT.
Possible values include:"LEFT"
"CENTER"
"RIGHT"
Header
— required — (String
)Message Header.
TextColor
— required — (String
)The text color.
ImageUrl
— (String
)The image url for the background of message.
PrimaryBtn
— (map
)The first button inside the message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
SecondaryBtn
— (map
)The second button inside message.
Android
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
DefaultConfig
— (map
)Default button content.
BackgroundColor
— (String
)The background color of the button.
BorderRadius
— (Integer
)The border radius of the button.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Text
— required — (String
)Button text.
TextColor
— (String
)The text color of the button.
IOS
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
Web
— (map
)Default button content.
ButtonAction
— required — (String
)Action triggered by the button.
Possible values include:"LINK"
"DEEP_LINK"
"CLOSE"
Link
— (String
)Button destination.
CustomConfig
— (map<String>
)Custom config to be sent to client.
Layout
— (String
)In-app message layout.
Possible values include:"BOTTOM_BANNER"
"TOP_BANNER"
"OVERLAYS"
"MOBILE_FEED"
"MIDDLE_BANNER"
"CAROUSEL"
Name
— (String
)The name of the campaign.
Schedule
— (map
)The schedule settings for the campaign.
EndTime
— (String
)The scheduled time, in ISO 8601 format, when the campaign ended or will end.
EventFilter
— (map
)The type of event that causes the campaign to be sent, if the value of the Frequency property is EVENT.
Dimensions
— required — (map
)The dimension settings of the event filter for the campaign.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
FilterType
— required — (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 (Events resource) occurs.
Possible values include:"SYSTEM"
"ENDPOINT"
Frequency
— (String
)Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.
Possible values include:"ONCE"
"HOURLY"
"DAILY"
"WEEKLY"
"MONTHLY"
"EVENT"
"IN_APP_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
— (map
)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
— required — (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
— required — (String
)The unique identifier for the segment that's associated with the campaign.
SegmentVersion
— required — (Integer
)The version number of the segment that's associated with the campaign.
State
— (map
)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.
Possible values include:"SCHEDULED"
"EXECUTING"
"PENDING_NEXT_RUN"
"COMPLETED"
"PAUSED"
"DELETED"
"INVALID"
tags
— (map<String>
)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.
TemplateConfiguration
— (map
)The message template that’s used for the campaign.
EmailTemplate
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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
— (map
)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 Versions resource.
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.
InAppTemplate
— (map
)The InApp template to use for the message. The InApp template object is not supported for SendMessages.
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 Versions resource.
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.
Priority
— (Integer
)Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.
-
(AWS.Response)
—
Returns:
deleteEmailChannel(params = {}, callback) ⇒ AWS.Request
Disables the email channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteEmailChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteEmailChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:EmailChannelResponse
— (map
)Provides information about the status and settings of the email channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the email channel applies to.
ConfigurationSet
— (String
)The Amazon SES configuration set that's applied to messages that are sent through the channel.
CreationDate
— (String
)The date and time, in ISO 8601 format, when the email channel was enabled.
Enabled
— (Boolean
)Specifies whether the email channel is enabled for the application.
FromAddress
— (String
)The verified email address that email is sent from when you send email through the channel.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
Id
— (String
)(Deprecated) An identifier for the email channel. This property is retained only for backward compatibility.
Identity
— (String
)The Amazon Resource Name (ARN) of the identity, verified with Amazon Simple Email Service (Amazon SES), that's used when you send email through the channel.
IsArchived
— (Boolean
)Specifies whether the email channel is archived.
LastModifiedBy
— (String
)The user who last modified the email channel.
LastModifiedDate
— (String
)The date and time, in ISO 8601 format, when the email channel was last modified.
MessagesPerSecond
— (Integer
)The maximum number of emails that can be sent through the channel each second.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the email channel, this value is EMAIL.
RoleArn
— (String
)The ARN of the AWS Identity and Access Management (IAM) role that Amazon Pinpoint uses to submit email-related event data for the channel.
Version
— (Integer
)The current version of the email channel.
-
(AWS.Response)
—
Returns:
deleteEmailTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages that were sent through the email channel.
Service Reference:
Examples:
Calling the deleteEmailTemplate operation
var params = {
TemplateName: 'STRING_VALUE', /* required */
Version: 'STRING_VALUE'
};
pinpoint.deleteEmailTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Version
— (String
)The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
For a get operation, retrieves information about the active version of the template.
For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
For a delete operation, deletes the template, including all versions of the template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:MessageBody
— (map
)Provides information about an API request or response.
Message
— (String
)The message that's returned from the API.
RequestID
— (String
)The unique identifier for the request or response.
-
(AWS.Response)
—
Returns:
deleteEndpoint(params = {}, callback) ⇒ AWS.Request
Deletes an endpoint from an application.
Service Reference:
Examples:
Calling the deleteEndpoint operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
EndpointId: 'STRING_VALUE' /* required */
};
pinpoint.deleteEndpoint(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
EndpointId
— (String
)The case insensitive unique identifier for the endpoint. The identifier can't contain
$
,{
or}
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:EndpointResponse
— (map
)Provides information about the channel type and other settings for an endpoint.
Address
— (String
)The destination address for messages or push notifications that you send to the endpoint. The address varies by channel. For example, the address for a push-notification channel is typically the token provided by a push notification service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging (FCM) registration token. The address for the SMS channel is a phone number in E.164 format, such as +12065550100. The address for the email channel is an email address.
ApplicationId
— (String
)The unique identifier for the application that's associated with the endpoint.
Attributes
— (map<Array<String>>
)One or more custom attributes that describe the endpoint by associating a name with an array of values. For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments.
ChannelType
— (String
)The channel that's used when sending messages or push notifications to the endpoint.
Possible values include:"PUSH"
"GCM"
"APNS"
"APNS_SANDBOX"
"APNS_VOIP"
"APNS_VOIP_SANDBOX"
"ADM"
"SMS"
"VOICE"
"EMAIL"
"BAIDU"
"CUSTOM"
"IN_APP"
CohortId
— (String
)A number from 0-99 that represents the cohort that the endpoint is assigned to. Endpoints are grouped into cohorts randomly, and each cohort contains approximately 1 percent of the endpoints for an application. Amazon Pinpoint assigns cohorts to the holdout or treatment allocations for campaigns.
CreationDate
— (String
)The date and time, in ISO 8601 format, when the endpoint was created.
Demographic
— (map
)The demographic information for the endpoint, such as the time zone and platform.
AppVersion
— (String
)The version of the app that's associated with the endpoint.
Locale
— (String
)The locale of the endpoint, in the following format: the ISO 639-1 alpha-2 code, followed by an underscore (_), followed by an ISO 3166-1 alpha-2 value.
Make
— (String
)The manufacturer of the endpoint device, such as apple or samsung.
Model
— (String
)The model name or number of the endpoint device, such as iPhone or SM-G900F.
ModelVersion
— (String
)The model version of the endpoint device.
Platform
— (String
)The platform of the endpoint device, such as ios.
PlatformVersion
— (String
)The platform version of the endpoint device.
Timezone
— (String
)The time zone of the endpoint, specified as a tz database name value, such as America/Los_Angeles.
EffectiveDate
— (String
)The date and time, in ISO 8601 format, when the endpoint was last updated.
EndpointStatus
— (String
)Specifies whether messages or push notifications are sent to the endpoint. Possible values are: ACTIVE, messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
Id
— (String
)The unique identifier that you assigned to the endpoint. The identifier should be a globally unique identifier (GUID) to ensure that it doesn't conflict with other endpoint identifiers that are associated with the application.
Location
— (map
)The geographic information for the endpoint.
City
— (String
)The name of the city where the endpoint is located.
Country
— (String
)The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.
Latitude
— (Float
)The latitude coordinate of the endpoint location, rounded to one decimal place.
Longitude
— (Float
)The longitude coordinate of the endpoint location, rounded to one decimal place.
PostalCode
— (String
)The postal or ZIP code for the area where the endpoint is located.
Region
— (String
)The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.
Metrics
— (map<Float>
)One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
OptOut
— (String
)Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.
RequestId
— (String
)The unique identifier for the most recent request to update the endpoint.
User
— (map
)One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with the endpoint.
UserAttributes
— (map<Array<String>>
)One or more custom attributes that describe the user by associating a name with an array of values. For example, the value of an attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
UserId
— (String
)The unique identifier for the user.
-
(AWS.Response)
—
Returns:
deleteEventStream(params = {}, callback) ⇒ AWS.Request
Deletes the event stream for an application.
Service Reference:
Examples:
Calling the deleteEventStream operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteEventStream(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:EventStream
— (map
)Specifies settings for publishing event data to an Amazon Kinesis data stream or an Amazon Kinesis Data Firehose delivery stream.
ApplicationId
— required — (String
)The unique identifier for the application to publish event data for.
DestinationStreamArn
— required — (String
)The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon Kinesis Data Firehose delivery stream to publish event data to.
For a Kinesis data stream, the ARN format is: arn:aws:kinesis:
region :account-id :stream/stream_name For a Kinesis Data Firehose delivery stream, the ARN format is: arn:aws:firehose:
region :account-id :deliverystream/stream_name ExternalId
— (String
)(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when publishing event data, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.
LastModifiedDate
— (String
)The date, in ISO 8601 format, when the event stream was last modified.
LastUpdatedBy
— (String
)The IAM user who last modified the event stream.
RoleArn
— required — (String
)The AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to publish event data to the stream in your AWS account.
-
(AWS.Response)
—
Returns:
deleteGcmChannel(params = {}, callback) ⇒ AWS.Request
Disables the GCM channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteGcmChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteGcmChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:GCMChannelResponse
— (map
)Provides information about the status and settings of the GCM channel for an application. The GCM channel enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
ApplicationId
— (String
)The unique identifier for the application that the GCM channel applies to.
CreationDate
— (String
)The date and time when the GCM channel was enabled.
Credential
— (String
)The Web API Key, also referred to as an API_KEY or server key, that you received from Google to communicate with Google services.
DefaultAuthenticationMethod
— (String
)The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".
Enabled
— (Boolean
)Specifies whether the GCM channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
HasFcmServiceCredentials
— (Boolean
)Returns true if the JSON file provided by Google during registration process was used in the ServiceJson field of the request.
Id
— (String
)(Deprecated) An identifier for the GCM channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the GCM channel is archived.
LastModifiedBy
— (String
)The user who last modified the GCM channel.
LastModifiedDate
— (String
)The date and time when the GCM channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the GCM channel, this value is GCM.
Version
— (Integer
)The current version of the GCM channel.
-
(AWS.Response)
—
Returns:
deleteInAppTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages sent using the in-app message channel.
Service Reference:
Examples:
Calling the deleteInAppTemplate operation
var params = {
TemplateName: 'STRING_VALUE', /* required */
Version: 'STRING_VALUE'
};
pinpoint.deleteInAppTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Version
— (String
)The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
For a get operation, retrieves information about the active version of the template.
For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
For a delete operation, deletes the template, including all versions of the template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:MessageBody
— (map
)Provides information about an API request or response.
Message
— (String
)The message that's returned from the API.
RequestID
— (String
)The unique identifier for the request or response.
-
(AWS.Response)
—
Returns:
deleteJourney(params = {}, callback) ⇒ AWS.Request
Deletes a journey from an application.
Service Reference:
Examples:
Calling the deleteJourney operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
JourneyId: 'STRING_VALUE' /* required */
};
pinpoint.deleteJourney(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
JourneyId
— (String
)The unique identifier for the journey.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:JourneyResponse
— (map
)Provides information about the status, configuration, and other settings for a journey.
Activities
— (map<map>
)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.
CUSTOM
— (map
)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
— (Array<String>
)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.
MessageConfig
— (map
)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 Versions resource.
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
— (map
)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
— (map
)The conditions that define the paths for the activity, and the relationship between the conditions.
Conditions
— (Array<map>
)The conditions to evaluate for the activity.
EventCondition
— (map
)The dimension settings for the event that's associated with the activity.
Dimensions
— (map
)The dimensions for the event filter to use for the activity.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (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
— (map
)The segment that's associated with the activity.
SegmentId
— required — (String
)The unique identifier for the segment to associate with the activity.
SegmentDimensions
— (map
)The dimension settings for the segment that's associated with the activity.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
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.
Possible values include:"ALL"
"ANY"
EvaluationWaitTime
— (map
)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
— (map
)The settings for an email activity. This type of activity sends an email message to participants.
MessageConfig
— (map
)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 Versions resource.
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
— (map
)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
— required — (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
— (map
)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
— (Array<map>
)The paths for the activity, including the conditions for entering each path and the activity to perform for each path.
Condition
— (map
)The condition to evaluate for the activity path.
EventCondition
— (map
)The dimension settings for the event that's associated with the activity.
Dimensions
— (map
)The dimensions for the event filter to use for the activity.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (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
— (map
)The segment that's associated with the activity.
SegmentId
— required — (String
)The unique identifier for the segment to associate with the activity.
SegmentDimensions
— (map
)The dimension settings for the segment that's associated with the activity.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
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
— (map
)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
— (map
)The settings for a push notification activity. This type of activity sends a push notification to participants.
MessageConfig
— (map
)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 Versions resource.
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
— (map
)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
— (Array<map>
)The paths for the activity, including the percentage of participants to enter each path and the activity to perform for each path.
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
— (map
)The settings for an SMS activity. This type of activity sends a text message to participants.
MessageConfig
— (map
)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).
Possible values include:"TRANSACTIONAL"
"PROMOTIONAL"
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.
EntityId
— (String
)The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
TemplateId
— (String
)The template ID received from the regulatory body for sending SMS in your country.
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 Versions resource.
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
— (map
)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
— (map
)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.
ContactCenter
— (map
)The settings for a connect activity. This type of activity initiates a contact center call to participants.
NextActivity
— (String
)The unique identifier for the next activity to perform after the this activity.
ApplicationId
— required — (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
— required — (String
)The unique identifier for the journey.
LastModifiedDate
— (String
)The date, in ISO 8601 format, when the journey was last modified.
Limits
— (map
)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.
EndpointReentryInterval
— (String
)Minimum time that must pass before an endpoint can re-enter a given journey. The duration should use an ISO 8601 format, such as PT1H.
TimeframeCap
— (map
)The number of messages that an endpoint can receive during the specified timeframe.
Cap
— (Integer
)The maximum number of messages that all journeys can send to an endpoint during the specified timeframe. The maximum value is 100. If set to 0, this limit will not apply.
Days
— (Integer
)The length of the timeframe in days. The maximum value is 30. If set to 0, this limit will not apply.
TotalCap
— (Integer
)The maximum number of messages a journey can sent to a single endpoint. The maximum value is 100. If set to 0, this limit will not apply.
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
— required — (String
)The name of the journey.
QuietTime
— (map
)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
— (map
)The schedule settings for the journey.
EndTime
— (Date
)The scheduled time, in ISO 8601 format, when the journey ended or will end.
StartTime
— (Date
)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
— (map
)The segment that defines which users are participants in the journey.
Description
— (String
)The custom description of the condition.
EventStartCondition
— (map
)Specifies the settings for an event that causes a journey activity to start.
EventFilter
— (map
)Specifies the settings for an event that causes a campaign to be sent or a journey activity to be performed.
Dimensions
— required — (map
)The dimensions for the event filter to use for the campaign or the journey activity.
Attributes
— (map<map>
)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.
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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
EventType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Metrics
— (map<map>
)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.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
FilterType
— required — (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.
Possible values include:"SYSTEM"
"ENDPOINT"
SegmentId
— (String
)
SegmentStartCondition
— (map
)The segment that's associated with the first activity in the journey. This segment determines which users are participants in the journey.
SegmentId
— required — (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.
"DRAFT"
"ACTIVE"
"COMPLETED"
"CANCELLED"
"CLOSED"
"PAUSED"
tags
— (map<String>
)This object is not used or supported.
WaitForQuietTime
— (Boolean
)Indicates whether endpoints in quiet hours should enter a wait activity until quiet hours have elapsed.
RefreshOnSegmentUpdate
— (Boolean
)Indicates whether the journey participants should be refreshed when a segment is updated.
JourneyChannelSettings
— (map
)The channel-specific configurations for the journey.
ConnectCampaignArn
— (String
)Amazon Resource Name (ARN) of the Connect Campaign.
ConnectCampaignExecutionRoleArn
— (String
)IAM role ARN to be assumed when invoking Connect campaign execution APIs for dialing.
SendingSchedule
— (Boolean
)Indicates if journey has Advance Quiet Time enabled. This flag should be set to true in order to allow using OpenHours and ClosedDays.
OpenHours
— (map
)The time when a journey can send messages. QuietTime should be configured first and SendingSchedule should be set to true.
EMAIL
— (map<Array<map>>
)Specifies the schedule settings for the email channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
SMS
— (map<Array<map>>
)Specifies the schedule settings for the SMS channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
PUSH
— (map<Array<map>>
)Specifies the schedule settings for the push channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
VOICE
— (map<Array<map>>
)Specifies the schedule settings for the voice channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
CUSTOM
— (map<Array<map>>
)Specifies the schedule settings for the custom channel.
StartTime
— (String
)The start of the scheduled time, in ISO 8601 format, when the channel can send messages.
EndTime
— (String
)The end of the scheduled time, in ISO 8601 format, when the channel can't send messages.
ClosedDays
— (map
)The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule should be set to true.
EMAIL
— (Array<map>
)Rules for the Email channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
SMS
— (Array<map>
)Rules for the SMS channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
PUSH
— (Array<map>
)Rules for the Push channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
VOICE
— (Array<map>
)Rules for the Voice channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
CUSTOM
— (Array<map>
)Rules for the Custom channel.
Name
— (String
)The name of the closed day rule.
StartDateTime
— (String
)Start DateTime ISO 8601 format
EndDateTime
— (String
)End DateTime ISO 8601 format
TimezoneEstimationMethods
— (Array<String>
)An array of time zone estimation methods, if any, to use for determining an Endpoints time zone if the Endpoint does not have a value for the Demographic.Timezone attribute.
PHONE_NUMBER - A time zone is determined based on the Endpoint.Address and Endpoint.Location.Country.
POSTAL_CODE - A time zone is determined based on the Endpoint.Location.PostalCode and Endpoint.Location.Country.
Note: POSTAL_CODE detection is only supported in the United States, United Kingdom, Australia, New Zealand, Canada, France, Italy, Spain, Germany and in regions where Amazon Pinpoint is available.
-
(AWS.Response)
—
Returns:
deletePushTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages that were sent through a push notification channel.
Service Reference:
Examples:
Calling the deletePushTemplate operation
var params = {
TemplateName: 'STRING_VALUE', /* required */
Version: 'STRING_VALUE'
};
pinpoint.deletePushTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Version
— (String
)The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
For a get operation, retrieves information about the active version of the template.
For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
For a delete operation, deletes the template, including all versions of the template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:MessageBody
— (map
)Provides information about an API request or response.
Message
— (String
)The message that's returned from the API.
RequestID
— (String
)The unique identifier for the request or response.
-
(AWS.Response)
—
Returns:
deleteRecommenderConfiguration(params = {}, callback) ⇒ AWS.Request
Deletes an Amazon Pinpoint configuration for a recommender model.
Service Reference:
Examples:
Calling the deleteRecommenderConfiguration operation
var params = {
RecommenderId: 'STRING_VALUE' /* required */
};
pinpoint.deleteRecommenderConfiguration(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
RecommenderId
— (String
)The unique identifier for the recommender model configuration. This identifier is displayed as the Recommender ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RecommenderConfigurationResponse
— (map
)Provides information about Amazon Pinpoint configuration settings for retrieving and processing data from a recommender model.
Attributes
— (map<String>
)A map that defines 1-10 custom endpoint or user attributes, depending on the value for the RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute can be used as a message variable in a message template.
This value is null if the configuration doesn't invoke an AWS Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data.
CreationDate
— required — (String
)The date, in extended ISO 8601 format, when the configuration was created for the recommender model.
Description
— (String
)The custom description of the configuration for the recommender model.
Id
— required — (String
)The unique identifier for the recommender model configuration.
LastModifiedDate
— required — (String
)The date, in extended ISO 8601 format, when the configuration for the recommender model was last modified.
Name
— (String
)The custom name of the configuration for the recommender model.
RecommendationProviderIdType
— (String
)The type of Amazon Pinpoint ID that's associated with unique user IDs in the recommender model. This value enables the model to use attribute and event data that’s specific to a particular endpoint or user in an Amazon Pinpoint application. Possible values are:
PINPOINT_ENDPOINT_ID - Each user in the model is associated with a particular endpoint in Amazon Pinpoint. The data is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value.
PINPOINT_USER_ID - Each user in the model is associated with a particular user and endpoint in Amazon Pinpoint. The data is correlated based on user IDs in Amazon Pinpoint. If this value is specified, an endpoint definition in Amazon Pinpoint has to specify both a user ID (UserId) and an endpoint ID. Otherwise, messages won’t be sent to the user's endpoint.
RecommendationProviderRoleArn
— required — (String
)The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to retrieve recommendation data from the recommender model.
RecommendationProviderUri
— required — (String
)The Amazon Resource Name (ARN) of the recommender model that Amazon Pinpoint retrieves the recommendation data from. This value is the ARN of an Amazon Personalize campaign.
RecommendationTransformerUri
— (String
)The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to perform additional processing of recommendation data that it retrieves from the recommender model.
RecommendationsDisplayName
— (String
)The custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily stores recommended items for each endpoint or user, depending on the value for the RecommendationProviderIdType property. This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console.
This value is null if the configuration doesn't invoke an AWS Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data.
RecommendationsPerMessage
— (Integer
)The number of recommended items that are retrieved from the model for each endpoint or user, depending on the value for the RecommendationProviderIdType property. This number determines how many recommended items are available for use in message variables.
-
(AWS.Response)
—
Returns:
deleteSegment(params = {}, callback) ⇒ AWS.Request
Deletes a segment from an application.
Service Reference:
Examples:
Calling the deleteSegment operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
SegmentId: 'STRING_VALUE' /* required */
};
pinpoint.deleteSegment(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
SegmentId
— (String
)The unique identifier for the segment.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:SegmentResponse
— (map
)Provides information about the configuration, dimension, and other settings for a segment.
ApplicationId
— required — (String
)The unique identifier for the application that the segment is associated with.
Arn
— required — (String
)The Amazon Resource Name (ARN) of the segment.
CreationDate
— required — (String
)The date and time when the segment was created.
Dimensions
— (map
)The dimension settings for the segment.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Id
— required — (String
)The unique identifier for the segment.
ImportDefinition
— (map
)The settings for the import job that's associated with the segment.
ChannelCounts
— (map<Integer>
)The number of channel types in the endpoint definitions that were imported to create the segment.
ExternalId
— required — (String
)(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.
Format
— required — (String
)The format of the files that were imported to create the segment. Valid values are: CSV, for comma-separated values format; and, JSON, for newline-delimited JSON format.
Possible values include:"CSV"
"JSON"
RoleArn
— required — (String
)The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorized Amazon Pinpoint to access the Amazon S3 location to import endpoint definitions from.
S3Url
— required — (String
)The URL of the Amazon Simple Storage Service (Amazon S3) bucket that the endpoint definitions were imported from to create the segment.
Size
— required — (Integer
)The number of endpoint definitions that were imported successfully to create the segment.
LastModifiedDate
— (String
)The date and time when the segment was last modified.
Name
— (String
)The name of the segment.
SegmentGroups
— (map
)A list of one or more segment groups that apply to the segment. Each segment group consists of zero or more base segments and the dimensions that are applied to those base segments.
Groups
— (Array<map>
)An array that defines the set of segment criteria to evaluate when handling segment groups for the segment.
Dimensions
— (Array<map>
)An array that defines the dimensions for the segment.
Attributes
— (map<map>
)One or more custom attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
Behavior
— (map
)The behavior-based criteria, such as how recently users have used your app, for the segment.
Recency
— (map
)The dimension settings that are based on how recently an endpoint was active.
Duration
— required — (String
)The duration to use when determining whether an endpoint is active or inactive.
Possible values include:"HR_24"
"DAY_7"
"DAY_14"
"DAY_30"
RecencyType
— required — (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.
Possible values include:"ACTIVE"
"INACTIVE"
Demographic
— (map
)The demographic-based criteria, such as device platform, for the segment.
AppVersion
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Channel
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
DeviceType
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Make
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Model
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Platform
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
Location
— (map
)The location-based criteria, such as region or GPS coordinates, for the segment.
Country
— (map
)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.
Possible values include:"INCLUSIVE"
"EXCLUSIVE"
Values
— required — (Array<String>
)The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.
GPSPoint
— (map
)The GPS location and range for the segment.
Coordinates
— required — (map
)The GPS coordinates to measure distance from.
Latitude
— required — (Float
)The latitude coordinate of the location.
Longitude
— required — (Float
)The longitude coordinate of the location.
RangeInKilometers
— (Float
)The range, in kilometers, from the GPS coordinates.
Metrics
— (map<map>
)One or more custom metrics to use as criteria for the segment.
ComparisonOperator
— required — (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
— required — (Float
)The value to compare.
UserAttributes
— (map<map>
)One or more custom user attributes to use as criteria for the 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. Possible values include:
"INCLUSIVE"
"EXCLUSIVE"
"CONTAINS"
"BEFORE"
"AFTER"
"ON"
"BETWEEN"
Values
— required — (Array<String>
)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.
SourceSegments
— (Array<map>
)The base segment to build the segment on. A base segment, also referred to as a source segment, defines the initial population of endpoints for a segment. When you add dimensions to a segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.
You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the Amazon Pinpoint console displays a segment size estimate that indicates the size of the imported segment without any filters applied to it.
Id
— required — (String
)The unique identifier for the segment.
Version
— (Integer
)The version number of the segment.
SourceType
— (String
)Specifies how to handle multiple base segments for the segment. For example, if you specify three base segments for the segment, whether the resulting segment is based on all, any, or none of the base segments.
Possible values include:"ALL"
"ANY"
"NONE"
Type
— (String
)Specifies how to handle multiple dimensions for the segment. For example, if you specify three dimensions for the segment, whether the resulting segment includes endpoints that match all, any, or none of the dimensions.
Possible values include:"ALL"
"ANY"
"NONE"
Include
— (String
)Specifies how to handle multiple segment groups for the segment. For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
Possible values include:"ALL"
"ANY"
"NONE"
SegmentType
— required — (String
)The segment type. Valid values are:
DIMENSIONAL - A dynamic segment, which is a segment that uses selection criteria that you specify and is based on endpoint data that's reported by your app. Dynamic segments can change over time.
IMPORT - A static segment, which is a segment that uses selection criteria that you specify and is based on endpoint definitions that you import from a file. Imported segments are static; they don't change over time.
"DIMENSIONAL"
"IMPORT"
tags
— (map<String>
)A string-to-string map of key-value pairs that identifies the tags that are associated with the segment. Each tag consists of a required tag key and an associated tag value.
Version
— (Integer
)The version number of the segment.
-
(AWS.Response)
—
Returns:
deleteSmsChannel(params = {}, callback) ⇒ AWS.Request
Disables the SMS channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteSmsChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteSmsChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:SMSChannelResponse
— (map
)Provides information about the status and settings of the SMS channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the SMS channel applies to.
CreationDate
— (String
)The date and time, in ISO 8601 format, when the SMS channel was enabled.
Enabled
— (Boolean
)Specifies whether the SMS channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
Id
— (String
)(Deprecated) An identifier for the SMS channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the SMS channel is archived.
LastModifiedBy
— (String
)The user who last modified the SMS channel.
LastModifiedDate
— (String
)The date and time, in ISO 8601 format, when the SMS channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the SMS channel, this value is SMS.
PromotionalMessagesPerSecond
— (Integer
)The maximum number of promotional messages that you can send through the SMS channel each second.
SenderId
— (String
)The identity that displays on recipients' devices when they receive messages from the SMS channel.
ShortCode
— (String
)The registered short code to use when you send messages through the SMS channel.
TransactionalMessagesPerSecond
— (Integer
)The maximum number of transactional messages that you can send through the SMS channel each second.
Version
— (Integer
)The current version of the SMS channel.
-
(AWS.Response)
—
Returns:
deleteSmsTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages that were sent through the SMS channel.
Service Reference:
Examples:
Calling the deleteSmsTemplate operation
var params = {
TemplateName: 'STRING_VALUE', /* required */
Version: 'STRING_VALUE'
};
pinpoint.deleteSmsTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Version
— (String
)The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
For a get operation, retrieves information about the active version of the template.
For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
For a delete operation, deletes the template, including all versions of the template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:MessageBody
— (map
)Provides information about an API request or response.
Message
— (String
)The message that's returned from the API.
RequestID
— (String
)The unique identifier for the request or response.
-
(AWS.Response)
—
Returns:
deleteUserEndpoints(params = {}, callback) ⇒ AWS.Request
Deletes all the endpoints that are associated with a specific user ID.
Service Reference:
Examples:
Calling the deleteUserEndpoints operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
UserId: 'STRING_VALUE' /* required */
};
pinpoint.deleteUserEndpoints(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
UserId
— (String
)The unique identifier for the user.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:EndpointsResponse
— (map
)Provides information about all the endpoints that are associated with a user ID.
Item
— required — (Array<map>
)An array of responses, one for each endpoint that's associated with the user ID.
Address
— (String
)The destination address for messages or push notifications that you send to the endpoint. The address varies by channel. For example, the address for a push-notification channel is typically the token provided by a push notification service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging (FCM) registration token. The address for the SMS channel is a phone number in E.164 format, such as +12065550100. The address for the email channel is an email address.
ApplicationId
— (String
)The unique identifier for the application that's associated with the endpoint.
Attributes
— (map<Array<String>>
)One or more custom attributes that describe the endpoint by associating a name with an array of values. For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments.
ChannelType
— (String
)The channel that's used when sending messages or push notifications to the endpoint.
Possible values include:"PUSH"
"GCM"
"APNS"
"APNS_SANDBOX"
"APNS_VOIP"
"APNS_VOIP_SANDBOX"
"ADM"
"SMS"
"VOICE"
"EMAIL"
"BAIDU"
"CUSTOM"
"IN_APP"
CohortId
— (String
)A number from 0-99 that represents the cohort that the endpoint is assigned to. Endpoints are grouped into cohorts randomly, and each cohort contains approximately 1 percent of the endpoints for an application. Amazon Pinpoint assigns cohorts to the holdout or treatment allocations for campaigns.
CreationDate
— (String
)The date and time, in ISO 8601 format, when the endpoint was created.
Demographic
— (map
)The demographic information for the endpoint, such as the time zone and platform.
AppVersion
— (String
)The version of the app that's associated with the endpoint.
Locale
— (String
)The locale of the endpoint, in the following format: the ISO 639-1 alpha-2 code, followed by an underscore (_), followed by an ISO 3166-1 alpha-2 value.
Make
— (String
)The manufacturer of the endpoint device, such as apple or samsung.
Model
— (String
)The model name or number of the endpoint device, such as iPhone or SM-G900F.
ModelVersion
— (String
)The model version of the endpoint device.
Platform
— (String
)The platform of the endpoint device, such as ios.
PlatformVersion
— (String
)The platform version of the endpoint device.
Timezone
— (String
)The time zone of the endpoint, specified as a tz database name value, such as America/Los_Angeles.
EffectiveDate
— (String
)The date and time, in ISO 8601 format, when the endpoint was last updated.
EndpointStatus
— (String
)Specifies whether messages or push notifications are sent to the endpoint. Possible values are: ACTIVE, messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.
Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.
Id
— (String
)The unique identifier that you assigned to the endpoint. The identifier should be a globally unique identifier (GUID) to ensure that it doesn't conflict with other endpoint identifiers that are associated with the application.
Location
— (map
)The geographic information for the endpoint.
City
— (String
)The name of the city where the endpoint is located.
Country
— (String
)The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.
Latitude
— (Float
)The latitude coordinate of the endpoint location, rounded to one decimal place.
Longitude
— (Float
)The longitude coordinate of the endpoint location, rounded to one decimal place.
PostalCode
— (String
)The postal or ZIP code for the area where the endpoint is located.
Region
— (String
)The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.
Metrics
— (map<Float>
)One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.
OptOut
— (String
)Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.
RequestId
— (String
)The unique identifier for the most recent request to update the endpoint.
User
— (map
)One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with the endpoint.
UserAttributes
— (map<Array<String>>
)One or more custom attributes that describe the user by associating a name with an array of values. For example, the value of an attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive.
An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.
UserId
— (String
)The unique identifier for the user.
-
(AWS.Response)
—
Returns:
deleteVoiceChannel(params = {}, callback) ⇒ AWS.Request
Disables the voice channel for an application and deletes any existing settings for the channel.
Service Reference:
Examples:
Calling the deleteVoiceChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.deleteVoiceChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:VoiceChannelResponse
— (map
)Provides information about the status and settings of the voice channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the voice channel applies to.
CreationDate
— (String
)The date and time, in ISO 8601 format, when the voice channel was enabled.
Enabled
— (Boolean
)Specifies whether the voice channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
Id
— (String
)(Deprecated) An identifier for the voice channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the voice channel is archived.
LastModifiedBy
— (String
)The user who last modified the voice channel.
LastModifiedDate
— (String
)The date and time, in ISO 8601 format, when the voice channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the voice channel, this value is VOICE.
Version
— (Integer
)The current version of the voice channel.
-
(AWS.Response)
—
Returns:
deleteVoiceTemplate(params = {}, callback) ⇒ AWS.Request
Deletes a message template for messages that were sent through the voice channel.
Service Reference:
Examples:
Calling the deleteVoiceTemplate operation
var params = {
TemplateName: 'STRING_VALUE', /* required */
Version: 'STRING_VALUE'
};
pinpoint.deleteVoiceTemplate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
TemplateName
— (String
)The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Version
— (String
)The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
For a get operation, retrieves information about the active version of the template.
For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
For a delete operation, deletes the template, including all versions of the template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:MessageBody
— (map
)Provides information about an API request or response.
Message
— (String
)The message that's returned from the API.
RequestID
— (String
)The unique identifier for the request or response.
-
(AWS.Response)
—
Returns:
getAdmChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the ADM channel for an application.
Service Reference:
Examples:
Calling the getAdmChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.getAdmChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ADMChannelResponse
— (map
)Provides information about the status and settings of the ADM (Amazon Device Messaging) channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the ADM channel applies to.
CreationDate
— (String
)The date and time when the ADM channel was enabled.
Enabled
— (Boolean
)Specifies whether the ADM channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
Id
— (String
)(Deprecated) An identifier for the ADM channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the ADM channel is archived.
LastModifiedBy
— (String
)The user who last modified the ADM channel.
LastModifiedDate
— (String
)The date and time when the ADM channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the ADM channel, this value is ADM.
Version
— (Integer
)The current version of the ADM channel.
-
(AWS.Response)
—
Returns:
getApnsChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the APNs channel for an application.
Service Reference:
Examples:
Calling the getApnsChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.getApnsChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:APNSChannelResponse
— (map
)Provides information about the status and settings of the APNs (Apple Push Notification service) channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the APNs channel applies to.
CreationDate
— (String
)The date and time when the APNs channel was enabled.
DefaultAuthenticationMethod
— (String
)The default authentication method that Amazon Pinpoint uses to authenticate with APNs for this channel, key or certificate.
Enabled
— (Boolean
)Specifies whether the APNs channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
HasTokenKey
— (Boolean
)Specifies whether the APNs channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.
Id
— (String
)(Deprecated) An identifier for the APNs channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the APNs channel is archived.
LastModifiedBy
— (String
)The user who last modified the APNs channel.
LastModifiedDate
— (String
)The date and time when the APNs channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the APNs channel, this value is APNS.
Version
— (Integer
)The current version of the APNs channel.
-
(AWS.Response)
—
Returns:
getApnsSandboxChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the APNs sandbox channel for an application.
Service Reference:
Examples:
Calling the getApnsSandboxChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.getApnsSandboxChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:APNSSandboxChannelResponse
— (map
)Provides information about the status and settings of the APNs (Apple Push Notification service) sandbox channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the APNs sandbox channel applies to.
CreationDate
— (String
)The date and time when the APNs sandbox channel was enabled.
DefaultAuthenticationMethod
— (String
)The default authentication method that Amazon Pinpoint uses to authenticate with the APNs sandbox environment for this channel, key or certificate.
Enabled
— (Boolean
)Specifies whether the APNs sandbox channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
HasTokenKey
— (Boolean
)Specifies whether the APNs sandbox channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.
Id
— (String
)(Deprecated) An identifier for the APNs sandbox channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the APNs sandbox channel is archived.
LastModifiedBy
— (String
)The user who last modified the APNs sandbox channel.
LastModifiedDate
— (String
)The date and time when the APNs sandbox channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the APNs sandbox channel, this value is APNS_SANDBOX.
Version
— (Integer
)The current version of the APNs sandbox channel.
-
(AWS.Response)
—
Returns:
getApnsVoipChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the APNs VoIP channel for an application.
Service Reference:
Examples:
Calling the getApnsVoipChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.getApnsVoipChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:APNSVoipChannelResponse
— (map
)Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the APNs VoIP channel applies to.
CreationDate
— (String
)The date and time when the APNs VoIP channel was enabled.
DefaultAuthenticationMethod
— (String
)The default authentication method that Amazon Pinpoint uses to authenticate with APNs for this channel, key or certificate.
Enabled
— (Boolean
)Specifies whether the APNs VoIP channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
HasTokenKey
— (Boolean
)Specifies whether the APNs VoIP channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.
Id
— (String
)(Deprecated) An identifier for the APNs VoIP channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the APNs VoIP channel is archived.
LastModifiedBy
— (String
)The user who last modified the APNs VoIP channel.
LastModifiedDate
— (String
)The date and time when the APNs VoIP channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the APNs VoIP channel, this value is APNS_VOIP.
Version
— (Integer
)The current version of the APNs VoIP channel.
-
(AWS.Response)
—
Returns:
getApnsVoipSandboxChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the APNs VoIP sandbox channel for an application.
Service Reference:
Examples:
Calling the getApnsVoipSandboxChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.getApnsVoipSandboxChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:APNSVoipSandboxChannelResponse
— (map
)Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP sandbox channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the APNs VoIP sandbox channel applies to.
CreationDate
— (String
)The date and time when the APNs VoIP sandbox channel was enabled.
DefaultAuthenticationMethod
— (String
)The default authentication method that Amazon Pinpoint uses to authenticate with the APNs sandbox environment for this channel, key or certificate.
Enabled
— (Boolean
)Specifies whether the APNs VoIP sandbox channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
HasTokenKey
— (Boolean
)Specifies whether the APNs VoIP sandbox channel is configured to communicate with APNs by using APNs tokens. To provide an authentication key for APNs tokens, set the TokenKey property of the channel.
Id
— (String
)(Deprecated) An identifier for the APNs VoIP sandbox channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the APNs VoIP sandbox channel is archived.
LastModifiedBy
— (String
)The user who last modified the APNs VoIP sandbox channel.
LastModifiedDate
— (String
)The date and time when the APNs VoIP sandbox channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the APNs VoIP sandbox channel, this value is APNS_VOIP_SANDBOX.
Version
— (Integer
)The current version of the APNs VoIP sandbox channel.
-
(AWS.Response)
—
Returns:
getApp(params = {}, callback) ⇒ AWS.Request
Retrieves information about an application.
Service Reference:
Examples:
Calling the getApp operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.getApp(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ApplicationResponse
— (map
)Provides information about an application.
Arn
— required — (String
)The Amazon Resource Name (ARN) of the application.
Id
— required — (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Name
— required — (String
)The display name of the application. This name is displayed as the Project name on the Amazon Pinpoint console.
tags
— (map<String>
)A string-to-string map of key-value pairs that identifies the tags that are associated with the application. Each tag consists of a required tag key and an associated tag value.
CreationDate
— (String
)The date and time when the Application was created.
-
(AWS.Response)
—
Returns:
getApplicationDateRangeKpi(params = {}, callback) ⇒ AWS.Request
Retrieves (queries) pre-aggregated data for a standard metric that applies to an application.
Service Reference:
Examples:
Calling the getApplicationDateRangeKpi operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
KpiName: 'STRING_VALUE', /* required */
EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
NextToken: 'STRING_VALUE',
PageSize: 'STRING_VALUE',
StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
pinpoint.getApplicationDateRangeKpi(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
EndTime
— (Date
)The last date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-26T20:00:00Z for 8:00 PM UTC July 26, 2019.
KpiName
— (String
)The name of the metric, also referred to as a key performance indicator (KPI), to retrieve data for. This value describes the associated metric and consists of two or more terms, which are comprised of lowercase alphanumeric characters, separated by a hyphen. Examples are email-open-rate and successful-delivery-rate. For a list of valid values, see the Amazon Pinpoint Developer Guide.
NextToken
— (String
)The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.
PageSize
— (String
)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.
StartTime
— (Date
)The first date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ApplicationDateRangeKpiResponse
— (map
)Provides the results of a query that retrieved the data for a standard metric that applies to an application, and provides information about that query.
ApplicationId
— required — (String
)The unique identifier for the application that the metric applies to.
EndTime
— required — (Date
)The last date and time of the date range that was used to filter the query results, in extended ISO 8601 format. The date range is inclusive.
KpiName
— required — (String
)The name of the metric, also referred to as a key performance indicator (KPI), that the data was retrieved for. This value describes the associated metric and consists of two or more terms, which are comprised of lowercase alphanumeric characters, separated by a hyphen. For a list of possible values, see the Amazon Pinpoint Developer Guide.
KpiResult
— required — (map
)An array of objects that contains the results of the query. Each object contains the value for the metric and metadata about that value.
Rows
— required — (Array<map>
)An array of objects that provides the results of a query that retrieved the data for a standard metric that applies to an application, campaign, or journey.
GroupedBys
— required — (Array<map>
)An array of objects that defines the field and field values that were used to group data in a result set that contains multiple results. This value is null if the data in a result set isn’t grouped.
Key
— required — (String
)The friendly name of the metric whose value is specified by the Value property.
Type
— required — (String
)The data type of the value specified by the Value property.
Value
— required — (String
)In a Values object, the value for the metric that the query retrieved data for. In a GroupedBys object, the value for the field that was used to group data in a result set that contains multiple results (Values objects).
Values
— required — (Array<map>
)An array of objects that provides pre-aggregated values for a standard metric that applies to an application, campaign, or journey.
Key
— required — (String
)The friendly name of the metric whose value is specified by the Value property.
Type
— required — (String
)The data type of the value specified by the Value property.
Value
— required — (String
)In a Values object, the value for the metric that the query retrieved data for. In a GroupedBys object, the value for the field that was used to group data in a result set that contains multiple results (Values objects).
NextToken
— (String
)The string to use in a subsequent request to get the next page of results in a paginated response. This value is null for the Application Metrics resource because the resource returns all results in a single page.
StartTime
— required — (Date
)The first date and time of the date range that was used to filter the query results, in extended ISO 8601 format. The date range is inclusive.
-
(AWS.Response)
—
Returns:
getApplicationSettings(params = {}, callback) ⇒ AWS.Request
Retrieves information about the settings for an application.
Service Reference:
Examples:
Calling the getApplicationSettings operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.getApplicationSettings(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ApplicationSettingsResource
— (map
)Provides information about an application, including the default settings for an application.
ApplicationId
— required — (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
CampaignHook
— (map
)The settings for the AWS Lambda function to invoke by default as a code hook for campaigns in the application. You can use this hook to customize segments that are used by campaigns in the application.
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.
"DELIVERY"
"FILTER"
WebUrl
— (String
)The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.
LastModifiedDate
— (String
)The date and time, in ISO 8601 format, when the application's settings were last modified.
Limits
— (map
)The default sending limits for campaigns in the application.
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.
Session
— (Integer
)The maximum total number of messages that the campaign can send per user session.
QuietTime
— (map
)The default quiet time for campaigns in the application. Quiet time is a specific time range when messages aren't sent 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 application (or a campaign or journey that has custom quiet time settings).
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 application (or a campaign or journey that has custom quiet time settings).
If any of the preceding conditions isn't met, the endpoint will receive messages from a campaign or 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.
JourneyLimits
— (map
)The default sending limits for journeys in the application. These limits apply to each journey for the application but can be overridden, on a per journey basis, with the JourneyLimits resource.
DailyCap
— (Integer
)The daily number of messages that an endpoint can receive from all journeys. The maximum value is 100. If set to 0, this limit will not apply.
TimeframeCap
— (map
)The default maximum number of messages that can be sent to an endpoint during the specified timeframe for all journeys.
Cap
— (Integer
)The maximum number of messages that all journeys can send to an endpoint during the specified timeframe. The maximum value is 100. If set to 0, this limit will not apply.
Days
— (Integer
)The length of the timeframe in days. The maximum value is 30. If set to 0, this limit will not apply.
TotalCap
— (Integer
)The default maximum number of messages that a single journey can sent to a single endpoint. The maximum value is 100. If set to 0, this limit will not apply.
-
(AWS.Response)
—
Returns:
getApps(params = {}, callback) ⇒ AWS.Request
Retrieves information about all the applications that are associated with your Amazon Pinpoint account.
Service Reference:
Examples:
Calling the getApps operation
var params = {
PageSize: 'STRING_VALUE',
Token: 'STRING_VALUE'
};
pinpoint.getApps(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
PageSize
— (String
)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.
Token
— (String
)The NextToken string that specifies which page of results to return in a paginated response.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ApplicationsResponse
— (map
)Provides information about all of your applications.
Item
— (Array<map>
)An array of responses, one for each application that was returned.
Arn
— required — (String
)The Amazon Resource Name (ARN) of the application.
Id
— required — (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Name
— required — (String
)The display name of the application. This name is displayed as the Project name on the Amazon Pinpoint console.
tags
— (map<String>
)A string-to-string map of key-value pairs that identifies the tags that are associated with the application. Each tag consists of a required tag key and an associated tag value.
CreationDate
— (String
)The date and time when the Application was created.
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.
-
(AWS.Response)
—
Returns:
getBaiduChannel(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status and settings of the Baidu channel for an application.
Service Reference:
Examples:
Calling the getBaiduChannel operation
var params = {
ApplicationId: 'STRING_VALUE' /* required */
};
pinpoint.getBaiduChannel(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:BaiduChannelResponse
— (map
)Provides information about the status and settings of the Baidu (Baidu Cloud Push) channel for an application.
ApplicationId
— (String
)The unique identifier for the application that the Baidu channel applies to.
CreationDate
— (String
)The date and time when the Baidu channel was enabled.
Credential
— required — (String
)The API key that you received from the Baidu Cloud Push service to communicate with the service.
Enabled
— (Boolean
)Specifies whether the Baidu channel is enabled for the application.
HasCredential
— (Boolean
)(Not used) This property is retained only for backward compatibility.
Id
— (String
)(Deprecated) An identifier for the Baidu channel. This property is retained only for backward compatibility.
IsArchived
— (Boolean
)Specifies whether the Baidu channel is archived.
LastModifiedBy
— (String
)The user who last modified the Baidu channel.
LastModifiedDate
— (String
)The date and time when the Baidu channel was last modified.
Platform
— required — (String
)The type of messaging or notification platform for the channel. For the Baidu channel, this value is BAIDU.
Version
— (Integer
)The current version of the Baidu channel.
-
(AWS.Response)
—
Returns:
getCampaign(params = {}, callback) ⇒ AWS.Request
Retrieves information about the status, configuration, and other settings for a campaign.
Service Reference:
Examples:
Calling the getCampaign operation
var params = {
ApplicationId: 'STRING_VALUE', /* required */
CampaignId: 'STRING_VALUE' /* required */
};
pinpoint.getCampaign(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ApplicationId
— (String
)The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
CampaignId
— (String
)The unique identifier for the campaign.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CampaignResponse
— (map
)Provides information about the status, configuration, and other settings for a campaign.
AdditionalTreatments
— (Array<map>
)An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
CustomDeliveryConfiguration
— (map
)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
— required — (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
— (Array<String>
)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.
Id
— required — (String
)The unique identifier for the treatment.
MessageConfiguration
— (map
)The message configuration settings for the treatment.
ADMMessage
— (map
)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.
"OPEN_APP"
"DEEP_LINK"
"URL"
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 nu
-
(AWS.Response)
—