@aws-sdk/client-iot-jobs-data-plane 3.696.0 → 3.699.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -11
- package/dist-cjs/index.js +214 -1
- package/dist-es/IoTJobsDataPlane.js +2 -0
- package/dist-es/commands/StartCommandExecutionCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +49 -0
- package/dist-es/protocols/Aws_restJson1.js +119 -2
- package/dist-types/IoTJobsDataPlane.d.ts +28 -11
- package/dist-types/IoTJobsDataPlaneClient.d.ts +24 -13
- package/dist-types/commands/DescribeJobExecutionCommand.d.ts +2 -1
- package/dist-types/commands/GetPendingJobExecutionsCommand.d.ts +2 -1
- package/dist-types/commands/StartCommandExecutionCommand.d.ts +104 -0
- package/dist-types/commands/StartNextPendingJobExecutionCommand.d.ts +4 -2
- package/dist-types/commands/UpdateJobExecutionCommand.d.ts +6 -4
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +21 -11
- package/dist-types/models/models_0.d.ts +226 -55
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/IoTJobsDataPlane.d.ts +17 -0
- package/dist-types/ts3.4/IoTJobsDataPlaneClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/StartCommandExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +7 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { DescribeJobExecutionCommandInput, DescribeJobExecutionCommandOutput } from "./commands/DescribeJobExecutionCommand";
|
|
3
3
|
import { GetPendingJobExecutionsCommandInput, GetPendingJobExecutionsCommandOutput } from "./commands/GetPendingJobExecutionsCommand";
|
|
4
|
+
import { StartCommandExecutionCommandInput, StartCommandExecutionCommandOutput } from "./commands/StartCommandExecutionCommand";
|
|
4
5
|
import { StartNextPendingJobExecutionCommandInput, StartNextPendingJobExecutionCommandOutput } from "./commands/StartNextPendingJobExecutionCommand";
|
|
5
6
|
import { UpdateJobExecutionCommandInput, UpdateJobExecutionCommandOutput } from "./commands/UpdateJobExecutionCommand";
|
|
6
7
|
import { IoTJobsDataPlaneClient } from "./IoTJobsDataPlaneClient";
|
|
@@ -17,6 +18,12 @@ export interface IoTJobsDataPlane {
|
|
|
17
18
|
getPendingJobExecutions(args: GetPendingJobExecutionsCommandInput, options?: __HttpHandlerOptions): Promise<GetPendingJobExecutionsCommandOutput>;
|
|
18
19
|
getPendingJobExecutions(args: GetPendingJobExecutionsCommandInput, cb: (err: any, data?: GetPendingJobExecutionsCommandOutput) => void): void;
|
|
19
20
|
getPendingJobExecutions(args: GetPendingJobExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPendingJobExecutionsCommandOutput) => void): void;
|
|
21
|
+
/**
|
|
22
|
+
* @see {@link StartCommandExecutionCommand}
|
|
23
|
+
*/
|
|
24
|
+
startCommandExecution(args: StartCommandExecutionCommandInput, options?: __HttpHandlerOptions): Promise<StartCommandExecutionCommandOutput>;
|
|
25
|
+
startCommandExecution(args: StartCommandExecutionCommandInput, cb: (err: any, data?: StartCommandExecutionCommandOutput) => void): void;
|
|
26
|
+
startCommandExecution(args: StartCommandExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCommandExecutionCommandOutput) => void): void;
|
|
20
27
|
/**
|
|
21
28
|
* @see {@link StartNextPendingJobExecutionCommand}
|
|
22
29
|
*/
|
|
@@ -31,17 +38,27 @@ export interface IoTJobsDataPlane {
|
|
|
31
38
|
updateJobExecution(args: UpdateJobExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateJobExecutionCommandOutput) => void): void;
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
34
|
-
* <p>
|
|
35
|
-
* and executed on one or more devices connected to
|
|
36
|
-
* set of devices to download and install application or
|
|
37
|
-
* remote troubleshooting
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* <p>
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
41
|
+
* <p>IoT Jobs is a service that allows you to define a set of jobs — remote operations
|
|
42
|
+
* that are sent to and executed on one or more devices connected to Amazon Web Services IoT Core. For example,
|
|
43
|
+
* you can define a job that instructs a set of devices to download and install application or
|
|
44
|
+
* firmware updates, reboot, rotate certificates, or perform remote troubleshooting
|
|
45
|
+
* operations.</p>
|
|
46
|
+
* <p>Find the endpoint address for actions in the IoT jobs data plane by running this
|
|
47
|
+
* CLI command:</p>
|
|
48
|
+
* <p>
|
|
49
|
+
* <code>aws iot describe-endpoint --endpoint-type iot:Jobs</code>
|
|
50
|
+
* </p>
|
|
51
|
+
* <p>The service name used by <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Amazon Web Services
|
|
52
|
+
* Signature Version 4</a> to sign requests is:
|
|
53
|
+
* <i>iot-jobs-data</i>.</p>
|
|
54
|
+
* <p> To create a job, you make a job document which is a description of the remote
|
|
55
|
+
* operations to be performed, and you specify a list of targets that should perform the
|
|
56
|
+
* operations. The targets can be individual things, thing groups or both.</p>
|
|
57
|
+
* <p> IoT Jobs sends a message to inform the targets that a job is available. The target
|
|
58
|
+
* starts the execution of the job by downloading the job document, performing the operations
|
|
59
|
+
* it specifies, and reporting its progress to Amazon Web Services IoT Core. The Jobs service provides commands
|
|
60
|
+
* to track the progress of a job on a specific target and for all the targets of the
|
|
61
|
+
* job</p>
|
|
45
62
|
* @public
|
|
46
63
|
*/
|
|
47
64
|
export declare class IoTJobsDataPlane extends IoTJobsDataPlaneClient implements IoTJobsDataPlane {
|
|
@@ -9,6 +9,7 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
|
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { DescribeJobExecutionCommandInput, DescribeJobExecutionCommandOutput } from "./commands/DescribeJobExecutionCommand";
|
|
11
11
|
import { GetPendingJobExecutionsCommandInput, GetPendingJobExecutionsCommandOutput } from "./commands/GetPendingJobExecutionsCommand";
|
|
12
|
+
import { StartCommandExecutionCommandInput, StartCommandExecutionCommandOutput } from "./commands/StartCommandExecutionCommand";
|
|
12
13
|
import { StartNextPendingJobExecutionCommandInput, StartNextPendingJobExecutionCommandOutput } from "./commands/StartNextPendingJobExecutionCommand";
|
|
13
14
|
import { UpdateJobExecutionCommandInput, UpdateJobExecutionCommandOutput } from "./commands/UpdateJobExecutionCommand";
|
|
14
15
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -17,11 +18,11 @@ export { __Client };
|
|
|
17
18
|
/**
|
|
18
19
|
* @public
|
|
19
20
|
*/
|
|
20
|
-
export type ServiceInputTypes = DescribeJobExecutionCommandInput | GetPendingJobExecutionsCommandInput | StartNextPendingJobExecutionCommandInput | UpdateJobExecutionCommandInput;
|
|
21
|
+
export type ServiceInputTypes = DescribeJobExecutionCommandInput | GetPendingJobExecutionsCommandInput | StartCommandExecutionCommandInput | StartNextPendingJobExecutionCommandInput | UpdateJobExecutionCommandInput;
|
|
21
22
|
/**
|
|
22
23
|
* @public
|
|
23
24
|
*/
|
|
24
|
-
export type ServiceOutputTypes = DescribeJobExecutionCommandOutput | GetPendingJobExecutionsCommandOutput | StartNextPendingJobExecutionCommandOutput | UpdateJobExecutionCommandOutput;
|
|
25
|
+
export type ServiceOutputTypes = DescribeJobExecutionCommandOutput | GetPendingJobExecutionsCommandOutput | StartCommandExecutionCommandOutput | StartNextPendingJobExecutionCommandOutput | UpdateJobExecutionCommandOutput;
|
|
25
26
|
/**
|
|
26
27
|
* @public
|
|
27
28
|
*/
|
|
@@ -155,17 +156,27 @@ export type IoTJobsDataPlaneClientResolvedConfigType = __SmithyResolvedConfigura
|
|
|
155
156
|
export interface IoTJobsDataPlaneClientResolvedConfig extends IoTJobsDataPlaneClientResolvedConfigType {
|
|
156
157
|
}
|
|
157
158
|
/**
|
|
158
|
-
* <p>
|
|
159
|
-
* and executed on one or more devices connected to
|
|
160
|
-
* set of devices to download and install application or
|
|
161
|
-
* remote troubleshooting
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
* <p>
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
159
|
+
* <p>IoT Jobs is a service that allows you to define a set of jobs — remote operations
|
|
160
|
+
* that are sent to and executed on one or more devices connected to Amazon Web Services IoT Core. For example,
|
|
161
|
+
* you can define a job that instructs a set of devices to download and install application or
|
|
162
|
+
* firmware updates, reboot, rotate certificates, or perform remote troubleshooting
|
|
163
|
+
* operations.</p>
|
|
164
|
+
* <p>Find the endpoint address for actions in the IoT jobs data plane by running this
|
|
165
|
+
* CLI command:</p>
|
|
166
|
+
* <p>
|
|
167
|
+
* <code>aws iot describe-endpoint --endpoint-type iot:Jobs</code>
|
|
168
|
+
* </p>
|
|
169
|
+
* <p>The service name used by <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Amazon Web Services
|
|
170
|
+
* Signature Version 4</a> to sign requests is:
|
|
171
|
+
* <i>iot-jobs-data</i>.</p>
|
|
172
|
+
* <p> To create a job, you make a job document which is a description of the remote
|
|
173
|
+
* operations to be performed, and you specify a list of targets that should perform the
|
|
174
|
+
* operations. The targets can be individual things, thing groups or both.</p>
|
|
175
|
+
* <p> IoT Jobs sends a message to inform the targets that a job is available. The target
|
|
176
|
+
* starts the execution of the job by downloading the job document, performing the operations
|
|
177
|
+
* it specifies, and reporting its progress to Amazon Web Services IoT Core. The Jobs service provides commands
|
|
178
|
+
* to track the progress of a job on a specific target and for all the targets of the
|
|
179
|
+
* job</p>
|
|
169
180
|
* @public
|
|
170
181
|
*/
|
|
171
182
|
export declare class IoTJobsDataPlaneClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, IoTJobsDataPlaneClientResolvedConfig> {
|
|
@@ -28,6 +28,7 @@ declare const DescribeJobExecutionCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Gets details of a job execution.</p>
|
|
31
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DescribeJobExecution</a> action.</p>
|
|
31
32
|
* @example
|
|
32
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
34
|
* ```javascript
|
|
@@ -72,7 +73,7 @@ declare const DescribeJobExecutionCommand_base: {
|
|
|
72
73
|
* <p>The certificate is invalid.</p>
|
|
73
74
|
*
|
|
74
75
|
* @throws {@link InvalidRequestException} (client fault)
|
|
75
|
-
* <p>The contents of the request were invalid
|
|
76
|
+
* <p>The contents of the request were invalid.</p>
|
|
76
77
|
*
|
|
77
78
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
79
|
* <p>The specified resource does not exist.</p>
|
|
@@ -28,6 +28,7 @@ declare const GetPendingJobExecutionsCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Gets the list of all jobs for a thing that are not in a terminal status.</p>
|
|
31
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetPendingJobExecutions</a> action.</p>
|
|
31
32
|
* @example
|
|
32
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
34
|
* ```javascript
|
|
@@ -74,7 +75,7 @@ declare const GetPendingJobExecutionsCommand_base: {
|
|
|
74
75
|
* <p>The certificate is invalid.</p>
|
|
75
76
|
*
|
|
76
77
|
* @throws {@link InvalidRequestException} (client fault)
|
|
77
|
-
* <p>The contents of the request were invalid
|
|
78
|
+
* <p>The contents of the request were invalid.</p>
|
|
78
79
|
*
|
|
79
80
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
80
81
|
* <p>The specified resource does not exist.</p>
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { IoTJobsDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTJobsDataPlaneClient";
|
|
4
|
+
import { StartCommandExecutionRequest, StartCommandExecutionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StartCommandExecutionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartCommandExecutionCommandInput extends StartCommandExecutionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartCommandExecutionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartCommandExecutionCommandOutput extends StartCommandExecutionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StartCommandExecutionCommand_base: {
|
|
25
|
+
new (input: StartCommandExecutionCommandInput): import("@smithy/smithy-client").CommandImpl<StartCommandExecutionCommandInput, StartCommandExecutionCommandOutput, IoTJobsDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: StartCommandExecutionCommandInput): import("@smithy/smithy-client").CommandImpl<StartCommandExecutionCommandInput, StartCommandExecutionCommandOutput, IoTJobsDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Using the command created with the <code>CreateCommand</code> API, start a command
|
|
31
|
+
* execution on a specific device.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { IoTJobsDataPlaneClient, StartCommandExecutionCommand } from "@aws-sdk/client-iot-jobs-data-plane"; // ES Modules import
|
|
36
|
+
* // const { IoTJobsDataPlaneClient, StartCommandExecutionCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); // CommonJS import
|
|
37
|
+
* const client = new IoTJobsDataPlaneClient(config);
|
|
38
|
+
* const input = { // StartCommandExecutionRequest
|
|
39
|
+
* targetArn: "STRING_VALUE", // required
|
|
40
|
+
* commandArn: "STRING_VALUE", // required
|
|
41
|
+
* parameters: { // CommandExecutionParameterMap
|
|
42
|
+
* "<keys>": { // CommandParameterValue
|
|
43
|
+
* S: "STRING_VALUE",
|
|
44
|
+
* B: true || false,
|
|
45
|
+
* I: Number("int"),
|
|
46
|
+
* L: Number("long"),
|
|
47
|
+
* D: Number("double"),
|
|
48
|
+
* BIN: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
49
|
+
* UL: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* executionTimeoutSeconds: Number("long"),
|
|
53
|
+
* clientToken: "STRING_VALUE",
|
|
54
|
+
* };
|
|
55
|
+
* const command = new StartCommandExecutionCommand(input);
|
|
56
|
+
* const response = await client.send(command);
|
|
57
|
+
* // { // StartCommandExecutionResponse
|
|
58
|
+
* // executionId: "STRING_VALUE",
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param StartCommandExecutionCommandInput - {@link StartCommandExecutionCommandInput}
|
|
64
|
+
* @returns {@link StartCommandExecutionCommandOutput}
|
|
65
|
+
* @see {@link StartCommandExecutionCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link StartCommandExecutionCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link IoTJobsDataPlaneClientResolvedConfig | config} for IoTJobsDataPlaneClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ConflictException} (client fault)
|
|
70
|
+
* <p>A conflict has occurred when performing the API request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerException} (server fault)
|
|
73
|
+
* <p>An internal server error occurred when performing the API request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
76
|
+
* <p>The specified resource does not exist.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
79
|
+
* <p>The service quota has been exceeded for this request.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
82
|
+
* <p>The rate exceeds the limit.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ValidationException} (client fault)
|
|
85
|
+
* <p>A validation error occurred when performing the API request.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link IoTJobsDataPlaneServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from IoTJobsDataPlane service.</p>
|
|
89
|
+
*
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
export declare class StartCommandExecutionCommand extends StartCommandExecutionCommand_base {
|
|
93
|
+
/** @internal type navigation helper, not in runtime. */
|
|
94
|
+
protected static __types: {
|
|
95
|
+
api: {
|
|
96
|
+
input: StartCommandExecutionRequest;
|
|
97
|
+
output: StartCommandExecutionResponse;
|
|
98
|
+
};
|
|
99
|
+
sdk: {
|
|
100
|
+
input: StartCommandExecutionCommandInput;
|
|
101
|
+
output: StartCommandExecutionCommandOutput;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -27,7 +27,9 @@ declare const StartNextPendingJobExecutionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a
|
|
30
|
+
* <p>Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a
|
|
31
|
+
* thing.</p>
|
|
32
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">StartNextPendingJobExecution</a> action.</p>
|
|
31
33
|
* @example
|
|
32
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
35
|
* ```javascript
|
|
@@ -73,7 +75,7 @@ declare const StartNextPendingJobExecutionCommand_base: {
|
|
|
73
75
|
* <p>The certificate is invalid.</p>
|
|
74
76
|
*
|
|
75
77
|
* @throws {@link InvalidRequestException} (client fault)
|
|
76
|
-
* <p>The contents of the request were invalid
|
|
78
|
+
* <p>The contents of the request were invalid.</p>
|
|
77
79
|
*
|
|
78
80
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
81
|
* <p>The specified resource does not exist.</p>
|
|
@@ -28,6 +28,7 @@ declare const UpdateJobExecutionCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Updates the status of a job execution.</p>
|
|
31
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotjobsdataplane.html">UpdateJobExecution</a> action.</p>
|
|
31
32
|
* @example
|
|
32
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
34
|
* ```javascript
|
|
@@ -72,12 +73,13 @@ declare const UpdateJobExecutionCommand_base: {
|
|
|
72
73
|
* <p>The certificate is invalid.</p>
|
|
73
74
|
*
|
|
74
75
|
* @throws {@link InvalidRequestException} (client fault)
|
|
75
|
-
* <p>The contents of the request were invalid
|
|
76
|
+
* <p>The contents of the request were invalid.</p>
|
|
76
77
|
*
|
|
77
78
|
* @throws {@link InvalidStateTransitionException} (client fault)
|
|
78
|
-
* <p>An update attempted to change the job execution to a state that is invalid because of
|
|
79
|
-
* current state (for example, an attempt to change a request in state
|
|
80
|
-
* case, the body of the error message also contains
|
|
79
|
+
* <p>An update attempted to change the job execution to a state that is invalid because of
|
|
80
|
+
* the job execution's current state (for example, an attempt to change a request in state
|
|
81
|
+
* SUCCESS to state IN_PROGRESS). In this case, the body of the error message also contains
|
|
82
|
+
* the executionState field.</p>
|
|
81
83
|
*
|
|
82
84
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
83
85
|
* <p>The specified resource does not exist.</p>
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <p>
|
|
3
|
-
* and executed on one or more devices connected to
|
|
4
|
-
* set of devices to download and install application or
|
|
5
|
-
* remote troubleshooting
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* <p>
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
2
|
+
* <p>IoT Jobs is a service that allows you to define a set of jobs — remote operations
|
|
3
|
+
* that are sent to and executed on one or more devices connected to Amazon Web Services IoT Core. For example,
|
|
4
|
+
* you can define a job that instructs a set of devices to download and install application or
|
|
5
|
+
* firmware updates, reboot, rotate certificates, or perform remote troubleshooting
|
|
6
|
+
* operations.</p>
|
|
7
|
+
* <p>Find the endpoint address for actions in the IoT jobs data plane by running this
|
|
8
|
+
* CLI command:</p>
|
|
9
|
+
* <p>
|
|
10
|
+
* <code>aws iot describe-endpoint --endpoint-type iot:Jobs</code>
|
|
11
|
+
* </p>
|
|
12
|
+
* <p>The service name used by <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Amazon Web Services
|
|
13
|
+
* Signature Version 4</a> to sign requests is:
|
|
14
|
+
* <i>iot-jobs-data</i>.</p>
|
|
15
|
+
* <p> To create a job, you make a job document which is a description of the remote
|
|
16
|
+
* operations to be performed, and you specify a list of targets that should perform the
|
|
17
|
+
* operations. The targets can be individual things, thing groups or both.</p>
|
|
18
|
+
* <p> IoT Jobs sends a message to inform the targets that a job is available. The target
|
|
19
|
+
* starts the execution of the job by downloading the job document, performing the operations
|
|
20
|
+
* it specifies, and reporting its progress to Amazon Web Services IoT Core. The Jobs service provides commands
|
|
21
|
+
* to track the progress of a job on a specific target and for all the targets of the
|
|
22
|
+
* job</p>
|
|
13
23
|
*
|
|
14
24
|
* @packageDocumentation
|
|
15
25
|
*/
|