{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.sns#ActionsList": { "type": "list", "member": { "target": "com.amazonaws.sns#action" } }, "com.amazonaws.sns#AddPermission": { "type": "operation", "input": { "target": "com.amazonaws.sns#AddPermissionInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "
Adds a statement to a topic's access control policy, granting access for the specified\n AWS accounts to the specified actions.
" } }, "com.amazonaws.sns#AddPermissionInput": { "type": "structure", "members": { "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The ARN of the topic whose access control policy you wish to modify.
", "smithy.api#required": {} } }, "Label": { "target": "com.amazonaws.sns#label", "traits": { "smithy.api#documentation": "A unique identifier for the new policy statement.
", "smithy.api#required": {} } }, "AWSAccountId": { "target": "com.amazonaws.sns#DelegatesList", "traits": { "smithy.api#documentation": "The AWS account IDs of the users (principals) who will be given access to the\n specified actions. The users must have AWS accounts, but do not need to be signed up for\n this service.
", "smithy.api#required": {} } }, "ActionName": { "target": "com.amazonaws.sns#ActionsList", "traits": { "smithy.api#documentation": "The action you want to allow for the specified principal(s).
\nValid values: Any Amazon SNS action name, for example Publish
.
Amazon Simple Notification Service (Amazon SNS) is a web service that enables you to build\n distributed web-enabled applications. Applications can use Amazon SNS to easily push\n real-time notification messages to interested subscribers over multiple delivery\n protocols. For more information about this product see the Amazon SNS product page. For detailed information about Amazon SNS\n features and their associated API calls, see the Amazon SNS Developer Guide.
\nFor information on the permissions you need to use this API, see\n Identity and\n access management in Amazon SNS in the Amazon SNS Developer Guide.\n
\nWe also provide SDKs that enable you to access Amazon SNS from your preferred programming\n language. The SDKs contain functionality that automatically takes care of tasks such as:\n cryptographically signing your service requests, retrying requests, and handling error\n responses. For a list of available SDKs, go to Tools for Amazon Web Services.
", "smithy.api#title": "Amazon Simple Notification Service", "smithy.api#xmlNamespace": { "uri": "http://sns.amazonaws.com/doc/2010-03-31/" } } }, "com.amazonaws.sns#AuthorizationErrorException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "Indicates that the user has been denied access to the requested resource.
", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.sns#Binary": { "type": "blob" }, "com.amazonaws.sns#CheckIfPhoneNumberIsOptedOut": { "type": "operation", "input": { "target": "com.amazonaws.sns#CheckIfPhoneNumberIsOptedOutInput" }, "output": { "target": "com.amazonaws.sns#CheckIfPhoneNumberIsOptedOutResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#ThrottledException" } ], "traits": { "smithy.api#documentation": "Accepts a phone number and indicates whether the phone holder has opted out of\n receiving SMS messages from your account. You cannot send SMS messages to a number that\n is opted out.
\nTo resume sending messages, you can opt in the number by using the\n OptInPhoneNumber
action.
The phone number for which you want to check the opt out status.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "The input for the CheckIfPhoneNumberIsOptedOut
action.
Indicates whether the phone number is opted out:
\n\n true
– The phone number is opted out, meaning you cannot publish\n SMS messages to it.
\n false
– The phone number is opted in, meaning you can publish SMS\n messages to it.
The response from the CheckIfPhoneNumberIsOptedOut
action.
Can't perform multiple operations on a tag simultaneously. Perform the operations\n sequentially.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#ConfirmSubscription": { "type": "operation", "input": { "target": "com.amazonaws.sns#ConfirmSubscriptionInput" }, "output": { "target": "com.amazonaws.sns#ConfirmSubscriptionResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#FilterPolicyLimitExceededException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" }, { "target": "com.amazonaws.sns#SubscriptionLimitExceededException" } ], "traits": { "smithy.api#documentation": "Verifies an endpoint owner's intent to receive messages by validating the token sent\n to the endpoint by an earlier Subscribe
action. If the token is valid, the\n action creates a new subscription and returns its Amazon Resource Name (ARN). This call\n requires an AWS signature only when the AuthenticateOnUnsubscribe
flag is\n set to \"true\".
The ARN of the topic for which you wish to confirm a subscription.
", "smithy.api#required": {} } }, "Token": { "target": "com.amazonaws.sns#token", "traits": { "smithy.api#documentation": "Short-lived token sent to an endpoint during the Subscribe
action.
Disallows unauthenticated unsubscribes of the subscription. If the value of this\n parameter is true
and the request has an AWS signature, then only the topic\n owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action\n requires AWS authentication.
Input for ConfirmSubscription action.
" } }, "com.amazonaws.sns#ConfirmSubscriptionResponse": { "type": "structure", "members": { "SubscriptionArn": { "target": "com.amazonaws.sns#subscriptionARN", "traits": { "smithy.api#documentation": "The ARN of the created subscription.
" } } }, "traits": { "smithy.api#documentation": "Response for ConfirmSubscriptions action.
" } }, "com.amazonaws.sns#CreateEndpointResponse": { "type": "structure", "members": { "EndpointArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "EndpointArn returned from CreateEndpoint action.
" } } }, "traits": { "smithy.api#documentation": "Response from CreateEndpoint action.
" } }, "com.amazonaws.sns#CreatePlatformApplication": { "type": "operation", "input": { "target": "com.amazonaws.sns#CreatePlatformApplicationInput" }, "output": { "target": "com.amazonaws.sns#CreatePlatformApplicationResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" } ], "traits": { "smithy.api#documentation": "Creates a platform application object for one of the supported push notification services,\n such as APNS and GCM (Firebase Cloud Messaging), to which devices and mobile apps may register. \n You must specify PlatformPrincipal
and PlatformCredential
attributes \n when using the CreatePlatformApplication
action.
\n PlatformPrincipal
and PlatformCredential
are received from\n the notification service.
For ADM
, PlatformPrincipal
is client id
\n and PlatformCredential
is client secret
.
For Baidu
, PlatformPrincipal
is API key
\n and PlatformCredential
is secret key
.
For APNS
and APNS_SANDBOX
,\n PlatformPrincipal
is SSL certificate
and\n PlatformCredential
is private key
.
For GCM
(Firebase Cloud Messaging), there is no\n PlatformPrincipal
and the PlatformCredential
is\n API key
.
For MPNS
, PlatformPrincipal
is TLS\n certificate
and PlatformCredential
is private\n key
.
For WNS
, PlatformPrincipal
is Package Security\n Identifier
and PlatformCredential
is secret\n key
.
You can use the returned PlatformApplicationArn
as an attribute for the\n CreatePlatformEndpoint
action.
Application names must be made up of only uppercase and lowercase ASCII letters,\n numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters\n long.
", "smithy.api#required": {} } }, "Platform": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push\n Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
", "smithy.api#required": {} } }, "Attributes": { "target": "com.amazonaws.sns#MapStringToString", "traits": { "smithy.api#documentation": "For a list of attributes, see SetPlatformApplicationAttributes\n
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for CreatePlatformApplication action.
" } }, "com.amazonaws.sns#CreatePlatformApplicationResponse": { "type": "structure", "members": { "PlatformApplicationArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "PlatformApplicationArn is returned.
" } } }, "traits": { "smithy.api#documentation": "Response from CreatePlatformApplication action.
" } }, "com.amazonaws.sns#CreatePlatformEndpoint": { "type": "operation", "input": { "target": "com.amazonaws.sns#CreatePlatformEndpointInput" }, "output": { "target": "com.amazonaws.sns#CreateEndpointResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Creates an endpoint for a device and mobile app on one of the supported push\n notification services, such as GCM (Firebase Cloud Messaging) and APNS.\n CreatePlatformEndpoint
requires the PlatformApplicationArn
\n that is returned from CreatePlatformApplication
. You can use the returned\n EndpointArn
to send a message to a mobile app or by the\n Subscribe
action for subscription to a topic. The\n CreatePlatformEndpoint
action is idempotent, so if the requester\n already owns an endpoint with the same device token and attributes, that endpoint's ARN\n is returned without creating a new endpoint. For more information, see Using Amazon SNS Mobile Push\n Notifications.
When using CreatePlatformEndpoint
with Baidu, two attributes must be\n provided: ChannelId and UserId. The token field must also contain the ChannelId. For\n more information, see Creating an Amazon SNS Endpoint\n for Baidu.
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an\n endpoint.
", "smithy.api#required": {} } }, "Token": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "Unique identifier created by the notification service for an app on a device. The\n specific name for Token will vary, depending on which notification service is being\n used. For example, when using APNS as the notification service, you need the device\n token. Alternatively, when using GCM (Firebase Cloud Messaging) or ADM, the device token\n equivalent is called the registration ID.
", "smithy.api#required": {} } }, "CustomUserData": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The\n data must be in UTF-8 format and less than 2KB.
" } }, "Attributes": { "target": "com.amazonaws.sns#MapStringToString", "traits": { "smithy.api#documentation": "For a list of attributes, see SetEndpointAttributes.
" } } }, "traits": { "smithy.api#documentation": "Input for CreatePlatformEndpoint action.
" } }, "com.amazonaws.sns#CreateTopic": { "type": "operation", "input": { "target": "com.amazonaws.sns#CreateTopicInput" }, "output": { "target": "com.amazonaws.sns#CreateTopicResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#ConcurrentAccessException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#InvalidSecurityException" }, { "target": "com.amazonaws.sns#StaleTagException" }, { "target": "com.amazonaws.sns#TagLimitExceededException" }, { "target": "com.amazonaws.sns#TagPolicyException" }, { "target": "com.amazonaws.sns#TopicLimitExceededException" } ], "traits": { "smithy.api#documentation": "Creates a topic to which notifications can be published. Users can create at most\n 100,000 standard topics (at most 1,000 FIFO topics). For more information, see https://aws.amazon.com/sns. This action is idempotent, so if the requester\n already owns a topic with the specified name, that topic's ARN is returned without\n creating a new topic.
" } }, "com.amazonaws.sns#CreateTopicInput": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.sns#topicName", "traits": { "smithy.api#documentation": "The name of the topic you want to create.
\nConstraints: Topic names must be made up of only uppercase and lowercase ASCII\n letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters\n long.
\nFor a FIFO (first-in-first-out) topic, the name must end with the .fifo
suffix.
A map of attributes with their corresponding values.
\nThe following lists the names, descriptions, and values of the special request\n parameters that the CreateTopic
action uses:
\n DeliveryPolicy
– The policy that defines how Amazon SNS retries\n failed deliveries to HTTP/S endpoints.
\n DisplayName
– The display name to use for a topic with SMS\n subscriptions.
\n FifoTopic
– Set to true to create a FIFO topic.
\n Policy
– The policy that defines who can access your\n topic. By default, only the topic owner can publish or subscribe to the\n topic.
The following attribute applies only to server-side-encryption:
\n\n KmsMasterKeyId
– The ID of an AWS-managed customer master key (CMK)\n for Amazon SNS or a custom CMK. For more information, see Key\n Terms. For more examples, see KeyId in the AWS Key Management Service API\n Reference.
The following attributes apply only to FIFO topics:
\n\n FifoTopic
– When this is set to true
, a FIFO\n topic is created.
\n ContentBasedDeduplication
– Enables content-based deduplication for\n FIFO topics.
By default, ContentBasedDeduplication
is set to false
.\n If you create a FIFO topic and this attribute is false
, you must\n specify a value for the MessageDeduplicationId
parameter for the\n Publish action.
When you set ContentBasedDeduplication
to true
, \n Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId
using \n the body of the message (but not the attributes of the message).
(Optional) To override the generated value, you can specify a value\n for the the MessageDeduplicationId
parameter for the Publish
\n action.
The list of tags to add to a new topic.
\nTo be able to tag a topic on creation, you must have the sns:CreateTopic
and sns:TagResource
permissions.
Input for CreateTopic action.
" } }, "com.amazonaws.sns#CreateTopicResponse": { "type": "structure", "members": { "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) assigned to the created topic.
" } } }, "traits": { "smithy.api#documentation": "Response from CreateTopic action.
" } }, "com.amazonaws.sns#DelegatesList": { "type": "list", "member": { "target": "com.amazonaws.sns#delegate" } }, "com.amazonaws.sns#DeleteEndpoint": { "type": "operation", "input": { "target": "com.amazonaws.sns#DeleteEndpointInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" } ], "traits": { "smithy.api#documentation": "Deletes the endpoint for a device and mobile app from Amazon SNS. This action is\n idempotent. For more information, see Using Amazon SNS Mobile Push\n Notifications.
\nWhen you delete an endpoint that is also subscribed to a topic, then you must also\n unsubscribe the endpoint from the topic.
" } }, "com.amazonaws.sns#DeleteEndpointInput": { "type": "structure", "members": { "EndpointArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "EndpointArn of endpoint to delete.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for DeleteEndpoint action.
" } }, "com.amazonaws.sns#DeletePlatformApplication": { "type": "operation", "input": { "target": "com.amazonaws.sns#DeletePlatformApplicationInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" } ], "traits": { "smithy.api#documentation": "Deletes a platform application object for one of the supported push notification\n services, such as APNS and GCM (Firebase Cloud Messaging). For more information, see\n Using Amazon SNS\n Mobile Push Notifications.
" } }, "com.amazonaws.sns#DeletePlatformApplicationInput": { "type": "structure", "members": { "PlatformApplicationArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "PlatformApplicationArn of platform application object to delete.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for DeletePlatformApplication action.
" } }, "com.amazonaws.sns#DeleteTopic": { "type": "operation", "input": { "target": "com.amazonaws.sns#DeleteTopicInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#ConcurrentAccessException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" }, { "target": "com.amazonaws.sns#StaleTagException" }, { "target": "com.amazonaws.sns#TagPolicyException" } ], "traits": { "smithy.api#documentation": "Deletes a topic and all its subscriptions. Deleting a topic might prevent some\n messages previously sent to the topic from being delivered to subscribers. This action\n is idempotent, so deleting a topic that does not exist does not result in an\n error.
" } }, "com.amazonaws.sns#DeleteTopicInput": { "type": "structure", "members": { "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The ARN of the topic you want to delete.
", "smithy.api#required": {} } } } }, "com.amazonaws.sns#Endpoint": { "type": "structure", "members": { "EndpointArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "EndpointArn for mobile app and device.
" } }, "Attributes": { "target": "com.amazonaws.sns#MapStringToString", "traits": { "smithy.api#documentation": "Attributes for endpoint.
" } } }, "traits": { "smithy.api#documentation": "Endpoint for mobile app and device.
" } }, "com.amazonaws.sns#Endpoint2": { "type": "string" }, "com.amazonaws.sns#EndpointDisabledException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "Message for endpoint disabled.
" } } }, "traits": { "smithy.api#documentation": "Exception error indicating endpoint disabled.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#FilterPolicyLimitExceededException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "Indicates that the number of filter polices in your AWS account exceeds the limit. To\n add more filter polices, submit an SNS Limit Increase case in the AWS Support\n Center.
", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.sns#GetEndpointAttributes": { "type": "operation", "input": { "target": "com.amazonaws.sns#GetEndpointAttributesInput" }, "output": { "target": "com.amazonaws.sns#GetEndpointAttributesResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Retrieves the endpoint attributes for a device on one of the supported push\n notification services, such as GCM (Firebase Cloud Messaging) and APNS. For more\n information, see Using Amazon SNS Mobile Push Notifications.
" } }, "com.amazonaws.sns#GetEndpointAttributesInput": { "type": "structure", "members": { "EndpointArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "EndpointArn for GetEndpointAttributes input.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for GetEndpointAttributes action.
" } }, "com.amazonaws.sns#GetEndpointAttributesResponse": { "type": "structure", "members": { "Attributes": { "target": "com.amazonaws.sns#MapStringToString", "traits": { "smithy.api#documentation": "Attributes include the following:
\n\n CustomUserData
– arbitrary user data to associate with the\n endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and\n less than 2KB.
\n Enabled
– flag that enables/disables delivery to the\n endpoint. Amazon SNS will set this to false when a notification service indicates to\n Amazon SNS that the endpoint is invalid. Users can set it back to true, typically\n after updating Token.
\n Token
– device token, also referred to as a registration id,\n for an app and mobile device. This is returned from the notification service\n when an app and mobile device are registered with the notification\n service.
The device token for the iOS platform is returned in lowercase.
\nResponse from GetEndpointAttributes of the EndpointArn.
" } }, "com.amazonaws.sns#GetPlatformApplicationAttributes": { "type": "operation", "input": { "target": "com.amazonaws.sns#GetPlatformApplicationAttributesInput" }, "output": { "target": "com.amazonaws.sns#GetPlatformApplicationAttributesResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Retrieves the attributes of the platform application object for the supported push\n notification services, such as APNS and GCM (Firebase Cloud Messaging). For more\n information, see Using Amazon SNS Mobile Push Notifications.
" } }, "com.amazonaws.sns#GetPlatformApplicationAttributesInput": { "type": "structure", "members": { "PlatformApplicationArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "PlatformApplicationArn for GetPlatformApplicationAttributesInput.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for GetPlatformApplicationAttributes action.
" } }, "com.amazonaws.sns#GetPlatformApplicationAttributesResponse": { "type": "structure", "members": { "Attributes": { "target": "com.amazonaws.sns#MapStringToString", "traits": { "smithy.api#documentation": "Attributes include the following:
\n\n EventEndpointCreated
– Topic ARN to which EndpointCreated\n event notifications should be sent.
\n EventEndpointDeleted
– Topic ARN to which EndpointDeleted\n event notifications should be sent.
\n EventEndpointUpdated
– Topic ARN to which EndpointUpdate\n event notifications should be sent.
\n EventDeliveryFailure
– Topic ARN to which DeliveryFailure\n event notifications should be sent upon Direct Publish delivery failure\n (permanent) to one of the application's endpoints.
Response for GetPlatformApplicationAttributes action.
" } }, "com.amazonaws.sns#GetSMSAttributes": { "type": "operation", "input": { "target": "com.amazonaws.sns#GetSMSAttributesInput" }, "output": { "target": "com.amazonaws.sns#GetSMSAttributesResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#ThrottledException" } ], "traits": { "smithy.api#documentation": "Returns the settings for sending SMS messages from your account.
\nThese settings are set with the SetSMSAttributes
action.
A list of the individual attribute names, such as MonthlySpendLimit
, for\n which you want values.
For all attribute names, see SetSMSAttributes.
\nIf you don't use this parameter, Amazon SNS returns all SMS attributes.
" } } }, "traits": { "smithy.api#documentation": "The input for the GetSMSAttributes
request.
The SMS attribute names and their values.
" } } }, "traits": { "smithy.api#documentation": "The response from the GetSMSAttributes
request.
Returns all of the properties of a subscription.
" } }, "com.amazonaws.sns#GetSubscriptionAttributesInput": { "type": "structure", "members": { "SubscriptionArn": { "target": "com.amazonaws.sns#subscriptionARN", "traits": { "smithy.api#documentation": "The ARN of the subscription whose properties you want to get.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for GetSubscriptionAttributes.
" } }, "com.amazonaws.sns#GetSubscriptionAttributesResponse": { "type": "structure", "members": { "Attributes": { "target": "com.amazonaws.sns#SubscriptionAttributesMap", "traits": { "smithy.api#documentation": "A map of the subscription's attributes. Attributes in this map include the following:
\n\n ConfirmationWasAuthenticated
– true
if the subscription confirmation request\n was authenticated.
\n DeliveryPolicy
– The JSON serialization of the subscription's delivery policy.
\n EffectiveDeliveryPolicy
– The JSON serialization of the effective delivery policy that\n takes into account the topic delivery policy and account system defaults.
\n FilterPolicy
– The filter policy JSON that is assigned to the subscription. For more\n information, see Amazon SNS Message\n Filtering in the Amazon SNS Developer Guide.
\n Owner
– The AWS account ID of the subscription's owner.
\n PendingConfirmation
– true
if the subscription hasn't been confirmed. To\n confirm a pending subscription, call the ConfirmSubscription
action with a confirmation\n token.
\n RawMessageDelivery
– true
if raw message delivery is enabled for the\n subscription. Raw messages are free of JSON formatting and can be sent to HTTP/S and Amazon SQS\n endpoints.
\n RedrivePolicy
– When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. \n Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable)\n or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held \n in the dead-letter queue for further analysis or reprocessing.
\n SubscriptionArn
– The subscription's ARN.
\n TopicArn
– The topic ARN that the subscription is associated with.
The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:
\n\n SubscriptionRoleArn
– The ARN of the IAM role that has the following:
Permission to write to the Kinesis Data Firehose delivery stream
\nAmazon SNS listed as a trusted entity
\nSpecifying a valid ARN for this attribute is required for Kinesis Data Firehose delivery stream subscriptions. \n For more information, see Fanout \n to Kinesis Data Firehose delivery streams in the Amazon SNS Developer Guide.
\nResponse for GetSubscriptionAttributes action.
" } }, "com.amazonaws.sns#GetTopicAttributes": { "type": "operation", "input": { "target": "com.amazonaws.sns#GetTopicAttributesInput" }, "output": { "target": "com.amazonaws.sns#GetTopicAttributesResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#InvalidSecurityException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Returns all of the properties of a topic. Topic properties returned might differ based\n on the authorization of the user.
" } }, "com.amazonaws.sns#GetTopicAttributesInput": { "type": "structure", "members": { "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The ARN of the topic whose properties you want to get.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for GetTopicAttributes action.
" } }, "com.amazonaws.sns#GetTopicAttributesResponse": { "type": "structure", "members": { "Attributes": { "target": "com.amazonaws.sns#TopicAttributesMap", "traits": { "smithy.api#documentation": "A map of the topic's attributes. Attributes in this map include the following:
\n\n DeliveryPolicy
– The JSON serialization of the topic's\n delivery policy.
\n DisplayName
– The human-readable name used in the\n From
field for notifications to email
and\n email-json
endpoints.
\n Owner
– The AWS account ID of the topic's owner.
\n Policy
– The JSON serialization of the topic's access\n control policy.
\n SubscriptionsConfirmed
– The number of confirmed\n subscriptions for the topic.
\n SubscriptionsDeleted
– The number of deleted subscriptions\n for the topic.
\n SubscriptionsPending
– The number of subscriptions pending\n confirmation for the topic.
\n TopicArn
– The topic's ARN.
\n EffectiveDeliveryPolicy
– The JSON serialization of the\n effective delivery policy, taking system defaults into account.
The following attribute applies only to server-side-encryption:
\n\n KmsMasterKeyId
- The ID of an AWS-managed customer master key (CMK)\n for Amazon SNS or a custom CMK. For more information, see Key Terms. \n For more examples, see KeyId in the AWS Key Management Service API Reference.
The following attributes apply only to FIFO topics:
\n\n FifoTopic
– When this is set to true
, a FIFO\n topic is created.
\n ContentBasedDeduplication
– Enables content-based deduplication for\n FIFO topics.
By default, ContentBasedDeduplication
is set to false
.\n If you create a FIFO topic and this attribute is false
, you must\n specify a value for the MessageDeduplicationId
parameter for the\n Publish action.
When you set ContentBasedDeduplication
to true
, \n Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId
using \n the body of the message (but not the attributes of the message).
(Optional) To override the generated value, you can specify a value\n for the the MessageDeduplicationId
parameter for the Publish
\n action.
Response for GetTopicAttributes action.
" } }, "com.amazonaws.sns#InternalErrorException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "Indicates an internal service error.
", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.sns#InvalidParameterException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "Indicates that a request parameter does not comply with the associated\n constraints.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#InvalidParameterValueException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "The parameter value is invalid.
" } } }, "traits": { "smithy.api#documentation": "Indicates that a request parameter does not comply with the associated\n constraints.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#InvalidSecurityException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "The credential signature isn't valid. You must use an HTTPS endpoint and sign your\n request using Signature Version 4.
", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.sns#KMSAccessDeniedException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "The ciphertext references a key that doesn't exist or that you don't have access\n to.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#KMSDisabledException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "The request was rejected because the specified customer master key (CMK) isn't\n enabled.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#KMSInvalidStateException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "The request was rejected because the state of the specified resource isn't valid for\n this request. For more information, see How Key State Affects Use of a\n Customer Master Key in the AWS Key Management Service Developer\n Guide.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#KMSNotFoundException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "The request was rejected because the specified entity or resource can't be\n found.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#KMSOptInRequired": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "The AWS access key ID needs a subscription for the service.
", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.sns#KMSThrottlingException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "The request was denied due to request throttling. For more information about\n throttling, see Limits in\n the AWS Key Management Service Developer Guide.\n
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#ListEndpointsByPlatformApplication": { "type": "operation", "input": { "target": "com.amazonaws.sns#ListEndpointsByPlatformApplicationInput" }, "output": { "target": "com.amazonaws.sns#ListEndpointsByPlatformApplicationResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Lists the endpoints and endpoint attributes for devices in a supported push\n notification service, such as GCM (Firebase Cloud Messaging) and APNS. The results for\n ListEndpointsByPlatformApplication
are paginated and return a limited\n list of endpoints, up to 100. If additional records are available after the first page\n results, then a NextToken string will be returned. To receive the next page, you call\n ListEndpointsByPlatformApplication
again using the NextToken string\n received from the previous call. When there are no more records to return, NextToken\n will be null. For more information, see Using Amazon SNS Mobile Push\n Notifications.
This action is throttled at 30 transactions per second (TPS).
", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "items": "Endpoints" } } }, "com.amazonaws.sns#ListEndpointsByPlatformApplicationInput": { "type": "structure", "members": { "PlatformApplicationArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "PlatformApplicationArn for ListEndpointsByPlatformApplicationInput action.
", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "NextToken string is used when calling ListEndpointsByPlatformApplication action to\n retrieve additional records that are available after the first page results.
" } } }, "traits": { "smithy.api#documentation": "Input for ListEndpointsByPlatformApplication action.
" } }, "com.amazonaws.sns#ListEndpointsByPlatformApplicationResponse": { "type": "structure", "members": { "Endpoints": { "target": "com.amazonaws.sns#ListOfEndpoints", "traits": { "smithy.api#documentation": "Endpoints returned for ListEndpointsByPlatformApplication action.
" } }, "NextToken": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "NextToken string is returned when calling ListEndpointsByPlatformApplication action if\n additional records are available after the first page results.
" } } }, "traits": { "smithy.api#documentation": "Response for ListEndpointsByPlatformApplication action.
" } }, "com.amazonaws.sns#ListOfEndpoints": { "type": "list", "member": { "target": "com.amazonaws.sns#Endpoint" } }, "com.amazonaws.sns#ListOfPlatformApplications": { "type": "list", "member": { "target": "com.amazonaws.sns#PlatformApplication" } }, "com.amazonaws.sns#ListPhoneNumbersOptedOut": { "type": "operation", "input": { "target": "com.amazonaws.sns#ListPhoneNumbersOptedOutInput" }, "output": { "target": "com.amazonaws.sns#ListPhoneNumbersOptedOutResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#ThrottledException" } ], "traits": { "smithy.api#documentation": "Returns a list of phone numbers that are opted out, meaning you cannot send SMS\n messages to them.
\nThe results for ListPhoneNumbersOptedOut
are paginated, and each page\n returns up to 100 phone numbers. If additional phone numbers are available after the\n first page of results, then a NextToken
string will be returned. To receive\n the next page, you call ListPhoneNumbersOptedOut
again using the\n NextToken
string received from the previous call. When there are no\n more records to return, NextToken
will be null.
A NextToken
string is used when you call the\n ListPhoneNumbersOptedOut
action to retrieve additional records that are\n available after the first page of results.
The input for the ListPhoneNumbersOptedOut
action.
A list of phone numbers that are opted out of receiving SMS messages. The list is\n paginated, and each page can contain up to 100 phone numbers.
" } }, "nextToken": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "A NextToken
string is returned when you call the\n ListPhoneNumbersOptedOut
action if additional records are available\n after the first page of results.
The response from the ListPhoneNumbersOptedOut
action.
Lists the platform application objects for the supported push notification services,\n such as APNS and GCM (Firebase Cloud Messaging). The results for\n ListPlatformApplications
are paginated and return a limited list of\n applications, up to 100. If additional records are available after the first page\n results, then a NextToken string will be returned. To receive the next page, you call\n ListPlatformApplications
using the NextToken string received from the\n previous call. When there are no more records to return, NextToken
will be\n null. For more information, see Using Amazon SNS Mobile Push\n Notifications.
This action is throttled at 15 transactions per second (TPS).
", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "items": "PlatformApplications" } } }, "com.amazonaws.sns#ListPlatformApplicationsInput": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "NextToken string is used when calling ListPlatformApplications action to retrieve\n additional records that are available after the first page results.
" } } }, "traits": { "smithy.api#documentation": "Input for ListPlatformApplications action.
" } }, "com.amazonaws.sns#ListPlatformApplicationsResponse": { "type": "structure", "members": { "PlatformApplications": { "target": "com.amazonaws.sns#ListOfPlatformApplications", "traits": { "smithy.api#documentation": "Platform applications returned when calling ListPlatformApplications action.
" } }, "NextToken": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "NextToken string is returned when calling ListPlatformApplications action if\n additional records are available after the first page results.
" } } }, "traits": { "smithy.api#documentation": "Response for ListPlatformApplications action.
" } }, "com.amazonaws.sns#ListString": { "type": "list", "member": { "target": "com.amazonaws.sns#String" } }, "com.amazonaws.sns#ListSubscriptions": { "type": "operation", "input": { "target": "com.amazonaws.sns#ListSubscriptionsInput" }, "output": { "target": "com.amazonaws.sns#ListSubscriptionsResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" } ], "traits": { "smithy.api#documentation": "Returns a list of the requester's subscriptions. Each call returns a limited list of\n subscriptions, up to 100. If there are more subscriptions, a NextToken
is\n also returned. Use the NextToken
parameter in a new\n ListSubscriptions
call to get further results.
This action is throttled at 30 transactions per second (TPS).
", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "items": "Subscriptions" } } }, "com.amazonaws.sns#ListSubscriptionsByTopic": { "type": "operation", "input": { "target": "com.amazonaws.sns#ListSubscriptionsByTopicInput" }, "output": { "target": "com.amazonaws.sns#ListSubscriptionsByTopicResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Returns a list of the subscriptions to a specific topic. Each call returns a limited\n list of subscriptions, up to 100. If there are more subscriptions, a\n NextToken
is also returned. Use the NextToken
parameter in\n a new ListSubscriptionsByTopic
call to get further results.
This action is throttled at 30 transactions per second (TPS).
", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "items": "Subscriptions" } } }, "com.amazonaws.sns#ListSubscriptionsByTopicInput": { "type": "structure", "members": { "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The ARN of the topic for which you wish to find subscriptions.
", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.sns#nextToken", "traits": { "smithy.api#documentation": "Token returned by the previous ListSubscriptionsByTopic
request.
Input for ListSubscriptionsByTopic action.
" } }, "com.amazonaws.sns#ListSubscriptionsByTopicResponse": { "type": "structure", "members": { "Subscriptions": { "target": "com.amazonaws.sns#SubscriptionsList", "traits": { "smithy.api#documentation": "A list of subscriptions.
" } }, "NextToken": { "target": "com.amazonaws.sns#nextToken", "traits": { "smithy.api#documentation": "Token to pass along to the next ListSubscriptionsByTopic
request. This\n element is returned if there are more subscriptions to retrieve.
Response for ListSubscriptionsByTopic action.
" } }, "com.amazonaws.sns#ListSubscriptionsInput": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.sns#nextToken", "traits": { "smithy.api#documentation": "Token returned by the previous ListSubscriptions
request.
Input for ListSubscriptions action.
" } }, "com.amazonaws.sns#ListSubscriptionsResponse": { "type": "structure", "members": { "Subscriptions": { "target": "com.amazonaws.sns#SubscriptionsList", "traits": { "smithy.api#documentation": "A list of subscriptions.
" } }, "NextToken": { "target": "com.amazonaws.sns#nextToken", "traits": { "smithy.api#documentation": "Token to pass along to the next ListSubscriptions
request. This element\n is returned if there are more subscriptions to retrieve.
Response for ListSubscriptions action
" } }, "com.amazonaws.sns#ListTagsForResource": { "type": "operation", "input": { "target": "com.amazonaws.sns#ListTagsForResourceRequest" }, "output": { "target": "com.amazonaws.sns#ListTagsForResourceResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#ConcurrentAccessException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#ResourceNotFoundException" }, { "target": "com.amazonaws.sns#TagPolicyException" } ], "traits": { "smithy.api#documentation": "List all tags added to the specified Amazon SNS topic. For an overview, see\n Amazon SNS Tags in the\n Amazon Simple Notification Service Developer Guide.
" } }, "com.amazonaws.sns#ListTagsForResourceRequest": { "type": "structure", "members": { "ResourceArn": { "target": "com.amazonaws.sns#AmazonResourceName", "traits": { "smithy.api#documentation": "The ARN of the topic for which to list tags.
", "smithy.api#required": {} } } } }, "com.amazonaws.sns#ListTagsForResourceResponse": { "type": "structure", "members": { "Tags": { "target": "com.amazonaws.sns#TagList", "traits": { "smithy.api#documentation": "The tags associated with the specified topic.
" } } } }, "com.amazonaws.sns#ListTopics": { "type": "operation", "input": { "target": "com.amazonaws.sns#ListTopicsInput" }, "output": { "target": "com.amazonaws.sns#ListTopicsResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" } ], "traits": { "smithy.api#documentation": "Returns a list of the requester's topics. Each call returns a limited list of topics,\n up to 100. If there are more topics, a NextToken
is also returned. Use the\n NextToken
parameter in a new ListTopics
call to get\n further results.
This action is throttled at 30 transactions per second (TPS).
", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "items": "Topics" } } }, "com.amazonaws.sns#ListTopicsInput": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.sns#nextToken", "traits": { "smithy.api#documentation": "Token returned by the previous ListTopics
request.
A list of topic ARNs.
" } }, "NextToken": { "target": "com.amazonaws.sns#nextToken", "traits": { "smithy.api#documentation": "Token to pass along to the next ListTopics
request. This element is\n returned if there are additional topics to retrieve.
Response for ListTopics action.
" } }, "com.amazonaws.sns#MapStringToString": { "type": "map", "key": { "target": "com.amazonaws.sns#String" }, "value": { "target": "com.amazonaws.sns#String" } }, "com.amazonaws.sns#MessageAttributeMap": { "type": "map", "key": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#xmlName": "Name" } }, "value": { "target": "com.amazonaws.sns#MessageAttributeValue", "traits": { "smithy.api#xmlName": "Value" } } }, "com.amazonaws.sns#MessageAttributeValue": { "type": "structure", "members": { "DataType": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "Amazon SNS supports the following logical data types: String, String.Array, Number, and\n Binary. For more information, see Message\n Attribute Data Types.
", "smithy.api#required": {} } }, "StringValue": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable\n Characters.
" } }, "BinaryValue": { "target": "com.amazonaws.sns#Binary", "traits": { "smithy.api#documentation": "Binary type attributes can store any binary data, for example, compressed data,\n encrypted data, or images.
" } } }, "traits": { "smithy.api#documentation": "The user-specified message attribute value. For string data types, the value attribute\n has the same restrictions on the content as the message body. For more information, see\n Publish.
\nName, type, and value must not be empty or null. In addition, the message body should\n not be empty or null. All parts of the message attribute, including name, type, and\n value, are included in the message size restriction, which is currently 256 KB (262,144\n bytes). For more information, see Amazon SNS message\n attributes and Publishing to a mobile phone\n in the Amazon SNS Developer Guide.\n
" } }, "com.amazonaws.sns#NotFoundException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "Indicates that the requested resource does not exist.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.sns#OptInPhoneNumber": { "type": "operation", "input": { "target": "com.amazonaws.sns#OptInPhoneNumberInput" }, "output": { "target": "com.amazonaws.sns#OptInPhoneNumberResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#ThrottledException" } ], "traits": { "smithy.api#documentation": "Use this request to opt in a phone number that is opted out, which enables you to\n resume sending SMS messages to the number.
\nYou can opt in a phone number only once every 30 days.
" } }, "com.amazonaws.sns#OptInPhoneNumberInput": { "type": "structure", "members": { "phoneNumber": { "target": "com.amazonaws.sns#PhoneNumber", "traits": { "smithy.api#documentation": "The phone number to opt in. Use E.164 format.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for the OptInPhoneNumber action.
" } }, "com.amazonaws.sns#OptInPhoneNumberResponse": { "type": "structure", "members": {}, "traits": { "smithy.api#documentation": "The response for the OptInPhoneNumber action.
" } }, "com.amazonaws.sns#PhoneNumber": { "type": "string" }, "com.amazonaws.sns#PhoneNumberList": { "type": "list", "member": { "target": "com.amazonaws.sns#PhoneNumber" } }, "com.amazonaws.sns#PlatformApplication": { "type": "structure", "members": { "PlatformApplicationArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "PlatformApplicationArn for platform application object.
" } }, "Attributes": { "target": "com.amazonaws.sns#MapStringToString", "traits": { "smithy.api#documentation": "Attributes for platform application object.
" } } }, "traits": { "smithy.api#documentation": "Platform application object.
" } }, "com.amazonaws.sns#PlatformApplicationDisabledException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "Message for platform application disabled.
" } } }, "traits": { "smithy.api#documentation": "Exception error indicating platform application disabled.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#Publish": { "type": "operation", "input": { "target": "com.amazonaws.sns#PublishInput" }, "output": { "target": "com.amazonaws.sns#PublishResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#EndpointDisabledException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#InvalidParameterValueException" }, { "target": "com.amazonaws.sns#InvalidSecurityException" }, { "target": "com.amazonaws.sns#KMSAccessDeniedException" }, { "target": "com.amazonaws.sns#KMSDisabledException" }, { "target": "com.amazonaws.sns#KMSInvalidStateException" }, { "target": "com.amazonaws.sns#KMSNotFoundException" }, { "target": "com.amazonaws.sns#KMSOptInRequired" }, { "target": "com.amazonaws.sns#KMSThrottlingException" }, { "target": "com.amazonaws.sns#NotFoundException" }, { "target": "com.amazonaws.sns#PlatformApplicationDisabledException" } ], "traits": { "smithy.api#documentation": "Sends a message to an Amazon SNS topic, a text message (SMS message) directly to a phone\n number, or a message to a mobile platform endpoint (when you specify the\n TargetArn
).
If you send a message to a topic, Amazon SNS delivers the message to each endpoint that is\n subscribed to the topic. The format of the message depends on the notification protocol\n for each subscribed endpoint.
\nWhen a messageId
is returned, the message has been saved and Amazon SNS\n will attempt to deliver it shortly.
To use the Publish
action for sending a message to a mobile endpoint,\n such as an app on a Kindle device or mobile phone, you must specify the EndpointArn for\n the TargetArn parameter. The EndpointArn is returned when making a call with the\n CreatePlatformEndpoint
action. \n
For more information about formatting messages, see Send Custom\n Platform-Specific Payloads in Messages to Mobile Devices.
\nYou can publish messages only to topics and endpoints in the same AWS Region.
\nThe topic you want to publish to.
\nIf you don't specify a value for the TopicArn
parameter, you must specify\n a value for the PhoneNumber
or TargetArn
parameters.
If you don't specify a value for the TargetArn
parameter, you must\n specify a value for the PhoneNumber
or TopicArn
\n parameters.
The phone number to which you want to deliver an SMS message. Use E.164 format.
\nIf you don't specify a value for the PhoneNumber
parameter, you must\n specify a value for the TargetArn
or TopicArn
\n parameters.
The message you want to send.
\nIf you are publishing to a topic and you want to send the same message to all\n transport protocols, include the text of the message as a String value. If you want to\n send different messages for each transport protocol, set the value of the\n MessageStructure
parameter to json
and use a JSON object\n for the Message
parameter. \n
Constraints:
\nWith the exception of SMS, messages must be UTF-8 encoded strings and at most\n 256 KB in size (262,144 bytes, not 262,144 characters).
\nFor SMS, each message can contain up to 140 characters. This character limit\n depends on the encoding schema. For example, an SMS message can contain 160 GSM\n characters, 140 ASCII characters, or 70 UCS-2 characters.
\nIf you publish a message that exceeds this size limit, Amazon SNS sends the message\n as multiple messages, each fitting within the size limit. Messages aren't\n truncated mid-word but are cut off at whole-word boundaries.
\nThe total size limit for a single SMS Publish
action is 1,600\n characters.
JSON-specific constraints:
\nKeys in the JSON object that correspond to supported transport protocols must\n have simple JSON string values.
\nThe values will be parsed (unescaped) before they are used in outgoing\n messages.
\nOutbound notifications are JSON encoded (meaning that the characters will be\n reescaped for sending).
\nValues have a minimum length of 0 (the empty string, \"\", is allowed).
\nValues have a maximum length bounded by the overall message size (so,\n including multiple protocols may limit message sizes).
\nNon-string values will cause the key to be ignored.
\nKeys that do not correspond to supported transport protocols are\n ignored.
\nDuplicate keys are not allowed.
\nFailure to parse or validate any key or value in the message will cause the\n Publish
call to return an error (no partial delivery).
Optional parameter to be used as the \"Subject\" line when the message is delivered to\n email endpoints. This field will also be included, if present, in the standard JSON\n messages delivered to other endpoints.
\nConstraints: Subjects must be ASCII text that begins with a letter, number, or\n punctuation mark; must not include line breaks or control characters; and must be less\n than 100 characters long.
" } }, "MessageStructure": { "target": "com.amazonaws.sns#messageStructure", "traits": { "smithy.api#documentation": "Set MessageStructure
to json
if you want to send a different\n message for each protocol. For example, using one publish action, you can send a short\n message to your SMS subscribers and a longer message to your email subscribers. If you\n set MessageStructure
to json
, the value of the\n Message
parameter must:
be a syntactically valid JSON object; and
\ncontain at least a top-level JSON key of \"default\" with a value that is a\n string.
\nYou can define other top-level keys that define the message you want to send to a\n specific transport protocol (e.g., \"http\").
\nValid value: json
\n
Message attributes for Publish action.
" } }, "MessageDeduplicationId": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "This parameter applies only to FIFO (first-in-first-out) topics. \n The MessageDeduplicationId
can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) \n and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~)
.
Every message must have a unique MessageDeduplicationId
, which is a token used for deduplication of sent messages. \n If a message with a particular MessageDeduplicationId
is sent successfully, any message sent with the same MessageDeduplicationId
\n 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 \n message. Your MessageDeduplicationId
overrides the generated one.
This parameter applies only to FIFO (first-in-first-out) topics. The MessageGroupId
can contain up to \n 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 \n same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order).\n Every message must include a MessageGroupId
.
Input for Publish action.
" } }, "com.amazonaws.sns#PublishResponse": { "type": "structure", "members": { "MessageId": { "target": "com.amazonaws.sns#messageId", "traits": { "smithy.api#documentation": "Unique identifier assigned to the published message.
\nLength Constraint: Maximum 100 characters
" } }, "SequenceNumber": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "This response element applies only to FIFO (first-in-first-out) topics.
\nThe sequence number is a large, non-consecutive number that Amazon SNS assigns to each message. \n The length of SequenceNumber
is 128 bits. SequenceNumber
continues to increase for each MessageGroupId
.
Response for Publish action.
" } }, "com.amazonaws.sns#RemovePermission": { "type": "operation", "input": { "target": "com.amazonaws.sns#RemovePermissionInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Removes a statement from a topic's access control policy.
" } }, "com.amazonaws.sns#RemovePermissionInput": { "type": "structure", "members": { "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The ARN of the topic whose access control policy you wish to modify.
", "smithy.api#required": {} } }, "Label": { "target": "com.amazonaws.sns#label", "traits": { "smithy.api#documentation": "The unique label of the statement you want to remove.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for RemovePermission action.
" } }, "com.amazonaws.sns#ResourceNotFoundException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "Can't tag resource. Verify that the topic exists.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.sns#SetEndpointAttributes": { "type": "operation", "input": { "target": "com.amazonaws.sns#SetEndpointAttributesInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Sets the attributes for an endpoint for a device on one of the supported push\n notification services, such as GCM (Firebase Cloud Messaging) and APNS. For more\n information, see Using Amazon SNS Mobile Push Notifications.
" } }, "com.amazonaws.sns#SetEndpointAttributesInput": { "type": "structure", "members": { "EndpointArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "EndpointArn used for SetEndpointAttributes action.
", "smithy.api#required": {} } }, "Attributes": { "target": "com.amazonaws.sns#MapStringToString", "traits": { "smithy.api#documentation": "A map of the endpoint attributes. Attributes in this map include the following:
\n\n CustomUserData
– arbitrary user data to associate with the\n endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and\n less than 2KB.
\n Enabled
– flag that enables/disables delivery to the\n endpoint. Amazon SNS will set this to false when a notification service indicates to\n Amazon SNS that the endpoint is invalid. Users can set it back to true, typically\n after updating Token.
\n Token
– device token, also referred to as a registration id,\n for an app and mobile device. This is returned from the notification service\n when an app and mobile device are registered with the notification\n service.
Input for SetEndpointAttributes action.
" } }, "com.amazonaws.sns#SetPlatformApplicationAttributes": { "type": "operation", "input": { "target": "com.amazonaws.sns#SetPlatformApplicationAttributesInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Sets the attributes of the platform application object for the supported push\n notification services, such as APNS and GCM (Firebase Cloud Messaging). For more\n information, see Using Amazon SNS Mobile Push Notifications. For information on configuring\n attributes for message delivery status, see Using Amazon SNS Application Attributes for\n Message Delivery Status.
" } }, "com.amazonaws.sns#SetPlatformApplicationAttributesInput": { "type": "structure", "members": { "PlatformApplicationArn": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "PlatformApplicationArn for SetPlatformApplicationAttributes action.
", "smithy.api#required": {} } }, "Attributes": { "target": "com.amazonaws.sns#MapStringToString", "traits": { "smithy.api#documentation": "A map of the platform application attributes. Attributes in this map include the\n following:
\n\n PlatformCredential
– The credential received from the\n notification service. For APNS
and APNS_SANDBOX
,\n PlatformCredential
is private key
. For\n GCM
(Firebase Cloud Messaging), PlatformCredential
\n is API key
. For ADM
, PlatformCredential
\n is client secret
.
\n PlatformPrincipal
– The principal received from the\n notification service. For APNS
and APNS_SANDBOX
,\n PlatformPrincipal
is SSL certificate
. For\n GCM
(Firebase Cloud Messaging), there is no\n PlatformPrincipal
. For ADM
,\n PlatformPrincipal
is client id
.
\n EventEndpointCreated
– Topic ARN to which\n EndpointCreated
event notifications are sent.
\n EventEndpointDeleted
– Topic ARN to which\n EndpointDeleted
event notifications are sent.
\n EventEndpointUpdated
– Topic ARN to which\n EndpointUpdate
event notifications are sent.
\n EventDeliveryFailure
– Topic ARN to which\n DeliveryFailure
event notifications are sent upon Direct\n Publish delivery failure (permanent) to one of the application's\n endpoints.
\n SuccessFeedbackRoleArn
– IAM role ARN used to give Amazon SNS\n write access to use CloudWatch Logs on your behalf.
\n FailureFeedbackRoleArn
– IAM role ARN used to give Amazon SNS\n write access to use CloudWatch Logs on your behalf.
\n SuccessFeedbackSampleRate
– Sample rate percentage (0-100)\n of successfully delivered messages.
Input for SetPlatformApplicationAttributes action.
" } }, "com.amazonaws.sns#SetSMSAttributes": { "type": "operation", "input": { "target": "com.amazonaws.sns#SetSMSAttributesInput" }, "output": { "target": "com.amazonaws.sns#SetSMSAttributesResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#ThrottledException" } ], "traits": { "smithy.api#documentation": "Use this request to set the default settings for sending SMS messages and receiving\n daily SMS usage reports.
\nYou can override some of these settings for a single message when you use the\n Publish
action with the MessageAttributes.entry.N
\n parameter. For more information, see Publishing to a mobile phone in the\n Amazon SNS Developer Guide.
To use this operation, you must grant the Amazon SNS service principal (sns.amazonaws.com
)\n permission to perform the s3:ListBucket
action.
The default settings for sending SMS messages from your account. You can set values\n for the following attribute names:
\n\n MonthlySpendLimit
– The maximum amount in USD that you are willing to spend\n each month to send SMS messages. When Amazon SNS determines that sending an SMS message would\n incur a cost that exceeds this limit, it stops sending SMS messages within\n minutes.
Amazon SNS stops sending SMS messages within minutes of the limit being crossed. During\n that interval, if you continue to send SMS messages, you will incur costs that\n exceed your limit.
\nBy default, the spend limit is set to the maximum allowed by Amazon SNS. If you want to\n raise the limit, submit an SNS Limit Increase case. For New limit\n value, enter your desired monthly spend limit. In the Use Case Description field, explain that you are requesting\n an SMS monthly spend limit increase.
\n\n DeliveryStatusIAMRole
– The ARN of the IAM role that allows Amazon SNS to write\n logs about SMS deliveries in CloudWatch Logs. For each SMS message that you send, Amazon SNS\n writes a log that includes the message price, the success or failure status, the reason\n for failure (if the message failed), the message dwell time, and other\n information.
\n DeliveryStatusSuccessSamplingRate
– The percentage of successful SMS\n deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value can be an\n integer from 0 - 100. For example, to write logs only for failed deliveries, set this\n value to 0
. To write logs for 10% of your successful deliveries, set it to\n 10
.
\n DefaultSenderID
– A string, such as your business brand, that is displayed\n as the sender on the receiving device. Support for sender IDs varies by country. The\n sender ID can be 1 - 11 alphanumeric characters, and it must contain at least one\n letter.
\n DefaultSMSType
– The type of SMS message that you will send by default. You\n can assign the following values:
\n Promotional
– (Default) Noncritical messages, such as marketing\n messages. Amazon SNS optimizes the message delivery to incur the lowest cost.
\n Transactional
– Critical messages that support customer\n transactions, such as one-time passcodes for multi-factor authentication. Amazon\n SNS optimizes the message delivery to achieve the highest reliability.
\n UsageReportS3Bucket
– The name of the Amazon S3 bucket to receive daily SMS\n usage reports from Amazon SNS. Each day, Amazon SNS will deliver a usage report as a CSV file to\n the bucket. The report includes the following information for each SMS message that was\n successfully delivered by your account:
Time that the message was published (in UTC)
\nMessage ID
\nDestination phone number
\nMessage type
\nDelivery status
\nMessage price (in USD)
\nPart number (a message is split into multiple parts if it is too long for a\n single message)
\nTotal number of parts
\nTo receive the report, the bucket must have a policy that allows the Amazon SNS service\n principle to perform the s3:PutObject
and s3:GetBucketLocation
\n actions.
For an example bucket policy and usage report, see Monitoring SMS Activity in the\n Amazon SNS Developer Guide.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "The input for the SetSMSAttributes action.
" } }, "com.amazonaws.sns#SetSMSAttributesResponse": { "type": "structure", "members": {}, "traits": { "smithy.api#documentation": "The response for the SetSMSAttributes action.
" } }, "com.amazonaws.sns#SetSubscriptionAttributes": { "type": "operation", "input": { "target": "com.amazonaws.sns#SetSubscriptionAttributesInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#FilterPolicyLimitExceededException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Allows a subscription owner to set an attribute of the subscription to a new\n value.
" } }, "com.amazonaws.sns#SetSubscriptionAttributesInput": { "type": "structure", "members": { "SubscriptionArn": { "target": "com.amazonaws.sns#subscriptionARN", "traits": { "smithy.api#documentation": "The ARN of the subscription to modify.
", "smithy.api#required": {} } }, "AttributeName": { "target": "com.amazonaws.sns#attributeName", "traits": { "smithy.api#documentation": "A map of attributes with their corresponding values.
\nThe following lists the names, descriptions, and values of the special request parameters that this action\n uses:
\n\n DeliveryPolicy
– The policy that defines how Amazon SNS retries failed deliveries to HTTP/S\n endpoints.
\n FilterPolicy
– The simple JSON object that lets your subscriber receive only a subset\n of messages, rather than receiving every message published to the topic.
\n RawMessageDelivery
– When set to true
, enables raw message delivery to\n Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is\n otherwise created for Amazon SNS metadata.
\n RedrivePolicy
– When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. \n Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable)\n or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held \n in the dead-letter queue for further analysis or reprocessing.
The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:
\n\n SubscriptionRoleArn
– The ARN of the IAM role that has the following:
Permission to write to the Kinesis Data Firehose delivery stream
\nAmazon SNS listed as a trusted entity
\nSpecifying a valid ARN for this attribute is required for Kinesis Data Firehose delivery stream subscriptions. \n For more information, see Fanout \n to Kinesis Data Firehose delivery streams in the Amazon SNS Developer Guide.
\nThe new value for the attribute in JSON format.
" } } }, "traits": { "smithy.api#documentation": "Input for SetSubscriptionAttributes action.
" } }, "com.amazonaws.sns#SetTopicAttributes": { "type": "operation", "input": { "target": "com.amazonaws.sns#SetTopicAttributesInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#InvalidSecurityException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Allows a topic owner to set an attribute of the topic to a new value.
" } }, "com.amazonaws.sns#SetTopicAttributesInput": { "type": "structure", "members": { "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The ARN of the topic to modify.
", "smithy.api#required": {} } }, "AttributeName": { "target": "com.amazonaws.sns#attributeName", "traits": { "smithy.api#documentation": "A map of attributes with their corresponding values.
\nThe following lists the names, descriptions, and values of the special request\n parameters that the SetTopicAttributes
action uses:
\n DeliveryPolicy
– The policy that defines how Amazon SNS retries\n failed deliveries to HTTP/S endpoints.
\n DisplayName
– The display name to use for a topic with SMS\n subscriptions.
\n Policy
– The policy that defines who can access your\n topic. By default, only the topic owner can publish or subscribe to the\n topic.
The following attribute applies only to server-side-encryption:
\n\n KmsMasterKeyId
– The ID of an AWS-managed customer master key (CMK)\n for Amazon SNS or a custom CMK. For more information, see Key\n Terms. For more examples, see KeyId in the AWS Key Management Service API\n Reference.
The following attribute applies only to FIFO topics:
\n\n ContentBasedDeduplication
– Enables content-based deduplication for\n FIFO topics.
By default, ContentBasedDeduplication
is set to false
.\n If you create a FIFO topic and this attribute is false
, you must\n specify a value for the MessageDeduplicationId
parameter for the\n Publish action.
When you set ContentBasedDeduplication
to true
, \n Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId
using \n the body of the message (but not the attributes of the message).
(Optional) To override the generated value, you can specify a value\n for the the MessageDeduplicationId
parameter for the Publish
\n action.
The new value for the attribute.
" } } }, "traits": { "smithy.api#documentation": "Input for SetTopicAttributes action.
" } }, "com.amazonaws.sns#StaleTagException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "A tag has been added to a resource with the same ARN as a deleted resource.\n Wait a short while and then retry the operation.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#String": { "type": "string" }, "com.amazonaws.sns#Subscribe": { "type": "operation", "input": { "target": "com.amazonaws.sns#SubscribeInput" }, "output": { "target": "com.amazonaws.sns#SubscribeResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#FilterPolicyLimitExceededException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#InvalidSecurityException" }, { "target": "com.amazonaws.sns#NotFoundException" }, { "target": "com.amazonaws.sns#SubscriptionLimitExceededException" } ], "traits": { "smithy.api#documentation": "Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is HTTP/S or email, or\n if the endpoint and the topic are not in the same AWS account, the endpoint owner must\n run the ConfirmSubscription
action to confirm the subscription.
You call the ConfirmSubscription
action with the token from the subscription response.\n Confirmation tokens are valid for three days.
This action is throttled at 100 transactions per second (TPS).
" } }, "com.amazonaws.sns#SubscribeInput": { "type": "structure", "members": { "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The ARN of the topic you want to subscribe to.
", "smithy.api#required": {} } }, "Protocol": { "target": "com.amazonaws.sns#protocol", "traits": { "smithy.api#documentation": "The protocol that you want to use. Supported protocols include:
\n\n http
– delivery of JSON-encoded message via HTTP POST
\n https
– delivery of JSON-encoded message via HTTPS POST
\n email
– delivery of message via SMTP
\n email-json
– delivery of JSON-encoded message via SMTP
\n sms
– delivery of message via SMS
\n sqs
– delivery of JSON-encoded message to an Amazon SQS queue
\n application
– delivery of JSON-encoded message to an EndpointArn\n for a mobile app and device
\n lambda
– delivery of JSON-encoded message to an AWS Lambda\n function
\n firehose
– delivery of JSON-encoded message to an Amazon Kinesis\n Data Firehose delivery stream.
The endpoint that you want to receive notifications. Endpoints vary by\n protocol:
\nFor the http
protocol, the (public) endpoint is a URL beginning with\n http://
.
For the https
protocol, the (public) endpoint is a URL beginning with\n https://
.
For the email
protocol, the endpoint is an email address.
For the email-json
protocol, the endpoint is an email address.
For the sms
protocol, the endpoint is a phone number of an SMS-enabled\n device.
For the sqs
protocol, the endpoint is the ARN of an Amazon SQS queue.
For the application
protocol, the endpoint is the EndpointArn of a mobile app and\n device.
For the lambda
protocol, the endpoint is the ARN of an AWS Lambda function.
For the firehose
protocol, the endpoint is the ARN of an Amazon Kinesis Data Firehose\n delivery stream.
A map of attributes with their corresponding values.
\nThe following lists the names, descriptions, and values of the special request parameters that the\n SetTopicAttributes
action uses:
\n DeliveryPolicy
– The policy that defines how Amazon SNS retries failed deliveries to HTTP/S\n endpoints.
\n FilterPolicy
– The simple JSON object that lets your subscriber receive only a subset\n of messages, rather than receiving every message published to the topic.
\n RawMessageDelivery
– When set to true
, enables raw message delivery to\n Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is\n otherwise created for Amazon SNS metadata.
\n RedrivePolicy
– When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. \n Messages that can't be delivered due to client errors (for example, when the subscribed endpoint is unreachable)\n or server errors (for example, when the service that powers the subscribed endpoint becomes unavailable) are held \n in the dead-letter queue for further analysis or reprocessing.
The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:
\n\n SubscriptionRoleArn
– The ARN of the IAM role that has the following:
Permission to write to the Kinesis Data Firehose delivery stream
\nAmazon SNS listed as a trusted entity
\nSpecifying a valid ARN for this attribute is required for Kinesis Data Firehose delivery stream subscriptions. \n For more information, see Fanout \n to Kinesis Data Firehose delivery streams in the Amazon SNS Developer Guide.
\nSets whether the response from the Subscribe
request includes the\n subscription ARN, even if the subscription is not yet confirmed.
If you set this parameter to true
, the response includes the ARN in all cases, even\n if the subscription is not yet confirmed. In addition to the ARN for confirmed subscriptions, the response\n also includes the pending subscription
ARN value for subscriptions that aren't yet confirmed. A\n subscription becomes confirmed when the subscriber calls the ConfirmSubscription
action with a\n confirmation token.
The default value is false
.
Input for Subscribe action.
" } }, "com.amazonaws.sns#SubscribeResponse": { "type": "structure", "members": { "SubscriptionArn": { "target": "com.amazonaws.sns#subscriptionARN", "traits": { "smithy.api#documentation": "The ARN of the subscription if it is confirmed, or the string \"pending confirmation\"\n if the subscription requires confirmation. However, if the API request parameter\n ReturnSubscriptionArn
is true, then the value is always the\n subscription ARN, even if the subscription requires confirmation.
Response for Subscribe action.
" } }, "com.amazonaws.sns#Subscription": { "type": "structure", "members": { "SubscriptionArn": { "target": "com.amazonaws.sns#subscriptionARN", "traits": { "smithy.api#documentation": "The subscription's ARN.
" } }, "Owner": { "target": "com.amazonaws.sns#account", "traits": { "smithy.api#documentation": "The subscription's owner.
" } }, "Protocol": { "target": "com.amazonaws.sns#protocol", "traits": { "smithy.api#documentation": "The subscription's protocol.
" } }, "Endpoint": { "target": "com.amazonaws.sns#Endpoint2", "traits": { "smithy.api#documentation": "The subscription's endpoint (format depends on the protocol).
" } }, "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The ARN of the subscription's topic.
" } } }, "traits": { "smithy.api#documentation": "A wrapper type for the attributes of an Amazon SNS subscription.
" } }, "com.amazonaws.sns#SubscriptionAttributesMap": { "type": "map", "key": { "target": "com.amazonaws.sns#attributeName" }, "value": { "target": "com.amazonaws.sns#attributeValue" } }, "com.amazonaws.sns#SubscriptionLimitExceededException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "Indicates that the customer already owns the maximum allowed number of\n subscriptions.
", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.sns#SubscriptionsList": { "type": "list", "member": { "target": "com.amazonaws.sns#Subscription" } }, "com.amazonaws.sns#Tag": { "type": "structure", "members": { "Key": { "target": "com.amazonaws.sns#TagKey", "traits": { "smithy.api#documentation": "The required key portion of the tag.
", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.sns#TagValue", "traits": { "smithy.api#documentation": "The optional value portion of the tag.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "The list of tags to be added to the specified topic.
" } }, "com.amazonaws.sns#TagKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.sns#TagKeyList": { "type": "list", "member": { "target": "com.amazonaws.sns#TagKey" } }, "com.amazonaws.sns#TagLimitExceededException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "Can't add more than 50 tags to a topic.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#TagList": { "type": "list", "member": { "target": "com.amazonaws.sns#Tag" } }, "com.amazonaws.sns#TagPolicyException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String" } }, "traits": { "smithy.api#documentation": "The request doesn't comply with the IAM tag policy. Correct your request and then\n retry it.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.sns#TagResource": { "type": "operation", "input": { "target": "com.amazonaws.sns#TagResourceRequest" }, "output": { "target": "com.amazonaws.sns#TagResourceResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#ConcurrentAccessException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#ResourceNotFoundException" }, { "target": "com.amazonaws.sns#StaleTagException" }, { "target": "com.amazonaws.sns#TagLimitExceededException" }, { "target": "com.amazonaws.sns#TagPolicyException" } ], "traits": { "smithy.api#documentation": "Add tags to the specified Amazon SNS topic. For an overview, see \n Amazon SNS Tags in the\n Amazon SNS Developer Guide.
\nWhen you use topic tags, keep the following guidelines in mind:
\nAdding more than 50 tags to a topic isn't recommended.
\nTags don't have any semantic meaning. Amazon SNS interprets tags as character\n strings.
\nTags are case-sensitive.
\nA new tag with a key identical to that of an existing tag overwrites the\n existing tag.
\nTagging actions are limited to 10 TPS per AWS account, per AWS region. If your application\n requires a higher throughput, file a technical support request.
\nThe ARN of the topic to which to add tags.
", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.sns#TagList", "traits": { "smithy.api#documentation": "The tags to be added to the specified topic. A tag consists of a required key\n and an optional value.
", "smithy.api#required": {} } } } }, "com.amazonaws.sns#TagResourceResponse": { "type": "structure", "members": {} }, "com.amazonaws.sns#TagValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 } } }, "com.amazonaws.sns#ThrottledException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.sns#String", "traits": { "smithy.api#documentation": "Throttled request.
" } } }, "traits": { "smithy.api#documentation": "Indicates that the rate at which requests have been submitted for this action exceeds\n the limit for your account.
", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.sns#Topic": { "type": "structure", "members": { "TopicArn": { "target": "com.amazonaws.sns#topicARN", "traits": { "smithy.api#documentation": "The topic's ARN.
" } } }, "traits": { "smithy.api#documentation": "A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a topic's\n attributes, use GetTopicAttributes
.
Indicates that the customer already owns the maximum allowed number of topics.
", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.sns#TopicsList": { "type": "list", "member": { "target": "com.amazonaws.sns#Topic" } }, "com.amazonaws.sns#Unsubscribe": { "type": "operation", "input": { "target": "com.amazonaws.sns#UnsubscribeInput" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#InternalErrorException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#InvalidSecurityException" }, { "target": "com.amazonaws.sns#NotFoundException" } ], "traits": { "smithy.api#documentation": "Deletes a subscription. If the subscription requires authentication for deletion, only\n the owner of the subscription or the topic's owner can unsubscribe, and an AWS signature\n is required. If the Unsubscribe
call does not require authentication and\n the requester is not the subscription owner, a final cancellation message is delivered\n to the endpoint, so that the endpoint owner can easily resubscribe to the topic if the\n Unsubscribe
request was unintended.
This action is throttled at 100 transactions per second (TPS).
" } }, "com.amazonaws.sns#UnsubscribeInput": { "type": "structure", "members": { "SubscriptionArn": { "target": "com.amazonaws.sns#subscriptionARN", "traits": { "smithy.api#documentation": "The ARN of the subscription to be deleted.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Input for Unsubscribe action.
" } }, "com.amazonaws.sns#UntagResource": { "type": "operation", "input": { "target": "com.amazonaws.sns#UntagResourceRequest" }, "output": { "target": "com.amazonaws.sns#UntagResourceResponse" }, "errors": [ { "target": "com.amazonaws.sns#AuthorizationErrorException" }, { "target": "com.amazonaws.sns#ConcurrentAccessException" }, { "target": "com.amazonaws.sns#InvalidParameterException" }, { "target": "com.amazonaws.sns#ResourceNotFoundException" }, { "target": "com.amazonaws.sns#StaleTagException" }, { "target": "com.amazonaws.sns#TagLimitExceededException" }, { "target": "com.amazonaws.sns#TagPolicyException" } ], "traits": { "smithy.api#documentation": "Remove tags from the specified Amazon SNS topic. For an overview, see\n Amazon SNS Tags in the\n Amazon SNS Developer Guide.
" } }, "com.amazonaws.sns#UntagResourceRequest": { "type": "structure", "members": { "ResourceArn": { "target": "com.amazonaws.sns#AmazonResourceName", "traits": { "smithy.api#documentation": "The ARN of the topic from which to remove tags.
", "smithy.api#required": {} } }, "TagKeys": { "target": "com.amazonaws.sns#TagKeyList", "traits": { "smithy.api#documentation": "The list of tag keys to remove from the specified topic.
", "smithy.api#required": {} } } } }, "com.amazonaws.sns#UntagResourceResponse": { "type": "structure", "members": {} }, "com.amazonaws.sns#account": { "type": "string" }, "com.amazonaws.sns#action": { "type": "string" }, "com.amazonaws.sns#attributeName": { "type": "string" }, "com.amazonaws.sns#attributeValue": { "type": "string" }, "com.amazonaws.sns#authenticateOnUnsubscribe": { "type": "string" }, "com.amazonaws.sns#boolean": { "type": "boolean" }, "com.amazonaws.sns#delegate": { "type": "string" }, "com.amazonaws.sns#label": { "type": "string" }, "com.amazonaws.sns#message": { "type": "string" }, "com.amazonaws.sns#messageId": { "type": "string" }, "com.amazonaws.sns#messageStructure": { "type": "string" }, "com.amazonaws.sns#nextToken": { "type": "string" }, "com.amazonaws.sns#protocol": { "type": "string" }, "com.amazonaws.sns#subject": { "type": "string" }, "com.amazonaws.sns#subscriptionARN": { "type": "string" }, "com.amazonaws.sns#token": { "type": "string" }, "com.amazonaws.sns#topicARN": { "type": "string" }, "com.amazonaws.sns#topicName": { "type": "string" } } }