@aws-sdk/client-braket 3.721.0 → 3.723.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
@@ -164,7 +164,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
164
164
  }, "resolveRuntimeExtensions");
165
165
 
166
166
  // src/BraketClient.ts
167
- var _BraketClient = class _BraketClient extends import_smithy_client.Client {
167
+ var BraketClient = class extends import_smithy_client.Client {
168
+ static {
169
+ __name(this, "BraketClient");
170
+ }
171
+ /**
172
+ * The resolved configuration of BraketClient class. This is resolved and normalized from the {@link BraketClientConfig | constructor configuration interface}.
173
+ */
174
+ config;
168
175
  constructor(...[configuration]) {
169
176
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
170
177
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -174,7 +181,7 @@ var _BraketClient = class _BraketClient extends import_smithy_client.Client {
174
181
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
175
182
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
176
183
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
177
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
184
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
178
185
  super(_config_8);
179
186
  this.config = _config_8;
180
187
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -202,8 +209,6 @@ var _BraketClient = class _BraketClient extends import_smithy_client.Client {
202
209
  super.destroy();
203
210
  }
204
211
  };
205
- __name(_BraketClient, "BraketClient");
206
- var BraketClient = _BraketClient;
207
212
 
208
213
  // src/Braket.ts
209
214
 
@@ -221,7 +226,10 @@ var import_uuid = require("uuid");
221
226
 
222
227
  // src/models/BraketServiceException.ts
223
228
 
224
- var _BraketServiceException = class _BraketServiceException extends import_smithy_client.ServiceException {
229
+ var BraketServiceException = class _BraketServiceException extends import_smithy_client.ServiceException {
230
+ static {
231
+ __name(this, "BraketServiceException");
232
+ }
225
233
  /**
226
234
  * @internal
227
235
  */
@@ -230,11 +238,14 @@ var _BraketServiceException = class _BraketServiceException extends import_smith
230
238
  Object.setPrototypeOf(this, _BraketServiceException.prototype);
231
239
  }
232
240
  };
233
- __name(_BraketServiceException, "BraketServiceException");
234
- var BraketServiceException = _BraketServiceException;
235
241
 
236
242
  // src/models/models_0.ts
237
- var _AccessDeniedException = class _AccessDeniedException extends BraketServiceException {
243
+ var AccessDeniedException = class _AccessDeniedException extends BraketServiceException {
244
+ static {
245
+ __name(this, "AccessDeniedException");
246
+ }
247
+ name = "AccessDeniedException";
248
+ $fault = "client";
238
249
  /**
239
250
  * @internal
240
251
  */
@@ -244,13 +255,9 @@ var _AccessDeniedException = class _AccessDeniedException extends BraketServiceE
244
255
  $fault: "client",
245
256
  ...opts
246
257
  });
247
- this.name = "AccessDeniedException";
248
- this.$fault = "client";
249
258
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
250
259
  }
251
260
  };
252
- __name(_AccessDeniedException, "AccessDeniedException");
253
- var AccessDeniedException = _AccessDeniedException;
254
261
  var CompressionType = {
255
262
  GZIP: "GZIP",
256
263
  NONE: "NONE"
@@ -275,7 +282,12 @@ var DeviceType = {
275
282
  QPU: "QPU",
276
283
  SIMULATOR: "SIMULATOR"
277
284
  };
278
- var _InternalServiceException = class _InternalServiceException extends BraketServiceException {
285
+ var InternalServiceException = class _InternalServiceException extends BraketServiceException {
286
+ static {
287
+ __name(this, "InternalServiceException");
288
+ }
289
+ name = "InternalServiceException";
290
+ $fault = "server";
279
291
  /**
280
292
  * @internal
281
293
  */
@@ -285,14 +297,15 @@ var _InternalServiceException = class _InternalServiceException extends BraketSe
285
297
  $fault: "server",
286
298
  ...opts
287
299
  });
288
- this.name = "InternalServiceException";
289
- this.$fault = "server";
290
300
  Object.setPrototypeOf(this, _InternalServiceException.prototype);
291
301
  }
292
302
  };
293
- __name(_InternalServiceException, "InternalServiceException");
294
- var InternalServiceException = _InternalServiceException;
295
- var _ResourceNotFoundException = class _ResourceNotFoundException extends BraketServiceException {
303
+ var ResourceNotFoundException = class _ResourceNotFoundException extends BraketServiceException {
304
+ static {
305
+ __name(this, "ResourceNotFoundException");
306
+ }
307
+ name = "ResourceNotFoundException";
308
+ $fault = "client";
296
309
  /**
297
310
  * @internal
298
311
  */
@@ -302,14 +315,15 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Braket
302
315
  $fault: "client",
303
316
  ...opts
304
317
  });
305
- this.name = "ResourceNotFoundException";
306
- this.$fault = "client";
307
318
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
308
319
  }
309
320
  };
310
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
311
- var ResourceNotFoundException = _ResourceNotFoundException;
312
- var _ThrottlingException = class _ThrottlingException extends BraketServiceException {
321
+ var ThrottlingException = class _ThrottlingException extends BraketServiceException {
322
+ static {
323
+ __name(this, "ThrottlingException");
324
+ }
325
+ name = "ThrottlingException";
326
+ $fault = "client";
313
327
  /**
314
328
  * @internal
315
329
  */
@@ -319,14 +333,15 @@ var _ThrottlingException = class _ThrottlingException extends BraketServiceExcep
319
333
  $fault: "client",
320
334
  ...opts
321
335
  });
322
- this.name = "ThrottlingException";
323
- this.$fault = "client";
324
336
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
325
337
  }
326
338
  };
327
- __name(_ThrottlingException, "ThrottlingException");
328
- var ThrottlingException = _ThrottlingException;
329
- var _ValidationException = class _ValidationException extends BraketServiceException {
339
+ var ValidationException = class _ValidationException extends BraketServiceException {
340
+ static {
341
+ __name(this, "ValidationException");
342
+ }
343
+ name = "ValidationException";
344
+ $fault = "client";
330
345
  /**
331
346
  * @internal
332
347
  */
@@ -336,18 +351,19 @@ var _ValidationException = class _ValidationException extends BraketServiceExcep
336
351
  $fault: "client",
337
352
  ...opts
338
353
  });
339
- this.name = "ValidationException";
340
- this.$fault = "client";
341
354
  Object.setPrototypeOf(this, _ValidationException.prototype);
342
355
  }
343
356
  };
344
- __name(_ValidationException, "ValidationException");
345
- var ValidationException = _ValidationException;
346
357
  var CancellationStatus = {
347
358
  CANCELLED: "CANCELLED",
348
359
  CANCELLING: "CANCELLING"
349
360
  };
350
- var _ConflictException = class _ConflictException extends BraketServiceException {
361
+ var ConflictException = class _ConflictException extends BraketServiceException {
362
+ static {
363
+ __name(this, "ConflictException");
364
+ }
365
+ name = "ConflictException";
366
+ $fault = "client";
351
367
  /**
352
368
  * @internal
353
369
  */
@@ -357,13 +373,9 @@ var _ConflictException = class _ConflictException extends BraketServiceException
357
373
  $fault: "client",
358
374
  ...opts
359
375
  });
360
- this.name = "ConflictException";
361
- this.$fault = "client";
362
376
  Object.setPrototypeOf(this, _ConflictException.prototype);
363
377
  }
364
378
  };
365
- __name(_ConflictException, "ConflictException");
366
- var ConflictException = _ConflictException;
367
379
  var _InstanceType = {
368
380
  ML_C4_2XLARGE: "ml.c4.2xlarge",
369
381
  ML_C4_4XLARGE: "ml.c4.4xlarge",
@@ -405,7 +417,12 @@ var _InstanceType = {
405
417
  ML_P3_8XLARGE: "ml.p3.8xlarge",
406
418
  ML_P4D_24XLARGE: "ml.p4d.24xlarge"
407
419
  };
408
- var _DeviceOfflineException = class _DeviceOfflineException extends BraketServiceException {
420
+ var DeviceOfflineException = class _DeviceOfflineException extends BraketServiceException {
421
+ static {
422
+ __name(this, "DeviceOfflineException");
423
+ }
424
+ name = "DeviceOfflineException";
425
+ $fault = "client";
409
426
  /**
410
427
  * @internal
411
428
  */
@@ -415,14 +432,15 @@ var _DeviceOfflineException = class _DeviceOfflineException extends BraketServic
415
432
  $fault: "client",
416
433
  ...opts
417
434
  });
418
- this.name = "DeviceOfflineException";
419
- this.$fault = "client";
420
435
  Object.setPrototypeOf(this, _DeviceOfflineException.prototype);
421
436
  }
422
437
  };
423
- __name(_DeviceOfflineException, "DeviceOfflineException");
424
- var DeviceOfflineException = _DeviceOfflineException;
425
- var _DeviceRetiredException = class _DeviceRetiredException extends BraketServiceException {
438
+ var DeviceRetiredException = class _DeviceRetiredException extends BraketServiceException {
439
+ static {
440
+ __name(this, "DeviceRetiredException");
441
+ }
442
+ name = "DeviceRetiredException";
443
+ $fault = "client";
426
444
  /**
427
445
  * @internal
428
446
  */
@@ -432,14 +450,15 @@ var _DeviceRetiredException = class _DeviceRetiredException extends BraketServic
432
450
  $fault: "client",
433
451
  ...opts
434
452
  });
435
- this.name = "DeviceRetiredException";
436
- this.$fault = "client";
437
453
  Object.setPrototypeOf(this, _DeviceRetiredException.prototype);
438
454
  }
439
455
  };
440
- __name(_DeviceRetiredException, "DeviceRetiredException");
441
- var DeviceRetiredException = _DeviceRetiredException;
442
- var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BraketServiceException {
456
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BraketServiceException {
457
+ static {
458
+ __name(this, "ServiceQuotaExceededException");
459
+ }
460
+ name = "ServiceQuotaExceededException";
461
+ $fault = "client";
443
462
  /**
444
463
  * @internal
445
464
  */
@@ -449,13 +468,9 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
449
468
  $fault: "client",
450
469
  ...opts
451
470
  });
452
- this.name = "ServiceQuotaExceededException";
453
- this.$fault = "client";
454
471
  Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
455
472
  }
456
473
  };
457
- __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
458
- var ServiceQuotaExceededException = _ServiceQuotaExceededException;
459
474
  var HybridJobAdditionalAttributeName = {
460
475
  QUEUE_INFO: "QueueInfo"
461
476
  };
@@ -1147,183 +1162,196 @@ var _aAN = "additionalAttributeNames";
1147
1162
  var _tK = "tagKeys";
1148
1163
 
1149
1164
  // src/commands/CancelJobCommand.ts
1150
- var _CancelJobCommand = class _CancelJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1165
+ var CancelJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1151
1166
  return [
1152
1167
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1153
1168
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1154
1169
  ];
1155
1170
  }).s("Braket", "CancelJob", {}).n("BraketClient", "CancelJobCommand").f(void 0, void 0).ser(se_CancelJobCommand).de(de_CancelJobCommand).build() {
1171
+ static {
1172
+ __name(this, "CancelJobCommand");
1173
+ }
1156
1174
  };
1157
- __name(_CancelJobCommand, "CancelJobCommand");
1158
- var CancelJobCommand = _CancelJobCommand;
1159
1175
 
1160
1176
  // src/commands/CancelQuantumTaskCommand.ts
1161
1177
 
1162
1178
 
1163
1179
 
1164
- var _CancelQuantumTaskCommand = class _CancelQuantumTaskCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1180
+ var CancelQuantumTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1165
1181
  return [
1166
1182
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1167
1183
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1168
1184
  ];
1169
1185
  }).s("Braket", "CancelQuantumTask", {}).n("BraketClient", "CancelQuantumTaskCommand").f(void 0, void 0).ser(se_CancelQuantumTaskCommand).de(de_CancelQuantumTaskCommand).build() {
1186
+ static {
1187
+ __name(this, "CancelQuantumTaskCommand");
1188
+ }
1170
1189
  };
1171
- __name(_CancelQuantumTaskCommand, "CancelQuantumTaskCommand");
1172
- var CancelQuantumTaskCommand = _CancelQuantumTaskCommand;
1173
1190
 
1174
1191
  // src/commands/CreateJobCommand.ts
1175
1192
 
1176
1193
 
1177
1194
 
1178
- var _CreateJobCommand = class _CreateJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1195
+ var CreateJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1179
1196
  return [
1180
1197
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1181
1198
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1182
1199
  ];
1183
1200
  }).s("Braket", "CreateJob", {}).n("BraketClient", "CreateJobCommand").f(void 0, void 0).ser(se_CreateJobCommand).de(de_CreateJobCommand).build() {
1201
+ static {
1202
+ __name(this, "CreateJobCommand");
1203
+ }
1184
1204
  };
1185
- __name(_CreateJobCommand, "CreateJobCommand");
1186
- var CreateJobCommand = _CreateJobCommand;
1187
1205
 
1188
1206
  // src/commands/CreateQuantumTaskCommand.ts
1189
1207
 
1190
1208
 
1191
1209
 
1192
- var _CreateQuantumTaskCommand = class _CreateQuantumTaskCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1210
+ var CreateQuantumTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1193
1211
  return [
1194
1212
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1195
1213
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1196
1214
  ];
1197
1215
  }).s("Braket", "CreateQuantumTask", {}).n("BraketClient", "CreateQuantumTaskCommand").f(void 0, void 0).ser(se_CreateQuantumTaskCommand).de(de_CreateQuantumTaskCommand).build() {
1216
+ static {
1217
+ __name(this, "CreateQuantumTaskCommand");
1218
+ }
1198
1219
  };
1199
- __name(_CreateQuantumTaskCommand, "CreateQuantumTaskCommand");
1200
- var CreateQuantumTaskCommand = _CreateQuantumTaskCommand;
1201
1220
 
1202
1221
  // src/commands/GetDeviceCommand.ts
1203
1222
 
1204
1223
 
1205
1224
 
1206
- var _GetDeviceCommand = class _GetDeviceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1225
+ var GetDeviceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1207
1226
  return [
1208
1227
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1209
1228
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1210
1229
  ];
1211
1230
  }).s("Braket", "GetDevice", {}).n("BraketClient", "GetDeviceCommand").f(void 0, void 0).ser(se_GetDeviceCommand).de(de_GetDeviceCommand).build() {
1231
+ static {
1232
+ __name(this, "GetDeviceCommand");
1233
+ }
1212
1234
  };
1213
- __name(_GetDeviceCommand, "GetDeviceCommand");
1214
- var GetDeviceCommand = _GetDeviceCommand;
1215
1235
 
1216
1236
  // src/commands/GetJobCommand.ts
1217
1237
 
1218
1238
 
1219
1239
 
1220
- var _GetJobCommand = class _GetJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1240
+ var GetJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1221
1241
  return [
1222
1242
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1223
1243
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1224
1244
  ];
1225
1245
  }).s("Braket", "GetJob", {}).n("BraketClient", "GetJobCommand").f(void 0, void 0).ser(se_GetJobCommand).de(de_GetJobCommand).build() {
1246
+ static {
1247
+ __name(this, "GetJobCommand");
1248
+ }
1226
1249
  };
1227
- __name(_GetJobCommand, "GetJobCommand");
1228
- var GetJobCommand = _GetJobCommand;
1229
1250
 
1230
1251
  // src/commands/GetQuantumTaskCommand.ts
1231
1252
 
1232
1253
 
1233
1254
 
1234
- var _GetQuantumTaskCommand = class _GetQuantumTaskCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1255
+ var GetQuantumTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1235
1256
  return [
1236
1257
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1237
1258
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1238
1259
  ];
1239
1260
  }).s("Braket", "GetQuantumTask", {}).n("BraketClient", "GetQuantumTaskCommand").f(void 0, void 0).ser(se_GetQuantumTaskCommand).de(de_GetQuantumTaskCommand).build() {
1261
+ static {
1262
+ __name(this, "GetQuantumTaskCommand");
1263
+ }
1240
1264
  };
1241
- __name(_GetQuantumTaskCommand, "GetQuantumTaskCommand");
1242
- var GetQuantumTaskCommand = _GetQuantumTaskCommand;
1243
1265
 
1244
1266
  // src/commands/ListTagsForResourceCommand.ts
1245
1267
 
1246
1268
 
1247
1269
 
1248
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1270
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1249
1271
  return [
1250
1272
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1251
1273
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1252
1274
  ];
1253
1275
  }).s("Braket", "ListTagsForResource", {}).n("BraketClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1276
+ static {
1277
+ __name(this, "ListTagsForResourceCommand");
1278
+ }
1254
1279
  };
1255
- __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1256
- var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1257
1280
 
1258
1281
  // src/commands/SearchDevicesCommand.ts
1259
1282
 
1260
1283
 
1261
1284
 
1262
- var _SearchDevicesCommand = class _SearchDevicesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1285
+ var SearchDevicesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1263
1286
  return [
1264
1287
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1265
1288
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1266
1289
  ];
1267
1290
  }).s("Braket", "SearchDevices", {}).n("BraketClient", "SearchDevicesCommand").f(void 0, void 0).ser(se_SearchDevicesCommand).de(de_SearchDevicesCommand).build() {
1291
+ static {
1292
+ __name(this, "SearchDevicesCommand");
1293
+ }
1268
1294
  };
1269
- __name(_SearchDevicesCommand, "SearchDevicesCommand");
1270
- var SearchDevicesCommand = _SearchDevicesCommand;
1271
1295
 
1272
1296
  // src/commands/SearchJobsCommand.ts
1273
1297
 
1274
1298
 
1275
1299
 
1276
- var _SearchJobsCommand = class _SearchJobsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1300
+ var SearchJobsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1277
1301
  return [
1278
1302
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1279
1303
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1280
1304
  ];
1281
1305
  }).s("Braket", "SearchJobs", {}).n("BraketClient", "SearchJobsCommand").f(void 0, void 0).ser(se_SearchJobsCommand).de(de_SearchJobsCommand).build() {
1306
+ static {
1307
+ __name(this, "SearchJobsCommand");
1308
+ }
1282
1309
  };
1283
- __name(_SearchJobsCommand, "SearchJobsCommand");
1284
- var SearchJobsCommand = _SearchJobsCommand;
1285
1310
 
1286
1311
  // src/commands/SearchQuantumTasksCommand.ts
1287
1312
 
1288
1313
 
1289
1314
 
1290
- var _SearchQuantumTasksCommand = class _SearchQuantumTasksCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1315
+ var SearchQuantumTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1291
1316
  return [
1292
1317
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1293
1318
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1294
1319
  ];
1295
1320
  }).s("Braket", "SearchQuantumTasks", {}).n("BraketClient", "SearchQuantumTasksCommand").f(void 0, void 0).ser(se_SearchQuantumTasksCommand).de(de_SearchQuantumTasksCommand).build() {
1321
+ static {
1322
+ __name(this, "SearchQuantumTasksCommand");
1323
+ }
1296
1324
  };
1297
- __name(_SearchQuantumTasksCommand, "SearchQuantumTasksCommand");
1298
- var SearchQuantumTasksCommand = _SearchQuantumTasksCommand;
1299
1325
 
1300
1326
  // src/commands/TagResourceCommand.ts
1301
1327
 
1302
1328
 
1303
1329
 
1304
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1330
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1305
1331
  return [
1306
1332
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1307
1333
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1308
1334
  ];
1309
1335
  }).s("Braket", "TagResource", {}).n("BraketClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1336
+ static {
1337
+ __name(this, "TagResourceCommand");
1338
+ }
1310
1339
  };
1311
- __name(_TagResourceCommand, "TagResourceCommand");
1312
- var TagResourceCommand = _TagResourceCommand;
1313
1340
 
1314
1341
  // src/commands/UntagResourceCommand.ts
1315
1342
 
1316
1343
 
1317
1344
 
1318
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1345
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1319
1346
  return [
1320
1347
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1321
1348
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1322
1349
  ];
1323
1350
  }).s("Braket", "UntagResource", {}).n("BraketClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1351
+ static {
1352
+ __name(this, "UntagResourceCommand");
1353
+ }
1324
1354
  };
1325
- __name(_UntagResourceCommand, "UntagResourceCommand");
1326
- var UntagResourceCommand = _UntagResourceCommand;
1327
1355
 
1328
1356
  // src/Braket.ts
1329
1357
  var commands = {
@@ -1341,10 +1369,11 @@ var commands = {
1341
1369
  TagResourceCommand,
1342
1370
  UntagResourceCommand
1343
1371
  };
1344
- var _Braket = class _Braket extends BraketClient {
1372
+ var Braket = class extends BraketClient {
1373
+ static {
1374
+ __name(this, "Braket");
1375
+ }
1345
1376
  };
1346
- __name(_Braket, "Braket");
1347
- var Braket = _Braket;
1348
1377
  (0, import_smithy_client.createAggregatedClient)(commands, Braket);
1349
1378
 
1350
1379
  // src/pagination/SearchDevicesPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class BraketClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,13 +1,13 @@
1
1
  import { BraketServiceException as __BaseException } from "./BraketServiceException";
2
2
  export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
3
5
  constructor(opts) {
4
6
  super({
5
7
  name: "AccessDeniedException",
6
8
  $fault: "client",
7
9
  ...opts,
8
10
  });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
11
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
12
  }
13
13
  }
@@ -36,50 +36,50 @@ export const DeviceType = {
36
36
  SIMULATOR: "SIMULATOR",
37
37
  };
38
38
  export class InternalServiceException extends __BaseException {
39
+ name = "InternalServiceException";
40
+ $fault = "server";
39
41
  constructor(opts) {
40
42
  super({
41
43
  name: "InternalServiceException",
42
44
  $fault: "server",
43
45
  ...opts,
44
46
  });
45
- this.name = "InternalServiceException";
46
- this.$fault = "server";
47
47
  Object.setPrototypeOf(this, InternalServiceException.prototype);
48
48
  }
49
49
  }
50
50
  export class ResourceNotFoundException extends __BaseException {
51
+ name = "ResourceNotFoundException";
52
+ $fault = "client";
51
53
  constructor(opts) {
52
54
  super({
53
55
  name: "ResourceNotFoundException",
54
56
  $fault: "client",
55
57
  ...opts,
56
58
  });
57
- this.name = "ResourceNotFoundException";
58
- this.$fault = "client";
59
59
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
60
60
  }
61
61
  }
62
62
  export class ThrottlingException extends __BaseException {
63
+ name = "ThrottlingException";
64
+ $fault = "client";
63
65
  constructor(opts) {
64
66
  super({
65
67
  name: "ThrottlingException",
66
68
  $fault: "client",
67
69
  ...opts,
68
70
  });
69
- this.name = "ThrottlingException";
70
- this.$fault = "client";
71
71
  Object.setPrototypeOf(this, ThrottlingException.prototype);
72
72
  }
73
73
  }
74
74
  export class ValidationException extends __BaseException {
75
+ name = "ValidationException";
76
+ $fault = "client";
75
77
  constructor(opts) {
76
78
  super({
77
79
  name: "ValidationException",
78
80
  $fault: "client",
79
81
  ...opts,
80
82
  });
81
- this.name = "ValidationException";
82
- this.$fault = "client";
83
83
  Object.setPrototypeOf(this, ValidationException.prototype);
84
84
  }
85
85
  }
@@ -88,14 +88,14 @@ export const CancellationStatus = {
88
88
  CANCELLING: "CANCELLING",
89
89
  };
90
90
  export class ConflictException extends __BaseException {
91
+ name = "ConflictException";
92
+ $fault = "client";
91
93
  constructor(opts) {
92
94
  super({
93
95
  name: "ConflictException",
94
96
  $fault: "client",
95
97
  ...opts,
96
98
  });
97
- this.name = "ConflictException";
98
- this.$fault = "client";
99
99
  Object.setPrototypeOf(this, ConflictException.prototype);
100
100
  }
101
101
  }
@@ -141,38 +141,38 @@ export const _InstanceType = {
141
141
  ML_P4D_24XLARGE: "ml.p4d.24xlarge",
142
142
  };
143
143
  export class DeviceOfflineException extends __BaseException {
144
+ name = "DeviceOfflineException";
145
+ $fault = "client";
144
146
  constructor(opts) {
145
147
  super({
146
148
  name: "DeviceOfflineException",
147
149
  $fault: "client",
148
150
  ...opts,
149
151
  });
150
- this.name = "DeviceOfflineException";
151
- this.$fault = "client";
152
152
  Object.setPrototypeOf(this, DeviceOfflineException.prototype);
153
153
  }
154
154
  }
155
155
  export class DeviceRetiredException extends __BaseException {
156
+ name = "DeviceRetiredException";
157
+ $fault = "client";
156
158
  constructor(opts) {
157
159
  super({
158
160
  name: "DeviceRetiredException",
159
161
  $fault: "client",
160
162
  ...opts,
161
163
  });
162
- this.name = "DeviceRetiredException";
163
- this.$fault = "client";
164
164
  Object.setPrototypeOf(this, DeviceRetiredException.prototype);
165
165
  }
166
166
  }
167
167
  export class ServiceQuotaExceededException extends __BaseException {
168
+ name = "ServiceQuotaExceededException";
169
+ $fault = "client";
168
170
  constructor(opts) {
169
171
  super({
170
172
  name: "ServiceQuotaExceededException",
171
173
  $fault: "client",
172
174
  ...opts,
173
175
  });
174
- this.name = "ServiceQuotaExceededException";
175
- this.$fault = "client";
176
176
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
177
177
  }
178
178
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: BraketClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: BraketClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: BraketClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: BraketClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: BraketClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: BraketClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: BraketClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: BraketClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-braket",
3
3
  "description": "AWS SDK for JavaScript Braket Client for Node.js, Browser and React Native",
4
- "version": "3.721.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-braket",
@@ -20,58 +20,58 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.721.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.721.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "@types/uuid": "^9.0.1",
62
62
  "tslib": "^2.6.2",
63
63
  "uuid": "^9.0.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@tsconfig/node16": "16.1.3",
67
- "@types/node": "^16.18.96",
66
+ "@tsconfig/node18": "18.2.4",
67
+ "@types/node": "^18.19.69",
68
68
  "concurrently": "7.0.0",
69
69
  "downlevel-dts": "0.10.1",
70
70
  "rimraf": "3.0.2",
71
- "typescript": "~4.9.5"
71
+ "typescript": "~5.2.2"
72
72
  },
73
73
  "engines": {
74
- "node": ">=16.0.0"
74
+ "node": ">=18.0.0"
75
75
  },
76
76
  "typesVersions": {
77
77
  "<4.0": {