@aws-sdk/client-bedrock-data-automation-runtime 3.899.0 → 3.906.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 +525 -651
- package/package.json +38 -38
package/dist-cjs/index.js
CHANGED
|
@@ -1,688 +1,562 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "bedrock",
|
|
26
|
+
});
|
|
10
27
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
33
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
-
AutomationJobStatus: () => AutomationJobStatus,
|
|
26
|
-
BedrockDataAutomationRuntime: () => BedrockDataAutomationRuntime,
|
|
27
|
-
BedrockDataAutomationRuntimeClient: () => BedrockDataAutomationRuntimeClient,
|
|
28
|
-
BedrockDataAutomationRuntimeServiceException: () => BedrockDataAutomationRuntimeServiceException,
|
|
29
|
-
BlueprintStage: () => BlueprintStage,
|
|
30
|
-
DataAutomationStage: () => DataAutomationStage,
|
|
31
|
-
GetDataAutomationStatusCommand: () => GetDataAutomationStatusCommand,
|
|
32
|
-
InternalServerException: () => InternalServerException,
|
|
33
|
-
InvokeDataAutomationAsyncCommand: () => InvokeDataAutomationAsyncCommand,
|
|
34
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
35
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
36
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
37
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
38
|
-
ThrottlingException: () => ThrottlingException,
|
|
39
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
40
|
-
ValidationException: () => ValidationException,
|
|
41
|
-
VideoSegmentConfiguration: () => VideoSegmentConfiguration,
|
|
42
|
-
__Client: () => import_smithy_client.Client
|
|
43
|
-
});
|
|
44
|
-
module.exports = __toCommonJS(index_exports);
|
|
45
34
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
80
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
81
79
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
80
|
+
class BedrockDataAutomationRuntimeClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultBedrockDataAutomationRuntimeHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
108
|
+
}
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
110
111
|
}
|
|
111
|
-
|
|
112
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
113
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
114
|
-
return {
|
|
115
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
116
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
117
|
-
credentials: config.credentials()
|
|
118
|
-
};
|
|
119
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
112
|
+
}
|
|
120
113
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
128
|
-
);
|
|
129
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
130
|
-
return Object.assign(
|
|
131
|
-
runtimeConfig,
|
|
132
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
133
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
134
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
135
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
136
|
-
);
|
|
137
|
-
}, "resolveRuntimeExtensions");
|
|
114
|
+
class BedrockDataAutomationRuntimeServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, BedrockDataAutomationRuntimeServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
138
120
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
158
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
159
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
160
|
-
this.config = _config_8;
|
|
161
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
162
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
163
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
164
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
165
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
166
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
167
|
-
this.middlewareStack.use(
|
|
168
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
169
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBedrockDataAutomationRuntimeHttpAuthSchemeParametersProvider,
|
|
170
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
171
|
-
"aws.auth#sigv4": config.credentials
|
|
172
|
-
}), "identityProviderConfigProvider")
|
|
173
|
-
})
|
|
174
|
-
);
|
|
175
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
179
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
180
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
181
|
-
*/
|
|
182
|
-
destroy() {
|
|
183
|
-
super.destroy();
|
|
184
|
-
}
|
|
121
|
+
class AccessDeniedException extends BedrockDataAutomationRuntimeServiceException {
|
|
122
|
+
name = "AccessDeniedException";
|
|
123
|
+
$fault = "client";
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const AutomationJobStatus = {
|
|
134
|
+
CLIENT_ERROR: "ClientError",
|
|
135
|
+
CREATED: "Created",
|
|
136
|
+
IN_PROGRESS: "InProgress",
|
|
137
|
+
SERVICE_ERROR: "ServiceError",
|
|
138
|
+
SUCCESS: "Success",
|
|
185
139
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
140
|
+
class InternalServerException extends BedrockDataAutomationRuntimeServiceException {
|
|
141
|
+
name = "InternalServerException";
|
|
142
|
+
$fault = "server";
|
|
143
|
+
constructor(opts) {
|
|
144
|
+
super({
|
|
145
|
+
name: "InternalServerException",
|
|
146
|
+
$fault: "server",
|
|
147
|
+
...opts,
|
|
148
|
+
});
|
|
149
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
class ResourceNotFoundException extends BedrockDataAutomationRuntimeServiceException {
|
|
153
|
+
name = "ResourceNotFoundException";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "ResourceNotFoundException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
class ThrottlingException extends BedrockDataAutomationRuntimeServiceException {
|
|
165
|
+
name = "ThrottlingException";
|
|
166
|
+
$fault = "client";
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "ThrottlingException",
|
|
170
|
+
$fault: "client",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
class ValidationException extends BedrockDataAutomationRuntimeServiceException {
|
|
177
|
+
name = "ValidationException";
|
|
178
|
+
$fault = "client";
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "ValidationException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
const BlueprintStage = {
|
|
189
|
+
DEVELOPMENT: "DEVELOPMENT",
|
|
190
|
+
LIVE: "LIVE",
|
|
214
191
|
};
|
|
192
|
+
const DataAutomationStage = {
|
|
193
|
+
DEVELOPMENT: "DEVELOPMENT",
|
|
194
|
+
LIVE: "LIVE",
|
|
195
|
+
};
|
|
196
|
+
exports.VideoSegmentConfiguration = void 0;
|
|
197
|
+
(function (VideoSegmentConfiguration) {
|
|
198
|
+
VideoSegmentConfiguration.visit = (value, visitor) => {
|
|
199
|
+
if (value.timestampSegment !== undefined)
|
|
200
|
+
return visitor.timestampSegment(value.timestampSegment);
|
|
201
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
202
|
+
};
|
|
203
|
+
})(exports.VideoSegmentConfiguration || (exports.VideoSegmentConfiguration = {}));
|
|
204
|
+
class ServiceQuotaExceededException extends BedrockDataAutomationRuntimeServiceException {
|
|
205
|
+
name = "ServiceQuotaExceededException";
|
|
206
|
+
$fault = "client";
|
|
207
|
+
constructor(opts) {
|
|
208
|
+
super({
|
|
209
|
+
name: "ServiceQuotaExceededException",
|
|
210
|
+
$fault: "client",
|
|
211
|
+
...opts,
|
|
212
|
+
});
|
|
213
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
215
216
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
super({
|
|
228
|
-
name: "AccessDeniedException",
|
|
229
|
-
$fault: "client",
|
|
230
|
-
...opts
|
|
231
|
-
});
|
|
232
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
233
|
-
}
|
|
217
|
+
const se_GetDataAutomationStatusCommand = async (input, context) => {
|
|
218
|
+
const headers = sharedHeaders("GetDataAutomationStatus");
|
|
219
|
+
let body;
|
|
220
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
221
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
|
+
};
|
|
223
|
+
const se_InvokeDataAutomationAsyncCommand = async (input, context) => {
|
|
224
|
+
const headers = sharedHeaders("InvokeDataAutomationAsync");
|
|
225
|
+
let body;
|
|
226
|
+
body = JSON.stringify(se_InvokeDataAutomationAsyncRequest(input));
|
|
227
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
228
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
SUCCESS: "Success"
|
|
229
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
230
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
231
|
+
let body;
|
|
232
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
233
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
241
234
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
235
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
236
|
+
const headers = sharedHeaders("TagResource");
|
|
237
|
+
let body;
|
|
238
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
239
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
+
};
|
|
241
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
242
|
+
const headers = sharedHeaders("UntagResource");
|
|
243
|
+
let body;
|
|
244
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
245
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
+
};
|
|
247
|
+
const de_GetDataAutomationStatusCommand = async (output, context) => {
|
|
248
|
+
if (output.statusCode >= 300) {
|
|
249
|
+
return de_CommandError(output, context);
|
|
250
|
+
}
|
|
251
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
252
|
+
let contents = {};
|
|
253
|
+
contents = smithyClient._json(data);
|
|
254
|
+
const response = {
|
|
255
|
+
$metadata: deserializeMetadata(output),
|
|
256
|
+
...contents,
|
|
257
|
+
};
|
|
258
|
+
return response;
|
|
259
|
+
};
|
|
260
|
+
const de_InvokeDataAutomationAsyncCommand = async (output, context) => {
|
|
261
|
+
if (output.statusCode >= 300) {
|
|
262
|
+
return de_CommandError(output, context);
|
|
263
|
+
}
|
|
264
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
265
|
+
let contents = {};
|
|
266
|
+
contents = smithyClient._json(data);
|
|
267
|
+
const response = {
|
|
268
|
+
$metadata: deserializeMetadata(output),
|
|
269
|
+
...contents,
|
|
270
|
+
};
|
|
271
|
+
return response;
|
|
272
|
+
};
|
|
273
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
274
|
+
if (output.statusCode >= 300) {
|
|
275
|
+
return de_CommandError(output, context);
|
|
276
|
+
}
|
|
277
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
278
|
+
let contents = {};
|
|
279
|
+
contents = smithyClient._json(data);
|
|
280
|
+
const response = {
|
|
281
|
+
$metadata: deserializeMetadata(output),
|
|
282
|
+
...contents,
|
|
283
|
+
};
|
|
284
|
+
return response;
|
|
285
|
+
};
|
|
286
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
287
|
+
if (output.statusCode >= 300) {
|
|
288
|
+
return de_CommandError(output, context);
|
|
289
|
+
}
|
|
290
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
291
|
+
let contents = {};
|
|
292
|
+
contents = smithyClient._json(data);
|
|
293
|
+
const response = {
|
|
294
|
+
$metadata: deserializeMetadata(output),
|
|
295
|
+
...contents,
|
|
296
|
+
};
|
|
297
|
+
return response;
|
|
298
|
+
};
|
|
299
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
300
|
+
if (output.statusCode >= 300) {
|
|
301
|
+
return de_CommandError(output, context);
|
|
302
|
+
}
|
|
303
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
304
|
+
let contents = {};
|
|
305
|
+
contents = smithyClient._json(data);
|
|
306
|
+
const response = {
|
|
307
|
+
$metadata: deserializeMetadata(output),
|
|
308
|
+
...contents,
|
|
309
|
+
};
|
|
310
|
+
return response;
|
|
311
|
+
};
|
|
312
|
+
const de_CommandError = async (output, context) => {
|
|
313
|
+
const parsedOutput = {
|
|
314
|
+
...output,
|
|
315
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
316
|
+
};
|
|
317
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
318
|
+
switch (errorCode) {
|
|
319
|
+
case "AccessDeniedException":
|
|
320
|
+
case "com.amazonaws.bedrockdataautomationruntime#AccessDeniedException":
|
|
321
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
322
|
+
case "InternalServerException":
|
|
323
|
+
case "com.amazonaws.bedrockdataautomationruntime#InternalServerException":
|
|
324
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
325
|
+
case "ResourceNotFoundException":
|
|
326
|
+
case "com.amazonaws.bedrockdataautomationruntime#ResourceNotFoundException":
|
|
327
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
328
|
+
case "ThrottlingException":
|
|
329
|
+
case "com.amazonaws.bedrockdataautomationruntime#ThrottlingException":
|
|
330
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
331
|
+
case "ValidationException":
|
|
332
|
+
case "com.amazonaws.bedrockdataautomationruntime#ValidationException":
|
|
333
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
334
|
+
case "ServiceQuotaExceededException":
|
|
335
|
+
case "com.amazonaws.bedrockdataautomationruntime#ServiceQuotaExceededException":
|
|
336
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
337
|
+
default:
|
|
338
|
+
const parsedBody = parsedOutput.body;
|
|
339
|
+
return throwDefaultError({
|
|
340
|
+
output,
|
|
341
|
+
parsedBody,
|
|
342
|
+
errorCode,
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
347
|
+
const body = parsedOutput.body;
|
|
348
|
+
const deserialized = smithyClient._json(body);
|
|
349
|
+
const exception = new AccessDeniedException({
|
|
350
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
351
|
+
...deserialized,
|
|
256
352
|
});
|
|
257
|
-
|
|
258
|
-
}
|
|
353
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
259
354
|
};
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* @internal
|
|
268
|
-
*/
|
|
269
|
-
constructor(opts) {
|
|
270
|
-
super({
|
|
271
|
-
name: "ResourceNotFoundException",
|
|
272
|
-
$fault: "client",
|
|
273
|
-
...opts
|
|
355
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
356
|
+
const body = parsedOutput.body;
|
|
357
|
+
const deserialized = smithyClient._json(body);
|
|
358
|
+
const exception = new InternalServerException({
|
|
359
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
360
|
+
...deserialized,
|
|
274
361
|
});
|
|
275
|
-
|
|
276
|
-
}
|
|
362
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
277
363
|
};
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* @internal
|
|
286
|
-
*/
|
|
287
|
-
constructor(opts) {
|
|
288
|
-
super({
|
|
289
|
-
name: "ThrottlingException",
|
|
290
|
-
$fault: "client",
|
|
291
|
-
...opts
|
|
364
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
365
|
+
const body = parsedOutput.body;
|
|
366
|
+
const deserialized = smithyClient._json(body);
|
|
367
|
+
const exception = new ResourceNotFoundException({
|
|
368
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
369
|
+
...deserialized,
|
|
292
370
|
});
|
|
293
|
-
|
|
294
|
-
}
|
|
371
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
295
372
|
};
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* @internal
|
|
304
|
-
*/
|
|
305
|
-
constructor(opts) {
|
|
306
|
-
super({
|
|
307
|
-
name: "ValidationException",
|
|
308
|
-
$fault: "client",
|
|
309
|
-
...opts
|
|
373
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
374
|
+
const body = parsedOutput.body;
|
|
375
|
+
const deserialized = smithyClient._json(body);
|
|
376
|
+
const exception = new ServiceQuotaExceededException({
|
|
377
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
378
|
+
...deserialized,
|
|
310
379
|
});
|
|
311
|
-
|
|
312
|
-
}
|
|
380
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
313
381
|
};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
382
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
383
|
+
const body = parsedOutput.body;
|
|
384
|
+
const deserialized = smithyClient._json(body);
|
|
385
|
+
const exception = new ThrottlingException({
|
|
386
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
387
|
+
...deserialized,
|
|
388
|
+
});
|
|
389
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
317
390
|
};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
391
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
392
|
+
const body = parsedOutput.body;
|
|
393
|
+
const deserialized = smithyClient._json(body);
|
|
394
|
+
const exception = new ValidationException({
|
|
395
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
396
|
+
...deserialized,
|
|
397
|
+
});
|
|
398
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
321
399
|
};
|
|
322
|
-
|
|
323
|
-
(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
name = "ServiceQuotaExceededException";
|
|
334
|
-
$fault = "client";
|
|
335
|
-
/**
|
|
336
|
-
* @internal
|
|
337
|
-
*/
|
|
338
|
-
constructor(opts) {
|
|
339
|
-
super({
|
|
340
|
-
name: "ServiceQuotaExceededException",
|
|
341
|
-
$fault: "client",
|
|
342
|
-
...opts
|
|
400
|
+
const se_InvokeDataAutomationAsyncRequest = (input, context) => {
|
|
401
|
+
return smithyClient.take(input, {
|
|
402
|
+
blueprints: smithyClient._json,
|
|
403
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
404
|
+
dataAutomationConfiguration: smithyClient._json,
|
|
405
|
+
dataAutomationProfileArn: [],
|
|
406
|
+
encryptionConfiguration: smithyClient._json,
|
|
407
|
+
inputConfiguration: smithyClient._json,
|
|
408
|
+
notificationConfiguration: smithyClient._json,
|
|
409
|
+
outputConfiguration: smithyClient._json,
|
|
410
|
+
tags: smithyClient._json,
|
|
343
411
|
});
|
|
344
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
345
|
-
}
|
|
346
412
|
};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
371
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
372
|
-
}, "se_TagResourceCommand");
|
|
373
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
374
|
-
const headers = sharedHeaders("UntagResource");
|
|
375
|
-
let body;
|
|
376
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
377
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
378
|
-
}, "se_UntagResourceCommand");
|
|
379
|
-
var de_GetDataAutomationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
380
|
-
if (output.statusCode >= 300) {
|
|
381
|
-
return de_CommandError(output, context);
|
|
382
|
-
}
|
|
383
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
384
|
-
let contents = {};
|
|
385
|
-
contents = (0, import_smithy_client._json)(data);
|
|
386
|
-
const response = {
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
...contents
|
|
389
|
-
};
|
|
390
|
-
return response;
|
|
391
|
-
}, "de_GetDataAutomationStatusCommand");
|
|
392
|
-
var de_InvokeDataAutomationAsyncCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
393
|
-
if (output.statusCode >= 300) {
|
|
394
|
-
return de_CommandError(output, context);
|
|
395
|
-
}
|
|
396
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
397
|
-
let contents = {};
|
|
398
|
-
contents = (0, import_smithy_client._json)(data);
|
|
399
|
-
const response = {
|
|
400
|
-
$metadata: deserializeMetadata(output),
|
|
401
|
-
...contents
|
|
402
|
-
};
|
|
403
|
-
return response;
|
|
404
|
-
}, "de_InvokeDataAutomationAsyncCommand");
|
|
405
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
406
|
-
if (output.statusCode >= 300) {
|
|
407
|
-
return de_CommandError(output, context);
|
|
408
|
-
}
|
|
409
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
410
|
-
let contents = {};
|
|
411
|
-
contents = (0, import_smithy_client._json)(data);
|
|
412
|
-
const response = {
|
|
413
|
-
$metadata: deserializeMetadata(output),
|
|
414
|
-
...contents
|
|
415
|
-
};
|
|
416
|
-
return response;
|
|
417
|
-
}, "de_ListTagsForResourceCommand");
|
|
418
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
419
|
-
if (output.statusCode >= 300) {
|
|
420
|
-
return de_CommandError(output, context);
|
|
421
|
-
}
|
|
422
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
423
|
-
let contents = {};
|
|
424
|
-
contents = (0, import_smithy_client._json)(data);
|
|
425
|
-
const response = {
|
|
426
|
-
$metadata: deserializeMetadata(output),
|
|
427
|
-
...contents
|
|
428
|
-
};
|
|
429
|
-
return response;
|
|
430
|
-
}, "de_TagResourceCommand");
|
|
431
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
432
|
-
if (output.statusCode >= 300) {
|
|
433
|
-
return de_CommandError(output, context);
|
|
434
|
-
}
|
|
435
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
436
|
-
let contents = {};
|
|
437
|
-
contents = (0, import_smithy_client._json)(data);
|
|
438
|
-
const response = {
|
|
439
|
-
$metadata: deserializeMetadata(output),
|
|
440
|
-
...contents
|
|
441
|
-
};
|
|
442
|
-
return response;
|
|
443
|
-
}, "de_UntagResourceCommand");
|
|
444
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
445
|
-
const parsedOutput = {
|
|
446
|
-
...output,
|
|
447
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
448
|
-
};
|
|
449
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
450
|
-
switch (errorCode) {
|
|
451
|
-
case "AccessDeniedException":
|
|
452
|
-
case "com.amazonaws.bedrockdataautomationruntime#AccessDeniedException":
|
|
453
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
454
|
-
case "InternalServerException":
|
|
455
|
-
case "com.amazonaws.bedrockdataautomationruntime#InternalServerException":
|
|
456
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
457
|
-
case "ResourceNotFoundException":
|
|
458
|
-
case "com.amazonaws.bedrockdataautomationruntime#ResourceNotFoundException":
|
|
459
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ThrottlingException":
|
|
461
|
-
case "com.amazonaws.bedrockdataautomationruntime#ThrottlingException":
|
|
462
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ValidationException":
|
|
464
|
-
case "com.amazonaws.bedrockdataautomationruntime#ValidationException":
|
|
465
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
466
|
-
case "ServiceQuotaExceededException":
|
|
467
|
-
case "com.amazonaws.bedrockdataautomationruntime#ServiceQuotaExceededException":
|
|
468
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
469
|
-
default:
|
|
470
|
-
const parsedBody = parsedOutput.body;
|
|
471
|
-
return throwDefaultError({
|
|
472
|
-
output,
|
|
473
|
-
parsedBody,
|
|
474
|
-
errorCode
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
}, "de_CommandError");
|
|
478
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
479
|
-
const body = parsedOutput.body;
|
|
480
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
481
|
-
const exception = new AccessDeniedException({
|
|
482
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
483
|
-
...deserialized
|
|
484
|
-
});
|
|
485
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
486
|
-
}, "de_AccessDeniedExceptionRes");
|
|
487
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
488
|
-
const body = parsedOutput.body;
|
|
489
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
490
|
-
const exception = new InternalServerException({
|
|
491
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
492
|
-
...deserialized
|
|
493
|
-
});
|
|
494
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
495
|
-
}, "de_InternalServerExceptionRes");
|
|
496
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
497
|
-
const body = parsedOutput.body;
|
|
498
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
499
|
-
const exception = new ResourceNotFoundException({
|
|
500
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
501
|
-
...deserialized
|
|
502
|
-
});
|
|
503
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
504
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
505
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
506
|
-
const body = parsedOutput.body;
|
|
507
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
508
|
-
const exception = new ServiceQuotaExceededException({
|
|
509
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
510
|
-
...deserialized
|
|
511
|
-
});
|
|
512
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
513
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
514
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
515
|
-
const body = parsedOutput.body;
|
|
516
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
517
|
-
const exception = new ThrottlingException({
|
|
518
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
519
|
-
...deserialized
|
|
520
|
-
});
|
|
521
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
522
|
-
}, "de_ThrottlingExceptionRes");
|
|
523
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
524
|
-
const body = parsedOutput.body;
|
|
525
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
526
|
-
const exception = new ValidationException({
|
|
527
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
528
|
-
...deserialized
|
|
529
|
-
});
|
|
530
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
531
|
-
}, "de_ValidationExceptionRes");
|
|
532
|
-
var se_InvokeDataAutomationAsyncRequest = /* @__PURE__ */ __name((input, context) => {
|
|
533
|
-
return (0, import_smithy_client.take)(input, {
|
|
534
|
-
blueprints: import_smithy_client._json,
|
|
535
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
536
|
-
dataAutomationConfiguration: import_smithy_client._json,
|
|
537
|
-
dataAutomationProfileArn: [],
|
|
538
|
-
encryptionConfiguration: import_smithy_client._json,
|
|
539
|
-
inputConfiguration: import_smithy_client._json,
|
|
540
|
-
notificationConfiguration: import_smithy_client._json,
|
|
541
|
-
outputConfiguration: import_smithy_client._json,
|
|
542
|
-
tags: import_smithy_client._json
|
|
543
|
-
});
|
|
544
|
-
}, "se_InvokeDataAutomationAsyncRequest");
|
|
545
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
546
|
-
httpStatusCode: output.statusCode,
|
|
547
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
548
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
549
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
550
|
-
}), "deserializeMetadata");
|
|
551
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(BedrockDataAutomationRuntimeServiceException);
|
|
552
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
553
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
554
|
-
const contents = {
|
|
555
|
-
protocol,
|
|
556
|
-
hostname,
|
|
557
|
-
port,
|
|
558
|
-
method: "POST",
|
|
559
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
560
|
-
headers
|
|
561
|
-
};
|
|
562
|
-
if (resolvedHostname !== void 0) {
|
|
563
|
-
contents.hostname = resolvedHostname;
|
|
564
|
-
}
|
|
565
|
-
if (body !== void 0) {
|
|
566
|
-
contents.body = body;
|
|
567
|
-
}
|
|
568
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
569
|
-
}, "buildHttpRpcRequest");
|
|
413
|
+
const deserializeMetadata = (output) => ({
|
|
414
|
+
httpStatusCode: output.statusCode,
|
|
415
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
416
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
417
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
418
|
+
});
|
|
419
|
+
const throwDefaultError = smithyClient.withBaseException(BedrockDataAutomationRuntimeServiceException);
|
|
420
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
421
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
422
|
+
const contents = {
|
|
423
|
+
protocol,
|
|
424
|
+
hostname,
|
|
425
|
+
port,
|
|
426
|
+
method: "POST",
|
|
427
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
428
|
+
headers,
|
|
429
|
+
};
|
|
430
|
+
if (body !== undefined) {
|
|
431
|
+
contents.body = body;
|
|
432
|
+
}
|
|
433
|
+
return new protocolHttp.HttpRequest(contents);
|
|
434
|
+
};
|
|
570
435
|
function sharedHeaders(operation) {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
436
|
+
return {
|
|
437
|
+
"content-type": "application/x-amz-json-1.1",
|
|
438
|
+
"x-amz-target": `AmazonBedrockKeystoneRuntimeService.${operation}`,
|
|
439
|
+
};
|
|
575
440
|
}
|
|
576
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
577
|
-
|
|
578
|
-
// src/commands/GetDataAutomationStatusCommand.ts
|
|
579
|
-
var GetDataAutomationStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
580
|
-
return [
|
|
581
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
582
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
583
|
-
];
|
|
584
|
-
}).s("AmazonBedrockKeystoneRuntimeService", "GetDataAutomationStatus", {}).n("BedrockDataAutomationRuntimeClient", "GetDataAutomationStatusCommand").f(void 0, void 0).ser(se_GetDataAutomationStatusCommand).de(de_GetDataAutomationStatusCommand).build() {
|
|
585
|
-
static {
|
|
586
|
-
__name(this, "GetDataAutomationStatusCommand");
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
// src/commands/InvokeDataAutomationAsyncCommand.ts
|
|
591
|
-
|
|
592
441
|
|
|
442
|
+
class GetDataAutomationStatusCommand extends smithyClient.Command
|
|
443
|
+
.classBuilder()
|
|
444
|
+
.ep(commonParams)
|
|
445
|
+
.m(function (Command, cs, config, o) {
|
|
446
|
+
return [
|
|
447
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
448
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
449
|
+
];
|
|
450
|
+
})
|
|
451
|
+
.s("AmazonBedrockKeystoneRuntimeService", "GetDataAutomationStatus", {})
|
|
452
|
+
.n("BedrockDataAutomationRuntimeClient", "GetDataAutomationStatusCommand")
|
|
453
|
+
.f(void 0, void 0)
|
|
454
|
+
.ser(se_GetDataAutomationStatusCommand)
|
|
455
|
+
.de(de_GetDataAutomationStatusCommand)
|
|
456
|
+
.build() {
|
|
457
|
+
}
|
|
593
458
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
(
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
return [
|
|
611
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
612
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
613
|
-
];
|
|
614
|
-
}).s("AmazonBedrockKeystoneRuntimeService", "ListTagsForResource", {}).n("BedrockDataAutomationRuntimeClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
615
|
-
static {
|
|
616
|
-
__name(this, "ListTagsForResourceCommand");
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
// src/commands/TagResourceCommand.ts
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
625
|
-
return [
|
|
626
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
627
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
628
|
-
];
|
|
629
|
-
}).s("AmazonBedrockKeystoneRuntimeService", "TagResource", {}).n("BedrockDataAutomationRuntimeClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
630
|
-
static {
|
|
631
|
-
__name(this, "TagResourceCommand");
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
// src/commands/UntagResourceCommand.ts
|
|
459
|
+
class InvokeDataAutomationAsyncCommand extends smithyClient.Command
|
|
460
|
+
.classBuilder()
|
|
461
|
+
.ep(commonParams)
|
|
462
|
+
.m(function (Command, cs, config, o) {
|
|
463
|
+
return [
|
|
464
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
465
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
466
|
+
];
|
|
467
|
+
})
|
|
468
|
+
.s("AmazonBedrockKeystoneRuntimeService", "InvokeDataAutomationAsync", {})
|
|
469
|
+
.n("BedrockDataAutomationRuntimeClient", "InvokeDataAutomationAsyncCommand")
|
|
470
|
+
.f(void 0, void 0)
|
|
471
|
+
.ser(se_InvokeDataAutomationAsyncCommand)
|
|
472
|
+
.de(de_InvokeDataAutomationAsyncCommand)
|
|
473
|
+
.build() {
|
|
474
|
+
}
|
|
636
475
|
|
|
476
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
477
|
+
.classBuilder()
|
|
478
|
+
.ep(commonParams)
|
|
479
|
+
.m(function (Command, cs, config, o) {
|
|
480
|
+
return [
|
|
481
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
482
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
483
|
+
];
|
|
484
|
+
})
|
|
485
|
+
.s("AmazonBedrockKeystoneRuntimeService", "ListTagsForResource", {})
|
|
486
|
+
.n("BedrockDataAutomationRuntimeClient", "ListTagsForResourceCommand")
|
|
487
|
+
.f(void 0, void 0)
|
|
488
|
+
.ser(se_ListTagsForResourceCommand)
|
|
489
|
+
.de(de_ListTagsForResourceCommand)
|
|
490
|
+
.build() {
|
|
491
|
+
}
|
|
637
492
|
|
|
493
|
+
class TagResourceCommand extends smithyClient.Command
|
|
494
|
+
.classBuilder()
|
|
495
|
+
.ep(commonParams)
|
|
496
|
+
.m(function (Command, cs, config, o) {
|
|
497
|
+
return [
|
|
498
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
499
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
500
|
+
];
|
|
501
|
+
})
|
|
502
|
+
.s("AmazonBedrockKeystoneRuntimeService", "TagResource", {})
|
|
503
|
+
.n("BedrockDataAutomationRuntimeClient", "TagResourceCommand")
|
|
504
|
+
.f(void 0, void 0)
|
|
505
|
+
.ser(se_TagResourceCommand)
|
|
506
|
+
.de(de_TagResourceCommand)
|
|
507
|
+
.build() {
|
|
508
|
+
}
|
|
638
509
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
(
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
510
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
511
|
+
.classBuilder()
|
|
512
|
+
.ep(commonParams)
|
|
513
|
+
.m(function (Command, cs, config, o) {
|
|
514
|
+
return [
|
|
515
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
516
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
517
|
+
];
|
|
518
|
+
})
|
|
519
|
+
.s("AmazonBedrockKeystoneRuntimeService", "UntagResource", {})
|
|
520
|
+
.n("BedrockDataAutomationRuntimeClient", "UntagResourceCommand")
|
|
521
|
+
.f(void 0, void 0)
|
|
522
|
+
.ser(se_UntagResourceCommand)
|
|
523
|
+
.de(de_UntagResourceCommand)
|
|
524
|
+
.build() {
|
|
525
|
+
}
|
|
649
526
|
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
UntagResourceCommand
|
|
657
|
-
};
|
|
658
|
-
var BedrockDataAutomationRuntime = class extends BedrockDataAutomationRuntimeClient {
|
|
659
|
-
static {
|
|
660
|
-
__name(this, "BedrockDataAutomationRuntime");
|
|
661
|
-
}
|
|
527
|
+
const commands = {
|
|
528
|
+
GetDataAutomationStatusCommand,
|
|
529
|
+
InvokeDataAutomationAsyncCommand,
|
|
530
|
+
ListTagsForResourceCommand,
|
|
531
|
+
TagResourceCommand,
|
|
532
|
+
UntagResourceCommand,
|
|
662
533
|
};
|
|
663
|
-
|
|
664
|
-
|
|
534
|
+
class BedrockDataAutomationRuntime extends BedrockDataAutomationRuntimeClient {
|
|
535
|
+
}
|
|
536
|
+
smithyClient.createAggregatedClient(commands, BedrockDataAutomationRuntime);
|
|
665
537
|
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
BedrockDataAutomationRuntimeClient,
|
|
670
|
-
BedrockDataAutomationRuntime,
|
|
671
|
-
$Command,
|
|
672
|
-
GetDataAutomationStatusCommand,
|
|
673
|
-
InvokeDataAutomationAsyncCommand,
|
|
674
|
-
ListTagsForResourceCommand,
|
|
675
|
-
TagResourceCommand,
|
|
676
|
-
UntagResourceCommand,
|
|
677
|
-
AccessDeniedException,
|
|
678
|
-
AutomationJobStatus,
|
|
679
|
-
InternalServerException,
|
|
680
|
-
ResourceNotFoundException,
|
|
681
|
-
ThrottlingException,
|
|
682
|
-
ValidationException,
|
|
683
|
-
BlueprintStage,
|
|
684
|
-
DataAutomationStage,
|
|
685
|
-
VideoSegmentConfiguration,
|
|
686
|
-
ServiceQuotaExceededException
|
|
538
|
+
Object.defineProperty(exports, "$Command", {
|
|
539
|
+
enumerable: true,
|
|
540
|
+
get: function () { return smithyClient.Command; }
|
|
687
541
|
});
|
|
688
|
-
|
|
542
|
+
Object.defineProperty(exports, "__Client", {
|
|
543
|
+
enumerable: true,
|
|
544
|
+
get: function () { return smithyClient.Client; }
|
|
545
|
+
});
|
|
546
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
547
|
+
exports.AutomationJobStatus = AutomationJobStatus;
|
|
548
|
+
exports.BedrockDataAutomationRuntime = BedrockDataAutomationRuntime;
|
|
549
|
+
exports.BedrockDataAutomationRuntimeClient = BedrockDataAutomationRuntimeClient;
|
|
550
|
+
exports.BedrockDataAutomationRuntimeServiceException = BedrockDataAutomationRuntimeServiceException;
|
|
551
|
+
exports.BlueprintStage = BlueprintStage;
|
|
552
|
+
exports.DataAutomationStage = DataAutomationStage;
|
|
553
|
+
exports.GetDataAutomationStatusCommand = GetDataAutomationStatusCommand;
|
|
554
|
+
exports.InternalServerException = InternalServerException;
|
|
555
|
+
exports.InvokeDataAutomationAsyncCommand = InvokeDataAutomationAsyncCommand;
|
|
556
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
557
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
558
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
559
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
560
|
+
exports.ThrottlingException = ThrottlingException;
|
|
561
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
562
|
+
exports.ValidationException = ValidationException;
|
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.906.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,43 +20,43 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
-
"@smithy/config-resolver": "^4.
|
|
35
|
-
"@smithy/core": "^3.
|
|
36
|
-
"@smithy/fetch-http-handler": "^5.
|
|
37
|
-
"@smithy/hash-node": "^4.
|
|
38
|
-
"@smithy/invalid-dependency": "^4.
|
|
39
|
-
"@smithy/middleware-content-length": "^4.
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.
|
|
41
|
-
"@smithy/middleware-retry": "^4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.
|
|
43
|
-
"@smithy/middleware-stack": "^4.
|
|
44
|
-
"@smithy/node-config-provider": "^4.
|
|
45
|
-
"@smithy/node-http-handler": "^4.
|
|
46
|
-
"@smithy/protocol-http": "^5.
|
|
47
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
-
"@smithy/types": "^4.
|
|
49
|
-
"@smithy/url-parser": "^4.
|
|
50
|
-
"@smithy/util-base64": "^4.
|
|
51
|
-
"@smithy/util-body-length-browser": "^4.
|
|
52
|
-
"@smithy/util-body-length-node": "^4.
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.
|
|
55
|
-
"@smithy/util-endpoints": "^3.
|
|
56
|
-
"@smithy/util-middleware": "^4.
|
|
57
|
-
"@smithy/util-retry": "^4.
|
|
58
|
-
"@smithy/util-utf8": "^4.
|
|
59
|
-
"@smithy/uuid": "^1.
|
|
23
|
+
"@aws-sdk/core": "3.906.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.906.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.901.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.901.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.901.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.906.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.901.0",
|
|
30
|
+
"@aws-sdk/types": "3.901.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.901.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.901.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.906.0",
|
|
34
|
+
"@smithy/config-resolver": "^4.3.0",
|
|
35
|
+
"@smithy/core": "^3.14.0",
|
|
36
|
+
"@smithy/fetch-http-handler": "^5.3.0",
|
|
37
|
+
"@smithy/hash-node": "^4.2.0",
|
|
38
|
+
"@smithy/invalid-dependency": "^4.2.0",
|
|
39
|
+
"@smithy/middleware-content-length": "^4.2.0",
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.3.0",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.0",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.0",
|
|
43
|
+
"@smithy/middleware-stack": "^4.2.0",
|
|
44
|
+
"@smithy/node-config-provider": "^4.3.0",
|
|
45
|
+
"@smithy/node-http-handler": "^4.3.0",
|
|
46
|
+
"@smithy/protocol-http": "^5.3.0",
|
|
47
|
+
"@smithy/smithy-client": "^4.7.0",
|
|
48
|
+
"@smithy/types": "^4.6.0",
|
|
49
|
+
"@smithy/url-parser": "^4.2.0",
|
|
50
|
+
"@smithy/util-base64": "^4.2.0",
|
|
51
|
+
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
|
+
"@smithy/util-body-length-node": "^4.2.0",
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.2.0",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.0",
|
|
55
|
+
"@smithy/util-endpoints": "^3.2.0",
|
|
56
|
+
"@smithy/util-middleware": "^4.2.0",
|
|
57
|
+
"@smithy/util-retry": "^4.2.0",
|
|
58
|
+
"@smithy/util-utf8": "^4.2.0",
|
|
59
|
+
"@smithy/uuid": "^1.1.0",
|
|
60
60
|
"tslib": "^2.6.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|