@aws-sdk/client-iot-jobs-data-plane 3.1074.0 → 3.1076.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/dist-cjs/index.js +608 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/IoTJobsDataPlaneServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -137
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -270
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultIoTJobsDataPlaneHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "iot-jobs-data",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultIoTJobsDataPlaneHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,519 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const k = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [g]],
|
|
79
|
+
[c, j],
|
|
80
|
+
["aws.partition", j, d],
|
|
81
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
85
|
+
],
|
|
86
|
+
results: [
|
|
87
|
+
[a],
|
|
88
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
89
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
90
|
+
[g, i],
|
|
91
|
+
["https://data.jobs.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
92
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
93
|
+
["https://data.jobs.iot-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
94
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
95
|
+
["https://data.jobs.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
96
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
97
|
+
["https://data.jobs.iot.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
98
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
const root = 2;
|
|
102
|
+
const r = 100_000_000;
|
|
103
|
+
const nodes = new Int32Array([
|
|
104
|
+
-1, 1, -1,
|
|
105
|
+
0, 12, 3,
|
|
106
|
+
1, 4, r + 11,
|
|
107
|
+
2, 5, r + 11,
|
|
108
|
+
3, 8, 6,
|
|
109
|
+
4, 7, r + 10,
|
|
110
|
+
5, r + 8, r + 9,
|
|
111
|
+
4, 10, 9,
|
|
112
|
+
6, r + 6, r + 7,
|
|
113
|
+
5, 11, r + 5,
|
|
114
|
+
6, r + 4, r + 5,
|
|
115
|
+
3, r + 1, 13,
|
|
116
|
+
4, r + 2, r + 3,
|
|
117
|
+
]);
|
|
118
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
119
|
+
|
|
120
|
+
const cache = new EndpointCache({
|
|
121
|
+
size: 50,
|
|
122
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
123
|
+
});
|
|
124
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
125
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
126
|
+
endpointParams: endpointParams,
|
|
127
|
+
logger: context.logger,
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
131
|
+
|
|
132
|
+
class IoTJobsDataPlaneServiceException extends ServiceException {
|
|
133
|
+
constructor(options) {
|
|
134
|
+
super(options);
|
|
135
|
+
Object.setPrototypeOf(this, IoTJobsDataPlaneServiceException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class CertificateValidationException extends IoTJobsDataPlaneServiceException {
|
|
140
|
+
name = "CertificateValidationException";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "CertificateValidationException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, CertificateValidationException.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
class ConflictException extends IoTJobsDataPlaneServiceException {
|
|
152
|
+
name = "ConflictException";
|
|
153
|
+
$fault = "client";
|
|
154
|
+
resourceId;
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "ConflictException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
162
|
+
this.resourceId = opts.resourceId;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
class InvalidRequestException extends IoTJobsDataPlaneServiceException {
|
|
166
|
+
name = "InvalidRequestException";
|
|
167
|
+
$fault = "client";
|
|
168
|
+
constructor(opts) {
|
|
169
|
+
super({
|
|
170
|
+
name: "InvalidRequestException",
|
|
171
|
+
$fault: "client",
|
|
172
|
+
...opts,
|
|
173
|
+
});
|
|
174
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
class ResourceNotFoundException extends IoTJobsDataPlaneServiceException {
|
|
178
|
+
name = "ResourceNotFoundException";
|
|
179
|
+
$fault = "client";
|
|
180
|
+
constructor(opts) {
|
|
181
|
+
super({
|
|
182
|
+
name: "ResourceNotFoundException",
|
|
183
|
+
$fault: "client",
|
|
184
|
+
...opts,
|
|
185
|
+
});
|
|
186
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class ServiceUnavailableException extends IoTJobsDataPlaneServiceException {
|
|
190
|
+
name = "ServiceUnavailableException";
|
|
191
|
+
$fault = "server";
|
|
192
|
+
constructor(opts) {
|
|
193
|
+
super({
|
|
194
|
+
name: "ServiceUnavailableException",
|
|
195
|
+
$fault: "server",
|
|
196
|
+
...opts,
|
|
197
|
+
});
|
|
198
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
class TerminalStateException extends IoTJobsDataPlaneServiceException {
|
|
202
|
+
name = "TerminalStateException";
|
|
203
|
+
$fault = "client";
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
super({
|
|
206
|
+
name: "TerminalStateException",
|
|
207
|
+
$fault: "client",
|
|
208
|
+
...opts,
|
|
209
|
+
});
|
|
210
|
+
Object.setPrototypeOf(this, TerminalStateException.prototype);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
class ThrottlingException extends IoTJobsDataPlaneServiceException {
|
|
214
|
+
name = "ThrottlingException";
|
|
215
|
+
$fault = "client";
|
|
216
|
+
payload;
|
|
217
|
+
constructor(opts) {
|
|
218
|
+
super({
|
|
219
|
+
name: "ThrottlingException",
|
|
220
|
+
$fault: "client",
|
|
221
|
+
...opts,
|
|
222
|
+
});
|
|
223
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
224
|
+
this.payload = opts.payload;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
class InternalServerException extends IoTJobsDataPlaneServiceException {
|
|
228
|
+
name = "InternalServerException";
|
|
229
|
+
$fault = "server";
|
|
230
|
+
constructor(opts) {
|
|
231
|
+
super({
|
|
232
|
+
name: "InternalServerException",
|
|
233
|
+
$fault: "server",
|
|
234
|
+
...opts,
|
|
235
|
+
});
|
|
236
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
class InvalidStateTransitionException extends IoTJobsDataPlaneServiceException {
|
|
240
|
+
name = "InvalidStateTransitionException";
|
|
241
|
+
$fault = "client";
|
|
242
|
+
constructor(opts) {
|
|
243
|
+
super({
|
|
244
|
+
name: "InvalidStateTransitionException",
|
|
245
|
+
$fault: "client",
|
|
246
|
+
...opts,
|
|
247
|
+
});
|
|
248
|
+
Object.setPrototypeOf(this, InvalidStateTransitionException.prototype);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
class ServiceQuotaExceededException extends IoTJobsDataPlaneServiceException {
|
|
252
|
+
name = "ServiceQuotaExceededException";
|
|
253
|
+
$fault = "client";
|
|
254
|
+
constructor(opts) {
|
|
255
|
+
super({
|
|
256
|
+
name: "ServiceQuotaExceededException",
|
|
257
|
+
$fault: "client",
|
|
258
|
+
...opts,
|
|
259
|
+
});
|
|
260
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
class ValidationException extends IoTJobsDataPlaneServiceException {
|
|
264
|
+
name = "ValidationException";
|
|
265
|
+
$fault = "client";
|
|
266
|
+
constructor(opts) {
|
|
267
|
+
super({
|
|
268
|
+
name: "ValidationException",
|
|
269
|
+
$fault: "client",
|
|
270
|
+
...opts,
|
|
271
|
+
});
|
|
272
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
const _B = "B";
|
|
277
|
+
const _BIN = "BIN";
|
|
278
|
+
const _CE = "ConflictException";
|
|
279
|
+
const _CEPM = "CommandExecutionParameterMap";
|
|
280
|
+
const _CPV = "CommandParameterValue";
|
|
281
|
+
const _CVE = "CertificateValidationException";
|
|
282
|
+
const _D = "D";
|
|
283
|
+
const _DJE = "DescribeJobExecution";
|
|
284
|
+
const _DJER = "DescribeJobExecutionRequest";
|
|
285
|
+
const _DJERe = "DescribeJobExecutionResponse";
|
|
286
|
+
const _GPJE = "GetPendingJobExecutions";
|
|
287
|
+
const _GPJER = "GetPendingJobExecutionsRequest";
|
|
288
|
+
const _GPJERe = "GetPendingJobExecutionsResponse";
|
|
289
|
+
const _I = "I";
|
|
290
|
+
const _IRE = "InvalidRequestException";
|
|
291
|
+
const _ISE = "InternalServerException";
|
|
292
|
+
const _ISTE = "InvalidStateTransitionException";
|
|
293
|
+
const _JE = "JobExecution";
|
|
294
|
+
const _JES = "JobExecutionState";
|
|
295
|
+
const _JESL = "JobExecutionSummaryList";
|
|
296
|
+
const _JESo = "JobExecutionSummary";
|
|
297
|
+
const _L = "L";
|
|
298
|
+
const _RNFE = "ResourceNotFoundException";
|
|
299
|
+
const _S = "S";
|
|
300
|
+
const _SCE = "StartCommandExecution";
|
|
301
|
+
const _SCER = "StartCommandExecutionRequest";
|
|
302
|
+
const _SCERt = "StartCommandExecutionResponse";
|
|
303
|
+
const _SNPJE = "StartNextPendingJobExecution";
|
|
304
|
+
const _SNPJER = "StartNextPendingJobExecutionRequest";
|
|
305
|
+
const _SNPJERt = "StartNextPendingJobExecutionResponse";
|
|
306
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
307
|
+
const _SUE = "ServiceUnavailableException";
|
|
308
|
+
const _TE = "ThrottlingException";
|
|
309
|
+
const _TSE = "TerminalStateException";
|
|
310
|
+
const _UJE = "UpdateJobExecution";
|
|
311
|
+
const _UJER = "UpdateJobExecutionRequest";
|
|
312
|
+
const _UJERp = "UpdateJobExecutionResponse";
|
|
313
|
+
const _UL = "UL";
|
|
314
|
+
const _VE = "ValidationException";
|
|
315
|
+
const _aSBTO = "approximateSecondsBeforeTimedOut";
|
|
316
|
+
const _c = "client";
|
|
317
|
+
const _cA = "commandArn";
|
|
318
|
+
const _cT = "clientToken";
|
|
319
|
+
const _e = "error";
|
|
320
|
+
const _eI = "executionId";
|
|
321
|
+
const _eN = "executionNumber";
|
|
322
|
+
const _eS = "executionState";
|
|
323
|
+
const _eTS = "executionTimeoutSeconds";
|
|
324
|
+
const _eV = "expectedVersion";
|
|
325
|
+
const _ex = "execution";
|
|
326
|
+
const _h = "http";
|
|
327
|
+
const _hE = "httpError";
|
|
328
|
+
const _hQ = "httpQuery";
|
|
329
|
+
const _iJD = "includeJobDocument";
|
|
330
|
+
const _iJES = "includeJobExecutionState";
|
|
331
|
+
const _iPJ = "inProgressJobs";
|
|
332
|
+
const _jD = "jobDocument";
|
|
333
|
+
const _jI = "jobId";
|
|
334
|
+
const _lUA = "lastUpdatedAt";
|
|
335
|
+
const _m = "message";
|
|
336
|
+
const _p = "payload";
|
|
337
|
+
const _pa = "parameters";
|
|
338
|
+
const _qA = "queuedAt";
|
|
339
|
+
const _qJ = "queuedJobs";
|
|
340
|
+
const _rI = "resourceId";
|
|
341
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotjobsdataplane";
|
|
342
|
+
const _sA = "startedAt";
|
|
343
|
+
const _sD = "statusDetails";
|
|
344
|
+
const _sTIM = "stepTimeoutInMinutes";
|
|
345
|
+
const _se = "server";
|
|
346
|
+
const _st = "status";
|
|
347
|
+
const _tA = "targetArn";
|
|
348
|
+
const _tN = "thingName";
|
|
349
|
+
const _vN = "versionNumber";
|
|
350
|
+
const n0 = "com.amazonaws.iotjobsdataplane";
|
|
351
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
352
|
+
var IoTJobsDataPlaneServiceException$ = [-3, _s, "IoTJobsDataPlaneServiceException", 0, [], []];
|
|
353
|
+
_s_registry.registerError(IoTJobsDataPlaneServiceException$, IoTJobsDataPlaneServiceException);
|
|
354
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
355
|
+
var CertificateValidationException$ = [-3, n0, _CVE,
|
|
356
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
357
|
+
[_m],
|
|
358
|
+
[0]
|
|
359
|
+
];
|
|
360
|
+
n0_registry.registerError(CertificateValidationException$, CertificateValidationException);
|
|
361
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
362
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
363
|
+
[_m, _rI],
|
|
364
|
+
[0, 0]
|
|
365
|
+
];
|
|
366
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
367
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
368
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
369
|
+
[_m],
|
|
370
|
+
[0]
|
|
371
|
+
];
|
|
372
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
373
|
+
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
374
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
375
|
+
[_m],
|
|
376
|
+
[0]
|
|
377
|
+
];
|
|
378
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
379
|
+
var InvalidStateTransitionException$ = [-3, n0, _ISTE,
|
|
380
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
381
|
+
[_m],
|
|
382
|
+
[0]
|
|
383
|
+
];
|
|
384
|
+
n0_registry.registerError(InvalidStateTransitionException$, InvalidStateTransitionException);
|
|
385
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
386
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
387
|
+
[_m],
|
|
388
|
+
[0]
|
|
389
|
+
];
|
|
390
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
391
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
392
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
393
|
+
[_m],
|
|
394
|
+
[0]
|
|
395
|
+
];
|
|
396
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
397
|
+
var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
398
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
399
|
+
[_m],
|
|
400
|
+
[0]
|
|
401
|
+
];
|
|
402
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
403
|
+
var TerminalStateException$ = [-3, n0, _TSE,
|
|
404
|
+
{ [_e]: _c, [_hE]: 410 },
|
|
405
|
+
[_m],
|
|
406
|
+
[0]
|
|
407
|
+
];
|
|
408
|
+
n0_registry.registerError(TerminalStateException$, TerminalStateException);
|
|
409
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
410
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
411
|
+
[_m, _p],
|
|
412
|
+
[0, 21]
|
|
413
|
+
];
|
|
414
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
415
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
416
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
417
|
+
[_m],
|
|
418
|
+
[0]
|
|
419
|
+
];
|
|
420
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
421
|
+
const errorTypeRegistries = [
|
|
422
|
+
_s_registry,
|
|
423
|
+
n0_registry,
|
|
424
|
+
];
|
|
425
|
+
var CommandParameterValue$ = [3, n0, _CPV,
|
|
426
|
+
0,
|
|
427
|
+
[_S, _B, _I, _L, _D, _BIN, _UL],
|
|
428
|
+
[0, 2, 1, 1, 1, 21, 0]
|
|
429
|
+
];
|
|
430
|
+
var DescribeJobExecutionRequest$ = [3, n0, _DJER,
|
|
431
|
+
0,
|
|
432
|
+
[_jI, _tN, _iJD, _eN],
|
|
433
|
+
[[0, 1], [0, 1], [2, { [_hQ]: _iJD }], [1, { [_hQ]: _eN }]], 2
|
|
434
|
+
];
|
|
435
|
+
var DescribeJobExecutionResponse$ = [3, n0, _DJERe,
|
|
436
|
+
0,
|
|
437
|
+
[_ex],
|
|
438
|
+
[() => JobExecution$]
|
|
439
|
+
];
|
|
440
|
+
var GetPendingJobExecutionsRequest$ = [3, n0, _GPJER,
|
|
441
|
+
0,
|
|
442
|
+
[_tN],
|
|
443
|
+
[[0, 1]], 1
|
|
444
|
+
];
|
|
445
|
+
var GetPendingJobExecutionsResponse$ = [3, n0, _GPJERe,
|
|
446
|
+
0,
|
|
447
|
+
[_iPJ, _qJ],
|
|
448
|
+
[() => JobExecutionSummaryList, () => JobExecutionSummaryList]
|
|
449
|
+
];
|
|
450
|
+
var JobExecution$ = [3, n0, _JE,
|
|
451
|
+
0,
|
|
452
|
+
[_jI, _tN, _st, _sD, _qA, _sA, _lUA, _aSBTO, _vN, _eN, _jD],
|
|
453
|
+
[0, 0, 0, 128 | 0, 1, 1, 1, 1, 1, 1, 0]
|
|
454
|
+
];
|
|
455
|
+
var JobExecutionState$ = [3, n0, _JES,
|
|
456
|
+
0,
|
|
457
|
+
[_st, _sD, _vN],
|
|
458
|
+
[0, 128 | 0, 1]
|
|
459
|
+
];
|
|
460
|
+
var JobExecutionSummary$ = [3, n0, _JESo,
|
|
461
|
+
0,
|
|
462
|
+
[_jI, _qA, _sA, _lUA, _vN, _eN],
|
|
463
|
+
[0, 1, 1, 1, 1, 1]
|
|
464
|
+
];
|
|
465
|
+
var StartCommandExecutionRequest$ = [3, n0, _SCER,
|
|
466
|
+
0,
|
|
467
|
+
[_tA, _cA, _pa, _eTS, _cT],
|
|
468
|
+
[0, 0, () => CommandExecutionParameterMap, 1, [0, 4]], 2
|
|
469
|
+
];
|
|
470
|
+
var StartCommandExecutionResponse$ = [3, n0, _SCERt,
|
|
471
|
+
0,
|
|
472
|
+
[_eI],
|
|
473
|
+
[0]
|
|
474
|
+
];
|
|
475
|
+
var StartNextPendingJobExecutionRequest$ = [3, n0, _SNPJER,
|
|
476
|
+
0,
|
|
477
|
+
[_tN, _sD, _sTIM],
|
|
478
|
+
[[0, 1], 128 | 0, 1], 1
|
|
479
|
+
];
|
|
480
|
+
var StartNextPendingJobExecutionResponse$ = [3, n0, _SNPJERt,
|
|
481
|
+
0,
|
|
482
|
+
[_ex],
|
|
483
|
+
[() => JobExecution$]
|
|
484
|
+
];
|
|
485
|
+
var UpdateJobExecutionRequest$ = [3, n0, _UJER,
|
|
486
|
+
0,
|
|
487
|
+
[_jI, _tN, _st, _sD, _sTIM, _eV, _iJES, _iJD, _eN],
|
|
488
|
+
[[0, 1], [0, 1], 0, 128 | 0, 1, 1, 2, 2, 1], 3
|
|
489
|
+
];
|
|
490
|
+
var UpdateJobExecutionResponse$ = [3, n0, _UJERp,
|
|
491
|
+
0,
|
|
492
|
+
[_eS, _jD],
|
|
493
|
+
[() => JobExecutionState$, 0]
|
|
494
|
+
];
|
|
495
|
+
var JobExecutionSummaryList = [1, n0, _JESL,
|
|
496
|
+
0, () => JobExecutionSummary$
|
|
497
|
+
];
|
|
498
|
+
var CommandExecutionParameterMap = [2, n0, _CEPM,
|
|
499
|
+
0, 0, () => CommandParameterValue$
|
|
500
|
+
];
|
|
501
|
+
var DescribeJobExecution$ = [9, n0, _DJE,
|
|
502
|
+
{ [_h]: ["GET", "/things/{thingName}/jobs/{jobId}", 200] }, () => DescribeJobExecutionRequest$, () => DescribeJobExecutionResponse$
|
|
503
|
+
];
|
|
504
|
+
var GetPendingJobExecutions$ = [9, n0, _GPJE,
|
|
505
|
+
{ [_h]: ["GET", "/things/{thingName}/jobs", 200] }, () => GetPendingJobExecutionsRequest$, () => GetPendingJobExecutionsResponse$
|
|
506
|
+
];
|
|
507
|
+
var StartCommandExecution$ = [9, n0, _SCE,
|
|
508
|
+
{ [_h]: ["POST", "/command-executions", 200] }, () => StartCommandExecutionRequest$, () => StartCommandExecutionResponse$
|
|
509
|
+
];
|
|
510
|
+
var StartNextPendingJobExecution$ = [9, n0, _SNPJE,
|
|
511
|
+
{ [_h]: ["PUT", "/things/{thingName}/jobs/$next", 200] }, () => StartNextPendingJobExecutionRequest$, () => StartNextPendingJobExecutionResponse$
|
|
512
|
+
];
|
|
513
|
+
var UpdateJobExecution$ = [9, n0, _UJE,
|
|
514
|
+
{ [_h]: ["POST", "/things/{thingName}/jobs/{jobId}", 200] }, () => UpdateJobExecutionRequest$, () => UpdateJobExecutionResponse$
|
|
515
|
+
];
|
|
516
|
+
|
|
517
|
+
const getRuntimeConfig$1 = (config) => {
|
|
518
|
+
return {
|
|
519
|
+
apiVersion: "2017-09-29",
|
|
520
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
521
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
522
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
523
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
524
|
+
extensions: config?.extensions ?? [],
|
|
525
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultIoTJobsDataPlaneHttpAuthSchemeProvider,
|
|
526
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
527
|
+
{
|
|
528
|
+
schemeId: "aws.auth#sigv4",
|
|
529
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
530
|
+
signer: new AwsSdkSigV4Signer(),
|
|
531
|
+
},
|
|
532
|
+
],
|
|
533
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
534
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
535
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
536
|
+
defaultNamespace: "com.amazonaws.iotjobsdataplane",
|
|
537
|
+
errorTypeRegistries,
|
|
538
|
+
version: "2017-09-29",
|
|
539
|
+
serviceTarget: "IotLaserThingJobManagerExternalService",
|
|
540
|
+
},
|
|
541
|
+
serviceId: config?.serviceId ?? "IoT Jobs Data Plane",
|
|
542
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
543
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
544
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
const getRuntimeConfig = (config) => {
|
|
549
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
550
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
551
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
552
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
553
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
554
|
+
const loaderConfig = {
|
|
555
|
+
profile: config?.profile,
|
|
556
|
+
logger: clientSharedValues.logger,
|
|
557
|
+
};
|
|
558
|
+
return {
|
|
559
|
+
...clientSharedValues,
|
|
560
|
+
...config,
|
|
561
|
+
runtime: "node",
|
|
562
|
+
defaultsMode,
|
|
563
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
564
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
565
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
566
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
567
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
568
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
569
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
570
|
+
retryMode: config?.retryMode ??
|
|
571
|
+
loadConfig({
|
|
572
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
573
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
574
|
+
}, config),
|
|
575
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
576
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
577
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
578
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
579
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
|
|
34
583
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
584
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
585
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -193,11 +742,55 @@ const JobExecutionStatus = {
|
|
|
193
742
|
TIMED_OUT: "TIMED_OUT",
|
|
194
743
|
};
|
|
195
744
|
|
|
745
|
+
exports.CertificateValidationException = CertificateValidationException;
|
|
746
|
+
exports.CertificateValidationException$ = CertificateValidationException$;
|
|
747
|
+
exports.CommandParameterValue$ = CommandParameterValue$;
|
|
748
|
+
exports.ConflictException = ConflictException;
|
|
749
|
+
exports.ConflictException$ = ConflictException$;
|
|
750
|
+
exports.DescribeJobExecution$ = DescribeJobExecution$;
|
|
196
751
|
exports.DescribeJobExecutionCommand = DescribeJobExecutionCommand;
|
|
752
|
+
exports.DescribeJobExecutionRequest$ = DescribeJobExecutionRequest$;
|
|
753
|
+
exports.DescribeJobExecutionResponse$ = DescribeJobExecutionResponse$;
|
|
754
|
+
exports.GetPendingJobExecutions$ = GetPendingJobExecutions$;
|
|
197
755
|
exports.GetPendingJobExecutionsCommand = GetPendingJobExecutionsCommand;
|
|
756
|
+
exports.GetPendingJobExecutionsRequest$ = GetPendingJobExecutionsRequest$;
|
|
757
|
+
exports.GetPendingJobExecutionsResponse$ = GetPendingJobExecutionsResponse$;
|
|
758
|
+
exports.InternalServerException = InternalServerException;
|
|
759
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
760
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
761
|
+
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
762
|
+
exports.InvalidStateTransitionException = InvalidStateTransitionException;
|
|
763
|
+
exports.InvalidStateTransitionException$ = InvalidStateTransitionException$;
|
|
198
764
|
exports.IoTJobsDataPlane = IoTJobsDataPlane;
|
|
199
765
|
exports.IoTJobsDataPlaneClient = IoTJobsDataPlaneClient;
|
|
766
|
+
exports.IoTJobsDataPlaneServiceException = IoTJobsDataPlaneServiceException;
|
|
767
|
+
exports.IoTJobsDataPlaneServiceException$ = IoTJobsDataPlaneServiceException$;
|
|
768
|
+
exports.JobExecution$ = JobExecution$;
|
|
769
|
+
exports.JobExecutionState$ = JobExecutionState$;
|
|
200
770
|
exports.JobExecutionStatus = JobExecutionStatus;
|
|
771
|
+
exports.JobExecutionSummary$ = JobExecutionSummary$;
|
|
772
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
773
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
774
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
775
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
776
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
777
|
+
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
778
|
+
exports.StartCommandExecution$ = StartCommandExecution$;
|
|
201
779
|
exports.StartCommandExecutionCommand = StartCommandExecutionCommand;
|
|
780
|
+
exports.StartCommandExecutionRequest$ = StartCommandExecutionRequest$;
|
|
781
|
+
exports.StartCommandExecutionResponse$ = StartCommandExecutionResponse$;
|
|
782
|
+
exports.StartNextPendingJobExecution$ = StartNextPendingJobExecution$;
|
|
202
783
|
exports.StartNextPendingJobExecutionCommand = StartNextPendingJobExecutionCommand;
|
|
784
|
+
exports.StartNextPendingJobExecutionRequest$ = StartNextPendingJobExecutionRequest$;
|
|
785
|
+
exports.StartNextPendingJobExecutionResponse$ = StartNextPendingJobExecutionResponse$;
|
|
786
|
+
exports.TerminalStateException = TerminalStateException;
|
|
787
|
+
exports.TerminalStateException$ = TerminalStateException$;
|
|
788
|
+
exports.ThrottlingException = ThrottlingException;
|
|
789
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
790
|
+
exports.UpdateJobExecution$ = UpdateJobExecution$;
|
|
203
791
|
exports.UpdateJobExecutionCommand = UpdateJobExecutionCommand;
|
|
792
|
+
exports.UpdateJobExecutionRequest$ = UpdateJobExecutionRequest$;
|
|
793
|
+
exports.UpdateJobExecutionResponse$ = UpdateJobExecutionResponse$;
|
|
794
|
+
exports.ValidationException = ValidationException;
|
|
795
|
+
exports.ValidationException$ = ValidationException$;
|
|
796
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) =>
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) =>
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) =>
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|