blib/lib/Paws/SQS/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/SNS/TopicAttributesMap.pm ↑ Summary blib/lib/Paws/SQS/BatchResultErrorEntry.pm »
1  
2 package Paws::SQS::AddPermission;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has Actions => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
5 1 has AWSAccountIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
6 1 has Label => (is => 'ro', isa => 'Str', required => 1);
7 1 has QueueUrl => (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::SQS::AddPermission - Arguments for method AddPermission on L<Paws::SQS>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method AddPermission on the
25 L<Amazon Simple Queue Service|Paws::SQS> 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 $sqs = Paws->service('SQS');
33 $sqs->AddPermission(
34 AWSAccountIds => [ 'MyString', ... ],
35 Actions => [ 'MyString', ... ],
36 Label => 'MyString',
37 QueueUrl => 'MyString',
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/sqs/AddPermission>
43  
44 =head1 ATTRIBUTES
45  
46  
47 =head2 B<REQUIRED> Actions => ArrayRef[Str|Undef]
48  
49 The action the client wants to allow for the specified principal. Valid
50 values: the name of any action or C<*>.
51  
52 For more information about these actions, see Overview of Managing
53 Access Permissions to Your Amazon Simple Queue Service Resource
54 (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html)
55 in the I<Amazon SQS Developer Guide>.
56  
57 Specifying C<SendMessage>, C<DeleteMessage>, or
58 C<ChangeMessageVisibility> for C<ActionName.n> also grants permissions
59 for the corresponding batch versions of those actions:
60 C<SendMessageBatch>, C<DeleteMessageBatch>, and
61 C<ChangeMessageVisibilityBatch>.
62  
63  
64  
65 =head2 B<REQUIRED> AWSAccountIds => ArrayRef[Str|Undef]
66  
67 The account numbers of the principals
68 (https://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P) who
69 are to receive permission. For information about locating the account
70 identification, see Your Amazon Web Services Identifiers
71 (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html#sqs-api-request-authentication)
72 in the I<Amazon SQS Developer Guide>.
73  
74  
75  
76 =head2 B<REQUIRED> Label => Str
77  
78 The unique identification of the permission you're setting (for
79 example, C<AliceSendMessage>). Maximum 80 characters. Allowed
80 characters include alphanumeric characters, hyphens (C<->), and
81 underscores (C<_>).
82  
83  
84  
85 =head2 B<REQUIRED> QueueUrl => Str
86  
87 The URL of the Amazon SQS queue to which permissions are added.
88  
89 Queue URLs and names are case-sensitive.
90  
91  
92  
93  
94 =head1 SEE ALSO
95  
96 This class forms part of L<Paws>, documenting arguments for method AddPermission in L<Paws::SQS>
97  
98 =head1 BUGS and CONTRIBUTIONS
99  
100 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
101  
102 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
103  
104 =cut
105  
« blib/lib/Paws/SNS/TopicAttributesMap.pm ↑ Summary blib/lib/Paws/SQS/BatchResultErrorEntry.pm »