@aws-sdk/client-bedrock-data-automation 3.901.0 → 3.907.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 +1259 -1438
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1472 +1,1293 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
BlueprintSummaryFilterSensitiveLog: () => BlueprintSummaryFilterSensitiveLog,
|
|
34
|
-
ConflictException: () => ConflictException,
|
|
35
|
-
CreateBlueprintCommand: () => CreateBlueprintCommand,
|
|
36
|
-
CreateBlueprintRequestFilterSensitiveLog: () => CreateBlueprintRequestFilterSensitiveLog,
|
|
37
|
-
CreateBlueprintResponseFilterSensitiveLog: () => CreateBlueprintResponseFilterSensitiveLog,
|
|
38
|
-
CreateBlueprintVersionCommand: () => CreateBlueprintVersionCommand,
|
|
39
|
-
CreateBlueprintVersionResponseFilterSensitiveLog: () => CreateBlueprintVersionResponseFilterSensitiveLog,
|
|
40
|
-
CreateDataAutomationProjectCommand: () => CreateDataAutomationProjectCommand,
|
|
41
|
-
CreateDataAutomationProjectRequestFilterSensitiveLog: () => CreateDataAutomationProjectRequestFilterSensitiveLog,
|
|
42
|
-
DataAutomationProjectFilterSensitiveLog: () => DataAutomationProjectFilterSensitiveLog,
|
|
43
|
-
DataAutomationProjectStage: () => DataAutomationProjectStage,
|
|
44
|
-
DataAutomationProjectStageFilter: () => DataAutomationProjectStageFilter,
|
|
45
|
-
DataAutomationProjectStatus: () => DataAutomationProjectStatus,
|
|
46
|
-
DataAutomationProjectSummaryFilterSensitiveLog: () => DataAutomationProjectSummaryFilterSensitiveLog,
|
|
47
|
-
DeleteBlueprintCommand: () => DeleteBlueprintCommand,
|
|
48
|
-
DeleteDataAutomationProjectCommand: () => DeleteDataAutomationProjectCommand,
|
|
49
|
-
DesiredModality: () => DesiredModality,
|
|
50
|
-
DocumentExtractionGranularityType: () => DocumentExtractionGranularityType,
|
|
51
|
-
DocumentOutputTextFormatType: () => DocumentOutputTextFormatType,
|
|
52
|
-
GetBlueprintCommand: () => GetBlueprintCommand,
|
|
53
|
-
GetBlueprintResponseFilterSensitiveLog: () => GetBlueprintResponseFilterSensitiveLog,
|
|
54
|
-
GetDataAutomationProjectCommand: () => GetDataAutomationProjectCommand,
|
|
55
|
-
GetDataAutomationProjectResponseFilterSensitiveLog: () => GetDataAutomationProjectResponseFilterSensitiveLog,
|
|
56
|
-
ImageExtractionCategoryType: () => ImageExtractionCategoryType,
|
|
57
|
-
ImageStandardGenerativeFieldType: () => ImageStandardGenerativeFieldType,
|
|
58
|
-
InternalServerException: () => InternalServerException,
|
|
59
|
-
ListBlueprintsCommand: () => ListBlueprintsCommand,
|
|
60
|
-
ListBlueprintsResponseFilterSensitiveLog: () => ListBlueprintsResponseFilterSensitiveLog,
|
|
61
|
-
ListDataAutomationProjectsCommand: () => ListDataAutomationProjectsCommand,
|
|
62
|
-
ListDataAutomationProjectsResponseFilterSensitiveLog: () => ListDataAutomationProjectsResponseFilterSensitiveLog,
|
|
63
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
64
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
65
|
-
ResourceOwner: () => ResourceOwner,
|
|
66
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
67
|
-
State: () => State,
|
|
68
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
69
|
-
ThrottlingException: () => ThrottlingException,
|
|
70
|
-
Type: () => Type,
|
|
71
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
72
|
-
UpdateBlueprintCommand: () => UpdateBlueprintCommand,
|
|
73
|
-
UpdateBlueprintRequestFilterSensitiveLog: () => UpdateBlueprintRequestFilterSensitiveLog,
|
|
74
|
-
UpdateBlueprintResponseFilterSensitiveLog: () => UpdateBlueprintResponseFilterSensitiveLog,
|
|
75
|
-
UpdateDataAutomationProjectCommand: () => UpdateDataAutomationProjectCommand,
|
|
76
|
-
UpdateDataAutomationProjectRequestFilterSensitiveLog: () => UpdateDataAutomationProjectRequestFilterSensitiveLog,
|
|
77
|
-
ValidationException: () => ValidationException,
|
|
78
|
-
VideoExtractionCategoryType: () => VideoExtractionCategoryType,
|
|
79
|
-
VideoStandardGenerativeFieldType: () => VideoStandardGenerativeFieldType,
|
|
80
|
-
__Client: () => import_smithy_client.Client,
|
|
81
|
-
paginateListBlueprints: () => paginateListBlueprints,
|
|
82
|
-
paginateListDataAutomationProjects: () => paginateListDataAutomationProjects
|
|
83
|
-
});
|
|
84
|
-
module.exports = __toCommonJS(index_exports);
|
|
85
|
-
|
|
86
|
-
// src/BedrockDataAutomationClient.ts
|
|
87
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
88
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
89
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
90
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
91
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
92
|
-
var import_core = require("@smithy/core");
|
|
93
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
94
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
95
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
96
|
-
|
|
97
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
98
|
-
|
|
99
|
-
// src/endpoint/EndpointParameters.ts
|
|
100
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
101
|
-
return Object.assign(options, {
|
|
102
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
103
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
104
|
-
defaultSigningName: "bedrock"
|
|
105
|
-
});
|
|
106
|
-
}, "resolveClientEndpointParameters");
|
|
107
|
-
var commonParams = {
|
|
108
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
109
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
110
|
-
Region: { type: "builtInParams", name: "region" },
|
|
111
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
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
|
+
});
|
|
27
|
+
};
|
|
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" },
|
|
112
33
|
};
|
|
113
34
|
|
|
114
|
-
|
|
115
|
-
|
|
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
|
+
};
|
|
116
73
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
+
};
|
|
121
79
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
80
|
+
class BedrockDataAutomationClient 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.defaultBedrockDataAutomationHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
150
108
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
156
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
157
|
-
credentials: config.credentials()
|
|
158
|
-
};
|
|
159
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
160
|
-
|
|
161
|
-
// src/runtimeExtensions.ts
|
|
162
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
163
|
-
const extensionConfiguration = Object.assign(
|
|
164
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
165
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
166
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
167
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
168
|
-
);
|
|
169
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
170
|
-
return Object.assign(
|
|
171
|
-
runtimeConfig,
|
|
172
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
173
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
174
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
175
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
176
|
-
);
|
|
177
|
-
}, "resolveRuntimeExtensions");
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
178
113
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
-
})
|
|
214
|
-
);
|
|
215
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
219
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
220
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
221
|
-
*/
|
|
222
|
-
destroy() {
|
|
223
|
-
super.destroy();
|
|
224
|
-
}
|
|
114
|
+
class BedrockDataAutomationServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, BedrockDataAutomationServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class AccessDeniedException extends BedrockDataAutomationServiceException {
|
|
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
|
+
class ConflictException extends BedrockDataAutomationServiceException {
|
|
134
|
+
name = "ConflictException";
|
|
135
|
+
$fault = "client";
|
|
136
|
+
constructor(opts) {
|
|
137
|
+
super({
|
|
138
|
+
name: "ConflictException",
|
|
139
|
+
$fault: "client",
|
|
140
|
+
...opts,
|
|
141
|
+
});
|
|
142
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const BlueprintStage = {
|
|
146
|
+
DEVELOPMENT: "DEVELOPMENT",
|
|
147
|
+
LIVE: "LIVE",
|
|
225
148
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
// src/models/models_0.ts
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
// src/models/BedrockDataAutomationServiceException.ts
|
|
239
|
-
|
|
240
|
-
var BedrockDataAutomationServiceException = class _BedrockDataAutomationServiceException extends import_smithy_client.ServiceException {
|
|
241
|
-
static {
|
|
242
|
-
__name(this, "BedrockDataAutomationServiceException");
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* @internal
|
|
246
|
-
*/
|
|
247
|
-
constructor(options) {
|
|
248
|
-
super(options);
|
|
249
|
-
Object.setPrototypeOf(this, _BedrockDataAutomationServiceException.prototype);
|
|
250
|
-
}
|
|
149
|
+
const Type = {
|
|
150
|
+
AUDIO: "AUDIO",
|
|
151
|
+
DOCUMENT: "DOCUMENT",
|
|
152
|
+
IMAGE: "IMAGE",
|
|
153
|
+
VIDEO: "VIDEO",
|
|
251
154
|
};
|
|
155
|
+
class InternalServerException extends BedrockDataAutomationServiceException {
|
|
156
|
+
name = "InternalServerException";
|
|
157
|
+
$fault = "server";
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "InternalServerException",
|
|
161
|
+
$fault: "server",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
class ServiceQuotaExceededException extends BedrockDataAutomationServiceException {
|
|
168
|
+
name = "ServiceQuotaExceededException";
|
|
169
|
+
$fault = "client";
|
|
170
|
+
constructor(opts) {
|
|
171
|
+
super({
|
|
172
|
+
name: "ServiceQuotaExceededException",
|
|
173
|
+
$fault: "client",
|
|
174
|
+
...opts,
|
|
175
|
+
});
|
|
176
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
class ThrottlingException extends BedrockDataAutomationServiceException {
|
|
180
|
+
name = "ThrottlingException";
|
|
181
|
+
$fault = "client";
|
|
182
|
+
constructor(opts) {
|
|
183
|
+
super({
|
|
184
|
+
name: "ThrottlingException",
|
|
185
|
+
$fault: "client",
|
|
186
|
+
...opts,
|
|
187
|
+
});
|
|
188
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
class ValidationException extends BedrockDataAutomationServiceException {
|
|
192
|
+
name = "ValidationException";
|
|
193
|
+
$fault = "client";
|
|
194
|
+
fieldList;
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "ValidationException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts,
|
|
200
|
+
});
|
|
201
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
202
|
+
this.fieldList = opts.fieldList;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class ResourceNotFoundException extends BedrockDataAutomationServiceException {
|
|
206
|
+
name = "ResourceNotFoundException";
|
|
207
|
+
$fault = "client";
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "ResourceNotFoundException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts,
|
|
213
|
+
});
|
|
214
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
const BlueprintStageFilter = {
|
|
218
|
+
ALL: "ALL",
|
|
219
|
+
DEVELOPMENT: "DEVELOPMENT",
|
|
220
|
+
LIVE: "LIVE",
|
|
221
|
+
};
|
|
222
|
+
const DataAutomationProjectStage = {
|
|
223
|
+
DEVELOPMENT: "DEVELOPMENT",
|
|
224
|
+
LIVE: "LIVE",
|
|
225
|
+
};
|
|
226
|
+
const ResourceOwner = {
|
|
227
|
+
ACCOUNT: "ACCOUNT",
|
|
228
|
+
SERVICE: "SERVICE",
|
|
229
|
+
};
|
|
230
|
+
const State = {
|
|
231
|
+
DISABLED: "DISABLED",
|
|
232
|
+
ENABLED: "ENABLED",
|
|
233
|
+
};
|
|
234
|
+
const DesiredModality = {
|
|
235
|
+
AUDIO: "AUDIO",
|
|
236
|
+
DOCUMENT: "DOCUMENT",
|
|
237
|
+
IMAGE: "IMAGE",
|
|
238
|
+
VIDEO: "VIDEO",
|
|
239
|
+
};
|
|
240
|
+
const AudioExtractionCategoryType = {
|
|
241
|
+
AUDIO_CONTENT_MODERATION: "AUDIO_CONTENT_MODERATION",
|
|
242
|
+
TOPIC_CONTENT_MODERATION: "TOPIC_CONTENT_MODERATION",
|
|
243
|
+
TRANSCRIPT: "TRANSCRIPT",
|
|
244
|
+
};
|
|
245
|
+
const AudioStandardGenerativeFieldType = {
|
|
246
|
+
AUDIO_SUMMARY: "AUDIO_SUMMARY",
|
|
247
|
+
IAB: "IAB",
|
|
248
|
+
TOPIC_SUMMARY: "TOPIC_SUMMARY",
|
|
249
|
+
};
|
|
250
|
+
const DocumentExtractionGranularityType = {
|
|
251
|
+
DOCUMENT: "DOCUMENT",
|
|
252
|
+
ELEMENT: "ELEMENT",
|
|
253
|
+
LINE: "LINE",
|
|
254
|
+
PAGE: "PAGE",
|
|
255
|
+
WORD: "WORD",
|
|
256
|
+
};
|
|
257
|
+
const DocumentOutputTextFormatType = {
|
|
258
|
+
CSV: "CSV",
|
|
259
|
+
HTML: "HTML",
|
|
260
|
+
MARKDOWN: "MARKDOWN",
|
|
261
|
+
PLAIN_TEXT: "PLAIN_TEXT",
|
|
262
|
+
};
|
|
263
|
+
const ImageExtractionCategoryType = {
|
|
264
|
+
CONTENT_MODERATION: "CONTENT_MODERATION",
|
|
265
|
+
LOGOS: "LOGOS",
|
|
266
|
+
TEXT_DETECTION: "TEXT_DETECTION",
|
|
267
|
+
};
|
|
268
|
+
const ImageStandardGenerativeFieldType = {
|
|
269
|
+
IAB: "IAB",
|
|
270
|
+
IMAGE_SUMMARY: "IMAGE_SUMMARY",
|
|
271
|
+
};
|
|
272
|
+
const VideoExtractionCategoryType = {
|
|
273
|
+
CONTENT_MODERATION: "CONTENT_MODERATION",
|
|
274
|
+
LOGOS: "LOGOS",
|
|
275
|
+
TEXT_DETECTION: "TEXT_DETECTION",
|
|
276
|
+
TRANSCRIPT: "TRANSCRIPT",
|
|
277
|
+
};
|
|
278
|
+
const VideoStandardGenerativeFieldType = {
|
|
279
|
+
CHAPTER_SUMMARY: "CHAPTER_SUMMARY",
|
|
280
|
+
IAB: "IAB",
|
|
281
|
+
VIDEO_SUMMARY: "VIDEO_SUMMARY",
|
|
282
|
+
};
|
|
283
|
+
const DataAutomationProjectStatus = {
|
|
284
|
+
COMPLETED: "COMPLETED",
|
|
285
|
+
FAILED: "FAILED",
|
|
286
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
287
|
+
};
|
|
288
|
+
const DataAutomationProjectStageFilter = {
|
|
289
|
+
ALL: "ALL",
|
|
290
|
+
DEVELOPMENT: "DEVELOPMENT",
|
|
291
|
+
LIVE: "LIVE",
|
|
292
|
+
};
|
|
293
|
+
const CreateBlueprintRequestFilterSensitiveLog = (obj) => ({
|
|
294
|
+
...obj,
|
|
295
|
+
...(obj.blueprintName && { blueprintName: smithyClient.SENSITIVE_STRING }),
|
|
296
|
+
...(obj.schema && { schema: smithyClient.SENSITIVE_STRING }),
|
|
297
|
+
});
|
|
298
|
+
const BlueprintFilterSensitiveLog = (obj) => ({
|
|
299
|
+
...obj,
|
|
300
|
+
...(obj.schema && { schema: smithyClient.SENSITIVE_STRING }),
|
|
301
|
+
...(obj.blueprintName && { blueprintName: smithyClient.SENSITIVE_STRING }),
|
|
302
|
+
});
|
|
303
|
+
const CreateBlueprintResponseFilterSensitiveLog = (obj) => ({
|
|
304
|
+
...obj,
|
|
305
|
+
...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }),
|
|
306
|
+
});
|
|
307
|
+
const GetBlueprintResponseFilterSensitiveLog = (obj) => ({
|
|
308
|
+
...obj,
|
|
309
|
+
...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }),
|
|
310
|
+
});
|
|
311
|
+
const BlueprintSummaryFilterSensitiveLog = (obj) => ({
|
|
312
|
+
...obj,
|
|
313
|
+
...(obj.blueprintName && { blueprintName: smithyClient.SENSITIVE_STRING }),
|
|
314
|
+
});
|
|
315
|
+
const ListBlueprintsResponseFilterSensitiveLog = (obj) => ({
|
|
316
|
+
...obj,
|
|
317
|
+
...(obj.blueprints && { blueprints: obj.blueprints.map((item) => BlueprintSummaryFilterSensitiveLog(item)) }),
|
|
318
|
+
});
|
|
319
|
+
const UpdateBlueprintRequestFilterSensitiveLog = (obj) => ({
|
|
320
|
+
...obj,
|
|
321
|
+
...(obj.schema && { schema: smithyClient.SENSITIVE_STRING }),
|
|
322
|
+
});
|
|
323
|
+
const UpdateBlueprintResponseFilterSensitiveLog = (obj) => ({
|
|
324
|
+
...obj,
|
|
325
|
+
...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }),
|
|
326
|
+
});
|
|
327
|
+
const CreateBlueprintVersionResponseFilterSensitiveLog = (obj) => ({
|
|
328
|
+
...obj,
|
|
329
|
+
...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }),
|
|
330
|
+
});
|
|
331
|
+
const CreateDataAutomationProjectRequestFilterSensitiveLog = (obj) => ({
|
|
332
|
+
...obj,
|
|
333
|
+
...(obj.projectName && { projectName: smithyClient.SENSITIVE_STRING }),
|
|
334
|
+
...(obj.projectDescription && { projectDescription: smithyClient.SENSITIVE_STRING }),
|
|
335
|
+
});
|
|
336
|
+
const DataAutomationProjectFilterSensitiveLog = (obj) => ({
|
|
337
|
+
...obj,
|
|
338
|
+
...(obj.projectName && { projectName: smithyClient.SENSITIVE_STRING }),
|
|
339
|
+
...(obj.projectDescription && { projectDescription: smithyClient.SENSITIVE_STRING }),
|
|
340
|
+
});
|
|
341
|
+
const GetDataAutomationProjectResponseFilterSensitiveLog = (obj) => ({
|
|
342
|
+
...obj,
|
|
343
|
+
...(obj.project && { project: DataAutomationProjectFilterSensitiveLog(obj.project) }),
|
|
344
|
+
});
|
|
345
|
+
const DataAutomationProjectSummaryFilterSensitiveLog = (obj) => ({
|
|
346
|
+
...obj,
|
|
347
|
+
...(obj.projectName && { projectName: smithyClient.SENSITIVE_STRING }),
|
|
348
|
+
});
|
|
349
|
+
const ListDataAutomationProjectsResponseFilterSensitiveLog = (obj) => ({
|
|
350
|
+
...obj,
|
|
351
|
+
...(obj.projects && { projects: obj.projects.map((item) => DataAutomationProjectSummaryFilterSensitiveLog(item)) }),
|
|
352
|
+
});
|
|
353
|
+
const UpdateDataAutomationProjectRequestFilterSensitiveLog = (obj) => ({
|
|
354
|
+
...obj,
|
|
355
|
+
...(obj.projectDescription && { projectDescription: smithyClient.SENSITIVE_STRING }),
|
|
356
|
+
});
|
|
252
357
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
358
|
+
const se_CreateBlueprintCommand = async (input, context) => {
|
|
359
|
+
const b = core.requestBuilder(input, context);
|
|
360
|
+
const headers = {
|
|
361
|
+
"content-type": "application/json",
|
|
362
|
+
};
|
|
363
|
+
b.bp("/blueprints");
|
|
364
|
+
let body;
|
|
365
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
366
|
+
blueprintName: [],
|
|
367
|
+
blueprintStage: [],
|
|
368
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
369
|
+
encryptionConfiguration: (_) => smithyClient._json(_),
|
|
370
|
+
schema: [],
|
|
371
|
+
tags: (_) => smithyClient._json(_),
|
|
372
|
+
type: [],
|
|
373
|
+
}));
|
|
374
|
+
b.m("PUT").h(headers).b(body);
|
|
375
|
+
return b.build();
|
|
376
|
+
};
|
|
377
|
+
const se_CreateBlueprintVersionCommand = async (input, context) => {
|
|
378
|
+
const b = core.requestBuilder(input, context);
|
|
379
|
+
const headers = {
|
|
380
|
+
"content-type": "application/json",
|
|
381
|
+
};
|
|
382
|
+
b.bp("/blueprints/{blueprintArn}/versions");
|
|
383
|
+
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
384
|
+
let body;
|
|
385
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
386
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
387
|
+
}));
|
|
388
|
+
b.m("POST").h(headers).b(body);
|
|
389
|
+
return b.build();
|
|
390
|
+
};
|
|
391
|
+
const se_CreateDataAutomationProjectCommand = async (input, context) => {
|
|
392
|
+
const b = core.requestBuilder(input, context);
|
|
393
|
+
const headers = {
|
|
394
|
+
"content-type": "application/json",
|
|
395
|
+
};
|
|
396
|
+
b.bp("/data-automation-projects");
|
|
397
|
+
let body;
|
|
398
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
399
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
400
|
+
customOutputConfiguration: (_) => smithyClient._json(_),
|
|
401
|
+
encryptionConfiguration: (_) => smithyClient._json(_),
|
|
402
|
+
overrideConfiguration: (_) => smithyClient._json(_),
|
|
403
|
+
projectDescription: [],
|
|
404
|
+
projectName: [],
|
|
405
|
+
projectStage: [],
|
|
406
|
+
standardOutputConfiguration: (_) => smithyClient._json(_),
|
|
407
|
+
tags: (_) => smithyClient._json(_),
|
|
408
|
+
}));
|
|
409
|
+
b.m("PUT").h(headers).b(body);
|
|
410
|
+
return b.build();
|
|
411
|
+
};
|
|
412
|
+
const se_DeleteBlueprintCommand = async (input, context) => {
|
|
413
|
+
const b = core.requestBuilder(input, context);
|
|
414
|
+
const headers = {};
|
|
415
|
+
b.bp("/blueprints/{blueprintArn}");
|
|
416
|
+
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
417
|
+
const query = smithyClient.map({
|
|
418
|
+
[_bV]: [, input[_bV]],
|
|
268
419
|
});
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
420
|
+
let body;
|
|
421
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
422
|
+
return b.build();
|
|
423
|
+
};
|
|
424
|
+
const se_DeleteDataAutomationProjectCommand = async (input, context) => {
|
|
425
|
+
const b = core.requestBuilder(input, context);
|
|
426
|
+
const headers = {};
|
|
427
|
+
b.bp("/data-automation-projects/{projectArn}");
|
|
428
|
+
b.p("projectArn", () => input.projectArn, "{projectArn}", false);
|
|
429
|
+
let body;
|
|
430
|
+
b.m("DELETE").h(headers).b(body);
|
|
431
|
+
return b.build();
|
|
432
|
+
};
|
|
433
|
+
const se_GetBlueprintCommand = async (input, context) => {
|
|
434
|
+
const b = core.requestBuilder(input, context);
|
|
435
|
+
const headers = {
|
|
436
|
+
"content-type": "application/json",
|
|
437
|
+
};
|
|
438
|
+
b.bp("/blueprints/{blueprintArn}");
|
|
439
|
+
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
440
|
+
let body;
|
|
441
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
442
|
+
blueprintStage: [],
|
|
443
|
+
blueprintVersion: [],
|
|
444
|
+
}));
|
|
445
|
+
b.m("POST").h(headers).b(body);
|
|
446
|
+
return b.build();
|
|
447
|
+
};
|
|
448
|
+
const se_GetDataAutomationProjectCommand = async (input, context) => {
|
|
449
|
+
const b = core.requestBuilder(input, context);
|
|
450
|
+
const headers = {
|
|
451
|
+
"content-type": "application/json",
|
|
452
|
+
};
|
|
453
|
+
b.bp("/data-automation-projects/{projectArn}");
|
|
454
|
+
b.p("projectArn", () => input.projectArn, "{projectArn}", false);
|
|
455
|
+
let body;
|
|
456
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
457
|
+
projectStage: [],
|
|
458
|
+
}));
|
|
459
|
+
b.m("POST").h(headers).b(body);
|
|
460
|
+
return b.build();
|
|
461
|
+
};
|
|
462
|
+
const se_ListBlueprintsCommand = async (input, context) => {
|
|
463
|
+
const b = core.requestBuilder(input, context);
|
|
464
|
+
const headers = {
|
|
465
|
+
"content-type": "application/json",
|
|
466
|
+
};
|
|
467
|
+
b.bp("/blueprints");
|
|
468
|
+
let body;
|
|
469
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
470
|
+
blueprintArn: [],
|
|
471
|
+
blueprintStageFilter: [],
|
|
472
|
+
maxResults: [],
|
|
473
|
+
nextToken: [],
|
|
474
|
+
projectFilter: (_) => smithyClient._json(_),
|
|
475
|
+
resourceOwner: [],
|
|
476
|
+
}));
|
|
477
|
+
b.m("POST").h(headers).b(body);
|
|
478
|
+
return b.build();
|
|
479
|
+
};
|
|
480
|
+
const se_ListDataAutomationProjectsCommand = async (input, context) => {
|
|
481
|
+
const b = core.requestBuilder(input, context);
|
|
482
|
+
const headers = {
|
|
483
|
+
"content-type": "application/json",
|
|
484
|
+
};
|
|
485
|
+
b.bp("/data-automation-projects");
|
|
486
|
+
let body;
|
|
487
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
488
|
+
blueprintFilter: (_) => smithyClient._json(_),
|
|
489
|
+
maxResults: [],
|
|
490
|
+
nextToken: [],
|
|
491
|
+
projectStageFilter: [],
|
|
492
|
+
resourceOwner: [],
|
|
493
|
+
}));
|
|
494
|
+
b.m("POST").h(headers).b(body);
|
|
495
|
+
return b.build();
|
|
496
|
+
};
|
|
497
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
498
|
+
const b = core.requestBuilder(input, context);
|
|
499
|
+
const headers = {
|
|
500
|
+
"content-type": "application/json",
|
|
501
|
+
};
|
|
502
|
+
b.bp("/listTagsForResource");
|
|
503
|
+
let body;
|
|
504
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
505
|
+
resourceARN: [],
|
|
506
|
+
}));
|
|
507
|
+
b.m("POST").h(headers).b(body);
|
|
508
|
+
return b.build();
|
|
509
|
+
};
|
|
510
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
511
|
+
const b = core.requestBuilder(input, context);
|
|
512
|
+
const headers = {
|
|
513
|
+
"content-type": "application/json",
|
|
514
|
+
};
|
|
515
|
+
b.bp("/tagResource");
|
|
516
|
+
let body;
|
|
517
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
518
|
+
resourceARN: [],
|
|
519
|
+
tags: (_) => smithyClient._json(_),
|
|
520
|
+
}));
|
|
521
|
+
b.m("POST").h(headers).b(body);
|
|
522
|
+
return b.build();
|
|
523
|
+
};
|
|
524
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
525
|
+
const b = core.requestBuilder(input, context);
|
|
526
|
+
const headers = {
|
|
527
|
+
"content-type": "application/json",
|
|
528
|
+
};
|
|
529
|
+
b.bp("/untagResource");
|
|
530
|
+
let body;
|
|
531
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
532
|
+
resourceARN: [],
|
|
533
|
+
tagKeys: (_) => smithyClient._json(_),
|
|
534
|
+
}));
|
|
535
|
+
b.m("POST").h(headers).b(body);
|
|
536
|
+
return b.build();
|
|
537
|
+
};
|
|
538
|
+
const se_UpdateBlueprintCommand = async (input, context) => {
|
|
539
|
+
const b = core.requestBuilder(input, context);
|
|
540
|
+
const headers = {
|
|
541
|
+
"content-type": "application/json",
|
|
542
|
+
};
|
|
543
|
+
b.bp("/blueprints/{blueprintArn}");
|
|
544
|
+
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
545
|
+
let body;
|
|
546
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
547
|
+
blueprintStage: [],
|
|
548
|
+
encryptionConfiguration: (_) => smithyClient._json(_),
|
|
549
|
+
schema: [],
|
|
550
|
+
}));
|
|
551
|
+
b.m("PUT").h(headers).b(body);
|
|
552
|
+
return b.build();
|
|
553
|
+
};
|
|
554
|
+
const se_UpdateDataAutomationProjectCommand = async (input, context) => {
|
|
555
|
+
const b = core.requestBuilder(input, context);
|
|
556
|
+
const headers = {
|
|
557
|
+
"content-type": "application/json",
|
|
558
|
+
};
|
|
559
|
+
b.bp("/data-automation-projects/{projectArn}");
|
|
560
|
+
b.p("projectArn", () => input.projectArn, "{projectArn}", false);
|
|
561
|
+
let body;
|
|
562
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
563
|
+
customOutputConfiguration: (_) => smithyClient._json(_),
|
|
564
|
+
encryptionConfiguration: (_) => smithyClient._json(_),
|
|
565
|
+
overrideConfiguration: (_) => smithyClient._json(_),
|
|
566
|
+
projectDescription: [],
|
|
567
|
+
projectStage: [],
|
|
568
|
+
standardOutputConfiguration: (_) => smithyClient._json(_),
|
|
569
|
+
}));
|
|
570
|
+
b.m("PUT").h(headers).b(body);
|
|
571
|
+
return b.build();
|
|
572
|
+
};
|
|
573
|
+
const de_CreateBlueprintCommand = async (output, context) => {
|
|
574
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
575
|
+
return de_CommandError(output, context);
|
|
576
|
+
}
|
|
577
|
+
const contents = smithyClient.map({
|
|
578
|
+
$metadata: deserializeMetadata(output),
|
|
286
579
|
});
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
var BlueprintStage = {
|
|
291
|
-
DEVELOPMENT: "DEVELOPMENT",
|
|
292
|
-
LIVE: "LIVE"
|
|
293
|
-
};
|
|
294
|
-
var Type = {
|
|
295
|
-
AUDIO: "AUDIO",
|
|
296
|
-
DOCUMENT: "DOCUMENT",
|
|
297
|
-
IMAGE: "IMAGE",
|
|
298
|
-
VIDEO: "VIDEO"
|
|
299
|
-
};
|
|
300
|
-
var InternalServerException = class _InternalServerException extends BedrockDataAutomationServiceException {
|
|
301
|
-
static {
|
|
302
|
-
__name(this, "InternalServerException");
|
|
303
|
-
}
|
|
304
|
-
name = "InternalServerException";
|
|
305
|
-
$fault = "server";
|
|
306
|
-
/**
|
|
307
|
-
* @internal
|
|
308
|
-
*/
|
|
309
|
-
constructor(opts) {
|
|
310
|
-
super({
|
|
311
|
-
name: "InternalServerException",
|
|
312
|
-
$fault: "server",
|
|
313
|
-
...opts
|
|
580
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
581
|
+
const doc = smithyClient.take(data, {
|
|
582
|
+
blueprint: (_) => de_Blueprint(_),
|
|
314
583
|
});
|
|
315
|
-
Object.
|
|
316
|
-
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* @internal
|
|
326
|
-
*/
|
|
327
|
-
constructor(opts) {
|
|
328
|
-
super({
|
|
329
|
-
name: "ServiceQuotaExceededException",
|
|
330
|
-
$fault: "client",
|
|
331
|
-
...opts
|
|
584
|
+
Object.assign(contents, doc);
|
|
585
|
+
return contents;
|
|
586
|
+
};
|
|
587
|
+
const de_CreateBlueprintVersionCommand = async (output, context) => {
|
|
588
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
589
|
+
return de_CommandError(output, context);
|
|
590
|
+
}
|
|
591
|
+
const contents = smithyClient.map({
|
|
592
|
+
$metadata: deserializeMetadata(output),
|
|
332
593
|
});
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
var ThrottlingException = class _ThrottlingException extends BedrockDataAutomationServiceException {
|
|
337
|
-
static {
|
|
338
|
-
__name(this, "ThrottlingException");
|
|
339
|
-
}
|
|
340
|
-
name = "ThrottlingException";
|
|
341
|
-
$fault = "client";
|
|
342
|
-
/**
|
|
343
|
-
* @internal
|
|
344
|
-
*/
|
|
345
|
-
constructor(opts) {
|
|
346
|
-
super({
|
|
347
|
-
name: "ThrottlingException",
|
|
348
|
-
$fault: "client",
|
|
349
|
-
...opts
|
|
594
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
595
|
+
const doc = smithyClient.take(data, {
|
|
596
|
+
blueprint: (_) => de_Blueprint(_),
|
|
350
597
|
});
|
|
351
|
-
Object.
|
|
352
|
-
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* list of ValidationExceptionField
|
|
362
|
-
* @public
|
|
363
|
-
*/
|
|
364
|
-
fieldList;
|
|
365
|
-
/**
|
|
366
|
-
* @internal
|
|
367
|
-
*/
|
|
368
|
-
constructor(opts) {
|
|
369
|
-
super({
|
|
370
|
-
name: "ValidationException",
|
|
371
|
-
$fault: "client",
|
|
372
|
-
...opts
|
|
598
|
+
Object.assign(contents, doc);
|
|
599
|
+
return contents;
|
|
600
|
+
};
|
|
601
|
+
const de_CreateDataAutomationProjectCommand = async (output, context) => {
|
|
602
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
603
|
+
return de_CommandError(output, context);
|
|
604
|
+
}
|
|
605
|
+
const contents = smithyClient.map({
|
|
606
|
+
$metadata: deserializeMetadata(output),
|
|
373
607
|
});
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
static {
|
|
380
|
-
__name(this, "ResourceNotFoundException");
|
|
381
|
-
}
|
|
382
|
-
name = "ResourceNotFoundException";
|
|
383
|
-
$fault = "client";
|
|
384
|
-
/**
|
|
385
|
-
* @internal
|
|
386
|
-
*/
|
|
387
|
-
constructor(opts) {
|
|
388
|
-
super({
|
|
389
|
-
name: "ResourceNotFoundException",
|
|
390
|
-
$fault: "client",
|
|
391
|
-
...opts
|
|
608
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
609
|
+
const doc = smithyClient.take(data, {
|
|
610
|
+
projectArn: smithyClient.expectString,
|
|
611
|
+
projectStage: smithyClient.expectString,
|
|
612
|
+
status: smithyClient.expectString,
|
|
392
613
|
});
|
|
393
|
-
Object.
|
|
394
|
-
|
|
395
|
-
};
|
|
396
|
-
var BlueprintStageFilter = {
|
|
397
|
-
ALL: "ALL",
|
|
398
|
-
DEVELOPMENT: "DEVELOPMENT",
|
|
399
|
-
LIVE: "LIVE"
|
|
400
|
-
};
|
|
401
|
-
var DataAutomationProjectStage = {
|
|
402
|
-
DEVELOPMENT: "DEVELOPMENT",
|
|
403
|
-
LIVE: "LIVE"
|
|
404
|
-
};
|
|
405
|
-
var ResourceOwner = {
|
|
406
|
-
ACCOUNT: "ACCOUNT",
|
|
407
|
-
SERVICE: "SERVICE"
|
|
408
|
-
};
|
|
409
|
-
var State = {
|
|
410
|
-
DISABLED: "DISABLED",
|
|
411
|
-
ENABLED: "ENABLED"
|
|
412
|
-
};
|
|
413
|
-
var DesiredModality = {
|
|
414
|
-
AUDIO: "AUDIO",
|
|
415
|
-
DOCUMENT: "DOCUMENT",
|
|
416
|
-
IMAGE: "IMAGE",
|
|
417
|
-
VIDEO: "VIDEO"
|
|
418
|
-
};
|
|
419
|
-
var AudioExtractionCategoryType = {
|
|
420
|
-
AUDIO_CONTENT_MODERATION: "AUDIO_CONTENT_MODERATION",
|
|
421
|
-
TOPIC_CONTENT_MODERATION: "TOPIC_CONTENT_MODERATION",
|
|
422
|
-
TRANSCRIPT: "TRANSCRIPT"
|
|
423
|
-
};
|
|
424
|
-
var AudioStandardGenerativeFieldType = {
|
|
425
|
-
AUDIO_SUMMARY: "AUDIO_SUMMARY",
|
|
426
|
-
IAB: "IAB",
|
|
427
|
-
TOPIC_SUMMARY: "TOPIC_SUMMARY"
|
|
428
|
-
};
|
|
429
|
-
var DocumentExtractionGranularityType = {
|
|
430
|
-
DOCUMENT: "DOCUMENT",
|
|
431
|
-
ELEMENT: "ELEMENT",
|
|
432
|
-
LINE: "LINE",
|
|
433
|
-
PAGE: "PAGE",
|
|
434
|
-
WORD: "WORD"
|
|
435
|
-
};
|
|
436
|
-
var DocumentOutputTextFormatType = {
|
|
437
|
-
CSV: "CSV",
|
|
438
|
-
HTML: "HTML",
|
|
439
|
-
MARKDOWN: "MARKDOWN",
|
|
440
|
-
PLAIN_TEXT: "PLAIN_TEXT"
|
|
441
|
-
};
|
|
442
|
-
var ImageExtractionCategoryType = {
|
|
443
|
-
CONTENT_MODERATION: "CONTENT_MODERATION",
|
|
444
|
-
LOGOS: "LOGOS",
|
|
445
|
-
TEXT_DETECTION: "TEXT_DETECTION"
|
|
446
|
-
};
|
|
447
|
-
var ImageStandardGenerativeFieldType = {
|
|
448
|
-
IAB: "IAB",
|
|
449
|
-
IMAGE_SUMMARY: "IMAGE_SUMMARY"
|
|
450
|
-
};
|
|
451
|
-
var VideoExtractionCategoryType = {
|
|
452
|
-
CONTENT_MODERATION: "CONTENT_MODERATION",
|
|
453
|
-
LOGOS: "LOGOS",
|
|
454
|
-
TEXT_DETECTION: "TEXT_DETECTION",
|
|
455
|
-
TRANSCRIPT: "TRANSCRIPT"
|
|
456
|
-
};
|
|
457
|
-
var VideoStandardGenerativeFieldType = {
|
|
458
|
-
CHAPTER_SUMMARY: "CHAPTER_SUMMARY",
|
|
459
|
-
IAB: "IAB",
|
|
460
|
-
VIDEO_SUMMARY: "VIDEO_SUMMARY"
|
|
461
|
-
};
|
|
462
|
-
var DataAutomationProjectStatus = {
|
|
463
|
-
COMPLETED: "COMPLETED",
|
|
464
|
-
FAILED: "FAILED",
|
|
465
|
-
IN_PROGRESS: "IN_PROGRESS"
|
|
466
|
-
};
|
|
467
|
-
var DataAutomationProjectStageFilter = {
|
|
468
|
-
ALL: "ALL",
|
|
469
|
-
DEVELOPMENT: "DEVELOPMENT",
|
|
470
|
-
LIVE: "LIVE"
|
|
471
|
-
};
|
|
472
|
-
var CreateBlueprintRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
473
|
-
...obj,
|
|
474
|
-
...obj.blueprintName && { blueprintName: import_smithy_client.SENSITIVE_STRING },
|
|
475
|
-
...obj.schema && { schema: import_smithy_client.SENSITIVE_STRING }
|
|
476
|
-
}), "CreateBlueprintRequestFilterSensitiveLog");
|
|
477
|
-
var BlueprintFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
478
|
-
...obj,
|
|
479
|
-
...obj.schema && { schema: import_smithy_client.SENSITIVE_STRING },
|
|
480
|
-
...obj.blueprintName && { blueprintName: import_smithy_client.SENSITIVE_STRING }
|
|
481
|
-
}), "BlueprintFilterSensitiveLog");
|
|
482
|
-
var CreateBlueprintResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
483
|
-
...obj,
|
|
484
|
-
...obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }
|
|
485
|
-
}), "CreateBlueprintResponseFilterSensitiveLog");
|
|
486
|
-
var GetBlueprintResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
487
|
-
...obj,
|
|
488
|
-
...obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }
|
|
489
|
-
}), "GetBlueprintResponseFilterSensitiveLog");
|
|
490
|
-
var BlueprintSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
491
|
-
...obj,
|
|
492
|
-
...obj.blueprintName && { blueprintName: import_smithy_client.SENSITIVE_STRING }
|
|
493
|
-
}), "BlueprintSummaryFilterSensitiveLog");
|
|
494
|
-
var ListBlueprintsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
495
|
-
...obj,
|
|
496
|
-
...obj.blueprints && { blueprints: obj.blueprints.map((item) => BlueprintSummaryFilterSensitiveLog(item)) }
|
|
497
|
-
}), "ListBlueprintsResponseFilterSensitiveLog");
|
|
498
|
-
var UpdateBlueprintRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
499
|
-
...obj,
|
|
500
|
-
...obj.schema && { schema: import_smithy_client.SENSITIVE_STRING }
|
|
501
|
-
}), "UpdateBlueprintRequestFilterSensitiveLog");
|
|
502
|
-
var UpdateBlueprintResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
503
|
-
...obj,
|
|
504
|
-
...obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }
|
|
505
|
-
}), "UpdateBlueprintResponseFilterSensitiveLog");
|
|
506
|
-
var CreateBlueprintVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
507
|
-
...obj,
|
|
508
|
-
...obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }
|
|
509
|
-
}), "CreateBlueprintVersionResponseFilterSensitiveLog");
|
|
510
|
-
var CreateDataAutomationProjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
511
|
-
...obj,
|
|
512
|
-
...obj.projectName && { projectName: import_smithy_client.SENSITIVE_STRING },
|
|
513
|
-
...obj.projectDescription && { projectDescription: import_smithy_client.SENSITIVE_STRING }
|
|
514
|
-
}), "CreateDataAutomationProjectRequestFilterSensitiveLog");
|
|
515
|
-
var DataAutomationProjectFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
516
|
-
...obj,
|
|
517
|
-
...obj.projectName && { projectName: import_smithy_client.SENSITIVE_STRING },
|
|
518
|
-
...obj.projectDescription && { projectDescription: import_smithy_client.SENSITIVE_STRING }
|
|
519
|
-
}), "DataAutomationProjectFilterSensitiveLog");
|
|
520
|
-
var GetDataAutomationProjectResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
521
|
-
...obj,
|
|
522
|
-
...obj.project && { project: DataAutomationProjectFilterSensitiveLog(obj.project) }
|
|
523
|
-
}), "GetDataAutomationProjectResponseFilterSensitiveLog");
|
|
524
|
-
var DataAutomationProjectSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
525
|
-
...obj,
|
|
526
|
-
...obj.projectName && { projectName: import_smithy_client.SENSITIVE_STRING }
|
|
527
|
-
}), "DataAutomationProjectSummaryFilterSensitiveLog");
|
|
528
|
-
var ListDataAutomationProjectsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
529
|
-
...obj,
|
|
530
|
-
...obj.projects && { projects: obj.projects.map((item) => DataAutomationProjectSummaryFilterSensitiveLog(item)) }
|
|
531
|
-
}), "ListDataAutomationProjectsResponseFilterSensitiveLog");
|
|
532
|
-
var UpdateDataAutomationProjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
533
|
-
...obj,
|
|
534
|
-
...obj.projectDescription && { projectDescription: import_smithy_client.SENSITIVE_STRING }
|
|
535
|
-
}), "UpdateDataAutomationProjectRequestFilterSensitiveLog");
|
|
536
|
-
|
|
537
|
-
// src/protocols/Aws_restJson1.ts
|
|
538
|
-
var import_core2 = require("@aws-sdk/core");
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
var import_uuid = require("@smithy/uuid");
|
|
542
|
-
var se_CreateBlueprintCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
543
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
544
|
-
const headers = {
|
|
545
|
-
"content-type": "application/json"
|
|
546
|
-
};
|
|
547
|
-
b.bp("/blueprints");
|
|
548
|
-
let body;
|
|
549
|
-
body = JSON.stringify(
|
|
550
|
-
(0, import_smithy_client.take)(input, {
|
|
551
|
-
blueprintName: [],
|
|
552
|
-
blueprintStage: [],
|
|
553
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
554
|
-
encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
|
|
555
|
-
schema: [],
|
|
556
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
|
|
557
|
-
type: []
|
|
558
|
-
})
|
|
559
|
-
);
|
|
560
|
-
b.m("PUT").h(headers).b(body);
|
|
561
|
-
return b.build();
|
|
562
|
-
}, "se_CreateBlueprintCommand");
|
|
563
|
-
var se_CreateBlueprintVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
564
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
565
|
-
const headers = {
|
|
566
|
-
"content-type": "application/json"
|
|
567
|
-
};
|
|
568
|
-
b.bp("/blueprints/{blueprintArn}/versions");
|
|
569
|
-
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
570
|
-
let body;
|
|
571
|
-
body = JSON.stringify(
|
|
572
|
-
(0, import_smithy_client.take)(input, {
|
|
573
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
|
|
574
|
-
})
|
|
575
|
-
);
|
|
576
|
-
b.m("POST").h(headers).b(body);
|
|
577
|
-
return b.build();
|
|
578
|
-
}, "se_CreateBlueprintVersionCommand");
|
|
579
|
-
var se_CreateDataAutomationProjectCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
580
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
581
|
-
const headers = {
|
|
582
|
-
"content-type": "application/json"
|
|
583
|
-
};
|
|
584
|
-
b.bp("/data-automation-projects");
|
|
585
|
-
let body;
|
|
586
|
-
body = JSON.stringify(
|
|
587
|
-
(0, import_smithy_client.take)(input, {
|
|
588
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
589
|
-
customOutputConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "customOutputConfiguration"),
|
|
590
|
-
encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
|
|
591
|
-
overrideConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "overrideConfiguration"),
|
|
592
|
-
projectDescription: [],
|
|
593
|
-
projectName: [],
|
|
594
|
-
projectStage: [],
|
|
595
|
-
standardOutputConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "standardOutputConfiguration"),
|
|
596
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
597
|
-
})
|
|
598
|
-
);
|
|
599
|
-
b.m("PUT").h(headers).b(body);
|
|
600
|
-
return b.build();
|
|
601
|
-
}, "se_CreateDataAutomationProjectCommand");
|
|
602
|
-
var se_DeleteBlueprintCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
603
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
604
|
-
const headers = {};
|
|
605
|
-
b.bp("/blueprints/{blueprintArn}");
|
|
606
|
-
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
607
|
-
const query = (0, import_smithy_client.map)({
|
|
608
|
-
[_bV]: [, input[_bV]]
|
|
609
|
-
});
|
|
610
|
-
let body;
|
|
611
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
612
|
-
return b.build();
|
|
613
|
-
}, "se_DeleteBlueprintCommand");
|
|
614
|
-
var se_DeleteDataAutomationProjectCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
615
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
616
|
-
const headers = {};
|
|
617
|
-
b.bp("/data-automation-projects/{projectArn}");
|
|
618
|
-
b.p("projectArn", () => input.projectArn, "{projectArn}", false);
|
|
619
|
-
let body;
|
|
620
|
-
b.m("DELETE").h(headers).b(body);
|
|
621
|
-
return b.build();
|
|
622
|
-
}, "se_DeleteDataAutomationProjectCommand");
|
|
623
|
-
var se_GetBlueprintCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
624
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
625
|
-
const headers = {
|
|
626
|
-
"content-type": "application/json"
|
|
627
|
-
};
|
|
628
|
-
b.bp("/blueprints/{blueprintArn}");
|
|
629
|
-
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
630
|
-
let body;
|
|
631
|
-
body = JSON.stringify(
|
|
632
|
-
(0, import_smithy_client.take)(input, {
|
|
633
|
-
blueprintStage: [],
|
|
634
|
-
blueprintVersion: []
|
|
635
|
-
})
|
|
636
|
-
);
|
|
637
|
-
b.m("POST").h(headers).b(body);
|
|
638
|
-
return b.build();
|
|
639
|
-
}, "se_GetBlueprintCommand");
|
|
640
|
-
var se_GetDataAutomationProjectCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
641
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
642
|
-
const headers = {
|
|
643
|
-
"content-type": "application/json"
|
|
644
|
-
};
|
|
645
|
-
b.bp("/data-automation-projects/{projectArn}");
|
|
646
|
-
b.p("projectArn", () => input.projectArn, "{projectArn}", false);
|
|
647
|
-
let body;
|
|
648
|
-
body = JSON.stringify(
|
|
649
|
-
(0, import_smithy_client.take)(input, {
|
|
650
|
-
projectStage: []
|
|
651
|
-
})
|
|
652
|
-
);
|
|
653
|
-
b.m("POST").h(headers).b(body);
|
|
654
|
-
return b.build();
|
|
655
|
-
}, "se_GetDataAutomationProjectCommand");
|
|
656
|
-
var se_ListBlueprintsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
657
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
658
|
-
const headers = {
|
|
659
|
-
"content-type": "application/json"
|
|
660
|
-
};
|
|
661
|
-
b.bp("/blueprints");
|
|
662
|
-
let body;
|
|
663
|
-
body = JSON.stringify(
|
|
664
|
-
(0, import_smithy_client.take)(input, {
|
|
665
|
-
blueprintArn: [],
|
|
666
|
-
blueprintStageFilter: [],
|
|
667
|
-
maxResults: [],
|
|
668
|
-
nextToken: [],
|
|
669
|
-
projectFilter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "projectFilter"),
|
|
670
|
-
resourceOwner: []
|
|
671
|
-
})
|
|
672
|
-
);
|
|
673
|
-
b.m("POST").h(headers).b(body);
|
|
674
|
-
return b.build();
|
|
675
|
-
}, "se_ListBlueprintsCommand");
|
|
676
|
-
var se_ListDataAutomationProjectsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
677
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
678
|
-
const headers = {
|
|
679
|
-
"content-type": "application/json"
|
|
680
|
-
};
|
|
681
|
-
b.bp("/data-automation-projects");
|
|
682
|
-
let body;
|
|
683
|
-
body = JSON.stringify(
|
|
684
|
-
(0, import_smithy_client.take)(input, {
|
|
685
|
-
blueprintFilter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "blueprintFilter"),
|
|
686
|
-
maxResults: [],
|
|
687
|
-
nextToken: [],
|
|
688
|
-
projectStageFilter: [],
|
|
689
|
-
resourceOwner: []
|
|
690
|
-
})
|
|
691
|
-
);
|
|
692
|
-
b.m("POST").h(headers).b(body);
|
|
693
|
-
return b.build();
|
|
694
|
-
}, "se_ListDataAutomationProjectsCommand");
|
|
695
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
696
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
697
|
-
const headers = {
|
|
698
|
-
"content-type": "application/json"
|
|
699
|
-
};
|
|
700
|
-
b.bp("/listTagsForResource");
|
|
701
|
-
let body;
|
|
702
|
-
body = JSON.stringify(
|
|
703
|
-
(0, import_smithy_client.take)(input, {
|
|
704
|
-
resourceARN: []
|
|
705
|
-
})
|
|
706
|
-
);
|
|
707
|
-
b.m("POST").h(headers).b(body);
|
|
708
|
-
return b.build();
|
|
709
|
-
}, "se_ListTagsForResourceCommand");
|
|
710
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
711
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
712
|
-
const headers = {
|
|
713
|
-
"content-type": "application/json"
|
|
714
|
-
};
|
|
715
|
-
b.bp("/tagResource");
|
|
716
|
-
let body;
|
|
717
|
-
body = JSON.stringify(
|
|
718
|
-
(0, import_smithy_client.take)(input, {
|
|
719
|
-
resourceARN: [],
|
|
720
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
721
|
-
})
|
|
722
|
-
);
|
|
723
|
-
b.m("POST").h(headers).b(body);
|
|
724
|
-
return b.build();
|
|
725
|
-
}, "se_TagResourceCommand");
|
|
726
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
727
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
728
|
-
const headers = {
|
|
729
|
-
"content-type": "application/json"
|
|
730
|
-
};
|
|
731
|
-
b.bp("/untagResource");
|
|
732
|
-
let body;
|
|
733
|
-
body = JSON.stringify(
|
|
734
|
-
(0, import_smithy_client.take)(input, {
|
|
735
|
-
resourceARN: [],
|
|
736
|
-
tagKeys: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tagKeys")
|
|
737
|
-
})
|
|
738
|
-
);
|
|
739
|
-
b.m("POST").h(headers).b(body);
|
|
740
|
-
return b.build();
|
|
741
|
-
}, "se_UntagResourceCommand");
|
|
742
|
-
var se_UpdateBlueprintCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
743
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
744
|
-
const headers = {
|
|
745
|
-
"content-type": "application/json"
|
|
746
|
-
};
|
|
747
|
-
b.bp("/blueprints/{blueprintArn}");
|
|
748
|
-
b.p("blueprintArn", () => input.blueprintArn, "{blueprintArn}", false);
|
|
749
|
-
let body;
|
|
750
|
-
body = JSON.stringify(
|
|
751
|
-
(0, import_smithy_client.take)(input, {
|
|
752
|
-
blueprintStage: [],
|
|
753
|
-
encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
|
|
754
|
-
schema: []
|
|
755
|
-
})
|
|
756
|
-
);
|
|
757
|
-
b.m("PUT").h(headers).b(body);
|
|
758
|
-
return b.build();
|
|
759
|
-
}, "se_UpdateBlueprintCommand");
|
|
760
|
-
var se_UpdateDataAutomationProjectCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
761
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
762
|
-
const headers = {
|
|
763
|
-
"content-type": "application/json"
|
|
764
|
-
};
|
|
765
|
-
b.bp("/data-automation-projects/{projectArn}");
|
|
766
|
-
b.p("projectArn", () => input.projectArn, "{projectArn}", false);
|
|
767
|
-
let body;
|
|
768
|
-
body = JSON.stringify(
|
|
769
|
-
(0, import_smithy_client.take)(input, {
|
|
770
|
-
customOutputConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "customOutputConfiguration"),
|
|
771
|
-
encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
|
|
772
|
-
overrideConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "overrideConfiguration"),
|
|
773
|
-
projectDescription: [],
|
|
774
|
-
projectStage: [],
|
|
775
|
-
standardOutputConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "standardOutputConfiguration")
|
|
776
|
-
})
|
|
777
|
-
);
|
|
778
|
-
b.m("PUT").h(headers).b(body);
|
|
779
|
-
return b.build();
|
|
780
|
-
}, "se_UpdateDataAutomationProjectCommand");
|
|
781
|
-
var de_CreateBlueprintCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
782
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
783
|
-
return de_CommandError(output, context);
|
|
784
|
-
}
|
|
785
|
-
const contents = (0, import_smithy_client.map)({
|
|
786
|
-
$metadata: deserializeMetadata(output)
|
|
787
|
-
});
|
|
788
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
789
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
790
|
-
blueprint: /* @__PURE__ */ __name((_) => de_Blueprint(_, context), "blueprint")
|
|
791
|
-
});
|
|
792
|
-
Object.assign(contents, doc);
|
|
793
|
-
return contents;
|
|
794
|
-
}, "de_CreateBlueprintCommand");
|
|
795
|
-
var de_CreateBlueprintVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
796
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
797
|
-
return de_CommandError(output, context);
|
|
798
|
-
}
|
|
799
|
-
const contents = (0, import_smithy_client.map)({
|
|
800
|
-
$metadata: deserializeMetadata(output)
|
|
801
|
-
});
|
|
802
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
803
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
804
|
-
blueprint: /* @__PURE__ */ __name((_) => de_Blueprint(_, context), "blueprint")
|
|
805
|
-
});
|
|
806
|
-
Object.assign(contents, doc);
|
|
807
|
-
return contents;
|
|
808
|
-
}, "de_CreateBlueprintVersionCommand");
|
|
809
|
-
var de_CreateDataAutomationProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
810
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
811
|
-
return de_CommandError(output, context);
|
|
812
|
-
}
|
|
813
|
-
const contents = (0, import_smithy_client.map)({
|
|
814
|
-
$metadata: deserializeMetadata(output)
|
|
815
|
-
});
|
|
816
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
817
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
818
|
-
projectArn: import_smithy_client.expectString,
|
|
819
|
-
projectStage: import_smithy_client.expectString,
|
|
820
|
-
status: import_smithy_client.expectString
|
|
821
|
-
});
|
|
822
|
-
Object.assign(contents, doc);
|
|
823
|
-
return contents;
|
|
824
|
-
}, "de_CreateDataAutomationProjectCommand");
|
|
825
|
-
var de_DeleteBlueprintCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
826
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
827
|
-
return de_CommandError(output, context);
|
|
828
|
-
}
|
|
829
|
-
const contents = (0, import_smithy_client.map)({
|
|
830
|
-
$metadata: deserializeMetadata(output)
|
|
831
|
-
});
|
|
832
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
833
|
-
return contents;
|
|
834
|
-
}, "de_DeleteBlueprintCommand");
|
|
835
|
-
var de_DeleteDataAutomationProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
836
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
|
-
return de_CommandError(output, context);
|
|
838
|
-
}
|
|
839
|
-
const contents = (0, import_smithy_client.map)({
|
|
840
|
-
$metadata: deserializeMetadata(output)
|
|
841
|
-
});
|
|
842
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
843
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
844
|
-
projectArn: import_smithy_client.expectString,
|
|
845
|
-
status: import_smithy_client.expectString
|
|
846
|
-
});
|
|
847
|
-
Object.assign(contents, doc);
|
|
848
|
-
return contents;
|
|
849
|
-
}, "de_DeleteDataAutomationProjectCommand");
|
|
850
|
-
var de_GetBlueprintCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
851
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
852
|
-
return de_CommandError(output, context);
|
|
853
|
-
}
|
|
854
|
-
const contents = (0, import_smithy_client.map)({
|
|
855
|
-
$metadata: deserializeMetadata(output)
|
|
856
|
-
});
|
|
857
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
858
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
859
|
-
blueprint: /* @__PURE__ */ __name((_) => de_Blueprint(_, context), "blueprint")
|
|
860
|
-
});
|
|
861
|
-
Object.assign(contents, doc);
|
|
862
|
-
return contents;
|
|
863
|
-
}, "de_GetBlueprintCommand");
|
|
864
|
-
var de_GetDataAutomationProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
865
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
-
return de_CommandError(output, context);
|
|
867
|
-
}
|
|
868
|
-
const contents = (0, import_smithy_client.map)({
|
|
869
|
-
$metadata: deserializeMetadata(output)
|
|
870
|
-
});
|
|
871
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
872
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
873
|
-
project: /* @__PURE__ */ __name((_) => de_DataAutomationProject(_, context), "project")
|
|
874
|
-
});
|
|
875
|
-
Object.assign(contents, doc);
|
|
876
|
-
return contents;
|
|
877
|
-
}, "de_GetDataAutomationProjectCommand");
|
|
878
|
-
var de_ListBlueprintsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
879
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
880
|
-
return de_CommandError(output, context);
|
|
881
|
-
}
|
|
882
|
-
const contents = (0, import_smithy_client.map)({
|
|
883
|
-
$metadata: deserializeMetadata(output)
|
|
884
|
-
});
|
|
885
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
886
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
887
|
-
blueprints: /* @__PURE__ */ __name((_) => de_Blueprints(_, context), "blueprints"),
|
|
888
|
-
nextToken: import_smithy_client.expectString
|
|
889
|
-
});
|
|
890
|
-
Object.assign(contents, doc);
|
|
891
|
-
return contents;
|
|
892
|
-
}, "de_ListBlueprintsCommand");
|
|
893
|
-
var de_ListDataAutomationProjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
894
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
895
|
-
return de_CommandError(output, context);
|
|
896
|
-
}
|
|
897
|
-
const contents = (0, import_smithy_client.map)({
|
|
898
|
-
$metadata: deserializeMetadata(output)
|
|
899
|
-
});
|
|
900
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
901
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
902
|
-
nextToken: import_smithy_client.expectString,
|
|
903
|
-
projects: /* @__PURE__ */ __name((_) => de_DataAutomationProjectSummaries(_, context), "projects")
|
|
904
|
-
});
|
|
905
|
-
Object.assign(contents, doc);
|
|
906
|
-
return contents;
|
|
907
|
-
}, "de_ListDataAutomationProjectsCommand");
|
|
908
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
909
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
|
-
return de_CommandError(output, context);
|
|
911
|
-
}
|
|
912
|
-
const contents = (0, import_smithy_client.map)({
|
|
913
|
-
$metadata: deserializeMetadata(output)
|
|
914
|
-
});
|
|
915
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
916
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
917
|
-
tags: import_smithy_client._json
|
|
918
|
-
});
|
|
919
|
-
Object.assign(contents, doc);
|
|
920
|
-
return contents;
|
|
921
|
-
}, "de_ListTagsForResourceCommand");
|
|
922
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
923
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
924
|
-
return de_CommandError(output, context);
|
|
925
|
-
}
|
|
926
|
-
const contents = (0, import_smithy_client.map)({
|
|
927
|
-
$metadata: deserializeMetadata(output)
|
|
928
|
-
});
|
|
929
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
930
|
-
return contents;
|
|
931
|
-
}, "de_TagResourceCommand");
|
|
932
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
933
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
-
return de_CommandError(output, context);
|
|
935
|
-
}
|
|
936
|
-
const contents = (0, import_smithy_client.map)({
|
|
937
|
-
$metadata: deserializeMetadata(output)
|
|
938
|
-
});
|
|
939
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
940
|
-
return contents;
|
|
941
|
-
}, "de_UntagResourceCommand");
|
|
942
|
-
var de_UpdateBlueprintCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
943
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
|
-
return de_CommandError(output, context);
|
|
945
|
-
}
|
|
946
|
-
const contents = (0, import_smithy_client.map)({
|
|
947
|
-
$metadata: deserializeMetadata(output)
|
|
948
|
-
});
|
|
949
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
950
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
951
|
-
blueprint: /* @__PURE__ */ __name((_) => de_Blueprint(_, context), "blueprint")
|
|
952
|
-
});
|
|
953
|
-
Object.assign(contents, doc);
|
|
954
|
-
return contents;
|
|
955
|
-
}, "de_UpdateBlueprintCommand");
|
|
956
|
-
var de_UpdateDataAutomationProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
957
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
-
return de_CommandError(output, context);
|
|
959
|
-
}
|
|
960
|
-
const contents = (0, import_smithy_client.map)({
|
|
961
|
-
$metadata: deserializeMetadata(output)
|
|
962
|
-
});
|
|
963
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
964
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
965
|
-
projectArn: import_smithy_client.expectString,
|
|
966
|
-
projectStage: import_smithy_client.expectString,
|
|
967
|
-
status: import_smithy_client.expectString
|
|
968
|
-
});
|
|
969
|
-
Object.assign(contents, doc);
|
|
970
|
-
return contents;
|
|
971
|
-
}, "de_UpdateDataAutomationProjectCommand");
|
|
972
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
|
-
const parsedOutput = {
|
|
974
|
-
...output,
|
|
975
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
976
|
-
};
|
|
977
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
978
|
-
switch (errorCode) {
|
|
979
|
-
case "AccessDeniedException":
|
|
980
|
-
case "com.amazonaws.bedrockdataautomation#AccessDeniedException":
|
|
981
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ConflictException":
|
|
983
|
-
case "com.amazonaws.bedrockdataautomation#ConflictException":
|
|
984
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
985
|
-
case "InternalServerException":
|
|
986
|
-
case "com.amazonaws.bedrockdataautomation#InternalServerException":
|
|
987
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
988
|
-
case "ServiceQuotaExceededException":
|
|
989
|
-
case "com.amazonaws.bedrockdataautomation#ServiceQuotaExceededException":
|
|
990
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ThrottlingException":
|
|
992
|
-
case "com.amazonaws.bedrockdataautomation#ThrottlingException":
|
|
993
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ValidationException":
|
|
995
|
-
case "com.amazonaws.bedrockdataautomation#ValidationException":
|
|
996
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
997
|
-
case "ResourceNotFoundException":
|
|
998
|
-
case "com.amazonaws.bedrockdataautomation#ResourceNotFoundException":
|
|
999
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1000
|
-
default:
|
|
1001
|
-
const parsedBody = parsedOutput.body;
|
|
1002
|
-
return throwDefaultError({
|
|
1003
|
-
output,
|
|
1004
|
-
parsedBody,
|
|
1005
|
-
errorCode
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
|
-
}, "de_CommandError");
|
|
1009
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(BedrockDataAutomationServiceException);
|
|
1010
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1011
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1012
|
-
const data = parsedOutput.body;
|
|
1013
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1014
|
-
message: import_smithy_client.expectString
|
|
1015
|
-
});
|
|
1016
|
-
Object.assign(contents, doc);
|
|
1017
|
-
const exception = new AccessDeniedException({
|
|
1018
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1019
|
-
...contents
|
|
1020
|
-
});
|
|
1021
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1022
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1023
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1024
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1025
|
-
const data = parsedOutput.body;
|
|
1026
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1027
|
-
message: import_smithy_client.expectString
|
|
1028
|
-
});
|
|
1029
|
-
Object.assign(contents, doc);
|
|
1030
|
-
const exception = new ConflictException({
|
|
1031
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1032
|
-
...contents
|
|
1033
|
-
});
|
|
1034
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1035
|
-
}, "de_ConflictExceptionRes");
|
|
1036
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1037
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1038
|
-
const data = parsedOutput.body;
|
|
1039
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1040
|
-
message: import_smithy_client.expectString
|
|
1041
|
-
});
|
|
1042
|
-
Object.assign(contents, doc);
|
|
1043
|
-
const exception = new InternalServerException({
|
|
1044
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1045
|
-
...contents
|
|
1046
|
-
});
|
|
1047
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1048
|
-
}, "de_InternalServerExceptionRes");
|
|
1049
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1050
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1051
|
-
const data = parsedOutput.body;
|
|
1052
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1053
|
-
message: import_smithy_client.expectString
|
|
1054
|
-
});
|
|
1055
|
-
Object.assign(contents, doc);
|
|
1056
|
-
const exception = new ResourceNotFoundException({
|
|
1057
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1058
|
-
...contents
|
|
1059
|
-
});
|
|
1060
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1061
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1062
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1063
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1064
|
-
const data = parsedOutput.body;
|
|
1065
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1066
|
-
message: import_smithy_client.expectString
|
|
1067
|
-
});
|
|
1068
|
-
Object.assign(contents, doc);
|
|
1069
|
-
const exception = new ServiceQuotaExceededException({
|
|
1070
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1071
|
-
...contents
|
|
1072
|
-
});
|
|
1073
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1074
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1075
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1076
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1077
|
-
const data = parsedOutput.body;
|
|
1078
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1079
|
-
message: import_smithy_client.expectString
|
|
1080
|
-
});
|
|
1081
|
-
Object.assign(contents, doc);
|
|
1082
|
-
const exception = new ThrottlingException({
|
|
1083
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1084
|
-
...contents
|
|
1085
|
-
});
|
|
1086
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1087
|
-
}, "de_ThrottlingExceptionRes");
|
|
1088
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1089
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1090
|
-
const data = parsedOutput.body;
|
|
1091
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1092
|
-
fieldList: import_smithy_client._json,
|
|
1093
|
-
message: import_smithy_client.expectString
|
|
1094
|
-
});
|
|
1095
|
-
Object.assign(contents, doc);
|
|
1096
|
-
const exception = new ValidationException({
|
|
1097
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1098
|
-
...contents
|
|
1099
|
-
});
|
|
1100
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1101
|
-
}, "de_ValidationExceptionRes");
|
|
1102
|
-
var de_Blueprint = /* @__PURE__ */ __name((output, context) => {
|
|
1103
|
-
return (0, import_smithy_client.take)(output, {
|
|
1104
|
-
blueprintArn: import_smithy_client.expectString,
|
|
1105
|
-
blueprintName: import_smithy_client.expectString,
|
|
1106
|
-
blueprintStage: import_smithy_client.expectString,
|
|
1107
|
-
blueprintVersion: import_smithy_client.expectString,
|
|
1108
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
|
|
1109
|
-
kmsEncryptionContext: import_smithy_client._json,
|
|
1110
|
-
kmsKeyId: import_smithy_client.expectString,
|
|
1111
|
-
lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastModifiedTime"),
|
|
1112
|
-
schema: import_smithy_client.expectString,
|
|
1113
|
-
type: import_smithy_client.expectString
|
|
1114
|
-
});
|
|
1115
|
-
}, "de_Blueprint");
|
|
1116
|
-
var de_Blueprints = /* @__PURE__ */ __name((output, context) => {
|
|
1117
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1118
|
-
return de_BlueprintSummary(entry, context);
|
|
1119
|
-
});
|
|
1120
|
-
return retVal;
|
|
1121
|
-
}, "de_Blueprints");
|
|
1122
|
-
var de_BlueprintSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1123
|
-
return (0, import_smithy_client.take)(output, {
|
|
1124
|
-
blueprintArn: import_smithy_client.expectString,
|
|
1125
|
-
blueprintName: import_smithy_client.expectString,
|
|
1126
|
-
blueprintStage: import_smithy_client.expectString,
|
|
1127
|
-
blueprintVersion: import_smithy_client.expectString,
|
|
1128
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
|
|
1129
|
-
lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastModifiedTime")
|
|
1130
|
-
});
|
|
1131
|
-
}, "de_BlueprintSummary");
|
|
1132
|
-
var de_DataAutomationProject = /* @__PURE__ */ __name((output, context) => {
|
|
1133
|
-
return (0, import_smithy_client.take)(output, {
|
|
1134
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
|
|
1135
|
-
customOutputConfiguration: import_smithy_client._json,
|
|
1136
|
-
kmsEncryptionContext: import_smithy_client._json,
|
|
1137
|
-
kmsKeyId: import_smithy_client.expectString,
|
|
1138
|
-
lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastModifiedTime"),
|
|
1139
|
-
overrideConfiguration: import_smithy_client._json,
|
|
1140
|
-
projectArn: import_smithy_client.expectString,
|
|
1141
|
-
projectDescription: import_smithy_client.expectString,
|
|
1142
|
-
projectName: import_smithy_client.expectString,
|
|
1143
|
-
projectStage: import_smithy_client.expectString,
|
|
1144
|
-
standardOutputConfiguration: import_smithy_client._json,
|
|
1145
|
-
status: import_smithy_client.expectString
|
|
1146
|
-
});
|
|
1147
|
-
}, "de_DataAutomationProject");
|
|
1148
|
-
var de_DataAutomationProjectSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1149
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1150
|
-
return de_DataAutomationProjectSummary(entry, context);
|
|
1151
|
-
});
|
|
1152
|
-
return retVal;
|
|
1153
|
-
}, "de_DataAutomationProjectSummaries");
|
|
1154
|
-
var de_DataAutomationProjectSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1155
|
-
return (0, import_smithy_client.take)(output, {
|
|
1156
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
|
|
1157
|
-
projectArn: import_smithy_client.expectString,
|
|
1158
|
-
projectName: import_smithy_client.expectString,
|
|
1159
|
-
projectStage: import_smithy_client.expectString
|
|
1160
|
-
});
|
|
1161
|
-
}, "de_DataAutomationProjectSummary");
|
|
1162
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1163
|
-
httpStatusCode: output.statusCode,
|
|
1164
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1165
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1166
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1167
|
-
}), "deserializeMetadata");
|
|
1168
|
-
var _bV = "blueprintVersion";
|
|
1169
|
-
|
|
1170
|
-
// src/commands/CreateBlueprintCommand.ts
|
|
1171
|
-
var CreateBlueprintCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1172
|
-
return [
|
|
1173
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1174
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1175
|
-
];
|
|
1176
|
-
}).s("AmazonBedrockKeystoneBuildTimeService", "CreateBlueprint", {}).n("BedrockDataAutomationClient", "CreateBlueprintCommand").f(CreateBlueprintRequestFilterSensitiveLog, CreateBlueprintResponseFilterSensitiveLog).ser(se_CreateBlueprintCommand).de(de_CreateBlueprintCommand).build() {
|
|
1177
|
-
static {
|
|
1178
|
-
__name(this, "CreateBlueprintCommand");
|
|
1179
|
-
}
|
|
614
|
+
Object.assign(contents, doc);
|
|
615
|
+
return contents;
|
|
1180
616
|
};
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
];
|
|
1191
|
-
}).s("AmazonBedrockKeystoneBuildTimeService", "CreateBlueprintVersion", {}).n("BedrockDataAutomationClient", "CreateBlueprintVersionCommand").f(void 0, CreateBlueprintVersionResponseFilterSensitiveLog).ser(se_CreateBlueprintVersionCommand).de(de_CreateBlueprintVersionCommand).build() {
|
|
1192
|
-
static {
|
|
1193
|
-
__name(this, "CreateBlueprintVersionCommand");
|
|
1194
|
-
}
|
|
617
|
+
const de_DeleteBlueprintCommand = async (output, context) => {
|
|
618
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
619
|
+
return de_CommandError(output, context);
|
|
620
|
+
}
|
|
621
|
+
const contents = smithyClient.map({
|
|
622
|
+
$metadata: deserializeMetadata(output),
|
|
623
|
+
});
|
|
624
|
+
await smithyClient.collectBody(output.body, context);
|
|
625
|
+
return contents;
|
|
1195
626
|
};
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
(
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
627
|
+
const de_DeleteDataAutomationProjectCommand = async (output, context) => {
|
|
628
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
+
return de_CommandError(output, context);
|
|
630
|
+
}
|
|
631
|
+
const contents = smithyClient.map({
|
|
632
|
+
$metadata: deserializeMetadata(output),
|
|
633
|
+
});
|
|
634
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
635
|
+
const doc = smithyClient.take(data, {
|
|
636
|
+
projectArn: smithyClient.expectString,
|
|
637
|
+
status: smithyClient.expectString,
|
|
638
|
+
});
|
|
639
|
+
Object.assign(contents, doc);
|
|
640
|
+
return contents;
|
|
1210
641
|
};
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
(
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
})
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
}
|
|
642
|
+
const de_GetBlueprintCommand = async (output, context) => {
|
|
643
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
|
+
return de_CommandError(output, context);
|
|
645
|
+
}
|
|
646
|
+
const contents = smithyClient.map({
|
|
647
|
+
$metadata: deserializeMetadata(output),
|
|
648
|
+
});
|
|
649
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
650
|
+
const doc = smithyClient.take(data, {
|
|
651
|
+
blueprint: (_) => de_Blueprint(_),
|
|
652
|
+
});
|
|
653
|
+
Object.assign(contents, doc);
|
|
654
|
+
return contents;
|
|
1225
655
|
};
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
(
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
})
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
}
|
|
656
|
+
const de_GetDataAutomationProjectCommand = async (output, context) => {
|
|
657
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
658
|
+
return de_CommandError(output, context);
|
|
659
|
+
}
|
|
660
|
+
const contents = smithyClient.map({
|
|
661
|
+
$metadata: deserializeMetadata(output),
|
|
662
|
+
});
|
|
663
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
664
|
+
const doc = smithyClient.take(data, {
|
|
665
|
+
project: (_) => de_DataAutomationProject(_),
|
|
666
|
+
});
|
|
667
|
+
Object.assign(contents, doc);
|
|
668
|
+
return contents;
|
|
1240
669
|
};
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
(
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
670
|
+
const de_ListBlueprintsCommand = async (output, context) => {
|
|
671
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
672
|
+
return de_CommandError(output, context);
|
|
673
|
+
}
|
|
674
|
+
const contents = smithyClient.map({
|
|
675
|
+
$metadata: deserializeMetadata(output),
|
|
676
|
+
});
|
|
677
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
678
|
+
const doc = smithyClient.take(data, {
|
|
679
|
+
blueprints: (_) => de_Blueprints(_),
|
|
680
|
+
nextToken: smithyClient.expectString,
|
|
681
|
+
});
|
|
682
|
+
Object.assign(contents, doc);
|
|
683
|
+
return contents;
|
|
1255
684
|
};
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
(
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
685
|
+
const de_ListDataAutomationProjectsCommand = async (output, context) => {
|
|
686
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
687
|
+
return de_CommandError(output, context);
|
|
688
|
+
}
|
|
689
|
+
const contents = smithyClient.map({
|
|
690
|
+
$metadata: deserializeMetadata(output),
|
|
691
|
+
});
|
|
692
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
693
|
+
const doc = smithyClient.take(data, {
|
|
694
|
+
nextToken: smithyClient.expectString,
|
|
695
|
+
projects: (_) => de_DataAutomationProjectSummaries(_),
|
|
696
|
+
});
|
|
697
|
+
Object.assign(contents, doc);
|
|
698
|
+
return contents;
|
|
1270
699
|
};
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
(
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
})
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
}
|
|
700
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
701
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
702
|
+
return de_CommandError(output, context);
|
|
703
|
+
}
|
|
704
|
+
const contents = smithyClient.map({
|
|
705
|
+
$metadata: deserializeMetadata(output),
|
|
706
|
+
});
|
|
707
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
708
|
+
const doc = smithyClient.take(data, {
|
|
709
|
+
tags: smithyClient._json,
|
|
710
|
+
});
|
|
711
|
+
Object.assign(contents, doc);
|
|
712
|
+
return contents;
|
|
1285
713
|
};
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
];
|
|
1296
|
-
}).s("AmazonBedrockKeystoneBuildTimeService", "ListDataAutomationProjects", {}).n("BedrockDataAutomationClient", "ListDataAutomationProjectsCommand").f(void 0, ListDataAutomationProjectsResponseFilterSensitiveLog).ser(se_ListDataAutomationProjectsCommand).de(de_ListDataAutomationProjectsCommand).build() {
|
|
1297
|
-
static {
|
|
1298
|
-
__name(this, "ListDataAutomationProjectsCommand");
|
|
1299
|
-
}
|
|
714
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
+
return de_CommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const contents = smithyClient.map({
|
|
719
|
+
$metadata: deserializeMetadata(output),
|
|
720
|
+
});
|
|
721
|
+
await smithyClient.collectBody(output.body, context);
|
|
722
|
+
return contents;
|
|
1300
723
|
};
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
];
|
|
1311
|
-
}).s("AmazonBedrockKeystoneBuildTimeService", "ListTagsForResource", {}).n("BedrockDataAutomationClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1312
|
-
static {
|
|
1313
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1314
|
-
}
|
|
724
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
725
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
|
+
return de_CommandError(output, context);
|
|
727
|
+
}
|
|
728
|
+
const contents = smithyClient.map({
|
|
729
|
+
$metadata: deserializeMetadata(output),
|
|
730
|
+
});
|
|
731
|
+
await smithyClient.collectBody(output.body, context);
|
|
732
|
+
return contents;
|
|
1315
733
|
};
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
(
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
})
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
}
|
|
734
|
+
const de_UpdateBlueprintCommand = async (output, context) => {
|
|
735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
+
return de_CommandError(output, context);
|
|
737
|
+
}
|
|
738
|
+
const contents = smithyClient.map({
|
|
739
|
+
$metadata: deserializeMetadata(output),
|
|
740
|
+
});
|
|
741
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
742
|
+
const doc = smithyClient.take(data, {
|
|
743
|
+
blueprint: (_) => de_Blueprint(_),
|
|
744
|
+
});
|
|
745
|
+
Object.assign(contents, doc);
|
|
746
|
+
return contents;
|
|
1330
747
|
};
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
(
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
748
|
+
const de_UpdateDataAutomationProjectCommand = async (output, context) => {
|
|
749
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
+
return de_CommandError(output, context);
|
|
751
|
+
}
|
|
752
|
+
const contents = smithyClient.map({
|
|
753
|
+
$metadata: deserializeMetadata(output),
|
|
754
|
+
});
|
|
755
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
756
|
+
const doc = smithyClient.take(data, {
|
|
757
|
+
projectArn: smithyClient.expectString,
|
|
758
|
+
projectStage: smithyClient.expectString,
|
|
759
|
+
status: smithyClient.expectString,
|
|
760
|
+
});
|
|
761
|
+
Object.assign(contents, doc);
|
|
762
|
+
return contents;
|
|
1345
763
|
};
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
764
|
+
const de_CommandError = async (output, context) => {
|
|
765
|
+
const parsedOutput = {
|
|
766
|
+
...output,
|
|
767
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
768
|
+
};
|
|
769
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
|
+
switch (errorCode) {
|
|
771
|
+
case "AccessDeniedException":
|
|
772
|
+
case "com.amazonaws.bedrockdataautomation#AccessDeniedException":
|
|
773
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
774
|
+
case "ConflictException":
|
|
775
|
+
case "com.amazonaws.bedrockdataautomation#ConflictException":
|
|
776
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
777
|
+
case "InternalServerException":
|
|
778
|
+
case "com.amazonaws.bedrockdataautomation#InternalServerException":
|
|
779
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
780
|
+
case "ServiceQuotaExceededException":
|
|
781
|
+
case "com.amazonaws.bedrockdataautomation#ServiceQuotaExceededException":
|
|
782
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
783
|
+
case "ThrottlingException":
|
|
784
|
+
case "com.amazonaws.bedrockdataautomation#ThrottlingException":
|
|
785
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
786
|
+
case "ValidationException":
|
|
787
|
+
case "com.amazonaws.bedrockdataautomation#ValidationException":
|
|
788
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
789
|
+
case "ResourceNotFoundException":
|
|
790
|
+
case "com.amazonaws.bedrockdataautomation#ResourceNotFoundException":
|
|
791
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
792
|
+
default:
|
|
793
|
+
const parsedBody = parsedOutput.body;
|
|
794
|
+
return throwDefaultError({
|
|
795
|
+
output,
|
|
796
|
+
parsedBody,
|
|
797
|
+
errorCode,
|
|
798
|
+
});
|
|
799
|
+
}
|
|
1360
800
|
};
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
}
|
|
801
|
+
const throwDefaultError = smithyClient.withBaseException(BedrockDataAutomationServiceException);
|
|
802
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
803
|
+
const contents = smithyClient.map({});
|
|
804
|
+
const data = parsedOutput.body;
|
|
805
|
+
const doc = smithyClient.take(data, {
|
|
806
|
+
message: smithyClient.expectString,
|
|
807
|
+
});
|
|
808
|
+
Object.assign(contents, doc);
|
|
809
|
+
const exception = new AccessDeniedException({
|
|
810
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
811
|
+
...contents,
|
|
812
|
+
});
|
|
813
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1375
814
|
};
|
|
815
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
816
|
+
const contents = smithyClient.map({});
|
|
817
|
+
const data = parsedOutput.body;
|
|
818
|
+
const doc = smithyClient.take(data, {
|
|
819
|
+
message: smithyClient.expectString,
|
|
820
|
+
});
|
|
821
|
+
Object.assign(contents, doc);
|
|
822
|
+
const exception = new ConflictException({
|
|
823
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
824
|
+
...contents,
|
|
825
|
+
});
|
|
826
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
827
|
+
};
|
|
828
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
829
|
+
const contents = smithyClient.map({});
|
|
830
|
+
const data = parsedOutput.body;
|
|
831
|
+
const doc = smithyClient.take(data, {
|
|
832
|
+
message: smithyClient.expectString,
|
|
833
|
+
});
|
|
834
|
+
Object.assign(contents, doc);
|
|
835
|
+
const exception = new InternalServerException({
|
|
836
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
837
|
+
...contents,
|
|
838
|
+
});
|
|
839
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
840
|
+
};
|
|
841
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
842
|
+
const contents = smithyClient.map({});
|
|
843
|
+
const data = parsedOutput.body;
|
|
844
|
+
const doc = smithyClient.take(data, {
|
|
845
|
+
message: smithyClient.expectString,
|
|
846
|
+
});
|
|
847
|
+
Object.assign(contents, doc);
|
|
848
|
+
const exception = new ResourceNotFoundException({
|
|
849
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
850
|
+
...contents,
|
|
851
|
+
});
|
|
852
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
853
|
+
};
|
|
854
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
855
|
+
const contents = smithyClient.map({});
|
|
856
|
+
const data = parsedOutput.body;
|
|
857
|
+
const doc = smithyClient.take(data, {
|
|
858
|
+
message: smithyClient.expectString,
|
|
859
|
+
});
|
|
860
|
+
Object.assign(contents, doc);
|
|
861
|
+
const exception = new ServiceQuotaExceededException({
|
|
862
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
863
|
+
...contents,
|
|
864
|
+
});
|
|
865
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
866
|
+
};
|
|
867
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
868
|
+
const contents = smithyClient.map({});
|
|
869
|
+
const data = parsedOutput.body;
|
|
870
|
+
const doc = smithyClient.take(data, {
|
|
871
|
+
message: smithyClient.expectString,
|
|
872
|
+
});
|
|
873
|
+
Object.assign(contents, doc);
|
|
874
|
+
const exception = new ThrottlingException({
|
|
875
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
876
|
+
...contents,
|
|
877
|
+
});
|
|
878
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
879
|
+
};
|
|
880
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
881
|
+
const contents = smithyClient.map({});
|
|
882
|
+
const data = parsedOutput.body;
|
|
883
|
+
const doc = smithyClient.take(data, {
|
|
884
|
+
fieldList: smithyClient._json,
|
|
885
|
+
message: smithyClient.expectString,
|
|
886
|
+
});
|
|
887
|
+
Object.assign(contents, doc);
|
|
888
|
+
const exception = new ValidationException({
|
|
889
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
890
|
+
...contents,
|
|
891
|
+
});
|
|
892
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
893
|
+
};
|
|
894
|
+
const de_Blueprint = (output, context) => {
|
|
895
|
+
return smithyClient.take(output, {
|
|
896
|
+
blueprintArn: smithyClient.expectString,
|
|
897
|
+
blueprintName: smithyClient.expectString,
|
|
898
|
+
blueprintStage: smithyClient.expectString,
|
|
899
|
+
blueprintVersion: smithyClient.expectString,
|
|
900
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
901
|
+
kmsEncryptionContext: smithyClient._json,
|
|
902
|
+
kmsKeyId: smithyClient.expectString,
|
|
903
|
+
lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
904
|
+
schema: smithyClient.expectString,
|
|
905
|
+
type: smithyClient.expectString,
|
|
906
|
+
});
|
|
907
|
+
};
|
|
908
|
+
const de_Blueprints = (output, context) => {
|
|
909
|
+
const retVal = (output || [])
|
|
910
|
+
.filter((e) => e != null)
|
|
911
|
+
.map((entry) => {
|
|
912
|
+
return de_BlueprintSummary(entry);
|
|
913
|
+
});
|
|
914
|
+
return retVal;
|
|
915
|
+
};
|
|
916
|
+
const de_BlueprintSummary = (output, context) => {
|
|
917
|
+
return smithyClient.take(output, {
|
|
918
|
+
blueprintArn: smithyClient.expectString,
|
|
919
|
+
blueprintName: smithyClient.expectString,
|
|
920
|
+
blueprintStage: smithyClient.expectString,
|
|
921
|
+
blueprintVersion: smithyClient.expectString,
|
|
922
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
923
|
+
lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
924
|
+
});
|
|
925
|
+
};
|
|
926
|
+
const de_DataAutomationProject = (output, context) => {
|
|
927
|
+
return smithyClient.take(output, {
|
|
928
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
929
|
+
customOutputConfiguration: smithyClient._json,
|
|
930
|
+
kmsEncryptionContext: smithyClient._json,
|
|
931
|
+
kmsKeyId: smithyClient.expectString,
|
|
932
|
+
lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
933
|
+
overrideConfiguration: smithyClient._json,
|
|
934
|
+
projectArn: smithyClient.expectString,
|
|
935
|
+
projectDescription: smithyClient.expectString,
|
|
936
|
+
projectName: smithyClient.expectString,
|
|
937
|
+
projectStage: smithyClient.expectString,
|
|
938
|
+
standardOutputConfiguration: smithyClient._json,
|
|
939
|
+
status: smithyClient.expectString,
|
|
940
|
+
});
|
|
941
|
+
};
|
|
942
|
+
const de_DataAutomationProjectSummaries = (output, context) => {
|
|
943
|
+
const retVal = (output || [])
|
|
944
|
+
.filter((e) => e != null)
|
|
945
|
+
.map((entry) => {
|
|
946
|
+
return de_DataAutomationProjectSummary(entry);
|
|
947
|
+
});
|
|
948
|
+
return retVal;
|
|
949
|
+
};
|
|
950
|
+
const de_DataAutomationProjectSummary = (output, context) => {
|
|
951
|
+
return smithyClient.take(output, {
|
|
952
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
953
|
+
projectArn: smithyClient.expectString,
|
|
954
|
+
projectName: smithyClient.expectString,
|
|
955
|
+
projectStage: smithyClient.expectString,
|
|
956
|
+
});
|
|
957
|
+
};
|
|
958
|
+
const deserializeMetadata = (output) => ({
|
|
959
|
+
httpStatusCode: output.statusCode,
|
|
960
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
961
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
962
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
963
|
+
});
|
|
964
|
+
const _bV = "blueprintVersion";
|
|
965
|
+
|
|
966
|
+
class CreateBlueprintCommand extends smithyClient.Command
|
|
967
|
+
.classBuilder()
|
|
968
|
+
.ep(commonParams)
|
|
969
|
+
.m(function (Command, cs, config, o) {
|
|
970
|
+
return [
|
|
971
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
972
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
973
|
+
];
|
|
974
|
+
})
|
|
975
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "CreateBlueprint", {})
|
|
976
|
+
.n("BedrockDataAutomationClient", "CreateBlueprintCommand")
|
|
977
|
+
.f(CreateBlueprintRequestFilterSensitiveLog, CreateBlueprintResponseFilterSensitiveLog)
|
|
978
|
+
.ser(se_CreateBlueprintCommand)
|
|
979
|
+
.de(de_CreateBlueprintCommand)
|
|
980
|
+
.build() {
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
class CreateBlueprintVersionCommand extends smithyClient.Command
|
|
984
|
+
.classBuilder()
|
|
985
|
+
.ep(commonParams)
|
|
986
|
+
.m(function (Command, cs, config, o) {
|
|
987
|
+
return [
|
|
988
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
989
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
990
|
+
];
|
|
991
|
+
})
|
|
992
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "CreateBlueprintVersion", {})
|
|
993
|
+
.n("BedrockDataAutomationClient", "CreateBlueprintVersionCommand")
|
|
994
|
+
.f(void 0, CreateBlueprintVersionResponseFilterSensitiveLog)
|
|
995
|
+
.ser(se_CreateBlueprintVersionCommand)
|
|
996
|
+
.de(de_CreateBlueprintVersionCommand)
|
|
997
|
+
.build() {
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
class CreateDataAutomationProjectCommand extends smithyClient.Command
|
|
1001
|
+
.classBuilder()
|
|
1002
|
+
.ep(commonParams)
|
|
1003
|
+
.m(function (Command, cs, config, o) {
|
|
1004
|
+
return [
|
|
1005
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1006
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1007
|
+
];
|
|
1008
|
+
})
|
|
1009
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "CreateDataAutomationProject", {})
|
|
1010
|
+
.n("BedrockDataAutomationClient", "CreateDataAutomationProjectCommand")
|
|
1011
|
+
.f(CreateDataAutomationProjectRequestFilterSensitiveLog, void 0)
|
|
1012
|
+
.ser(se_CreateDataAutomationProjectCommand)
|
|
1013
|
+
.de(de_CreateDataAutomationProjectCommand)
|
|
1014
|
+
.build() {
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
class DeleteBlueprintCommand extends smithyClient.Command
|
|
1018
|
+
.classBuilder()
|
|
1019
|
+
.ep(commonParams)
|
|
1020
|
+
.m(function (Command, cs, config, o) {
|
|
1021
|
+
return [
|
|
1022
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1023
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1024
|
+
];
|
|
1025
|
+
})
|
|
1026
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "DeleteBlueprint", {})
|
|
1027
|
+
.n("BedrockDataAutomationClient", "DeleteBlueprintCommand")
|
|
1028
|
+
.f(void 0, void 0)
|
|
1029
|
+
.ser(se_DeleteBlueprintCommand)
|
|
1030
|
+
.de(de_DeleteBlueprintCommand)
|
|
1031
|
+
.build() {
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
class DeleteDataAutomationProjectCommand extends smithyClient.Command
|
|
1035
|
+
.classBuilder()
|
|
1036
|
+
.ep(commonParams)
|
|
1037
|
+
.m(function (Command, cs, config, o) {
|
|
1038
|
+
return [
|
|
1039
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1040
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1041
|
+
];
|
|
1042
|
+
})
|
|
1043
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "DeleteDataAutomationProject", {})
|
|
1044
|
+
.n("BedrockDataAutomationClient", "DeleteDataAutomationProjectCommand")
|
|
1045
|
+
.f(void 0, void 0)
|
|
1046
|
+
.ser(se_DeleteDataAutomationProjectCommand)
|
|
1047
|
+
.de(de_DeleteDataAutomationProjectCommand)
|
|
1048
|
+
.build() {
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
class GetBlueprintCommand extends smithyClient.Command
|
|
1052
|
+
.classBuilder()
|
|
1053
|
+
.ep(commonParams)
|
|
1054
|
+
.m(function (Command, cs, config, o) {
|
|
1055
|
+
return [
|
|
1056
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1057
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1058
|
+
];
|
|
1059
|
+
})
|
|
1060
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "GetBlueprint", {})
|
|
1061
|
+
.n("BedrockDataAutomationClient", "GetBlueprintCommand")
|
|
1062
|
+
.f(void 0, GetBlueprintResponseFilterSensitiveLog)
|
|
1063
|
+
.ser(se_GetBlueprintCommand)
|
|
1064
|
+
.de(de_GetBlueprintCommand)
|
|
1065
|
+
.build() {
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
class GetDataAutomationProjectCommand extends smithyClient.Command
|
|
1069
|
+
.classBuilder()
|
|
1070
|
+
.ep(commonParams)
|
|
1071
|
+
.m(function (Command, cs, config, o) {
|
|
1072
|
+
return [
|
|
1073
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1074
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1075
|
+
];
|
|
1076
|
+
})
|
|
1077
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "GetDataAutomationProject", {})
|
|
1078
|
+
.n("BedrockDataAutomationClient", "GetDataAutomationProjectCommand")
|
|
1079
|
+
.f(void 0, GetDataAutomationProjectResponseFilterSensitiveLog)
|
|
1080
|
+
.ser(se_GetDataAutomationProjectCommand)
|
|
1081
|
+
.de(de_GetDataAutomationProjectCommand)
|
|
1082
|
+
.build() {
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
class ListBlueprintsCommand extends smithyClient.Command
|
|
1086
|
+
.classBuilder()
|
|
1087
|
+
.ep(commonParams)
|
|
1088
|
+
.m(function (Command, cs, config, o) {
|
|
1089
|
+
return [
|
|
1090
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1091
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1092
|
+
];
|
|
1093
|
+
})
|
|
1094
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "ListBlueprints", {})
|
|
1095
|
+
.n("BedrockDataAutomationClient", "ListBlueprintsCommand")
|
|
1096
|
+
.f(void 0, ListBlueprintsResponseFilterSensitiveLog)
|
|
1097
|
+
.ser(se_ListBlueprintsCommand)
|
|
1098
|
+
.de(de_ListBlueprintsCommand)
|
|
1099
|
+
.build() {
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
class ListDataAutomationProjectsCommand extends smithyClient.Command
|
|
1103
|
+
.classBuilder()
|
|
1104
|
+
.ep(commonParams)
|
|
1105
|
+
.m(function (Command, cs, config, o) {
|
|
1106
|
+
return [
|
|
1107
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1108
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1109
|
+
];
|
|
1110
|
+
})
|
|
1111
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "ListDataAutomationProjects", {})
|
|
1112
|
+
.n("BedrockDataAutomationClient", "ListDataAutomationProjectsCommand")
|
|
1113
|
+
.f(void 0, ListDataAutomationProjectsResponseFilterSensitiveLog)
|
|
1114
|
+
.ser(se_ListDataAutomationProjectsCommand)
|
|
1115
|
+
.de(de_ListDataAutomationProjectsCommand)
|
|
1116
|
+
.build() {
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1120
|
+
.classBuilder()
|
|
1121
|
+
.ep(commonParams)
|
|
1122
|
+
.m(function (Command, cs, config, o) {
|
|
1123
|
+
return [
|
|
1124
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1125
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1126
|
+
];
|
|
1127
|
+
})
|
|
1128
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "ListTagsForResource", {})
|
|
1129
|
+
.n("BedrockDataAutomationClient", "ListTagsForResourceCommand")
|
|
1130
|
+
.f(void 0, void 0)
|
|
1131
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1132
|
+
.de(de_ListTagsForResourceCommand)
|
|
1133
|
+
.build() {
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1137
|
+
.classBuilder()
|
|
1138
|
+
.ep(commonParams)
|
|
1139
|
+
.m(function (Command, cs, config, o) {
|
|
1140
|
+
return [
|
|
1141
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1142
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1143
|
+
];
|
|
1144
|
+
})
|
|
1145
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "TagResource", {})
|
|
1146
|
+
.n("BedrockDataAutomationClient", "TagResourceCommand")
|
|
1147
|
+
.f(void 0, void 0)
|
|
1148
|
+
.ser(se_TagResourceCommand)
|
|
1149
|
+
.de(de_TagResourceCommand)
|
|
1150
|
+
.build() {
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1154
|
+
.classBuilder()
|
|
1155
|
+
.ep(commonParams)
|
|
1156
|
+
.m(function (Command, cs, config, o) {
|
|
1157
|
+
return [
|
|
1158
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1159
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1160
|
+
];
|
|
1161
|
+
})
|
|
1162
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "UntagResource", {})
|
|
1163
|
+
.n("BedrockDataAutomationClient", "UntagResourceCommand")
|
|
1164
|
+
.f(void 0, void 0)
|
|
1165
|
+
.ser(se_UntagResourceCommand)
|
|
1166
|
+
.de(de_UntagResourceCommand)
|
|
1167
|
+
.build() {
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
class UpdateBlueprintCommand extends smithyClient.Command
|
|
1171
|
+
.classBuilder()
|
|
1172
|
+
.ep(commonParams)
|
|
1173
|
+
.m(function (Command, cs, config, o) {
|
|
1174
|
+
return [
|
|
1175
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1176
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1177
|
+
];
|
|
1178
|
+
})
|
|
1179
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "UpdateBlueprint", {})
|
|
1180
|
+
.n("BedrockDataAutomationClient", "UpdateBlueprintCommand")
|
|
1181
|
+
.f(UpdateBlueprintRequestFilterSensitiveLog, UpdateBlueprintResponseFilterSensitiveLog)
|
|
1182
|
+
.ser(se_UpdateBlueprintCommand)
|
|
1183
|
+
.de(de_UpdateBlueprintCommand)
|
|
1184
|
+
.build() {
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
class UpdateDataAutomationProjectCommand extends smithyClient.Command
|
|
1188
|
+
.classBuilder()
|
|
1189
|
+
.ep(commonParams)
|
|
1190
|
+
.m(function (Command, cs, config, o) {
|
|
1191
|
+
return [
|
|
1192
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1193
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1194
|
+
];
|
|
1195
|
+
})
|
|
1196
|
+
.s("AmazonBedrockKeystoneBuildTimeService", "UpdateDataAutomationProject", {})
|
|
1197
|
+
.n("BedrockDataAutomationClient", "UpdateDataAutomationProjectCommand")
|
|
1198
|
+
.f(UpdateDataAutomationProjectRequestFilterSensitiveLog, void 0)
|
|
1199
|
+
.ser(se_UpdateDataAutomationProjectCommand)
|
|
1200
|
+
.de(de_UpdateDataAutomationProjectCommand)
|
|
1201
|
+
.build() {
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
const commands = {
|
|
1205
|
+
CreateBlueprintCommand,
|
|
1206
|
+
CreateBlueprintVersionCommand,
|
|
1207
|
+
CreateDataAutomationProjectCommand,
|
|
1208
|
+
DeleteBlueprintCommand,
|
|
1209
|
+
DeleteDataAutomationProjectCommand,
|
|
1210
|
+
GetBlueprintCommand,
|
|
1211
|
+
GetDataAutomationProjectCommand,
|
|
1212
|
+
ListBlueprintsCommand,
|
|
1213
|
+
ListDataAutomationProjectsCommand,
|
|
1214
|
+
ListTagsForResourceCommand,
|
|
1215
|
+
TagResourceCommand,
|
|
1216
|
+
UntagResourceCommand,
|
|
1217
|
+
UpdateBlueprintCommand,
|
|
1218
|
+
UpdateDataAutomationProjectCommand,
|
|
1219
|
+
};
|
|
1220
|
+
class BedrockDataAutomation extends BedrockDataAutomationClient {
|
|
1221
|
+
}
|
|
1222
|
+
smithyClient.createAggregatedClient(commands, BedrockDataAutomation);
|
|
1376
1223
|
|
|
1377
|
-
|
|
1378
|
-
var commands = {
|
|
1379
|
-
CreateBlueprintCommand,
|
|
1380
|
-
CreateBlueprintVersionCommand,
|
|
1381
|
-
CreateDataAutomationProjectCommand,
|
|
1382
|
-
DeleteBlueprintCommand,
|
|
1383
|
-
DeleteDataAutomationProjectCommand,
|
|
1384
|
-
GetBlueprintCommand,
|
|
1385
|
-
GetDataAutomationProjectCommand,
|
|
1386
|
-
ListBlueprintsCommand,
|
|
1387
|
-
ListDataAutomationProjectsCommand,
|
|
1388
|
-
ListTagsForResourceCommand,
|
|
1389
|
-
TagResourceCommand,
|
|
1390
|
-
UntagResourceCommand,
|
|
1391
|
-
UpdateBlueprintCommand,
|
|
1392
|
-
UpdateDataAutomationProjectCommand
|
|
1393
|
-
};
|
|
1394
|
-
var BedrockDataAutomation = class extends BedrockDataAutomationClient {
|
|
1395
|
-
static {
|
|
1396
|
-
__name(this, "BedrockDataAutomation");
|
|
1397
|
-
}
|
|
1398
|
-
};
|
|
1399
|
-
(0, import_smithy_client.createAggregatedClient)(commands, BedrockDataAutomation);
|
|
1400
|
-
|
|
1401
|
-
// src/pagination/ListBlueprintsPaginator.ts
|
|
1402
|
-
|
|
1403
|
-
var paginateListBlueprints = (0, import_core.createPaginator)(BedrockDataAutomationClient, ListBlueprintsCommand, "nextToken", "nextToken", "maxResults");
|
|
1404
|
-
|
|
1405
|
-
// src/pagination/ListDataAutomationProjectsPaginator.ts
|
|
1224
|
+
const paginateListBlueprints = core.createPaginator(BedrockDataAutomationClient, ListBlueprintsCommand, "nextToken", "nextToken", "maxResults");
|
|
1406
1225
|
|
|
1407
|
-
|
|
1408
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1226
|
+
const paginateListDataAutomationProjects = core.createPaginator(BedrockDataAutomationClient, ListDataAutomationProjectsCommand, "nextToken", "nextToken", "maxResults");
|
|
1409
1227
|
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
BedrockDataAutomationClient,
|
|
1414
|
-
BedrockDataAutomation,
|
|
1415
|
-
$Command,
|
|
1416
|
-
CreateBlueprintCommand,
|
|
1417
|
-
CreateBlueprintVersionCommand,
|
|
1418
|
-
CreateDataAutomationProjectCommand,
|
|
1419
|
-
DeleteBlueprintCommand,
|
|
1420
|
-
DeleteDataAutomationProjectCommand,
|
|
1421
|
-
GetBlueprintCommand,
|
|
1422
|
-
GetDataAutomationProjectCommand,
|
|
1423
|
-
ListBlueprintsCommand,
|
|
1424
|
-
ListDataAutomationProjectsCommand,
|
|
1425
|
-
ListTagsForResourceCommand,
|
|
1426
|
-
TagResourceCommand,
|
|
1427
|
-
UntagResourceCommand,
|
|
1428
|
-
UpdateBlueprintCommand,
|
|
1429
|
-
UpdateDataAutomationProjectCommand,
|
|
1430
|
-
paginateListBlueprints,
|
|
1431
|
-
paginateListDataAutomationProjects,
|
|
1432
|
-
AccessDeniedException,
|
|
1433
|
-
ConflictException,
|
|
1434
|
-
BlueprintStage,
|
|
1435
|
-
Type,
|
|
1436
|
-
InternalServerException,
|
|
1437
|
-
ServiceQuotaExceededException,
|
|
1438
|
-
ThrottlingException,
|
|
1439
|
-
ValidationException,
|
|
1440
|
-
ResourceNotFoundException,
|
|
1441
|
-
BlueprintStageFilter,
|
|
1442
|
-
DataAutomationProjectStage,
|
|
1443
|
-
ResourceOwner,
|
|
1444
|
-
State,
|
|
1445
|
-
DesiredModality,
|
|
1446
|
-
AudioExtractionCategoryType,
|
|
1447
|
-
AudioStandardGenerativeFieldType,
|
|
1448
|
-
DocumentExtractionGranularityType,
|
|
1449
|
-
DocumentOutputTextFormatType,
|
|
1450
|
-
ImageExtractionCategoryType,
|
|
1451
|
-
ImageStandardGenerativeFieldType,
|
|
1452
|
-
VideoExtractionCategoryType,
|
|
1453
|
-
VideoStandardGenerativeFieldType,
|
|
1454
|
-
DataAutomationProjectStatus,
|
|
1455
|
-
DataAutomationProjectStageFilter,
|
|
1456
|
-
CreateBlueprintRequestFilterSensitiveLog,
|
|
1457
|
-
BlueprintFilterSensitiveLog,
|
|
1458
|
-
CreateBlueprintResponseFilterSensitiveLog,
|
|
1459
|
-
GetBlueprintResponseFilterSensitiveLog,
|
|
1460
|
-
BlueprintSummaryFilterSensitiveLog,
|
|
1461
|
-
ListBlueprintsResponseFilterSensitiveLog,
|
|
1462
|
-
UpdateBlueprintRequestFilterSensitiveLog,
|
|
1463
|
-
UpdateBlueprintResponseFilterSensitiveLog,
|
|
1464
|
-
CreateBlueprintVersionResponseFilterSensitiveLog,
|
|
1465
|
-
CreateDataAutomationProjectRequestFilterSensitiveLog,
|
|
1466
|
-
DataAutomationProjectFilterSensitiveLog,
|
|
1467
|
-
GetDataAutomationProjectResponseFilterSensitiveLog,
|
|
1468
|
-
DataAutomationProjectSummaryFilterSensitiveLog,
|
|
1469
|
-
ListDataAutomationProjectsResponseFilterSensitiveLog,
|
|
1470
|
-
UpdateDataAutomationProjectRequestFilterSensitiveLog
|
|
1228
|
+
Object.defineProperty(exports, "$Command", {
|
|
1229
|
+
enumerable: true,
|
|
1230
|
+
get: function () { return smithyClient.Command; }
|
|
1471
1231
|
});
|
|
1472
|
-
|
|
1232
|
+
Object.defineProperty(exports, "__Client", {
|
|
1233
|
+
enumerable: true,
|
|
1234
|
+
get: function () { return smithyClient.Client; }
|
|
1235
|
+
});
|
|
1236
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1237
|
+
exports.AudioExtractionCategoryType = AudioExtractionCategoryType;
|
|
1238
|
+
exports.AudioStandardGenerativeFieldType = AudioStandardGenerativeFieldType;
|
|
1239
|
+
exports.BedrockDataAutomation = BedrockDataAutomation;
|
|
1240
|
+
exports.BedrockDataAutomationClient = BedrockDataAutomationClient;
|
|
1241
|
+
exports.BedrockDataAutomationServiceException = BedrockDataAutomationServiceException;
|
|
1242
|
+
exports.BlueprintFilterSensitiveLog = BlueprintFilterSensitiveLog;
|
|
1243
|
+
exports.BlueprintStage = BlueprintStage;
|
|
1244
|
+
exports.BlueprintStageFilter = BlueprintStageFilter;
|
|
1245
|
+
exports.BlueprintSummaryFilterSensitiveLog = BlueprintSummaryFilterSensitiveLog;
|
|
1246
|
+
exports.ConflictException = ConflictException;
|
|
1247
|
+
exports.CreateBlueprintCommand = CreateBlueprintCommand;
|
|
1248
|
+
exports.CreateBlueprintRequestFilterSensitiveLog = CreateBlueprintRequestFilterSensitiveLog;
|
|
1249
|
+
exports.CreateBlueprintResponseFilterSensitiveLog = CreateBlueprintResponseFilterSensitiveLog;
|
|
1250
|
+
exports.CreateBlueprintVersionCommand = CreateBlueprintVersionCommand;
|
|
1251
|
+
exports.CreateBlueprintVersionResponseFilterSensitiveLog = CreateBlueprintVersionResponseFilterSensitiveLog;
|
|
1252
|
+
exports.CreateDataAutomationProjectCommand = CreateDataAutomationProjectCommand;
|
|
1253
|
+
exports.CreateDataAutomationProjectRequestFilterSensitiveLog = CreateDataAutomationProjectRequestFilterSensitiveLog;
|
|
1254
|
+
exports.DataAutomationProjectFilterSensitiveLog = DataAutomationProjectFilterSensitiveLog;
|
|
1255
|
+
exports.DataAutomationProjectStage = DataAutomationProjectStage;
|
|
1256
|
+
exports.DataAutomationProjectStageFilter = DataAutomationProjectStageFilter;
|
|
1257
|
+
exports.DataAutomationProjectStatus = DataAutomationProjectStatus;
|
|
1258
|
+
exports.DataAutomationProjectSummaryFilterSensitiveLog = DataAutomationProjectSummaryFilterSensitiveLog;
|
|
1259
|
+
exports.DeleteBlueprintCommand = DeleteBlueprintCommand;
|
|
1260
|
+
exports.DeleteDataAutomationProjectCommand = DeleteDataAutomationProjectCommand;
|
|
1261
|
+
exports.DesiredModality = DesiredModality;
|
|
1262
|
+
exports.DocumentExtractionGranularityType = DocumentExtractionGranularityType;
|
|
1263
|
+
exports.DocumentOutputTextFormatType = DocumentOutputTextFormatType;
|
|
1264
|
+
exports.GetBlueprintCommand = GetBlueprintCommand;
|
|
1265
|
+
exports.GetBlueprintResponseFilterSensitiveLog = GetBlueprintResponseFilterSensitiveLog;
|
|
1266
|
+
exports.GetDataAutomationProjectCommand = GetDataAutomationProjectCommand;
|
|
1267
|
+
exports.GetDataAutomationProjectResponseFilterSensitiveLog = GetDataAutomationProjectResponseFilterSensitiveLog;
|
|
1268
|
+
exports.ImageExtractionCategoryType = ImageExtractionCategoryType;
|
|
1269
|
+
exports.ImageStandardGenerativeFieldType = ImageStandardGenerativeFieldType;
|
|
1270
|
+
exports.InternalServerException = InternalServerException;
|
|
1271
|
+
exports.ListBlueprintsCommand = ListBlueprintsCommand;
|
|
1272
|
+
exports.ListBlueprintsResponseFilterSensitiveLog = ListBlueprintsResponseFilterSensitiveLog;
|
|
1273
|
+
exports.ListDataAutomationProjectsCommand = ListDataAutomationProjectsCommand;
|
|
1274
|
+
exports.ListDataAutomationProjectsResponseFilterSensitiveLog = ListDataAutomationProjectsResponseFilterSensitiveLog;
|
|
1275
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1276
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1277
|
+
exports.ResourceOwner = ResourceOwner;
|
|
1278
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1279
|
+
exports.State = State;
|
|
1280
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1281
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1282
|
+
exports.Type = Type;
|
|
1283
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1284
|
+
exports.UpdateBlueprintCommand = UpdateBlueprintCommand;
|
|
1285
|
+
exports.UpdateBlueprintRequestFilterSensitiveLog = UpdateBlueprintRequestFilterSensitiveLog;
|
|
1286
|
+
exports.UpdateBlueprintResponseFilterSensitiveLog = UpdateBlueprintResponseFilterSensitiveLog;
|
|
1287
|
+
exports.UpdateDataAutomationProjectCommand = UpdateDataAutomationProjectCommand;
|
|
1288
|
+
exports.UpdateDataAutomationProjectRequestFilterSensitiveLog = UpdateDataAutomationProjectRequestFilterSensitiveLog;
|
|
1289
|
+
exports.ValidationException = ValidationException;
|
|
1290
|
+
exports.VideoExtractionCategoryType = VideoExtractionCategoryType;
|
|
1291
|
+
exports.VideoStandardGenerativeFieldType = VideoStandardGenerativeFieldType;
|
|
1292
|
+
exports.paginateListBlueprints = paginateListBlueprints;
|
|
1293
|
+
exports.paginateListDataAutomationProjects = paginateListDataAutomationProjects;
|