![]() |
![]()
| ![]() |
![]()
NAMEPaws::SNS::Subscribe - Arguments for method Subscribe on Paws::SNS DESCRIPTIONThis class represents the parameters used for calling the method Subscribe on the Amazon Simple Notification Service service. Use the attributes of this class as arguments to method Subscribe. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to Subscribe. SYNOPSISmy $sns = Paws->service('SNS'); my $SubscribeResponse = $sns->Subscribe( Protocol => 'Myprotocol', TopicArn => 'MytopicARN', Attributes => { 'MyattributeName' => 'MyattributeValue', }, # OPTIONAL Endpoint => 'Myendpoint', # OPTIONAL ReturnSubscriptionArn => 1, # OPTIONAL ); # Results: my $SubscriptionArn = $SubscribeResponse->SubscriptionArn; # Returns a L<Paws::SNS::SubscribeResponse> object. Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see <https://docs.aws.amazon.com/goto/WebAPI/sns/Subscribe> ATTRIBUTESAttributes => Paws::SNS::SubscriptionAttributesMapA map of attributes with their corresponding values. The following lists the names, descriptions, and values of the special request parameters that the "Subscribe" action uses:
The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions:
Specifying a valid ARN for this attribute is required for Kinesis Data Firehose delivery stream subscriptions. For more information, see Fanout to Kinesis Data Firehose delivery streams (https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html) in the Amazon SNS Developer Guide. Endpoint => StrThe endpoint that you want to receive notifications. Endpoints vary by protocol:
REQUIRED Protocol => StrThe protocol that you want to use. Supported protocols include:
ReturnSubscriptionArn => BoolSets whether the response from the "Subscribe" request includes the 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 if the subscription is not yet confirmed. In addition to the ARN for confirmed subscriptions, the response also includes the "pending subscription" ARN value for subscriptions that aren't yet confirmed. A subscription becomes confirmed when the subscriber calls the "ConfirmSubscription" action with a confirmation token. The default value is "false". REQUIRED TopicArn => StrThe ARN of the topic you want to subscribe to. SEE ALSOThis class forms part of Paws, documenting arguments for method Subscribe in Paws::SNS BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|