| 1 | |||
| 2 | package Paws::IoT::CancelJobExecution; | ||
| 3 | use Moose; | ||
| 4 | has ExpectedVersion => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'expectedVersion'); | ||
| 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 StatusDetails => (is => 'ro', isa => 'Paws::IoT::DetailsMap', traits => ['NameInRequest'], request_name => 'statusDetails'); | ||
| 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 => 'CancelJobExecution'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/things/{thingName}/jobs/{jobId}/cancel'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 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::CancelJobExecution - Arguments for method CancelJobExecution on L<Paws::IoT> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method CancelJobExecution on the | ||
| 27 | L<AWS IoT|Paws::IoT> service. Use the attributes of this class | ||
| 28 | as arguments to method CancelJobExecution. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CancelJobExecution. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $iot = Paws->service('IoT'); | ||
| 35 | $iot->CancelJobExecution( | ||
| 36 | JobId => 'MyJobId', | ||
| 37 | ThingName => 'MyThingName', | ||
| 38 | ExpectedVersion => 1, # OPTIONAL | ||
| 39 | Force => 1, # OPTIONAL | ||
| 40 | StatusDetails => { | ||
| 41 | 'MyDetailsKey' => | ||
| 42 | 'MyDetailsValue', # key: min: 1, max: 128, value: min: 1 | ||
| 43 | }, # OPTIONAL | ||
| 44 | ); | ||
| 45 | |||
| 46 | 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. | ||
| 47 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/CancelJobExecution> | ||
| 48 | |||
| 49 | =head1 ATTRIBUTES | ||
| 50 | |||
| 51 | |||
| 52 | =head2 ExpectedVersion => Int | ||
| 53 | |||
| 54 | (Optional) The expected current version of the job execution. Each time | ||
| 55 | you update the job execution, its version is incremented. If the | ||
| 56 | version of the job execution stored in Jobs does not match, the update | ||
| 57 | is rejected with a VersionMismatch error, and an ErrorResponse that | ||
| 58 | contains the current job execution status data is returned. (This makes | ||
| 59 | it unnecessary to perform a separate DescribeJobExecution request in | ||
| 60 | order to obtain the job execution status data.) | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | =head2 Force => Bool | ||
| 65 | |||
| 66 | (Optional) If C<true> the job execution will be canceled if it has | ||
| 67 | status IN_PROGRESS or QUEUED, otherwise the job execution will be | ||
| 68 | canceled only if it has status QUEUED. If you attempt to cancel a job | ||
| 69 | execution that is IN_PROGRESS, and you do not set C<force> to C<true>, | ||
| 70 | then an C<InvalidStateTransitionException> will be thrown. The default | ||
| 71 | is C<false>. | ||
| 72 | |||
| 73 | Canceling a job execution which is "IN_PROGRESS", will cause the device | ||
| 74 | to be unable to update the job execution status. Use caution and ensure | ||
| 75 | that the device is able to recover to a valid state. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> JobId => Str | ||
| 80 | |||
| 81 | The ID of the job to be canceled. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head2 StatusDetails => L<Paws::IoT::DetailsMap> | ||
| 86 | |||
| 87 | A collection of name/value pairs that describe the status of the job | ||
| 88 | execution. If not specified, the statusDetails are unchanged. You can | ||
| 89 | specify at most 10 name/value pairs. | ||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head2 B<REQUIRED> ThingName => Str | ||
| 94 | |||
| 95 | The name of the thing whose execution of the job will be canceled. | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head1 SEE ALSO | ||
| 101 | |||
| 102 | This class forms part of L<Paws>, documenting arguments for method CancelJobExecution in L<Paws::IoT> | ||
| 103 | |||
| 104 | =head1 BUGS and CONTRIBUTIONS | ||
| 105 | |||
| 106 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 107 | |||
| 108 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 109 | |||
| 110 | =cut | ||
| 111 |