@aws-sdk/client-bedrock-data-automation-runtime 3.936.0 → 3.937.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 +8 -0
- package/dist-cjs/index.js +97 -0
- package/dist-es/BedrockDataAutomationRuntime.js +2 -0
- package/dist-es/commands/InvokeDataAutomationCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +10 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/schemas/schemas_0.js +59 -1
- package/dist-types/BedrockDataAutomationRuntime.d.ts +7 -0
- package/dist-types/BedrockDataAutomationRuntimeClient.d.ts +3 -2
- package/dist-types/commands/InvokeDataAutomationCommand.d.ts +117 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +26 -0
- package/dist-types/models/errors.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +85 -1
- package/dist-types/schemas/schemas_0.d.ts +7 -0
- package/dist-types/ts3.4/BedrockDataAutomationRuntime.d.ts +17 -0
- package/dist-types/ts3.4/BedrockDataAutomationRuntimeClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/InvokeDataAutomationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +14 -0
- package/dist-types/ts3.4/models/errors.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -216,6 +216,14 @@ GetDataAutomationStatus
|
|
|
216
216
|
|
|
217
217
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation-runtime/command/GetDataAutomationStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/GetDataAutomationStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/GetDataAutomationStatusCommandOutput/)
|
|
218
218
|
|
|
219
|
+
</details>
|
|
220
|
+
<details>
|
|
221
|
+
<summary>
|
|
222
|
+
InvokeDataAutomation
|
|
223
|
+
</summary>
|
|
224
|
+
|
|
225
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-data-automation-runtime/command/InvokeDataAutomationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/InvokeDataAutomationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-data-automation-runtime/Interface/InvokeDataAutomationCommandOutput/)
|
|
226
|
+
|
|
219
227
|
</details>
|
|
220
228
|
<details>
|
|
221
229
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -189,6 +189,18 @@ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extend
|
|
|
189
189
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
+
let ServiceUnavailableException$1 = class ServiceUnavailableException extends BedrockDataAutomationRuntimeServiceException$1 {
|
|
193
|
+
name = "ServiceUnavailableException";
|
|
194
|
+
$fault = "server";
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "ServiceUnavailableException",
|
|
198
|
+
$fault: "server",
|
|
199
|
+
...opts,
|
|
200
|
+
});
|
|
201
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
192
204
|
|
|
193
205
|
const _ADE = "AccessDeniedException";
|
|
194
206
|
const _APC = "AssetProcessingConfiguration";
|
|
@@ -201,17 +213,24 @@ const _GDAS = "GetDataAutomationStatus";
|
|
|
201
213
|
const _GDASR = "GetDataAutomationStatusRequest";
|
|
202
214
|
const _GDASRe = "GetDataAutomationStatusResponse";
|
|
203
215
|
const _IC = "InputConfiguration";
|
|
216
|
+
const _IDA = "InvokeDataAutomation";
|
|
204
217
|
const _IDAA = "InvokeDataAutomationAsync";
|
|
205
218
|
const _IDAAR = "InvokeDataAutomationAsyncRequest";
|
|
206
219
|
const _IDAARn = "InvokeDataAutomationAsyncResponse";
|
|
220
|
+
const _IDAR = "InvokeDataAutomationRequest";
|
|
221
|
+
const _IDARn = "InvokeDataAutomationResponse";
|
|
207
222
|
const _ISE = "InternalServerException";
|
|
208
223
|
const _LTFR = "ListTagsForResource";
|
|
209
224
|
const _LTFRR = "ListTagsForResourceRequest";
|
|
210
225
|
const _LTFRRi = "ListTagsForResourceResponse";
|
|
211
226
|
const _NC = "NotificationConfiguration";
|
|
212
227
|
const _OC = "OutputConfiguration";
|
|
228
|
+
const _OS = "OutputSegment";
|
|
229
|
+
const _OSL = "OutputSegmentList";
|
|
213
230
|
const _RNFE = "ResourceNotFoundException";
|
|
231
|
+
const _SIC = "SyncInputConfiguration";
|
|
214
232
|
const _SQEE = "ServiceQuotaExceededException";
|
|
233
|
+
const _SUE = "ServiceUnavailableException";
|
|
215
234
|
const _T = "Tag";
|
|
216
235
|
const _TE = "ThrottlingException";
|
|
217
236
|
const _TL = "TagList";
|
|
@@ -228,7 +247,10 @@ const _VSC = "VideoSegmentConfiguration";
|
|
|
228
247
|
const _aPC = "assetProcessingConfiguration";
|
|
229
248
|
const _b = "blueprints";
|
|
230
249
|
const _bA = "blueprintArn";
|
|
250
|
+
const _by = "bytes";
|
|
231
251
|
const _c = "client";
|
|
252
|
+
const _cO = "customOutput";
|
|
253
|
+
const _cOS = "customOutputStatus";
|
|
232
254
|
const _cT = "clientToken";
|
|
233
255
|
const _dAC = "dataAutomationConfiguration";
|
|
234
256
|
const _dAPA = "dataAutomationProjectArn";
|
|
@@ -249,9 +271,12 @@ const _kKI = "kmsKeyId";
|
|
|
249
271
|
const _m = "message";
|
|
250
272
|
const _nC = "notificationConfiguration";
|
|
251
273
|
const _oC = "outputConfiguration";
|
|
274
|
+
const _oS = "outputSegments";
|
|
252
275
|
const _rARN = "resourceARN";
|
|
253
276
|
const _s = "stage";
|
|
254
277
|
const _sC = "segmentConfiguration";
|
|
278
|
+
const _sM = "semanticModality";
|
|
279
|
+
const _sO = "standardOutput";
|
|
255
280
|
const _sTM = "startTimeMillis";
|
|
256
281
|
const _sU = "s3Uri";
|
|
257
282
|
const _se = "server";
|
|
@@ -336,10 +361,33 @@ var InvokeDataAutomationAsyncRequest = [
|
|
|
336
361
|
],
|
|
337
362
|
];
|
|
338
363
|
var InvokeDataAutomationAsyncResponse = [3, n0, _IDAARn, 0, [_iA], [0]];
|
|
364
|
+
var InvokeDataAutomationRequest = [
|
|
365
|
+
3,
|
|
366
|
+
n0,
|
|
367
|
+
_IDAR,
|
|
368
|
+
0,
|
|
369
|
+
[_iC, _dAC, _b, _dAPAa, _eC],
|
|
370
|
+
[
|
|
371
|
+
() => SyncInputConfiguration,
|
|
372
|
+
() => DataAutomationConfiguration,
|
|
373
|
+
() => BlueprintList,
|
|
374
|
+
0,
|
|
375
|
+
() => EncryptionConfiguration,
|
|
376
|
+
],
|
|
377
|
+
];
|
|
378
|
+
var InvokeDataAutomationResponse = [
|
|
379
|
+
3,
|
|
380
|
+
n0,
|
|
381
|
+
_IDARn,
|
|
382
|
+
0,
|
|
383
|
+
[_sM, _oS],
|
|
384
|
+
[0, () => OutputSegmentList],
|
|
385
|
+
];
|
|
339
386
|
var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rARN], [0]];
|
|
340
387
|
var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_t], [() => TagList]];
|
|
341
388
|
var NotificationConfiguration = [3, n0, _NC, 0, [_eBC], [() => EventBridgeConfiguration]];
|
|
342
389
|
var OutputConfiguration = [3, n0, _OC, 0, [_sU], [0]];
|
|
390
|
+
var OutputSegment = [3, n0, _OS, 0, [_cOS, _cO, _sO], [0, 0, 0]];
|
|
343
391
|
var ResourceNotFoundException = [
|
|
344
392
|
-3,
|
|
345
393
|
n0,
|
|
@@ -364,6 +412,19 @@ var ServiceQuotaExceededException = [
|
|
|
364
412
|
[0],
|
|
365
413
|
];
|
|
366
414
|
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
|
|
415
|
+
var ServiceUnavailableException = [
|
|
416
|
+
-3,
|
|
417
|
+
n0,
|
|
418
|
+
_SUE,
|
|
419
|
+
{
|
|
420
|
+
[_e]: _se,
|
|
421
|
+
[_hE]: 503,
|
|
422
|
+
},
|
|
423
|
+
[_m],
|
|
424
|
+
[0],
|
|
425
|
+
];
|
|
426
|
+
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
|
|
427
|
+
var SyncInputConfiguration = [3, n0, _SIC, 0, [_by, _sU], [21, 0]];
|
|
367
428
|
var Tag = [3, n0, _T, 0, [_k, _va], [0, 0]];
|
|
368
429
|
var TagResourceRequest = [3, n0, _TRR, 0, [_rARN, _t], [0, () => TagList]];
|
|
369
430
|
var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
|
|
@@ -412,6 +473,7 @@ var BedrockDataAutomationRuntimeServiceException = [
|
|
|
412
473
|
];
|
|
413
474
|
schema.TypeRegistry.for(_sm).registerError(BedrockDataAutomationRuntimeServiceException, BedrockDataAutomationRuntimeServiceException$1);
|
|
414
475
|
var BlueprintList = [1, n0, _BL, 0, () => Blueprint];
|
|
476
|
+
var OutputSegmentList = [1, n0, _OSL, 0, () => OutputSegment];
|
|
415
477
|
var TagList = [1, n0, _TL, 0, () => Tag];
|
|
416
478
|
var VideoSegmentConfiguration = [3, n0, _VSC, 0, [_tS], [() => TimestampSegment]];
|
|
417
479
|
var GetDataAutomationStatus = [
|
|
@@ -422,6 +484,14 @@ var GetDataAutomationStatus = [
|
|
|
422
484
|
() => GetDataAutomationStatusRequest,
|
|
423
485
|
() => GetDataAutomationStatusResponse,
|
|
424
486
|
];
|
|
487
|
+
var InvokeDataAutomation = [
|
|
488
|
+
9,
|
|
489
|
+
n0,
|
|
490
|
+
_IDA,
|
|
491
|
+
0,
|
|
492
|
+
() => InvokeDataAutomationRequest,
|
|
493
|
+
() => InvokeDataAutomationResponse,
|
|
494
|
+
];
|
|
425
495
|
var InvokeDataAutomationAsync = [
|
|
426
496
|
9,
|
|
427
497
|
n0,
|
|
@@ -472,6 +542,18 @@ class InvokeDataAutomationAsyncCommand extends smithyClient.Command
|
|
|
472
542
|
.build() {
|
|
473
543
|
}
|
|
474
544
|
|
|
545
|
+
class InvokeDataAutomationCommand extends smithyClient.Command
|
|
546
|
+
.classBuilder()
|
|
547
|
+
.ep(commonParams)
|
|
548
|
+
.m(function (Command, cs, config, o) {
|
|
549
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
550
|
+
})
|
|
551
|
+
.s("AmazonBedrockKeystoneRuntimeService", "InvokeDataAutomation", {})
|
|
552
|
+
.n("BedrockDataAutomationRuntimeClient", "InvokeDataAutomationCommand")
|
|
553
|
+
.sc(InvokeDataAutomation)
|
|
554
|
+
.build() {
|
|
555
|
+
}
|
|
556
|
+
|
|
475
557
|
class ListTagsForResourceCommand extends smithyClient.Command
|
|
476
558
|
.classBuilder()
|
|
477
559
|
.ep(commonParams)
|
|
@@ -510,6 +592,7 @@ class UntagResourceCommand extends smithyClient.Command
|
|
|
510
592
|
|
|
511
593
|
const commands = {
|
|
512
594
|
GetDataAutomationStatusCommand,
|
|
595
|
+
InvokeDataAutomationCommand,
|
|
513
596
|
InvokeDataAutomationAsyncCommand,
|
|
514
597
|
ListTagsForResourceCommand,
|
|
515
598
|
TagResourceCommand,
|
|
@@ -534,6 +617,16 @@ const DataAutomationStage = {
|
|
|
534
617
|
DEVELOPMENT: "DEVELOPMENT",
|
|
535
618
|
LIVE: "LIVE",
|
|
536
619
|
};
|
|
620
|
+
const CustomOutputStatus = {
|
|
621
|
+
MATCH: "MATCH",
|
|
622
|
+
NO_MATCH: "NO_MATCH",
|
|
623
|
+
};
|
|
624
|
+
const SemanticModality = {
|
|
625
|
+
AUDIO: "AUDIO",
|
|
626
|
+
DOCUMENT: "DOCUMENT",
|
|
627
|
+
IMAGE: "IMAGE",
|
|
628
|
+
VIDEO: "VIDEO",
|
|
629
|
+
};
|
|
537
630
|
|
|
538
631
|
Object.defineProperty(exports, "$Command", {
|
|
539
632
|
enumerable: true,
|
|
@@ -549,13 +642,17 @@ exports.BedrockDataAutomationRuntime = BedrockDataAutomationRuntime;
|
|
|
549
642
|
exports.BedrockDataAutomationRuntimeClient = BedrockDataAutomationRuntimeClient;
|
|
550
643
|
exports.BedrockDataAutomationRuntimeServiceException = BedrockDataAutomationRuntimeServiceException$1;
|
|
551
644
|
exports.BlueprintStage = BlueprintStage;
|
|
645
|
+
exports.CustomOutputStatus = CustomOutputStatus;
|
|
552
646
|
exports.DataAutomationStage = DataAutomationStage;
|
|
553
647
|
exports.GetDataAutomationStatusCommand = GetDataAutomationStatusCommand;
|
|
554
648
|
exports.InternalServerException = InternalServerException$1;
|
|
555
649
|
exports.InvokeDataAutomationAsyncCommand = InvokeDataAutomationAsyncCommand;
|
|
650
|
+
exports.InvokeDataAutomationCommand = InvokeDataAutomationCommand;
|
|
556
651
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
557
652
|
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
653
|
+
exports.SemanticModality = SemanticModality;
|
|
558
654
|
exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
|
|
655
|
+
exports.ServiceUnavailableException = ServiceUnavailableException$1;
|
|
559
656
|
exports.TagResourceCommand = TagResourceCommand;
|
|
560
657
|
exports.ThrottlingException = ThrottlingException$1;
|
|
561
658
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
@@ -2,11 +2,13 @@ import { createAggregatedClient } from "@smithy/smithy-client";
|
|
|
2
2
|
import { BedrockDataAutomationRuntimeClient, } from "./BedrockDataAutomationRuntimeClient";
|
|
3
3
|
import { GetDataAutomationStatusCommand, } from "./commands/GetDataAutomationStatusCommand";
|
|
4
4
|
import { InvokeDataAutomationAsyncCommand, } from "./commands/InvokeDataAutomationAsyncCommand";
|
|
5
|
+
import { InvokeDataAutomationCommand, } from "./commands/InvokeDataAutomationCommand";
|
|
5
6
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
6
7
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
7
8
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
8
9
|
const commands = {
|
|
9
10
|
GetDataAutomationStatusCommand,
|
|
11
|
+
InvokeDataAutomationCommand,
|
|
10
12
|
InvokeDataAutomationAsyncCommand,
|
|
11
13
|
ListTagsForResourceCommand,
|
|
12
14
|
TagResourceCommand,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { InvokeDataAutomation } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class InvokeDataAutomationCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonBedrockKeystoneRuntimeService", "InvokeDataAutomation", {})
|
|
13
|
+
.n("BedrockDataAutomationRuntimeClient", "InvokeDataAutomationCommand")
|
|
14
|
+
.sc(InvokeDataAutomation)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./GetDataAutomationStatusCommand";
|
|
2
2
|
export * from "./InvokeDataAutomationAsyncCommand";
|
|
3
|
+
export * from "./InvokeDataAutomationCommand";
|
|
3
4
|
export * from "./ListTagsForResourceCommand";
|
|
4
5
|
export * from "./TagResourceCommand";
|
|
5
6
|
export * from "./UntagResourceCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -13,3 +13,13 @@ export const DataAutomationStage = {
|
|
|
13
13
|
DEVELOPMENT: "DEVELOPMENT",
|
|
14
14
|
LIVE: "LIVE",
|
|
15
15
|
};
|
|
16
|
+
export const CustomOutputStatus = {
|
|
17
|
+
MATCH: "MATCH",
|
|
18
|
+
NO_MATCH: "NO_MATCH",
|
|
19
|
+
};
|
|
20
|
+
export const SemanticModality = {
|
|
21
|
+
AUDIO: "AUDIO",
|
|
22
|
+
DOCUMENT: "DOCUMENT",
|
|
23
|
+
IMAGE: "IMAGE",
|
|
24
|
+
VIDEO: "VIDEO",
|
|
25
|
+
};
|
package/dist-es/models/errors.js
CHANGED
|
@@ -71,3 +71,15 @@ export class ServiceQuotaExceededException extends __BaseException {
|
|
|
71
71
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
export class ServiceUnavailableException extends __BaseException {
|
|
75
|
+
name = "ServiceUnavailableException";
|
|
76
|
+
$fault = "server";
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "ServiceUnavailableException",
|
|
80
|
+
$fault: "server",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -9,17 +9,24 @@ const _GDAS = "GetDataAutomationStatus";
|
|
|
9
9
|
const _GDASR = "GetDataAutomationStatusRequest";
|
|
10
10
|
const _GDASRe = "GetDataAutomationStatusResponse";
|
|
11
11
|
const _IC = "InputConfiguration";
|
|
12
|
+
const _IDA = "InvokeDataAutomation";
|
|
12
13
|
const _IDAA = "InvokeDataAutomationAsync";
|
|
13
14
|
const _IDAAR = "InvokeDataAutomationAsyncRequest";
|
|
14
15
|
const _IDAARn = "InvokeDataAutomationAsyncResponse";
|
|
16
|
+
const _IDAR = "InvokeDataAutomationRequest";
|
|
17
|
+
const _IDARn = "InvokeDataAutomationResponse";
|
|
15
18
|
const _ISE = "InternalServerException";
|
|
16
19
|
const _LTFR = "ListTagsForResource";
|
|
17
20
|
const _LTFRR = "ListTagsForResourceRequest";
|
|
18
21
|
const _LTFRRi = "ListTagsForResourceResponse";
|
|
19
22
|
const _NC = "NotificationConfiguration";
|
|
20
23
|
const _OC = "OutputConfiguration";
|
|
24
|
+
const _OS = "OutputSegment";
|
|
25
|
+
const _OSL = "OutputSegmentList";
|
|
21
26
|
const _RNFE = "ResourceNotFoundException";
|
|
27
|
+
const _SIC = "SyncInputConfiguration";
|
|
22
28
|
const _SQEE = "ServiceQuotaExceededException";
|
|
29
|
+
const _SUE = "ServiceUnavailableException";
|
|
23
30
|
const _T = "Tag";
|
|
24
31
|
const _TE = "ThrottlingException";
|
|
25
32
|
const _TL = "TagList";
|
|
@@ -36,7 +43,10 @@ const _VSC = "VideoSegmentConfiguration";
|
|
|
36
43
|
const _aPC = "assetProcessingConfiguration";
|
|
37
44
|
const _b = "blueprints";
|
|
38
45
|
const _bA = "blueprintArn";
|
|
46
|
+
const _by = "bytes";
|
|
39
47
|
const _c = "client";
|
|
48
|
+
const _cO = "customOutput";
|
|
49
|
+
const _cOS = "customOutputStatus";
|
|
40
50
|
const _cT = "clientToken";
|
|
41
51
|
const _dAC = "dataAutomationConfiguration";
|
|
42
52
|
const _dAPA = "dataAutomationProjectArn";
|
|
@@ -57,9 +67,12 @@ const _kKI = "kmsKeyId";
|
|
|
57
67
|
const _m = "message";
|
|
58
68
|
const _nC = "notificationConfiguration";
|
|
59
69
|
const _oC = "outputConfiguration";
|
|
70
|
+
const _oS = "outputSegments";
|
|
60
71
|
const _rARN = "resourceARN";
|
|
61
72
|
const _s = "stage";
|
|
62
73
|
const _sC = "segmentConfiguration";
|
|
74
|
+
const _sM = "semanticModality";
|
|
75
|
+
const _sO = "standardOutput";
|
|
63
76
|
const _sTM = "startTimeMillis";
|
|
64
77
|
const _sU = "s3Uri";
|
|
65
78
|
const _se = "server";
|
|
@@ -74,7 +87,7 @@ const _ve = "version";
|
|
|
74
87
|
const n0 = "com.amazonaws.bedrockdataautomationruntime";
|
|
75
88
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
76
89
|
import { BedrockDataAutomationRuntimeServiceException as __BedrockDataAutomationRuntimeServiceException } from "../models/BedrockDataAutomationRuntimeServiceException";
|
|
77
|
-
import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
|
|
90
|
+
import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
|
|
78
91
|
export var AccessDeniedException = [
|
|
79
92
|
-3,
|
|
80
93
|
n0,
|
|
@@ -147,10 +160,33 @@ export var InvokeDataAutomationAsyncRequest = [
|
|
|
147
160
|
],
|
|
148
161
|
];
|
|
149
162
|
export var InvokeDataAutomationAsyncResponse = [3, n0, _IDAARn, 0, [_iA], [0]];
|
|
163
|
+
export var InvokeDataAutomationRequest = [
|
|
164
|
+
3,
|
|
165
|
+
n0,
|
|
166
|
+
_IDAR,
|
|
167
|
+
0,
|
|
168
|
+
[_iC, _dAC, _b, _dAPAa, _eC],
|
|
169
|
+
[
|
|
170
|
+
() => SyncInputConfiguration,
|
|
171
|
+
() => DataAutomationConfiguration,
|
|
172
|
+
() => BlueprintList,
|
|
173
|
+
0,
|
|
174
|
+
() => EncryptionConfiguration,
|
|
175
|
+
],
|
|
176
|
+
];
|
|
177
|
+
export var InvokeDataAutomationResponse = [
|
|
178
|
+
3,
|
|
179
|
+
n0,
|
|
180
|
+
_IDARn,
|
|
181
|
+
0,
|
|
182
|
+
[_sM, _oS],
|
|
183
|
+
[0, () => OutputSegmentList],
|
|
184
|
+
];
|
|
150
185
|
export var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rARN], [0]];
|
|
151
186
|
export var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_t], [() => TagList]];
|
|
152
187
|
export var NotificationConfiguration = [3, n0, _NC, 0, [_eBC], [() => EventBridgeConfiguration]];
|
|
153
188
|
export var OutputConfiguration = [3, n0, _OC, 0, [_sU], [0]];
|
|
189
|
+
export var OutputSegment = [3, n0, _OS, 0, [_cOS, _cO, _sO], [0, 0, 0]];
|
|
154
190
|
export var ResourceNotFoundException = [
|
|
155
191
|
-3,
|
|
156
192
|
n0,
|
|
@@ -175,6 +211,19 @@ export var ServiceQuotaExceededException = [
|
|
|
175
211
|
[0],
|
|
176
212
|
];
|
|
177
213
|
TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
|
|
214
|
+
export var ServiceUnavailableException = [
|
|
215
|
+
-3,
|
|
216
|
+
n0,
|
|
217
|
+
_SUE,
|
|
218
|
+
{
|
|
219
|
+
[_e]: _se,
|
|
220
|
+
[_hE]: 503,
|
|
221
|
+
},
|
|
222
|
+
[_m],
|
|
223
|
+
[0],
|
|
224
|
+
];
|
|
225
|
+
TypeRegistry.for(n0).registerError(ServiceUnavailableException, __ServiceUnavailableException);
|
|
226
|
+
export var SyncInputConfiguration = [3, n0, _SIC, 0, [_by, _sU], [21, 0]];
|
|
178
227
|
export var Tag = [3, n0, _T, 0, [_k, _va], [0, 0]];
|
|
179
228
|
export var TagResourceRequest = [3, n0, _TRR, 0, [_rARN, _t], [0, () => TagList]];
|
|
180
229
|
export var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
|
|
@@ -224,6 +273,7 @@ export var BedrockDataAutomationRuntimeServiceException = [
|
|
|
224
273
|
];
|
|
225
274
|
TypeRegistry.for(_sm).registerError(BedrockDataAutomationRuntimeServiceException, __BedrockDataAutomationRuntimeServiceException);
|
|
226
275
|
export var BlueprintList = [1, n0, _BL, 0, () => Blueprint];
|
|
276
|
+
export var OutputSegmentList = [1, n0, _OSL, 0, () => OutputSegment];
|
|
227
277
|
export var TagKeyList = 64 | 0;
|
|
228
278
|
export var TagList = [1, n0, _TL, 0, () => Tag];
|
|
229
279
|
export var EncryptionContextMap = 128 | 0;
|
|
@@ -236,6 +286,14 @@ export var GetDataAutomationStatus = [
|
|
|
236
286
|
() => GetDataAutomationStatusRequest,
|
|
237
287
|
() => GetDataAutomationStatusResponse,
|
|
238
288
|
];
|
|
289
|
+
export var InvokeDataAutomation = [
|
|
290
|
+
9,
|
|
291
|
+
n0,
|
|
292
|
+
_IDA,
|
|
293
|
+
0,
|
|
294
|
+
() => InvokeDataAutomationRequest,
|
|
295
|
+
() => InvokeDataAutomationResponse,
|
|
296
|
+
];
|
|
239
297
|
export var InvokeDataAutomationAsync = [
|
|
240
298
|
9,
|
|
241
299
|
n0,
|
|
@@ -2,6 +2,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
|
2
2
|
import { BedrockDataAutomationRuntimeClient } from "./BedrockDataAutomationRuntimeClient";
|
|
3
3
|
import { GetDataAutomationStatusCommandInput, GetDataAutomationStatusCommandOutput } from "./commands/GetDataAutomationStatusCommand";
|
|
4
4
|
import { InvokeDataAutomationAsyncCommandInput, InvokeDataAutomationAsyncCommandOutput } from "./commands/InvokeDataAutomationAsyncCommand";
|
|
5
|
+
import { InvokeDataAutomationCommandInput, InvokeDataAutomationCommandOutput } from "./commands/InvokeDataAutomationCommand";
|
|
5
6
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
6
7
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
7
8
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
@@ -12,6 +13,12 @@ export interface BedrockDataAutomationRuntime {
|
|
|
12
13
|
getDataAutomationStatus(args: GetDataAutomationStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetDataAutomationStatusCommandOutput>;
|
|
13
14
|
getDataAutomationStatus(args: GetDataAutomationStatusCommandInput, cb: (err: any, data?: GetDataAutomationStatusCommandOutput) => void): void;
|
|
14
15
|
getDataAutomationStatus(args: GetDataAutomationStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDataAutomationStatusCommandOutput) => void): void;
|
|
16
|
+
/**
|
|
17
|
+
* @see {@link InvokeDataAutomationCommand}
|
|
18
|
+
*/
|
|
19
|
+
invokeDataAutomation(args: InvokeDataAutomationCommandInput, options?: __HttpHandlerOptions): Promise<InvokeDataAutomationCommandOutput>;
|
|
20
|
+
invokeDataAutomation(args: InvokeDataAutomationCommandInput, cb: (err: any, data?: InvokeDataAutomationCommandOutput) => void): void;
|
|
21
|
+
invokeDataAutomation(args: InvokeDataAutomationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeDataAutomationCommandOutput) => void): void;
|
|
15
22
|
/**
|
|
16
23
|
* @see {@link InvokeDataAutomationAsyncCommand}
|
|
17
24
|
*/
|
|
@@ -9,6 +9,7 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
|
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { GetDataAutomationStatusCommandInput, GetDataAutomationStatusCommandOutput } from "./commands/GetDataAutomationStatusCommand";
|
|
11
11
|
import { InvokeDataAutomationAsyncCommandInput, InvokeDataAutomationAsyncCommandOutput } from "./commands/InvokeDataAutomationAsyncCommand";
|
|
12
|
+
import { InvokeDataAutomationCommandInput, InvokeDataAutomationCommandOutput } from "./commands/InvokeDataAutomationCommand";
|
|
12
13
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
13
14
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
14
15
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
@@ -18,11 +19,11 @@ export { __Client };
|
|
|
18
19
|
/**
|
|
19
20
|
* @public
|
|
20
21
|
*/
|
|
21
|
-
export type ServiceInputTypes = GetDataAutomationStatusCommandInput | InvokeDataAutomationAsyncCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
22
|
+
export type ServiceInputTypes = GetDataAutomationStatusCommandInput | InvokeDataAutomationAsyncCommandInput | InvokeDataAutomationCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
22
23
|
/**
|
|
23
24
|
* @public
|
|
24
25
|
*/
|
|
25
|
-
export type ServiceOutputTypes = GetDataAutomationStatusCommandOutput | InvokeDataAutomationAsyncCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
26
|
+
export type ServiceOutputTypes = GetDataAutomationStatusCommandOutput | InvokeDataAutomationAsyncCommandOutput | InvokeDataAutomationCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
26
27
|
/**
|
|
27
28
|
* @public
|
|
28
29
|
*/
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockDataAutomationRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockDataAutomationRuntimeClient";
|
|
4
|
+
import { InvokeDataAutomationRequest, InvokeDataAutomationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link InvokeDataAutomationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface InvokeDataAutomationCommandInput extends InvokeDataAutomationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link InvokeDataAutomationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface InvokeDataAutomationCommandOutput extends InvokeDataAutomationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const InvokeDataAutomationCommand_base: {
|
|
25
|
+
new (input: InvokeDataAutomationCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeDataAutomationCommandInput, InvokeDataAutomationCommandOutput, BedrockDataAutomationRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: InvokeDataAutomationCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeDataAutomationCommandInput, InvokeDataAutomationCommandOutput, BedrockDataAutomationRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Sync API: Invoke data automation.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockDataAutomationRuntimeClient, InvokeDataAutomationCommand } from "@aws-sdk/client-bedrock-data-automation-runtime"; // ES Modules import
|
|
35
|
+
* // const { BedrockDataAutomationRuntimeClient, InvokeDataAutomationCommand } = require("@aws-sdk/client-bedrock-data-automation-runtime"); // CommonJS import
|
|
36
|
+
* // import type { BedrockDataAutomationRuntimeClientConfig } from "@aws-sdk/client-bedrock-data-automation-runtime";
|
|
37
|
+
* const config = {}; // type is BedrockDataAutomationRuntimeClientConfig
|
|
38
|
+
* const client = new BedrockDataAutomationRuntimeClient(config);
|
|
39
|
+
* const input = { // InvokeDataAutomationRequest
|
|
40
|
+
* inputConfiguration: { // SyncInputConfiguration
|
|
41
|
+
* bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
42
|
+
* s3Uri: "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* dataAutomationConfiguration: { // DataAutomationConfiguration
|
|
45
|
+
* dataAutomationProjectArn: "STRING_VALUE", // required
|
|
46
|
+
* stage: "LIVE" || "DEVELOPMENT",
|
|
47
|
+
* },
|
|
48
|
+
* blueprints: [ // BlueprintList
|
|
49
|
+
* { // Blueprint
|
|
50
|
+
* blueprintArn: "STRING_VALUE", // required
|
|
51
|
+
* version: "STRING_VALUE",
|
|
52
|
+
* stage: "DEVELOPMENT" || "LIVE",
|
|
53
|
+
* },
|
|
54
|
+
* ],
|
|
55
|
+
* dataAutomationProfileArn: "STRING_VALUE", // required
|
|
56
|
+
* encryptionConfiguration: { // EncryptionConfiguration
|
|
57
|
+
* kmsKeyId: "STRING_VALUE", // required
|
|
58
|
+
* kmsEncryptionContext: { // EncryptionContextMap
|
|
59
|
+
* "<keys>": "STRING_VALUE",
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* };
|
|
63
|
+
* const command = new InvokeDataAutomationCommand(input);
|
|
64
|
+
* const response = await client.send(command);
|
|
65
|
+
* // { // InvokeDataAutomationResponse
|
|
66
|
+
* // semanticModality: "DOCUMENT" || "IMAGE" || "AUDIO" || "VIDEO", // required
|
|
67
|
+
* // outputSegments: [ // OutputSegmentList // required
|
|
68
|
+
* // { // OutputSegment
|
|
69
|
+
* // customOutputStatus: "MATCH" || "NO_MATCH",
|
|
70
|
+
* // customOutput: "STRING_VALUE",
|
|
71
|
+
* // standardOutput: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
74
|
+
* // };
|
|
75
|
+
*
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @param InvokeDataAutomationCommandInput - {@link InvokeDataAutomationCommandInput}
|
|
79
|
+
* @returns {@link InvokeDataAutomationCommandOutput}
|
|
80
|
+
* @see {@link InvokeDataAutomationCommandInput} for command's `input` shape.
|
|
81
|
+
* @see {@link InvokeDataAutomationCommandOutput} for command's `response` shape.
|
|
82
|
+
* @see {@link BedrockDataAutomationRuntimeClientResolvedConfig | config} for BedrockDataAutomationRuntimeClient's `config` shape.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
85
|
+
* This exception will be thrown when customer does not have access to API.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link InternalServerException} (server fault)
|
|
88
|
+
* This exception is for any internal un-expected service errors.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
91
|
+
* This exception will be thrown when service is temporarily unavailable.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
94
|
+
* This exception will be thrown when customer reached API TPS limit.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ValidationException} (client fault)
|
|
97
|
+
* This exception will be thrown when customer provided invalid parameters.
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link BedrockDataAutomationRuntimeServiceException}
|
|
100
|
+
* <p>Base exception class for all service exceptions from BedrockDataAutomationRuntime service.</p>
|
|
101
|
+
*
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export declare class InvokeDataAutomationCommand extends InvokeDataAutomationCommand_base {
|
|
106
|
+
/** @internal type navigation helper, not in runtime. */
|
|
107
|
+
protected static __types: {
|
|
108
|
+
api: {
|
|
109
|
+
input: InvokeDataAutomationRequest;
|
|
110
|
+
output: InvokeDataAutomationResponse;
|
|
111
|
+
};
|
|
112
|
+
sdk: {
|
|
113
|
+
input: InvokeDataAutomationCommandInput;
|
|
114
|
+
output: InvokeDataAutomationCommandOutput;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./GetDataAutomationStatusCommand";
|
|
2
2
|
export * from "./InvokeDataAutomationAsyncCommand";
|
|
3
|
+
export * from "./InvokeDataAutomationCommand";
|
|
3
4
|
export * from "./ListTagsForResourceCommand";
|
|
4
5
|
export * from "./TagResourceCommand";
|
|
5
6
|
export * from "./UntagResourceCommand";
|
|
@@ -37,3 +37,29 @@ export declare const DataAutomationStage: {
|
|
|
37
37
|
* @public
|
|
38
38
|
*/
|
|
39
39
|
export type DataAutomationStage = (typeof DataAutomationStage)[keyof typeof DataAutomationStage];
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @enum
|
|
43
|
+
*/
|
|
44
|
+
export declare const CustomOutputStatus: {
|
|
45
|
+
readonly MATCH: "MATCH";
|
|
46
|
+
readonly NO_MATCH: "NO_MATCH";
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export type CustomOutputStatus = (typeof CustomOutputStatus)[keyof typeof CustomOutputStatus];
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
* @enum
|
|
55
|
+
*/
|
|
56
|
+
export declare const SemanticModality: {
|
|
57
|
+
readonly AUDIO: "AUDIO";
|
|
58
|
+
readonly DOCUMENT: "DOCUMENT";
|
|
59
|
+
readonly IMAGE: "IMAGE";
|
|
60
|
+
readonly VIDEO: "VIDEO";
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export type SemanticModality = (typeof SemanticModality)[keyof typeof SemanticModality];
|
|
@@ -72,3 +72,15 @@ export declare class ServiceQuotaExceededException extends __BaseException {
|
|
|
72
72
|
*/
|
|
73
73
|
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* This exception will be thrown when service is temporarily unavailable.
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
80
|
+
readonly name: "ServiceUnavailableException";
|
|
81
|
+
readonly $fault: "server";
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
86
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutomationJobStatus, BlueprintStage, DataAutomationStage } from "./enums";
|
|
1
|
+
import { AutomationJobStatus, BlueprintStage, CustomOutputStatus, DataAutomationStage, SemanticModality } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* Structure for request of GetDataAutomationStatus API.
|
|
4
4
|
* @public
|
|
@@ -287,6 +287,90 @@ export interface InvokeDataAutomationAsyncResponse {
|
|
|
287
287
|
*/
|
|
288
288
|
invocationArn: string | undefined;
|
|
289
289
|
}
|
|
290
|
+
/**
|
|
291
|
+
* Input configuration for synchronous API
|
|
292
|
+
* @public
|
|
293
|
+
*/
|
|
294
|
+
export interface SyncInputConfiguration {
|
|
295
|
+
/**
|
|
296
|
+
* Input data as bytes
|
|
297
|
+
* @public
|
|
298
|
+
*/
|
|
299
|
+
bytes?: Uint8Array | undefined;
|
|
300
|
+
/**
|
|
301
|
+
* S3 URI of the input data
|
|
302
|
+
* @public
|
|
303
|
+
*/
|
|
304
|
+
s3Uri?: string | undefined;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Invoke Data Automation Request
|
|
308
|
+
* @public
|
|
309
|
+
*/
|
|
310
|
+
export interface InvokeDataAutomationRequest {
|
|
311
|
+
/**
|
|
312
|
+
* Input configuration.
|
|
313
|
+
* @public
|
|
314
|
+
*/
|
|
315
|
+
inputConfiguration: SyncInputConfiguration | undefined;
|
|
316
|
+
/**
|
|
317
|
+
* Data automation configuration.
|
|
318
|
+
* @public
|
|
319
|
+
*/
|
|
320
|
+
dataAutomationConfiguration?: DataAutomationConfiguration | undefined;
|
|
321
|
+
/**
|
|
322
|
+
* Blueprint list.
|
|
323
|
+
* @public
|
|
324
|
+
*/
|
|
325
|
+
blueprints?: Blueprint[] | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* Data automation profile ARN
|
|
328
|
+
* @public
|
|
329
|
+
*/
|
|
330
|
+
dataAutomationProfileArn: string | undefined;
|
|
331
|
+
/**
|
|
332
|
+
* Encryption configuration.
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
encryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Results for an output segment
|
|
339
|
+
* @public
|
|
340
|
+
*/
|
|
341
|
+
export interface OutputSegment {
|
|
342
|
+
/**
|
|
343
|
+
* Status of blueprint match
|
|
344
|
+
* @public
|
|
345
|
+
*/
|
|
346
|
+
customOutputStatus?: CustomOutputStatus | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* Custom output response
|
|
349
|
+
* @public
|
|
350
|
+
*/
|
|
351
|
+
customOutput?: string | undefined;
|
|
352
|
+
/**
|
|
353
|
+
* Standard output response
|
|
354
|
+
* @public
|
|
355
|
+
*/
|
|
356
|
+
standardOutput?: string | undefined;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Invoke Data Automation Response
|
|
360
|
+
* @public
|
|
361
|
+
*/
|
|
362
|
+
export interface InvokeDataAutomationResponse {
|
|
363
|
+
/**
|
|
364
|
+
* Detected semantic modality
|
|
365
|
+
* @public
|
|
366
|
+
*/
|
|
367
|
+
semanticModality: SemanticModality | undefined;
|
|
368
|
+
/**
|
|
369
|
+
* List of outputs for each logical sub-doc
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
372
|
+
outputSegments: OutputSegment[] | undefined;
|
|
373
|
+
}
|
|
290
374
|
/**
|
|
291
375
|
* @public
|
|
292
376
|
*/
|
|
@@ -11,12 +11,17 @@ export declare var InputConfiguration: StaticStructureSchema;
|
|
|
11
11
|
export declare var InternalServerException: StaticErrorSchema;
|
|
12
12
|
export declare var InvokeDataAutomationAsyncRequest: StaticStructureSchema;
|
|
13
13
|
export declare var InvokeDataAutomationAsyncResponse: StaticStructureSchema;
|
|
14
|
+
export declare var InvokeDataAutomationRequest: StaticStructureSchema;
|
|
15
|
+
export declare var InvokeDataAutomationResponse: StaticStructureSchema;
|
|
14
16
|
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
15
17
|
export declare var ListTagsForResourceResponse: StaticStructureSchema;
|
|
16
18
|
export declare var NotificationConfiguration: StaticStructureSchema;
|
|
17
19
|
export declare var OutputConfiguration: StaticStructureSchema;
|
|
20
|
+
export declare var OutputSegment: StaticStructureSchema;
|
|
18
21
|
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
19
22
|
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
23
|
+
export declare var ServiceUnavailableException: StaticErrorSchema;
|
|
24
|
+
export declare var SyncInputConfiguration: StaticStructureSchema;
|
|
20
25
|
export declare var Tag: StaticStructureSchema;
|
|
21
26
|
export declare var TagResourceRequest: StaticStructureSchema;
|
|
22
27
|
export declare var TagResourceResponse: StaticStructureSchema;
|
|
@@ -29,11 +34,13 @@ export declare var VideoAssetProcessingConfiguration: StaticStructureSchema;
|
|
|
29
34
|
export declare var __Unit: "unit";
|
|
30
35
|
export declare var BedrockDataAutomationRuntimeServiceException: StaticErrorSchema;
|
|
31
36
|
export declare var BlueprintList: StaticListSchema;
|
|
37
|
+
export declare var OutputSegmentList: StaticListSchema;
|
|
32
38
|
export declare var TagKeyList: number;
|
|
33
39
|
export declare var TagList: StaticListSchema;
|
|
34
40
|
export declare var EncryptionContextMap: number;
|
|
35
41
|
export declare var VideoSegmentConfiguration: StaticStructureSchema;
|
|
36
42
|
export declare var GetDataAutomationStatus: StaticOperationSchema;
|
|
43
|
+
export declare var InvokeDataAutomation: StaticOperationSchema;
|
|
37
44
|
export declare var InvokeDataAutomationAsync: StaticOperationSchema;
|
|
38
45
|
export declare var ListTagsForResource: StaticOperationSchema;
|
|
39
46
|
export declare var TagResource: StaticOperationSchema;
|
|
@@ -8,6 +8,10 @@ import {
|
|
|
8
8
|
InvokeDataAutomationAsyncCommandInput,
|
|
9
9
|
InvokeDataAutomationAsyncCommandOutput,
|
|
10
10
|
} from "./commands/InvokeDataAutomationAsyncCommand";
|
|
11
|
+
import {
|
|
12
|
+
InvokeDataAutomationCommandInput,
|
|
13
|
+
InvokeDataAutomationCommandOutput,
|
|
14
|
+
} from "./commands/InvokeDataAutomationCommand";
|
|
11
15
|
import {
|
|
12
16
|
ListTagsForResourceCommandInput,
|
|
13
17
|
ListTagsForResourceCommandOutput,
|
|
@@ -34,6 +38,19 @@ export interface BedrockDataAutomationRuntime {
|
|
|
34
38
|
options: __HttpHandlerOptions,
|
|
35
39
|
cb: (err: any, data?: GetDataAutomationStatusCommandOutput) => void
|
|
36
40
|
): void;
|
|
41
|
+
invokeDataAutomation(
|
|
42
|
+
args: InvokeDataAutomationCommandInput,
|
|
43
|
+
options?: __HttpHandlerOptions
|
|
44
|
+
): Promise<InvokeDataAutomationCommandOutput>;
|
|
45
|
+
invokeDataAutomation(
|
|
46
|
+
args: InvokeDataAutomationCommandInput,
|
|
47
|
+
cb: (err: any, data?: InvokeDataAutomationCommandOutput) => void
|
|
48
|
+
): void;
|
|
49
|
+
invokeDataAutomation(
|
|
50
|
+
args: InvokeDataAutomationCommandInput,
|
|
51
|
+
options: __HttpHandlerOptions,
|
|
52
|
+
cb: (err: any, data?: InvokeDataAutomationCommandOutput) => void
|
|
53
|
+
): void;
|
|
37
54
|
invokeDataAutomationAsync(
|
|
38
55
|
args: InvokeDataAutomationAsyncCommandInput,
|
|
39
56
|
options?: __HttpHandlerOptions
|
|
@@ -56,6 +56,10 @@ import {
|
|
|
56
56
|
InvokeDataAutomationAsyncCommandInput,
|
|
57
57
|
InvokeDataAutomationAsyncCommandOutput,
|
|
58
58
|
} from "./commands/InvokeDataAutomationAsyncCommand";
|
|
59
|
+
import {
|
|
60
|
+
InvokeDataAutomationCommandInput,
|
|
61
|
+
InvokeDataAutomationCommandOutput,
|
|
62
|
+
} from "./commands/InvokeDataAutomationCommand";
|
|
59
63
|
import {
|
|
60
64
|
ListTagsForResourceCommandInput,
|
|
61
65
|
ListTagsForResourceCommandOutput,
|
|
@@ -78,12 +82,14 @@ export { __Client };
|
|
|
78
82
|
export type ServiceInputTypes =
|
|
79
83
|
| GetDataAutomationStatusCommandInput
|
|
80
84
|
| InvokeDataAutomationAsyncCommandInput
|
|
85
|
+
| InvokeDataAutomationCommandInput
|
|
81
86
|
| ListTagsForResourceCommandInput
|
|
82
87
|
| TagResourceCommandInput
|
|
83
88
|
| UntagResourceCommandInput;
|
|
84
89
|
export type ServiceOutputTypes =
|
|
85
90
|
| GetDataAutomationStatusCommandOutput
|
|
86
91
|
| InvokeDataAutomationAsyncCommandOutput
|
|
92
|
+
| InvokeDataAutomationCommandOutput
|
|
87
93
|
| ListTagsForResourceCommandOutput
|
|
88
94
|
| TagResourceCommandOutput
|
|
89
95
|
| UntagResourceCommandOutput;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockDataAutomationRuntimeClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockDataAutomationRuntimeClient";
|
|
8
|
+
import {
|
|
9
|
+
InvokeDataAutomationRequest,
|
|
10
|
+
InvokeDataAutomationResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface InvokeDataAutomationCommandInput
|
|
15
|
+
extends InvokeDataAutomationRequest {}
|
|
16
|
+
export interface InvokeDataAutomationCommandOutput
|
|
17
|
+
extends InvokeDataAutomationResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const InvokeDataAutomationCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: InvokeDataAutomationCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
InvokeDataAutomationCommandInput,
|
|
24
|
+
InvokeDataAutomationCommandOutput,
|
|
25
|
+
BedrockDataAutomationRuntimeClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
input: InvokeDataAutomationCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
InvokeDataAutomationCommandInput,
|
|
33
|
+
InvokeDataAutomationCommandOutput,
|
|
34
|
+
BedrockDataAutomationRuntimeClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class InvokeDataAutomationCommand extends InvokeDataAutomationCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: InvokeDataAutomationRequest;
|
|
44
|
+
output: InvokeDataAutomationResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: InvokeDataAutomationCommandInput;
|
|
48
|
+
output: InvokeDataAutomationCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./GetDataAutomationStatusCommand";
|
|
2
2
|
export * from "./InvokeDataAutomationAsyncCommand";
|
|
3
|
+
export * from "./InvokeDataAutomationCommand";
|
|
3
4
|
export * from "./ListTagsForResourceCommand";
|
|
4
5
|
export * from "./TagResourceCommand";
|
|
5
6
|
export * from "./UntagResourceCommand";
|
|
@@ -19,3 +19,17 @@ export declare const DataAutomationStage: {
|
|
|
19
19
|
};
|
|
20
20
|
export type DataAutomationStage =
|
|
21
21
|
(typeof DataAutomationStage)[keyof typeof DataAutomationStage];
|
|
22
|
+
export declare const CustomOutputStatus: {
|
|
23
|
+
readonly MATCH: "MATCH";
|
|
24
|
+
readonly NO_MATCH: "NO_MATCH";
|
|
25
|
+
};
|
|
26
|
+
export type CustomOutputStatus =
|
|
27
|
+
(typeof CustomOutputStatus)[keyof typeof CustomOutputStatus];
|
|
28
|
+
export declare const SemanticModality: {
|
|
29
|
+
readonly AUDIO: "AUDIO";
|
|
30
|
+
readonly DOCUMENT: "DOCUMENT";
|
|
31
|
+
readonly IMAGE: "IMAGE";
|
|
32
|
+
readonly VIDEO: "VIDEO";
|
|
33
|
+
};
|
|
34
|
+
export type SemanticModality =
|
|
35
|
+
(typeof SemanticModality)[keyof typeof SemanticModality];
|
|
@@ -42,3 +42,10 @@ export declare class ServiceQuotaExceededException extends __BaseException {
|
|
|
42
42
|
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
46
|
+
readonly name: "ServiceUnavailableException";
|
|
47
|
+
readonly $fault: "server";
|
|
48
|
+
constructor(
|
|
49
|
+
opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AutomationJobStatus,
|
|
3
3
|
BlueprintStage,
|
|
4
|
+
CustomOutputStatus,
|
|
4
5
|
DataAutomationStage,
|
|
6
|
+
SemanticModality,
|
|
5
7
|
} from "./enums";
|
|
6
8
|
export interface GetDataAutomationStatusRequest {
|
|
7
9
|
invocationArn: string | undefined;
|
|
@@ -83,6 +85,26 @@ export interface InvokeDataAutomationAsyncRequest {
|
|
|
83
85
|
export interface InvokeDataAutomationAsyncResponse {
|
|
84
86
|
invocationArn: string | undefined;
|
|
85
87
|
}
|
|
88
|
+
export interface SyncInputConfiguration {
|
|
89
|
+
bytes?: Uint8Array | undefined;
|
|
90
|
+
s3Uri?: string | undefined;
|
|
91
|
+
}
|
|
92
|
+
export interface InvokeDataAutomationRequest {
|
|
93
|
+
inputConfiguration: SyncInputConfiguration | undefined;
|
|
94
|
+
dataAutomationConfiguration?: DataAutomationConfiguration | undefined;
|
|
95
|
+
blueprints?: Blueprint[] | undefined;
|
|
96
|
+
dataAutomationProfileArn: string | undefined;
|
|
97
|
+
encryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface OutputSegment {
|
|
100
|
+
customOutputStatus?: CustomOutputStatus | undefined;
|
|
101
|
+
customOutput?: string | undefined;
|
|
102
|
+
standardOutput?: string | undefined;
|
|
103
|
+
}
|
|
104
|
+
export interface InvokeDataAutomationResponse {
|
|
105
|
+
semanticModality: SemanticModality | undefined;
|
|
106
|
+
outputSegments: OutputSegment[] | undefined;
|
|
107
|
+
}
|
|
86
108
|
export interface ListTagsForResourceRequest {
|
|
87
109
|
resourceARN: string | undefined;
|
|
88
110
|
}
|
|
@@ -16,12 +16,17 @@ export declare var InputConfiguration: StaticStructureSchema;
|
|
|
16
16
|
export declare var InternalServerException: StaticErrorSchema;
|
|
17
17
|
export declare var InvokeDataAutomationAsyncRequest: StaticStructureSchema;
|
|
18
18
|
export declare var InvokeDataAutomationAsyncResponse: StaticStructureSchema;
|
|
19
|
+
export declare var InvokeDataAutomationRequest: StaticStructureSchema;
|
|
20
|
+
export declare var InvokeDataAutomationResponse: StaticStructureSchema;
|
|
19
21
|
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
20
22
|
export declare var ListTagsForResourceResponse: StaticStructureSchema;
|
|
21
23
|
export declare var NotificationConfiguration: StaticStructureSchema;
|
|
22
24
|
export declare var OutputConfiguration: StaticStructureSchema;
|
|
25
|
+
export declare var OutputSegment: StaticStructureSchema;
|
|
23
26
|
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
24
27
|
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
28
|
+
export declare var ServiceUnavailableException: StaticErrorSchema;
|
|
29
|
+
export declare var SyncInputConfiguration: StaticStructureSchema;
|
|
25
30
|
export declare var Tag: StaticStructureSchema;
|
|
26
31
|
export declare var TagResourceRequest: StaticStructureSchema;
|
|
27
32
|
export declare var TagResourceResponse: StaticStructureSchema;
|
|
@@ -34,11 +39,13 @@ export declare var VideoAssetProcessingConfiguration: StaticStructureSchema;
|
|
|
34
39
|
export declare var __Unit: "unit";
|
|
35
40
|
export declare var BedrockDataAutomationRuntimeServiceException: StaticErrorSchema;
|
|
36
41
|
export declare var BlueprintList: StaticListSchema;
|
|
42
|
+
export declare var OutputSegmentList: StaticListSchema;
|
|
37
43
|
export declare var TagKeyList: number;
|
|
38
44
|
export declare var TagList: StaticListSchema;
|
|
39
45
|
export declare var EncryptionContextMap: number;
|
|
40
46
|
export declare var VideoSegmentConfiguration: StaticStructureSchema;
|
|
41
47
|
export declare var GetDataAutomationStatus: StaticOperationSchema;
|
|
48
|
+
export declare var InvokeDataAutomation: StaticOperationSchema;
|
|
42
49
|
export declare var InvokeDataAutomationAsync: StaticOperationSchema;
|
|
43
50
|
export declare var ListTagsForResource: StaticOperationSchema;
|
|
44
51
|
export declare var TagResource: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-data-automation-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Data Automation Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.937.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-bedrock-data-automation-runtime",
|