blib/lib/Paws/SNS/ConfirmSubscription.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/SNS/AddPermission.pm ↑ Summary blib/lib/Paws/SNS/ConfirmSubscriptionResponse.pm »
1  
2 package Paws::SNS::ConfirmSubscription;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has AuthenticateOnUnsubscribe => (is => 'ro', isa => 'Str');
5 1 has Token => (is => 'ro', isa => 'Str', required => 1);
6 1 has TopicArn => (is => 'ro', isa => 'Str', required => 1);
7  
8 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ConfirmSubscription');
11 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SNS::ConfirmSubscriptionResponse');
12 1 class_has _result_key => (isa => 'Str', is => 'ro', default => 'ConfirmSubscriptionResult');
13 1 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::SNS::ConfirmSubscription - Arguments for method ConfirmSubscription on L<Paws::SNS>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method ConfirmSubscription on the
24 L<Amazon Simple Notification Service|Paws::SNS> service. Use the attributes of this class
25 as arguments to method ConfirmSubscription.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ConfirmSubscription.
28  
29 =head1 SYNOPSIS
30  
31 my $sns = Paws->service('SNS');
32 my $ConfirmSubscriptionResponse = $sns->ConfirmSubscription(
33 Token => 'Mytoken',
34 TopicArn => 'MytopicARN',
35 AuthenticateOnUnsubscribe => 'MyauthenticateOnUnsubscribe', # OPTIONAL
36 );
37  
38 # Results:
39 my $SubscriptionArn = $ConfirmSubscriptionResponse->SubscriptionArn;
40  
41 # Returns a L<Paws::SNS::ConfirmSubscriptionResponse> object.
42  
43 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.
44 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sns/ConfirmSubscription>
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 AuthenticateOnUnsubscribe => Str
50  
51 Disallows unauthenticated unsubscribes of the subscription. If the
52 value of this parameter is C<true> and the request has an Amazon Web
53 Services signature, then only the topic owner and the subscription
54 owner can unsubscribe the endpoint. The unsubscribe action requires
55 Amazon Web Services authentication.
56  
57  
58  
59 =head2 B<REQUIRED> Token => Str
60  
61 Short-lived token sent to an endpoint during the C<Subscribe> action.
62  
63  
64  
65 =head2 B<REQUIRED> TopicArn => Str
66  
67 The ARN of the topic for which you wish to confirm a subscription.
68  
69  
70  
71  
72 =head1 SEE ALSO
73  
74 This class forms part of L<Paws>, documenting arguments for method ConfirmSubscription in L<Paws::SNS>
75  
76 =head1 BUGS and CONTRIBUTIONS
77  
78 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
79  
80 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
81  
82 =cut
83  
« blib/lib/Paws/SNS/AddPermission.pm ↑ Summary blib/lib/Paws/SNS/ConfirmSubscriptionResponse.pm »