blib/lib/Paws/SNS/AddPermission.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/SES/VerifyDomainIdentityResponse.pm ↑ Summary blib/lib/Paws/SNS/ConfirmSubscription.pm »
1  
2 package Paws::SNS::AddPermission;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has ActionName => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
5 1 has AWSAccountId => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
6 1 has Label => (is => 'ro', isa => 'Str', required => 1);
7 1 has TopicArn => (is => 'ro', isa => 'Str', required => 1);
8  
9 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddPermission');
12 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
13 1 class_has _result_key => (isa => 'Str', is => 'ro');
14 1 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::SNS::AddPermission - Arguments for method AddPermission on L<Paws::SNS>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method AddPermission on the
25 L<Amazon Simple Notification Service|Paws::SNS> service. Use the attributes of this class
26 as arguments to method AddPermission.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddPermission.
29  
30 =head1 SYNOPSIS
31  
32 my $sns = Paws->service('SNS');
33 $sns->AddPermission(
34 AWSAccountId => [ 'Mydelegate', ... ],
35 ActionName => [ 'Myaction', ... ],
36 Label => 'Mylabel',
37 TopicArn => 'MytopicARN',
38  
39 );
40  
41 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.
42 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sns/AddPermission>
43  
44 =head1 ATTRIBUTES
45  
46  
47 =head2 B<REQUIRED> ActionName => ArrayRef[Str|Undef]
48  
49 The action you want to allow for the specified principal(s).
50  
51 Valid values: Any Amazon SNS action name, for example C<Publish>.
52  
53  
54  
55 =head2 B<REQUIRED> AWSAccountId => ArrayRef[Str|Undef]
56  
57 The account IDs of the users (principals) who will be given access to
58 the specified actions. The users must have account, but do not need to
59 be signed up for this service.
60  
61  
62  
63 =head2 B<REQUIRED> Label => Str
64  
65 A unique identifier for the new policy statement.
66  
67  
68  
69 =head2 B<REQUIRED> TopicArn => Str
70  
71 The ARN of the topic whose access control policy you wish to modify.
72  
73  
74  
75  
76 =head1 SEE ALSO
77  
78 This class forms part of L<Paws>, documenting arguments for method AddPermission in L<Paws::SNS>
79  
80 =head1 BUGS and CONTRIBUTIONS
81  
82 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
83  
84 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
85  
86 =cut
87  
« blib/lib/Paws/SES/VerifyDomainIdentityResponse.pm ↑ Summary blib/lib/Paws/SNS/ConfirmSubscription.pm »