blib/lib/Paws/IoT/DynamoDBAction.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::IoT::DynamoDBAction;
3 use Moose;
4 has HashKeyField => (is => 'ro', isa => 'Str', request_name => 'hashKeyField', traits => ['NameInRequest'], required => 1);
5 has HashKeyType => (is => 'ro', isa => 'Str', request_name => 'hashKeyType', traits => ['NameInRequest']);
6 has HashKeyValue => (is => 'ro', isa => 'Str', request_name => 'hashKeyValue', traits => ['NameInRequest'], required => 1);
7 has Operation => (is => 'ro', isa => 'Str', request_name => 'operation', traits => ['NameInRequest']);
8 has PayloadField => (is => 'ro', isa => 'Str', request_name => 'payloadField', traits => ['NameInRequest']);
9 has RangeKeyField => (is => 'ro', isa => 'Str', request_name => 'rangeKeyField', traits => ['NameInRequest']);
10 has RangeKeyType => (is => 'ro', isa => 'Str', request_name => 'rangeKeyType', traits => ['NameInRequest']);
11 has RangeKeyValue => (is => 'ro', isa => 'Str', request_name => 'rangeKeyValue', traits => ['NameInRequest']);
12 has RoleArn => (is => 'ro', isa => 'Str', request_name => 'roleArn', traits => ['NameInRequest'], required => 1);
13 has TableName => (is => 'ro', isa => 'Str', request_name => 'tableName', traits => ['NameInRequest'], required => 1);
14  
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::IoT::DynamoDBAction
22  
23 =head1 USAGE
24  
25 This class represents one of two things:
26  
27 =head3 Arguments in a call to a service
28  
29 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
30 Each attribute should be used as a named argument in the calls that expect this type of object.
31  
32 As an example, if Att1 is expected to be a Paws::IoT::DynamoDBAction object:
33  
34 $service_obj->Method(Att1 => { HashKeyField => $value, ..., TableName => $value });
35  
36 =head3 Results returned from an API call
37  
38 Use accessors for each attribute. If Att1 is expected to be an Paws::IoT::DynamoDBAction object:
39  
40 $result = $service_obj->Method(...);
41 $result->Att1->HashKeyField
42  
43 =head1 DESCRIPTION
44  
45 Describes an action to write to a DynamoDB table.
46  
47 The C<tableName>, C<hashKeyField>, and C<rangeKeyField> values must
48 match the values used when you created the table.
49  
50 The C<hashKeyValue> and C<rangeKeyvalue> fields use a substitution
51 template syntax. These templates provide data at runtime. The syntax is
52 as follows: ${I<sql-expression>}.
53  
54 You can specify any valid expression in a WHERE or SELECT clause,
55 including JSON properties, comparisons, calculations, and functions.
56 For example, the following field uses the third level of the topic:
57  
58 C<"hashKeyValue": "${topic(3)}">
59  
60 The following field uses the timestamp:
61  
62 C<"rangeKeyValue": "${timestamp()}">
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 B<REQUIRED> HashKeyField => Str
68  
69 The hash key name.
70  
71  
72 =head2 HashKeyType => Str
73  
74 The hash key type. Valid values are "STRING" or "NUMBER"
75  
76  
77 =head2 B<REQUIRED> HashKeyValue => Str
78  
79 The hash key value.
80  
81  
82 =head2 Operation => Str
83  
84 The type of operation to be performed. This follows the substitution
85 template, so it can be C<${operation}>, but the substitution must
86 result in one of the following: C<INSERT>, C<UPDATE>, or C<DELETE>.
87  
88  
89 =head2 PayloadField => Str
90  
91 The action payload. This name can be customized.
92  
93  
94 =head2 RangeKeyField => Str
95  
96 The range key name.
97  
98  
99 =head2 RangeKeyType => Str
100  
101 The range key type. Valid values are "STRING" or "NUMBER"
102  
103  
104 =head2 RangeKeyValue => Str
105  
106 The range key value.
107  
108  
109 =head2 B<REQUIRED> RoleArn => Str
110  
111 The ARN of the IAM role that grants access to the DynamoDB table.
112  
113  
114 =head2 B<REQUIRED> TableName => Str
115  
116 The name of the DynamoDB table.
117  
118  
119  
120 =head1 SEE ALSO
121  
122 This class forms part of L<Paws>, describing an object used in L<Paws::IoT>
123  
124 =head1 BUGS and CONTRIBUTIONS
125  
126 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
127  
128 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
129  
130 =cut
131