@aws-sdk/client-sagemaker-a2i-runtime 3.956.0 → 3.958.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -34,10 +34,8 @@ workflows for those services. To learn how Amazon A2I uses these APIs, see <a hr
34
34
  Amazon A2I</a> in the Amazon SageMaker Developer Guide.</p>
35
35
 
36
36
  ## Installing
37
-
38
37
  To install this package, simply type add or install @aws-sdk/client-sagemaker-a2i-runtime
39
38
  using your favorite package manager:
40
-
41
39
  - `npm install @aws-sdk/client-sagemaker-a2i-runtime`
42
40
  - `yarn add @aws-sdk/client-sagemaker-a2i-runtime`
43
41
  - `pnpm add @aws-sdk/client-sagemaker-a2i-runtime`
@@ -73,9 +71,7 @@ To send a request, you:
73
71
  // a client can be shared by different commands.
74
72
  const client = new SageMakerA2IRuntimeClient({ region: "REGION" });
75
73
 
76
- const params = {
77
- /** input parameters */
78
- };
74
+ const params = { /** input parameters */ };
79
75
  const command = new ListHumanLoopsCommand(params);
80
76
  ```
81
77
 
@@ -234,7 +230,6 @@ DeleteHumanLoop
234
230
  </summary>
235
231
 
236
232
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-a2i-runtime/command/DeleteHumanLoopCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/DeleteHumanLoopCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/DeleteHumanLoopCommandOutput/)
237
-
238
233
  </details>
239
234
  <details>
240
235
  <summary>
@@ -242,7 +237,6 @@ DescribeHumanLoop
242
237
  </summary>
243
238
 
244
239
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-a2i-runtime/command/DescribeHumanLoopCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/DescribeHumanLoopCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/DescribeHumanLoopCommandOutput/)
245
-
246
240
  </details>
247
241
  <details>
248
242
  <summary>
@@ -250,7 +244,6 @@ ListHumanLoops
250
244
  </summary>
251
245
 
252
246
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-a2i-runtime/command/ListHumanLoopsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/ListHumanLoopsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/ListHumanLoopsCommandOutput/)
253
-
254
247
  </details>
255
248
  <details>
256
249
  <summary>
@@ -258,7 +251,6 @@ StartHumanLoop
258
251
  </summary>
259
252
 
260
253
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-a2i-runtime/command/StartHumanLoopCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/StartHumanLoopCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/StartHumanLoopCommandOutput/)
261
-
262
254
  </details>
263
255
  <details>
264
256
  <summary>
@@ -266,5 +258,4 @@ StopHumanLoop
266
258
  </summary>
267
259
 
268
260
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-a2i-runtime/command/StopHumanLoopCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/StopHumanLoopCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-a2i-runtime/Interface/StopHumanLoopCommandOutput/)
269
-
270
261
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultSageMakerA2IRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultSageMakerA2IRuntimeHttpAuthSchemeParametersProvider = defaultSageMakerA2IRuntimeHttpAuthSchemeParametersProvider;
package/dist-cjs/index.js CHANGED
@@ -253,116 +253,131 @@ const _hQ = "httpQuery";
253
253
  const _s = "server";
254
254
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakera2iruntime";
255
255
  const n0 = "com.amazonaws.sagemakera2iruntime";
256
- var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_M], [0]];
256
+ var ConflictException$ = [-3, n0, _CE,
257
+ { [_e]: _c, [_hE]: 409 },
258
+ [_M],
259
+ [0]
260
+ ];
257
261
  schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
258
- var DeleteHumanLoopRequest$ = [3, n0, _DHLR, 0, [_HLN], [[0, 1]]];
259
- var DeleteHumanLoopResponse$ = [3, n0, _DHLRe, 0, [], []];
260
- var DescribeHumanLoopRequest$ = [3, n0, _DHLRes, 0, [_HLN], [[0, 1]]];
261
- var DescribeHumanLoopResponse$ = [
262
- 3,
263
- n0,
264
- _DHLResc,
262
+ var DeleteHumanLoopRequest$ = [3, n0, _DHLR,
263
+ 0,
264
+ [_HLN],
265
+ [[0, 1]]
266
+ ];
267
+ var DeleteHumanLoopResponse$ = [3, n0, _DHLRe,
268
+ 0,
269
+ [],
270
+ []
271
+ ];
272
+ var DescribeHumanLoopRequest$ = [3, n0, _DHLRes,
273
+ 0,
274
+ [_HLN],
275
+ [[0, 1]]
276
+ ];
277
+ var DescribeHumanLoopResponse$ = [3, n0, _DHLResc,
265
278
  0,
266
279
  [_CT, _FR, _FC, _HLS, _HLN, _HLA, _FDA, _HLO],
267
- [5, 0, 0, 0, 0, 0, 0, () => HumanLoopOutput$],
280
+ [5, 0, 0, 0, 0, 0, 0, () => HumanLoopOutput$]
281
+ ];
282
+ var HumanLoopDataAttributes$ = [3, n0, _HLDA,
283
+ 0,
284
+ [_CC],
285
+ [64 | 0]
286
+ ];
287
+ var HumanLoopInput$ = [3, n0, _HLI,
288
+ 0,
289
+ [_IC],
290
+ [0]
291
+ ];
292
+ var HumanLoopOutput$ = [3, n0, _HLO,
293
+ 0,
294
+ [_OSU],
295
+ [0]
296
+ ];
297
+ var HumanLoopSummary$ = [3, n0, _HLSu,
298
+ 0,
299
+ [_HLN, _HLS, _CT, _FR, _FDA],
300
+ [0, 0, 5, 0, 0]
301
+ ];
302
+ var InternalServerException$ = [-3, n0, _ISE,
303
+ { [_e]: _s, [_hE]: 500 },
304
+ [_M],
305
+ [0]
268
306
  ];
269
- var HumanLoopDataAttributes$ = [3, n0, _HLDA, 0, [_CC], [64 | 0]];
270
- var HumanLoopInput$ = [3, n0, _HLI, 0, [_IC], [0]];
271
- var HumanLoopOutput$ = [3, n0, _HLO, 0, [_OSU], [0]];
272
- var HumanLoopSummary$ = [3, n0, _HLSu, 0, [_HLN, _HLS, _CT, _FR, _FDA], [0, 0, 5, 0, 0]];
273
- var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
274
307
  schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
275
- var ListHumanLoopsRequest$ = [
276
- 3,
277
- n0,
278
- _LHLR,
308
+ var ListHumanLoopsRequest$ = [3, n0, _LHLR,
279
309
  0,
280
310
  [_CTA, _CTB, _FDA, _SO, _NT, _MR],
281
- [
282
- [5, { [_hQ]: _CTA }],
283
- [5, { [_hQ]: _CTB }],
284
- [0, { [_hQ]: _FDA }],
285
- [0, { [_hQ]: _SO }],
286
- [0, { [_hQ]: _NT }],
287
- [1, { [_hQ]: _MR }],
288
- ],
311
+ [[5, { [_hQ]: _CTA }], [5, { [_hQ]: _CTB }], [0, { [_hQ]: _FDA }], [0, { [_hQ]: _SO }], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]]
289
312
  ];
290
- var ListHumanLoopsResponse$ = [
291
- 3,
292
- n0,
293
- _LHLRi,
313
+ var ListHumanLoopsResponse$ = [3, n0, _LHLRi,
294
314
  0,
295
315
  [_HLSum, _NT],
296
- [() => HumanLoopSummaries, 0],
316
+ [() => HumanLoopSummaries, 0]
317
+ ];
318
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
319
+ { [_e]: _c, [_hE]: 404 },
320
+ [_M],
321
+ [0]
297
322
  ];
298
- var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M], [0]];
299
323
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
300
- var ServiceQuotaExceededException$ = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_M], [0]];
324
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
325
+ { [_e]: _c, [_hE]: 402 },
326
+ [_M],
327
+ [0]
328
+ ];
301
329
  schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
302
- var StartHumanLoopRequest$ = [
303
- 3,
304
- n0,
305
- _SHLR,
330
+ var StartHumanLoopRequest$ = [3, n0, _SHLR,
306
331
  0,
307
332
  [_HLN, _FDA, _HLI, _DA],
308
- [0, 0, () => HumanLoopInput$, () => HumanLoopDataAttributes$],
333
+ [0, 0, () => HumanLoopInput$, () => HumanLoopDataAttributes$]
309
334
  ];
310
- var StartHumanLoopResponse$ = [3, n0, _SHLRt, 0, [_HLA], [0]];
311
- var StopHumanLoopRequest$ = [3, n0, _SHLRto, 0, [_HLN], [0]];
312
- var StopHumanLoopResponse$ = [3, n0, _SHLRtop, 0, [], []];
313
- var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M], [0]];
314
- schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
315
- var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
316
- schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
317
- var SageMakerA2IRuntimeServiceException$ = [
318
- -3,
319
- _sm,
320
- "SageMakerA2IRuntimeServiceException",
335
+ var StartHumanLoopResponse$ = [3, n0, _SHLRt,
336
+ 0,
337
+ [_HLA],
338
+ [0]
339
+ ];
340
+ var StopHumanLoopRequest$ = [3, n0, _SHLRto,
341
+ 0,
342
+ [_HLN],
343
+ [0]
344
+ ];
345
+ var StopHumanLoopResponse$ = [3, n0, _SHLRtop,
321
346
  0,
322
347
  [],
323
- [],
348
+ []
324
349
  ];
350
+ var ThrottlingException$ = [-3, n0, _TE,
351
+ { [_e]: _c, [_hE]: 429 },
352
+ [_M],
353
+ [0]
354
+ ];
355
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
356
+ var ValidationException$ = [-3, n0, _VE,
357
+ { [_e]: _c, [_hE]: 400 },
358
+ [_M],
359
+ [0]
360
+ ];
361
+ schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
362
+ var SageMakerA2IRuntimeServiceException$ = [-3, _sm, "SageMakerA2IRuntimeServiceException", 0, [], []];
325
363
  schema.TypeRegistry.for(_sm).registerError(SageMakerA2IRuntimeServiceException$, SageMakerA2IRuntimeServiceException);
326
- var HumanLoopSummaries = [1, n0, _HLSum, 0, () => HumanLoopSummary$];
327
- var DeleteHumanLoop$ = [
328
- 9,
329
- n0,
330
- _DHL,
331
- { [_h]: ["DELETE", "/human-loops/{HumanLoopName}", 200] },
332
- () => DeleteHumanLoopRequest$,
333
- () => DeleteHumanLoopResponse$,
364
+ var HumanLoopSummaries = [1, n0, _HLSum,
365
+ 0, () => HumanLoopSummary$
366
+ ];
367
+ var DeleteHumanLoop$ = [9, n0, _DHL,
368
+ { [_h]: ["DELETE", "/human-loops/{HumanLoopName}", 200] }, () => DeleteHumanLoopRequest$, () => DeleteHumanLoopResponse$
334
369
  ];
335
- var DescribeHumanLoop$ = [
336
- 9,
337
- n0,
338
- _DHLe,
339
- { [_h]: ["GET", "/human-loops/{HumanLoopName}", 200] },
340
- () => DescribeHumanLoopRequest$,
341
- () => DescribeHumanLoopResponse$,
370
+ var DescribeHumanLoop$ = [9, n0, _DHLe,
371
+ { [_h]: ["GET", "/human-loops/{HumanLoopName}", 200] }, () => DescribeHumanLoopRequest$, () => DescribeHumanLoopResponse$
342
372
  ];
343
- var ListHumanLoops$ = [
344
- 9,
345
- n0,
346
- _LHL,
347
- { [_h]: ["GET", "/human-loops", 200] },
348
- () => ListHumanLoopsRequest$,
349
- () => ListHumanLoopsResponse$,
373
+ var ListHumanLoops$ = [9, n0, _LHL,
374
+ { [_h]: ["GET", "/human-loops", 200] }, () => ListHumanLoopsRequest$, () => ListHumanLoopsResponse$
350
375
  ];
351
- var StartHumanLoop$ = [
352
- 9,
353
- n0,
354
- _SHL,
355
- { [_h]: ["POST", "/human-loops", 200] },
356
- () => StartHumanLoopRequest$,
357
- () => StartHumanLoopResponse$,
376
+ var StartHumanLoop$ = [9, n0, _SHL,
377
+ { [_h]: ["POST", "/human-loops", 200] }, () => StartHumanLoopRequest$, () => StartHumanLoopResponse$
358
378
  ];
359
- var StopHumanLoop$ = [
360
- 9,
361
- n0,
362
- _SHLt,
363
- { [_h]: ["POST", "/human-loops/stop", 200] },
364
- () => StopHumanLoopRequest$,
365
- () => StopHumanLoopResponse$,
379
+ var StopHumanLoop$ = [9, n0, _SHLt,
380
+ { [_h]: ["POST", "/human-loops/stop", 200] }, () => StopHumanLoopRequest$, () => StopHumanLoopResponse$
366
381
  ];
367
382
 
368
383
  class DeleteHumanLoopCommand extends smithyClient.Command
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
29
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
34
34
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
35
35
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
36
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
37
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
38
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
39
38
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
- region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
39
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
41
  retryMode: config?.retryMode ??
44
42
  (0, node_config_provider_1.loadConfig)({
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultSageMakerA2IRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
20
20
  defaultsMode,
21
21
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
24
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
25
  region: config?.region ?? invalidProvider("Region is missing"),
27
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
4
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
30
30
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
35
34
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
- region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
37
  retryMode: config?.retryMode ??
40
38
  loadNodeConfig({
@@ -52,115 +52,130 @@ const n0 = "com.amazonaws.sagemakera2iruntime";
52
52
  import { TypeRegistry } from "@smithy/core/schema";
53
53
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
54
54
  import { SageMakerA2IRuntimeServiceException } from "../models/SageMakerA2IRuntimeServiceException";
55
- export var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_M], [0]];
55
+ export var ConflictException$ = [-3, n0, _CE,
56
+ { [_e]: _c, [_hE]: 409 },
57
+ [_M],
58
+ [0]
59
+ ];
56
60
  TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
57
- export var DeleteHumanLoopRequest$ = [3, n0, _DHLR, 0, [_HLN], [[0, 1]]];
58
- export var DeleteHumanLoopResponse$ = [3, n0, _DHLRe, 0, [], []];
59
- export var DescribeHumanLoopRequest$ = [3, n0, _DHLRes, 0, [_HLN], [[0, 1]]];
60
- export var DescribeHumanLoopResponse$ = [
61
- 3,
62
- n0,
63
- _DHLResc,
61
+ export var DeleteHumanLoopRequest$ = [3, n0, _DHLR,
62
+ 0,
63
+ [_HLN],
64
+ [[0, 1]]
65
+ ];
66
+ export var DeleteHumanLoopResponse$ = [3, n0, _DHLRe,
67
+ 0,
68
+ [],
69
+ []
70
+ ];
71
+ export var DescribeHumanLoopRequest$ = [3, n0, _DHLRes,
72
+ 0,
73
+ [_HLN],
74
+ [[0, 1]]
75
+ ];
76
+ export var DescribeHumanLoopResponse$ = [3, n0, _DHLResc,
64
77
  0,
65
78
  [_CT, _FR, _FC, _HLS, _HLN, _HLA, _FDA, _HLO],
66
- [5, 0, 0, 0, 0, 0, 0, () => HumanLoopOutput$],
79
+ [5, 0, 0, 0, 0, 0, 0, () => HumanLoopOutput$]
80
+ ];
81
+ export var HumanLoopDataAttributes$ = [3, n0, _HLDA,
82
+ 0,
83
+ [_CC],
84
+ [64 | 0]
85
+ ];
86
+ export var HumanLoopInput$ = [3, n0, _HLI,
87
+ 0,
88
+ [_IC],
89
+ [0]
90
+ ];
91
+ export var HumanLoopOutput$ = [3, n0, _HLO,
92
+ 0,
93
+ [_OSU],
94
+ [0]
95
+ ];
96
+ export var HumanLoopSummary$ = [3, n0, _HLSu,
97
+ 0,
98
+ [_HLN, _HLS, _CT, _FR, _FDA],
99
+ [0, 0, 5, 0, 0]
100
+ ];
101
+ export var InternalServerException$ = [-3, n0, _ISE,
102
+ { [_e]: _s, [_hE]: 500 },
103
+ [_M],
104
+ [0]
67
105
  ];
68
- export var HumanLoopDataAttributes$ = [3, n0, _HLDA, 0, [_CC], [64 | 0]];
69
- export var HumanLoopInput$ = [3, n0, _HLI, 0, [_IC], [0]];
70
- export var HumanLoopOutput$ = [3, n0, _HLO, 0, [_OSU], [0]];
71
- export var HumanLoopSummary$ = [3, n0, _HLSu, 0, [_HLN, _HLS, _CT, _FR, _FDA], [0, 0, 5, 0, 0]];
72
- export var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
73
106
  TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
74
- export var ListHumanLoopsRequest$ = [
75
- 3,
76
- n0,
77
- _LHLR,
107
+ export var ListHumanLoopsRequest$ = [3, n0, _LHLR,
78
108
  0,
79
109
  [_CTA, _CTB, _FDA, _SO, _NT, _MR],
80
- [
81
- [5, { [_hQ]: _CTA }],
82
- [5, { [_hQ]: _CTB }],
83
- [0, { [_hQ]: _FDA }],
84
- [0, { [_hQ]: _SO }],
85
- [0, { [_hQ]: _NT }],
86
- [1, { [_hQ]: _MR }],
87
- ],
88
- ];
89
- export var ListHumanLoopsResponse$ = [
90
- 3,
91
- n0,
92
- _LHLRi,
110
+ [[5, { [_hQ]: _CTA }], [5, { [_hQ]: _CTB }], [0, { [_hQ]: _FDA }], [0, { [_hQ]: _SO }], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]]
111
+ ];
112
+ export var ListHumanLoopsResponse$ = [3, n0, _LHLRi,
93
113
  0,
94
114
  [_HLSum, _NT],
95
- [() => HumanLoopSummaries, 0],
115
+ [() => HumanLoopSummaries, 0]
116
+ ];
117
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
118
+ { [_e]: _c, [_hE]: 404 },
119
+ [_M],
120
+ [0]
96
121
  ];
97
- export var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M], [0]];
98
122
  TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
99
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_M], [0]];
123
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
124
+ { [_e]: _c, [_hE]: 402 },
125
+ [_M],
126
+ [0]
127
+ ];
100
128
  TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
101
- export var StartHumanLoopRequest$ = [
102
- 3,
103
- n0,
104
- _SHLR,
129
+ export var StartHumanLoopRequest$ = [3, n0, _SHLR,
105
130
  0,
106
131
  [_HLN, _FDA, _HLI, _DA],
107
- [0, 0, () => HumanLoopInput$, () => HumanLoopDataAttributes$],
132
+ [0, 0, () => HumanLoopInput$, () => HumanLoopDataAttributes$]
108
133
  ];
109
- export var StartHumanLoopResponse$ = [3, n0, _SHLRt, 0, [_HLA], [0]];
110
- export var StopHumanLoopRequest$ = [3, n0, _SHLRto, 0, [_HLN], [0]];
111
- export var StopHumanLoopResponse$ = [3, n0, _SHLRtop, 0, [], []];
112
- export var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M], [0]];
113
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
114
- export var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
115
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
116
- export var SageMakerA2IRuntimeServiceException$ = [
117
- -3,
118
- _sm,
119
- "SageMakerA2IRuntimeServiceException",
134
+ export var StartHumanLoopResponse$ = [3, n0, _SHLRt,
135
+ 0,
136
+ [_HLA],
137
+ [0]
138
+ ];
139
+ export var StopHumanLoopRequest$ = [3, n0, _SHLRto,
140
+ 0,
141
+ [_HLN],
142
+ [0]
143
+ ];
144
+ export var StopHumanLoopResponse$ = [3, n0, _SHLRtop,
120
145
  0,
121
146
  [],
122
- [],
147
+ []
123
148
  ];
149
+ export var ThrottlingException$ = [-3, n0, _TE,
150
+ { [_e]: _c, [_hE]: 429 },
151
+ [_M],
152
+ [0]
153
+ ];
154
+ TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
155
+ export var ValidationException$ = [-3, n0, _VE,
156
+ { [_e]: _c, [_hE]: 400 },
157
+ [_M],
158
+ [0]
159
+ ];
160
+ TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
161
+ export var SageMakerA2IRuntimeServiceException$ = [-3, _sm, "SageMakerA2IRuntimeServiceException", 0, [], []];
124
162
  TypeRegistry.for(_sm).registerError(SageMakerA2IRuntimeServiceException$, SageMakerA2IRuntimeServiceException);
125
163
  var ContentClassifiers = 64 | 0;
126
- var HumanLoopSummaries = [1, n0, _HLSum, 0, () => HumanLoopSummary$];
127
- export var DeleteHumanLoop$ = [
128
- 9,
129
- n0,
130
- _DHL,
131
- { [_h]: ["DELETE", "/human-loops/{HumanLoopName}", 200] },
132
- () => DeleteHumanLoopRequest$,
133
- () => DeleteHumanLoopResponse$,
134
- ];
135
- export var DescribeHumanLoop$ = [
136
- 9,
137
- n0,
138
- _DHLe,
139
- { [_h]: ["GET", "/human-loops/{HumanLoopName}", 200] },
140
- () => DescribeHumanLoopRequest$,
141
- () => DescribeHumanLoopResponse$,
142
- ];
143
- export var ListHumanLoops$ = [
144
- 9,
145
- n0,
146
- _LHL,
147
- { [_h]: ["GET", "/human-loops", 200] },
148
- () => ListHumanLoopsRequest$,
149
- () => ListHumanLoopsResponse$,
150
- ];
151
- export var StartHumanLoop$ = [
152
- 9,
153
- n0,
154
- _SHL,
155
- { [_h]: ["POST", "/human-loops", 200] },
156
- () => StartHumanLoopRequest$,
157
- () => StartHumanLoopResponse$,
158
- ];
159
- export var StopHumanLoop$ = [
160
- 9,
161
- n0,
162
- _SHLt,
163
- { [_h]: ["POST", "/human-loops/stop", 200] },
164
- () => StopHumanLoopRequest$,
165
- () => StopHumanLoopResponse$,
164
+ var HumanLoopSummaries = [1, n0, _HLSum,
165
+ 0, () => HumanLoopSummary$
166
+ ];
167
+ export var DeleteHumanLoop$ = [9, n0, _DHL,
168
+ { [_h]: ["DELETE", "/human-loops/{HumanLoopName}", 200] }, () => DeleteHumanLoopRequest$, () => DeleteHumanLoopResponse$
169
+ ];
170
+ export var DescribeHumanLoop$ = [9, n0, _DHLe,
171
+ { [_h]: ["GET", "/human-loops/{HumanLoopName}", 200] }, () => DescribeHumanLoopRequest$, () => DescribeHumanLoopResponse$
172
+ ];
173
+ export var ListHumanLoops$ = [9, n0, _LHL,
174
+ { [_h]: ["GET", "/human-loops", 200] }, () => ListHumanLoopsRequest$, () => ListHumanLoopsResponse$
175
+ ];
176
+ export var StartHumanLoop$ = [9, n0, _SHL,
177
+ { [_h]: ["POST", "/human-loops", 200] }, () => StartHumanLoopRequest$, () => StartHumanLoopResponse$
178
+ ];
179
+ export var StopHumanLoop$ = [9, n0, _SHLt,
180
+ { [_h]: ["POST", "/human-loops/stop", 200] }, () => StopHumanLoopRequest$, () => StopHumanLoopResponse$
166
181
  ];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-a2i-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker A2i Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.956.0",
4
+ "version": "3.958.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sagemaker-a2i-runtime",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
- "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
9
+ "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.956.0",
25
- "@aws-sdk/credential-provider-node": "3.956.0",
26
- "@aws-sdk/middleware-host-header": "3.956.0",
27
- "@aws-sdk/middleware-logger": "3.956.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.956.0",
29
- "@aws-sdk/middleware-user-agent": "3.956.0",
30
- "@aws-sdk/region-config-resolver": "3.956.0",
31
- "@aws-sdk/types": "3.956.0",
32
- "@aws-sdk/util-endpoints": "3.956.0",
33
- "@aws-sdk/util-user-agent-browser": "3.956.0",
34
- "@aws-sdk/util-user-agent-node": "3.956.0",
24
+ "@aws-sdk/core": "3.957.0",
25
+ "@aws-sdk/credential-provider-node": "3.958.0",
26
+ "@aws-sdk/middleware-host-header": "3.957.0",
27
+ "@aws-sdk/middleware-logger": "3.957.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.957.0",
29
+ "@aws-sdk/middleware-user-agent": "3.957.0",
30
+ "@aws-sdk/region-config-resolver": "3.957.0",
31
+ "@aws-sdk/types": "3.957.0",
32
+ "@aws-sdk/util-endpoints": "3.957.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.957.0",
34
+ "@aws-sdk/util-user-agent-node": "3.957.0",
35
35
  "@smithy/config-resolver": "^4.4.5",
36
36
  "@smithy/core": "^3.20.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.8",