@aws-sdk/client-bedrock-data-automation-runtime 3.1074.0 → 3.1076.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = 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, defaultBedrockDataAutomationRuntimeHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { GetDataAutomationStatus$, InvokeDataAutomationAsync$, InvokeDataAutomation$, ListTagsForResource$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { BedrockDataAutomationRuntimeServiceException } = require("./models/BedrockDataAutomationRuntimeServiceException");
18
- exports.BedrockDataAutomationRuntimeServiceException = BedrockDataAutomationRuntimeServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultBedrockDataAutomationRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "bedrock",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultBedrockDataAutomationRuntimeHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,525 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://bedrock-data-automation-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://bedrock-data-automation-runtime-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://bedrock-data-automation-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://bedrock-data-automation-runtime.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class BedrockDataAutomationRuntimeServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, BedrockDataAutomationRuntimeServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends BedrockDataAutomationRuntimeServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ constructor(opts) {
143
+ super({
144
+ name: "AccessDeniedException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
149
+ }
150
+ }
151
+ class InternalServerException extends BedrockDataAutomationRuntimeServiceException {
152
+ name = "InternalServerException";
153
+ $fault = "server";
154
+ constructor(opts) {
155
+ super({
156
+ name: "InternalServerException",
157
+ $fault: "server",
158
+ ...opts,
159
+ });
160
+ Object.setPrototypeOf(this, InternalServerException.prototype);
161
+ }
162
+ }
163
+ class ResourceNotFoundException extends BedrockDataAutomationRuntimeServiceException {
164
+ name = "ResourceNotFoundException";
165
+ $fault = "client";
166
+ constructor(opts) {
167
+ super({
168
+ name: "ResourceNotFoundException",
169
+ $fault: "client",
170
+ ...opts,
171
+ });
172
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
173
+ }
174
+ }
175
+ class ThrottlingException extends BedrockDataAutomationRuntimeServiceException {
176
+ name = "ThrottlingException";
177
+ $fault = "client";
178
+ constructor(opts) {
179
+ super({
180
+ name: "ThrottlingException",
181
+ $fault: "client",
182
+ ...opts,
183
+ });
184
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
185
+ }
186
+ }
187
+ class ValidationException extends BedrockDataAutomationRuntimeServiceException {
188
+ name = "ValidationException";
189
+ $fault = "client";
190
+ constructor(opts) {
191
+ super({
192
+ name: "ValidationException",
193
+ $fault: "client",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, ValidationException.prototype);
197
+ }
198
+ }
199
+ class ServiceQuotaExceededException extends BedrockDataAutomationRuntimeServiceException {
200
+ name = "ServiceQuotaExceededException";
201
+ $fault = "client";
202
+ constructor(opts) {
203
+ super({
204
+ name: "ServiceQuotaExceededException",
205
+ $fault: "client",
206
+ ...opts,
207
+ });
208
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
209
+ }
210
+ }
211
+ class ServiceUnavailableException extends BedrockDataAutomationRuntimeServiceException {
212
+ name = "ServiceUnavailableException";
213
+ $fault = "server";
214
+ constructor(opts) {
215
+ super({
216
+ name: "ServiceUnavailableException",
217
+ $fault: "server",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
221
+ }
222
+ }
223
+
224
+ const _ADE = "AccessDeniedException";
225
+ const _APC = "AssetProcessingConfiguration";
226
+ const _B = "Blueprint";
227
+ const _BL = "BlueprintList";
228
+ const _DAC = "DataAutomationConfiguration";
229
+ const _EBC = "EventBridgeConfiguration";
230
+ const _EC = "EncryptionConfiguration";
231
+ const _GDAS = "GetDataAutomationStatus";
232
+ const _GDASR = "GetDataAutomationStatusRequest";
233
+ const _GDASRe = "GetDataAutomationStatusResponse";
234
+ const _IC = "InputConfiguration";
235
+ const _IDA = "InvokeDataAutomation";
236
+ const _IDAA = "InvokeDataAutomationAsync";
237
+ const _IDAAR = "InvokeDataAutomationAsyncRequest";
238
+ const _IDAARn = "InvokeDataAutomationAsyncResponse";
239
+ const _IDAR = "InvokeDataAutomationRequest";
240
+ const _IDARn = "InvokeDataAutomationResponse";
241
+ const _ISE = "InternalServerException";
242
+ const _LTFR = "ListTagsForResource";
243
+ const _LTFRR = "ListTagsForResourceRequest";
244
+ const _LTFRRi = "ListTagsForResourceResponse";
245
+ const _NC = "NotificationConfiguration";
246
+ const _OC = "OutputConfiguration";
247
+ const _OS = "OutputSegment";
248
+ const _OSL = "OutputSegmentList";
249
+ const _RNFE = "ResourceNotFoundException";
250
+ const _SIC = "SyncInputConfiguration";
251
+ const _SQEE = "ServiceQuotaExceededException";
252
+ const _SUE = "ServiceUnavailableException";
253
+ const _T = "Tag";
254
+ const _TE = "ThrottlingException";
255
+ const _TL = "TagList";
256
+ const _TR = "TagResource";
257
+ const _TRR = "TagResourceRequest";
258
+ const _TRRa = "TagResourceResponse";
259
+ const _TS = "TimestampSegment";
260
+ const _UR = "UntagResource";
261
+ const _URR = "UntagResourceRequest";
262
+ const _URRn = "UntagResourceResponse";
263
+ const _VAPC = "VideoAssetProcessingConfiguration";
264
+ const _VE = "ValidationException";
265
+ const _VSC = "VideoSegmentConfiguration";
266
+ const _aPC = "assetProcessingConfiguration";
267
+ const _b = "blueprints";
268
+ const _bA = "blueprintArn";
269
+ const _by = "bytes";
270
+ const _c = "client";
271
+ const _cO = "customOutput";
272
+ const _cOS = "customOutputStatus";
273
+ const _cT = "clientToken";
274
+ const _dAC = "dataAutomationConfiguration";
275
+ const _dAPA = "dataAutomationProjectArn";
276
+ const _dAPAa = "dataAutomationProfileArn";
277
+ const _e = "error";
278
+ const _eBC = "eventBridgeConfiguration";
279
+ const _eBE = "eventBridgeEnabled";
280
+ const _eC = "encryptionConfiguration";
281
+ const _eM = "errorMessage";
282
+ const _eT = "errorType";
283
+ const _eTM = "endTimeMillis";
284
+ const _hE = "httpError";
285
+ const _iA = "invocationArn";
286
+ const _iC = "inputConfiguration";
287
+ const _jCT = "jobCompletionTime";
288
+ const _jDIS = "jobDurationInSeconds";
289
+ const _jST = "jobSubmissionTime";
290
+ const _k = "key";
291
+ const _kEC = "kmsEncryptionContext";
292
+ const _kKI = "kmsKeyId";
293
+ const _m = "message";
294
+ const _nC = "notificationConfiguration";
295
+ const _oC = "outputConfiguration";
296
+ const _oS = "outputSegments";
297
+ const _rARN = "resourceARN";
298
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.bedrockdataautomationruntime";
299
+ const _sC = "segmentConfiguration";
300
+ const _sM = "semanticModality";
301
+ const _sO = "standardOutput";
302
+ const _sTM = "startTimeMillis";
303
+ const _sU = "s3Uri";
304
+ const _se = "server";
305
+ const _st = "stage";
306
+ const _sta = "status";
307
+ const _t = "tags";
308
+ const _tK = "tagKeys";
309
+ const _tS = "timestampSegment";
310
+ const _v = "video";
311
+ const _va = "value";
312
+ const _ve = "version";
313
+ const n0 = "com.amazonaws.bedrockdataautomationruntime";
314
+ const _s_registry = TypeRegistry.for(_s);
315
+ var BedrockDataAutomationRuntimeServiceException$ = [-3, _s, "BedrockDataAutomationRuntimeServiceException", 0, [], []];
316
+ _s_registry.registerError(BedrockDataAutomationRuntimeServiceException$, BedrockDataAutomationRuntimeServiceException);
317
+ const n0_registry = TypeRegistry.for(n0);
318
+ var AccessDeniedException$ = [-3, n0, _ADE,
319
+ { [_e]: _c, [_hE]: 403 },
320
+ [_m],
321
+ [0]
322
+ ];
323
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
324
+ var InternalServerException$ = [-3, n0, _ISE,
325
+ { [_e]: _se, [_hE]: 500 },
326
+ [_m],
327
+ [0]
328
+ ];
329
+ n0_registry.registerError(InternalServerException$, InternalServerException);
330
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
331
+ { [_e]: _c, [_hE]: 404 },
332
+ [_m],
333
+ [0]
334
+ ];
335
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
336
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
337
+ { [_e]: _c, [_hE]: 402 },
338
+ [_m],
339
+ [0]
340
+ ];
341
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
342
+ var ServiceUnavailableException$ = [-3, n0, _SUE,
343
+ { [_e]: _se, [_hE]: 503 },
344
+ [_m],
345
+ [0]
346
+ ];
347
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
348
+ var ThrottlingException$ = [-3, n0, _TE,
349
+ { [_e]: _c, [_hE]: 429 },
350
+ [_m],
351
+ [0]
352
+ ];
353
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
354
+ var ValidationException$ = [-3, n0, _VE,
355
+ { [_e]: _c, [_hE]: 400 },
356
+ [_m],
357
+ [0]
358
+ ];
359
+ n0_registry.registerError(ValidationException$, ValidationException);
360
+ const errorTypeRegistries = [
361
+ _s_registry,
362
+ n0_registry,
363
+ ];
364
+ var AssetProcessingConfiguration$ = [3, n0, _APC,
365
+ 0,
366
+ [_v],
367
+ [() => VideoAssetProcessingConfiguration$]
368
+ ];
369
+ var Blueprint$ = [3, n0, _B,
370
+ 0,
371
+ [_bA, _ve, _st],
372
+ [0, 0, 0], 1
373
+ ];
374
+ var DataAutomationConfiguration$ = [3, n0, _DAC,
375
+ 0,
376
+ [_dAPA, _st],
377
+ [0, 0], 1
378
+ ];
379
+ var EncryptionConfiguration$ = [3, n0, _EC,
380
+ 0,
381
+ [_kKI, _kEC],
382
+ [0, 128 | 0], 1
383
+ ];
384
+ var EventBridgeConfiguration$ = [3, n0, _EBC,
385
+ 0,
386
+ [_eBE],
387
+ [2], 1
388
+ ];
389
+ var GetDataAutomationStatusRequest$ = [3, n0, _GDASR,
390
+ 0,
391
+ [_iA],
392
+ [[0, 1]], 1
393
+ ];
394
+ var GetDataAutomationStatusResponse$ = [3, n0, _GDASRe,
395
+ 0,
396
+ [_sta, _eT, _eM, _oC, _jST, _jCT, _jDIS],
397
+ [0, 0, 0, () => OutputConfiguration$, 5, 5, 1]
398
+ ];
399
+ var InputConfiguration$ = [3, n0, _IC,
400
+ 0,
401
+ [_sU, _aPC],
402
+ [0, () => AssetProcessingConfiguration$], 1
403
+ ];
404
+ var InvokeDataAutomationAsyncRequest$ = [3, n0, _IDAAR,
405
+ 0,
406
+ [_iC, _oC, _dAPAa, _cT, _dAC, _eC, _nC, _b, _t],
407
+ [() => InputConfiguration$, () => OutputConfiguration$, 0, [0, 4], () => DataAutomationConfiguration$, () => EncryptionConfiguration$, () => NotificationConfiguration$, () => BlueprintList, () => TagList], 3
408
+ ];
409
+ var InvokeDataAutomationAsyncResponse$ = [3, n0, _IDAARn,
410
+ 0,
411
+ [_iA],
412
+ [0], 1
413
+ ];
414
+ var InvokeDataAutomationRequest$ = [3, n0, _IDAR,
415
+ 0,
416
+ [_iC, _dAPAa, _dAC, _b, _eC, _oC],
417
+ [() => SyncInputConfiguration$, 0, () => DataAutomationConfiguration$, () => BlueprintList, () => EncryptionConfiguration$, () => OutputConfiguration$], 2
418
+ ];
419
+ var InvokeDataAutomationResponse$ = [3, n0, _IDARn,
420
+ 0,
421
+ [_sM, _oC, _oS],
422
+ [0, () => OutputConfiguration$, () => OutputSegmentList], 1
423
+ ];
424
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
425
+ 0,
426
+ [_rARN],
427
+ [0], 1
428
+ ];
429
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
430
+ 0,
431
+ [_t],
432
+ [() => TagList]
433
+ ];
434
+ var NotificationConfiguration$ = [3, n0, _NC,
435
+ 0,
436
+ [_eBC],
437
+ [() => EventBridgeConfiguration$], 1
438
+ ];
439
+ var OutputConfiguration$ = [3, n0, _OC,
440
+ 0,
441
+ [_sU],
442
+ [0], 1
443
+ ];
444
+ var OutputSegment$ = [3, n0, _OS,
445
+ 0,
446
+ [_cOS, _cO, _sO],
447
+ [0, 0, 0]
448
+ ];
449
+ var SyncInputConfiguration$ = [3, n0, _SIC,
450
+ 0,
451
+ [_by, _sU],
452
+ [21, 0]
453
+ ];
454
+ var Tag$ = [3, n0, _T,
455
+ 0,
456
+ [_k, _va],
457
+ [0, 0], 2
458
+ ];
459
+ var TagResourceRequest$ = [3, n0, _TRR,
460
+ 0,
461
+ [_rARN, _t],
462
+ [0, () => TagList], 2
463
+ ];
464
+ var TagResourceResponse$ = [3, n0, _TRRa,
465
+ 0,
466
+ [],
467
+ []
468
+ ];
469
+ var TimestampSegment$ = [3, n0, _TS,
470
+ 0,
471
+ [_sTM, _eTM],
472
+ [1, 1], 2
473
+ ];
474
+ var UntagResourceRequest$ = [3, n0, _URR,
475
+ 0,
476
+ [_rARN, _tK],
477
+ [0, 64 | 0], 2
478
+ ];
479
+ var UntagResourceResponse$ = [3, n0, _URRn,
480
+ 0,
481
+ [],
482
+ []
483
+ ];
484
+ var VideoAssetProcessingConfiguration$ = [3, n0, _VAPC,
485
+ 0,
486
+ [_sC],
487
+ [() => VideoSegmentConfiguration$]
488
+ ];
489
+ var BlueprintList = [1, n0, _BL,
490
+ 0, () => Blueprint$
491
+ ];
492
+ var OutputSegmentList = [1, n0, _OSL,
493
+ 0, () => OutputSegment$
494
+ ];
495
+ var TagList = [1, n0, _TL,
496
+ 0, () => Tag$
497
+ ];
498
+ var VideoSegmentConfiguration$ = [4, n0, _VSC,
499
+ 0,
500
+ [_tS],
501
+ [() => TimestampSegment$]
502
+ ];
503
+ var GetDataAutomationStatus$ = [9, n0, _GDAS,
504
+ 0, () => GetDataAutomationStatusRequest$, () => GetDataAutomationStatusResponse$
505
+ ];
506
+ var InvokeDataAutomation$ = [9, n0, _IDA,
507
+ 0, () => InvokeDataAutomationRequest$, () => InvokeDataAutomationResponse$
508
+ ];
509
+ var InvokeDataAutomationAsync$ = [9, n0, _IDAA,
510
+ 2, () => InvokeDataAutomationAsyncRequest$, () => InvokeDataAutomationAsyncResponse$
511
+ ];
512
+ var ListTagsForResource$ = [9, n0, _LTFR,
513
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
514
+ ];
515
+ var TagResource$ = [9, n0, _TR,
516
+ 0, () => TagResourceRequest$, () => TagResourceResponse$
517
+ ];
518
+ var UntagResource$ = [9, n0, _UR,
519
+ 0, () => UntagResourceRequest$, () => UntagResourceResponse$
520
+ ];
521
+
522
+ const getRuntimeConfig$1 = (config) => {
523
+ return {
524
+ apiVersion: "2024-06-13",
525
+ base64Decoder: config?.base64Decoder ?? fromBase64,
526
+ base64Encoder: config?.base64Encoder ?? toBase64,
527
+ disableHostPrefix: config?.disableHostPrefix ?? false,
528
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
529
+ extensions: config?.extensions ?? [],
530
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultBedrockDataAutomationRuntimeHttpAuthSchemeProvider,
531
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
532
+ {
533
+ schemeId: "aws.auth#sigv4",
534
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
535
+ signer: new AwsSdkSigV4Signer(),
536
+ },
537
+ ],
538
+ logger: config?.logger ?? new NoOpLogger(),
539
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
540
+ protocolSettings: config?.protocolSettings ?? {
541
+ defaultNamespace: "com.amazonaws.bedrockdataautomationruntime",
542
+ errorTypeRegistries,
543
+ version: "2024-06-13",
544
+ serviceTarget: "AmazonBedrockKeystoneRuntimeService",
545
+ },
546
+ serviceId: config?.serviceId ?? "Bedrock Data Automation Runtime",
547
+ urlParser: config?.urlParser ?? parseUrl,
548
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
549
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
550
+ };
551
+ };
552
+
553
+ const getRuntimeConfig = (config) => {
554
+ emitWarningIfUnsupportedVersion(process.version);
555
+ const defaultsMode = resolveDefaultsModeConfig(config);
556
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
557
+ const clientSharedValues = getRuntimeConfig$1(config);
558
+ emitWarningIfUnsupportedVersion$1(process.version);
559
+ const loaderConfig = {
560
+ profile: config?.profile,
561
+ logger: clientSharedValues.logger,
562
+ signingName: "bedrock",
563
+ };
564
+ return {
565
+ ...clientSharedValues,
566
+ ...config,
567
+ runtime: "node",
568
+ defaultsMode,
569
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
570
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
571
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
572
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
573
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
574
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
575
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
576
+ retryMode: config?.retryMode ??
577
+ loadConfig({
578
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
579
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
580
+ }, config),
581
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
582
+ streamCollector: config?.streamCollector ?? streamCollector,
583
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
584
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
585
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
586
+ };
587
+ };
588
+
34
589
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
590
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
591
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -221,16 +776,65 @@ const SemanticModality = {
221
776
  VIDEO: "VIDEO",
222
777
  };
223
778
 
779
+ exports.AccessDeniedException = AccessDeniedException;
780
+ exports.AccessDeniedException$ = AccessDeniedException$;
781
+ exports.AssetProcessingConfiguration$ = AssetProcessingConfiguration$;
224
782
  exports.AutomationJobStatus = AutomationJobStatus;
225
783
  exports.BedrockDataAutomationRuntime = BedrockDataAutomationRuntime;
226
784
  exports.BedrockDataAutomationRuntimeClient = BedrockDataAutomationRuntimeClient;
785
+ exports.BedrockDataAutomationRuntimeServiceException = BedrockDataAutomationRuntimeServiceException;
786
+ exports.BedrockDataAutomationRuntimeServiceException$ = BedrockDataAutomationRuntimeServiceException$;
787
+ exports.Blueprint$ = Blueprint$;
227
788
  exports.BlueprintStage = BlueprintStage;
228
789
  exports.CustomOutputStatus = CustomOutputStatus;
790
+ exports.DataAutomationConfiguration$ = DataAutomationConfiguration$;
229
791
  exports.DataAutomationStage = DataAutomationStage;
792
+ exports.EncryptionConfiguration$ = EncryptionConfiguration$;
793
+ exports.EventBridgeConfiguration$ = EventBridgeConfiguration$;
794
+ exports.GetDataAutomationStatus$ = GetDataAutomationStatus$;
230
795
  exports.GetDataAutomationStatusCommand = GetDataAutomationStatusCommand;
796
+ exports.GetDataAutomationStatusRequest$ = GetDataAutomationStatusRequest$;
797
+ exports.GetDataAutomationStatusResponse$ = GetDataAutomationStatusResponse$;
798
+ exports.InputConfiguration$ = InputConfiguration$;
799
+ exports.InternalServerException = InternalServerException;
800
+ exports.InternalServerException$ = InternalServerException$;
801
+ exports.InvokeDataAutomation$ = InvokeDataAutomation$;
802
+ exports.InvokeDataAutomationAsync$ = InvokeDataAutomationAsync$;
231
803
  exports.InvokeDataAutomationAsyncCommand = InvokeDataAutomationAsyncCommand;
804
+ exports.InvokeDataAutomationAsyncRequest$ = InvokeDataAutomationAsyncRequest$;
805
+ exports.InvokeDataAutomationAsyncResponse$ = InvokeDataAutomationAsyncResponse$;
232
806
  exports.InvokeDataAutomationCommand = InvokeDataAutomationCommand;
807
+ exports.InvokeDataAutomationRequest$ = InvokeDataAutomationRequest$;
808
+ exports.InvokeDataAutomationResponse$ = InvokeDataAutomationResponse$;
809
+ exports.ListTagsForResource$ = ListTagsForResource$;
233
810
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
811
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
812
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
813
+ exports.NotificationConfiguration$ = NotificationConfiguration$;
814
+ exports.OutputConfiguration$ = OutputConfiguration$;
815
+ exports.OutputSegment$ = OutputSegment$;
816
+ exports.ResourceNotFoundException = ResourceNotFoundException;
817
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
234
818
  exports.SemanticModality = SemanticModality;
819
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
820
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
821
+ exports.ServiceUnavailableException = ServiceUnavailableException;
822
+ exports.ServiceUnavailableException$ = ServiceUnavailableException$;
823
+ exports.SyncInputConfiguration$ = SyncInputConfiguration$;
824
+ exports.Tag$ = Tag$;
825
+ exports.TagResource$ = TagResource$;
235
826
  exports.TagResourceCommand = TagResourceCommand;
827
+ exports.TagResourceRequest$ = TagResourceRequest$;
828
+ exports.TagResourceResponse$ = TagResourceResponse$;
829
+ exports.ThrottlingException = ThrottlingException;
830
+ exports.ThrottlingException$ = ThrottlingException$;
831
+ exports.TimestampSegment$ = TimestampSegment$;
832
+ exports.UntagResource$ = UntagResource$;
236
833
  exports.UntagResourceCommand = UntagResourceCommand;
834
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
835
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
836
+ exports.ValidationException = ValidationException;
837
+ exports.ValidationException$ = ValidationException$;
838
+ exports.VideoAssetProcessingConfiguration$ = VideoAssetProcessingConfiguration$;
839
+ exports.VideoSegmentConfiguration$ = VideoSegmentConfiguration$;
840
+ exports.errorTypeRegistries = errorTypeRegistries;
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: BedrockDataAutomationRuntimeClie
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  cacheMiddleware?: boolean | undefined;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: BedrockDataAutomationRuntimeClie
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
17
  sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;