blib/lib/Paws/SQS/SendMessageBatch.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/SQS/SendMessage.pm ↑ Summary blib/lib/Paws/SQS/SendMessageBatchRequestEntry.pm »
1  
2 package Paws::SQS::SendMessageBatch;
3 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 has Entries => (is => 'ro', isa => 'ArrayRef[Paws::SQS::SendMessageBatchRequestEntry]', traits => ['NameInRequest'], request_name => 'SendMessageBatchRequestEntry' , required => 1);
5 2 has QueueUrl => (is => 'ro', isa => 'Str', required => 1);
6  
7 2 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 class_has _api_call => (isa => 'Str', is => 'ro', default => 'SendMessageBatch');
10 2 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SQS::SendMessageBatchResult');
11 2 class_has _result_key => (isa => 'Str', is => 'ro', default => 'SendMessageBatchResult');
12 2 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::SQS::SendMessageBatch - Arguments for method SendMessageBatch on L<Paws::SQS>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method SendMessageBatch on the
23 L<Amazon Simple Queue Service|Paws::SQS> service. Use the attributes of this class
24 as arguments to method SendMessageBatch.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendMessageBatch.
27  
28 =head1 SYNOPSIS
29  
30 my $sqs = Paws->service('SQS');
31 my $SendMessageBatchResult = $sqs->SendMessageBatch(
32 Entries => [
33 {
34 Id => 'MyString',
35 MessageBody => 'MyString',
36 DelaySeconds => 1, # OPTIONAL
37 MessageAttributes => {
38 'MyString' => {
39 DataType => 'MyString',
40 BinaryListValues => [ 'BlobBinary', ... ], # OPTIONAL
41 BinaryValue => 'BlobBinary',
42 StringListValues => [ 'MyString', ... ], # OPTIONAL
43 StringValue => 'MyString',
44 },
45 }, # OPTIONAL
46 MessageDeduplicationId => 'MyString',
47 MessageGroupId => 'MyString',
48 MessageSystemAttributes => {
49 'AWSTraceHeader' => {
50 DataType => 'MyString',
51 BinaryListValues => [ 'BlobBinary', ... ], # OPTIONAL
52 BinaryValue => 'BlobBinary',
53 StringListValues => [ 'MyString', ... ], # OPTIONAL
54 StringValue => 'MyString',
55 }, # key: values: AWSTraceHeader
56 }, # OPTIONAL
57 },
58 ...
59 ],
60 QueueUrl => 'MyString',
61  
62 );
63  
64 # Results:
65 my $Failed = $SendMessageBatchResult->Failed;
66 my $Successful = $SendMessageBatchResult->Successful;
67  
68 # Returns a L<Paws::SQS::SendMessageBatchResult> object.
69  
70 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.
71 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sqs/SendMessageBatch>
72  
73 =head1 ATTRIBUTES
74  
75  
76 =head2 B<REQUIRED> Entries => ArrayRef[L<Paws::SQS::SendMessageBatchRequestEntry>]
77  
78 A list of SendMessageBatchRequestEntry items.
79  
80  
81  
82 =head2 B<REQUIRED> QueueUrl => Str
83  
84 The URL of the Amazon SQS queue to which batched messages are sent.
85  
86 Queue URLs and names are case-sensitive.
87  
88  
89  
90  
91 =head1 SEE ALSO
92  
93 This class forms part of L<Paws>, documenting arguments for method SendMessageBatch in L<Paws::SQS>
94  
95 =head1 BUGS and CONTRIBUTIONS
96  
97 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
98  
99 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
100  
101 =cut
102  
« blib/lib/Paws/SQS/SendMessage.pm ↑ Summary blib/lib/Paws/SQS/SendMessageBatchRequestEntry.pm »