blib/lib/Paws/IoTEvents/DynamoDBv2Action.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::IoTEvents::DynamoDBv2Action;
3 use Moose;
4 has Payload => (is => 'ro', isa => 'Paws::IoTEvents::Payload', request_name => 'payload', traits => ['NameInRequest']);
5 has TableName => (is => 'ro', isa => 'Str', request_name => 'tableName', traits => ['NameInRequest'], required => 1);
6  
7 1;
8  
9 ### main pod documentation begin ###
10  
11 =head1 NAME
12  
13 Paws::IoTEvents::DynamoDBv2Action
14  
15 =head1 USAGE
16  
17 This class represents one of two things:
18  
19 =head3 Arguments in a call to a service
20  
21 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22 Each attribute should be used as a named argument in the calls that expect this type of object.
23  
24 As an example, if Att1 is expected to be a Paws::IoTEvents::DynamoDBv2Action object:
25  
26 $service_obj->Method(Att1 => { Payload => $value, ..., TableName => $value });
27  
28 =head3 Results returned from an API call
29  
30 Use accessors for each attribute. If Att1 is expected to be an Paws::IoTEvents::DynamoDBv2Action object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->Payload
34  
35 =head1 DESCRIPTION
36  
37 Defines an action to write to the Amazon DynamoDB table that you
38 created. The default action payload contains all the information about
39 the detector model instance and the event that triggered the action.
40 You can customize the payload
41 (https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html).
42 A separate column of the DynamoDB table receives one attribute-value
43 pair in the payload that you specify.
44  
45 You must use expressions for all parameters in C<DynamoDBv2Action>. The
46 expressions accept literals, operators, functions, references, and
47 substitution templates.
48  
49 B<Examples>
50  
51 =over
52  
53 =item *
54  
55 For literal values, the expressions must contain single quotes. For
56 example, the value for the C<tableName> parameter can be
57 C<'GreenhouseTemperatureTable'>.
58  
59 =item *
60  
61 For references, you must specify either variables or input values. For
62 example, the value for the C<tableName> parameter can be
63 C<$variable.ddbtableName>.
64  
65 =item *
66  
67 For a substitution template, you must use C<${}>, and the template must
68 be in single quotes. A substitution template can also contain a
69 combination of literals, operators, functions, references, and
70 substitution templates.
71  
72 In the following example, the value for the C<contentExpression>
73 parameter in C<Payload> uses a substitution template.
74  
75 C<'{\"sensorID\": \"${$input.GreenhouseInput.sensor_id}\",
76 \"temperature\": \"${$input.GreenhouseInput.temperature * 9 / 5 +
77 32}\"}'>
78  
79 =item *
80  
81 For a string concatenation, you must use C<+>. A string concatenation
82 can also contain a combination of literals, operators, functions,
83 references, and substitution templates.
84  
85 In the following example, the value for the C<tableName> parameter uses
86 a string concatenation.
87  
88 C<'GreenhouseTemperatureTable ' + $input.GreenhouseInput.date>
89  
90 =back
91  
92 For more information, see Expressions
93 (https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html)
94 in the I<AWS IoT Events Developer Guide>.
95  
96 The value for the C<type> parameter in C<Payload> must be C<JSON>.
97  
98 =head1 ATTRIBUTES
99  
100  
101 =head2 Payload => L<Paws::IoTEvents::Payload>
102  
103  
104  
105  
106 =head2 B<REQUIRED> TableName => Str
107  
108 The name of the DynamoDB table.
109  
110  
111  
112 =head1 SEE ALSO
113  
114 This class forms part of L<Paws>, describing an object used in L<Paws::IoTEvents>
115  
116 =head1 BUGS and CONTRIBUTIONS
117  
118 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
119  
120 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
121  
122 =cut
123