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

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IoT::DeleteJobExecution;
3 use Moose;
4 has ExecutionNumber => (is => 'ro', isa => 'Int', traits => ['ParamInURI'], uri_name => 'executionNumber', required => 1);
5 has Force => (is => 'ro', isa => 'Bool', traits => ['ParamInQuery'], query_name => 'force');
6 has JobId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'jobId', required => 1);
7 has NamespaceId => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'namespaceId');
8 has ThingName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'thingName', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteJobExecution');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/things/{thingName}/jobs/{jobId}/executionNumber/{executionNumber}');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'DELETE');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::IoT::DeleteJobExecution - Arguments for method DeleteJobExecution on L<Paws::IoT>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method DeleteJobExecution on the
27 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
28 as arguments to method DeleteJobExecution.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteJobExecution.
31  
32 =head1 SYNOPSIS
33  
34 my $iot = Paws->service('IoT');
35 $iot->DeleteJobExecution(
36 ExecutionNumber => 1,
37 JobId => 'MyJobId',
38 ThingName => 'MyThingName',
39 Force => 1, # OPTIONAL
40 NamespaceId => 'MyNamespaceId', # OPTIONAL
41 );
42  
43 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.
44 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/DeleteJobExecution>
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 B<REQUIRED> ExecutionNumber => Int
50  
51 The ID of the job execution to be deleted. The C<executionNumber>
52 refers to the execution of a particular job on a particular device.
53  
54 Note that once a job execution is deleted, the C<executionNumber> may
55 be reused by IoT, so be sure you get and use the correct value here.
56  
57  
58  
59 =head2 Force => Bool
60  
61 (Optional) When true, you can delete a job execution which is
62 "IN_PROGRESS". Otherwise, you can only delete a job execution which is
63 in a terminal state ("SUCCEEDED", "FAILED", "REJECTED", "REMOVED" or
64 "CANCELED") or an exception will occur. The default is false.
65  
66 Deleting a job execution which is "IN_PROGRESS", will cause the device
67 to be unable to access job information or update the job execution
68 status. Use caution and ensure that the device is able to recover to a
69 valid state.
70  
71  
72  
73 =head2 B<REQUIRED> JobId => Str
74  
75 The ID of the job whose execution on a particular device will be
76 deleted.
77  
78  
79  
80 =head2 NamespaceId => Str
81  
82 The namespace used to indicate that a job is a customer-managed job.
83  
84 When you specify a value for this parameter, AWS IoT Core sends jobs
85 notifications to MQTT topics that contain the value in the following
86 format.
87  
88 C<$aws/things/I<THING_NAME>/jobs/I<JOB_ID>/notify-namespace-I<NAMESPACE_ID>/>
89  
90 The C<namespaceId> feature is in public preview.
91  
92  
93  
94 =head2 B<REQUIRED> ThingName => Str
95  
96 The name of the thing whose job execution will be deleted.
97  
98  
99  
100  
101 =head1 SEE ALSO
102  
103 This class forms part of L<Paws>, documenting arguments for method DeleteJobExecution in L<Paws::IoT>
104  
105 =head1 BUGS and CONTRIBUTIONS
106  
107 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
108  
109 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
110  
111 =cut
112