We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.PinpointSMSVoiceV2

Inherits:
AWS.Service show all
Identifier:
pinpointsmsvoicev2
API Version:
2022-03-31
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference. This guide provides information about Amazon Pinpoint SMS and Voice, version 2 API resources, including supported HTTP methods, parameters, and schemas.

Amazon Pinpoint is an Amazon Web Services service that you can use to engage with your recipients across multiple messaging channels. The Amazon Pinpoint SMS and Voice, version 2 API provides programmatic access to options that are unique to the SMS and voice channels and supplements the resources provided by the Amazon Pinpoint API.

If you're new to Amazon Pinpoint, it's also helpful to review the Amazon Pinpoint Developer Guide. The Amazon Pinpoint Developer Guide provides tutorials, code samples, and procedures that demonstrate how to use Amazon Pinpoint features programmatically and how to integrate Amazon Pinpoint functionality into mobile apps and other types of applications. The guide also provides key information, such as Amazon Pinpoint integration with other Amazon Web Services services, and the quotas that apply to use of the service.

Regional availability

The Amazon Pinpoint SMS and Voice, version 2 API Reference is available in several Amazon Web Services Regions and it provides an endpoint for each of these Regions. For a list of all the Regions and endpoints where the API is currently available, see Amazon Web Services Service Endpoints and Amazon Pinpoint endpoints and quotas in the Amazon Web Services General Reference. To learn more about Amazon Web Services Regions, see Managing Amazon Web Services Regions in the Amazon Web Services General Reference.

In each Region, Amazon Web Services maintains multiple Availability Zones. These Availability Zones are physically isolated from each other, but are united by private, low-latency, high-throughput, and highly redundant network connections. These Availability Zones enable us to provide very high levels of availability and redundancy, while also minimizing latency. To learn more about the number of Availability Zones that are available in each Region, see Amazon Web Services Global Infrastructure.

Sending a Request Using PinpointSMSVoiceV2

var pinpointsmsvoicev2 = new AWS.PinpointSMSVoiceV2();
pinpointsmsvoicev2.associateOriginationIdentity(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 PinpointSMSVoiceV2 object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var pinpointsmsvoicev2 = new AWS.PinpointSMSVoiceV2({apiVersion: '2022-03-31'});

You can also set the API version globally in AWS.config.apiVersions using the pinpointsmsvoicev2 service identifier:

AWS.config.apiVersions = {
  pinpointsmsvoicev2: '2022-03-31',
  // other service API versions
};

var pinpointsmsvoicev2 = new AWS.PinpointSMSVoiceV2();

Version:

  • 2022-03-31

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService

Constructor Details

new AWS.PinpointSMSVoiceV2(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a PinpointSMSVoiceV2 object

var pinpointsmsvoicev2 = new AWS.PinpointSMSVoiceV2({apiVersion: '2022-03-31'});

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.PinpointSMSVoiceV2.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.PinpointSMSVoiceV2.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.PinpointSMSVoiceV2.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.
  • 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 to true.

  • 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

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

associateOriginationIdentity(params = {}, callback) ⇒ AWS.Request

Associates the specified origination identity with a pool.

If the origination identity is a phone number and is already associated with another pool, an error is returned. A sender ID can be associated with multiple pools.

If the origination identity configuration doesn't match the pool's configuration, an error is returned.

Service Reference:

Examples:

Calling the associateOriginationIdentity operation

var params = {
  IsoCountryCode: 'STRING_VALUE', /* required */
  OriginationIdentity: 'STRING_VALUE', /* required */
  PoolId: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE'
};
pinpointsmsvoicev2.associateOriginationIdentity(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: {})
    • PoolId — (String)

      The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these values using DescribePools.

    • OriginationIdentity — (String)

      The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

    • IsoCountryCode — (String)

      The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination identity.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • PoolArn — (String)

        The Amazon Resource Name (ARN) of the pool that is now associated with the origination identity.

      • PoolId — (String)

        The PoolId of the pool that is now associated with the origination identity.

      • OriginationIdentityArn — (String)

        The PhoneNumberArn or SenderIdArn of the origination identity.

      • OriginationIdentity — (String)

        The PhoneNumberId or SenderId of the origination identity.

      • IsoCountryCode — (String)

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createConfigurationSet(params = {}, callback) ⇒ AWS.Request

Creates a new configuration set. After you create the configuration set, you can add one or more event destinations to it.

A configuration set is a set of rules that you apply to the SMS and voice messages that you send.

When you send a message, you can optionally specify a single configuration set.

Service Reference:

Examples:

Calling the createConfigurationSet operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.createConfigurationSet(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: {})
    • ConfigurationSetName — (String)

      The name to use for the new configuration set.

    • Tags — (Array<map>)

      An array of key and value pair tags that's associated with the new configuration set.

      • Keyrequired — (String)

        The key identifier, or name, of the tag.

      • Valuerequired — (String)

        The string value associated with the key of the tag.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • ConfigurationSetArn — (String)

        The Amazon Resource Name (ARN) of the newly created configuration set.

      • ConfigurationSetName — (String)

        The name of the new configuration set.

      • Tags — (Array<map>)

        An array of key and value pair tags that's associated with the configuration set.

        • Keyrequired — (String)

          The key identifier, or name, of the tag.

        • Valuerequired — (String)

          The string value associated with the key of the tag.

      • CreatedTimestamp — (Date)

        The time when the configuration set was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createEventDestination(params = {}, callback) ⇒ AWS.Request

Creates a new event destination in a configuration set.

An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic.

Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a reference to a single destination, such as a CloudWatch or Kinesis Data Firehose destination.

Service Reference:

Examples:

Calling the createEventDestination operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  EventDestinationName: 'STRING_VALUE', /* required */
  MatchingEventTypes: [ /* required */
    ALL | TEXT_ALL | TEXT_SENT | TEXT_PENDING | TEXT_QUEUED | TEXT_SUCCESSFUL | TEXT_DELIVERED | TEXT_INVALID | TEXT_INVALID_MESSAGE | TEXT_UNREACHABLE | TEXT_CARRIER_UNREACHABLE | TEXT_BLOCKED | TEXT_CARRIER_BLOCKED | TEXT_SPAM | TEXT_UNKNOWN | TEXT_TTL_EXPIRED | VOICE_ALL | VOICE_INITIATED | VOICE_RINGING | VOICE_ANSWERED | VOICE_COMPLETED | VOICE_BUSY | VOICE_NO_ANSWER | VOICE_FAILED | VOICE_TTL_EXPIRED,
    /* more items */
  ],
  ClientToken: 'STRING_VALUE',
  CloudWatchLogsDestination: {
    IamRoleArn: 'STRING_VALUE', /* required */
    LogGroupArn: 'STRING_VALUE' /* required */
  },
  KinesisFirehoseDestination: {
    DeliveryStreamArn: 'STRING_VALUE', /* required */
    IamRoleArn: 'STRING_VALUE' /* required */
  },
  SnsDestination: {
    TopicArn: 'STRING_VALUE' /* required */
  }
};
pinpointsmsvoicev2.createEventDestination(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: {})
    • ConfigurationSetName — (String)

      Either the name of the configuration set or the configuration set ARN to apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

    • EventDestinationName — (String)

      The name that identifies the event destination.

    • MatchingEventTypes — (Array<String>)

      An array of event types that determine which events to log. If "ALL" is used, then Amazon Pinpoint logs every event type.

      Note: The TEXT_SENT event type is not supported.
    • CloudWatchLogsDestination — (map)

      An object that contains information about an event destination for logging to Amazon CloudWatch logs.

      • IamRoleArnrequired — (String)

        The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.

      • LogGroupArnrequired — (String)

        The name of the Amazon CloudWatch log group that you want to record events in.

    • KinesisFirehoseDestination — (map)

      An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

      • IamRoleArnrequired — (String)

        The ARN of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon Firehose destination.

      • DeliveryStreamArnrequired — (String)

        The Amazon Resource Name (ARN) of the delivery stream.

    • SnsDestination — (map)

      An object that contains information about an event destination for logging to Amazon SNS.

      • TopicArnrequired — (String)

        The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • ConfigurationSetArn — (String)

        The ARN of the configuration set.

      • ConfigurationSetName — (String)

        The name of the configuration set.

      • EventDestination — (map)

        The details of the destination where events are logged.

        • EventDestinationNamerequired — (String)

          The name of the EventDestination.

        • Enabledrequired — (Boolean)

          When set to true events will be logged.

        • MatchingEventTypesrequired — (Array<String>)

          An array of event types that determine which events to log.

          Note: The TEXT_SENT event type is not supported.
        • CloudWatchLogsDestination — (map)

          An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.

          • IamRoleArnrequired — (String)

            The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.

          • LogGroupArnrequired — (String)

            The name of the Amazon CloudWatch log group that you want to record events in.

        • KinesisFirehoseDestination — (map)

          An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

          • IamRoleArnrequired — (String)

            The ARN of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon Firehose destination.

          • DeliveryStreamArnrequired — (String)

            The Amazon Resource Name (ARN) of the delivery stream.

        • SnsDestination — (map)

          An object that contains information about an event destination that sends logging events to Amazon SNS.

          • TopicArnrequired — (String)

            The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createOptOutList(params = {}, callback) ⇒ AWS.Request

Creates a new opt-out list.

If the opt-out list name already exists, an error is returned.

An opt-out list is a list of phone numbers that are opted out, meaning you can't send SMS or voice messages to them. If end user replies with the keyword "STOP," an entry for the phone number is added to the opt-out list. In addition to STOP, your recipients can use any supported opt-out keyword, such as CANCEL or OPTOUT. For a list of supported opt-out keywords, see SMS opt out in the Amazon Pinpoint User Guide.

Service Reference:

Examples:

Calling the createOptOutList operation

var params = {
  OptOutListName: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.createOptOutList(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: {})
    • OptOutListName — (String)

      The name of the new OptOutList.

    • Tags — (Array<map>)

      An array of tags (key and value pairs) to associate with the new OptOutList.

      • Keyrequired — (String)

        The key identifier, or name, of the tag.

      • Valuerequired — (String)

        The string value associated with the key of the tag.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • OptOutListArn — (String)

        The Amazon Resource Name (ARN) for the OptOutList.

      • OptOutListName — (String)

        The name of the new OptOutList.

      • Tags — (Array<map>)

        An array of tags (key and value pairs) associated with the new OptOutList.

        • Keyrequired — (String)

          The key identifier, or name, of the tag.

        • Valuerequired — (String)

          The string value associated with the key of the tag.

      • CreatedTimestamp — (Date)

        The time when the pool was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createPool(params = {}, callback) ⇒ AWS.Request

Creates a new pool and associates the specified origination identity to the pool. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.

The new pool inherits its configuration from the specified origination identity. This includes keywords, message type, opt-out list, two-way configuration, and self-managed opt-out configuration. Deletion protection isn't inherited from the origination identity and defaults to false.

If the origination identity is a phone number and is already associated with another pool, an error is returned. A sender ID can be associated with multiple pools.

Service Reference:

Examples:

Calling the createPool operation

var params = {
  IsoCountryCode: 'STRING_VALUE', /* required */
  MessageType: TRANSACTIONAL | PROMOTIONAL, /* required */
  OriginationIdentity: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  DeletionProtectionEnabled: true || false,
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.createPool(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: {})
    • OriginationIdentity — (String)

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

    • IsoCountryCode — (String)

      The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.

    • MessageType — (String)

      The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

      Possible values include:
      • "TRANSACTIONAL"
      • "PROMOTIONAL"
    • DeletionProtectionEnabled — (Boolean)

      By default this is set to false. When set to true the pool can't be deleted. You can change this value using the UpdatePool action.

    • Tags — (Array<map>)

      An array of tags (key and value pairs) associated with the pool.

      • Keyrequired — (String)

        The key identifier, or name, of the tag.

      • Valuerequired — (String)

        The string value associated with the key of the tag.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • PoolArn — (String)

        The Amazon Resource Name (ARN) for the pool.

      • PoolId — (String)

        The unique identifier for the pool.

      • Status — (String)

        The current status of the pool.

        • CREATING: The pool is currently being created and isn't yet available for use.

        • ACTIVE: The pool is active and available for use.

        • DELETING: The pool is being deleted.

        Possible values include:
        • "CREATING"
        • "ACTIVE"
        • "DELETING"
      • MessageType — (String)

        The type of message for the pool to use.

        Possible values include:
        • "TRANSACTIONAL"
        • "PROMOTIONAL"
      • TwoWayEnabled — (Boolean)

        By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

      • TwoWayChannelArn — (String)

        The Amazon Resource Name (ARN) of the two way channel.

      • TwoWayChannelRole — (String)

        An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

      • SelfManagedOptOutsEnabled — (Boolean)

        By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

      • OptOutListName — (String)

        The name of the OptOutList associated with the pool.

      • SharedRoutesEnabled — (Boolean)

        Indicates whether shared routes are enabled for the pool.

      • DeletionProtectionEnabled — (Boolean)

        When set to true deletion protection is enabled. By default this is set to false.

      • Tags — (Array<map>)

        An array of tags (key and value pairs) associated with the pool.

        • Keyrequired — (String)

          The key identifier, or name, of the tag.

        • Valuerequired — (String)

          The string value associated with the key of the tag.

      • CreatedTimestamp — (Date)

        The time when the pool was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createRegistration(params = {}, callback) ⇒ AWS.Request

Creates a new registration based on the RegistrationType field.

Service Reference:

Examples:

Calling the createRegistration operation

var params = {
  RegistrationType: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.createRegistration(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: {})
    • RegistrationType — (String)

      The type of registration form to create. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

    • Tags — (Array<map>)

      An array of tags (key and value pairs) to associate with the registration.

      • Keyrequired — (String)

        The key identifier, or name, of the tag.

      • Valuerequired — (String)

        The string value associated with the key of the tag.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • RegistrationType — (String)

        The type of registration form to create. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

      • RegistrationStatus — (String)

        The status of the registration.

        • CREATED: Your registration is created but not submitted.

        • SUBMITTED: Your registration has been submitted and is awaiting review.

        • REVIEWING: Your registration has been accepted and is being reviewed.

        • PROVISIONING: Your registration has been approved and your origination identity is being created.

        • COMPLETE: Your registration has been approved and and your origination identity has been created.

        • REQUIRES_UPDATES: You must fix your registration and resubmit it.

        • CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number.

        • DELETED: The registration has been deleted.

        Possible values include:
        • "CREATED"
        • "SUBMITTED"
        • "REVIEWING"
        • "PROVISIONING"
        • "COMPLETE"
        • "REQUIRES_UPDATES"
        • "CLOSED"
        • "DELETED"
      • CurrentVersionNumber — (Integer)

        The current version number of the registration.

      • AdditionalAttributes — (map<String>)

        Metadata about a given registration which is specific to that registration type.

      • Tags — (Array<map>)

        An array of tags (key and value pairs) to associate with the registration.

        • Keyrequired — (String)

          The key identifier, or name, of the tag.

        • Valuerequired — (String)

          The string value associated with the key of the tag.

      • CreatedTimestamp — (Date)

        The time when the registration was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createRegistrationAssociation(params = {}, callback) ⇒ AWS.Request

Associate the registration with an origination identity such as a phone number or sender ID.

Service Reference:

Examples:

Calling the createRegistrationAssociation operation

var params = {
  RegistrationId: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.createRegistrationAssociation(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

    • ResourceId — (String)

      The unique identifier for the origination identity. For example this could be a PhoneNumberId or SenderId.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • RegistrationType — (String)

        The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

      • ResourceArn — (String)

        The Amazon Resource Name (ARN) of the origination identity that is associated with the registration.

      • ResourceId — (String)

        The unique identifier for the origination identity. For example this could be a PhoneNumberId or SenderId.

      • ResourceType — (String)

        The registration type or origination identity type.

      • IsoCountryCode — (String)

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

      • PhoneNumber — (String)

        The phone number associated with the registration in E.164 format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createRegistrationAttachment(params = {}, callback) ⇒ AWS.Request

Create a new registration attachment to use for uploading a file or a URL to a file. The maximum file size is 1MiB and valid file extensions are PDF, JPEG and PNG. For example, many sender ID registrations require a signed “letter of authorization” (LOA) to be submitted.

Service Reference:

Examples:

Calling the createRegistrationAttachment operation

var params = {
  AttachmentBody: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */,
  AttachmentUrl: 'STRING_VALUE',
  ClientToken: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.createRegistrationAttachment(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: {})
    • AttachmentBody — (Buffer, Typed Array, Blob, String)

      The registration file to upload. The maximum file size is 1MiB and valid file extensions are PDF, JPEG and PNG.

    • AttachmentUrl — (String)

      A URL to the required registration file. For example, you can provide the S3 object URL.

    • Tags — (Array<map>)

      An array of tags (key and value pairs) to associate with the registration attachment.

      • Keyrequired — (String)

        The key identifier, or name, of the tag.

      • Valuerequired — (String)

        The string value associated with the key of the tag.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • RegistrationAttachmentArn — (String)

        The Amazon Resource Name (ARN) for the registration attachment.

      • RegistrationAttachmentId — (String)

        The unique identifier for the registration attachment.

      • AttachmentStatus — (String)

        The status of the registration attachment.

        • UPLOAD_IN_PROGRESS The attachment is being uploaded.

        • UPLOAD_COMPLETE The attachment has been uploaded.

        • UPLOAD_FAILED The attachment failed to uploaded.

        • DELETED The attachment has been deleted..

        Possible values include:
        • "UPLOAD_IN_PROGRESS"
        • "UPLOAD_COMPLETE"
        • "UPLOAD_FAILED"
        • "DELETED"
      • Tags — (Array<map>)

        An array of tags (key and value pairs) to associate with the registration attachment.

        • Keyrequired — (String)

          The key identifier, or name, of the tag.

        • Valuerequired — (String)

          The string value associated with the key of the tag.

      • CreatedTimestamp — (Date)

        The time when the registration attachment was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createRegistrationVersion(params = {}, callback) ⇒ AWS.Request

Create a new version of the registration and increase the VersionNumber. The previous version of the registration becomes read-only.

Service Reference:

Examples:

Calling the createRegistrationVersion operation

var params = {
  RegistrationId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.createRegistrationVersion(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • VersionNumber — (Integer)

        The new version number of the registration.

      • RegistrationVersionStatus — (String)

        The status of the registration.

        • DRAFT: The initial status of a registration version after it’s created.

        • SUBMITTED: Your registration has been submitted.

        • REVIEWING: Your registration has been accepted and is being reviewed.

        • APPROVED: Your registration has been approved.

        • DISCARDED: You've abandon this version of their registration to start over with a new version.

        • DENIED: You must fix your registration and resubmit it.

        • REVOKED: Your previously approved registration has been revoked.

        • ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

        Possible values include:
        • "DRAFT"
        • "SUBMITTED"
        • "REVIEWING"
        • "APPROVED"
        • "DISCARDED"
        • "DENIED"
        • "REVOKED"
        • "ARCHIVED"
      • RegistrationVersionStatusHistory — (map)

        A RegistrationVersionStatusHistory object that contains timestamps for the registration.

        • DraftTimestamprequired — (Date)

          The time when the registration was in the draft state, in UNIX epoch time format.

        • SubmittedTimestamp — (Date)

          The time when the registration was in the submitted state, in UNIX epoch time format.

        • ReviewingTimestamp — (Date)

          The time when the registration was in the reviewing state, in UNIX epoch time format.

        • ApprovedTimestamp — (Date)

          The time when the registration was in the approved state, in UNIX epoch time format.

        • DiscardedTimestamp — (Date)

          The time when the registration was in the discarded state, in UNIX epoch time format.

        • DeniedTimestamp — (Date)

          The time when the registration was in the denied state, in UNIX epoch time format.

        • RevokedTimestamp — (Date)

          The time when the registration was in the revoked state, in UNIX epoch time format.

        • ArchivedTimestamp — (Date)

          The time when the registration was in the archived state, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createVerifiedDestinationNumber(params = {}, callback) ⇒ AWS.Request

You can only send messages to verified destination numbers when your account is in the sandbox. You can add up to 10 verified destination numbers.

Service Reference:

Examples:

Calling the createVerifiedDestinationNumber operation

var params = {
  DestinationPhoneNumber: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.createVerifiedDestinationNumber(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: {})
    • DestinationPhoneNumber — (String)

      The verified destination phone number, in E.164 format.

    • Tags — (Array<map>)

      An array of tags (key and value pairs) to associate with the destination number.

      • Keyrequired — (String)

        The key identifier, or name, of the tag.

      • Valuerequired — (String)

        The string value associated with the key of the tag.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • VerifiedDestinationNumberArn — (String)

        The Amazon Resource Name (ARN) for the verified destination phone number.

      • VerifiedDestinationNumberId — (String)

        The unique identifier for the verified destination phone number.

      • DestinationPhoneNumber — (String)

        The verified destination phone number, in E.164 format.

      • Status — (String)

        The status of the verified destination phone number.

        • PENDING: The phone number hasn't been verified yet.

        • VERIFIED: The phone number is verified and can receive messages.

        Possible values include:
        • "PENDING"
        • "VERIFIED"
      • Tags — (Array<map>)

        An array of tags (key and value pairs) to associate with the destination number.

        • Keyrequired — (String)

          The key identifier, or name, of the tag.

        • Valuerequired — (String)

          The string value associated with the key of the tag.

      • CreatedTimestamp — (Date)

        The time when the verified phone number was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConfigurationSet(params = {}, callback) ⇒ AWS.Request

Deletes an existing configuration set.

A configuration set is a set of rules that you apply to voice and SMS messages that you send. In a configuration set, you can specify a destination for specific types of events related to voice and SMS messages.

Service Reference:

Examples:

Calling the deleteConfigurationSet operation

var params = {
  ConfigurationSetName: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteConfigurationSet(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: {})
    • ConfigurationSetName — (String)

      The name of the configuration set or the configuration set ARN that you want to delete. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

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. The data object has the following properties:

      • ConfigurationSetArn — (String)

        The Amazon Resource Name (ARN) of the deleted configuration set.

      • ConfigurationSetName — (String)

        The name of the deleted configuration set.

      • EventDestinations — (Array<map>)

        An array of any EventDestination objects that were associated with the deleted configuration set.

        • EventDestinationNamerequired — (String)

          The name of the EventDestination.

        • Enabledrequired — (Boolean)

          When set to true events will be logged.

        • MatchingEventTypesrequired — (Array<String>)

          An array of event types that determine which events to log.

          Note: The TEXT_SENT event type is not supported.
        • CloudWatchLogsDestination — (map)

          An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.

          • IamRoleArnrequired — (String)

            The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.

          • LogGroupArnrequired — (String)

            The name of the Amazon CloudWatch log group that you want to record events in.

        • KinesisFirehoseDestination — (map)

          An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

          • IamRoleArnrequired — (String)

            The ARN of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon Firehose destination.

          • DeliveryStreamArnrequired — (String)

            The Amazon Resource Name (ARN) of the delivery stream.

        • SnsDestination — (map)

          An object that contains information about an event destination that sends logging events to Amazon SNS.

          • TopicArnrequired — (String)

            The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.

      • DefaultMessageType — (String)

        The default message type of the configuration set that was deleted.

        Possible values include:
        • "TRANSACTIONAL"
        • "PROMOTIONAL"
      • DefaultSenderId — (String)

        The default Sender ID of the configuration set that was deleted.

      • CreatedTimestamp — (Date)

        The time that the deleted configuration set was created in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDefaultMessageType(params = {}, callback) ⇒ AWS.Request

Deletes an existing default message type on a configuration set.

A message type is a type of messages that you plan to send. If you send account-related messages or time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages that contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services account.

Service Reference:

Examples:

Calling the deleteDefaultMessageType operation

var params = {
  ConfigurationSetName: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteDefaultMessageType(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: {})
    • ConfigurationSetName — (String)

      The name of the configuration set or the configuration set Amazon Resource Name (ARN) to delete the default message type from. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

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. The data object has the following properties:

      • ConfigurationSetArn — (String)

        The Amazon Resource Name (ARN) of the configuration set.

      • ConfigurationSetName — (String)

        The name of the configuration set.

      • MessageType — (String)

        The current message type for the configuration set.

        Possible values include:
        • "TRANSACTIONAL"
        • "PROMOTIONAL"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDefaultSenderId(params = {}, callback) ⇒ AWS.Request

Deletes an existing default sender ID on a configuration set.

A default sender ID is the identity that appears on recipients' devices when they receive SMS messages. Support for sender ID capabilities varies by country or region.

Service Reference:

Examples:

Calling the deleteDefaultSenderId operation

var params = {
  ConfigurationSetName: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteDefaultSenderId(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: {})
    • ConfigurationSetName — (String)

      The name of the configuration set or the configuration set Amazon Resource Name (ARN) to delete the default sender ID from. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

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. The data object has the following properties:

      • ConfigurationSetArn — (String)

        The Amazon Resource Name (ARN) of the configuration set.

      • ConfigurationSetName — (String)

        The name of the configuration set.

      • SenderId — (String)

        The current sender ID for the configuration set.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteEventDestination(params = {}, callback) ⇒ AWS.Request

Deletes an existing event destination.

An event destination is a location where you send response information about the messages that you send. For example, when a message is delivered successfully, you can send information about that event to an Amazon CloudWatch destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic.

Service Reference:

Examples:

Calling the deleteEventDestination operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  EventDestinationName: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteEventDestination(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: {})
    • ConfigurationSetName — (String)

      The name of the configuration set or the configuration set's Amazon Resource Name (ARN) to remove the event destination from. The ConfigurateSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

    • EventDestinationName — (String)

      The name of the event destination to delete.

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. The data object has the following properties:

      • ConfigurationSetArn — (String)

        The Amazon Resource Name (ARN) of the configuration set.

      • ConfigurationSetName — (String)

        The name of the configuration set the event destination was deleted from.

      • EventDestination — (map)

        The event destination object that was deleted.

        • EventDestinationNamerequired — (String)

          The name of the EventDestination.

        • Enabledrequired — (Boolean)

          When set to true events will be logged.

        • MatchingEventTypesrequired — (Array<String>)

          An array of event types that determine which events to log.

          Note: The TEXT_SENT event type is not supported.
        • CloudWatchLogsDestination — (map)

          An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.

          • IamRoleArnrequired — (String)

            The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.

          • LogGroupArnrequired — (String)

            The name of the Amazon CloudWatch log group that you want to record events in.

        • KinesisFirehoseDestination — (map)

          An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

          • IamRoleArnrequired — (String)

            The ARN of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon Firehose destination.

          • DeliveryStreamArnrequired — (String)

            The Amazon Resource Name (ARN) of the delivery stream.

        • SnsDestination — (map)

          An object that contains information about an event destination that sends logging events to Amazon SNS.

          • TopicArnrequired — (String)

            The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteKeyword(params = {}, callback) ⇒ AWS.Request

Deletes an existing keyword from an origination phone number or pool.

A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, Amazon Pinpoint responds with a customizable message.

Keywords "HELP" and "STOP" can't be deleted or modified.

Service Reference:

Examples:

Calling the deleteKeyword operation

var params = {
  Keyword: 'STRING_VALUE', /* required */
  OriginationIdentity: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteKeyword(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: {})
    • OriginationIdentity — (String)

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or PoolArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn and DescribePools to find the values of PoolId and PoolArn.

    • Keyword — (String)

      The keyword to delete.

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. The data object has the following properties:

      • OriginationIdentityArn — (String)

        The PhoneNumberArn or PoolArn that the keyword was associated with.

      • OriginationIdentity — (String)

        The PhoneNumberId or PoolId that the keyword was associated with.

      • Keyword — (String)

        The keyword that was deleted.

      • KeywordMessage — (String)

        The message that was associated with the deleted keyword.

      • KeywordAction — (String)

        The action that was associated with the deleted keyword.

        Possible values include:
        • "AUTOMATIC_RESPONSE"
        • "OPT_OUT"
        • "OPT_IN"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteOptedOutNumber(params = {}, callback) ⇒ AWS.Request

Deletes an existing opted out destination phone number from the specified opt-out list.

Each destination phone number can only be deleted once every 30 days.

If the specified destination phone number doesn't exist or if the opt-out list doesn't exist, an error is returned.

Service Reference:

Examples:

Calling the deleteOptedOutNumber operation

var params = {
  OptOutListName: 'STRING_VALUE', /* required */
  OptedOutNumber: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteOptedOutNumber(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: {})
    • OptOutListName — (String)

      The OptOutListName or OptOutListArn to remove the phone number from.

    • OptedOutNumber — (String)

      The phone number, in E.164 format, to remove from the OptOutList.

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. The data object has the following properties:

      • OptOutListArn — (String)

        The OptOutListArn that the phone number was removed from.

      • OptOutListName — (String)

        The OptOutListName that the phone number was removed from.

      • OptedOutNumber — (String)

        The phone number that was removed from the OptOutList.

      • OptedOutTimestamp — (Date)

        The time that the number was removed at, in UNIX epoch time format.

      • EndUserOptedOut — (Boolean)

        This is true if it was the end user who requested their phone number be removed.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteOptOutList(params = {}, callback) ⇒ AWS.Request

Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are deleted.

If the specified opt-out list name doesn't exist or is in-use by an origination phone number or pool, an error is returned.

Service Reference:

Examples:

Calling the deleteOptOutList operation

var params = {
  OptOutListName: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteOptOutList(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: {})
    • OptOutListName — (String)

      The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

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. The data object has the following properties:

      • OptOutListArn — (String)

        The Amazon Resource Name (ARN) of the OptOutList that was removed.

      • OptOutListName — (String)

        The name of the OptOutList that was removed.

      • CreatedTimestamp — (Date)

        The time when the OptOutList was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deletePool(params = {}, callback) ⇒ AWS.Request

Deletes an existing pool. Deleting a pool disassociates all origination identities from that pool.

If the pool status isn't active or if deletion protection is enabled, an error is returned.

A pool is a collection of phone numbers and SenderIds. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.

Service Reference:

Examples:

Calling the deletePool operation

var params = {
  PoolId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deletePool(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: {})
    • PoolId — (String)

      The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .

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. The data object has the following properties:

      • PoolArn — (String)

        The Amazon Resource Name (ARN) of the pool that was deleted.

      • PoolId — (String)

        The PoolId of the pool that was deleted.

      • Status — (String)

        The current status of the pool.

        • CREATING: The pool is currently being created and isn't yet available for use.

        • ACTIVE: The pool is active and available for use.

        • DELETING: The pool is being deleted.

        Possible values include:
        • "CREATING"
        • "ACTIVE"
        • "DELETING"
      • MessageType — (String)

        The message type that was associated with the deleted pool.

        Possible values include:
        • "TRANSACTIONAL"
        • "PROMOTIONAL"
      • TwoWayEnabled — (Boolean)

        By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

      • TwoWayChannelArn — (String)

        The Amazon Resource Name (ARN) of the TwoWayChannel.

      • TwoWayChannelRole — (String)

        An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

      • SelfManagedOptOutsEnabled — (Boolean)

        By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

      • OptOutListName — (String)

        The name of the OptOutList that was associated with the deleted pool.

      • SharedRoutesEnabled — (Boolean)

        Indicates whether shared routes are enabled for the pool.

      • CreatedTimestamp — (Date)

        The time when the pool was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteRegistration(params = {}, callback) ⇒ AWS.Request

Permanently delete an existing registration from your account.

Service Reference:

Examples:

Calling the deleteRegistration operation

var params = {
  RegistrationId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteRegistration(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • RegistrationType — (String)

        The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

      • RegistrationStatus — (String)

        The status of the registration.

        • CREATED: Your registration is created but not submitted.

        • SUBMITTED: Your registration has been submitted and is awaiting review.

        • REVIEWING: Your registration has been accepted and is being reviewed.

        • PROVISIONING: Your registration has been approved and your origination identity is being created.

        • COMPLETE: Your registration has been approved and and your origination identity has been created.

        • REQUIRES_UPDATES: You must fix your registration and resubmit it.

        • CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number.

        • DELETED: The registration has been deleted.

        Possible values include:
        • "CREATED"
        • "SUBMITTED"
        • "REVIEWING"
        • "PROVISIONING"
        • "COMPLETE"
        • "REQUIRES_UPDATES"
        • "CLOSED"
        • "DELETED"
      • CurrentVersionNumber — (Integer)

        The current version number of the registration.

      • ApprovedVersionNumber — (Integer)

        The version number of the registration that was approved.

      • LatestDeniedVersionNumber — (Integer)

        The latest version number of the registration that was denied.

      • AdditionalAttributes — (map<String>)

        Metadata about a given registration which is specific to that registration type.

      • CreatedTimestamp — (Date)

        The time when the registration was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteRegistrationAttachment(params = {}, callback) ⇒ AWS.Request

Permanently delete the specified registration attachment.

Service Reference:

Examples:

Calling the deleteRegistrationAttachment operation

var params = {
  RegistrationAttachmentId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteRegistrationAttachment(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: {})
    • RegistrationAttachmentId — (String)

      The unique identifier for the registration attachment.

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. The data object has the following properties:

      • RegistrationAttachmentArn — (String)

        The Amazon Resource Name (ARN) for the registration attachment.

      • RegistrationAttachmentId — (String)

        The unique identifier for the registration attachment.

      • AttachmentStatus — (String)

        The status of the registration attachment.

        • UPLOAD_IN_PROGRESS The attachment is being uploaded.

        • UPLOAD_COMPLETE The attachment has been uploaded.

        • UPLOAD_FAILED The attachment failed to uploaded.

        • DELETED The attachment has been deleted..

        Possible values include:
        • "UPLOAD_IN_PROGRESS"
        • "UPLOAD_COMPLETE"
        • "UPLOAD_FAILED"
        • "DELETED"
      • AttachmentUploadErrorReason — (String)

        The error message if the upload failed.

        Possible values include:
        • "INTERNAL_ERROR"
      • CreatedTimestamp — (Date)

        The time when the registration attachment was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteRegistrationFieldValue(params = {}, callback) ⇒ AWS.Request

Delete the value in a registration form field.

Service Reference:

Examples:

Calling the deleteRegistrationFieldValue operation

var params = {
  FieldPath: 'STRING_VALUE', /* required */
  RegistrationId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteRegistrationFieldValue(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

    • FieldPath — (String)

      The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • VersionNumber — (Integer)

        The version number of the registration.

      • FieldPath — (String)

        The path to the registration form field.

      • SelectChoices — (Array<String>)

        An array of values for the form field.

      • TextValue — (String)

        The text data for a free form field.

      • RegistrationAttachmentId — (String)

        The unique identifier for the registration attachment.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteTextMessageSpendLimitOverride(params = {}, callback) ⇒ AWS.Request

Deletes an account-level monthly spending limit override for sending text messages. Deleting a spend limit override will set the EnforcedLimit to equal the MaxLimit, which is controlled by Amazon Web Services. For more information on spend limits (quotas) see Amazon Pinpoint quotas in the Amazon Pinpoint Developer Guide.

Examples:

Calling the deleteTextMessageSpendLimitOverride operation

var params = {
};
pinpointsmsvoicev2.deleteTextMessageSpendLimitOverride(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: {})

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. The data object has the following properties:

      • MonthlyLimit — (Integer)

        The current monthly limit, in US dollars.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteVerifiedDestinationNumber(params = {}, callback) ⇒ AWS.Request

Delete a verified destination phone number.

Service Reference:

Examples:

Calling the deleteVerifiedDestinationNumber operation

var params = {
  VerifiedDestinationNumberId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.deleteVerifiedDestinationNumber(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: {})
    • VerifiedDestinationNumberId — (String)

      The unique identifier for the verified destination phone number.

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. The data object has the following properties:

      • VerifiedDestinationNumberArn — (String)

        The Amazon Resource Name (ARN) for the verified destination phone number.

      • VerifiedDestinationNumberId — (String)

        The unique identifier for the verified destination phone number.

      • DestinationPhoneNumber — (String)

        The verified destination phone number, in E.164 format.

      • CreatedTimestamp — (Date)

        The time when the destination phone number was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteVoiceMessageSpendLimitOverride(params = {}, callback) ⇒ AWS.Request

Deletes an account level monthly spend limit override for sending voice messages. Deleting a spend limit override sets the EnforcedLimit equal to the MaxLimit, which is controlled by Amazon Web Services. For more information on spending limits (quotas) see Amazon Pinpoint quotas in the Amazon Pinpoint Developer Guide.

Examples:

Calling the deleteVoiceMessageSpendLimitOverride operation

var params = {
};
pinpointsmsvoicev2.deleteVoiceMessageSpendLimitOverride(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: {})

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. The data object has the following properties:

      • MonthlyLimit — (Integer)

        The current monthly limit, in US dollars.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeAccountAttributes(params = {}, callback) ⇒ AWS.Request

Describes attributes of your Amazon Web Services account. The supported account attributes include account tier, which indicates whether your account is in the sandbox or production environment. When you're ready to move your account out of the sandbox, create an Amazon Web Services Support case for a service limit increase request.

New Amazon Pinpoint accounts are placed into an SMS or voice sandbox. The sandbox protects both Amazon Web Services end recipients and SMS or voice recipients from fraud and abuse.

Service Reference:

Examples:

Calling the describeAccountAttributes operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
pinpointsmsvoicev2.describeAccountAttributes(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: {})
    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • AccountAttributes — (Array<map>)

        An array of AccountAttributes objects.

        • Namerequired — (String)

          The name of the account attribute.

          Possible values include:
          • "ACCOUNT_TIER"
        • Valuerequired — (String)

          The value associated with the account attribute name.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeAccountLimits(params = {}, callback) ⇒ AWS.Request

Describes the current Amazon Pinpoint SMS Voice V2 resource quotas for your account. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.

When you establish an Amazon Web Services account, the account has initial quotas on the maximum number of configuration sets, opt-out lists, phone numbers, and pools that you can create in a given Region. For more information see Amazon Pinpoint quotas in the Amazon Pinpoint Developer Guide.

Service Reference:

Examples:

Calling the describeAccountLimits operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
pinpointsmsvoicev2.describeAccountLimits(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: {})
    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • AccountLimits — (Array<map>)

        An array of AccountLimit objects that show the current spend limits.

        • Namerequired — (String)

          The name of the attribute to apply the account limit to.

          Possible values include:
          • "PHONE_NUMBERS"
          • "POOLS"
          • "CONFIGURATION_SETS"
          • "OPT_OUT_LISTS"
          • "SENDER_IDS"
          • "REGISTRATIONS"
          • "REGISTRATION_ATTACHMENTS"
          • "VERIFIED_DESTINATION_NUMBERS"
        • Usedrequired — (Integer)

          The current amount that has been spent, in US dollars.

        • Maxrequired — (Integer)

          The Amazon Web Services set limit for that resource type, in US dollars.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConfigurationSets(params = {}, callback) ⇒ AWS.Request

Describes the specified configuration sets or all in your account.

If you specify configuration set names, the output includes information for only the specified configuration sets. If you specify filters, the output includes information for only those configuration sets that meet the filter criteria. If you don't specify configuration set names or filters, the output includes information for all configuration sets.

If you specify a configuration set name that isn't valid, an error is returned.

Service Reference:

Examples:

Calling the describeConfigurationSets operation

var params = {
  ConfigurationSetNames: [
    'STRING_VALUE',
    /* more items */
  ],
  Filters: [
    {
      Name: event-destination-name | matching-event-types | default-message-type | default-sender-id, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
pinpointsmsvoicev2.describeConfigurationSets(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: {})
    • ConfigurationSetNames — (Array<String>)

      An array of strings. Each element can be either a ConfigurationSetName or ConfigurationSetArn.

    • Filters — (Array<map>)

      An array of filters to apply to the results that are returned.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "event-destination-name"
        • "matching-event-types"
        • "default-message-type"
        • "default-sender-id"
      • Valuesrequired — (Array<String>)

        An array values to filter for.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • ConfigurationSets — (Array<map>)

        An array of ConfigurationSets objects.

        • ConfigurationSetArnrequired — (String)

          The Resource Name (ARN) of the ConfigurationSet.

        • ConfigurationSetNamerequired — (String)

          The name of the ConfigurationSet.

        • EventDestinationsrequired — (Array<map>)

          An array of EventDestination objects that describe any events to log and where to log them.

          • EventDestinationNamerequired — (String)

            The name of the EventDestination.

          • Enabledrequired — (Boolean)

            When set to true events will be logged.

          • MatchingEventTypesrequired — (Array<String>)

            An array of event types that determine which events to log.

            Note: The TEXT_SENT event type is not supported.
          • CloudWatchLogsDestination — (map)

            An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.

            • IamRoleArnrequired — (String)

              The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.

            • LogGroupArnrequired — (String)

              The name of the Amazon CloudWatch log group that you want to record events in.

          • KinesisFirehoseDestination — (map)

            An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

            • IamRoleArnrequired — (String)

              The ARN of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon Firehose destination.

            • DeliveryStreamArnrequired — (String)

              The Amazon Resource Name (ARN) of the delivery stream.

          • SnsDestination — (map)

            An object that contains information about an event destination that sends logging events to Amazon SNS.

            • TopicArnrequired — (String)

              The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.

        • DefaultMessageType — (String)

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

          Possible values include:
          • "TRANSACTIONAL"
          • "PROMOTIONAL"
        • DefaultSenderId — (String)

          The default sender ID used by the ConfigurationSet.

        • CreatedTimestamprequired — (Date)

          The time when the ConfigurationSet was created, in UNIX epoch time format.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeKeywords(params = {}, callback) ⇒ AWS.Request

Describes the specified keywords or all keywords on your origination phone number or pool.

A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, Amazon Pinpoint responds with a customizable message.

If you specify a keyword that isn't valid, an error is returned.

Service Reference:

Examples:

Calling the describeKeywords operation

var params = {
  OriginationIdentity: 'STRING_VALUE', /* required */
  Filters: [
    {
      Name: keyword-action, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  Keywords: [
    'STRING_VALUE',
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
pinpointsmsvoicev2.describeKeywords(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: {})
    • OriginationIdentity — (String)

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

    • Keywords — (Array<String>)

      An array of keywords to search for.

    • Filters — (Array<map>)

      An array of keyword filters to filter the results.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "keyword-action"
      • Valuesrequired — (Array<String>)

        An array values to filter for.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • OriginationIdentityArn — (String)

        The PhoneNumberArn or PoolArn that is associated with the OriginationIdentity.

      • OriginationIdentity — (String)

        The PhoneNumberId or PoolId that is associated with the OriginationIdentity.

      • Keywords — (Array<map>)

        An array of KeywordInformation objects that contain the results.

        • Keywordrequired — (String)

          The keyword as a string.

        • KeywordMessagerequired — (String)

          A custom message that can be used with the keyword.

        • KeywordActionrequired — (String)

          The action to perform for the keyword.

          Possible values include:
          • "AUTOMATIC_RESPONSE"
          • "OPT_OUT"
          • "OPT_IN"
      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeOptedOutNumbers(params = {}, callback) ⇒ AWS.Request

Describes the specified opted out destination numbers or all opted out destination numbers in an opt-out list.

If you specify opted out numbers, the output includes information for only the specified opted out numbers. If you specify filters, the output includes information for only those opted out numbers that meet the filter criteria. If you don't specify opted out numbers or filters, the output includes information for all opted out destination numbers in your opt-out list.

If you specify an opted out number that isn't valid, an error is returned.

Service Reference:

Examples:

Calling the describeOptedOutNumbers operation

var params = {
  OptOutListName: 'STRING_VALUE', /* required */
  Filters: [
    {
      Name: end-user-opted-out, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  OptedOutNumbers: [
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describeOptedOutNumbers(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: {})
    • OptOutListName — (String)

      The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

    • OptedOutNumbers — (Array<String>)

      An array of phone numbers to search for in the OptOutList.

    • Filters — (Array<map>)

      An array of OptedOutFilter objects to filter the results on.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "end-user-opted-out"
      • Valuesrequired — (Array<String>)

        An array of values to filter for.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • OptOutListArn — (String)

        The Amazon Resource Name (ARN) of the OptOutList.

      • OptOutListName — (String)

        The name of the OptOutList.

      • OptedOutNumbers — (Array<map>)

        An array of OptedOutNumbersInformation objects that provide information about the requested OptedOutNumbers.

        • OptedOutNumberrequired — (String)

          The phone number that is opted out.

        • OptedOutTimestamprequired — (Date)

          The time that the op tout occurred, in UNIX epoch time format.

        • EndUserOptedOutrequired — (Boolean)

          This is set to true if it was the end recipient that opted out.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeOptOutLists(params = {}, callback) ⇒ AWS.Request

Describes the specified opt-out list or all opt-out lists in your account.

If you specify opt-out list names, the output includes information for only the specified opt-out lists. Opt-out lists include only those that meet the filter criteria. If you don't specify opt-out list names or filters, the output includes information for all opt-out lists.

If you specify an opt-out list name that isn't valid, an error is returned.

Service Reference:

Examples:

Calling the describeOptOutLists operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  OptOutListNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describeOptOutLists(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: {})
    • OptOutListNames — (Array<String>)

      The OptOutLists to show the details of. This is an array of strings that can be either the OptOutListName or OptOutListArn.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • OptOutLists — (Array<map>)

        An array of OptOutListInformation objects that contain the details for the requested OptOutLists.

        • OptOutListArnrequired — (String)

          The Amazon Resource Name (ARN) of the OptOutList.

        • OptOutListNamerequired — (String)

          The name of the OptOutList.

        • CreatedTimestamprequired — (Date)

          The time when the OutOutList was created, in UNIX epoch time format.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describePhoneNumbers(params = {}, callback) ⇒ AWS.Request

Describes the specified origination phone number, or all the phone numbers in your account.

If you specify phone number IDs, the output includes information for only the specified phone numbers. If you specify filters, the output includes information for only those phone numbers that meet the filter criteria. If you don't specify phone number IDs or filters, the output includes information for all phone numbers.

If you specify a phone number ID that isn't valid, an error is returned.

Service Reference:

Examples:

Calling the describePhoneNumbers operation

var params = {
  Filters: [
    {
      Name: status | iso-country-code | message-type | number-capability | number-type | two-way-enabled | self-managed-opt-outs-enabled | opt-out-list-name | deletion-protection-enabled | two-way-channel-arn, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  PhoneNumberIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describePhoneNumbers(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: {})
    • PhoneNumberIds — (Array<String>)

      The unique identifier of phone numbers to find information about. This is an array of strings that can be either the PhoneNumberId or PhoneNumberArn.

    • Filters — (Array<map>)

      An array of PhoneNumberFilter objects to filter the results.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "status"
        • "iso-country-code"
        • "message-type"
        • "number-capability"
        • "number-type"
        • "two-way-enabled"
        • "self-managed-opt-outs-enabled"
        • "opt-out-list-name"
        • "deletion-protection-enabled"
        • "two-way-channel-arn"
      • Valuesrequired — (Array<String>)

        An array values to filter for.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • PhoneNumbers — (Array<map>)

        An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.

        • PhoneNumberArnrequired — (String)

          The Amazon Resource Name (ARN) associated with the phone number.

        • PhoneNumberId — (String)

          The unique identifier for the phone number.

        • PhoneNumberrequired — (String)

          The phone number in E.164 format.

        • Statusrequired — (String)

          The current status of the phone number.

          Possible values include:
          • "PENDING"
          • "ACTIVE"
          • "ASSOCIATING"
          • "DISASSOCIATING"
          • "DELETED"
        • IsoCountryCoderequired — (String)

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

        • MessageTyperequired — (String)

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

          Possible values include:
          • "TRANSACTIONAL"
          • "PROMOTIONAL"
        • NumberCapabilitiesrequired — (Array<String>)

          Describes if the origination identity can be used for text messages, voice calls or both.

        • NumberTyperequired — (String)

          The type of phone number.

          Possible values include:
          • "SHORT_CODE"
          • "LONG_CODE"
          • "TOLL_FREE"
          • "TEN_DLC"
          • "SIMULATOR"
        • MonthlyLeasingPricerequired — (String)

          The price, in US dollars, to lease the phone number.

        • TwoWayEnabledrequired — (Boolean)

          By default this is set to false. When set to true you can receive incoming text messages from your end recipients using the TwoWayChannelArn.

        • TwoWayChannelArn — (String)

          The Amazon Resource Name (ARN) of the two way channel.

        • TwoWayChannelRole — (String)

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

        • SelfManagedOptOutsEnabledrequired — (Boolean)

          When set to false an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out request. For more information see Self-managed opt-outs

        • OptOutListNamerequired — (String)

          The name of the OptOutList associated with the phone number.

        • DeletionProtectionEnabledrequired — (Boolean)

          When set to true the phone number can't be deleted.

        • PoolId — (String)

          The unique identifier of the pool associated with the phone number.

        • RegistrationId — (String)

          The unique identifier for the registration.

        • CreatedTimestamprequired — (Date)

          The time when the phone number was created, in UNIX epoch time format.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describePools(params = {}, callback) ⇒ AWS.Request

Retrieves the specified pools or all pools associated with your Amazon Web Services account.

If you specify pool IDs, the output includes information for only the specified pools. If you specify filters, the output includes information for only those pools that meet the filter criteria. If you don't specify pool IDs or filters, the output includes information for all pools.

If you specify a pool ID that isn't valid, an error is returned.

A pool is a collection of phone numbers and SenderIds. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.

Service Reference:

Examples:

Calling the describePools operation

var params = {
  Filters: [
    {
      Name: status | message-type | two-way-enabled | self-managed-opt-outs-enabled | opt-out-list-name | shared-routes-enabled | deletion-protection-enabled | two-way-channel-arn, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  PoolIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describePools(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: {})
    • PoolIds — (Array<String>)

      The unique identifier of pools to find. This is an array of strings that can be either the PoolId or PoolArn.

    • Filters — (Array<map>)

      An array of PoolFilter objects to filter the results.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "status"
        • "message-type"
        • "two-way-enabled"
        • "self-managed-opt-outs-enabled"
        • "opt-out-list-name"
        • "shared-routes-enabled"
        • "deletion-protection-enabled"
        • "two-way-channel-arn"
      • Valuesrequired — (Array<String>)

        An array values to filter for.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • Pools — (Array<map>)

        An array of PoolInformation objects that contain the details for the requested pools.

        • PoolArnrequired — (String)

          The Amazon Resource Name (ARN) for the pool.

        • PoolIdrequired — (String)

          The unique identifier for the pool.

        • Statusrequired — (String)

          The current status of the pool.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "DELETING"
        • MessageTyperequired — (String)

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

          Possible values include:
          • "TRANSACTIONAL"
          • "PROMOTIONAL"
        • TwoWayEnabledrequired — (Boolean)

          When set to true you can receive incoming text messages from your end recipients using the TwoWayChannelArn.

        • TwoWayChannelArn — (String)

          The Amazon Resource Name (ARN) of the two way channel.

        • TwoWayChannelRole — (String)

          An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

        • SelfManagedOptOutsEnabledrequired — (Boolean)

          When set to false, an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests. For more information see Self-managed opt-outs

        • OptOutListNamerequired — (String)

          The name of the OptOutList associated with the pool.

        • SharedRoutesEnabledrequired — (Boolean)

          Allows you to enable shared routes on your pool.

          By default, this is set to False. If you set this value to True, your messages are sent using phone numbers or sender IDs (depending on the country) that are shared with other Amazon Pinpoint users. In some countries, such as the United States, senders aren't allowed to use shared routes and must use a dedicated phone number or short code.

        • DeletionProtectionEnabledrequired — (Boolean)

          When set to true the pool can't be deleted.

        • CreatedTimestamprequired — (Date)

          The time when the pool was created, in UNIX epoch time format.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRegistrationAttachments(params = {}, callback) ⇒ AWS.Request

Retrieves the specified registration attachments or all registration attachments associated with your Amazon Web Services account.

Service Reference:

Examples:

Calling the describeRegistrationAttachments operation

var params = {
  Filters: [
    {
      Name: attachment-status, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  RegistrationAttachmentIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describeRegistrationAttachments(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: {})
    • RegistrationAttachmentIds — (Array<String>)

      The unique identifier of registration attachments to find. This is an array of RegistrationAttachmentId.

    • Filters — (Array<map>)

      An array of RegistrationAttachmentFilter objects to filter the results.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "attachment-status"
      • Valuesrequired — (Array<String>)

        An array of values to filter on.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • RegistrationAttachments — (Array<map>)

        An array of RegistrationAttachments objects that contain the details for the requested registration attachments.

        • RegistrationAttachmentArnrequired — (String)

          The Amazon Resource Name (ARN) for the registration attachment.

        • RegistrationAttachmentIdrequired — (String)

          The unique identifier for the registration attachment.

        • AttachmentStatusrequired — (String)

          The status of the registration attachment.

          • UPLOAD_IN_PROGRESS The attachment is being uploaded.

          • UPLOAD_COMPLETE The attachment has been uploaded.

          • UPLOAD_FAILED The attachment failed to uploaded.

          • DELETED The attachment has been deleted..

          Possible values include:
          • "UPLOAD_IN_PROGRESS"
          • "UPLOAD_COMPLETE"
          • "UPLOAD_FAILED"
          • "DELETED"
        • AttachmentUploadErrorReason — (String)

          A description of why the upload didn't successfully complete.

          Possible values include:
          • "INTERNAL_ERROR"
        • CreatedTimestamprequired — (Date)

          The time when the registration attachment was created, in UNIX epoch time format.

      • NextToken — (String)

        The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRegistrationFieldDefinitions(params = {}, callback) ⇒ AWS.Request

Retrieves the specified registration type field definitions. You can use DescribeRegistrationFieldDefinitions to view the requirements for creating, filling out, and submitting each registration type.

Examples:

Calling the describeRegistrationFieldDefinitions operation

var params = {
  RegistrationType: 'STRING_VALUE', /* required */
  FieldPaths: [
    'STRING_VALUE',
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SectionPath: 'STRING_VALUE'
};
pinpointsmsvoicev2.describeRegistrationFieldDefinitions(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: {})
    • RegistrationType — (String)

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

    • SectionPath — (String)

      The path to the section of the registration.

    • FieldPaths — (Array<String>)

      An array of paths to the registration form field.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • RegistrationType — (String)

        The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

      • RegistrationFieldDefinitions — (Array<map>)

        An array of RegistrationFieldDefinitions objects that contain the details for the requested fields.

        • SectionPathrequired — (String)

          The section path of the field.

        • FieldPathrequired — (String)

          The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

        • FieldTyperequired — (String)

          The type of field.

          Possible values include:
          • "SELECT"
          • "TEXT"
          • "ATTACHMENT"
        • FieldRequirementrequired — (String)

          Specifies if the field for the registration form is required, conditional or optional.

          Possible values include:
          • "REQUIRED"
          • "CONDITIONAL"
          • "OPTIONAL"
        • SelectValidation — (map)

          The validation rules for a select field.

          • MinChoicesrequired — (Integer)

            The minimum number of choices for the select.

          • MaxChoicesrequired — (Integer)

            The maximum number of choices for the select.

          • Optionsrequired — (Array<String>)

            An array of strings for the possible selection options.

        • TextValidation — (map)

          The validation rules for a text field.

          • MinLengthrequired — (Integer)

            The minimum number of characters for the text field.

          • MaxLengthrequired — (Integer)

            The maximum number of characters for the text field.

          • Patternrequired — (String)

            The regular expression used to validate the text field.

        • DisplayHintsrequired — (map)

          An array of RegistrationFieldDisplayHints objects for the field.

          • Titlerequired — (String)

            The title of the display hint.

          • ShortDescriptionrequired — (String)

            A short description of the display hint.

          • LongDescription — (String)

            A full description of the display hint.

          • DocumentationTitle — (String)

            The title of the document the display hint is associated with.

          • DocumentationLink — (String)

            The link to the document the display hint is associated with.

          • SelectOptionDescriptions — (Array<map>)

            An array of SelectOptionDescription objects.

            • Optionrequired — (String)

              The value of the option.

            • Title — (String)

              The title of the select option.

            • Description — (String)

              A description of the option meaning.

          • TextValidationDescription — (String)

            The validation rules for the text field.

          • ExampleTextValue — (String)

            Example text of what the value of a field should contain.

      • NextToken — (String)

        The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRegistrationFieldValues(params = {}, callback) ⇒ AWS.Request

Retrieves the specified registration field values.

Service Reference:

Examples:

Calling the describeRegistrationFieldValues operation

var params = {
  RegistrationId: 'STRING_VALUE', /* required */
  FieldPaths: [
    'STRING_VALUE',
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SectionPath: 'STRING_VALUE',
  VersionNumber: 'NUMBER_VALUE'
};
pinpointsmsvoicev2.describeRegistrationFieldValues(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

    • VersionNumber — (Integer)

      The version number of the registration.

    • SectionPath — (String)

      The path to the section of the registration.

    • FieldPaths — (Array<String>)

      An array of paths to the registration form field.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • VersionNumber — (Integer)

        The current version of the registration.

      • RegistrationFieldValues — (Array<map>)

        An array of RegistrationFieldValues objects that contain the values for the requested registration.

        • FieldPathrequired — (String)

          The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

        • SelectChoices — (Array<String>)

          An array of values for the form field.

        • TextValue — (String)

          The text data for a free form field.

        • RegistrationAttachmentId — (String)

          The unique identifier for the registration attachment.

        • DeniedReason — (String)

          A description of why the registration was denied.

      • NextToken — (String)

        The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRegistrations(params = {}, callback) ⇒ AWS.Request

Retrieves the specified registrations.

Service Reference:

Examples:

Calling the describeRegistrations operation

var params = {
  Filters: [
    {
      Name: registration-type | registration-status, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  RegistrationIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describeRegistrations(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: {})
    • RegistrationIds — (Array<String>)

      An array of unique identifiers for each registration.

    • Filters — (Array<map>)

      An array of RegistrationFilter objects to filter the results.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "registration-type"
        • "registration-status"
      • Valuesrequired — (Array<String>)

        An array of values to filter on.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • Registrations — (Array<map>)

        An array of RegistrationInformation objects.

        • RegistrationArnrequired — (String)

          The Amazon Resource Name (ARN) for the registration.

        • RegistrationIdrequired — (String)

          The unique identifier for the registration.

        • RegistrationTyperequired — (String)

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

        • RegistrationStatusrequired — (String)

          The status of the registration.

          • CREATED: Your registration is created but not submitted.

          • SUBMITTED: Your registration has been submitted and is awaiting review.

          • REVIEWING: Your registration has been accepted and is being reviewed.

          • PROVISIONING: Your registration has been approved and your origination identity is being created.

          • COMPLETE: Your registration has been approved and and your origination identity has been created.

          • REQUIRES_UPDATES: You must fix your registration and resubmit it.

          • CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number.

          • DELETED: The registration has been deleted.

          Possible values include:
          • "CREATED"
          • "SUBMITTED"
          • "REVIEWING"
          • "PROVISIONING"
          • "COMPLETE"
          • "REQUIRES_UPDATES"
          • "CLOSED"
          • "DELETED"
        • CurrentVersionNumberrequired — (Integer)

          The current version number of the registration.

        • ApprovedVersionNumber — (Integer)

          The version number of the registration that was approved.

        • LatestDeniedVersionNumber — (Integer)

          The latest version number of the registration that was denied.

        • AdditionalAttributes — (map<String>)

          Metadata about a given registration which is specific to that registration type.

        • CreatedTimestamprequired — (Date)

          The time when the registration was created, in UNIX epoch time format.

      • NextToken — (String)

        The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRegistrationSectionDefinitions(params = {}, callback) ⇒ AWS.Request

Retrieves the specified registration section definitions. You can use DescribeRegistrationSectionDefinitions to view the requirements for creating, filling out, and submitting each registration type.

Examples:

Calling the describeRegistrationSectionDefinitions operation

var params = {
  RegistrationType: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SectionPaths: [
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describeRegistrationSectionDefinitions(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: {})
    • RegistrationType — (String)

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

    • SectionPaths — (Array<String>)

      An array of paths for the registration form section.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • RegistrationType — (String)

        The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

      • RegistrationSectionDefinitions — (Array<map>)

        An array of RegistrationSectionDefinition objects.

        • SectionPathrequired — (String)

          The path to the section of the registration.

        • DisplayHintsrequired — (map)

          The path to the section of the registration.

          • Titlerequired — (String)

            The title of the display hint.

          • ShortDescriptionrequired — (String)

            A short description of the display hint.

          • LongDescription — (String)

            A full description of the display hint.

          • DocumentationTitle — (String)

            The title of the document the display hint is associated with.

          • DocumentationLink — (String)

            The link to the document the display hint is associated with.

      • NextToken — (String)

        The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRegistrationTypeDefinitions(params = {}, callback) ⇒ AWS.Request

Retrieves the specified registration type definitions. You can use DescribeRegistrationTypeDefinitions to view the requirements for creating, filling out, and submitting each registration type.

Examples:

Calling the describeRegistrationTypeDefinitions operation

var params = {
  Filters: [
    {
      Name: supported-association-resource-type | supported-association-iso-country-code, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  RegistrationTypes: [
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describeRegistrationTypeDefinitions(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: {})
    • RegistrationTypes — (Array<String>)

      The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

    • Filters — (Array<map>)

      An array of RegistrationFilter objects to filter the results.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "supported-association-resource-type"
        • "supported-association-iso-country-code"
      • Valuesrequired — (Array<String>)

        An array of values to filter on.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • RegistrationTypeDefinitions — (Array<map>)

        The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

        • RegistrationTyperequired — (String)

          The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

        • SupportedAssociations — (Array<map>)

          The supported association behavior for the registration type.

          • ResourceTyperequired — (String)

            Defines the behavior of when an origination identity and registration can be associated with each other.

          • IsoCountryCode — (String)

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

          • AssociationBehaviorrequired — (String)

            The association behavior.

            • ASSOCIATE_BEFORE_SUBMIT The origination identity has to be supplied when creating a registration.

            • ASSOCIATE_ON_APPROVAL This applies to all short code registrations. The short code will be automatically provisioned once the registration is approved.

            • ASSOCIATE_AFTER_COMPLETE This applies to phone number registrations when you must complete a registration first, then associate one or more phone numbers later. For example 10DLC campaigns and long codes.

            Possible values include:
            • "ASSOCIATE_BEFORE_SUBMIT"
            • "ASSOCIATE_ON_APPROVAL"
            • "ASSOCIATE_AFTER_COMPLETE"
          • DisassociationBehaviorrequired — (String)

            The disassociation behavior.

            • DISASSOCIATE_ALL_CLOSES_REGISTRATION All origination identities must be disassociated from the registration before the registration can be closed.

            • DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION All origination identities must be disassociated from the registration before the registration can be deleted.

            • DELETE_REGISTRATION_DISASSOCIATES The registration can be deleted and all origination identities will be disasscoiated.

            Possible values include:
            • "DISASSOCIATE_ALL_CLOSES_REGISTRATION"
            • "DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION"
            • "DELETE_REGISTRATION_DISASSOCIATES"
        • DisplayHintsrequired — (map)

          Provides help information on the registration.

          • Titlerequired — (String)

            The title of the display hint.

          • ShortDescription — (String)

            A short description of the display hint.

          • LongDescription — (String)

            A full description of the display hint.

          • DocumentationTitle — (String)

            The title of the document the display hint is associated with.

          • DocumentationLink — (String)

            The link to the document the display hint is associated with.

      • NextToken — (String)

        The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRegistrationVersions(params = {}, callback) ⇒ AWS.Request

Retrieves the specified registration version.

Service Reference:

Examples:

Calling the describeRegistrationVersions operation

var params = {
  RegistrationId: 'STRING_VALUE', /* required */
  Filters: [
    {
      Name: registration-version-status, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  VersionNumbers: [
    'NUMBER_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describeRegistrationVersions(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

    • VersionNumbers — (Array<Integer>)

      An array of registration version numbers.

    • Filters — (Array<map>)

      An array of RegistrationVersionFilter objects to filter the results.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "registration-version-status"
      • Valuesrequired — (Array<String>)

        An array of values to filter on.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • RegistrationVersions — (Array<map>)

        An array of RegistrationVersions objects.

        • VersionNumberrequired — (Integer)

          The version number of the registration.

        • RegistrationVersionStatusrequired — (String)

          The status of the registration.

          • DRAFT: The initial status of a registration version after it’s created.

          • SUBMITTED: Your registration has been submitted.

          • REVIEWING: Your registration has been accepted and is being reviewed.

          • APPROVED: Your registration has been approved.

          • DISCARDED: You've abandon this version of their registration to start over with a new version.

          • DENIED: You must fix your registration and resubmit it.

          • REVOKED: Your previously approved registration has been revoked.

          • ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

          Possible values include:
          • "DRAFT"
          • "SUBMITTED"
          • "REVIEWING"
          • "APPROVED"
          • "DISCARDED"
          • "DENIED"
          • "REVOKED"
          • "ARCHIVED"
        • RegistrationVersionStatusHistoryrequired — (map)

          The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

          • DraftTimestamprequired — (Date)

            The time when the registration was in the draft state, in UNIX epoch time format.

          • SubmittedTimestamp — (Date)

            The time when the registration was in the submitted state, in UNIX epoch time format.

          • ReviewingTimestamp — (Date)

            The time when the registration was in the reviewing state, in UNIX epoch time format.

          • ApprovedTimestamp — (Date)

            The time when the registration was in the approved state, in UNIX epoch time format.

          • DiscardedTimestamp — (Date)

            The time when the registration was in the discarded state, in UNIX epoch time format.

          • DeniedTimestamp — (Date)

            The time when the registration was in the denied state, in UNIX epoch time format.

          • RevokedTimestamp — (Date)

            The time when the registration was in the revoked state, in UNIX epoch time format.

          • ArchivedTimestamp — (Date)

            The time when the registration was in the archived state, in UNIX epoch time format.

        • DeniedReasons — (Array<map>)

          An array of RegistrationDeniedReasonInformation objects.

          • Reasonrequired — (String)

            The reason a registration was rejected.

          • ShortDescriptionrequired — (String)

            A short description of the rejection reason.

          • LongDescription — (String)

            A long description of the rejection reason.

          • DocumentationTitle — (String)

            The title of the document.

          • DocumentationLink — (String)

            The link to the document.

      • NextToken — (String)

        The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeSenderIds(params = {}, callback) ⇒ AWS.Request

Describes the specified SenderIds or all SenderIds associated with your Amazon Web Services account.

If you specify SenderIds, the output includes information for only the specified SenderIds. If you specify filters, the output includes information for only those SenderIds that meet the filter criteria. If you don't specify SenderIds or filters, the output includes information for all SenderIds.

f you specify a sender ID that isn't valid, an error is returned.

Service Reference:

Examples:

Calling the describeSenderIds operation

var params = {
  Filters: [
    {
      Name: sender-id | iso-country-code | message-type | deletion-protection-enabled | registered, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SenderIds: [
    {
      IsoCountryCode: 'STRING_VALUE', /* required */
      SenderId: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.describeSenderIds(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: {})
    • SenderIds — (Array<map>)

      An array of SenderIdAndCountry objects to search for.

      • SenderIdrequired — (String)

        The unique identifier of the sender.

      • IsoCountryCoderequired — (String)

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

    • Filters — (Array<map>)

      An array of SenderIdFilter objects to filter the results.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "sender-id"
        • "iso-country-code"
        • "message-type"
        • "deletion-protection-enabled"
        • "registered"
      • Valuesrequired — (Array<String>)

        An array of values to filter for.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • SenderIds — (Array<map>)

        An array of SernderIdInformation objects that contain the details for the requested SenderIds.

        • SenderIdArnrequired — (String)

          The Amazon Resource Name (ARN) associated with the SenderId.

        • SenderIdrequired — (String)

          The alphanumeric sender ID in a specific country that you'd like to describe.

        • IsoCountryCoderequired — (String)

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

        • MessageTypesrequired — (Array<String>)

          The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

        • MonthlyLeasingPricerequired — (String)

          The monthly leasing price, in US dollars.

        • DeletionProtectionEnabledrequired — (Boolean)

          By default this is set to false. When set to true the sender ID can't be deleted.

        • Registeredrequired — (Boolean)

          True if the sender ID is registered.

        • RegistrationId — (String)

          The unique identifier for the registration.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeSpendLimits(params = {}, callback) ⇒ AWS.Request

Describes the current Amazon Pinpoint monthly spend limits for sending voice and text messages.

When you establish an Amazon Web Services account, the account has initial monthly spend limit in a given Region. For more information on increasing your monthly spend limit, see Requesting increases to your monthly SMS spending quota for Amazon Pinpoint in the Amazon Pinpoint User Guide.

Service Reference:

Examples:

Calling the describeSpendLimits operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
pinpointsmsvoicev2.describeSpendLimits(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: {})
    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • SpendLimits — (Array<map>)

        An array of SpendLimit objects that contain the details for the requested spend limits.

        • Namerequired — (String)

          The name for the SpendLimit.

          Possible values include:
          • "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT"
          • "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT"
        • EnforcedLimitrequired — (Integer)

          The maximum amount of money, in US dollars, that you want to be able to spend sending messages each month. This value has to be less than or equal to the amount in MaxLimit. To use this custom limit, Overridden must be set to true.

        • MaxLimitrequired — (Integer)

          The maximum amount of money that you are able to spend to send messages each month, in US dollars.

        • Overriddenrequired — (Boolean)

          When set to True, the value that has been specified in the EnforcedLimit is used to determine the maximum amount in US dollars that can be spent to send messages each month, in US dollars.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeVerifiedDestinationNumbers(params = {}, callback) ⇒ AWS.Request

Retrieves the specified verified destiona numbers.

Examples:

Calling the describeVerifiedDestinationNumbers operation

var params = {
  DestinationPhoneNumbers: [
    'STRING_VALUE',
    /* more items */
  ],
  Filters: [
    {
      Name: status, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  VerifiedDestinationNumberIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.describeVerifiedDestinationNumbers(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: {})
    • VerifiedDestinationNumberIds — (Array<String>)

      An array of VerifiedDestinationNumberid to retreive.

    • DestinationPhoneNumbers — (Array<String>)

      An array of verified destination phone number, in E.164 format.

    • Filters — (Array<map>)

      An array of VerifiedDestinationNumberFilter objects to filter the results.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "status"
      • Valuesrequired — (Array<String>)

        An array of values to filter on.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • VerifiedDestinationNumbers — (Array<map>)

        An array of VerifiedDestinationNumberInformation objects

        • VerifiedDestinationNumberArnrequired — (String)

          The Amazon Resource Name (ARN) for the verified destination phone number.

        • VerifiedDestinationNumberIdrequired — (String)

          The unique identifier for the verified destination phone number.

        • DestinationPhoneNumberrequired — (String)

          The verified destination phone number, in E.164 format.

        • Statusrequired — (String)

          The status of the verified destination phone number.

          • PENDING: The phone number hasn't been verified yet.

          • VERIFIED: The phone number is verified and can receive messages.

          Possible values include:
          • "PENDING"
          • "VERIFIED"
        • CreatedTimestamprequired — (Date)

          The time when the destination phone number was created, in UNIX epoch time format.

      • NextToken — (String)

        The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateOriginationIdentity(params = {}, callback) ⇒ AWS.Request

Removes the specified origination identity from an existing pool.

If the origination identity isn't associated with the specified pool, an error is returned.

Service Reference:

Examples:

Calling the disassociateOriginationIdentity operation

var params = {
  IsoCountryCode: 'STRING_VALUE', /* required */
  OriginationIdentity: 'STRING_VALUE', /* required */
  PoolId: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE'
};
pinpointsmsvoicev2.disassociateOriginationIdentity(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: {})
    • PoolId — (String)

      The unique identifier for the pool to disassociate with the origination identity. This value can be either the PoolId or PoolArn.

    • OriginationIdentity — (String)

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers find the values for PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the values for SenderId and SenderIdArn.

    • IsoCountryCode — (String)

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

    • ClientToken — (String)

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • PoolArn — (String)

        The Amazon Resource Name (ARN) of the pool.

      • PoolId — (String)

        The PoolId of the pool no longer associated with the origination identity.

      • OriginationIdentityArn — (String)

        The PhoneNumberArn or SenderIdArn of the origination identity.

      • OriginationIdentity — (String)

        The PhoneNumberId or SenderId of the origination identity.

      • IsoCountryCode — (String)

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

discardRegistrationVersion(params = {}, callback) ⇒ AWS.Request

Discard the current version of the registration.

Service Reference:

Examples:

Calling the discardRegistrationVersion operation

var params = {
  RegistrationId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.discardRegistrationVersion(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • VersionNumber — (Integer)

        The version number of the registration.

      • RegistrationVersionStatus — (String)

        The status of the registration version.

        • DRAFT: The initial status of a registration version after it’s created.

        • SUBMITTED: Your registration has been submitted.

        • REVIEWING: Your registration has been accepted and is being reviewed.

        • APPROVED: Your registration has been approved.

        • DISCARDED: You've abandon this version of their registration to start over with a new version.

        • DENIED: You must fix your registration and resubmit it.

        • REVOKED: Your previously approved registration has been revoked.

        • ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

        Possible values include:
        • "DRAFT"
        • "SUBMITTED"
        • "REVIEWING"
        • "APPROVED"
        • "DISCARDED"
        • "DENIED"
        • "REVOKED"
        • "ARCHIVED"
      • RegistrationVersionStatusHistory — (map)

        The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

        • DraftTimestamprequired — (Date)

          The time when the registration was in the draft state, in UNIX epoch time format.

        • SubmittedTimestamp — (Date)

          The time when the registration was in the submitted state, in UNIX epoch time format.

        • ReviewingTimestamp — (Date)

          The time when the registration was in the reviewing state, in UNIX epoch time format.

        • ApprovedTimestamp — (Date)

          The time when the registration was in the approved state, in UNIX epoch time format.

        • DiscardedTimestamp — (Date)

          The time when the registration was in the discarded state, in UNIX epoch time format.

        • DeniedTimestamp — (Date)

          The time when the registration was in the denied state, in UNIX epoch time format.

        • RevokedTimestamp — (Date)

          The time when the registration was in the revoked state, in UNIX epoch time format.

        • ArchivedTimestamp — (Date)

          The time when the registration was in the archived state, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listPoolOriginationIdentities(params = {}, callback) ⇒ AWS.Request

Lists all associated origination identities in your pool.

If you specify filters, the output includes information for only those origination identities that meet the filter criteria.

Service Reference:

Examples:

Calling the listPoolOriginationIdentities operation

var params = {
  PoolId: 'STRING_VALUE', /* required */
  Filters: [
    {
      Name: iso-country-code | number-capability, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
pinpointsmsvoicev2.listPoolOriginationIdentities(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: {})
    • PoolId — (String)

      The unique identifier for the pool. This value can be either the PoolId or PoolArn.

    • Filters — (Array<map>)

      An array of PoolOriginationIdentitiesFilter objects to filter the results..

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "iso-country-code"
        • "number-capability"
      • Valuesrequired — (Array<String>)

        An array values to filter for.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • PoolArn — (String)

        The Amazon Resource Name (ARN) for the pool.

      • PoolId — (String)

        The unique PoolId of the pool.

      • OriginationIdentities — (Array<map>)

        An array of any OriginationIdentityMetadata objects.

        • OriginationIdentityArnrequired — (String)

          The Amazon Resource Name (ARN) associated with the origination identity.

        • OriginationIdentityrequired — (String)

          The unique identifier of the origination identity.

        • IsoCountryCoderequired — (String)

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

        • NumberCapabilitiesrequired — (Array<String>)

          Describes if the origination identity can be used for text messages, voice calls or both.

        • PhoneNumber — (String)

          The phone number in E.164 format.

      • NextToken — (String)

        The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listRegistrationAssociations(params = {}, callback) ⇒ AWS.Request

Retreive all of the origination identies that are associated with a registration.

Service Reference:

Examples:

Calling the listRegistrationAssociations operation

var params = {
  RegistrationId: 'STRING_VALUE', /* required */
  Filters: [
    {
      Name: resource-type | iso-country-code, /* required */
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
pinpointsmsvoicev2.listRegistrationAssociations(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

    • Filters — (Array<map>)

      An array of RegistrationAssociationFilter to apply to the results that are returned.

      • Namerequired — (String)

        The name of the attribute to filter on.

        Possible values include:
        • "resource-type"
        • "iso-country-code"
      • Valuesrequired — (Array<String>)

        An array of values to filter for.

    • NextToken — (String)

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

    • MaxResults — (Integer)

      The maximum number of results to return per each request.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • RegistrationType — (String)

        The type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action.

      • RegistrationAssociations — (Array<map>)

        An array of RegistrationAssociationMetadata objects.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) of the origination identity that is associated with the registration.

        • ResourceIdrequired — (String)

          The unique identifier for the origination identity. For example this could be a PhoneNumberId or SenderId.

        • ResourceTyperequired — (String)

          The origination identity type.

        • IsoCountryCode — (String)

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

        • PhoneNumber — (String)

          The phone number associated with the registration in E.164 format.

      • NextToken — (String)

        The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

List all tags associated with a resource.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceArn: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.listTagsForResource(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: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource to query for.

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. The data object has the following properties:

      • ResourceArn — (String)

        The ARN of the resource.

      • Tags — (Array<map>)

        An array of key and value pair tags that are associated with the resource.

        • Keyrequired — (String)

          The key identifier, or name, of the tag.

        • Valuerequired — (String)

          The string value associated with the key of the tag.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putKeyword(params = {}, callback) ⇒ AWS.Request

Creates or updates a keyword configuration on an origination phone number or pool.

A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, Amazon Pinpoint responds with a customizable message.

If you specify a keyword that isn't valid, an error is returned.

Service Reference:

Examples:

Calling the putKeyword operation

var params = {
  Keyword: 'STRING_VALUE', /* required */
  KeywordMessage: 'STRING_VALUE', /* required */
  OriginationIdentity: 'STRING_VALUE', /* required */
  KeywordAction: AUTOMATIC_RESPONSE | OPT_OUT | OPT_IN
};
pinpointsmsvoicev2.putKeyword(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: {})
    • OriginationIdentity — (String)

      The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

    • Keyword — (String)

      The new keyword to add.

    • KeywordMessage — (String)

      The message associated with the keyword.

    • KeywordAction — (String)

      The action to perform for the new keyword when it is received.

      • AUTOMATIC_RESPONSE: A message is sent to the recipient.

      • OPT_OUT: Keeps the recipient from receiving future messages.

      • OPT_IN: The recipient wants to receive future messages.

      Possible values include:
      • "AUTOMATIC_RESPONSE"
      • "OPT_OUT"
      • "OPT_IN"

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. The data object has the following properties:

      • OriginationIdentityArn — (String)

        The PhoneNumberArn or PoolArn that the keyword was associated with.

      • OriginationIdentity — (String)

        The PhoneNumberId or PoolId that the keyword was associated with.

      • Keyword — (String)

        The keyword that was added.

      • KeywordMessage — (String)

        The message associated with the keyword.

      • KeywordAction — (String)

        The action to perform when the keyword is used.

        Possible values include:
        • "AUTOMATIC_RESPONSE"
        • "OPT_OUT"
        • "OPT_IN"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putOptedOutNumber(params = {}, callback) ⇒ AWS.Request

Creates an opted out destination phone number in the opt-out list.

If the destination phone number isn't valid or if the specified opt-out list doesn't exist, an error is returned.

Service Reference:

Examples:

Calling the putOptedOutNumber operation

var params = {
  OptOutListName: 'STRING_VALUE', /* required */
  OptedOutNumber: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.putOptedOutNumber(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: {})
    • OptOutListName — (String)

      The OptOutListName or OptOutListArn to add the phone number to.

    • OptedOutNumber — (String)

      The phone number to add to the OptOutList in E.164 format.

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. The data object has the following properties:

      • OptOutListArn — (String)

        The OptOutListArn that the phone number was removed from.

      • OptOutListName — (String)

        The OptOutListName that the phone number was removed from.

      • OptedOutNumber — (String)

        The phone number that was added to the OptOutList.

      • OptedOutTimestamp — (Date)

        The time that the phone number was added to the OptOutList, in UNIX epoch time format.

      • EndUserOptedOut — (Boolean)

        This is true if it was the end user who requested their phone number be removed.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putRegistrationFieldValue(params = {}, callback) ⇒ AWS.Request

Creates or updates a field value for a registration.

Service Reference:

Examples:

Calling the putRegistrationFieldValue operation

var params = {
  FieldPath: 'STRING_VALUE', /* required */
  RegistrationId: 'STRING_VALUE', /* required */
  RegistrationAttachmentId: 'STRING_VALUE',
  SelectChoices: [
    'STRING_VALUE',
    /* more items */
  ],
  TextValue: 'STRING_VALUE'
};
pinpointsmsvoicev2.putRegistrationFieldValue(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

    • FieldPath — (String)

      The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

    • SelectChoices — (Array<String>)

      An array of values for the form field.

    • TextValue — (String)

      The text data for a free form field.

    • RegistrationAttachmentId — (String)

      The unique identifier for the registration attachment.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • VersionNumber — (Integer)

        The version number of the registration.

      • FieldPath — (String)

        The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.

      • SelectChoices — (Array<String>)

        An array of values for the form field.

      • TextValue — (String)

        The text data for a free form field.

      • RegistrationAttachmentId — (String)

        The unique identifier for the registration attachment.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

releasePhoneNumber(params = {}, callback) ⇒ AWS.Request

Releases an existing origination phone number in your account. Once released, a phone number is no longer available for sending messages.

If the origination phone number has deletion protection enabled or is associated with a pool, an error is returned.

Service Reference:

Examples:

Calling the releasePhoneNumber operation

var params = {
  PhoneNumberId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.releasePhoneNumber(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: {})
    • PhoneNumberId — (String)

      The PhoneNumberId or PhoneNumberArn of the phone number to release. You can use DescribePhoneNumbers to get the values for PhoneNumberId and PhoneNumberArn.

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. The data object has the following properties:

      • PhoneNumberArn — (String)

        The PhoneNumberArn of the phone number that was released.

      • PhoneNumberId — (String)

        The PhoneNumberId of the phone number that was released.

      • PhoneNumber — (String)

        The phone number that was released.

      • Status — (String)

        The current status of the request.

        Possible values include:
        • "PENDING"
        • "ACTIVE"
        • "ASSOCIATING"
        • "DISASSOCIATING"
        • "DELETED"
      • IsoCountryCode — (String)

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

      • MessageType — (String)

        The message type that was associated with the phone number.

        Possible values include:
        • "TRANSACTIONAL"
        • "PROMOTIONAL"
      • NumberCapabilities — (Array<String>)

        Specifies if the number could be used for text messages, voice, or both.

      • NumberType — (String)

        The type of number that was released.

        Possible values include:
        • "SHORT_CODE"
        • "LONG_CODE"
        • "TOLL_FREE"
        • "TEN_DLC"
        • "SIMULATOR"
      • MonthlyLeasingPrice — (String)

        The monthly price of the phone number, in US dollars.

      • TwoWayEnabled — (Boolean)

        By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

      • TwoWayChannelArn — (String)

        The Amazon Resource Name (ARN) of the TwoWayChannel.

      • TwoWayChannelRole — (String)

        An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

      • SelfManagedOptOutsEnabled — (Boolean)

        By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

      • OptOutListName — (String)

        The name of the OptOutList that was associated with the phone number.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • CreatedTimestamp — (Date)

        The time when the phone number was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

releaseSenderId(params = {}, callback) ⇒ AWS.Request

Releases an existing sender ID in your account.

Service Reference:

Examples:

Calling the releaseSenderId operation

var params = {
  IsoCountryCode: 'STRING_VALUE', /* required */
  SenderId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.releaseSenderId(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: {})
    • SenderId — (String)

      The sender ID to release.

    • IsoCountryCode — (String)

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

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. The data object has the following properties:

      • SenderIdArn — (String)

        The Amazon Resource Name (ARN) associated with the SenderId.

      • SenderId — (String)

        The sender ID that was released.

      • IsoCountryCode — (String)

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

      • MessageTypes — (Array<String>)

        The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

      • MonthlyLeasingPrice — (String)

        The monthly price, in US dollars, to lease the sender ID.

      • Registered — (Boolean)

        True if the sender ID is registered.

      • RegistrationId — (String)

        The unique identifier for the registration.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

requestPhoneNumber(params = {}, callback) ⇒ AWS.Request

Request an origination phone number for use in your account. For more information on phone number request see Requesting a number in the Amazon Pinpoint User Guide.

Service Reference:

Examples:

Calling the requestPhoneNumber operation

var params = {
  IsoCountryCode: 'STRING_VALUE', /* required */
  MessageType: TRANSACTIONAL | PROMOTIONAL, /* required */
  NumberCapabilities: [ /* required */
    SMS | VOICE,
    /* more items */
  ],
  NumberType: LONG_CODE | TOLL_FREE | TEN_DLC | SIMULATOR, /* required */
  ClientToken: 'STRING_VALUE',
  DeletionProtectionEnabled: true || false,
  OptOutListName: 'STRING_VALUE',
  PoolId: 'STRING_VALUE',
  RegistrationId: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.requestPhoneNumber(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: {})
    • IsoCountryCode — (String)

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

    • MessageType — (String)

      The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

      Possible values include:
      • "TRANSACTIONAL"
      • "PROMOTIONAL"
    • NumberCapabilities — (Array<String>)

      Indicates if the phone number will be used for text messages, voice messages, or both.

    • NumberType — (String)

      The type of phone number to request.

      Possible values include:
      • "LONG_CODE"
      • "TOLL_FREE"
      • "TEN_DLC"
      • "SIMULATOR"
    • OptOutListName — (String)

      The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.

    • PoolId — (String)

      The pool to associated with the phone number. You can use the PoolId or PoolArn.

    • RegistrationId — (String)

      Use this field to attach your phone number for an external registration process.

    • DeletionProtectionEnabled — (Boolean)

      By default this is set to false. When set to true the phone number can't be deleted.

    • Tags — (Array<map>)

      An array of tags (key and value pairs) associate with the requested phone number.

      • Keyrequired — (String)

        The key identifier, or name, of the tag.

      • Valuerequired — (String)

        The string value associated with the key of the tag.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • PhoneNumberArn — (String)

        The Amazon Resource Name (ARN) of the requested phone number.

      • PhoneNumberId — (String)

        The unique identifier of the new phone number.

      • PhoneNumber — (String)

        The new phone number that was requested.

      • Status — (String)

        The current status of the request.

        Possible values include:
        • "PENDING"
        • "ACTIVE"
        • "ASSOCIATING"
        • "DISASSOCIATING"
        • "DELETED"
      • IsoCountryCode — (String)

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

      • MessageType — (String)

        The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

        Possible values include:
        • "TRANSACTIONAL"
        • "PROMOTIONAL"
      • NumberCapabilities — (Array<String>)

        Indicates if the phone number will be used for text messages, voice messages or both.

      • NumberType — (String)

        The type of number that was released.

        Possible values include:
        • "LONG_CODE"
        • "TOLL_FREE"
        • "TEN_DLC"
        • "SIMULATOR"
      • MonthlyLeasingPrice — (String)

        The monthly price, in US dollars, to lease the phone number.

      • TwoWayEnabled — (Boolean)

        By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

      • TwoWayChannelArn — (String)

        The ARN used to identify the two way channel.

      • TwoWayChannelRole — (String)

        An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

      • SelfManagedOptOutsEnabled — (Boolean)

        By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

      • OptOutListName — (String)

        The name of the OptOutList that is associated with the requested phone number.

      • DeletionProtectionEnabled — (Boolean)

        By default this is set to false. When set to true the phone number can't be deleted.

      • PoolId — (String)

        The unique identifier of the pool associated with the phone number

      • RegistrationId — (String)

        The unique identifier for the registration.

      • Tags — (Array<map>)

        An array of key and value pair tags that are associated with the phone number.

        • Keyrequired — (String)

          The key identifier, or name, of the tag.

        • Valuerequired — (String)

          The string value associated with the key of the tag.

      • CreatedTimestamp — (Date)

        The time when the phone number was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

requestSenderId(params = {}, callback) ⇒ AWS.Request

Request a new sender ID that doesn't require registration.

Service Reference:

Examples:

Calling the requestSenderId operation

var params = {
  IsoCountryCode: 'STRING_VALUE', /* required */
  SenderId: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  DeletionProtectionEnabled: true || false,
  MessageTypes: [
    TRANSACTIONAL | PROMOTIONAL,
    /* more items */
  ],
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.requestSenderId(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: {})
    • SenderId — (String)

      The sender ID string to request.

    • IsoCountryCode — (String)

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

    • MessageTypes — (Array<String>)

      The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

    • DeletionProtectionEnabled — (Boolean)

      By default this is set to false. When set to true the sender ID can't be deleted.

    • Tags — (Array<map>)

      An array of tags (key and value pairs) to associate with the sender ID.

      • Keyrequired — (String)

        The key identifier, or name, of the tag.

      • Valuerequired — (String)

        The string value associated with the key of the tag.

    • ClientToken — (String)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

      If a token is not provided, the SDK will use a version 4 UUID.

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. The data object has the following properties:

      • SenderIdArn — (String)

        The Amazon Resource Name (ARN) associated with the SenderId.

      • SenderId — (String)

        The sender ID that was requested.

      • IsoCountryCode — (String)

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

      • MessageTypes — (Array<String>)

        The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

      • MonthlyLeasingPrice — (String)

        The monthly price, in US dollars, to lease the sender ID.

      • DeletionProtectionEnabled — (Boolean)

        By default this is set to false. When set to true the sender ID can't be deleted.

      • Registered — (Boolean)

        True if the sender ID is registered.

      • Tags — (Array<map>)

        An array of tags (key and value pairs) to associate with the sender ID.

        • Keyrequired — (String)

          The key identifier, or name, of the tag.

        • Valuerequired — (String)

          The string value associated with the key of the tag.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

sendDestinationNumberVerificationCode(params = {}, callback) ⇒ AWS.Request

Before you can send test messages to a verified destination phone number you need to opt-in the verified destination phone number. Creates a new text message with a verification code and send it to a verified destination phone number. Once you have the verification code use VerifyDestinationNumber to opt-in the verified destination phone number to receive messages.

Examples:

Calling the sendDestinationNumberVerificationCode operation

var params = {
  VerificationChannel: TEXT | VOICE, /* required */
  VerifiedDestinationNumberId: 'STRING_VALUE', /* required */
  ConfigurationSetName: 'STRING_VALUE',
  Context: {
    '<ContextKey>': 'STRING_VALUE',
    /* '<ContextKey>': ... */
  },
  DestinationCountryParameters: {
    '<DestinationCountryParameterKey>': 'STRING_VALUE',
    /* '<DestinationCountryParameterKey>': ... */
  },
  LanguageCode: DE_DE | EN_GB | EN_US | ES_419 | ES_ES | FR_CA | FR_FR | IT_IT | JA_JP | KO_KR | PT_BR | ZH_CN | ZH_TW,
  OriginationIdentity: 'STRING_VALUE'
};
pinpointsmsvoicev2.sendDestinationNumberVerificationCode(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: {})
    • VerifiedDestinationNumberId — (String)

      The unique identifier for the verified destination phone number.

    • VerificationChannel — (String)

      Choose to send the verification code as an SMS or voice message.

      Possible values include:
      • "TEXT"
      • "VOICE"
    • LanguageCode — (String)

      Choose the language to use for the message.

      Possible values include:
      • "DE_DE"
      • "EN_GB"
      • "EN_US"
      • "ES_419"
      • "ES_ES"
      • "FR_CA"
      • "FR_FR"
      • "IT_IT"
      • "JA_JP"
      • "KO_KR"
      • "PT_BR"
      • "ZH_CN"
      • "ZH_TW"
    • OriginationIdentity — (String)

      The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

    • ConfigurationSetName — (String)

      The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

    • Context — (map<String>)

      You can specify custom data in this field. If you do, that data is logged to the event destination.

    • DestinationCountryParameters — (map<String>)

      This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.

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. The data object has the following properties:

      • MessageId — (String)

        The unique identifier for the message.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

sendTextMessage(params = {}, callback) ⇒ AWS.Request

Creates a new text message and sends it to a recipient's phone number.

SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit depends on the destination country of your messages, as well as the type of phone number (origination number) that you use to send the message. For more information, see Message Parts per Second (MPS) limits in the Amazon Pinpoint User Guide.

Service Reference:

Examples:

Calling the sendTextMessage operation

var params = {
  DestinationPhoneNumber: 'STRING_VALUE', /* required */
  ConfigurationSetName: 'STRING_VALUE',
  Context: {
    '<ContextKey>': 'STRING_VALUE',
    /* '<ContextKey>': ... */
  },
  DestinationCountryParameters: {
    '<DestinationCountryParameterKey>': 'STRING_VALUE',
    /* '<DestinationCountryParameterKey>': ... */
  },
  DryRun: true || false,
  Keyword: 'STRING_VALUE',
  MaxPrice: 'STRING_VALUE',
  MessageBody: 'STRING_VALUE',
  MessageType: TRANSACTIONAL | PROMOTIONAL,
  OriginationIdentity: 'STRING_VALUE',
  TimeToLive: 'NUMBER_VALUE'
};
pinpointsmsvoicev2.sendTextMessage(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: {})
    • DestinationPhoneNumber — (String)

      The destination phone number in E.164 format.

    • OriginationIdentity — (String)

      The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

    • MessageBody — (String)

      The body of the text message.

    • MessageType — (String)

      The type of message. Valid values are for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

      Possible values include:
      • "TRANSACTIONAL"
      • "PROMOTIONAL"
    • Keyword — (String)

      When you register a short code in the US, you must specify a program name. If you don’t have a US short code, omit this attribute.

    • ConfigurationSetName — (String)

      The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

    • MaxPrice — (String)

      The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.

    • TimeToLive — (Integer)

      How long the text message is valid for. By default this is 72 hours.

    • Context — (map<String>)

      You can specify custom data in this field. If you do, that data is logged to the event destination.

    • DestinationCountryParameters — (map<String>)

      This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.

    • DryRun — (Boolean)

      When set to true, the message is checked and validated, but isn't sent to the end recipient.

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. The data object has the following properties:

      • MessageId — (String)

        The unique identifier for the message.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

sendVoiceMessage(params = {}, callback) ⇒ AWS.Request

Allows you to send a request that sends a voice message through Amazon Pinpoint. This operation uses Amazon Polly to convert a text script into a voice message.

Service Reference:

Examples:

Calling the sendVoiceMessage operation

var params = {
  DestinationPhoneNumber: 'STRING_VALUE', /* required */
  OriginationIdentity: 'STRING_VALUE', /* required */
  ConfigurationSetName: 'STRING_VALUE',
  Context: {
    '<ContextKey>': 'STRING_VALUE',
    /* '<ContextKey>': ... */
  },
  DryRun: true || false,
  MaxPricePerMinute: 'STRING_VALUE',
  MessageBody: 'STRING_VALUE',
  MessageBodyTextType: TEXT | SSML,
  TimeToLive: 'NUMBER_VALUE',
  VoiceId: AMY | ASTRID | BIANCA | BRIAN | CAMILA | CARLA | CARMEN | CELINE | CHANTAL | CONCHITA | CRISTIANO | DORA | EMMA | ENRIQUE | EWA | FILIZ | GERAINT | GIORGIO | GWYNETH | HANS | INES | IVY | JACEK | JAN | JOANNA | JOEY | JUSTIN | KARL | KENDRA | KIMBERLY | LEA | LIV | LOTTE | LUCIA | LUPE | MADS | MAJA | MARLENE | MATHIEU | MATTHEW | MAXIM | MIA | MIGUEL | MIZUKI | NAJA | NICOLE | PENELOPE | RAVEENA | RICARDO | RUBEN | RUSSELL | SALLI | SEOYEON | TAKUMI | TATYANA | VICKI | VITORIA | ZEINA | ZHIYU
};
pinpointsmsvoicev2.sendVoiceMessage(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: {})
    • DestinationPhoneNumber — (String)

      The destination phone number in E.164 format.

    • OriginationIdentity — (String)

      The origination identity to use for the voice call. This can be the PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.

    • MessageBody — (String)

      The text to convert to a voice message.

    • MessageBodyTextType — (String)

      Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).

      • TEXT: This is the default value. When used the maximum character limit is 3000.

      • SSML: When used the maximum character limit is 6000 including SSML tagging.

      Possible values include:
      • "TEXT"
      • "SSML"
    • VoiceId — (String)

      The voice for the Amazon Polly service to use. By default this is set to "MATTHEW".

      Possible values include:
      • "AMY"
      • "ASTRID"
      • "BIANCA"
      • "BRIAN"
      • "CAMILA"
      • "CARLA"
      • "CARMEN"
      • "CELINE"
      • "CHANTAL"
      • "CONCHITA"
      • "CRISTIANO"
      • "DORA"
      • "EMMA"
      • "ENRIQUE"
      • "EWA"
      • "FILIZ"
      • "GERAINT"
      • "GIORGIO"
      • "GWYNETH"
      • "HANS"
      • "INES"
      • "IVY"
      • "JACEK"
      • "JAN"
      • "JOANNA"
      • "JOEY"
      • "JUSTIN"
      • "KARL"
      • "KENDRA"
      • "KIMBERLY"
      • "LEA"
      • "LIV"
      • "LOTTE"
      • "LUCIA"
      • "LUPE"
      • "MADS"
      • "MAJA"
      • "MARLENE"
      • "MATHIEU"
      • "MATTHEW"
      • "MAXIM"
      • "MIA"
      • "MIGUEL"
      • "MIZUKI"
      • "NAJA"
      • "NICOLE"
      • "PENELOPE"
      • "RAVEENA"
      • "RICARDO"
      • "RUBEN"
      • "RUSSELL"
      • "SALLI"
      • "SEOYEON"
      • "TAKUMI"
      • "TATYANA"
      • "VICKI"
      • "VITORIA"
      • "ZEINA"
      • "ZHIYU"
    • ConfigurationSetName — (String)

      The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

    • MaxPricePerMinute — (String)

      The maximum amount to spend per voice message, in US dollars.

    • TimeToLive — (Integer)

      How long the voice message is valid for. By default this is 72 hours.

    • Context — (map<String>)

      You can specify custom data in this field. If you do, that data is logged to the event destination.

    • DryRun — (Boolean)

      When set to true, the message is checked and validated, but isn't sent to the end recipient.

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. The data object has the following properties:

      • MessageId — (String)

        The unique identifier for the message.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

setDefaultMessageType(params = {}, callback) ⇒ AWS.Request

Sets the default message type on a configuration set.

Choose the category of SMS messages that you plan to send from this account. If you send account-related messages or time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages that contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services account.

Service Reference:

Examples:

Calling the setDefaultMessageType operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  MessageType: TRANSACTIONAL | PROMOTIONAL /* required */
};
pinpointsmsvoicev2.setDefaultMessageType(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: {})
    • ConfigurationSetName — (String)

      The configuration set to update with a new default message type. This field can be the ConsigurationSetName or ConfigurationSetArn.

    • MessageType — (String)

      The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

      Possible values include:
      • "TRANSACTIONAL"
      • "PROMOTIONAL"

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. The data object has the following properties:

      • ConfigurationSetArn — (String)

        The Amazon Resource Name (ARN) of the updated configuration set.

      • ConfigurationSetName — (String)

        The name of the configuration set that was updated.

      • MessageType — (String)

        The new default message type of the configuration set.

        Possible values include:
        • "TRANSACTIONAL"
        • "PROMOTIONAL"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

setDefaultSenderId(params = {}, callback) ⇒ AWS.Request

Sets default sender ID on a configuration set.

When sending a text message to a destination country that supports sender IDs, the default sender ID on the configuration set specified will be used if no dedicated origination phone numbers or registered sender IDs are available in your account.

Service Reference:

Examples:

Calling the setDefaultSenderId operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  SenderId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.setDefaultSenderId(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: {})
    • ConfigurationSetName — (String)

      The configuration set to updated with a new default SenderId. This field can be the ConsigurationSetName or ConfigurationSetArn.

    • SenderId — (String)

      The current sender ID for the configuration set. When sending a text message to a destination country which supports SenderIds, the default sender ID on the configuration set specified on SendTextMessage will be used if no dedicated origination phone numbers or registered SenderIds are available in your account, instead of a generic sender ID, such as 'NOTICE'.

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. The data object has the following properties:

      • ConfigurationSetArn — (String)

        The Amazon Resource Name (ARN) of the updated configuration set.

      • ConfigurationSetName — (String)

        The name of the configuration set that was updated.

      • SenderId — (String)

        The default sender ID to set for the ConfigurationSet.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

setTextMessageSpendLimitOverride(params = {}, callback) ⇒ AWS.Request

Sets an account level monthly spend limit override for sending text messages. The requested spend limit must be less than or equal to the MaxLimit, which is set by Amazon Web Services.

Examples:

Calling the setTextMessageSpendLimitOverride operation

var params = {
  MonthlyLimit: 'NUMBER_VALUE' /* required */
};
pinpointsmsvoicev2.setTextMessageSpendLimitOverride(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: {})
    • MonthlyLimit — (Integer)

      The new monthly limit to enforce on text messages.

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. The data object has the following properties:

      • MonthlyLimit — (Integer)

        The current monthly limit to enforce on sending text messages.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

setVoiceMessageSpendLimitOverride(params = {}, callback) ⇒ AWS.Request

Sets an account level monthly spend limit override for sending voice messages. The requested spend limit must be less than or equal to the MaxLimit, which is set by Amazon Web Services.

Examples:

Calling the setVoiceMessageSpendLimitOverride operation

var params = {
  MonthlyLimit: 'NUMBER_VALUE' /* required */
};
pinpointsmsvoicev2.setVoiceMessageSpendLimitOverride(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: {})
    • MonthlyLimit — (Integer)

      The new monthly limit to enforce on voice messages.

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. The data object has the following properties:

      • MonthlyLimit — (Integer)

        The current monthly limit to enforce on sending voice messages.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

submitRegistrationVersion(params = {}, callback) ⇒ AWS.Request

Submit the specified registration for review and approval.

Service Reference:

Examples:

Calling the submitRegistrationVersion operation

var params = {
  RegistrationId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.submitRegistrationVersion(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: {})
    • RegistrationId — (String)

      The unique identifier for the registration.

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. The data object has the following properties:

      • RegistrationArn — (String)

        The Amazon Resource Name (ARN) for the registration.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • VersionNumber — (Integer)

        The version number of the registration.

      • RegistrationVersionStatus — (String)

        The status of the registration version.

        • DRAFT: The initial status of a registration version after it’s created.

        • SUBMITTED: Your registration has been submitted.

        • REVIEWING: Your registration has been accepted and is being reviewed.

        • APPROVED: Your registration has been approved.

        • DISCARDED: You've abandon this version of their registration to start over with a new version.

        • DENIED: You must fix your registration and resubmit it.

        • REVOKED: Your previously approved registration has been revoked.

        • ARCHIVED: Your previously approved registration version moves into this status when a more recently submitted version is approved.

        Possible values include:
        • "DRAFT"
        • "SUBMITTED"
        • "REVIEWING"
        • "APPROVED"
        • "DISCARDED"
        • "DENIED"
        • "REVOKED"
        • "ARCHIVED"
      • RegistrationVersionStatusHistory — (map)

        The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

        • DraftTimestamprequired — (Date)

          The time when the registration was in the draft state, in UNIX epoch time format.

        • SubmittedTimestamp — (Date)

          The time when the registration was in the submitted state, in UNIX epoch time format.

        • ReviewingTimestamp — (Date)

          The time when the registration was in the reviewing state, in UNIX epoch time format.

        • ApprovedTimestamp — (Date)

          The time when the registration was in the approved state, in UNIX epoch time format.

        • DiscardedTimestamp — (Date)

          The time when the registration was in the discarded state, in UNIX epoch time format.

        • DeniedTimestamp — (Date)

          The time when the registration was in the denied state, in UNIX epoch time format.

        • RevokedTimestamp — (Date)

          The time when the registration was in the revoked state, in UNIX epoch time format.

        • ArchivedTimestamp — (Date)

          The time when the registration was in the archived state, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Adds or overwrites only the specified tags for the specified Amazon Pinpoint SMS Voice, version 2 resource. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer Guide.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
pinpointsmsvoicev2.tagResource(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: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

    • Tags — (Array<map>)

      An array of key and value pair tags that are associated with the resource.

      • Keyrequired — (String)

        The key identifier, or name, of the tag.

      • Valuerequired — (String)

        The string value associated with the key of the tag.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Removes the association of the specified tags from an Amazon Pinpoint SMS Voice V2 resource. For more information on tags see Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer Guide.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
pinpointsmsvoicev2.untagResource(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: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

    • TagKeys — (Array<String>)

      An array of tag key values to unassociate with the resource.

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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateEventDestination(params = {}, callback) ⇒ AWS.Request

Updates an existing event destination in a configuration set. You can update the IAM role ARN for CloudWatch Logs and Kinesis Data Firehose. You can also enable or disable the event destination.

You may want to update an event destination to change its matching event types or updating the destination resource ARN. You can't change an event destination's type between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS.

Service Reference:

Examples:

Calling the updateEventDestination operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  EventDestinationName: 'STRING_VALUE', /* required */
  CloudWatchLogsDestination: {
    IamRoleArn: 'STRING_VALUE', /* required */
    LogGroupArn: 'STRING_VALUE' /* required */
  },
  Enabled: true || false,
  KinesisFirehoseDestination: {
    DeliveryStreamArn: 'STRING_VALUE', /* required */
    IamRoleArn: 'STRING_VALUE' /* required */
  },
  MatchingEventTypes: [
    ALL | TEXT_ALL | TEXT_SENT | TEXT_PENDING | TEXT_QUEUED | TEXT_SUCCESSFUL | TEXT_DELIVERED | TEXT_INVALID | TEXT_INVALID_MESSAGE | TEXT_UNREACHABLE | TEXT_CARRIER_UNREACHABLE | TEXT_BLOCKED | TEXT_CARRIER_BLOCKED | TEXT_SPAM | TEXT_UNKNOWN | TEXT_TTL_EXPIRED | VOICE_ALL | VOICE_INITIATED | VOICE_RINGING | VOICE_ANSWERED | VOICE_COMPLETED | VOICE_BUSY | VOICE_NO_ANSWER | VOICE_FAILED | VOICE_TTL_EXPIRED,
    /* more items */
  ],
  SnsDestination: {
    TopicArn: 'STRING_VALUE' /* required */
  }
};
pinpointsmsvoicev2.updateEventDestination(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: {})
    • ConfigurationSetName — (String)

      The configuration set to update with the new event destination. Valid values for this can be the ConfigurationSetName or ConfigurationSetArn.

    • EventDestinationName — (String)

      The name to use for the event destination.

    • Enabled — (Boolean)

      When set to true logging is enabled.

    • MatchingEventTypes — (Array<String>)

      An array of event types that determine which events to log.

      Note: The TEXT_SENT event type is not supported.
    • CloudWatchLogsDestination — (map)

      An object that contains information about an event destination that sends data to CloudWatch Logs.

      • IamRoleArnrequired — (String)

        The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.

      • LogGroupArnrequired — (String)

        The name of the Amazon CloudWatch log group that you want to record events in.

    • KinesisFirehoseDestination — (map)

      An object that contains information about an event destination for logging to Kinesis Data Firehose.

      • IamRoleArnrequired — (String)

        The ARN of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon Firehose destination.

      • DeliveryStreamArnrequired — (String)

        The Amazon Resource Name (ARN) of the delivery stream.

    • SnsDestination — (map)

      An object that contains information about an event destination that sends data to Amazon SNS.

      • TopicArnrequired — (String)

        The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.

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. The data object has the following properties:

      • ConfigurationSetArn — (String)

        The Amazon Resource Name (ARN) for the ConfigurationSet that was updated.

      • ConfigurationSetName — (String)

        The name of the configuration set.

      • EventDestination — (map)

        An EventDestination object containing the details of where events will be logged.

        • EventDestinationNamerequired — (String)

          The name of the EventDestination.

        • Enabledrequired — (Boolean)

          When set to true events will be logged.

        • MatchingEventTypesrequired — (Array<String>)

          An array of event types that determine which events to log.

          Note: The TEXT_SENT event type is not supported.
        • CloudWatchLogsDestination — (map)

          An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.

          • IamRoleArnrequired — (String)

            The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.

          • LogGroupArnrequired — (String)

            The name of the Amazon CloudWatch log group that you want to record events in.

        • KinesisFirehoseDestination — (map)

          An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.

          • IamRoleArnrequired — (String)

            The ARN of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon Firehose destination.

          • DeliveryStreamArnrequired — (String)

            The Amazon Resource Name (ARN) of the delivery stream.

        • SnsDestination — (map)

          An object that contains information about an event destination that sends logging events to Amazon SNS.

          • TopicArnrequired — (String)

            The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updatePhoneNumber(params = {}, callback) ⇒ AWS.Request

Updates the configuration of an existing origination phone number. You can update the opt-out list, enable or disable two-way messaging, change the TwoWayChannelArn, enable or disable self-managed opt-outs, and enable or disable deletion protection.

If the origination phone number is associated with a pool, an error is returned.

Service Reference:

Examples:

Calling the updatePhoneNumber operation

var params = {
  PhoneNumberId: 'STRING_VALUE', /* required */
  DeletionProtectionEnabled: true || false,
  OptOutListName: 'STRING_VALUE',
  SelfManagedOptOutsEnabled: true || false,
  TwoWayChannelArn: 'STRING_VALUE',
  TwoWayChannelRole: 'STRING_VALUE',
  TwoWayEnabled: true || false
};
pinpointsmsvoicev2.updatePhoneNumber(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: {})
    • PhoneNumberId — (String)

      The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or PhoneNumberArn.

    • TwoWayEnabled — (Boolean)

      By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

    • TwoWayChannelArn — (String)

      The Amazon Resource Name (ARN) of the two way channel.

    • TwoWayChannelRole — (String)

      An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

    • SelfManagedOptOutsEnabled — (Boolean)

      By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

    • OptOutListName — (String)

      The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or OutOutListArn.

    • DeletionProtectionEnabled — (Boolean)

      By default this is set to false. When set to true the phone number can't be deleted.

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. The data object has the following properties:

      • PhoneNumberArn — (String)

        The Amazon Resource Name (ARN) of the updated phone number.

      • PhoneNumberId — (String)

        The unique identifier of the phone number.

      • PhoneNumber — (String)

        The phone number that was updated.

      • Status — (String)

        The current status of the request.

        Possible values include:
        • "PENDING"
        • "ACTIVE"
        • "ASSOCIATING"
        • "DISASSOCIATING"
        • "DELETED"
      • IsoCountryCode — (String)

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

      • MessageType — (String)

        The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

        Possible values include:
        • "TRANSACTIONAL"
        • "PROMOTIONAL"
      • NumberCapabilities — (Array<String>)

        Specifies if the number could be used for text messages, voice or both.

      • NumberType — (String)

        The type of number that was requested.

        Possible values include:
        • "SHORT_CODE"
        • "LONG_CODE"
        • "TOLL_FREE"
        • "TEN_DLC"
        • "SIMULATOR"
      • MonthlyLeasingPrice — (String)

        The monthly leasing price of the phone number, in US dollars.

      • TwoWayEnabled — (Boolean)

        By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

      • TwoWayChannelArn — (String)

        The Amazon Resource Name (ARN) of the two way channel.

      • TwoWayChannelRole — (String)

        An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

      • SelfManagedOptOutsEnabled — (Boolean)

        This is true if self managed opt-out are enabled.

      • OptOutListName — (String)

        The name of the OptOutList associated with the phone number.

      • DeletionProtectionEnabled — (Boolean)

        When set to true the phone number can't be deleted.

      • RegistrationId — (String)

        The unique identifier for the registration.

      • CreatedTimestamp — (Date)

        The time when the phone number was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updatePool(params = {}, callback) ⇒ AWS.Request

Updates the configuration of an existing pool. You can update the opt-out list, enable or disable two-way messaging, change the TwoWayChannelArn, enable or disable self-managed opt-outs, enable or disable deletion protection, and enable or disable shared routes.

Service Reference:

Examples:

Calling the updatePool operation

var params = {
  PoolId: 'STRING_VALUE', /* required */
  DeletionProtectionEnabled: true || false,
  OptOutListName: 'STRING_VALUE',
  SelfManagedOptOutsEnabled: true || false,
  SharedRoutesEnabled: true || false,
  TwoWayChannelArn: 'STRING_VALUE',
  TwoWayChannelRole: 'STRING_VALUE',
  TwoWayEnabled: true || false
};
pinpointsmsvoicev2.updatePool(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: {})
    • PoolId — (String)

      The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.

    • TwoWayEnabled — (Boolean)

      By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

    • TwoWayChannelArn — (String)

      The Amazon Resource Name (ARN) of the two way channel.

    • TwoWayChannelRole — (String)

      An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

    • SelfManagedOptOutsEnabled — (Boolean)

      By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

    • OptOutListName — (String)

      The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.

    • SharedRoutesEnabled — (Boolean)

      Indicates whether shared routes are enabled for the pool.

    • DeletionProtectionEnabled — (Boolean)

      When set to true the pool can't be deleted.

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. The data object has the following properties:

      • PoolArn — (String)

        The ARN of the pool.

      • PoolId — (String)

        The unique identifier of the pool.

      • Status — (String)

        The current status of the pool update request.

        Possible values include:
        • "CREATING"
        • "ACTIVE"
        • "DELETING"
      • MessageType — (String)

        The type of message for the pool to use.

        Possible values include:
        • "TRANSACTIONAL"
        • "PROMOTIONAL"
      • TwoWayEnabled — (Boolean)

        By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

      • TwoWayChannelArn — (String)

        The Amazon Resource Name (ARN) of the two way channel.

      • TwoWayChannelRole — (String)

        An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.

      • SelfManagedOptOutsEnabled — (Boolean)

        When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

      • OptOutListName — (String)

        The name of the OptOutList associated with the pool.

      • SharedRoutesEnabled — (Boolean)

        Indicates whether shared routes are enabled for the pool.

      • DeletionProtectionEnabled — (Boolean)

        When set to true the pool can't be deleted.

      • CreatedTimestamp — (Date)

        The time when the pool was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateSenderId(params = {}, callback) ⇒ AWS.Request

Updates the configuration of an existing sender ID.

Service Reference:

Examples:

Calling the updateSenderId operation

var params = {
  IsoCountryCode: 'STRING_VALUE', /* required */
  SenderId: 'STRING_VALUE', /* required */
  DeletionProtectionEnabled: true || false
};
pinpointsmsvoicev2.updateSenderId(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: {})
    • SenderId — (String)

      The sender ID to update.

    • IsoCountryCode — (String)

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

    • DeletionProtectionEnabled — (Boolean)

      By default this is set to false. When set to true the sender ID can't be deleted.

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. The data object has the following properties:

      • SenderIdArn — (String)

        The Amazon Resource Name (ARN) associated with the SenderId.

      • SenderId — (String)

        The sender ID that was updated.

      • IsoCountryCode — (String)

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

      • MessageTypes — (Array<String>)

        The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

      • MonthlyLeasingPrice — (String)

        The monthly price, in US dollars, to lease the sender ID.

      • DeletionProtectionEnabled — (Boolean)

        By default this is set to false. When set to true the sender ID can't be deleted.

      • Registered — (Boolean)

        True if the sender ID is registered..

      • RegistrationId — (String)

        The unique identifier for the registration.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

verifyDestinationNumber(params = {}, callback) ⇒ AWS.Request

Use the verification code that was received by the verified destination phone number to opt-in the verified destination phone number to receive more messages.

Service Reference:

Examples:

Calling the verifyDestinationNumber operation

var params = {
  VerificationCode: 'STRING_VALUE', /* required */
  VerifiedDestinationNumberId: 'STRING_VALUE' /* required */
};
pinpointsmsvoicev2.verifyDestinationNumber(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: {})
    • VerifiedDestinationNumberId — (String)

      The unique identifier for the verififed destination phone number.

    • VerificationCode — (String)

      The verification code that was received by the verified destination phone number.

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. The data object has the following properties:

      • VerifiedDestinationNumberArn — (String)

        The Amazon Resource Name (ARN) for the verified destination phone number.

      • VerifiedDestinationNumberId — (String)

        The unique identifier for the verified destination phone number.

      • DestinationPhoneNumber — (String)

        The phone number in E.164 format.

      • Status — (String)

        The status for being able to send messages to the phone number.

        Possible values include:
        • "PENDING"
        • "VERIFIED"
      • CreatedTimestamp — (Date)

        The time when the destination phone number was created, in UNIX epoch time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

waitFor(state, params = {}, callback) ⇒ AWS.Request

Waits for a given PinpointSMSVoiceV2 resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.

Parameters:

  • state (String)

    the resource state to wait for. Available states for this service are listed in "Waiter Resource States" below.

  • params (map) (defaults to: {})

    a list of parameters for the given state. See each waiter resource state for required parameters.

Callback (callback):

  • function(err, data) { ... }

    Callback containing error and data information. See the respective resource state for the expected error or data information.

    If the waiter times out its requests, it will return a ResourceNotReady error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.