@aws-sdk/client-sagemaker-a2i-runtime 3.1075.0 → 3.1077.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,58 @@
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, defaultSageMakerA2IRuntimeHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { DeleteHumanLoop$, DescribeHumanLoop$, ListHumanLoops$, StartHumanLoop$, StopHumanLoop$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { SageMakerA2IRuntimeServiceException } = require("./models/SageMakerA2IRuntimeServiceException");
18
- exports.SageMakerA2IRuntimeServiceException = SageMakerA2IRuntimeServiceException;
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, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultSageMakerA2IRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "sagemaker",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultSageMakerA2IRuntimeHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,410 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://a2i-runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://a2i-runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://a2i-runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://a2i-runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class SageMakerA2IRuntimeServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, SageMakerA2IRuntimeServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class InternalServerException extends SageMakerA2IRuntimeServiceException {
141
+ name = "InternalServerException";
142
+ $fault = "server";
143
+ Message;
144
+ constructor(opts) {
145
+ super({
146
+ name: "InternalServerException",
147
+ $fault: "server",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, InternalServerException.prototype);
151
+ this.Message = opts.Message;
152
+ }
153
+ }
154
+ class ResourceNotFoundException extends SageMakerA2IRuntimeServiceException {
155
+ name = "ResourceNotFoundException";
156
+ $fault = "client";
157
+ Message;
158
+ constructor(opts) {
159
+ super({
160
+ name: "ResourceNotFoundException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
165
+ this.Message = opts.Message;
166
+ }
167
+ }
168
+ class ThrottlingException extends SageMakerA2IRuntimeServiceException {
169
+ name = "ThrottlingException";
170
+ $fault = "client";
171
+ Message;
172
+ constructor(opts) {
173
+ super({
174
+ name: "ThrottlingException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
179
+ this.Message = opts.Message;
180
+ }
181
+ }
182
+ class ValidationException extends SageMakerA2IRuntimeServiceException {
183
+ name = "ValidationException";
184
+ $fault = "client";
185
+ Message;
186
+ constructor(opts) {
187
+ super({
188
+ name: "ValidationException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, ValidationException.prototype);
193
+ this.Message = opts.Message;
194
+ }
195
+ }
196
+ class ConflictException extends SageMakerA2IRuntimeServiceException {
197
+ name = "ConflictException";
198
+ $fault = "client";
199
+ Message;
200
+ constructor(opts) {
201
+ super({
202
+ name: "ConflictException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ Object.setPrototypeOf(this, ConflictException.prototype);
207
+ this.Message = opts.Message;
208
+ }
209
+ }
210
+ class ServiceQuotaExceededException extends SageMakerA2IRuntimeServiceException {
211
+ name = "ServiceQuotaExceededException";
212
+ $fault = "client";
213
+ Message;
214
+ constructor(opts) {
215
+ super({
216
+ name: "ServiceQuotaExceededException",
217
+ $fault: "client",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
221
+ this.Message = opts.Message;
222
+ }
223
+ }
224
+
225
+ const _CC = "ContentClassifiers";
226
+ const _CE = "ConflictException";
227
+ const _CT = "CreationTime";
228
+ const _CTA = "CreationTimeAfter";
229
+ const _CTB = "CreationTimeBefore";
230
+ const _DA = "DataAttributes";
231
+ const _DHL = "DeleteHumanLoop";
232
+ const _DHLR = "DeleteHumanLoopRequest";
233
+ const _DHLRe = "DeleteHumanLoopResponse";
234
+ const _DHLRes = "DescribeHumanLoopRequest";
235
+ const _DHLResc = "DescribeHumanLoopResponse";
236
+ const _DHLe = "DescribeHumanLoop";
237
+ const _FC = "FailureCode";
238
+ const _FDA = "FlowDefinitionArn";
239
+ const _FR = "FailureReason";
240
+ const _HLA = "HumanLoopArn";
241
+ const _HLDA = "HumanLoopDataAttributes";
242
+ const _HLI = "HumanLoopInput";
243
+ const _HLN = "HumanLoopName";
244
+ const _HLO = "HumanLoopOutput";
245
+ const _HLS = "HumanLoopStatus";
246
+ const _HLSu = "HumanLoopSummary";
247
+ const _HLSum = "HumanLoopSummaries";
248
+ const _IC = "InputContent";
249
+ const _ISE = "InternalServerException";
250
+ const _LHL = "ListHumanLoops";
251
+ const _LHLR = "ListHumanLoopsRequest";
252
+ const _LHLRi = "ListHumanLoopsResponse";
253
+ const _M = "Message";
254
+ const _MR = "MaxResults";
255
+ const _NT = "NextToken";
256
+ const _OSU = "OutputS3Uri";
257
+ const _RNFE = "ResourceNotFoundException";
258
+ const _SHL = "StartHumanLoop";
259
+ const _SHLR = "StartHumanLoopRequest";
260
+ const _SHLRt = "StartHumanLoopResponse";
261
+ const _SHLRto = "StopHumanLoopRequest";
262
+ const _SHLRtop = "StopHumanLoopResponse";
263
+ const _SHLt = "StopHumanLoop";
264
+ const _SO = "SortOrder";
265
+ const _SQEE = "ServiceQuotaExceededException";
266
+ const _TE = "ThrottlingException";
267
+ const _VE = "ValidationException";
268
+ const _c = "client";
269
+ const _e = "error";
270
+ const _h = "http";
271
+ const _hE = "httpError";
272
+ const _hQ = "httpQuery";
273
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakera2iruntime";
274
+ const _se = "server";
275
+ const n0 = "com.amazonaws.sagemakera2iruntime";
276
+ const _s_registry = TypeRegistry.for(_s);
277
+ var SageMakerA2IRuntimeServiceException$ = [-3, _s, "SageMakerA2IRuntimeServiceException", 0, [], []];
278
+ _s_registry.registerError(SageMakerA2IRuntimeServiceException$, SageMakerA2IRuntimeServiceException);
279
+ const n0_registry = TypeRegistry.for(n0);
280
+ var ConflictException$ = [-3, n0, _CE,
281
+ { [_e]: _c, [_hE]: 409 },
282
+ [_M],
283
+ [0]
284
+ ];
285
+ n0_registry.registerError(ConflictException$, ConflictException);
286
+ var InternalServerException$ = [-3, n0, _ISE,
287
+ { [_e]: _se, [_hE]: 500 },
288
+ [_M],
289
+ [0]
290
+ ];
291
+ n0_registry.registerError(InternalServerException$, InternalServerException);
292
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
293
+ { [_e]: _c, [_hE]: 404 },
294
+ [_M],
295
+ [0]
296
+ ];
297
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
298
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
299
+ { [_e]: _c, [_hE]: 402 },
300
+ [_M],
301
+ [0]
302
+ ];
303
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
304
+ var ThrottlingException$ = [-3, n0, _TE,
305
+ { [_e]: _c, [_hE]: 429 },
306
+ [_M],
307
+ [0]
308
+ ];
309
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
310
+ var ValidationException$ = [-3, n0, _VE,
311
+ { [_e]: _c, [_hE]: 400 },
312
+ [_M],
313
+ [0]
314
+ ];
315
+ n0_registry.registerError(ValidationException$, ValidationException);
316
+ const errorTypeRegistries = [
317
+ _s_registry,
318
+ n0_registry,
319
+ ];
320
+ var DeleteHumanLoopRequest$ = [3, n0, _DHLR,
321
+ 0,
322
+ [_HLN],
323
+ [[0, 1]], 1
324
+ ];
325
+ var DeleteHumanLoopResponse$ = [3, n0, _DHLRe,
326
+ 0,
327
+ [],
328
+ []
329
+ ];
330
+ var DescribeHumanLoopRequest$ = [3, n0, _DHLRes,
331
+ 0,
332
+ [_HLN],
333
+ [[0, 1]], 1
334
+ ];
335
+ var DescribeHumanLoopResponse$ = [3, n0, _DHLResc,
336
+ 0,
337
+ [_CT, _HLS, _HLN, _HLA, _FDA, _FR, _FC, _HLO],
338
+ [5, 0, 0, 0, 0, 0, 0, () => HumanLoopOutput$], 5
339
+ ];
340
+ var HumanLoopDataAttributes$ = [3, n0, _HLDA,
341
+ 0,
342
+ [_CC],
343
+ [64 | 0], 1
344
+ ];
345
+ var HumanLoopInput$ = [3, n0, _HLI,
346
+ 0,
347
+ [_IC],
348
+ [0], 1
349
+ ];
350
+ var HumanLoopOutput$ = [3, n0, _HLO,
351
+ 0,
352
+ [_OSU],
353
+ [0], 1
354
+ ];
355
+ var HumanLoopSummary$ = [3, n0, _HLSu,
356
+ 0,
357
+ [_HLN, _HLS, _CT, _FR, _FDA],
358
+ [0, 0, 5, 0, 0]
359
+ ];
360
+ var ListHumanLoopsRequest$ = [3, n0, _LHLR,
361
+ 0,
362
+ [_FDA, _CTA, _CTB, _SO, _NT, _MR],
363
+ [[0, { [_hQ]: _FDA }], [5, { [_hQ]: _CTA }], [5, { [_hQ]: _CTB }], [0, { [_hQ]: _SO }], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]], 1
364
+ ];
365
+ var ListHumanLoopsResponse$ = [3, n0, _LHLRi,
366
+ 0,
367
+ [_HLSum, _NT],
368
+ [() => HumanLoopSummaries, 0], 1
369
+ ];
370
+ var StartHumanLoopRequest$ = [3, n0, _SHLR,
371
+ 0,
372
+ [_HLN, _FDA, _HLI, _DA],
373
+ [0, 0, () => HumanLoopInput$, () => HumanLoopDataAttributes$], 3
374
+ ];
375
+ var StartHumanLoopResponse$ = [3, n0, _SHLRt,
376
+ 0,
377
+ [_HLA],
378
+ [0]
379
+ ];
380
+ var StopHumanLoopRequest$ = [3, n0, _SHLRto,
381
+ 0,
382
+ [_HLN],
383
+ [0], 1
384
+ ];
385
+ var StopHumanLoopResponse$ = [3, n0, _SHLRtop,
386
+ 0,
387
+ [],
388
+ []
389
+ ];
390
+ var HumanLoopSummaries = [1, n0, _HLSum,
391
+ 0, () => HumanLoopSummary$
392
+ ];
393
+ var DeleteHumanLoop$ = [9, n0, _DHL,
394
+ { [_h]: ["DELETE", "/human-loops/{HumanLoopName}", 200] }, () => DeleteHumanLoopRequest$, () => DeleteHumanLoopResponse$
395
+ ];
396
+ var DescribeHumanLoop$ = [9, n0, _DHLe,
397
+ { [_h]: ["GET", "/human-loops/{HumanLoopName}", 200] }, () => DescribeHumanLoopRequest$, () => DescribeHumanLoopResponse$
398
+ ];
399
+ var ListHumanLoops$ = [9, n0, _LHL,
400
+ { [_h]: ["GET", "/human-loops", 200] }, () => ListHumanLoopsRequest$, () => ListHumanLoopsResponse$
401
+ ];
402
+ var StartHumanLoop$ = [9, n0, _SHL,
403
+ { [_h]: ["POST", "/human-loops", 200] }, () => StartHumanLoopRequest$, () => StartHumanLoopResponse$
404
+ ];
405
+ var StopHumanLoop$ = [9, n0, _SHLt,
406
+ { [_h]: ["POST", "/human-loops/stop", 200] }, () => StopHumanLoopRequest$, () => StopHumanLoopResponse$
407
+ ];
408
+
409
+ const getRuntimeConfig$1 = (config) => {
410
+ return {
411
+ apiVersion: "2019-11-07",
412
+ base64Decoder: config?.base64Decoder ?? fromBase64,
413
+ base64Encoder: config?.base64Encoder ?? toBase64,
414
+ disableHostPrefix: config?.disableHostPrefix ?? false,
415
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
416
+ extensions: config?.extensions ?? [],
417
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSageMakerA2IRuntimeHttpAuthSchemeProvider,
418
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
419
+ {
420
+ schemeId: "aws.auth#sigv4",
421
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
422
+ signer: new AwsSdkSigV4Signer(),
423
+ },
424
+ ],
425
+ logger: config?.logger ?? new NoOpLogger(),
426
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
427
+ protocolSettings: config?.protocolSettings ?? {
428
+ defaultNamespace: "com.amazonaws.sagemakera2iruntime",
429
+ errorTypeRegistries,
430
+ version: "2019-11-07",
431
+ serviceTarget: "AmazonSageMakerA2IRuntime",
432
+ },
433
+ serviceId: config?.serviceId ?? "SageMaker A2I Runtime",
434
+ sha256: config?.sha256 ?? Sha256,
435
+ urlParser: config?.urlParser ?? parseUrl,
436
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
437
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
438
+ };
439
+ };
440
+
441
+ const getRuntimeConfig = (config) => {
442
+ emitWarningIfUnsupportedVersion(process.version);
443
+ const defaultsMode = resolveDefaultsModeConfig(config);
444
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
445
+ const clientSharedValues = getRuntimeConfig$1(config);
446
+ emitWarningIfUnsupportedVersion$1(process.version);
447
+ const loaderConfig = {
448
+ profile: config?.profile,
449
+ logger: clientSharedValues.logger,
450
+ };
451
+ return {
452
+ ...clientSharedValues,
453
+ ...config,
454
+ runtime: "node",
455
+ defaultsMode,
456
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
457
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
458
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
459
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
460
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
461
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
462
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
463
+ retryMode: config?.retryMode ??
464
+ loadConfig({
465
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
466
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
467
+ }, config),
468
+ streamCollector: config?.streamCollector ?? streamCollector,
469
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
470
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
471
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
472
+ };
473
+ };
474
+
34
475
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
476
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
477
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -203,14 +644,48 @@ const ContentClassifier = {
203
644
  FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation",
204
645
  };
205
646
 
647
+ exports.ConflictException = ConflictException;
648
+ exports.ConflictException$ = ConflictException$;
206
649
  exports.ContentClassifier = ContentClassifier;
650
+ exports.DeleteHumanLoop$ = DeleteHumanLoop$;
207
651
  exports.DeleteHumanLoopCommand = DeleteHumanLoopCommand;
652
+ exports.DeleteHumanLoopRequest$ = DeleteHumanLoopRequest$;
653
+ exports.DeleteHumanLoopResponse$ = DeleteHumanLoopResponse$;
654
+ exports.DescribeHumanLoop$ = DescribeHumanLoop$;
208
655
  exports.DescribeHumanLoopCommand = DescribeHumanLoopCommand;
656
+ exports.DescribeHumanLoopRequest$ = DescribeHumanLoopRequest$;
657
+ exports.DescribeHumanLoopResponse$ = DescribeHumanLoopResponse$;
658
+ exports.HumanLoopDataAttributes$ = HumanLoopDataAttributes$;
659
+ exports.HumanLoopInput$ = HumanLoopInput$;
660
+ exports.HumanLoopOutput$ = HumanLoopOutput$;
209
661
  exports.HumanLoopStatus = HumanLoopStatus;
662
+ exports.HumanLoopSummary$ = HumanLoopSummary$;
663
+ exports.InternalServerException = InternalServerException;
664
+ exports.InternalServerException$ = InternalServerException$;
665
+ exports.ListHumanLoops$ = ListHumanLoops$;
210
666
  exports.ListHumanLoopsCommand = ListHumanLoopsCommand;
667
+ exports.ListHumanLoopsRequest$ = ListHumanLoopsRequest$;
668
+ exports.ListHumanLoopsResponse$ = ListHumanLoopsResponse$;
669
+ exports.ResourceNotFoundException = ResourceNotFoundException;
670
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
211
671
  exports.SageMakerA2IRuntime = SageMakerA2IRuntime;
212
672
  exports.SageMakerA2IRuntimeClient = SageMakerA2IRuntimeClient;
673
+ exports.SageMakerA2IRuntimeServiceException = SageMakerA2IRuntimeServiceException;
674
+ exports.SageMakerA2IRuntimeServiceException$ = SageMakerA2IRuntimeServiceException$;
675
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
676
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
213
677
  exports.SortOrder = SortOrder;
678
+ exports.StartHumanLoop$ = StartHumanLoop$;
214
679
  exports.StartHumanLoopCommand = StartHumanLoopCommand;
680
+ exports.StartHumanLoopRequest$ = StartHumanLoopRequest$;
681
+ exports.StartHumanLoopResponse$ = StartHumanLoopResponse$;
682
+ exports.StopHumanLoop$ = StopHumanLoop$;
215
683
  exports.StopHumanLoopCommand = StopHumanLoopCommand;
684
+ exports.StopHumanLoopRequest$ = StopHumanLoopRequest$;
685
+ exports.StopHumanLoopResponse$ = StopHumanLoopResponse$;
686
+ exports.ThrottlingException = ThrottlingException;
687
+ exports.ThrottlingException$ = ThrottlingException$;
688
+ exports.ValidationException = ValidationException;
689
+ exports.ValidationException$ = ValidationException$;
690
+ exports.errorTypeRegistries = errorTypeRegistries;
216
691
  exports.paginateListHumanLoops = paginateListHumanLoops;
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AmazonSageMakerA2IRuntime",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "SageMaker A2I Runtime",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -13,8 +13,7 @@ export declare const getRuntimeConfig: (config: SageMakerA2IRuntimeClientConfig)
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
- sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
16
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
17
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
18
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
19
  cacheMiddleware?: boolean | undefined;
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: SageMakerA2IRuntimeClientConfig)
24
23
  [setting: string]: unknown;
25
24
  };
26
25
  apiVersion: string;
26
+ sha256: import("@smithy/types").HashConstructor;
27
27
  urlParser: import("@smithy/types").UrlParser;
28
28
  base64Decoder: import("@smithy/types").Decoder;
29
29
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -14,8 +14,7 @@ export declare const getRuntimeConfig: (config: SageMakerA2IRuntimeClientConfig)
14
14
  region: string | import("@smithy/types").Provider<string>;
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
- sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
20
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: SageMakerA2IRuntimeClientConfig)
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ import type { SageMakerA2IRuntimeClientConfig } from "./SageMakerA2IRuntimeClien
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: SageMakerA2IRuntimeClientConfig) => {
6
6
  runtime: string;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
8
  cacheMiddleware?: boolean;
10
9
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
@@ -13,9 +12,10 @@ export declare const getRuntimeConfig: (config: SageMakerA2IRuntimeClientConfig)
13
12
  [setting: string]: unknown;
14
13
  };
15
14
  apiVersion: string;
15
+ sha256: import("@smithy/types").HashConstructor;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
20
  base64Encoder: (_input: Uint8Array | string) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: SageMakerA2IRuntimeClientConfig)
21
21
  defaultNamespace?: string;
22
22
  };
23
23
  serviceId: string;
24
+ sha256: import("@smithy/types").HashConstructor;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
26
27
  utf8Encoder: (input: Uint8Array | string) => string;