PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` package Paws::IoT1ClickDevices; use Moose; sub service { 'devices.iot1click' } sub signing_name { 'iot1click' } sub version { '2018-05-14' } sub flattened_arrays { 0 } has max_attempts => (is => 'ro', isa => 'Int', default => 5); has retry => (is => 'ro', isa => 'HashRef', default => sub { { base => 'rand', type => 'exponential', growth_factor => 2 } }); has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ ] }); with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller'; sub ClaimDevicesByClaimCode { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::ClaimDevicesByClaimCode', @_); return $self->caller->do_call($self, $call_object); } sub DescribeDevice { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::DescribeDevice', @_); return $self->caller->do_call($self, $call_object); } sub FinalizeDeviceClaim { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::FinalizeDeviceClaim', @_); return $self->caller->do_call($self, $call_object); } sub GetDeviceMethods { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::GetDeviceMethods', @_); return $self->caller->do_call($self, $call_object); } sub InitiateDeviceClaim { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::InitiateDeviceClaim', @_); return $self->caller->do_call($self, $call_object); } sub InvokeDeviceMethod { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::InvokeDeviceMethod', @_); return $self->caller->do_call($self, $call_object); } sub ListDeviceEvents { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::ListDeviceEvents', @_); return $self->caller->do_call($self, $call_object); } sub ListDevices { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::ListDevices', @_); return $self->caller->do_call($self, $call_object); } sub ListTagsForResource { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::ListTagsForResource', @_); return $self->caller->do_call($self, $call_object); } sub TagResource { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::TagResource', @_); return $self->caller->do_call($self, $call_object); } sub UnclaimDevice { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::UnclaimDevice', @_); return $self->caller->do_call($self, $call_object); } sub UntagResource { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::UntagResource', @_); return $self->caller->do_call($self, $call_object); } sub UpdateDeviceState { my $self = shift; my $call_object = $self->new_with_coercions('Paws::IoT1ClickDevices::UpdateDeviceState', @_); return $self->caller->do_call($self, $call_object); } sub ListAllDeviceEvents { my $self = shift; my $callback = shift @_ if (ref($_[0]) eq 'CODE'); my $result = $self->ListDeviceEvents(@_); my $next_result = $result; if (not defined $callback) { while ($next_result->NextToken) { $next_result = $self->ListDeviceEvents(@_, NextToken => $next_result->NextToken); push @{ $result->Events }, @{ $next_result->Events }; } return $result; } else { while ($result->NextToken) { $callback->($_ => 'Events') foreach (@{ $result->Events }); $result = $self->ListDeviceEvents(@_, NextToken => $result->NextToken); } $callback->($_ => 'Events') foreach (@{ $result->Events }); } return undef } sub ListAllDevices { my $self = shift; my $callback = shift @_ if (ref($_[0]) eq 'CODE'); my $result = $self->ListDevices(@_); my $next_result = $result; if (not defined $callback) { while ($next_result->NextToken) { $next_result = $self->ListDevices(@_, NextToken => $next_result->NextToken); push @{ $result->Devices }, @{ $next_result->Devices }; } return $result; } else { while ($result->NextToken) { $callback->($_ => 'Devices') foreach (@{ $result->Devices }); $result = $self->ListDevices(@_, NextToken => $result->NextToken); } $callback->($_ => 'Devices') foreach (@{ $result->Devices }); } return undef } sub operations { qw/ClaimDevicesByClaimCode DescribeDevice FinalizeDeviceClaim GetDeviceMethods InitiateDeviceClaim InvokeDeviceMethod ListDeviceEvents ListDevices ListTagsForResource TagResource UnclaimDevice UntagResource UpdateDeviceState / } 1; ### main pod documentation begin ### =head1 NAME Paws::IoT1ClickDevices - Perl Interface to AWS AWS IoT 1-Click Devices Service =head1 SYNOPSIS use Paws; my $obj = Paws->service('IoT1ClickDevices'); my $res = $obj->Method( Arg1 => $val1, Arg2 => [ 'V1', 'V2' ], # if Arg3 is an object, the HashRef will be used as arguments to the constructor # of the arguments type Arg3 => { Att1 => 'Val1' }, # if Arg4 is an array of objects, the HashRefs will be passed as arguments to # the constructor of the arguments type Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], ); =head1 DESCRIPTION Describes all of the AWS IoT 1-Click device-related API operations for the service. Also provides sample requests, responses, and errors for the supported web services protocols. For the AWS API documentation, see L =head1 METHODS =head2 ClaimDevicesByClaimCode =over =item ClaimCode => Str =back Each argument is described in detail in: L Returns: a L instance Adds device(s) to your account (i.e., claim one or more devices) if and only if you received a claim code with the device(s). =head2 DescribeDevice =over =item DeviceId => Str =back Each argument is described in detail in: L Returns: a L instance Given a device ID, returns a DescribeDeviceResponse object describing the details of the device. =head2 FinalizeDeviceClaim =over =item DeviceId => Str =item [Tags => L] =back Each argument is described in detail in: L Returns: a L instance Given a device ID, finalizes the claim request for the associated device. Claiming a device consists of initiating a claim, then publishing a device event, and finalizing the claim. For a device of type button, a device event can be published by simply clicking the device. =head2 GetDeviceMethods =over =item DeviceId => Str =back Each argument is described in detail in: L Returns: a L instance Given a device ID, returns the invokable methods associated with the device. =head2 InitiateDeviceClaim =over =item DeviceId => Str =back Each argument is described in detail in: L Returns: a L instance Given a device ID, initiates a claim request for the associated device. Claiming a device consists of initiating a claim, then publishing a device event, and finalizing the claim. For a device of type button, a device event can be published by simply clicking the device. =head2 InvokeDeviceMethod =over =item DeviceId => Str =item [DeviceMethod => L] =item [DeviceMethodParameters => Str] =back Each argument is described in detail in: L Returns: a L instance Given a device ID, issues a request to invoke a named device method (with possible parameters). See the "Example POST" code snippet below. =head2 ListDeviceEvents =over =item DeviceId => Str =item FromTimeStamp => Str =item ToTimeStamp => Str =item [MaxResults => Int] =item [NextToken => Str] =back Each argument is described in detail in: L Returns: a L instance Using a device ID, returns a DeviceEventsResponse object containing an array of events for the device. =head2 ListDevices =over =item [DeviceType => Str] =item [MaxResults => Int] =item [NextToken => Str] =back Each argument is described in detail in: L Returns: a L instance Lists the 1-Click compatible devices associated with your AWS account. =head2 ListTagsForResource =over =item ResourceArn => Str =back Each argument is described in detail in: L Returns: a L instance Lists the tags associated with the specified resource ARN. =head2 TagResource =over =item ResourceArn => Str =item Tags => L =back Each argument is described in detail in: L Returns: nothing Adds or updates the tags associated with the resource ARN. See AWS IoT 1-Click Service Limits (https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits) for the maximum number of tags allowed per resource. =head2 UnclaimDevice =over =item DeviceId => Str =back Each argument is described in detail in: L Returns: a L instance Disassociates a device from your AWS account using its device ID. =head2 UntagResource =over =item ResourceArn => Str =item TagKeys => ArrayRef[Str|Undef] =back Each argument is described in detail in: L Returns: nothing Using tag keys, deletes the tags (key/value pairs) associated with the specified resource ARN. =head2 UpdateDeviceState =over =item DeviceId => Str =item [Enabled => Bool] =back Each argument is described in detail in: L Returns: a L instance Using a Boolean value (true or false), this operation enables or disables the device given a device ID. =head1 PAGINATORS Paginator methods are helpers that repetively call methods that return partial results =head2 ListAllDeviceEvents(sub { },DeviceId => Str, FromTimeStamp => Str, ToTimeStamp => Str, [MaxResults => Int, NextToken => Str]) =head2 ListAllDeviceEvents(DeviceId => Str, FromTimeStamp => Str, ToTimeStamp => Str, [MaxResults => Int, NextToken => Str]) If passed a sub as first parameter, it will call the sub for each element found in : - Events, passing the object as the first parameter, and the string 'Events' as the second parameter If not, it will return a a L instance with all the Cs; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. =head2 ListAllDevices(sub { },[DeviceType => Str, MaxResults => Int, NextToken => Str]) =head2 ListAllDevices([DeviceType => Str, MaxResults => Int, NextToken => Str]) If passed a sub as first parameter, it will call the sub for each element found in : - Devices, passing the object as the first parameter, and the string 'Devices' as the second parameter If not, it will return a a L instance with all the Cs; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. =head1 SEE ALSO This service class forms part of L =head1 BUGS and CONTRIBUTIONS The source code is located here: L Please report bugs to: L =cut