@aws-sdk/client-iotdeviceadvisor 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 CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
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, createPaginator } = 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 { resolveHttpAuthSchemeConfig, defaultIotDeviceAdvisorHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateSuiteDefinition$, DeleteSuiteDefinition$, GetEndpoint$, GetSuiteDefinition$, GetSuiteRun$, GetSuiteRunReport$, ListSuiteDefinitions$, ListSuiteRuns$, ListTagsForResource$, StartSuiteRun$, StopSuiteRun$, TagResource$, UntagResource$, UpdateSuiteDefinition$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { IotDeviceAdvisorServiceException } = require("./models/IotDeviceAdvisorServiceException");
18
- exports.IotDeviceAdvisorServiceException = IotDeviceAdvisorServiceException;
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 defaultIotDeviceAdvisorHttpAuthSchemeParametersProvider = 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: "iotdeviceadvisor",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultIotDeviceAdvisorHttpAuthSchemeProvider = (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,597 @@ 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://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://api.iotdeviceadvisor.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://api.iotdeviceadvisor.{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 IotDeviceAdvisorServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, IotDeviceAdvisorServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class ConflictException extends IotDeviceAdvisorServiceException {
140
+ name = "ConflictException";
141
+ $fault = "client";
142
+ constructor(opts) {
143
+ super({
144
+ name: "ConflictException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, ConflictException.prototype);
149
+ }
150
+ }
151
+ class InternalServerException extends IotDeviceAdvisorServiceException {
152
+ name = "InternalServerException";
153
+ $fault = "server";
154
+ constructor(opts) {
155
+ super({
156
+ name: "InternalServerException",
157
+ $fault: "server",
158
+ ...opts,
159
+ });
160
+ Object.setPrototypeOf(this, InternalServerException.prototype);
161
+ }
162
+ }
163
+ class ValidationException extends IotDeviceAdvisorServiceException {
164
+ name = "ValidationException";
165
+ $fault = "client";
166
+ constructor(opts) {
167
+ super({
168
+ name: "ValidationException",
169
+ $fault: "client",
170
+ ...opts,
171
+ });
172
+ Object.setPrototypeOf(this, ValidationException.prototype);
173
+ }
174
+ }
175
+ class ResourceNotFoundException extends IotDeviceAdvisorServiceException {
176
+ name = "ResourceNotFoundException";
177
+ $fault = "client";
178
+ constructor(opts) {
179
+ super({
180
+ name: "ResourceNotFoundException",
181
+ $fault: "client",
182
+ ...opts,
183
+ });
184
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
185
+ }
186
+ }
187
+
188
+ const _CE = "ConflictException";
189
+ const _CSD = "CreateSuiteDefinition";
190
+ const _CSDR = "CreateSuiteDefinitionRequest";
191
+ const _CSDRr = "CreateSuiteDefinitionResponse";
192
+ const _DSD = "DeleteSuiteDefinition";
193
+ const _DSDR = "DeleteSuiteDefinitionRequest";
194
+ const _DSDRe = "DeleteSuiteDefinitionResponse";
195
+ const _DUT = "DeviceUnderTest";
196
+ const _DUTL = "DeviceUnderTestList";
197
+ const _GE = "GetEndpoint";
198
+ const _GER = "GetEndpointRequest";
199
+ const _GERe = "GetEndpointResponse";
200
+ const _GR = "GroupResult";
201
+ const _GRL = "GroupResultList";
202
+ const _GSD = "GetSuiteDefinition";
203
+ const _GSDR = "GetSuiteDefinitionRequest";
204
+ const _GSDRe = "GetSuiteDefinitionResponse";
205
+ const _GSR = "GetSuiteRun";
206
+ const _GSRR = "GetSuiteRunRequest";
207
+ const _GSRRR = "GetSuiteRunReportRequest";
208
+ const _GSRRRe = "GetSuiteRunReportResponse";
209
+ const _GSRRe = "GetSuiteRunResponse";
210
+ const _GSRRet = "GetSuiteRunReport";
211
+ const _ISE = "InternalServerException";
212
+ const _LSD = "ListSuiteDefinitions";
213
+ const _LSDR = "ListSuiteDefinitionsRequest";
214
+ const _LSDRi = "ListSuiteDefinitionsResponse";
215
+ const _LSR = "ListSuiteRuns";
216
+ const _LSRR = "ListSuiteRunsRequest";
217
+ const _LSRRi = "ListSuiteRunsResponse";
218
+ const _LTFR = "ListTagsForResource";
219
+ const _LTFRR = "ListTagsForResourceRequest";
220
+ const _LTFRRi = "ListTagsForResourceResponse";
221
+ const _RNFE = "ResourceNotFoundException";
222
+ const _SDC = "SuiteDefinitionConfiguration";
223
+ const _SDI = "SuiteDefinitionInformation";
224
+ const _SDIL = "SuiteDefinitionInformationList";
225
+ const _SRC = "SuiteRunConfiguration";
226
+ const _SRI = "SuiteRunInformation";
227
+ const _SRL = "SuiteRunsList";
228
+ const _SSR = "StartSuiteRun";
229
+ const _SSRR = "StartSuiteRunRequest";
230
+ const _SSRRt = "StartSuiteRunResponse";
231
+ const _SSRRto = "StopSuiteRunRequest";
232
+ const _SSRRtop = "StopSuiteRunResponse";
233
+ const _SSRt = "StopSuiteRun";
234
+ const _TCR = "TestCaseRun";
235
+ const _TCRe = "TestCaseRuns";
236
+ const _TCS = "TestCaseScenario";
237
+ const _TCSL = "TestCaseScenariosList";
238
+ const _TR = "TestResult";
239
+ const _TRR = "TagResourceRequest";
240
+ const _TRRa = "TagResourceResponse";
241
+ const _TRa = "TagResource";
242
+ const _UR = "UntagResource";
243
+ const _URR = "UntagResourceRequest";
244
+ const _URRn = "UntagResourceResponse";
245
+ const _USD = "UpdateSuiteDefinition";
246
+ const _USDR = "UpdateSuiteDefinitionRequest";
247
+ const _USDRp = "UpdateSuiteDefinitionResponse";
248
+ const _VE = "ValidationException";
249
+ const _aM = "authenticationMethod";
250
+ const _c = "client";
251
+ const _cA = "createdAt";
252
+ const _cAe = "certificateArn";
253
+ const _cT = "clientToken";
254
+ const _d = "devices";
255
+ const _dD = "defaultDevices";
256
+ const _dPRA = "devicePermissionRoleArn";
257
+ const _dRA = "deviceRoleArn";
258
+ const _e = "error";
259
+ const _eA = "endAt";
260
+ const _eR = "errorReason";
261
+ const _eT = "endTime";
262
+ const _en = "endpoint";
263
+ const _f = "failed";
264
+ const _fa = "failure";
265
+ const _g = "groups";
266
+ const _gI = "groupId";
267
+ const _gN = "groupName";
268
+ const _h = "http";
269
+ const _hE = "httpError";
270
+ const _hQ = "httpQuery";
271
+ const _iFQ = "intendedForQualification";
272
+ const _iLDT = "isLongDurationTest";
273
+ const _lMA = "lastModifiedAt";
274
+ const _lU = "logUrl";
275
+ const _lUA = "lastUpdatedAt";
276
+ const _lV = "latestVersion";
277
+ const _m = "message";
278
+ const _mR = "maxResults";
279
+ const _nT = "nextToken";
280
+ const _p = "protocol";
281
+ const _pD = "primaryDevice";
282
+ const _pR = "parallelRun";
283
+ const _pa = "passed";
284
+ const _qRDU = "qualificationReportDownloadUrl";
285
+ const _rA = "resourceArn";
286
+ const _rG = "rootGroup";
287
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotdeviceadvisor";
288
+ const _sA = "startedAt";
289
+ const _sDA = "suiteDefinitionArn";
290
+ const _sDC = "suiteDefinitionConfiguration";
291
+ const _sDI = "suiteDefinitionId";
292
+ const _sDIL = "suiteDefinitionInformationList";
293
+ const _sDN = "suiteDefinitionName";
294
+ const _sDV = "suiteDefinitionVersion";
295
+ const _sM = "systemMessage";
296
+ const _sRA = "suiteRunArn";
297
+ const _sRC = "suiteRunConfiguration";
298
+ const _sRI = "suiteRunId";
299
+ const _sRL = "suiteRunsList";
300
+ const _sT = "startTime";
301
+ const _sTL = "selectedTestList";
302
+ const _se = "server";
303
+ const _st = "status";
304
+ const _t = "tags";
305
+ const _tA = "thingArn";
306
+ const _tCDI = "testCaseDefinitionId";
307
+ const _tCDN = "testCaseDefinitionName";
308
+ const _tCRI = "testCaseRunId";
309
+ const _tCSI = "testCaseScenarioId";
310
+ const _tCST = "testCaseScenarioType";
311
+ const _tK = "tagKeys";
312
+ const _tR = "testResult";
313
+ const _tS = "testScenarios";
314
+ const _te = "tests";
315
+ const _w = "warnings";
316
+ const n0 = "com.amazonaws.iotdeviceadvisor";
317
+ const _s_registry = TypeRegistry.for(_s);
318
+ var IotDeviceAdvisorServiceException$ = [-3, _s, "IotDeviceAdvisorServiceException", 0, [], []];
319
+ _s_registry.registerError(IotDeviceAdvisorServiceException$, IotDeviceAdvisorServiceException);
320
+ const n0_registry = TypeRegistry.for(n0);
321
+ var ConflictException$ = [-3, n0, _CE,
322
+ { [_e]: _c, [_hE]: 400 },
323
+ [_m],
324
+ [0]
325
+ ];
326
+ n0_registry.registerError(ConflictException$, ConflictException);
327
+ var InternalServerException$ = [-3, n0, _ISE,
328
+ { [_e]: _se, [_hE]: 500 },
329
+ [_m],
330
+ [0]
331
+ ];
332
+ n0_registry.registerError(InternalServerException$, InternalServerException);
333
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
334
+ { [_e]: _c, [_hE]: 404 },
335
+ [_m],
336
+ [0]
337
+ ];
338
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
339
+ var ValidationException$ = [-3, n0, _VE,
340
+ { [_e]: _c, [_hE]: 400 },
341
+ [_m],
342
+ [0]
343
+ ];
344
+ n0_registry.registerError(ValidationException$, ValidationException);
345
+ const errorTypeRegistries = [
346
+ _s_registry,
347
+ n0_registry,
348
+ ];
349
+ var CreateSuiteDefinitionRequest$ = [3, n0, _CSDR,
350
+ 0,
351
+ [_sDC, _t, _cT],
352
+ [() => SuiteDefinitionConfiguration$, 128 | 0, [0, 4]], 1
353
+ ];
354
+ var CreateSuiteDefinitionResponse$ = [3, n0, _CSDRr,
355
+ 0,
356
+ [_sDI, _sDA, _sDN, _cA],
357
+ [0, 0, 0, 4]
358
+ ];
359
+ var DeleteSuiteDefinitionRequest$ = [3, n0, _DSDR,
360
+ 0,
361
+ [_sDI],
362
+ [[0, 1]], 1
363
+ ];
364
+ var DeleteSuiteDefinitionResponse$ = [3, n0, _DSDRe,
365
+ 0,
366
+ [],
367
+ []
368
+ ];
369
+ var DeviceUnderTest$ = [3, n0, _DUT,
370
+ 0,
371
+ [_tA, _cAe, _dRA],
372
+ [0, 0, 0]
373
+ ];
374
+ var GetEndpointRequest$ = [3, n0, _GER,
375
+ 0,
376
+ [_tA, _cAe, _dRA, _aM],
377
+ [[0, { [_hQ]: _tA }], [0, { [_hQ]: _cAe }], [0, { [_hQ]: _dRA }], [0, { [_hQ]: _aM }]]
378
+ ];
379
+ var GetEndpointResponse$ = [3, n0, _GERe,
380
+ 0,
381
+ [_en],
382
+ [0]
383
+ ];
384
+ var GetSuiteDefinitionRequest$ = [3, n0, _GSDR,
385
+ 0,
386
+ [_sDI, _sDV],
387
+ [[0, 1], [0, { [_hQ]: _sDV }]], 1
388
+ ];
389
+ var GetSuiteDefinitionResponse$ = [3, n0, _GSDRe,
390
+ 0,
391
+ [_sDI, _sDA, _sDV, _lV, _sDC, _cA, _lMA, _t],
392
+ [0, 0, 0, 0, () => SuiteDefinitionConfiguration$, 4, 4, 128 | 0]
393
+ ];
394
+ var GetSuiteRunReportRequest$ = [3, n0, _GSRRR,
395
+ 0,
396
+ [_sDI, _sRI],
397
+ [[0, 1], [0, 1]], 2
398
+ ];
399
+ var GetSuiteRunReportResponse$ = [3, n0, _GSRRRe,
400
+ 0,
401
+ [_qRDU],
402
+ [0]
403
+ ];
404
+ var GetSuiteRunRequest$ = [3, n0, _GSRR,
405
+ 0,
406
+ [_sDI, _sRI],
407
+ [[0, 1], [0, 1]], 2
408
+ ];
409
+ var GetSuiteRunResponse$ = [3, n0, _GSRRe,
410
+ 0,
411
+ [_sDI, _sDV, _sRI, _sRA, _sRC, _tR, _sT, _eT, _st, _eR, _t],
412
+ [0, 0, 0, 0, () => SuiteRunConfiguration$, () => TestResult$, 4, 4, 0, 0, 128 | 0]
413
+ ];
414
+ var GroupResult$ = [3, n0, _GR,
415
+ 0,
416
+ [_gI, _gN, _te],
417
+ [0, 0, () => TestCaseRuns]
418
+ ];
419
+ var ListSuiteDefinitionsRequest$ = [3, n0, _LSDR,
420
+ 0,
421
+ [_mR, _nT],
422
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
423
+ ];
424
+ var ListSuiteDefinitionsResponse$ = [3, n0, _LSDRi,
425
+ 0,
426
+ [_sDIL, _nT],
427
+ [() => SuiteDefinitionInformationList, 0]
428
+ ];
429
+ var ListSuiteRunsRequest$ = [3, n0, _LSRR,
430
+ 0,
431
+ [_sDI, _sDV, _mR, _nT],
432
+ [[0, { [_hQ]: _sDI }], [0, { [_hQ]: _sDV }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
433
+ ];
434
+ var ListSuiteRunsResponse$ = [3, n0, _LSRRi,
435
+ 0,
436
+ [_sRL, _nT],
437
+ [() => SuiteRunsList, 0]
438
+ ];
439
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
440
+ 0,
441
+ [_rA],
442
+ [[0, 1]], 1
443
+ ];
444
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
445
+ 0,
446
+ [_t],
447
+ [128 | 0]
448
+ ];
449
+ var StartSuiteRunRequest$ = [3, n0, _SSRR,
450
+ 0,
451
+ [_sDI, _sRC, _sDV, _t],
452
+ [[0, 1], () => SuiteRunConfiguration$, 0, 128 | 0], 2
453
+ ];
454
+ var StartSuiteRunResponse$ = [3, n0, _SSRRt,
455
+ 0,
456
+ [_sRI, _sRA, _cA, _en],
457
+ [0, 0, 4, 0]
458
+ ];
459
+ var StopSuiteRunRequest$ = [3, n0, _SSRRto,
460
+ 0,
461
+ [_sDI, _sRI],
462
+ [[0, 1], [0, 1]], 2
463
+ ];
464
+ var StopSuiteRunResponse$ = [3, n0, _SSRRtop,
465
+ 0,
466
+ [],
467
+ []
468
+ ];
469
+ var SuiteDefinitionConfiguration$ = [3, n0, _SDC,
470
+ 0,
471
+ [_sDN, _rG, _dPRA, _d, _iFQ, _iLDT, _p],
472
+ [0, 0, 0, () => DeviceUnderTestList, 2, 2, 0], 3
473
+ ];
474
+ var SuiteDefinitionInformation$ = [3, n0, _SDI,
475
+ 0,
476
+ [_sDI, _sDN, _dD, _iFQ, _iLDT, _p, _cA],
477
+ [0, 0, () => DeviceUnderTestList, 2, 2, 0, 4]
478
+ ];
479
+ var SuiteRunConfiguration$ = [3, n0, _SRC,
480
+ 0,
481
+ [_pD, _sTL, _pR],
482
+ [() => DeviceUnderTest$, 64 | 0, 2], 1
483
+ ];
484
+ var SuiteRunInformation$ = [3, n0, _SRI,
485
+ 0,
486
+ [_sDI, _sDV, _sDN, _sRI, _cA, _sA, _eA, _st, _pa, _f],
487
+ [0, 0, 0, 0, 4, 4, 4, 0, 1, 1]
488
+ ];
489
+ var TagResourceRequest$ = [3, n0, _TRR,
490
+ 0,
491
+ [_rA, _t],
492
+ [[0, 1], 128 | 0], 2
493
+ ];
494
+ var TagResourceResponse$ = [3, n0, _TRRa,
495
+ 0,
496
+ [],
497
+ []
498
+ ];
499
+ var TestCaseRun$ = [3, n0, _TCR,
500
+ 0,
501
+ [_tCRI, _tCDI, _tCDN, _st, _sT, _eT, _lU, _w, _fa, _tS],
502
+ [0, 0, 0, 0, 4, 4, 0, 0, 0, () => TestCaseScenariosList]
503
+ ];
504
+ var TestCaseScenario$ = [3, n0, _TCS,
505
+ 0,
506
+ [_tCSI, _tCST, _st, _fa, _sM],
507
+ [0, 0, 0, 0, 0]
508
+ ];
509
+ var TestResult$ = [3, n0, _TR,
510
+ 0,
511
+ [_g],
512
+ [() => GroupResultList]
513
+ ];
514
+ var UntagResourceRequest$ = [3, n0, _URR,
515
+ 0,
516
+ [_rA, _tK],
517
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
518
+ ];
519
+ var UntagResourceResponse$ = [3, n0, _URRn,
520
+ 0,
521
+ [],
522
+ []
523
+ ];
524
+ var UpdateSuiteDefinitionRequest$ = [3, n0, _USDR,
525
+ 0,
526
+ [_sDI, _sDC],
527
+ [[0, 1], () => SuiteDefinitionConfiguration$], 2
528
+ ];
529
+ var UpdateSuiteDefinitionResponse$ = [3, n0, _USDRp,
530
+ 0,
531
+ [_sDI, _sDA, _sDN, _sDV, _cA, _lUA],
532
+ [0, 0, 0, 0, 4, 4]
533
+ ];
534
+ var DeviceUnderTestList = [1, n0, _DUTL,
535
+ 0, () => DeviceUnderTest$
536
+ ];
537
+ var GroupResultList = [1, n0, _GRL,
538
+ 0, () => GroupResult$
539
+ ];
540
+ var SuiteDefinitionInformationList = [1, n0, _SDIL,
541
+ 0, () => SuiteDefinitionInformation$
542
+ ];
543
+ var SuiteRunsList = [1, n0, _SRL,
544
+ 0, () => SuiteRunInformation$
545
+ ];
546
+ var TestCaseRuns = [1, n0, _TCRe,
547
+ 0, () => TestCaseRun$
548
+ ];
549
+ var TestCaseScenariosList = [1, n0, _TCSL,
550
+ 0, () => TestCaseScenario$
551
+ ];
552
+ var CreateSuiteDefinition$ = [9, n0, _CSD,
553
+ { [_h]: ["POST", "/suiteDefinitions", 200] }, () => CreateSuiteDefinitionRequest$, () => CreateSuiteDefinitionResponse$
554
+ ];
555
+ var DeleteSuiteDefinition$ = [9, n0, _DSD,
556
+ { [_h]: ["DELETE", "/suiteDefinitions/{suiteDefinitionId}", 200] }, () => DeleteSuiteDefinitionRequest$, () => DeleteSuiteDefinitionResponse$
557
+ ];
558
+ var GetEndpoint$ = [9, n0, _GE,
559
+ { [_h]: ["GET", "/endpoint", 200] }, () => GetEndpointRequest$, () => GetEndpointResponse$
560
+ ];
561
+ var GetSuiteDefinition$ = [9, n0, _GSD,
562
+ { [_h]: ["GET", "/suiteDefinitions/{suiteDefinitionId}", 200] }, () => GetSuiteDefinitionRequest$, () => GetSuiteDefinitionResponse$
563
+ ];
564
+ var GetSuiteRun$ = [9, n0, _GSR,
565
+ { [_h]: ["GET", "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}", 200] }, () => GetSuiteRunRequest$, () => GetSuiteRunResponse$
566
+ ];
567
+ var GetSuiteRunReport$ = [9, n0, _GSRRet,
568
+ { [_h]: ["GET", "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report", 200] }, () => GetSuiteRunReportRequest$, () => GetSuiteRunReportResponse$
569
+ ];
570
+ var ListSuiteDefinitions$ = [9, n0, _LSD,
571
+ { [_h]: ["GET", "/suiteDefinitions", 200] }, () => ListSuiteDefinitionsRequest$, () => ListSuiteDefinitionsResponse$
572
+ ];
573
+ var ListSuiteRuns$ = [9, n0, _LSR,
574
+ { [_h]: ["GET", "/suiteRuns", 200] }, () => ListSuiteRunsRequest$, () => ListSuiteRunsResponse$
575
+ ];
576
+ var ListTagsForResource$ = [9, n0, _LTFR,
577
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
578
+ ];
579
+ var StartSuiteRun$ = [9, n0, _SSR,
580
+ { [_h]: ["POST", "/suiteDefinitions/{suiteDefinitionId}/suiteRuns", 200] }, () => StartSuiteRunRequest$, () => StartSuiteRunResponse$
581
+ ];
582
+ var StopSuiteRun$ = [9, n0, _SSRt,
583
+ { [_h]: ["POST", "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop", 200] }, () => StopSuiteRunRequest$, () => StopSuiteRunResponse$
584
+ ];
585
+ var TagResource$ = [9, n0, _TRa,
586
+ { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
587
+ ];
588
+ var UntagResource$ = [9, n0, _UR,
589
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
590
+ ];
591
+ var UpdateSuiteDefinition$ = [9, n0, _USD,
592
+ { [_h]: ["PATCH", "/suiteDefinitions/{suiteDefinitionId}", 200] }, () => UpdateSuiteDefinitionRequest$, () => UpdateSuiteDefinitionResponse$
593
+ ];
594
+
595
+ const getRuntimeConfig$1 = (config) => {
596
+ return {
597
+ apiVersion: "2020-09-18",
598
+ base64Decoder: config?.base64Decoder ?? fromBase64,
599
+ base64Encoder: config?.base64Encoder ?? toBase64,
600
+ disableHostPrefix: config?.disableHostPrefix ?? false,
601
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
602
+ extensions: config?.extensions ?? [],
603
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultIotDeviceAdvisorHttpAuthSchemeProvider,
604
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
605
+ {
606
+ schemeId: "aws.auth#sigv4",
607
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
608
+ signer: new AwsSdkSigV4Signer(),
609
+ },
610
+ ],
611
+ logger: config?.logger ?? new NoOpLogger(),
612
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
613
+ protocolSettings: config?.protocolSettings ?? {
614
+ defaultNamespace: "com.amazonaws.iotdeviceadvisor",
615
+ errorTypeRegistries,
616
+ version: "2020-09-18",
617
+ serviceTarget: "IotSenateService",
618
+ },
619
+ serviceId: config?.serviceId ?? "IotDeviceAdvisor",
620
+ urlParser: config?.urlParser ?? parseUrl,
621
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
622
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
623
+ };
624
+ };
625
+
626
+ const getRuntimeConfig = (config) => {
627
+ emitWarningIfUnsupportedVersion(process.version);
628
+ const defaultsMode = resolveDefaultsModeConfig(config);
629
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
630
+ const clientSharedValues = getRuntimeConfig$1(config);
631
+ emitWarningIfUnsupportedVersion$1(process.version);
632
+ const loaderConfig = {
633
+ profile: config?.profile,
634
+ logger: clientSharedValues.logger,
635
+ };
636
+ return {
637
+ ...clientSharedValues,
638
+ ...config,
639
+ runtime: "node",
640
+ defaultsMode,
641
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
642
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
643
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
644
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
645
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
646
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
647
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
648
+ retryMode: config?.retryMode ??
649
+ loadConfig({
650
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
651
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
652
+ }, config),
653
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
654
+ streamCollector: config?.streamCollector ?? streamCollector,
655
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
656
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
657
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
658
+ };
659
+ };
660
+
34
661
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
662
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
663
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -356,26 +983,88 @@ const TestCaseScenarioType = {
356
983
  };
357
984
 
358
985
  exports.AuthenticationMethod = AuthenticationMethod;
986
+ exports.ConflictException = ConflictException;
987
+ exports.ConflictException$ = ConflictException$;
988
+ exports.CreateSuiteDefinition$ = CreateSuiteDefinition$;
359
989
  exports.CreateSuiteDefinitionCommand = CreateSuiteDefinitionCommand;
990
+ exports.CreateSuiteDefinitionRequest$ = CreateSuiteDefinitionRequest$;
991
+ exports.CreateSuiteDefinitionResponse$ = CreateSuiteDefinitionResponse$;
992
+ exports.DeleteSuiteDefinition$ = DeleteSuiteDefinition$;
360
993
  exports.DeleteSuiteDefinitionCommand = DeleteSuiteDefinitionCommand;
994
+ exports.DeleteSuiteDefinitionRequest$ = DeleteSuiteDefinitionRequest$;
995
+ exports.DeleteSuiteDefinitionResponse$ = DeleteSuiteDefinitionResponse$;
996
+ exports.DeviceUnderTest$ = DeviceUnderTest$;
997
+ exports.GetEndpoint$ = GetEndpoint$;
361
998
  exports.GetEndpointCommand = GetEndpointCommand;
999
+ exports.GetEndpointRequest$ = GetEndpointRequest$;
1000
+ exports.GetEndpointResponse$ = GetEndpointResponse$;
1001
+ exports.GetSuiteDefinition$ = GetSuiteDefinition$;
362
1002
  exports.GetSuiteDefinitionCommand = GetSuiteDefinitionCommand;
1003
+ exports.GetSuiteDefinitionRequest$ = GetSuiteDefinitionRequest$;
1004
+ exports.GetSuiteDefinitionResponse$ = GetSuiteDefinitionResponse$;
1005
+ exports.GetSuiteRun$ = GetSuiteRun$;
363
1006
  exports.GetSuiteRunCommand = GetSuiteRunCommand;
1007
+ exports.GetSuiteRunReport$ = GetSuiteRunReport$;
364
1008
  exports.GetSuiteRunReportCommand = GetSuiteRunReportCommand;
1009
+ exports.GetSuiteRunReportRequest$ = GetSuiteRunReportRequest$;
1010
+ exports.GetSuiteRunReportResponse$ = GetSuiteRunReportResponse$;
1011
+ exports.GetSuiteRunRequest$ = GetSuiteRunRequest$;
1012
+ exports.GetSuiteRunResponse$ = GetSuiteRunResponse$;
1013
+ exports.GroupResult$ = GroupResult$;
1014
+ exports.InternalServerException = InternalServerException;
1015
+ exports.InternalServerException$ = InternalServerException$;
365
1016
  exports.IotDeviceAdvisor = IotDeviceAdvisor;
366
1017
  exports.IotDeviceAdvisorClient = IotDeviceAdvisorClient;
1018
+ exports.IotDeviceAdvisorServiceException = IotDeviceAdvisorServiceException;
1019
+ exports.IotDeviceAdvisorServiceException$ = IotDeviceAdvisorServiceException$;
1020
+ exports.ListSuiteDefinitions$ = ListSuiteDefinitions$;
367
1021
  exports.ListSuiteDefinitionsCommand = ListSuiteDefinitionsCommand;
1022
+ exports.ListSuiteDefinitionsRequest$ = ListSuiteDefinitionsRequest$;
1023
+ exports.ListSuiteDefinitionsResponse$ = ListSuiteDefinitionsResponse$;
1024
+ exports.ListSuiteRuns$ = ListSuiteRuns$;
368
1025
  exports.ListSuiteRunsCommand = ListSuiteRunsCommand;
1026
+ exports.ListSuiteRunsRequest$ = ListSuiteRunsRequest$;
1027
+ exports.ListSuiteRunsResponse$ = ListSuiteRunsResponse$;
1028
+ exports.ListTagsForResource$ = ListTagsForResource$;
369
1029
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1030
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1031
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
370
1032
  exports.Protocol = Protocol;
1033
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1034
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1035
+ exports.StartSuiteRun$ = StartSuiteRun$;
371
1036
  exports.StartSuiteRunCommand = StartSuiteRunCommand;
1037
+ exports.StartSuiteRunRequest$ = StartSuiteRunRequest$;
1038
+ exports.StartSuiteRunResponse$ = StartSuiteRunResponse$;
372
1039
  exports.Status = Status;
1040
+ exports.StopSuiteRun$ = StopSuiteRun$;
373
1041
  exports.StopSuiteRunCommand = StopSuiteRunCommand;
1042
+ exports.StopSuiteRunRequest$ = StopSuiteRunRequest$;
1043
+ exports.StopSuiteRunResponse$ = StopSuiteRunResponse$;
1044
+ exports.SuiteDefinitionConfiguration$ = SuiteDefinitionConfiguration$;
1045
+ exports.SuiteDefinitionInformation$ = SuiteDefinitionInformation$;
1046
+ exports.SuiteRunConfiguration$ = SuiteRunConfiguration$;
1047
+ exports.SuiteRunInformation$ = SuiteRunInformation$;
374
1048
  exports.SuiteRunStatus = SuiteRunStatus;
1049
+ exports.TagResource$ = TagResource$;
375
1050
  exports.TagResourceCommand = TagResourceCommand;
1051
+ exports.TagResourceRequest$ = TagResourceRequest$;
1052
+ exports.TagResourceResponse$ = TagResourceResponse$;
1053
+ exports.TestCaseRun$ = TestCaseRun$;
1054
+ exports.TestCaseScenario$ = TestCaseScenario$;
376
1055
  exports.TestCaseScenarioStatus = TestCaseScenarioStatus;
377
1056
  exports.TestCaseScenarioType = TestCaseScenarioType;
1057
+ exports.TestResult$ = TestResult$;
1058
+ exports.UntagResource$ = UntagResource$;
378
1059
  exports.UntagResourceCommand = UntagResourceCommand;
1060
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1061
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1062
+ exports.UpdateSuiteDefinition$ = UpdateSuiteDefinition$;
379
1063
  exports.UpdateSuiteDefinitionCommand = UpdateSuiteDefinitionCommand;
1064
+ exports.UpdateSuiteDefinitionRequest$ = UpdateSuiteDefinitionRequest$;
1065
+ exports.UpdateSuiteDefinitionResponse$ = UpdateSuiteDefinitionResponse$;
1066
+ exports.ValidationException = ValidationException;
1067
+ exports.ValidationException$ = ValidationException$;
1068
+ exports.errorTypeRegistries = errorTypeRegistries;
380
1069
  exports.paginateListSuiteDefinitions = paginateListSuiteDefinitions;
381
1070
  exports.paginateListSuiteRuns = paginateListSuiteRuns;