line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Paws::IoTData; |
2
|
1
|
|
|
1
|
|
11541
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
3
|
|
|
|
|
|
|
sub service { 'data.iot' } |
4
|
|
|
|
|
|
|
sub version { '2015-05-28' } |
5
|
|
|
|
|
|
|
sub flattened_arrays { 0 } |
6
|
|
|
|
|
|
|
has max_attempts => (is => 'ro', isa => 'Int', default => 5); |
7
|
|
|
|
|
|
|
has retry => (is => 'ro', isa => 'HashRef', default => sub { |
8
|
|
|
|
|
|
|
{ base => 'rand', type => 'exponential', growth_factor => 2 } |
9
|
|
|
|
|
|
|
}); |
10
|
|
|
|
|
|
|
has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ |
11
|
|
|
|
|
|
|
] }); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller', 'Paws::Net::RestJsonResponse'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub DeleteThingShadow { |
17
|
|
|
|
|
|
|
my $self = shift; |
18
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::IoTData::DeleteThingShadow', @_); |
19
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
sub GetThingShadow { |
22
|
|
|
|
|
|
|
my $self = shift; |
23
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::IoTData::GetThingShadow', @_); |
24
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
sub Publish { |
27
|
|
|
|
|
|
|
my $self = shift; |
28
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::IoTData::Publish', @_); |
29
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
sub UpdateThingShadow { |
32
|
|
|
|
|
|
|
my $self = shift; |
33
|
|
|
|
|
|
|
my $call_object = $self->new_with_coercions('Paws::IoTData::UpdateThingShadow', @_); |
34
|
|
|
|
|
|
|
return $self->caller->do_call($self, $call_object); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub operations { qw/DeleteThingShadow GetThingShadow Publish UpdateThingShadow / } |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
### main pod documentation begin ### |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 NAME |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Paws::IoTData - Perl Interface to AWS AWS IoT Data Plane |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 SYNOPSIS |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
use Paws; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
my $obj = Paws->service('IoTData'); |
54
|
|
|
|
|
|
|
my $res = $obj->Method( |
55
|
|
|
|
|
|
|
Arg1 => $val1, |
56
|
|
|
|
|
|
|
Arg2 => [ 'V1', 'V2' ], |
57
|
|
|
|
|
|
|
# if Arg3 is an object, the HashRef will be used as arguments to the constructor |
58
|
|
|
|
|
|
|
# of the arguments type |
59
|
|
|
|
|
|
|
Arg3 => { Att1 => 'Val1' }, |
60
|
|
|
|
|
|
|
# if Arg4 is an array of objects, the HashRefs will be passed as arguments to |
61
|
|
|
|
|
|
|
# the constructor of the arguments type |
62
|
|
|
|
|
|
|
Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], |
63
|
|
|
|
|
|
|
); |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 DESCRIPTION |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
AWS IoT |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
AWS IoT-Data enables secure, bi-directional communication between |
70
|
|
|
|
|
|
|
Internet-connected things (such as sensors, actuators, embedded |
71
|
|
|
|
|
|
|
devices, or smart appliances) and the AWS cloud. It implements a broker |
72
|
|
|
|
|
|
|
for applications and things to publish messages over HTTP (Publish) and |
73
|
|
|
|
|
|
|
retrieve, update, and delete thing shadows. A thing shadow is a |
74
|
|
|
|
|
|
|
persistent representation of your things and their state in the AWS |
75
|
|
|
|
|
|
|
cloud. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 METHODS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 DeleteThingShadow(ThingName => Str) |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::IoTData::DeleteThingShadow> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Returns: a L<Paws::IoTData::DeleteThingShadowResponse> instance |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Deletes the thing shadow for the specified thing. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
For more information, see DeleteThingShadow in the I<AWS IoT Developer |
88
|
|
|
|
|
|
|
Guide>. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head2 GetThingShadow(ThingName => Str) |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::IoTData::GetThingShadow> |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Returns: a L<Paws::IoTData::GetThingShadowResponse> instance |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Gets the thing shadow for the specified thing. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
For more information, see GetThingShadow in the I<AWS IoT Developer |
100
|
|
|
|
|
|
|
Guide>. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 Publish(Topic => Str, [Payload => Str, Qos => Int]) |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::IoTData::Publish> |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Returns: nothing |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Publishes state information. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
For more information, see HTTP Protocol in the I<AWS IoT Developer |
112
|
|
|
|
|
|
|
Guide>. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head2 UpdateThingShadow(Payload => Str, ThingName => Str) |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
Each argument is described in detail in: L<Paws::IoTData::UpdateThingShadow> |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
Returns: a L<Paws::IoTData::UpdateThingShadowResponse> instance |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Updates the thing shadow for the specified thing. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
For more information, see UpdateThingShadow in the I<AWS IoT Developer |
124
|
|
|
|
|
|
|
Guide>. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head1 PAGINATORS |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
Paginator methods are helpers that repetively call methods that return partial results |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head1 SEE ALSO |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
This service class forms part of L<Paws> |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=cut |
147
|
|
|
|
|
|
|
|