AWS.SNS.ISNSClient.Subscribe

Subscribes an endpoint to a topic.

function Subscribe(const ARequest: ISNSSubscribeRequest): ISNSSubscribeResponse; overload; function Subscribe(const ATopicArn: TARN; AProtocol: string; AEndpoint: string = ''): ISNSSubscribeResponse; overload;
__fastcall ISNSSubscribeResponse Subscribe(const ISNSSubscribeRequest ARequest); __fastcall ISNSSubscribeResponse Subscribe(const TARN ATopicArn, AnsiString AProtocol, AnsiString AEndpoint = '');

File: AWS.SNS.pas 

Namespace: AWS.SNS 

Module: Appercept AWS SDK for Delphi 

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.