@aws-sdk/client-iot-jobs-data-plane 3.36.0 → 3.36.1
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/CHANGELOG.md +11 -0
- package/dist-cjs/IoTJobsDataPlane.js +0 -13
- package/dist-cjs/IoTJobsDataPlaneClient.js +0 -18
- package/dist-cjs/commands/DescribeJobExecutionCommand.js +0 -24
- package/dist-cjs/commands/GetPendingJobExecutionsCommand.js +0 -24
- package/dist-cjs/commands/StartNextPendingJobExecutionCommand.js +0 -24
- package/dist-cjs/commands/UpdateJobExecutionCommand.js +0 -24
- package/dist-cjs/models/models_0.js +0 -54
- package/dist-cjs/protocols/Aws_restJson1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-types/ts3.4/IoTJobsDataPlane.d.ts +5 -25
- package/dist-types/ts3.4/IoTJobsDataPlaneClient.d.ts +24 -99
- package/dist-types/ts3.4/commands/DescribeJobExecutionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetPendingJobExecutionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartNextPendingJobExecutionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateJobExecutionCommand.d.ts +2 -20
- package/dist-types/ts3.4/models/models_0.d.ts +77 -261
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +3 -3
|
@@ -13,134 +13,59 @@ import { UpdateJobExecutionCommandInput, UpdateJobExecutionCommandOutput } from
|
|
|
13
13
|
export declare type ServiceInputTypes = DescribeJobExecutionCommandInput | GetPendingJobExecutionsCommandInput | StartNextPendingJobExecutionCommandInput | UpdateJobExecutionCommandInput;
|
|
14
14
|
export declare type ServiceOutputTypes = DescribeJobExecutionCommandOutput | GetPendingJobExecutionsCommandOutput | StartNextPendingJobExecutionCommandOutput | UpdateJobExecutionCommandOutput;
|
|
15
15
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
16
|
-
|
|
17
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
18
|
-
*/
|
|
16
|
+
|
|
19
17
|
requestHandler?: __HttpHandler;
|
|
20
|
-
|
|
21
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
22
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
18
|
+
|
|
25
19
|
sha256?: __HashConstructor;
|
|
26
|
-
|
|
27
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
20
|
+
|
|
30
21
|
urlParser?: __UrlParser;
|
|
31
|
-
|
|
32
|
-
* A function that can calculate the length of a request body.
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
22
|
+
|
|
35
23
|
bodyLengthChecker?: (body: any) => number | undefined;
|
|
36
|
-
|
|
37
|
-
* A function that converts a stream into an array of bytes.
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
24
|
+
|
|
40
25
|
streamCollector?: __StreamCollector;
|
|
41
|
-
|
|
42
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
26
|
+
|
|
45
27
|
base64Decoder?: __Decoder;
|
|
46
|
-
|
|
47
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
28
|
+
|
|
50
29
|
base64Encoder?: __Encoder;
|
|
51
|
-
|
|
52
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
30
|
+
|
|
55
31
|
utf8Decoder?: __Decoder;
|
|
56
|
-
|
|
57
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
32
|
+
|
|
60
33
|
utf8Encoder?: __Encoder;
|
|
61
|
-
|
|
62
|
-
* The runtime environment.
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
34
|
+
|
|
65
35
|
runtime?: string;
|
|
66
|
-
|
|
67
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
68
|
-
* trait of an operation.
|
|
69
|
-
*/
|
|
36
|
+
|
|
70
37
|
disableHostPrefix?: boolean;
|
|
71
|
-
|
|
72
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
73
|
-
*/
|
|
38
|
+
|
|
74
39
|
maxAttempts?: number | __Provider<number>;
|
|
75
|
-
|
|
76
|
-
* Specifies which retry algorithm to use.
|
|
77
|
-
*/
|
|
40
|
+
|
|
78
41
|
retryMode?: string | __Provider<string>;
|
|
79
|
-
|
|
80
|
-
* Optional logger for logging debug/info/warn/error.
|
|
81
|
-
*/
|
|
42
|
+
|
|
82
43
|
logger?: __Logger;
|
|
83
|
-
|
|
84
|
-
* Unique service identifier.
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
44
|
+
|
|
87
45
|
serviceId?: string;
|
|
88
|
-
|
|
89
|
-
* The AWS region to which this client will send requests
|
|
90
|
-
*/
|
|
46
|
+
|
|
91
47
|
region?: string | __Provider<string>;
|
|
92
|
-
|
|
93
|
-
* Default credentials provider; Not available in browser runtime.
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
48
|
+
|
|
96
49
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
97
|
-
|
|
98
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
50
|
+
|
|
101
51
|
regionInfoProvider?: RegionInfoProvider;
|
|
102
|
-
|
|
103
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
52
|
+
|
|
106
53
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
107
54
|
}
|
|
108
55
|
declare type IoTJobsDataPlaneClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
109
|
-
|
|
110
|
-
* The configuration interface of IoTJobsDataPlaneClient class constructor that set the region, credentials and other options.
|
|
111
|
-
*/
|
|
56
|
+
|
|
112
57
|
export interface IoTJobsDataPlaneClientConfig extends IoTJobsDataPlaneClientConfigType {
|
|
113
58
|
}
|
|
114
59
|
declare type IoTJobsDataPlaneClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
115
|
-
|
|
116
|
-
* The resolved configuration interface of IoTJobsDataPlaneClient class. This is resolved and normalized from the {@link IoTJobsDataPlaneClientConfig | constructor configuration interface}.
|
|
117
|
-
*/
|
|
60
|
+
|
|
118
61
|
export interface IoTJobsDataPlaneClientResolvedConfig extends IoTJobsDataPlaneClientResolvedConfigType {
|
|
119
62
|
}
|
|
120
|
-
|
|
121
|
-
* <p>AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to
|
|
122
|
-
* and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a
|
|
123
|
-
* set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform
|
|
124
|
-
* remote troubleshooting operations.</p>
|
|
125
|
-
* <p> To create a job, you make a job document which is a description of the remote operations to be
|
|
126
|
-
* performed, and you specify a list of targets that should perform the operations. The targets can be individual
|
|
127
|
-
* things, thing groups or both.</p>
|
|
128
|
-
* <p> AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the
|
|
129
|
-
* execution of the job by downloading the job document, performing the operations it specifies, and reporting its
|
|
130
|
-
* progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and
|
|
131
|
-
* for all the targets of the job</p>
|
|
132
|
-
*/
|
|
63
|
+
|
|
133
64
|
export declare class IoTJobsDataPlaneClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, IoTJobsDataPlaneClientResolvedConfig> {
|
|
134
|
-
|
|
135
|
-
* The resolved configuration of IoTJobsDataPlaneClient class. This is resolved and normalized from the {@link IoTJobsDataPlaneClientConfig | constructor configuration interface}.
|
|
136
|
-
*/
|
|
65
|
+
|
|
137
66
|
readonly config: IoTJobsDataPlaneClientResolvedConfig;
|
|
138
67
|
constructor(configuration: IoTJobsDataPlaneClientConfig);
|
|
139
|
-
|
|
140
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
141
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
142
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
143
|
-
*/
|
|
68
|
+
|
|
144
69
|
destroy(): void;
|
|
145
70
|
}
|
|
146
71
|
export {};
|
|
@@ -6,29 +6,11 @@ export interface DescribeJobExecutionCommandInput extends DescribeJobExecutionRe
|
|
|
6
6
|
}
|
|
7
7
|
export interface DescribeJobExecutionCommandOutput extends DescribeJobExecutionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets details of a job execution.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { IoTJobsDataPlaneClient, DescribeJobExecutionCommand } from "@aws-sdk/client-iot-jobs-data-plane"; // ES Modules import
|
|
15
|
-
* // const { IoTJobsDataPlaneClient, DescribeJobExecutionCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); // CommonJS import
|
|
16
|
-
* const client = new IoTJobsDataPlaneClient(config);
|
|
17
|
-
* const command = new DescribeJobExecutionCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DescribeJobExecutionCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DescribeJobExecutionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IoTJobsDataPlaneClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class DescribeJobExecutionCommand extends $Command<DescribeJobExecutionCommandInput, DescribeJobExecutionCommandOutput, IoTJobsDataPlaneClientResolvedConfig> {
|
|
27
11
|
readonly input: DescribeJobExecutionCommandInput;
|
|
28
12
|
constructor(input: DescribeJobExecutionCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTJobsDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeJobExecutionCommandInput, DescribeJobExecutionCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface GetPendingJobExecutionsCommandInput extends GetPendingJobExecut
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetPendingJobExecutionsCommandOutput extends GetPendingJobExecutionsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets the list of all jobs for a thing that are not in a terminal status.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { IoTJobsDataPlaneClient, GetPendingJobExecutionsCommand } from "@aws-sdk/client-iot-jobs-data-plane"; // ES Modules import
|
|
15
|
-
* // const { IoTJobsDataPlaneClient, GetPendingJobExecutionsCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); // CommonJS import
|
|
16
|
-
* const client = new IoTJobsDataPlaneClient(config);
|
|
17
|
-
* const command = new GetPendingJobExecutionsCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link GetPendingJobExecutionsCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link GetPendingJobExecutionsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IoTJobsDataPlaneClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class GetPendingJobExecutionsCommand extends $Command<GetPendingJobExecutionsCommandInput, GetPendingJobExecutionsCommandOutput, IoTJobsDataPlaneClientResolvedConfig> {
|
|
27
11
|
readonly input: GetPendingJobExecutionsCommandInput;
|
|
28
12
|
constructor(input: GetPendingJobExecutionsCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTJobsDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPendingJobExecutionsCommandInput, GetPendingJobExecutionsCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface StartNextPendingJobExecutionCommandInput extends StartNextPendi
|
|
|
6
6
|
}
|
|
7
7
|
export interface StartNextPendingJobExecutionCommandOutput extends StartNextPendingJobExecutionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { IoTJobsDataPlaneClient, StartNextPendingJobExecutionCommand } from "@aws-sdk/client-iot-jobs-data-plane"; // ES Modules import
|
|
15
|
-
* // const { IoTJobsDataPlaneClient, StartNextPendingJobExecutionCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); // CommonJS import
|
|
16
|
-
* const client = new IoTJobsDataPlaneClient(config);
|
|
17
|
-
* const command = new StartNextPendingJobExecutionCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link StartNextPendingJobExecutionCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link StartNextPendingJobExecutionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IoTJobsDataPlaneClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class StartNextPendingJobExecutionCommand extends $Command<StartNextPendingJobExecutionCommandInput, StartNextPendingJobExecutionCommandOutput, IoTJobsDataPlaneClientResolvedConfig> {
|
|
27
11
|
readonly input: StartNextPendingJobExecutionCommandInput;
|
|
28
12
|
constructor(input: StartNextPendingJobExecutionCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTJobsDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartNextPendingJobExecutionCommandInput, StartNextPendingJobExecutionCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface UpdateJobExecutionCommandInput extends UpdateJobExecutionReques
|
|
|
6
6
|
}
|
|
7
7
|
export interface UpdateJobExecutionCommandOutput extends UpdateJobExecutionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Updates the status of a job execution.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { IoTJobsDataPlaneClient, UpdateJobExecutionCommand } from "@aws-sdk/client-iot-jobs-data-plane"; // ES Modules import
|
|
15
|
-
* // const { IoTJobsDataPlaneClient, UpdateJobExecutionCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); // CommonJS import
|
|
16
|
-
* const client = new IoTJobsDataPlaneClient(config);
|
|
17
|
-
* const command = new UpdateJobExecutionCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link UpdateJobExecutionCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link UpdateJobExecutionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IoTJobsDataPlaneClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class UpdateJobExecutionCommand extends $Command<UpdateJobExecutionCommandInput, UpdateJobExecutionCommandOutput, IoTJobsDataPlaneClientResolvedConfig> {
|
|
27
11
|
readonly input: UpdateJobExecutionCommandInput;
|
|
28
12
|
constructor(input: UpdateJobExecutionCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTJobsDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateJobExecutionCommandInput, UpdateJobExecutionCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|