blib/lib/Paws/DynamoDB/ExecuteStatement.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DynamoDB::ExecuteStatement;
3 use Moose;
4 has ConsistentRead => (is => 'ro', isa => 'Bool');
5 has NextToken => (is => 'ro', isa => 'Str');
6 has Parameters => (is => 'ro', isa => 'ArrayRef[Paws::DynamoDB::AttributeValue]');
7 has Statement => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ExecuteStatement');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DynamoDB::ExecuteStatementOutput');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::DynamoDB::ExecuteStatement - Arguments for method ExecuteStatement on L<Paws::DynamoDB>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method ExecuteStatement on the
25 L<Amazon DynamoDB|Paws::DynamoDB> service. Use the attributes of this class
26 as arguments to method ExecuteStatement.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ExecuteStatement.
29  
30 =head1 SYNOPSIS
31  
32 my $dynamodb = Paws->service('DynamoDB');
33 my $ExecuteStatementOutput = $dynamodb->ExecuteStatement(
34 Statement => 'MyPartiQLStatement',
35 ConsistentRead => 1, # OPTIONAL
36 NextToken => 'MyPartiQLNextToken', # OPTIONAL
37 Parameters => [
38 {
39 B => 'BlobBinaryAttributeValue', # OPTIONAL
40 BOOL => 1, # OPTIONAL
41 BS => [
42 'BlobBinaryAttributeValue', ... # OPTIONAL
43 ], # OPTIONAL
44 L => [ <AttributeValue>, ... ], # OPTIONAL
45 M => {
46 'MyAttributeName' => <AttributeValue>, # key: max: 65535
47 }, # OPTIONAL
48 N => 'MyNumberAttributeValue', # OPTIONAL
49 NS => [
50 'MyNumberAttributeValue', ... # OPTIONAL
51 ], # OPTIONAL
52 NULL => 1, # OPTIONAL
53 S => 'MyStringAttributeValue', # OPTIONAL
54 SS => [
55 'MyStringAttributeValue', ... # OPTIONAL
56 ], # OPTIONAL
57 },
58 ...
59 ], # OPTIONAL
60 );
61  
62 # Results:
63 my $Items = $ExecuteStatementOutput->Items;
64 my $NextToken = $ExecuteStatementOutput->NextToken;
65  
66 # Returns a L<Paws::DynamoDB::ExecuteStatementOutput> object.
67  
68 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.
69 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dynamodb/ExecuteStatement>
70  
71 =head1 ATTRIBUTES
72  
73  
74 =head2 ConsistentRead => Bool
75  
76 The consistency of a read operation. If set to C<true>, then a strongly
77 consistent read is used; otherwise, an eventually consistent read is
78 used.
79  
80  
81  
82 =head2 NextToken => Str
83  
84 Set this value to get remaining results, if C<NextToken> was returned
85 in the statement response.
86  
87  
88  
89 =head2 Parameters => ArrayRef[L<Paws::DynamoDB::AttributeValue>]
90  
91 The parameters for the PartiQL statement, if any.
92  
93  
94  
95 =head2 B<REQUIRED> Statement => Str
96  
97 The PartiQL statement representing the operation to run.
98  
99  
100  
101  
102 =head1 SEE ALSO
103  
104 This class forms part of L<Paws>, documenting arguments for method ExecuteStatement in L<Paws::DynamoDB>
105  
106 =head1 BUGS and CONTRIBUTIONS
107  
108 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
109  
110 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
111  
112 =cut
113