@aws-sdk/client-bedrock-data-automation-runtime 3.926.0 → 3.928.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.
@@ -0,0 +1,45 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticListSchema,
4
+ StaticOperationSchema,
5
+ StaticStructureSchema,
6
+ } from "@smithy/types";
7
+ export declare var AccessDeniedException: StaticErrorSchema;
8
+ export declare var AssetProcessingConfiguration: StaticStructureSchema;
9
+ export declare var Blueprint: StaticStructureSchema;
10
+ export declare var DataAutomationConfiguration: StaticStructureSchema;
11
+ export declare var EncryptionConfiguration: StaticStructureSchema;
12
+ export declare var EventBridgeConfiguration: StaticStructureSchema;
13
+ export declare var GetDataAutomationStatusRequest: StaticStructureSchema;
14
+ export declare var GetDataAutomationStatusResponse: StaticStructureSchema;
15
+ export declare var InputConfiguration: StaticStructureSchema;
16
+ export declare var InternalServerException: StaticErrorSchema;
17
+ export declare var InvokeDataAutomationAsyncRequest: StaticStructureSchema;
18
+ export declare var InvokeDataAutomationAsyncResponse: StaticStructureSchema;
19
+ export declare var ListTagsForResourceRequest: StaticStructureSchema;
20
+ export declare var ListTagsForResourceResponse: StaticStructureSchema;
21
+ export declare var NotificationConfiguration: StaticStructureSchema;
22
+ export declare var OutputConfiguration: StaticStructureSchema;
23
+ export declare var ResourceNotFoundException: StaticErrorSchema;
24
+ export declare var ServiceQuotaExceededException: StaticErrorSchema;
25
+ export declare var Tag: StaticStructureSchema;
26
+ export declare var TagResourceRequest: StaticStructureSchema;
27
+ export declare var TagResourceResponse: StaticStructureSchema;
28
+ export declare var ThrottlingException: StaticErrorSchema;
29
+ export declare var TimestampSegment: StaticStructureSchema;
30
+ export declare var UntagResourceRequest: StaticStructureSchema;
31
+ export declare var UntagResourceResponse: StaticStructureSchema;
32
+ export declare var ValidationException: StaticErrorSchema;
33
+ export declare var VideoAssetProcessingConfiguration: StaticStructureSchema;
34
+ export declare var __Unit: "unit";
35
+ export declare var BedrockDataAutomationRuntimeServiceException: StaticErrorSchema;
36
+ export declare var BlueprintList: StaticListSchema;
37
+ export declare var TagKeyList: number;
38
+ export declare var TagList: StaticListSchema;
39
+ export declare var EncryptionContextMap: number;
40
+ export declare var VideoSegmentConfiguration: StaticStructureSchema;
41
+ export declare var GetDataAutomationStatus: StaticOperationSchema;
42
+ export declare var InvokeDataAutomationAsync: StaticOperationSchema;
43
+ export declare var ListTagsForResource: StaticOperationSchema;
44
+ export declare var TagResource: StaticOperationSchema;
45
+ export declare var UntagResource: 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.926.0",
4
+ "version": "3.928.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",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.926.0",
24
- "@aws-sdk/credential-provider-node": "3.926.0",
23
+ "@aws-sdk/core": "3.928.0",
24
+ "@aws-sdk/credential-provider-node": "3.928.0",
25
25
  "@aws-sdk/middleware-host-header": "3.922.0",
26
26
  "@aws-sdk/middleware-logger": "3.922.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.926.0",
28
+ "@aws-sdk/middleware-user-agent": "3.928.0",
29
29
  "@aws-sdk/region-config-resolver": "3.925.0",
30
30
  "@aws-sdk/types": "3.922.0",
31
31
  "@aws-sdk/util-endpoints": "3.922.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.926.0",
33
+ "@aws-sdk/util-user-agent-node": "3.928.0",
34
34
  "@smithy/config-resolver": "^4.4.2",
35
35
  "@smithy/core": "^3.17.2",
36
36
  "@smithy/fetch-http-handler": "^5.3.5",
@@ -56,7 +56,6 @@
56
56
  "@smithy/util-middleware": "^4.2.4",
57
57
  "@smithy/util-retry": "^4.2.4",
58
58
  "@smithy/util-utf8": "^4.2.0",
59
- "@smithy/uuid": "^1.1.0",
60
59
  "tslib": "^2.6.2"
61
60
  },
62
61
  "devDependencies": {
@@ -1,234 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { BedrockDataAutomationRuntimeServiceException as __BaseException } from "../models/BedrockDataAutomationRuntimeServiceException";
6
- import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
7
- export const se_GetDataAutomationStatusCommand = async (input, context) => {
8
- const headers = sharedHeaders("GetDataAutomationStatus");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_InvokeDataAutomationAsyncCommand = async (input, context) => {
14
- const headers = sharedHeaders("InvokeDataAutomationAsync");
15
- let body;
16
- body = JSON.stringify(se_InvokeDataAutomationAsyncRequest(input, context));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_ListTagsForResourceCommand = async (input, context) => {
20
- const headers = sharedHeaders("ListTagsForResource");
21
- let body;
22
- body = JSON.stringify(_json(input));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_TagResourceCommand = async (input, context) => {
26
- const headers = sharedHeaders("TagResource");
27
- let body;
28
- body = JSON.stringify(_json(input));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_UntagResourceCommand = async (input, context) => {
32
- const headers = sharedHeaders("UntagResource");
33
- let body;
34
- body = JSON.stringify(_json(input));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const de_GetDataAutomationStatusCommand = async (output, context) => {
38
- if (output.statusCode >= 300) {
39
- return de_CommandError(output, context);
40
- }
41
- const data = await parseBody(output.body, context);
42
- let contents = {};
43
- contents = _json(data);
44
- const response = {
45
- $metadata: deserializeMetadata(output),
46
- ...contents,
47
- };
48
- return response;
49
- };
50
- export const de_InvokeDataAutomationAsyncCommand = async (output, context) => {
51
- if (output.statusCode >= 300) {
52
- return de_CommandError(output, context);
53
- }
54
- const data = await parseBody(output.body, context);
55
- let contents = {};
56
- contents = _json(data);
57
- const response = {
58
- $metadata: deserializeMetadata(output),
59
- ...contents,
60
- };
61
- return response;
62
- };
63
- export const de_ListTagsForResourceCommand = async (output, context) => {
64
- if (output.statusCode >= 300) {
65
- return de_CommandError(output, context);
66
- }
67
- const data = await parseBody(output.body, context);
68
- let contents = {};
69
- contents = _json(data);
70
- const response = {
71
- $metadata: deserializeMetadata(output),
72
- ...contents,
73
- };
74
- return response;
75
- };
76
- export const de_TagResourceCommand = async (output, context) => {
77
- if (output.statusCode >= 300) {
78
- return de_CommandError(output, context);
79
- }
80
- const data = await parseBody(output.body, context);
81
- let contents = {};
82
- contents = _json(data);
83
- const response = {
84
- $metadata: deserializeMetadata(output),
85
- ...contents,
86
- };
87
- return response;
88
- };
89
- export const de_UntagResourceCommand = async (output, context) => {
90
- if (output.statusCode >= 300) {
91
- return de_CommandError(output, context);
92
- }
93
- const data = await parseBody(output.body, context);
94
- let contents = {};
95
- contents = _json(data);
96
- const response = {
97
- $metadata: deserializeMetadata(output),
98
- ...contents,
99
- };
100
- return response;
101
- };
102
- const de_CommandError = async (output, context) => {
103
- const parsedOutput = {
104
- ...output,
105
- body: await parseErrorBody(output.body, context),
106
- };
107
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
108
- switch (errorCode) {
109
- case "AccessDeniedException":
110
- case "com.amazonaws.bedrockdataautomationruntime#AccessDeniedException":
111
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
112
- case "InternalServerException":
113
- case "com.amazonaws.bedrockdataautomationruntime#InternalServerException":
114
- throw await de_InternalServerExceptionRes(parsedOutput, context);
115
- case "ResourceNotFoundException":
116
- case "com.amazonaws.bedrockdataautomationruntime#ResourceNotFoundException":
117
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
118
- case "ThrottlingException":
119
- case "com.amazonaws.bedrockdataautomationruntime#ThrottlingException":
120
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
121
- case "ValidationException":
122
- case "com.amazonaws.bedrockdataautomationruntime#ValidationException":
123
- throw await de_ValidationExceptionRes(parsedOutput, context);
124
- case "ServiceQuotaExceededException":
125
- case "com.amazonaws.bedrockdataautomationruntime#ServiceQuotaExceededException":
126
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
127
- default:
128
- const parsedBody = parsedOutput.body;
129
- return throwDefaultError({
130
- output,
131
- parsedBody,
132
- errorCode,
133
- });
134
- }
135
- };
136
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
137
- const body = parsedOutput.body;
138
- const deserialized = _json(body);
139
- const exception = new AccessDeniedException({
140
- $metadata: deserializeMetadata(parsedOutput),
141
- ...deserialized,
142
- });
143
- return __decorateServiceException(exception, body);
144
- };
145
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
146
- const body = parsedOutput.body;
147
- const deserialized = _json(body);
148
- const exception = new InternalServerException({
149
- $metadata: deserializeMetadata(parsedOutput),
150
- ...deserialized,
151
- });
152
- return __decorateServiceException(exception, body);
153
- };
154
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
155
- const body = parsedOutput.body;
156
- const deserialized = _json(body);
157
- const exception = new ResourceNotFoundException({
158
- $metadata: deserializeMetadata(parsedOutput),
159
- ...deserialized,
160
- });
161
- return __decorateServiceException(exception, body);
162
- };
163
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
164
- const body = parsedOutput.body;
165
- const deserialized = _json(body);
166
- const exception = new ServiceQuotaExceededException({
167
- $metadata: deserializeMetadata(parsedOutput),
168
- ...deserialized,
169
- });
170
- return __decorateServiceException(exception, body);
171
- };
172
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
173
- const body = parsedOutput.body;
174
- const deserialized = _json(body);
175
- const exception = new ThrottlingException({
176
- $metadata: deserializeMetadata(parsedOutput),
177
- ...deserialized,
178
- });
179
- return __decorateServiceException(exception, body);
180
- };
181
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
182
- const body = parsedOutput.body;
183
- const deserialized = _json(body);
184
- const exception = new ValidationException({
185
- $metadata: deserializeMetadata(parsedOutput),
186
- ...deserialized,
187
- });
188
- return __decorateServiceException(exception, body);
189
- };
190
- const se_InvokeDataAutomationAsyncRequest = (input, context) => {
191
- return take(input, {
192
- blueprints: _json,
193
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
194
- dataAutomationConfiguration: _json,
195
- dataAutomationProfileArn: [],
196
- encryptionConfiguration: _json,
197
- inputConfiguration: _json,
198
- notificationConfiguration: _json,
199
- outputConfiguration: _json,
200
- tags: _json,
201
- });
202
- };
203
- const deserializeMetadata = (output) => ({
204
- httpStatusCode: output.statusCode,
205
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
206
- extendedRequestId: output.headers["x-amz-id-2"],
207
- cfId: output.headers["x-amz-cf-id"],
208
- });
209
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
210
- const throwDefaultError = withBaseException(__BaseException);
211
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
212
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
213
- const contents = {
214
- protocol,
215
- hostname,
216
- port,
217
- method: "POST",
218
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
219
- headers,
220
- };
221
- if (resolvedHostname !== undefined) {
222
- contents.hostname = resolvedHostname;
223
- }
224
- if (body !== undefined) {
225
- contents.body = body;
226
- }
227
- return new __HttpRequest(contents);
228
- };
229
- function sharedHeaders(operation) {
230
- return {
231
- "content-type": "application/x-amz-json-1.1",
232
- "x-amz-target": `AmazonBedrockKeystoneRuntimeService.${operation}`,
233
- };
234
- }
@@ -1,47 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { GetDataAutomationStatusCommandInput, GetDataAutomationStatusCommandOutput } from "../commands/GetDataAutomationStatusCommand";
4
- import { InvokeDataAutomationAsyncCommandInput, InvokeDataAutomationAsyncCommandOutput } from "../commands/InvokeDataAutomationAsyncCommand";
5
- import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
6
- import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
7
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
8
- /**
9
- * serializeAws_json1_1GetDataAutomationStatusCommand
10
- */
11
- export declare const se_GetDataAutomationStatusCommand: (input: GetDataAutomationStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
12
- /**
13
- * serializeAws_json1_1InvokeDataAutomationAsyncCommand
14
- */
15
- export declare const se_InvokeDataAutomationAsyncCommand: (input: InvokeDataAutomationAsyncCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
- /**
17
- * serializeAws_json1_1ListTagsForResourceCommand
18
- */
19
- export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
- /**
21
- * serializeAws_json1_1TagResourceCommand
22
- */
23
- export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
- /**
25
- * serializeAws_json1_1UntagResourceCommand
26
- */
27
- export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
- /**
29
- * deserializeAws_json1_1GetDataAutomationStatusCommand
30
- */
31
- export declare const de_GetDataAutomationStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDataAutomationStatusCommandOutput>;
32
- /**
33
- * deserializeAws_json1_1InvokeDataAutomationAsyncCommand
34
- */
35
- export declare const de_InvokeDataAutomationAsyncCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<InvokeDataAutomationAsyncCommandOutput>;
36
- /**
37
- * deserializeAws_json1_1ListTagsForResourceCommand
38
- */
39
- export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
40
- /**
41
- * deserializeAws_json1_1TagResourceCommand
42
- */
43
- export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
44
- /**
45
- * deserializeAws_json1_1UntagResourceCommand
46
- */
47
- export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
@@ -1,65 +0,0 @@
1
- import {
2
- HttpRequest as __HttpRequest,
3
- HttpResponse as __HttpResponse,
4
- } from "@smithy/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@smithy/types";
6
- import {
7
- GetDataAutomationStatusCommandInput,
8
- GetDataAutomationStatusCommandOutput,
9
- } from "../commands/GetDataAutomationStatusCommand";
10
- import {
11
- InvokeDataAutomationAsyncCommandInput,
12
- InvokeDataAutomationAsyncCommandOutput,
13
- } from "../commands/InvokeDataAutomationAsyncCommand";
14
- import {
15
- ListTagsForResourceCommandInput,
16
- ListTagsForResourceCommandOutput,
17
- } from "../commands/ListTagsForResourceCommand";
18
- import {
19
- TagResourceCommandInput,
20
- TagResourceCommandOutput,
21
- } from "../commands/TagResourceCommand";
22
- import {
23
- UntagResourceCommandInput,
24
- UntagResourceCommandOutput,
25
- } from "../commands/UntagResourceCommand";
26
- export declare const se_GetDataAutomationStatusCommand: (
27
- input: GetDataAutomationStatusCommandInput,
28
- context: __SerdeContext
29
- ) => Promise<__HttpRequest>;
30
- export declare const se_InvokeDataAutomationAsyncCommand: (
31
- input: InvokeDataAutomationAsyncCommandInput,
32
- context: __SerdeContext
33
- ) => Promise<__HttpRequest>;
34
- export declare const se_ListTagsForResourceCommand: (
35
- input: ListTagsForResourceCommandInput,
36
- context: __SerdeContext
37
- ) => Promise<__HttpRequest>;
38
- export declare const se_TagResourceCommand: (
39
- input: TagResourceCommandInput,
40
- context: __SerdeContext
41
- ) => Promise<__HttpRequest>;
42
- export declare const se_UntagResourceCommand: (
43
- input: UntagResourceCommandInput,
44
- context: __SerdeContext
45
- ) => Promise<__HttpRequest>;
46
- export declare const de_GetDataAutomationStatusCommand: (
47
- output: __HttpResponse,
48
- context: __SerdeContext
49
- ) => Promise<GetDataAutomationStatusCommandOutput>;
50
- export declare const de_InvokeDataAutomationAsyncCommand: (
51
- output: __HttpResponse,
52
- context: __SerdeContext
53
- ) => Promise<InvokeDataAutomationAsyncCommandOutput>;
54
- export declare const de_ListTagsForResourceCommand: (
55
- output: __HttpResponse,
56
- context: __SerdeContext
57
- ) => Promise<ListTagsForResourceCommandOutput>;
58
- export declare const de_TagResourceCommand: (
59
- output: __HttpResponse,
60
- context: __SerdeContext
61
- ) => Promise<TagResourceCommandOutput>;
62
- export declare const de_UntagResourceCommand: (
63
- output: __HttpResponse,
64
- context: __SerdeContext
65
- ) => Promise<UntagResourceCommandOutput>;