diff --git a/.changes/next-release/feature-AmazonSimpleNotificationService-da81b53.json b/.changes/next-release/feature-AmazonSimpleNotificationService-da81b53.json new file mode 100644 index 000000000000..191cfd233fed --- /dev/null +++ b/.changes/next-release/feature-AmazonSimpleNotificationService-da81b53.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "Amazon Simple Notification Service", + "contributor": "", + "description": "Amazon SNS introduces the PublishBatch API, which enables customers to publish up to 10 messages per API request. The new API is valid for Standard and FIFO topics." +} diff --git a/services/sns/src/main/resources/codegen-resources/service-2.json b/services/sns/src/main/resources/codegen-resources/service-2.json index 16cdc2b2108a..00d41b4ee7dc 100755 --- a/services/sns/src/main/resources/codegen-resources/service-2.json +++ b/services/sns/src/main/resources/codegen-resources/service-2.json @@ -25,7 +25,7 @@ {"shape":"AuthorizationErrorException"}, {"shape":"NotFoundException"} ], - "documentation":"

Adds a statement to a topic's access control policy, granting access for the specified accounts to the specified actions.

" + "documentation":"

Adds a statement to a topic's access control policy, granting access for the specified Amazon Web Services accounts to the specified actions.

" }, "CheckIfPhoneNumberIsOptedOut":{ "name":"CheckIfPhoneNumberIsOptedOut", @@ -44,7 +44,7 @@ {"shape":"AuthorizationErrorException"}, {"shape":"InvalidParameterException"} ], - "documentation":"

Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your account. You cannot send SMS messages to a number that is opted out.

To resume sending messages, you can opt in the number by using the OptInPhoneNumber action.

" + "documentation":"

Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your Amazon Web Services account. You cannot send SMS messages to a number that is opted out.

To resume sending messages, you can opt in the number by using the OptInPhoneNumber action.

" }, "ConfirmSubscription":{ "name":"ConfirmSubscription", @@ -83,7 +83,7 @@ {"shape":"InternalErrorException"}, {"shape":"AuthorizationErrorException"} ], - "documentation":"

Creates a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging), to which devices and mobile apps may register. You must specify PlatformPrincipal and PlatformCredential attributes when using the CreatePlatformApplication action.

PlatformPrincipal and PlatformCredential are received from the notification service.

You can use the returned PlatformApplicationArn as an attribute for the CreatePlatformEndpoint action.

" + "documentation":"

Creates a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging), to which devices and mobile apps may register. You must specify PlatformPrincipal and PlatformCredential attributes when using the CreatePlatformApplication action.

PlatformPrincipal and PlatformCredential are received from the notification service.

You can use the returned PlatformApplicationArn as an attribute for the CreatePlatformEndpoint action.

" }, "CreatePlatformEndpoint":{ "name":"CreatePlatformEndpoint", @@ -123,7 +123,7 @@ {"shape":"UserErrorException"}, {"shape":"ThrottledException"} ], - "documentation":"

Adds a destination phone number to an account in the SMS sandbox and sends a one-time password (OTP) to that phone number.

When you start using Amazon SNS to send SMS messages, your account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" + "documentation":"

Adds a destination phone number to an Amazon Web Services account in the SMS sandbox and sends a one-time password (OTP) to that phone number.

When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" }, "CreateTopic":{ "name":"CreateTopic", @@ -196,7 +196,7 @@ {"shape":"UserErrorException"}, {"shape":"ThrottledException"} ], - "documentation":"

Deletes an account's verified or pending phone number from the SMS sandbox.

When you start using Amazon SNS to send SMS messages, your account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" + "documentation":"

Deletes an Amazon Web Services account's verified or pending phone number from the SMS sandbox.

When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" }, "DeleteTopic":{ "name":"DeleteTopic", @@ -271,7 +271,7 @@ {"shape":"AuthorizationErrorException"}, {"shape":"InvalidParameterException"} ], - "documentation":"

Returns the settings for sending SMS messages from your account.

These settings are set with the SetSMSAttributes action.

" + "documentation":"

Returns the settings for sending SMS messages from your Amazon Web Services account.

These settings are set with the SetSMSAttributes action.

" }, "GetSMSSandboxAccountStatus":{ "name":"GetSMSSandboxAccountStatus", @@ -289,7 +289,7 @@ {"shape":"InternalErrorException"}, {"shape":"ThrottledException"} ], - "documentation":"

Retrieves the SMS sandbox status for the calling account in the target Region.

When you start using Amazon SNS to send SMS messages, your account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" + "documentation":"

Retrieves the SMS sandbox status for the calling Amazon Web Services account in the target Amazon Web Services Region.

When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" }, "GetSubscriptionAttributes":{ "name":"GetSubscriptionAttributes", @@ -367,7 +367,7 @@ {"shape":"InvalidParameterException"}, {"shape":"ValidationException"} ], - "documentation":"

Lists the calling account's dedicated origination numbers and their metadata. For more information about origination numbers, see Origination numbers in the Amazon SNS Developer Guide.

" + "documentation":"

Lists the calling Amazon Web Services account's dedicated origination numbers and their metadata. For more information about origination numbers, see Origination numbers in the Amazon SNS Developer Guide.

" }, "ListPhoneNumbersOptedOut":{ "name":"ListPhoneNumbersOptedOut", @@ -424,7 +424,7 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ThrottledException"} ], - "documentation":"

Lists the calling account's current verified and pending destination phone numbers in the SMS sandbox.

When you start using Amazon SNS to send SMS messages, your account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" + "documentation":"

Lists the calling Amazon Web Services account's current verified and pending destination phone numbers in the SMS sandbox.

When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" }, "ListSubscriptions":{ "name":"ListSubscriptions", @@ -547,7 +547,41 @@ {"shape":"KMSAccessDeniedException"}, {"shape":"InvalidSecurityException"} ], - "documentation":"

Sends a message to an Amazon SNS topic, a text message (SMS message) directly to a phone number, or a message to a mobile platform endpoint (when you specify the TargetArn).

If you send a message to a topic, Amazon SNS delivers the message to each endpoint that is subscribed to the topic. The format of the message depends on the notification protocol for each subscribed endpoint.

When a messageId is returned, the message has been saved and Amazon SNS will attempt to deliver it shortly.

To use the Publish action for sending a message to a mobile endpoint, such as an app on a Kindle device or mobile phone, you must specify the EndpointArn for the TargetArn parameter. The EndpointArn is returned when making a call with the CreatePlatformEndpoint action.

For more information about formatting messages, see Send Custom Platform-Specific Payloads in Messages to Mobile Devices.

You can publish messages only to topics and endpoints in the same Region.

" + "documentation":"

Sends a message to an Amazon SNS topic, a text message (SMS message) directly to a phone number, or a message to a mobile platform endpoint (when you specify the TargetArn).

If you send a message to a topic, Amazon SNS delivers the message to each endpoint that is subscribed to the topic. The format of the message depends on the notification protocol for each subscribed endpoint.

When a messageId is returned, the message is saved and Amazon SNS immediately deliverers it to subscribers.

To use the Publish action for publishing a message to a mobile endpoint, such as an app on a Kindle device or mobile phone, you must specify the EndpointArn for the TargetArn parameter. The EndpointArn is returned when making a call with the CreatePlatformEndpoint action.

For more information about formatting messages, see Send Custom Platform-Specific Payloads in Messages to Mobile Devices.

You can publish messages only to topics and endpoints in the same Amazon Web Services Region.

" + }, + "PublishBatch":{ + "name":"PublishBatch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PublishBatchInput"}, + "output":{ + "shape":"PublishBatchResponse", + "resultWrapper":"PublishBatchResult" + }, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"InternalErrorException"}, + {"shape":"NotFoundException"}, + {"shape":"EndpointDisabledException"}, + {"shape":"PlatformApplicationDisabledException"}, + {"shape":"AuthorizationErrorException"}, + {"shape":"BatchEntryIdsNotDistinctException"}, + {"shape":"BatchRequestTooLongException"}, + {"shape":"EmptyBatchRequestException"}, + {"shape":"InvalidBatchEntryIdException"}, + {"shape":"TooManyEntriesInBatchRequestException"}, + {"shape":"KMSDisabledException"}, + {"shape":"KMSInvalidStateException"}, + {"shape":"KMSNotFoundException"}, + {"shape":"KMSOptInRequired"}, + {"shape":"KMSThrottlingException"}, + {"shape":"KMSAccessDeniedException"}, + {"shape":"InvalidSecurityException"} + ], + "documentation":"

Publishes up to ten messages to the specified topic. This is a batch version of Publish. For FIFO topics, multiple messages within a single batch are published in the order they are sent, and messages are deduplicated within the batch and across batches for 5 minutes.

The result of publishing each message is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of all of the batched messages) are both 256 KB (262,144 bytes).

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&AttributeName.1=first

&AttributeName.2=second

If you send a batch message to a topic, Amazon SNS publishes the batch message to each endpoint that is subscribed to the topic. The format of the batch message depends on the notification protocol for each subscribed endpoint.

When a messageId is returned, the batch message is saved and Amazon SNS immediately delivers the message to subscribers.

" }, "RemovePermission":{ "name":"RemovePermission", @@ -665,7 +699,7 @@ {"shape":"AuthorizationErrorException"}, {"shape":"InvalidSecurityException"} ], - "documentation":"

Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is HTTP/S or email, or if the endpoint and the topic are not in the same account, the endpoint owner must run the ConfirmSubscription action to confirm the subscription.

You call the ConfirmSubscription action with the token from the subscription response. Confirmation tokens are valid for three days.

This action is throttled at 100 transactions per second (TPS).

" + "documentation":"

Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is HTTP/S or email, or if the endpoint and the topic are not in the same Amazon Web Services account, the endpoint owner must run the ConfirmSubscription action to confirm the subscription.

You call the ConfirmSubscription action with the token from the subscription response. Confirmation tokens are valid for three days.

This action is throttled at 100 transactions per second (TPS).

" }, "TagResource":{ "name":"TagResource", @@ -687,7 +721,7 @@ {"shape":"AuthorizationErrorException"}, {"shape":"ConcurrentAccessException"} ], - "documentation":"

Add tags to the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide.

When you use topic tags, keep the following guidelines in mind:

" + "documentation":"

Add tags to the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide.

When you use topic tags, keep the following guidelines in mind:

" }, "Unsubscribe":{ "name":"Unsubscribe", @@ -746,7 +780,7 @@ {"shape":"VerificationException"}, {"shape":"ThrottledException"} ], - "documentation":"

Verifies a destination phone number with a one-time password (OTP) for the calling account.

When you start using Amazon SNS to send SMS messages, your account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" + "documentation":"

Verifies a destination phone number with a one-time password (OTP) for the calling Amazon Web Services account.

When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" } }, "shapes":{ @@ -773,7 +807,7 @@ }, "AWSAccountId":{ "shape":"DelegatesList", - "documentation":"

The account IDs of the users (principals) who will be given access to the specified actions. The users must have account, but do not need to be signed up for this service.

" + "documentation":"

The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. The users must have Amazon Web Services account, but do not need to be signed up for this service.

" }, "ActionName":{ "shape":"ActionsList", @@ -799,6 +833,63 @@ }, "exception":true }, + "BatchEntryIdsNotDistinctException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "documentation":"

Two or more batch entries in the request have the same Id.

", + "error":{ + "code":"BatchEntryIdsNotDistinct", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "BatchRequestTooLongException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "documentation":"

The length of all the batch messages put together is more than the limit.

", + "error":{ + "code":"BatchRequestTooLong", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "BatchResultErrorEntry":{ + "type":"structure", + "required":[ + "Id", + "Code", + "SenderFault" + ], + "members":{ + "Id":{ + "shape":"String", + "documentation":"

The Id of an entry in a batch request

" + }, + "Code":{ + "shape":"String", + "documentation":"

An error code representing why the action failed on this entry.

" + }, + "Message":{ + "shape":"String", + "documentation":"

A message explaining why the action failed on this entry.

" + }, + "SenderFault":{ + "shape":"boolean", + "documentation":"

Specifies whether the error happened due to the caller of the batch API action.

" + } + }, + "documentation":"

Gives a detailed description of failed messages in the batch.

" + }, + "BatchResultErrorEntryList":{ + "type":"list", + "member":{"shape":"BatchResultErrorEntry"} + }, "Binary":{"type":"blob"}, "CheckIfPhoneNumberIsOptedOutInput":{ "type":"structure", @@ -1034,19 +1125,32 @@ } } }, + "EmptyBatchRequestException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "documentation":"

The batch request doesn't contain any entries.

", + "error":{ + "code":"EmptyBatchRequest", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "Endpoint":{ "type":"structure", "members":{ "EndpointArn":{ "shape":"String", - "documentation":"

EndpointArn for mobile app and device.

" + "documentation":"

The EndpointArn for mobile app and device.

" }, "Attributes":{ "shape":"MapStringToString", "documentation":"

Attributes for endpoint.

" } }, - "documentation":"

Endpoint for mobile app and device.

" + "documentation":"

The endpoint for mobile app and device.

" }, "EndpointDisabledException":{ "type":"structure", @@ -1069,7 +1173,7 @@ "members":{ "message":{"shape":"string"} }, - "documentation":"

Indicates that the number of filter polices in your account exceeds the limit. To add more filter polices, submit an SNS Limit Increase case in the Amazon Web Services Support Center.

", + "documentation":"

Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. To add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web Services Support Center.

", "error":{ "code":"FilterPolicyLimitExceeded", "httpStatusCode":403, @@ -1114,7 +1218,7 @@ "members":{ "Attributes":{ "shape":"MapStringToString", - "documentation":"

Attributes include the following:

" + "documentation":"

Attributes include the following:

" } }, "documentation":"

Response for GetPlatformApplicationAttributes action.

" @@ -1150,7 +1254,7 @@ "members":{ "IsInSandbox":{ "shape":"boolean", - "documentation":"

Indicates whether the calling account is in the SMS sandbox.

" + "documentation":"

Indicates whether the calling Amazon Web Services account is in the SMS sandbox.

" } } }, @@ -1170,7 +1274,7 @@ "members":{ "Attributes":{ "shape":"SubscriptionAttributesMap", - "documentation":"

A map of the subscription's attributes. Attributes in this map include the following:

The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:

" + "documentation":"

A map of the subscription's attributes. Attributes in this map include the following:

The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:

" } }, "documentation":"

Response for GetSubscriptionAttributes action.

" @@ -1191,7 +1295,7 @@ "members":{ "Attributes":{ "shape":"TopicAttributesMap", - "documentation":"

A map of the topic's attributes. Attributes in this map include the following:

The following attribute applies only to server-side-encryption:

The following attributes apply only to FIFO topics:

" + "documentation":"

A map of the topic's attributes. Attributes in this map include the following:

The following attribute applies only to server-side-encryption:

The following attributes apply only to FIFO topics:

" } }, "documentation":"

Response for GetTopicAttributes action.

" @@ -1209,6 +1313,19 @@ "exception":true, "fault":true }, + "InvalidBatchEntryIdException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "documentation":"

The Id of a batch entry in a batch request doesn't abide by the specification.

", + "error":{ + "code":"InvalidBatchEntryId", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "InvalidParameterException":{ "type":"structure", "members":{ @@ -1227,7 +1344,7 @@ "members":{ "message":{ "shape":"string", - "documentation":"

The parameter value is invalid.

" + "documentation":"

The parameter of an entry in a request doesn't abide by the specification.

" } }, "documentation":"

Indicates that a request parameter does not comply with the associated constraints.

", @@ -1692,7 +1809,7 @@ "members":{ "message":{"shape":"string"} }, - "documentation":"

Indicates that the specified phone number opted out of receiving SMS messages from your account. You can't send SMS messages to phone numbers that opt out.

", + "documentation":"

Indicates that the specified phone number opted out of receiving SMS messages from your Amazon Web Services account. You can't send SMS messages to phone numbers that opt out.

", "error":{ "code":"OptedOut", "httpStatusCode":400, @@ -1775,6 +1892,100 @@ }, "exception":true }, + "PublishBatchInput":{ + "type":"structure", + "required":[ + "TopicArn", + "PublishBatchRequestEntries" + ], + "members":{ + "TopicArn":{ + "shape":"topicARN", + "documentation":"

The Amazon resource name (ARN) of the topic you want to batch publish to.

" + }, + "PublishBatchRequestEntries":{ + "shape":"PublishBatchRequestEntryList", + "documentation":"

A list of PublishBatch request entries to be sent to the SNS topic.

" + } + } + }, + "PublishBatchRequestEntry":{ + "type":"structure", + "required":[ + "Id", + "Message" + ], + "members":{ + "Id":{ + "shape":"String", + "documentation":"

An identifier for the message in this batch.

The Ids of a batch request must be unique within a request.

This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).

" + }, + "Message":{ + "shape":"message", + "documentation":"

The body of the message.

" + }, + "Subject":{ + "shape":"subject", + "documentation":"

The subject of the batch message.

" + }, + "MessageStructure":{ + "shape":"messageStructure", + "documentation":"

Set MessageStructure to json if you want to send a different message for each protocol. For example, using one publish action, you can send a short message to your SMS subscribers and a longer message to your email subscribers. If you set MessageStructure to json, the value of the Message parameter must:

You can define other top-level keys that define the message you want to send to a specific transport protocol (e.g. http).

" + }, + "MessageAttributes":{ + "shape":"MessageAttributeMap", + "documentation":"

Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SNS message attributes in the Amazon SNS Developer Guide.

" + }, + "MessageDeduplicationId":{ + "shape":"String", + "documentation":"

This parameter applies only to FIFO (first-in-first-out) topics.

The token used for deduplication of messages within a 5-minute minimum deduplication interval. If a message with a particular MessageDeduplicationId is sent successfully, subsequent messages with the same MessageDeduplicationId are accepted successfully but aren't delivered.

The MessageDeduplicationId is available to the consumer of the message (this can be useful for troubleshooting delivery issues).

If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId after the deduplication interval, Amazon SNS can't detect duplicate messages.

Amazon SNS continues to keep track of the message deduplication ID even after the message is received and deleted.

The length of MessageDeduplicationId is 128 characters.

MessageDeduplicationId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

" + }, + "MessageGroupId":{ + "shape":"String", + "documentation":"

This parameter applies only to FIFO (first-in-first-out) topics.

The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single topic, use MessageGroupId values (for example, session data for multiple users). In this scenario, multiple consumers can process the topic, but the session data of each user is processed in a FIFO fashion.

You must associate a non-empty MessageGroupId with a message. If you don't provide a MessageGroupId, the action fails.

The length of MessageGroupId is 128 characters.

MessageGroupId can contain alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

MessageGroupId is required for FIFO topics. You can't use it for standard topics.

" + } + }, + "documentation":"

Contains the details of a single Amazon SNS message along with an Id that identifies a message within the batch.

" + }, + "PublishBatchRequestEntryList":{ + "type":"list", + "member":{"shape":"PublishBatchRequestEntry"} + }, + "PublishBatchResponse":{ + "type":"structure", + "members":{ + "Successful":{ + "shape":"PublishBatchResultEntryList", + "documentation":"

A list of successful PublishBatch responses.

" + }, + "Failed":{ + "shape":"BatchResultErrorEntryList", + "documentation":"

A list of failed PublishBatch responses.

" + } + } + }, + "PublishBatchResultEntry":{ + "type":"structure", + "members":{ + "Id":{ + "shape":"String", + "documentation":"

The Id of an entry in a batch request.

" + }, + "MessageId":{ + "shape":"messageId", + "documentation":"

An identifier for the message.

" + }, + "SequenceNumber":{ + "shape":"String", + "documentation":"

This parameter applies only to FIFO (first-in-first-out) topics.

The large, non-consecutive number that Amazon SNS assigns to each message.

The length of SequenceNumber is 128 bits. SequenceNumber continues to increase for a particular MessageGroupId.

" + } + }, + "documentation":"

Encloses data related to a successful message in a batch request for topic.

" + }, + "PublishBatchResultEntryList":{ + "type":"list", + "member":{"shape":"PublishBatchResultEntry"} + }, "PublishInput":{ "type":"structure", "required":["Message"], @@ -1809,11 +2020,11 @@ }, "MessageDeduplicationId":{ "shape":"String", - "documentation":"

This parameter applies only to FIFO (first-in-first-out) topics. The MessageDeduplicationId can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

Every message must have a unique MessageDeduplicationId, which is a token used for deduplication of sent messages. If a message with a particular MessageDeduplicationId is sent successfully, any message sent with the same MessageDeduplicationId during the 5-minute deduplication interval is treated as a duplicate.

If the topic has ContentBasedDeduplication set, the system generates a MessageDeduplicationId based on the contents of the message. Your MessageDeduplicationId overrides the generated one.

" + "documentation":"

This parameter applies only to FIFO (first-in-first-out) topics. The MessageDeduplicationId can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

Every message must have a unique MessageDeduplicationId, which is a token used for deduplication of sent messages. If a message with a particular MessageDeduplicationId is sent successfully, any message sent with the same MessageDeduplicationId during the 5-minute deduplication interval is treated as a duplicate.

If the topic has ContentBasedDeduplication set, the system generates a MessageDeduplicationId based on the contents of the message. Your MessageDeduplicationId overrides the generated one.

" }, "MessageGroupId":{ "shape":"String", - "documentation":"

This parameter applies only to FIFO (first-in-first-out) topics. The MessageGroupId can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

The MessageGroupId is a tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). Every message must include a MessageGroupId.

" + "documentation":"

This parameter applies only to FIFO (first-in-first-out) topics. The MessageGroupId can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

The MessageGroupId is a tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). Every message must include a MessageGroupId.

" } }, "documentation":"

Input for Publish action.

" @@ -1884,7 +2095,7 @@ "documentation":"

The destination phone number's verification status.

" } }, - "documentation":"

A verified or pending destination phone number in the SMS sandbox.

When you start using Amazon SNS to send SMS messages, your account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" + "documentation":"

A verified or pending destination phone number in the SMS sandbox.

When you start using Amazon SNS to send SMS messages, your Amazon Web Services account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.

" }, "SMSSandboxPhoneNumberList":{ "type":"list", @@ -1929,7 +2140,7 @@ }, "Attributes":{ "shape":"MapStringToString", - "documentation":"

A map of the platform application attributes. Attributes in this map include the following:

" + "documentation":"

A map of the platform application attributes. Attributes in this map include the following:

The following attributes only apply to APNs token-based authentication:

" } }, "documentation":"

Input for SetPlatformApplicationAttributes action.

" @@ -1940,7 +2151,7 @@ "members":{ "attributes":{ "shape":"MapStringToString", - "documentation":"

The default settings for sending SMS messages from your account. You can set values for the following attribute names:

MonthlySpendLimit – The maximum amount in USD that you are willing to spend each month to send SMS messages. When Amazon SNS determines that sending an SMS message would incur a cost that exceeds this limit, it stops sending SMS messages within minutes.

Amazon SNS stops sending SMS messages within minutes of the limit being crossed. During that interval, if you continue to send SMS messages, you will incur costs that exceed your limit.

By default, the spend limit is set to the maximum allowed by Amazon SNS. If you want to raise the limit, submit an SNS Limit Increase case. For New limit value, enter your desired monthly spend limit. In the Use Case Description field, explain that you are requesting an SMS monthly spend limit increase.

DeliveryStatusIAMRole – The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs. For each SMS message that you send, Amazon SNS writes a log that includes the message price, the success or failure status, the reason for failure (if the message failed), the message dwell time, and other information.

DeliveryStatusSuccessSamplingRate – The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value can be an integer from 0 - 100. For example, to write logs only for failed deliveries, set this value to 0. To write logs for 10% of your successful deliveries, set it to 10.

DefaultSenderID – A string, such as your business brand, that is displayed as the sender on the receiving device. Support for sender IDs varies by country. The sender ID can be 1 - 11 alphanumeric characters, and it must contain at least one letter.

DefaultSMSType – The type of SMS message that you will send by default. You can assign the following values:

UsageReportS3Bucket – The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage report as a CSV file to the bucket. The report includes the following information for each SMS message that was successfully delivered by your account:

To receive the report, the bucket must have a policy that allows the Amazon SNS service principal to perform the s3:PutObject and s3:GetBucketLocation actions.

For an example bucket policy and usage report, see Monitoring SMS Activity in the Amazon SNS Developer Guide.

" + "documentation":"

The default settings for sending SMS messages from your Amazon Web Services account. You can set values for the following attribute names:

MonthlySpendLimit – The maximum amount in USD that you are willing to spend each month to send SMS messages. When Amazon SNS determines that sending an SMS message would incur a cost that exceeds this limit, it stops sending SMS messages within minutes.

Amazon SNS stops sending SMS messages within minutes of the limit being crossed. During that interval, if you continue to send SMS messages, you will incur costs that exceed your limit.

By default, the spend limit is set to the maximum allowed by Amazon SNS. If you want to raise the limit, submit an SNS Limit Increase case. For New limit value, enter your desired monthly spend limit. In the Use Case Description field, explain that you are requesting an SMS monthly spend limit increase.

DeliveryStatusIAMRole – The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs. For each SMS message that you send, Amazon SNS writes a log that includes the message price, the success or failure status, the reason for failure (if the message failed), the message dwell time, and other information.

DeliveryStatusSuccessSamplingRate – The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value can be an integer from 0 - 100. For example, to write logs only for failed deliveries, set this value to 0. To write logs for 10% of your successful deliveries, set it to 10.

DefaultSenderID – A string, such as your business brand, that is displayed as the sender on the receiving device. Support for sender IDs varies by country. The sender ID can be 1 - 11 alphanumeric characters, and it must contain at least one letter.

DefaultSMSType – The type of SMS message that you will send by default. You can assign the following values:

UsageReportS3Bucket – The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage report as a CSV file to the bucket. The report includes the following information for each SMS message that was successfully delivered by your Amazon Web Services account:

To receive the report, the bucket must have a policy that allows the Amazon SNS service principal to perform the s3:PutObject and s3:GetBucketLocation actions.

For an example bucket policy and usage report, see Monitoring SMS Activity in the Amazon SNS Developer Guide.

" } }, "documentation":"

The input for the SetSMSAttributes action.

" @@ -2189,7 +2400,7 @@ "documentation":"

Throttled request.

" } }, - "documentation":"

Indicates that the rate at which requests have been submitted for this action exceeds the limit for your account.

", + "documentation":"

Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account.

", "error":{ "code":"Throttled", "httpStatusCode":429, @@ -2198,6 +2409,19 @@ "exception":true }, "Timestamp":{"type":"timestamp"}, + "TooManyEntriesInBatchRequestException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "documentation":"

The batch request contains more entries than permissible.

", + "error":{ + "code":"TooManyEntriesInBatchRequest", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "Topic":{ "type":"structure", "members":{