Subscribes an endpoint to a topic.
|
Parameters |
Description |
|
const ARequest: ISNSSubscribeRequest |
A Subscribe request object. |
|
const ATopicArn: TARN |
The endpoint to receive notifications. |
|
AProtocol: string |
The protocol to use. One of: http | https | email | email-json | sms | sqs | application | lambda | firehose. |
|
AEndpoint: string = '' |
The Amazon Resource Name (ARN) of the topic to subscribe to. |
Response containing Subscribe results.
|
Exceptions |
Description |
|
The user has been denied access to the requested resource. | |
|
Indicates the number of filter policies in your AWS account exceeds the limit. | |
|
One of the request parameters does not comply with the associated constraints. | |
|
One of the request parameters does not comply with the associated constraints. | |
|
Requests must use HTTPS and signed with valid credentials using Signature Version 4. | |
|
Indicated the specified phone number has opted out of receiving SMS messages from your AWS account. | |
|
Indicates the customer already owns the maximum allowed number of subscriptions. |
|
Copyright © 2019-2021 Appercept Ltd. All rights reserved.
|