@aws-sdk/client-dataexchange 3.490.0 → 3.496.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/DataExchange.js +1 -71
- package/dist-cjs/DataExchangeClient.js +1 -43
- package/dist-cjs/commands/CancelJobCommand.js +1 -28
- package/dist-cjs/commands/CreateDataSetCommand.js +1 -28
- package/dist-cjs/commands/CreateEventActionCommand.js +1 -28
- package/dist-cjs/commands/CreateJobCommand.js +1 -28
- package/dist-cjs/commands/CreateRevisionCommand.js +1 -28
- package/dist-cjs/commands/DeleteAssetCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataSetCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventActionCommand.js +1 -28
- package/dist-cjs/commands/DeleteRevisionCommand.js +1 -28
- package/dist-cjs/commands/GetAssetCommand.js +1 -28
- package/dist-cjs/commands/GetDataSetCommand.js +1 -28
- package/dist-cjs/commands/GetEventActionCommand.js +1 -28
- package/dist-cjs/commands/GetJobCommand.js +1 -28
- package/dist-cjs/commands/GetRevisionCommand.js +1 -28
- package/dist-cjs/commands/ListDataSetRevisionsCommand.js +1 -28
- package/dist-cjs/commands/ListDataSetsCommand.js +1 -28
- package/dist-cjs/commands/ListEventActionsCommand.js +1 -28
- package/dist-cjs/commands/ListJobsCommand.js +1 -28
- package/dist-cjs/commands/ListRevisionAssetsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/RevokeRevisionCommand.js +1 -28
- package/dist-cjs/commands/SendApiAssetCommand.js +1 -28
- package/dist-cjs/commands/SendDataSetNotificationCommand.js +1 -28
- package/dist-cjs/commands/StartJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAssetCommand.js +1 -28
- package/dist-cjs/commands/UpdateDataSetCommand.js +1 -28
- package/dist-cjs/commands/UpdateEventActionCommand.js +1 -28
- package/dist-cjs/commands/UpdateRevisionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -33
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3283 -11
- package/dist-cjs/models/DataExchangeServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -237
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDataSetRevisionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDataSetsPaginator.js +1 -7
- package/dist-cjs/pagination/ListEventActionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListRevisionAssetsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -9
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2244
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,3284 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AssetType: () => AssetType,
|
|
26
|
+
CancelJobCommand: () => CancelJobCommand,
|
|
27
|
+
Code: () => Code,
|
|
28
|
+
ConflictException: () => ConflictException,
|
|
29
|
+
CreateDataSetCommand: () => CreateDataSetCommand,
|
|
30
|
+
CreateEventActionCommand: () => CreateEventActionCommand,
|
|
31
|
+
CreateJobCommand: () => CreateJobCommand,
|
|
32
|
+
CreateRevisionCommand: () => CreateRevisionCommand,
|
|
33
|
+
DataExchange: () => DataExchange,
|
|
34
|
+
DataExchangeClient: () => DataExchangeClient,
|
|
35
|
+
DataExchangeServiceException: () => DataExchangeServiceException,
|
|
36
|
+
DatabaseLFTagPolicyPermission: () => DatabaseLFTagPolicyPermission,
|
|
37
|
+
DeleteAssetCommand: () => DeleteAssetCommand,
|
|
38
|
+
DeleteDataSetCommand: () => DeleteDataSetCommand,
|
|
39
|
+
DeleteEventActionCommand: () => DeleteEventActionCommand,
|
|
40
|
+
DeleteRevisionCommand: () => DeleteRevisionCommand,
|
|
41
|
+
ExceptionCause: () => ExceptionCause,
|
|
42
|
+
GetAssetCommand: () => GetAssetCommand,
|
|
43
|
+
GetDataSetCommand: () => GetDataSetCommand,
|
|
44
|
+
GetEventActionCommand: () => GetEventActionCommand,
|
|
45
|
+
GetJobCommand: () => GetJobCommand,
|
|
46
|
+
GetRevisionCommand: () => GetRevisionCommand,
|
|
47
|
+
InternalServerException: () => InternalServerException,
|
|
48
|
+
JobErrorLimitName: () => JobErrorLimitName,
|
|
49
|
+
JobErrorResourceTypes: () => JobErrorResourceTypes,
|
|
50
|
+
LFPermission: () => LFPermission,
|
|
51
|
+
LFResourceType: () => LFResourceType,
|
|
52
|
+
LakeFormationDataPermissionType: () => LakeFormationDataPermissionType,
|
|
53
|
+
LimitName: () => LimitName,
|
|
54
|
+
ListDataSetRevisionsCommand: () => ListDataSetRevisionsCommand,
|
|
55
|
+
ListDataSetsCommand: () => ListDataSetsCommand,
|
|
56
|
+
ListEventActionsCommand: () => ListEventActionsCommand,
|
|
57
|
+
ListJobsCommand: () => ListJobsCommand,
|
|
58
|
+
ListRevisionAssetsCommand: () => ListRevisionAssetsCommand,
|
|
59
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
60
|
+
NotificationType: () => NotificationType,
|
|
61
|
+
Origin: () => Origin,
|
|
62
|
+
ProtocolType: () => ProtocolType,
|
|
63
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
64
|
+
ResourceType: () => ResourceType,
|
|
65
|
+
RevokeRevisionCommand: () => RevokeRevisionCommand,
|
|
66
|
+
SchemaChangeType: () => SchemaChangeType,
|
|
67
|
+
SendApiAssetCommand: () => SendApiAssetCommand,
|
|
68
|
+
SendDataSetNotificationCommand: () => SendDataSetNotificationCommand,
|
|
69
|
+
ServerSideEncryptionTypes: () => ServerSideEncryptionTypes,
|
|
70
|
+
ServiceLimitExceededException: () => ServiceLimitExceededException,
|
|
71
|
+
StartJobCommand: () => StartJobCommand,
|
|
72
|
+
State: () => State,
|
|
73
|
+
TableTagPolicyLFPermission: () => TableTagPolicyLFPermission,
|
|
74
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
75
|
+
ThrottlingException: () => ThrottlingException,
|
|
76
|
+
Type: () => Type,
|
|
77
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
78
|
+
UpdateAssetCommand: () => UpdateAssetCommand,
|
|
79
|
+
UpdateDataSetCommand: () => UpdateDataSetCommand,
|
|
80
|
+
UpdateEventActionCommand: () => UpdateEventActionCommand,
|
|
81
|
+
UpdateRevisionCommand: () => UpdateRevisionCommand,
|
|
82
|
+
ValidationException: () => ValidationException,
|
|
83
|
+
__Client: () => import_smithy_client.Client,
|
|
84
|
+
paginateListDataSetRevisions: () => paginateListDataSetRevisions,
|
|
85
|
+
paginateListDataSets: () => paginateListDataSets,
|
|
86
|
+
paginateListEventActions: () => paginateListEventActions,
|
|
87
|
+
paginateListJobs: () => paginateListJobs,
|
|
88
|
+
paginateListRevisionAssets: () => paginateListRevisionAssets
|
|
89
|
+
});
|
|
90
|
+
module.exports = __toCommonJS(src_exports);
|
|
91
|
+
|
|
92
|
+
// src/DataExchangeClient.ts
|
|
93
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
94
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
95
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
96
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
97
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
98
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
99
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
100
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
101
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
// src/endpoint/EndpointParameters.ts
|
|
105
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
106
|
+
return {
|
|
107
|
+
...options,
|
|
108
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
109
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
110
|
+
defaultSigningName: "dataexchange"
|
|
111
|
+
};
|
|
112
|
+
}, "resolveClientEndpointParameters");
|
|
113
|
+
var commonParams = {
|
|
114
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
115
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
116
|
+
Region: { type: "builtInParams", name: "region" },
|
|
117
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// src/DataExchangeClient.ts
|
|
121
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
122
|
+
|
|
123
|
+
// src/runtimeExtensions.ts
|
|
124
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
125
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
126
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
127
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
128
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
129
|
+
const extensionConfiguration = {
|
|
130
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
131
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
132
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
133
|
+
};
|
|
134
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
135
|
+
return {
|
|
136
|
+
...runtimeConfig,
|
|
137
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
138
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
139
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
140
|
+
};
|
|
141
|
+
}, "resolveRuntimeExtensions");
|
|
142
|
+
|
|
143
|
+
// src/DataExchangeClient.ts
|
|
144
|
+
var _DataExchangeClient = class _DataExchangeClient extends import_smithy_client.Client {
|
|
145
|
+
constructor(...[configuration]) {
|
|
146
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
147
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
148
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
149
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
150
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
151
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
152
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
153
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
154
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
155
|
+
super(_config_8);
|
|
156
|
+
this.config = _config_8;
|
|
157
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
158
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
159
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
160
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
161
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
162
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
163
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
167
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
168
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
169
|
+
*/
|
|
170
|
+
destroy() {
|
|
171
|
+
super.destroy();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
__name(_DataExchangeClient, "DataExchangeClient");
|
|
175
|
+
var DataExchangeClient = _DataExchangeClient;
|
|
176
|
+
|
|
177
|
+
// src/DataExchange.ts
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
// src/commands/CancelJobCommand.ts
|
|
181
|
+
|
|
182
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
183
|
+
|
|
184
|
+
var import_types = require("@smithy/types");
|
|
185
|
+
|
|
186
|
+
// src/protocols/Aws_restJson1.ts
|
|
187
|
+
var import_core = require("@smithy/core");
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
var import_uuid = require("uuid");
|
|
191
|
+
|
|
192
|
+
// src/models/DataExchangeServiceException.ts
|
|
193
|
+
|
|
194
|
+
var _DataExchangeServiceException = class _DataExchangeServiceException extends import_smithy_client.ServiceException {
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
constructor(options) {
|
|
199
|
+
super(options);
|
|
200
|
+
Object.setPrototypeOf(this, _DataExchangeServiceException.prototype);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
__name(_DataExchangeServiceException, "DataExchangeServiceException");
|
|
204
|
+
var DataExchangeServiceException = _DataExchangeServiceException;
|
|
205
|
+
|
|
206
|
+
// src/models/models_0.ts
|
|
207
|
+
var _AccessDeniedException = class _AccessDeniedException extends DataExchangeServiceException {
|
|
208
|
+
/**
|
|
209
|
+
* @internal
|
|
210
|
+
*/
|
|
211
|
+
constructor(opts) {
|
|
212
|
+
super({
|
|
213
|
+
name: "AccessDeniedException",
|
|
214
|
+
$fault: "client",
|
|
215
|
+
...opts
|
|
216
|
+
});
|
|
217
|
+
this.name = "AccessDeniedException";
|
|
218
|
+
this.$fault = "client";
|
|
219
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
220
|
+
this.Message = opts.Message;
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
224
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
225
|
+
var ServerSideEncryptionTypes = {
|
|
226
|
+
AES256: "AES256",
|
|
227
|
+
aws_kms: "aws:kms"
|
|
228
|
+
};
|
|
229
|
+
var ProtocolType = {
|
|
230
|
+
REST: "REST"
|
|
231
|
+
};
|
|
232
|
+
var LFResourceType = {
|
|
233
|
+
DATABASE: "DATABASE",
|
|
234
|
+
TABLE: "TABLE"
|
|
235
|
+
};
|
|
236
|
+
var LakeFormationDataPermissionType = {
|
|
237
|
+
LFTagPolicy: "LFTagPolicy"
|
|
238
|
+
};
|
|
239
|
+
var LFPermission = {
|
|
240
|
+
DESCRIBE: "DESCRIBE",
|
|
241
|
+
SELECT: "SELECT"
|
|
242
|
+
};
|
|
243
|
+
var AssetType = {
|
|
244
|
+
API_GATEWAY_API: "API_GATEWAY_API",
|
|
245
|
+
LAKE_FORMATION_DATA_PERMISSION: "LAKE_FORMATION_DATA_PERMISSION",
|
|
246
|
+
REDSHIFT_DATA_SHARE: "REDSHIFT_DATA_SHARE",
|
|
247
|
+
S3_DATA_ACCESS: "S3_DATA_ACCESS",
|
|
248
|
+
S3_SNAPSHOT: "S3_SNAPSHOT"
|
|
249
|
+
};
|
|
250
|
+
var ResourceType = {
|
|
251
|
+
ASSET: "ASSET",
|
|
252
|
+
DATA_SET: "DATA_SET",
|
|
253
|
+
EVENT_ACTION: "EVENT_ACTION",
|
|
254
|
+
JOB: "JOB",
|
|
255
|
+
REVISION: "REVISION"
|
|
256
|
+
};
|
|
257
|
+
var _ConflictException = class _ConflictException extends DataExchangeServiceException {
|
|
258
|
+
/**
|
|
259
|
+
* @internal
|
|
260
|
+
*/
|
|
261
|
+
constructor(opts) {
|
|
262
|
+
super({
|
|
263
|
+
name: "ConflictException",
|
|
264
|
+
$fault: "client",
|
|
265
|
+
...opts
|
|
266
|
+
});
|
|
267
|
+
this.name = "ConflictException";
|
|
268
|
+
this.$fault = "client";
|
|
269
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
270
|
+
this.Message = opts.Message;
|
|
271
|
+
this.ResourceId = opts.ResourceId;
|
|
272
|
+
this.ResourceType = opts.ResourceType;
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
__name(_ConflictException, "ConflictException");
|
|
276
|
+
var ConflictException = _ConflictException;
|
|
277
|
+
var _InternalServerException = class _InternalServerException extends DataExchangeServiceException {
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
281
|
+
constructor(opts) {
|
|
282
|
+
super({
|
|
283
|
+
name: "InternalServerException",
|
|
284
|
+
$fault: "server",
|
|
285
|
+
...opts
|
|
286
|
+
});
|
|
287
|
+
this.name = "InternalServerException";
|
|
288
|
+
this.$fault = "server";
|
|
289
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
290
|
+
this.Message = opts.Message;
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
__name(_InternalServerException, "InternalServerException");
|
|
294
|
+
var InternalServerException = _InternalServerException;
|
|
295
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends DataExchangeServiceException {
|
|
296
|
+
/**
|
|
297
|
+
* @internal
|
|
298
|
+
*/
|
|
299
|
+
constructor(opts) {
|
|
300
|
+
super({
|
|
301
|
+
name: "ResourceNotFoundException",
|
|
302
|
+
$fault: "client",
|
|
303
|
+
...opts
|
|
304
|
+
});
|
|
305
|
+
this.name = "ResourceNotFoundException";
|
|
306
|
+
this.$fault = "client";
|
|
307
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
308
|
+
this.Message = opts.Message;
|
|
309
|
+
this.ResourceId = opts.ResourceId;
|
|
310
|
+
this.ResourceType = opts.ResourceType;
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
314
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
315
|
+
var _ThrottlingException = class _ThrottlingException extends DataExchangeServiceException {
|
|
316
|
+
/**
|
|
317
|
+
* @internal
|
|
318
|
+
*/
|
|
319
|
+
constructor(opts) {
|
|
320
|
+
super({
|
|
321
|
+
name: "ThrottlingException",
|
|
322
|
+
$fault: "client",
|
|
323
|
+
...opts
|
|
324
|
+
});
|
|
325
|
+
this.name = "ThrottlingException";
|
|
326
|
+
this.$fault = "client";
|
|
327
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
328
|
+
this.Message = opts.Message;
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
332
|
+
var ThrottlingException = _ThrottlingException;
|
|
333
|
+
var ExceptionCause = {
|
|
334
|
+
InsufficientS3BucketPolicy: "InsufficientS3BucketPolicy",
|
|
335
|
+
S3AccessDenied: "S3AccessDenied"
|
|
336
|
+
};
|
|
337
|
+
var _ValidationException = class _ValidationException extends DataExchangeServiceException {
|
|
338
|
+
/**
|
|
339
|
+
* @internal
|
|
340
|
+
*/
|
|
341
|
+
constructor(opts) {
|
|
342
|
+
super({
|
|
343
|
+
name: "ValidationException",
|
|
344
|
+
$fault: "client",
|
|
345
|
+
...opts
|
|
346
|
+
});
|
|
347
|
+
this.name = "ValidationException";
|
|
348
|
+
this.$fault = "client";
|
|
349
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
350
|
+
this.Message = opts.Message;
|
|
351
|
+
this.ExceptionCause = opts.ExceptionCause;
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
__name(_ValidationException, "ValidationException");
|
|
355
|
+
var ValidationException = _ValidationException;
|
|
356
|
+
var Code = {
|
|
357
|
+
ACCESS_DENIED_EXCEPTION: "ACCESS_DENIED_EXCEPTION",
|
|
358
|
+
INTERNAL_SERVER_EXCEPTION: "INTERNAL_SERVER_EXCEPTION",
|
|
359
|
+
MALWARE_DETECTED: "MALWARE_DETECTED",
|
|
360
|
+
MALWARE_SCAN_ENCRYPTED_FILE: "MALWARE_SCAN_ENCRYPTED_FILE",
|
|
361
|
+
RESOURCE_NOT_FOUND_EXCEPTION: "RESOURCE_NOT_FOUND_EXCEPTION",
|
|
362
|
+
SERVICE_QUOTA_EXCEEDED_EXCEPTION: "SERVICE_QUOTA_EXCEEDED_EXCEPTION",
|
|
363
|
+
VALIDATION_EXCEPTION: "VALIDATION_EXCEPTION"
|
|
364
|
+
};
|
|
365
|
+
var Origin = {
|
|
366
|
+
ENTITLED: "ENTITLED",
|
|
367
|
+
OWNED: "OWNED"
|
|
368
|
+
};
|
|
369
|
+
var LimitName = {
|
|
370
|
+
AWS_Lake_Formation_data_permission_assets_per_revision: "AWS Lake Formation data permission assets per revision",
|
|
371
|
+
Amazon_API_Gateway_API_assets_per_revision: "Amazon API Gateway API assets per revision",
|
|
372
|
+
Amazon_Redshift_datashare_assets_per_import_job_from_Redshift: "Amazon Redshift datashare assets per import job from Redshift",
|
|
373
|
+
Amazon_Redshift_datashare_assets_per_revision: "Amazon Redshift datashare assets per revision",
|
|
374
|
+
Amazon_S3_data_access_assets_per_revision: "Amazon S3 data access assets per revision",
|
|
375
|
+
Asset_per_export_job_from_Amazon_S3: "Asset per export job from Amazon S3",
|
|
376
|
+
Asset_size_in_GB: "Asset size in GB",
|
|
377
|
+
Assets_per_import_job_from_Amazon_S3: "Assets per import job from Amazon S3",
|
|
378
|
+
Assets_per_revision: "Assets per revision",
|
|
379
|
+
Auto_export_event_actions_per_data_set: "Auto export event actions per data set",
|
|
380
|
+
Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets: "Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets",
|
|
381
|
+
Concurrent_in_progress_jobs_to_export_assets_to_Amazon_S3: "Concurrent in progress jobs to export assets to Amazon S3",
|
|
382
|
+
Concurrent_in_progress_jobs_to_export_assets_to_a_signed_URL: "Concurrent in progress jobs to export assets to a signed URL",
|
|
383
|
+
Concurrent_in_progress_jobs_to_export_revisions_to_Amazon_S3: "Concurrent in progress jobs to export revisions to Amazon S3",
|
|
384
|
+
Concurrent_in_progress_jobs_to_import_assets_from_Amazon_Redshift_datashares: "Concurrent in progress jobs to import assets from Amazon Redshift datashares",
|
|
385
|
+
Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3: "Concurrent in progress jobs to import assets from Amazon S3",
|
|
386
|
+
Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL: "Concurrent in progress jobs to import assets from a signed URL",
|
|
387
|
+
Concurrent_in_progress_jobs_to_import_assets_from_an_API_Gateway_API: "Concurrent in progress jobs to import assets from an API Gateway API",
|
|
388
|
+
Concurrent_in_progress_jobs_to_import_assets_from_an_AWS_Lake_Formation_tag_policy: "Concurrent in progress jobs to import assets from an AWS Lake Formation tag policy",
|
|
389
|
+
Data_sets_per_account: "Data sets per account",
|
|
390
|
+
Data_sets_per_product: "Data sets per product",
|
|
391
|
+
Event_actions_per_account: "Event actions per account",
|
|
392
|
+
Products_per_account: "Products per account",
|
|
393
|
+
Revisions_per_AWS_Lake_Formation_data_permission_data_set: "Revisions per AWS Lake Formation data permission data set",
|
|
394
|
+
Revisions_per_Amazon_API_Gateway_API_data_set: "Revisions per Amazon API Gateway API data set",
|
|
395
|
+
Revisions_per_Amazon_Redshift_datashare_data_set: "Revisions per Amazon Redshift datashare data set",
|
|
396
|
+
Revisions_per_Amazon_S3_data_access_data_set: "Revisions per Amazon S3 data access data set",
|
|
397
|
+
Revisions_per_data_set: "Revisions per data set"
|
|
398
|
+
};
|
|
399
|
+
var _ServiceLimitExceededException = class _ServiceLimitExceededException extends DataExchangeServiceException {
|
|
400
|
+
/**
|
|
401
|
+
* @internal
|
|
402
|
+
*/
|
|
403
|
+
constructor(opts) {
|
|
404
|
+
super({
|
|
405
|
+
name: "ServiceLimitExceededException",
|
|
406
|
+
$fault: "client",
|
|
407
|
+
...opts
|
|
408
|
+
});
|
|
409
|
+
this.name = "ServiceLimitExceededException";
|
|
410
|
+
this.$fault = "client";
|
|
411
|
+
Object.setPrototypeOf(this, _ServiceLimitExceededException.prototype);
|
|
412
|
+
this.LimitName = opts.LimitName;
|
|
413
|
+
this.LimitValue = opts.LimitValue;
|
|
414
|
+
this.Message = opts.Message;
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
__name(_ServiceLimitExceededException, "ServiceLimitExceededException");
|
|
418
|
+
var ServiceLimitExceededException = _ServiceLimitExceededException;
|
|
419
|
+
var DatabaseLFTagPolicyPermission = {
|
|
420
|
+
DESCRIBE: "DESCRIBE"
|
|
421
|
+
};
|
|
422
|
+
var TableTagPolicyLFPermission = {
|
|
423
|
+
DESCRIBE: "DESCRIBE",
|
|
424
|
+
SELECT: "SELECT"
|
|
425
|
+
};
|
|
426
|
+
var Type = {
|
|
427
|
+
CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET: "CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET",
|
|
428
|
+
EXPORT_ASSETS_TO_S3: "EXPORT_ASSETS_TO_S3",
|
|
429
|
+
EXPORT_ASSET_TO_SIGNED_URL: "EXPORT_ASSET_TO_SIGNED_URL",
|
|
430
|
+
EXPORT_REVISIONS_TO_S3: "EXPORT_REVISIONS_TO_S3",
|
|
431
|
+
IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY: "IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY",
|
|
432
|
+
IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES: "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES",
|
|
433
|
+
IMPORT_ASSETS_FROM_S3: "IMPORT_ASSETS_FROM_S3",
|
|
434
|
+
IMPORT_ASSET_FROM_API_GATEWAY_API: "IMPORT_ASSET_FROM_API_GATEWAY_API",
|
|
435
|
+
IMPORT_ASSET_FROM_SIGNED_URL: "IMPORT_ASSET_FROM_SIGNED_URL"
|
|
436
|
+
};
|
|
437
|
+
var JobErrorLimitName = {
|
|
438
|
+
AWS_Lake_Formation_data_permission_assets_per_revision: "AWS Lake Formation data permission assets per revision",
|
|
439
|
+
Amazon_Redshift_datashare_assets_per_revision: "Amazon Redshift datashare assets per revision",
|
|
440
|
+
Amazon_S3_data_access_assets_per_revision: "Amazon S3 data access assets per revision",
|
|
441
|
+
Asset_size_in_GB: "Asset size in GB",
|
|
442
|
+
Assets_per_revision: "Assets per revision"
|
|
443
|
+
};
|
|
444
|
+
var JobErrorResourceTypes = {
|
|
445
|
+
ASSET: "ASSET",
|
|
446
|
+
DATA_SET: "DATA_SET",
|
|
447
|
+
REVISION: "REVISION"
|
|
448
|
+
};
|
|
449
|
+
var State = {
|
|
450
|
+
CANCELLED: "CANCELLED",
|
|
451
|
+
COMPLETED: "COMPLETED",
|
|
452
|
+
ERROR: "ERROR",
|
|
453
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
454
|
+
TIMED_OUT: "TIMED_OUT",
|
|
455
|
+
WAITING: "WAITING"
|
|
456
|
+
};
|
|
457
|
+
var SchemaChangeType = {
|
|
458
|
+
ADD: "ADD",
|
|
459
|
+
MODIFY: "MODIFY",
|
|
460
|
+
REMOVE: "REMOVE"
|
|
461
|
+
};
|
|
462
|
+
var NotificationType = {
|
|
463
|
+
DATA_DELAY: "DATA_DELAY",
|
|
464
|
+
DATA_UPDATE: "DATA_UPDATE",
|
|
465
|
+
DEPRECATION: "DEPRECATION",
|
|
466
|
+
SCHEMA_CHANGE: "SCHEMA_CHANGE"
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
// src/protocols/Aws_restJson1.ts
|
|
470
|
+
var se_CancelJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
471
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
472
|
+
const headers = {};
|
|
473
|
+
b.bp("/v1/jobs/{JobId}");
|
|
474
|
+
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
475
|
+
let body;
|
|
476
|
+
b.m("DELETE").h(headers).b(body);
|
|
477
|
+
return b.build();
|
|
478
|
+
}, "se_CancelJobCommand");
|
|
479
|
+
var se_CreateDataSetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
480
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
481
|
+
const headers = {
|
|
482
|
+
"content-type": "application/json"
|
|
483
|
+
};
|
|
484
|
+
b.bp("/v1/data-sets");
|
|
485
|
+
let body;
|
|
486
|
+
body = JSON.stringify(
|
|
487
|
+
(0, import_smithy_client.take)(input, {
|
|
488
|
+
AssetType: [],
|
|
489
|
+
Description: [],
|
|
490
|
+
Name: [],
|
|
491
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
492
|
+
})
|
|
493
|
+
);
|
|
494
|
+
b.m("POST").h(headers).b(body);
|
|
495
|
+
return b.build();
|
|
496
|
+
}, "se_CreateDataSetCommand");
|
|
497
|
+
var se_CreateEventActionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
498
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
499
|
+
const headers = {
|
|
500
|
+
"content-type": "application/json"
|
|
501
|
+
};
|
|
502
|
+
b.bp("/v1/event-actions");
|
|
503
|
+
let body;
|
|
504
|
+
body = JSON.stringify(
|
|
505
|
+
(0, import_smithy_client.take)(input, {
|
|
506
|
+
Action: (_) => (0, import_smithy_client._json)(_),
|
|
507
|
+
Event: (_) => (0, import_smithy_client._json)(_)
|
|
508
|
+
})
|
|
509
|
+
);
|
|
510
|
+
b.m("POST").h(headers).b(body);
|
|
511
|
+
return b.build();
|
|
512
|
+
}, "se_CreateEventActionCommand");
|
|
513
|
+
var se_CreateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
514
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
515
|
+
const headers = {
|
|
516
|
+
"content-type": "application/json"
|
|
517
|
+
};
|
|
518
|
+
b.bp("/v1/jobs");
|
|
519
|
+
let body;
|
|
520
|
+
body = JSON.stringify(
|
|
521
|
+
(0, import_smithy_client.take)(input, {
|
|
522
|
+
Details: (_) => (0, import_smithy_client._json)(_),
|
|
523
|
+
Type: []
|
|
524
|
+
})
|
|
525
|
+
);
|
|
526
|
+
b.m("POST").h(headers).b(body);
|
|
527
|
+
return b.build();
|
|
528
|
+
}, "se_CreateJobCommand");
|
|
529
|
+
var se_CreateRevisionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
530
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
531
|
+
const headers = {
|
|
532
|
+
"content-type": "application/json"
|
|
533
|
+
};
|
|
534
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions");
|
|
535
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
536
|
+
let body;
|
|
537
|
+
body = JSON.stringify(
|
|
538
|
+
(0, import_smithy_client.take)(input, {
|
|
539
|
+
Comment: [],
|
|
540
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
541
|
+
})
|
|
542
|
+
);
|
|
543
|
+
b.m("POST").h(headers).b(body);
|
|
544
|
+
return b.build();
|
|
545
|
+
}, "se_CreateRevisionCommand");
|
|
546
|
+
var se_DeleteAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
547
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
548
|
+
const headers = {};
|
|
549
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}");
|
|
550
|
+
b.p("AssetId", () => input.AssetId, "{AssetId}", false);
|
|
551
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
552
|
+
b.p("RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
553
|
+
let body;
|
|
554
|
+
b.m("DELETE").h(headers).b(body);
|
|
555
|
+
return b.build();
|
|
556
|
+
}, "se_DeleteAssetCommand");
|
|
557
|
+
var se_DeleteDataSetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
558
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
559
|
+
const headers = {};
|
|
560
|
+
b.bp("/v1/data-sets/{DataSetId}");
|
|
561
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
562
|
+
let body;
|
|
563
|
+
b.m("DELETE").h(headers).b(body);
|
|
564
|
+
return b.build();
|
|
565
|
+
}, "se_DeleteDataSetCommand");
|
|
566
|
+
var se_DeleteEventActionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
567
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
568
|
+
const headers = {};
|
|
569
|
+
b.bp("/v1/event-actions/{EventActionId}");
|
|
570
|
+
b.p("EventActionId", () => input.EventActionId, "{EventActionId}", false);
|
|
571
|
+
let body;
|
|
572
|
+
b.m("DELETE").h(headers).b(body);
|
|
573
|
+
return b.build();
|
|
574
|
+
}, "se_DeleteEventActionCommand");
|
|
575
|
+
var se_DeleteRevisionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
576
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
577
|
+
const headers = {};
|
|
578
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}");
|
|
579
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
580
|
+
b.p("RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
581
|
+
let body;
|
|
582
|
+
b.m("DELETE").h(headers).b(body);
|
|
583
|
+
return b.build();
|
|
584
|
+
}, "se_DeleteRevisionCommand");
|
|
585
|
+
var se_GetAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
586
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
587
|
+
const headers = {};
|
|
588
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}");
|
|
589
|
+
b.p("AssetId", () => input.AssetId, "{AssetId}", false);
|
|
590
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
591
|
+
b.p("RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
592
|
+
let body;
|
|
593
|
+
b.m("GET").h(headers).b(body);
|
|
594
|
+
return b.build();
|
|
595
|
+
}, "se_GetAssetCommand");
|
|
596
|
+
var se_GetDataSetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
597
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
598
|
+
const headers = {};
|
|
599
|
+
b.bp("/v1/data-sets/{DataSetId}");
|
|
600
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
601
|
+
let body;
|
|
602
|
+
b.m("GET").h(headers).b(body);
|
|
603
|
+
return b.build();
|
|
604
|
+
}, "se_GetDataSetCommand");
|
|
605
|
+
var se_GetEventActionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
606
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
607
|
+
const headers = {};
|
|
608
|
+
b.bp("/v1/event-actions/{EventActionId}");
|
|
609
|
+
b.p("EventActionId", () => input.EventActionId, "{EventActionId}", false);
|
|
610
|
+
let body;
|
|
611
|
+
b.m("GET").h(headers).b(body);
|
|
612
|
+
return b.build();
|
|
613
|
+
}, "se_GetEventActionCommand");
|
|
614
|
+
var se_GetJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
615
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
616
|
+
const headers = {};
|
|
617
|
+
b.bp("/v1/jobs/{JobId}");
|
|
618
|
+
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
619
|
+
let body;
|
|
620
|
+
b.m("GET").h(headers).b(body);
|
|
621
|
+
return b.build();
|
|
622
|
+
}, "se_GetJobCommand");
|
|
623
|
+
var se_GetRevisionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
624
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
625
|
+
const headers = {};
|
|
626
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}");
|
|
627
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
628
|
+
b.p("RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
629
|
+
let body;
|
|
630
|
+
b.m("GET").h(headers).b(body);
|
|
631
|
+
return b.build();
|
|
632
|
+
}, "se_GetRevisionCommand");
|
|
633
|
+
var se_ListDataSetRevisionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
634
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
635
|
+
const headers = {};
|
|
636
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions");
|
|
637
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
638
|
+
const query = (0, import_smithy_client.map)({
|
|
639
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
640
|
+
[_nT]: [, input[_NT]]
|
|
641
|
+
});
|
|
642
|
+
let body;
|
|
643
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
644
|
+
return b.build();
|
|
645
|
+
}, "se_ListDataSetRevisionsCommand");
|
|
646
|
+
var se_ListDataSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
647
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
648
|
+
const headers = {};
|
|
649
|
+
b.bp("/v1/data-sets");
|
|
650
|
+
const query = (0, import_smithy_client.map)({
|
|
651
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
652
|
+
[_nT]: [, input[_NT]],
|
|
653
|
+
[_o]: [, input[_O]]
|
|
654
|
+
});
|
|
655
|
+
let body;
|
|
656
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
657
|
+
return b.build();
|
|
658
|
+
}, "se_ListDataSetsCommand");
|
|
659
|
+
var se_ListEventActionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
660
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
661
|
+
const headers = {};
|
|
662
|
+
b.bp("/v1/event-actions");
|
|
663
|
+
const query = (0, import_smithy_client.map)({
|
|
664
|
+
[_eSI]: [, input[_ESI]],
|
|
665
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
666
|
+
[_nT]: [, input[_NT]]
|
|
667
|
+
});
|
|
668
|
+
let body;
|
|
669
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
670
|
+
return b.build();
|
|
671
|
+
}, "se_ListEventActionsCommand");
|
|
672
|
+
var se_ListJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
673
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
674
|
+
const headers = {};
|
|
675
|
+
b.bp("/v1/jobs");
|
|
676
|
+
const query = (0, import_smithy_client.map)({
|
|
677
|
+
[_dSI]: [, input[_DSI]],
|
|
678
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
679
|
+
[_nT]: [, input[_NT]],
|
|
680
|
+
[_rI]: [, input[_RI]]
|
|
681
|
+
});
|
|
682
|
+
let body;
|
|
683
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
684
|
+
return b.build();
|
|
685
|
+
}, "se_ListJobsCommand");
|
|
686
|
+
var se_ListRevisionAssetsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
687
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
688
|
+
const headers = {};
|
|
689
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets");
|
|
690
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
691
|
+
b.p("RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
692
|
+
const query = (0, import_smithy_client.map)({
|
|
693
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
694
|
+
[_nT]: [, input[_NT]]
|
|
695
|
+
});
|
|
696
|
+
let body;
|
|
697
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
698
|
+
return b.build();
|
|
699
|
+
}, "se_ListRevisionAssetsCommand");
|
|
700
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
701
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
702
|
+
const headers = {};
|
|
703
|
+
b.bp("/tags/{ResourceArn}");
|
|
704
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
705
|
+
let body;
|
|
706
|
+
b.m("GET").h(headers).b(body);
|
|
707
|
+
return b.build();
|
|
708
|
+
}, "se_ListTagsForResourceCommand");
|
|
709
|
+
var se_RevokeRevisionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
710
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
711
|
+
const headers = {
|
|
712
|
+
"content-type": "application/json"
|
|
713
|
+
};
|
|
714
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/revoke");
|
|
715
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
716
|
+
b.p("RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
717
|
+
let body;
|
|
718
|
+
body = JSON.stringify(
|
|
719
|
+
(0, import_smithy_client.take)(input, {
|
|
720
|
+
RevocationComment: []
|
|
721
|
+
})
|
|
722
|
+
);
|
|
723
|
+
b.m("POST").h(headers).b(body);
|
|
724
|
+
return b.build();
|
|
725
|
+
}, "se_RevokeRevisionCommand");
|
|
726
|
+
var se_SendApiAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
727
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
728
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
729
|
+
"content-type": "text/plain",
|
|
730
|
+
[_xadai]: input[_AI],
|
|
731
|
+
[_xaddsi]: input[_DSI],
|
|
732
|
+
[_xadhm]: input[_M],
|
|
733
|
+
[_xadp]: input[_P],
|
|
734
|
+
[_xadri]: input[_RI],
|
|
735
|
+
...input.RequestHeaders !== void 0 && Object.keys(input.RequestHeaders).reduce((acc, suffix) => {
|
|
736
|
+
acc[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`] = input.RequestHeaders[suffix];
|
|
737
|
+
return acc;
|
|
738
|
+
}, {})
|
|
739
|
+
});
|
|
740
|
+
b.bp("/v1");
|
|
741
|
+
const query = (0, import_smithy_client.map)({
|
|
742
|
+
...(0, import_smithy_client.convertMap)(input.QueryStringParameters)
|
|
743
|
+
});
|
|
744
|
+
let body;
|
|
745
|
+
if (input.Body !== void 0) {
|
|
746
|
+
body = input.Body;
|
|
747
|
+
}
|
|
748
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
749
|
+
if (context.disableHostPrefix !== true) {
|
|
750
|
+
resolvedHostname = "api-fulfill." + resolvedHostname;
|
|
751
|
+
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
752
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
b.hn(resolvedHostname);
|
|
756
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
757
|
+
return b.build();
|
|
758
|
+
}, "se_SendApiAssetCommand");
|
|
759
|
+
var se_SendDataSetNotificationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
760
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
761
|
+
const headers = {
|
|
762
|
+
"content-type": "application/json"
|
|
763
|
+
};
|
|
764
|
+
b.bp("/v1/data-sets/{DataSetId}/notification");
|
|
765
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
766
|
+
let body;
|
|
767
|
+
body = JSON.stringify(
|
|
768
|
+
(0, import_smithy_client.take)(input, {
|
|
769
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
770
|
+
Comment: [],
|
|
771
|
+
Details: (_) => se_NotificationDetails(_, context),
|
|
772
|
+
Scope: (_) => (0, import_smithy_client._json)(_),
|
|
773
|
+
Type: []
|
|
774
|
+
})
|
|
775
|
+
);
|
|
776
|
+
b.m("POST").h(headers).b(body);
|
|
777
|
+
return b.build();
|
|
778
|
+
}, "se_SendDataSetNotificationCommand");
|
|
779
|
+
var se_StartJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
780
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
781
|
+
const headers = {};
|
|
782
|
+
b.bp("/v1/jobs/{JobId}");
|
|
783
|
+
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
784
|
+
let body;
|
|
785
|
+
b.m("PATCH").h(headers).b(body);
|
|
786
|
+
return b.build();
|
|
787
|
+
}, "se_StartJobCommand");
|
|
788
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
789
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
790
|
+
const headers = {
|
|
791
|
+
"content-type": "application/json"
|
|
792
|
+
};
|
|
793
|
+
b.bp("/tags/{ResourceArn}");
|
|
794
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
795
|
+
let body;
|
|
796
|
+
body = JSON.stringify(
|
|
797
|
+
(0, import_smithy_client.take)(input, {
|
|
798
|
+
tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
|
|
799
|
+
})
|
|
800
|
+
);
|
|
801
|
+
b.m("POST").h(headers).b(body);
|
|
802
|
+
return b.build();
|
|
803
|
+
}, "se_TagResourceCommand");
|
|
804
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
805
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
806
|
+
const headers = {};
|
|
807
|
+
b.bp("/tags/{ResourceArn}");
|
|
808
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
809
|
+
const query = (0, import_smithy_client.map)({
|
|
810
|
+
[_tK]: [
|
|
811
|
+
(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
812
|
+
() => (input[_TK] || []).map((_entry) => _entry)
|
|
813
|
+
]
|
|
814
|
+
});
|
|
815
|
+
let body;
|
|
816
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
817
|
+
return b.build();
|
|
818
|
+
}, "se_UntagResourceCommand");
|
|
819
|
+
var se_UpdateAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
820
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
821
|
+
const headers = {
|
|
822
|
+
"content-type": "application/json"
|
|
823
|
+
};
|
|
824
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}");
|
|
825
|
+
b.p("AssetId", () => input.AssetId, "{AssetId}", false);
|
|
826
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
827
|
+
b.p("RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
828
|
+
let body;
|
|
829
|
+
body = JSON.stringify(
|
|
830
|
+
(0, import_smithy_client.take)(input, {
|
|
831
|
+
Name: []
|
|
832
|
+
})
|
|
833
|
+
);
|
|
834
|
+
b.m("PATCH").h(headers).b(body);
|
|
835
|
+
return b.build();
|
|
836
|
+
}, "se_UpdateAssetCommand");
|
|
837
|
+
var se_UpdateDataSetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
838
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
839
|
+
const headers = {
|
|
840
|
+
"content-type": "application/json"
|
|
841
|
+
};
|
|
842
|
+
b.bp("/v1/data-sets/{DataSetId}");
|
|
843
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
844
|
+
let body;
|
|
845
|
+
body = JSON.stringify(
|
|
846
|
+
(0, import_smithy_client.take)(input, {
|
|
847
|
+
Description: [],
|
|
848
|
+
Name: []
|
|
849
|
+
})
|
|
850
|
+
);
|
|
851
|
+
b.m("PATCH").h(headers).b(body);
|
|
852
|
+
return b.build();
|
|
853
|
+
}, "se_UpdateDataSetCommand");
|
|
854
|
+
var se_UpdateEventActionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
855
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
856
|
+
const headers = {
|
|
857
|
+
"content-type": "application/json"
|
|
858
|
+
};
|
|
859
|
+
b.bp("/v1/event-actions/{EventActionId}");
|
|
860
|
+
b.p("EventActionId", () => input.EventActionId, "{EventActionId}", false);
|
|
861
|
+
let body;
|
|
862
|
+
body = JSON.stringify(
|
|
863
|
+
(0, import_smithy_client.take)(input, {
|
|
864
|
+
Action: (_) => (0, import_smithy_client._json)(_)
|
|
865
|
+
})
|
|
866
|
+
);
|
|
867
|
+
b.m("PATCH").h(headers).b(body);
|
|
868
|
+
return b.build();
|
|
869
|
+
}, "se_UpdateEventActionCommand");
|
|
870
|
+
var se_UpdateRevisionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
871
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
872
|
+
const headers = {
|
|
873
|
+
"content-type": "application/json"
|
|
874
|
+
};
|
|
875
|
+
b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}");
|
|
876
|
+
b.p("DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
877
|
+
b.p("RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
878
|
+
let body;
|
|
879
|
+
body = JSON.stringify(
|
|
880
|
+
(0, import_smithy_client.take)(input, {
|
|
881
|
+
Comment: [],
|
|
882
|
+
Finalized: []
|
|
883
|
+
})
|
|
884
|
+
);
|
|
885
|
+
b.m("PATCH").h(headers).b(body);
|
|
886
|
+
return b.build();
|
|
887
|
+
}, "se_UpdateRevisionCommand");
|
|
888
|
+
var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
889
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
890
|
+
return de_CancelJobCommandError(output, context);
|
|
891
|
+
}
|
|
892
|
+
const contents = (0, import_smithy_client.map)({
|
|
893
|
+
$metadata: deserializeMetadata(output)
|
|
894
|
+
});
|
|
895
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
896
|
+
return contents;
|
|
897
|
+
}, "de_CancelJobCommand");
|
|
898
|
+
var de_CancelJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
899
|
+
const parsedOutput = {
|
|
900
|
+
...output,
|
|
901
|
+
body: await parseErrorBody(output.body, context)
|
|
902
|
+
};
|
|
903
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
|
+
switch (errorCode) {
|
|
905
|
+
case "ConflictException":
|
|
906
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
907
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
908
|
+
case "InternalServerException":
|
|
909
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
910
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
911
|
+
case "ResourceNotFoundException":
|
|
912
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
913
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
914
|
+
case "ThrottlingException":
|
|
915
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
916
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
917
|
+
case "ValidationException":
|
|
918
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
919
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
920
|
+
default:
|
|
921
|
+
const parsedBody = parsedOutput.body;
|
|
922
|
+
return throwDefaultError({
|
|
923
|
+
output,
|
|
924
|
+
parsedBody,
|
|
925
|
+
errorCode
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
}, "de_CancelJobCommandError");
|
|
929
|
+
var de_CreateDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
930
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
931
|
+
return de_CreateDataSetCommandError(output, context);
|
|
932
|
+
}
|
|
933
|
+
const contents = (0, import_smithy_client.map)({
|
|
934
|
+
$metadata: deserializeMetadata(output)
|
|
935
|
+
});
|
|
936
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
937
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
938
|
+
Arn: import_smithy_client.expectString,
|
|
939
|
+
AssetType: import_smithy_client.expectString,
|
|
940
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
941
|
+
Description: import_smithy_client.expectString,
|
|
942
|
+
Id: import_smithy_client.expectString,
|
|
943
|
+
Name: import_smithy_client.expectString,
|
|
944
|
+
Origin: import_smithy_client.expectString,
|
|
945
|
+
OriginDetails: import_smithy_client._json,
|
|
946
|
+
SourceId: import_smithy_client.expectString,
|
|
947
|
+
Tags: import_smithy_client._json,
|
|
948
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
949
|
+
});
|
|
950
|
+
Object.assign(contents, doc);
|
|
951
|
+
return contents;
|
|
952
|
+
}, "de_CreateDataSetCommand");
|
|
953
|
+
var de_CreateDataSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
954
|
+
const parsedOutput = {
|
|
955
|
+
...output,
|
|
956
|
+
body: await parseErrorBody(output.body, context)
|
|
957
|
+
};
|
|
958
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
+
switch (errorCode) {
|
|
960
|
+
case "AccessDeniedException":
|
|
961
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
962
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
963
|
+
case "InternalServerException":
|
|
964
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
965
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
966
|
+
case "ServiceLimitExceededException":
|
|
967
|
+
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
968
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
969
|
+
case "ThrottlingException":
|
|
970
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
971
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
972
|
+
case "ValidationException":
|
|
973
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
974
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
975
|
+
default:
|
|
976
|
+
const parsedBody = parsedOutput.body;
|
|
977
|
+
return throwDefaultError({
|
|
978
|
+
output,
|
|
979
|
+
parsedBody,
|
|
980
|
+
errorCode
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
}, "de_CreateDataSetCommandError");
|
|
984
|
+
var de_CreateEventActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
985
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
986
|
+
return de_CreateEventActionCommandError(output, context);
|
|
987
|
+
}
|
|
988
|
+
const contents = (0, import_smithy_client.map)({
|
|
989
|
+
$metadata: deserializeMetadata(output)
|
|
990
|
+
});
|
|
991
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
992
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
993
|
+
Action: import_smithy_client._json,
|
|
994
|
+
Arn: import_smithy_client.expectString,
|
|
995
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
996
|
+
Event: import_smithy_client._json,
|
|
997
|
+
Id: import_smithy_client.expectString,
|
|
998
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
999
|
+
});
|
|
1000
|
+
Object.assign(contents, doc);
|
|
1001
|
+
return contents;
|
|
1002
|
+
}, "de_CreateEventActionCommand");
|
|
1003
|
+
var de_CreateEventActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
|
+
const parsedOutput = {
|
|
1005
|
+
...output,
|
|
1006
|
+
body: await parseErrorBody(output.body, context)
|
|
1007
|
+
};
|
|
1008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
+
switch (errorCode) {
|
|
1010
|
+
case "AccessDeniedException":
|
|
1011
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1012
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
+
case "InternalServerException":
|
|
1014
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1015
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1016
|
+
case "ServiceLimitExceededException":
|
|
1017
|
+
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
1018
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
1019
|
+
case "ThrottlingException":
|
|
1020
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1021
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1022
|
+
case "ValidationException":
|
|
1023
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1024
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
+
default:
|
|
1026
|
+
const parsedBody = parsedOutput.body;
|
|
1027
|
+
return throwDefaultError({
|
|
1028
|
+
output,
|
|
1029
|
+
parsedBody,
|
|
1030
|
+
errorCode
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
}, "de_CreateEventActionCommandError");
|
|
1034
|
+
var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1035
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1036
|
+
return de_CreateJobCommandError(output, context);
|
|
1037
|
+
}
|
|
1038
|
+
const contents = (0, import_smithy_client.map)({
|
|
1039
|
+
$metadata: deserializeMetadata(output)
|
|
1040
|
+
});
|
|
1041
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1042
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1043
|
+
Arn: import_smithy_client.expectString,
|
|
1044
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1045
|
+
Details: (_) => de_ResponseDetails(_, context),
|
|
1046
|
+
Errors: (_) => de_ListOfJobError(_, context),
|
|
1047
|
+
Id: import_smithy_client.expectString,
|
|
1048
|
+
State: import_smithy_client.expectString,
|
|
1049
|
+
Type: import_smithy_client.expectString,
|
|
1050
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1051
|
+
});
|
|
1052
|
+
Object.assign(contents, doc);
|
|
1053
|
+
return contents;
|
|
1054
|
+
}, "de_CreateJobCommand");
|
|
1055
|
+
var de_CreateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1056
|
+
const parsedOutput = {
|
|
1057
|
+
...output,
|
|
1058
|
+
body: await parseErrorBody(output.body, context)
|
|
1059
|
+
};
|
|
1060
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
+
switch (errorCode) {
|
|
1062
|
+
case "AccessDeniedException":
|
|
1063
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1064
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1065
|
+
case "ConflictException":
|
|
1066
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
1067
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1068
|
+
case "InternalServerException":
|
|
1069
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1070
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1071
|
+
case "ResourceNotFoundException":
|
|
1072
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1073
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1074
|
+
case "ThrottlingException":
|
|
1075
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1076
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1077
|
+
case "ValidationException":
|
|
1078
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1079
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1080
|
+
default:
|
|
1081
|
+
const parsedBody = parsedOutput.body;
|
|
1082
|
+
return throwDefaultError({
|
|
1083
|
+
output,
|
|
1084
|
+
parsedBody,
|
|
1085
|
+
errorCode
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
}, "de_CreateJobCommandError");
|
|
1089
|
+
var de_CreateRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1090
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1091
|
+
return de_CreateRevisionCommandError(output, context);
|
|
1092
|
+
}
|
|
1093
|
+
const contents = (0, import_smithy_client.map)({
|
|
1094
|
+
$metadata: deserializeMetadata(output)
|
|
1095
|
+
});
|
|
1096
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1097
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1098
|
+
Arn: import_smithy_client.expectString,
|
|
1099
|
+
Comment: import_smithy_client.expectString,
|
|
1100
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1101
|
+
DataSetId: import_smithy_client.expectString,
|
|
1102
|
+
Finalized: import_smithy_client.expectBoolean,
|
|
1103
|
+
Id: import_smithy_client.expectString,
|
|
1104
|
+
RevocationComment: import_smithy_client.expectString,
|
|
1105
|
+
Revoked: import_smithy_client.expectBoolean,
|
|
1106
|
+
RevokedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1107
|
+
SourceId: import_smithy_client.expectString,
|
|
1108
|
+
Tags: import_smithy_client._json,
|
|
1109
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1110
|
+
});
|
|
1111
|
+
Object.assign(contents, doc);
|
|
1112
|
+
return contents;
|
|
1113
|
+
}, "de_CreateRevisionCommand");
|
|
1114
|
+
var de_CreateRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1115
|
+
const parsedOutput = {
|
|
1116
|
+
...output,
|
|
1117
|
+
body: await parseErrorBody(output.body, context)
|
|
1118
|
+
};
|
|
1119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
|
+
switch (errorCode) {
|
|
1121
|
+
case "AccessDeniedException":
|
|
1122
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1123
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "InternalServerException":
|
|
1125
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1126
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "ResourceNotFoundException":
|
|
1128
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1129
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "ThrottlingException":
|
|
1131
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1132
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1133
|
+
case "ValidationException":
|
|
1134
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1135
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1136
|
+
default:
|
|
1137
|
+
const parsedBody = parsedOutput.body;
|
|
1138
|
+
return throwDefaultError({
|
|
1139
|
+
output,
|
|
1140
|
+
parsedBody,
|
|
1141
|
+
errorCode
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
}, "de_CreateRevisionCommandError");
|
|
1145
|
+
var de_DeleteAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1146
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1147
|
+
return de_DeleteAssetCommandError(output, context);
|
|
1148
|
+
}
|
|
1149
|
+
const contents = (0, import_smithy_client.map)({
|
|
1150
|
+
$metadata: deserializeMetadata(output)
|
|
1151
|
+
});
|
|
1152
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1153
|
+
return contents;
|
|
1154
|
+
}, "de_DeleteAssetCommand");
|
|
1155
|
+
var de_DeleteAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1156
|
+
const parsedOutput = {
|
|
1157
|
+
...output,
|
|
1158
|
+
body: await parseErrorBody(output.body, context)
|
|
1159
|
+
};
|
|
1160
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
+
switch (errorCode) {
|
|
1162
|
+
case "AccessDeniedException":
|
|
1163
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1164
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1165
|
+
case "ConflictException":
|
|
1166
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
1167
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1168
|
+
case "InternalServerException":
|
|
1169
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1170
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1171
|
+
case "ResourceNotFoundException":
|
|
1172
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1173
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1174
|
+
case "ThrottlingException":
|
|
1175
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1176
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1177
|
+
case "ValidationException":
|
|
1178
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1179
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1180
|
+
default:
|
|
1181
|
+
const parsedBody = parsedOutput.body;
|
|
1182
|
+
return throwDefaultError({
|
|
1183
|
+
output,
|
|
1184
|
+
parsedBody,
|
|
1185
|
+
errorCode
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
}, "de_DeleteAssetCommandError");
|
|
1189
|
+
var de_DeleteDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1190
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1191
|
+
return de_DeleteDataSetCommandError(output, context);
|
|
1192
|
+
}
|
|
1193
|
+
const contents = (0, import_smithy_client.map)({
|
|
1194
|
+
$metadata: deserializeMetadata(output)
|
|
1195
|
+
});
|
|
1196
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1197
|
+
return contents;
|
|
1198
|
+
}, "de_DeleteDataSetCommand");
|
|
1199
|
+
var de_DeleteDataSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1200
|
+
const parsedOutput = {
|
|
1201
|
+
...output,
|
|
1202
|
+
body: await parseErrorBody(output.body, context)
|
|
1203
|
+
};
|
|
1204
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1205
|
+
switch (errorCode) {
|
|
1206
|
+
case "AccessDeniedException":
|
|
1207
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1208
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1209
|
+
case "ConflictException":
|
|
1210
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
1211
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1212
|
+
case "InternalServerException":
|
|
1213
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1214
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1215
|
+
case "ResourceNotFoundException":
|
|
1216
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1217
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1218
|
+
case "ThrottlingException":
|
|
1219
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1220
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1221
|
+
case "ValidationException":
|
|
1222
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1223
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1224
|
+
default:
|
|
1225
|
+
const parsedBody = parsedOutput.body;
|
|
1226
|
+
return throwDefaultError({
|
|
1227
|
+
output,
|
|
1228
|
+
parsedBody,
|
|
1229
|
+
errorCode
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
}, "de_DeleteDataSetCommandError");
|
|
1233
|
+
var de_DeleteEventActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1234
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1235
|
+
return de_DeleteEventActionCommandError(output, context);
|
|
1236
|
+
}
|
|
1237
|
+
const contents = (0, import_smithy_client.map)({
|
|
1238
|
+
$metadata: deserializeMetadata(output)
|
|
1239
|
+
});
|
|
1240
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1241
|
+
return contents;
|
|
1242
|
+
}, "de_DeleteEventActionCommand");
|
|
1243
|
+
var de_DeleteEventActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1244
|
+
const parsedOutput = {
|
|
1245
|
+
...output,
|
|
1246
|
+
body: await parseErrorBody(output.body, context)
|
|
1247
|
+
};
|
|
1248
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
+
switch (errorCode) {
|
|
1250
|
+
case "InternalServerException":
|
|
1251
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1252
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1253
|
+
case "ResourceNotFoundException":
|
|
1254
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1255
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
+
case "ThrottlingException":
|
|
1257
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1258
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1259
|
+
case "ValidationException":
|
|
1260
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1261
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1262
|
+
default:
|
|
1263
|
+
const parsedBody = parsedOutput.body;
|
|
1264
|
+
return throwDefaultError({
|
|
1265
|
+
output,
|
|
1266
|
+
parsedBody,
|
|
1267
|
+
errorCode
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
}, "de_DeleteEventActionCommandError");
|
|
1271
|
+
var de_DeleteRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1272
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1273
|
+
return de_DeleteRevisionCommandError(output, context);
|
|
1274
|
+
}
|
|
1275
|
+
const contents = (0, import_smithy_client.map)({
|
|
1276
|
+
$metadata: deserializeMetadata(output)
|
|
1277
|
+
});
|
|
1278
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1279
|
+
return contents;
|
|
1280
|
+
}, "de_DeleteRevisionCommand");
|
|
1281
|
+
var de_DeleteRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1282
|
+
const parsedOutput = {
|
|
1283
|
+
...output,
|
|
1284
|
+
body: await parseErrorBody(output.body, context)
|
|
1285
|
+
};
|
|
1286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
+
switch (errorCode) {
|
|
1288
|
+
case "AccessDeniedException":
|
|
1289
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1290
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1291
|
+
case "ConflictException":
|
|
1292
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
1293
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1294
|
+
case "InternalServerException":
|
|
1295
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1296
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1297
|
+
case "ResourceNotFoundException":
|
|
1298
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1299
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1300
|
+
case "ThrottlingException":
|
|
1301
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1302
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1303
|
+
case "ValidationException":
|
|
1304
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1305
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1306
|
+
default:
|
|
1307
|
+
const parsedBody = parsedOutput.body;
|
|
1308
|
+
return throwDefaultError({
|
|
1309
|
+
output,
|
|
1310
|
+
parsedBody,
|
|
1311
|
+
errorCode
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
}, "de_DeleteRevisionCommandError");
|
|
1315
|
+
var de_GetAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1316
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1317
|
+
return de_GetAssetCommandError(output, context);
|
|
1318
|
+
}
|
|
1319
|
+
const contents = (0, import_smithy_client.map)({
|
|
1320
|
+
$metadata: deserializeMetadata(output)
|
|
1321
|
+
});
|
|
1322
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1323
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1324
|
+
Arn: import_smithy_client.expectString,
|
|
1325
|
+
AssetDetails: (_) => de_AssetDetails(_, context),
|
|
1326
|
+
AssetType: import_smithy_client.expectString,
|
|
1327
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1328
|
+
DataSetId: import_smithy_client.expectString,
|
|
1329
|
+
Id: import_smithy_client.expectString,
|
|
1330
|
+
Name: import_smithy_client.expectString,
|
|
1331
|
+
RevisionId: import_smithy_client.expectString,
|
|
1332
|
+
SourceId: import_smithy_client.expectString,
|
|
1333
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1334
|
+
});
|
|
1335
|
+
Object.assign(contents, doc);
|
|
1336
|
+
return contents;
|
|
1337
|
+
}, "de_GetAssetCommand");
|
|
1338
|
+
var de_GetAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1339
|
+
const parsedOutput = {
|
|
1340
|
+
...output,
|
|
1341
|
+
body: await parseErrorBody(output.body, context)
|
|
1342
|
+
};
|
|
1343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
+
switch (errorCode) {
|
|
1345
|
+
case "InternalServerException":
|
|
1346
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1347
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1348
|
+
case "ResourceNotFoundException":
|
|
1349
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1350
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1351
|
+
case "ThrottlingException":
|
|
1352
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1353
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1354
|
+
case "ValidationException":
|
|
1355
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1356
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1357
|
+
default:
|
|
1358
|
+
const parsedBody = parsedOutput.body;
|
|
1359
|
+
return throwDefaultError({
|
|
1360
|
+
output,
|
|
1361
|
+
parsedBody,
|
|
1362
|
+
errorCode
|
|
1363
|
+
});
|
|
1364
|
+
}
|
|
1365
|
+
}, "de_GetAssetCommandError");
|
|
1366
|
+
var de_GetDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1367
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1368
|
+
return de_GetDataSetCommandError(output, context);
|
|
1369
|
+
}
|
|
1370
|
+
const contents = (0, import_smithy_client.map)({
|
|
1371
|
+
$metadata: deserializeMetadata(output)
|
|
1372
|
+
});
|
|
1373
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1374
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1375
|
+
Arn: import_smithy_client.expectString,
|
|
1376
|
+
AssetType: import_smithy_client.expectString,
|
|
1377
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1378
|
+
Description: import_smithy_client.expectString,
|
|
1379
|
+
Id: import_smithy_client.expectString,
|
|
1380
|
+
Name: import_smithy_client.expectString,
|
|
1381
|
+
Origin: import_smithy_client.expectString,
|
|
1382
|
+
OriginDetails: import_smithy_client._json,
|
|
1383
|
+
SourceId: import_smithy_client.expectString,
|
|
1384
|
+
Tags: import_smithy_client._json,
|
|
1385
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1386
|
+
});
|
|
1387
|
+
Object.assign(contents, doc);
|
|
1388
|
+
return contents;
|
|
1389
|
+
}, "de_GetDataSetCommand");
|
|
1390
|
+
var de_GetDataSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1391
|
+
const parsedOutput = {
|
|
1392
|
+
...output,
|
|
1393
|
+
body: await parseErrorBody(output.body, context)
|
|
1394
|
+
};
|
|
1395
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
|
+
switch (errorCode) {
|
|
1397
|
+
case "InternalServerException":
|
|
1398
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1399
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1400
|
+
case "ResourceNotFoundException":
|
|
1401
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1402
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1403
|
+
case "ThrottlingException":
|
|
1404
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1405
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1406
|
+
case "ValidationException":
|
|
1407
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1408
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1409
|
+
default:
|
|
1410
|
+
const parsedBody = parsedOutput.body;
|
|
1411
|
+
return throwDefaultError({
|
|
1412
|
+
output,
|
|
1413
|
+
parsedBody,
|
|
1414
|
+
errorCode
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
}, "de_GetDataSetCommandError");
|
|
1418
|
+
var de_GetEventActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1419
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1420
|
+
return de_GetEventActionCommandError(output, context);
|
|
1421
|
+
}
|
|
1422
|
+
const contents = (0, import_smithy_client.map)({
|
|
1423
|
+
$metadata: deserializeMetadata(output)
|
|
1424
|
+
});
|
|
1425
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1426
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1427
|
+
Action: import_smithy_client._json,
|
|
1428
|
+
Arn: import_smithy_client.expectString,
|
|
1429
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1430
|
+
Event: import_smithy_client._json,
|
|
1431
|
+
Id: import_smithy_client.expectString,
|
|
1432
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1433
|
+
});
|
|
1434
|
+
Object.assign(contents, doc);
|
|
1435
|
+
return contents;
|
|
1436
|
+
}, "de_GetEventActionCommand");
|
|
1437
|
+
var de_GetEventActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
+
const parsedOutput = {
|
|
1439
|
+
...output,
|
|
1440
|
+
body: await parseErrorBody(output.body, context)
|
|
1441
|
+
};
|
|
1442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
+
switch (errorCode) {
|
|
1444
|
+
case "InternalServerException":
|
|
1445
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1446
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1447
|
+
case "ResourceNotFoundException":
|
|
1448
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1449
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1450
|
+
case "ThrottlingException":
|
|
1451
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1452
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1453
|
+
case "ValidationException":
|
|
1454
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1455
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1456
|
+
default:
|
|
1457
|
+
const parsedBody = parsedOutput.body;
|
|
1458
|
+
return throwDefaultError({
|
|
1459
|
+
output,
|
|
1460
|
+
parsedBody,
|
|
1461
|
+
errorCode
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
}, "de_GetEventActionCommandError");
|
|
1465
|
+
var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1466
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1467
|
+
return de_GetJobCommandError(output, context);
|
|
1468
|
+
}
|
|
1469
|
+
const contents = (0, import_smithy_client.map)({
|
|
1470
|
+
$metadata: deserializeMetadata(output)
|
|
1471
|
+
});
|
|
1472
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1473
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1474
|
+
Arn: import_smithy_client.expectString,
|
|
1475
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1476
|
+
Details: (_) => de_ResponseDetails(_, context),
|
|
1477
|
+
Errors: (_) => de_ListOfJobError(_, context),
|
|
1478
|
+
Id: import_smithy_client.expectString,
|
|
1479
|
+
State: import_smithy_client.expectString,
|
|
1480
|
+
Type: import_smithy_client.expectString,
|
|
1481
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1482
|
+
});
|
|
1483
|
+
Object.assign(contents, doc);
|
|
1484
|
+
return contents;
|
|
1485
|
+
}, "de_GetJobCommand");
|
|
1486
|
+
var de_GetJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1487
|
+
const parsedOutput = {
|
|
1488
|
+
...output,
|
|
1489
|
+
body: await parseErrorBody(output.body, context)
|
|
1490
|
+
};
|
|
1491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
+
switch (errorCode) {
|
|
1493
|
+
case "InternalServerException":
|
|
1494
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1495
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1496
|
+
case "ResourceNotFoundException":
|
|
1497
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1498
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1499
|
+
case "ThrottlingException":
|
|
1500
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1501
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1502
|
+
case "ValidationException":
|
|
1503
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1504
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1505
|
+
default:
|
|
1506
|
+
const parsedBody = parsedOutput.body;
|
|
1507
|
+
return throwDefaultError({
|
|
1508
|
+
output,
|
|
1509
|
+
parsedBody,
|
|
1510
|
+
errorCode
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
}, "de_GetJobCommandError");
|
|
1514
|
+
var de_GetRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1515
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1516
|
+
return de_GetRevisionCommandError(output, context);
|
|
1517
|
+
}
|
|
1518
|
+
const contents = (0, import_smithy_client.map)({
|
|
1519
|
+
$metadata: deserializeMetadata(output)
|
|
1520
|
+
});
|
|
1521
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1522
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1523
|
+
Arn: import_smithy_client.expectString,
|
|
1524
|
+
Comment: import_smithy_client.expectString,
|
|
1525
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1526
|
+
DataSetId: import_smithy_client.expectString,
|
|
1527
|
+
Finalized: import_smithy_client.expectBoolean,
|
|
1528
|
+
Id: import_smithy_client.expectString,
|
|
1529
|
+
RevocationComment: import_smithy_client.expectString,
|
|
1530
|
+
Revoked: import_smithy_client.expectBoolean,
|
|
1531
|
+
RevokedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1532
|
+
SourceId: import_smithy_client.expectString,
|
|
1533
|
+
Tags: import_smithy_client._json,
|
|
1534
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1535
|
+
});
|
|
1536
|
+
Object.assign(contents, doc);
|
|
1537
|
+
return contents;
|
|
1538
|
+
}, "de_GetRevisionCommand");
|
|
1539
|
+
var de_GetRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1540
|
+
const parsedOutput = {
|
|
1541
|
+
...output,
|
|
1542
|
+
body: await parseErrorBody(output.body, context)
|
|
1543
|
+
};
|
|
1544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
|
+
switch (errorCode) {
|
|
1546
|
+
case "InternalServerException":
|
|
1547
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1548
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1549
|
+
case "ResourceNotFoundException":
|
|
1550
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1551
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
+
case "ThrottlingException":
|
|
1553
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1554
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1555
|
+
case "ValidationException":
|
|
1556
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1557
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1558
|
+
default:
|
|
1559
|
+
const parsedBody = parsedOutput.body;
|
|
1560
|
+
return throwDefaultError({
|
|
1561
|
+
output,
|
|
1562
|
+
parsedBody,
|
|
1563
|
+
errorCode
|
|
1564
|
+
});
|
|
1565
|
+
}
|
|
1566
|
+
}, "de_GetRevisionCommandError");
|
|
1567
|
+
var de_ListDataSetRevisionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1568
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1569
|
+
return de_ListDataSetRevisionsCommandError(output, context);
|
|
1570
|
+
}
|
|
1571
|
+
const contents = (0, import_smithy_client.map)({
|
|
1572
|
+
$metadata: deserializeMetadata(output)
|
|
1573
|
+
});
|
|
1574
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1575
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1576
|
+
NextToken: import_smithy_client.expectString,
|
|
1577
|
+
Revisions: (_) => de_ListOfRevisionEntry(_, context)
|
|
1578
|
+
});
|
|
1579
|
+
Object.assign(contents, doc);
|
|
1580
|
+
return contents;
|
|
1581
|
+
}, "de_ListDataSetRevisionsCommand");
|
|
1582
|
+
var de_ListDataSetRevisionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1583
|
+
const parsedOutput = {
|
|
1584
|
+
...output,
|
|
1585
|
+
body: await parseErrorBody(output.body, context)
|
|
1586
|
+
};
|
|
1587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
+
switch (errorCode) {
|
|
1589
|
+
case "InternalServerException":
|
|
1590
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1591
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1592
|
+
case "ResourceNotFoundException":
|
|
1593
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1594
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
+
case "ThrottlingException":
|
|
1596
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1597
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1598
|
+
case "ValidationException":
|
|
1599
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1600
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1601
|
+
default:
|
|
1602
|
+
const parsedBody = parsedOutput.body;
|
|
1603
|
+
return throwDefaultError({
|
|
1604
|
+
output,
|
|
1605
|
+
parsedBody,
|
|
1606
|
+
errorCode
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
}, "de_ListDataSetRevisionsCommandError");
|
|
1610
|
+
var de_ListDataSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1611
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1612
|
+
return de_ListDataSetsCommandError(output, context);
|
|
1613
|
+
}
|
|
1614
|
+
const contents = (0, import_smithy_client.map)({
|
|
1615
|
+
$metadata: deserializeMetadata(output)
|
|
1616
|
+
});
|
|
1617
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1618
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1619
|
+
DataSets: (_) => de_ListOfDataSetEntry(_, context),
|
|
1620
|
+
NextToken: import_smithy_client.expectString
|
|
1621
|
+
});
|
|
1622
|
+
Object.assign(contents, doc);
|
|
1623
|
+
return contents;
|
|
1624
|
+
}, "de_ListDataSetsCommand");
|
|
1625
|
+
var de_ListDataSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1626
|
+
const parsedOutput = {
|
|
1627
|
+
...output,
|
|
1628
|
+
body: await parseErrorBody(output.body, context)
|
|
1629
|
+
};
|
|
1630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
+
switch (errorCode) {
|
|
1632
|
+
case "InternalServerException":
|
|
1633
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1634
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1635
|
+
case "ResourceNotFoundException":
|
|
1636
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1637
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1638
|
+
case "ThrottlingException":
|
|
1639
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1640
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1641
|
+
case "ValidationException":
|
|
1642
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1643
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1644
|
+
default:
|
|
1645
|
+
const parsedBody = parsedOutput.body;
|
|
1646
|
+
return throwDefaultError({
|
|
1647
|
+
output,
|
|
1648
|
+
parsedBody,
|
|
1649
|
+
errorCode
|
|
1650
|
+
});
|
|
1651
|
+
}
|
|
1652
|
+
}, "de_ListDataSetsCommandError");
|
|
1653
|
+
var de_ListEventActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1654
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1655
|
+
return de_ListEventActionsCommandError(output, context);
|
|
1656
|
+
}
|
|
1657
|
+
const contents = (0, import_smithy_client.map)({
|
|
1658
|
+
$metadata: deserializeMetadata(output)
|
|
1659
|
+
});
|
|
1660
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1661
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1662
|
+
EventActions: (_) => de_ListOfEventActionEntry(_, context),
|
|
1663
|
+
NextToken: import_smithy_client.expectString
|
|
1664
|
+
});
|
|
1665
|
+
Object.assign(contents, doc);
|
|
1666
|
+
return contents;
|
|
1667
|
+
}, "de_ListEventActionsCommand");
|
|
1668
|
+
var de_ListEventActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1669
|
+
const parsedOutput = {
|
|
1670
|
+
...output,
|
|
1671
|
+
body: await parseErrorBody(output.body, context)
|
|
1672
|
+
};
|
|
1673
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
+
switch (errorCode) {
|
|
1675
|
+
case "InternalServerException":
|
|
1676
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1677
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1678
|
+
case "ResourceNotFoundException":
|
|
1679
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1680
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1681
|
+
case "ThrottlingException":
|
|
1682
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1683
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1684
|
+
case "ValidationException":
|
|
1685
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1686
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1687
|
+
default:
|
|
1688
|
+
const parsedBody = parsedOutput.body;
|
|
1689
|
+
return throwDefaultError({
|
|
1690
|
+
output,
|
|
1691
|
+
parsedBody,
|
|
1692
|
+
errorCode
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
}, "de_ListEventActionsCommandError");
|
|
1696
|
+
var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1697
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1698
|
+
return de_ListJobsCommandError(output, context);
|
|
1699
|
+
}
|
|
1700
|
+
const contents = (0, import_smithy_client.map)({
|
|
1701
|
+
$metadata: deserializeMetadata(output)
|
|
1702
|
+
});
|
|
1703
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1704
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1705
|
+
Jobs: (_) => de_ListOfJobEntry(_, context),
|
|
1706
|
+
NextToken: import_smithy_client.expectString
|
|
1707
|
+
});
|
|
1708
|
+
Object.assign(contents, doc);
|
|
1709
|
+
return contents;
|
|
1710
|
+
}, "de_ListJobsCommand");
|
|
1711
|
+
var de_ListJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1712
|
+
const parsedOutput = {
|
|
1713
|
+
...output,
|
|
1714
|
+
body: await parseErrorBody(output.body, context)
|
|
1715
|
+
};
|
|
1716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
+
switch (errorCode) {
|
|
1718
|
+
case "InternalServerException":
|
|
1719
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1720
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1721
|
+
case "ResourceNotFoundException":
|
|
1722
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1723
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1724
|
+
case "ThrottlingException":
|
|
1725
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1726
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1727
|
+
case "ValidationException":
|
|
1728
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1729
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1730
|
+
default:
|
|
1731
|
+
const parsedBody = parsedOutput.body;
|
|
1732
|
+
return throwDefaultError({
|
|
1733
|
+
output,
|
|
1734
|
+
parsedBody,
|
|
1735
|
+
errorCode
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
}, "de_ListJobsCommandError");
|
|
1739
|
+
var de_ListRevisionAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1740
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
|
+
return de_ListRevisionAssetsCommandError(output, context);
|
|
1742
|
+
}
|
|
1743
|
+
const contents = (0, import_smithy_client.map)({
|
|
1744
|
+
$metadata: deserializeMetadata(output)
|
|
1745
|
+
});
|
|
1746
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1747
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1748
|
+
Assets: (_) => de_ListOfAssetEntry(_, context),
|
|
1749
|
+
NextToken: import_smithy_client.expectString
|
|
1750
|
+
});
|
|
1751
|
+
Object.assign(contents, doc);
|
|
1752
|
+
return contents;
|
|
1753
|
+
}, "de_ListRevisionAssetsCommand");
|
|
1754
|
+
var de_ListRevisionAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1755
|
+
const parsedOutput = {
|
|
1756
|
+
...output,
|
|
1757
|
+
body: await parseErrorBody(output.body, context)
|
|
1758
|
+
};
|
|
1759
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
|
+
switch (errorCode) {
|
|
1761
|
+
case "InternalServerException":
|
|
1762
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1763
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1764
|
+
case "ResourceNotFoundException":
|
|
1765
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1766
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1767
|
+
case "ThrottlingException":
|
|
1768
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1769
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1770
|
+
case "ValidationException":
|
|
1771
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1772
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1773
|
+
default:
|
|
1774
|
+
const parsedBody = parsedOutput.body;
|
|
1775
|
+
return throwDefaultError({
|
|
1776
|
+
output,
|
|
1777
|
+
parsedBody,
|
|
1778
|
+
errorCode
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1781
|
+
}, "de_ListRevisionAssetsCommandError");
|
|
1782
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1783
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1784
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1785
|
+
}
|
|
1786
|
+
const contents = (0, import_smithy_client.map)({
|
|
1787
|
+
$metadata: deserializeMetadata(output)
|
|
1788
|
+
});
|
|
1789
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1790
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1791
|
+
Tags: [, import_smithy_client._json, `tags`]
|
|
1792
|
+
});
|
|
1793
|
+
Object.assign(contents, doc);
|
|
1794
|
+
return contents;
|
|
1795
|
+
}, "de_ListTagsForResourceCommand");
|
|
1796
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1797
|
+
const parsedOutput = {
|
|
1798
|
+
...output,
|
|
1799
|
+
body: await parseErrorBody(output.body, context)
|
|
1800
|
+
};
|
|
1801
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
+
const parsedBody = parsedOutput.body;
|
|
1803
|
+
return throwDefaultError({
|
|
1804
|
+
output,
|
|
1805
|
+
parsedBody,
|
|
1806
|
+
errorCode
|
|
1807
|
+
});
|
|
1808
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1809
|
+
var de_RevokeRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1810
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1811
|
+
return de_RevokeRevisionCommandError(output, context);
|
|
1812
|
+
}
|
|
1813
|
+
const contents = (0, import_smithy_client.map)({
|
|
1814
|
+
$metadata: deserializeMetadata(output)
|
|
1815
|
+
});
|
|
1816
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1817
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1818
|
+
Arn: import_smithy_client.expectString,
|
|
1819
|
+
Comment: import_smithy_client.expectString,
|
|
1820
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1821
|
+
DataSetId: import_smithy_client.expectString,
|
|
1822
|
+
Finalized: import_smithy_client.expectBoolean,
|
|
1823
|
+
Id: import_smithy_client.expectString,
|
|
1824
|
+
RevocationComment: import_smithy_client.expectString,
|
|
1825
|
+
Revoked: import_smithy_client.expectBoolean,
|
|
1826
|
+
RevokedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1827
|
+
SourceId: import_smithy_client.expectString,
|
|
1828
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1829
|
+
});
|
|
1830
|
+
Object.assign(contents, doc);
|
|
1831
|
+
return contents;
|
|
1832
|
+
}, "de_RevokeRevisionCommand");
|
|
1833
|
+
var de_RevokeRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1834
|
+
const parsedOutput = {
|
|
1835
|
+
...output,
|
|
1836
|
+
body: await parseErrorBody(output.body, context)
|
|
1837
|
+
};
|
|
1838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
|
+
switch (errorCode) {
|
|
1840
|
+
case "AccessDeniedException":
|
|
1841
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1842
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1843
|
+
case "ConflictException":
|
|
1844
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
1845
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1846
|
+
case "InternalServerException":
|
|
1847
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1848
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1849
|
+
case "ResourceNotFoundException":
|
|
1850
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1851
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1852
|
+
case "ThrottlingException":
|
|
1853
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1854
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1855
|
+
case "ValidationException":
|
|
1856
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1857
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1858
|
+
default:
|
|
1859
|
+
const parsedBody = parsedOutput.body;
|
|
1860
|
+
return throwDefaultError({
|
|
1861
|
+
output,
|
|
1862
|
+
parsedBody,
|
|
1863
|
+
errorCode
|
|
1864
|
+
});
|
|
1865
|
+
}
|
|
1866
|
+
}, "de_RevokeRevisionCommandError");
|
|
1867
|
+
var de_SendApiAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1868
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1869
|
+
return de_SendApiAssetCommandError(output, context);
|
|
1870
|
+
}
|
|
1871
|
+
const contents = (0, import_smithy_client.map)({
|
|
1872
|
+
$metadata: deserializeMetadata(output),
|
|
1873
|
+
ResponseHeaders: [
|
|
1874
|
+
,
|
|
1875
|
+
Object.keys(output.headers).filter((header) => header.startsWith("")).reduce((acc, header) => {
|
|
1876
|
+
acc[header.substring(0)] = output.headers[header];
|
|
1877
|
+
return acc;
|
|
1878
|
+
}, {})
|
|
1879
|
+
]
|
|
1880
|
+
});
|
|
1881
|
+
const data = await collectBodyString(output.body, context);
|
|
1882
|
+
contents.Body = (0, import_smithy_client.expectString)(data);
|
|
1883
|
+
return contents;
|
|
1884
|
+
}, "de_SendApiAssetCommand");
|
|
1885
|
+
var de_SendApiAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1886
|
+
const parsedOutput = {
|
|
1887
|
+
...output,
|
|
1888
|
+
body: await parseErrorBody(output.body, context)
|
|
1889
|
+
};
|
|
1890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
|
+
switch (errorCode) {
|
|
1892
|
+
case "AccessDeniedException":
|
|
1893
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1894
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1895
|
+
case "InternalServerException":
|
|
1896
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1897
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1898
|
+
case "ResourceNotFoundException":
|
|
1899
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1900
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1901
|
+
case "ThrottlingException":
|
|
1902
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1903
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1904
|
+
case "ValidationException":
|
|
1905
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1906
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1907
|
+
default:
|
|
1908
|
+
const parsedBody = parsedOutput.body;
|
|
1909
|
+
return throwDefaultError({
|
|
1910
|
+
output,
|
|
1911
|
+
parsedBody,
|
|
1912
|
+
errorCode
|
|
1913
|
+
});
|
|
1914
|
+
}
|
|
1915
|
+
}, "de_SendApiAssetCommandError");
|
|
1916
|
+
var de_SendDataSetNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1917
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1918
|
+
return de_SendDataSetNotificationCommandError(output, context);
|
|
1919
|
+
}
|
|
1920
|
+
const contents = (0, import_smithy_client.map)({
|
|
1921
|
+
$metadata: deserializeMetadata(output)
|
|
1922
|
+
});
|
|
1923
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1924
|
+
return contents;
|
|
1925
|
+
}, "de_SendDataSetNotificationCommand");
|
|
1926
|
+
var de_SendDataSetNotificationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1927
|
+
const parsedOutput = {
|
|
1928
|
+
...output,
|
|
1929
|
+
body: await parseErrorBody(output.body, context)
|
|
1930
|
+
};
|
|
1931
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
+
switch (errorCode) {
|
|
1933
|
+
case "AccessDeniedException":
|
|
1934
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1935
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1936
|
+
case "ConflictException":
|
|
1937
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
1938
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1939
|
+
case "InternalServerException":
|
|
1940
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1941
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1942
|
+
case "ResourceNotFoundException":
|
|
1943
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1944
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1945
|
+
case "ThrottlingException":
|
|
1946
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1947
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1948
|
+
case "ValidationException":
|
|
1949
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1950
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1951
|
+
default:
|
|
1952
|
+
const parsedBody = parsedOutput.body;
|
|
1953
|
+
return throwDefaultError({
|
|
1954
|
+
output,
|
|
1955
|
+
parsedBody,
|
|
1956
|
+
errorCode
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
}, "de_SendDataSetNotificationCommandError");
|
|
1960
|
+
var de_StartJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1961
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1962
|
+
return de_StartJobCommandError(output, context);
|
|
1963
|
+
}
|
|
1964
|
+
const contents = (0, import_smithy_client.map)({
|
|
1965
|
+
$metadata: deserializeMetadata(output)
|
|
1966
|
+
});
|
|
1967
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1968
|
+
return contents;
|
|
1969
|
+
}, "de_StartJobCommand");
|
|
1970
|
+
var de_StartJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1971
|
+
const parsedOutput = {
|
|
1972
|
+
...output,
|
|
1973
|
+
body: await parseErrorBody(output.body, context)
|
|
1974
|
+
};
|
|
1975
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
|
+
switch (errorCode) {
|
|
1977
|
+
case "AccessDeniedException":
|
|
1978
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1979
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1980
|
+
case "ConflictException":
|
|
1981
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
1982
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1983
|
+
case "InternalServerException":
|
|
1984
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1985
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1986
|
+
case "ResourceNotFoundException":
|
|
1987
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1988
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1989
|
+
case "ThrottlingException":
|
|
1990
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1991
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1992
|
+
case "ValidationException":
|
|
1993
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
1994
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1995
|
+
default:
|
|
1996
|
+
const parsedBody = parsedOutput.body;
|
|
1997
|
+
return throwDefaultError({
|
|
1998
|
+
output,
|
|
1999
|
+
parsedBody,
|
|
2000
|
+
errorCode
|
|
2001
|
+
});
|
|
2002
|
+
}
|
|
2003
|
+
}, "de_StartJobCommandError");
|
|
2004
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2005
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2006
|
+
return de_TagResourceCommandError(output, context);
|
|
2007
|
+
}
|
|
2008
|
+
const contents = (0, import_smithy_client.map)({
|
|
2009
|
+
$metadata: deserializeMetadata(output)
|
|
2010
|
+
});
|
|
2011
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2012
|
+
return contents;
|
|
2013
|
+
}, "de_TagResourceCommand");
|
|
2014
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2015
|
+
const parsedOutput = {
|
|
2016
|
+
...output,
|
|
2017
|
+
body: await parseErrorBody(output.body, context)
|
|
2018
|
+
};
|
|
2019
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
|
+
const parsedBody = parsedOutput.body;
|
|
2021
|
+
return throwDefaultError({
|
|
2022
|
+
output,
|
|
2023
|
+
parsedBody,
|
|
2024
|
+
errorCode
|
|
2025
|
+
});
|
|
2026
|
+
}, "de_TagResourceCommandError");
|
|
2027
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2028
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2029
|
+
return de_UntagResourceCommandError(output, context);
|
|
2030
|
+
}
|
|
2031
|
+
const contents = (0, import_smithy_client.map)({
|
|
2032
|
+
$metadata: deserializeMetadata(output)
|
|
2033
|
+
});
|
|
2034
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2035
|
+
return contents;
|
|
2036
|
+
}, "de_UntagResourceCommand");
|
|
2037
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2038
|
+
const parsedOutput = {
|
|
2039
|
+
...output,
|
|
2040
|
+
body: await parseErrorBody(output.body, context)
|
|
2041
|
+
};
|
|
2042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
|
+
const parsedBody = parsedOutput.body;
|
|
2044
|
+
return throwDefaultError({
|
|
2045
|
+
output,
|
|
2046
|
+
parsedBody,
|
|
2047
|
+
errorCode
|
|
2048
|
+
});
|
|
2049
|
+
}, "de_UntagResourceCommandError");
|
|
2050
|
+
var de_UpdateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2051
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2052
|
+
return de_UpdateAssetCommandError(output, context);
|
|
2053
|
+
}
|
|
2054
|
+
const contents = (0, import_smithy_client.map)({
|
|
2055
|
+
$metadata: deserializeMetadata(output)
|
|
2056
|
+
});
|
|
2057
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2058
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2059
|
+
Arn: import_smithy_client.expectString,
|
|
2060
|
+
AssetDetails: (_) => de_AssetDetails(_, context),
|
|
2061
|
+
AssetType: import_smithy_client.expectString,
|
|
2062
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2063
|
+
DataSetId: import_smithy_client.expectString,
|
|
2064
|
+
Id: import_smithy_client.expectString,
|
|
2065
|
+
Name: import_smithy_client.expectString,
|
|
2066
|
+
RevisionId: import_smithy_client.expectString,
|
|
2067
|
+
SourceId: import_smithy_client.expectString,
|
|
2068
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2069
|
+
});
|
|
2070
|
+
Object.assign(contents, doc);
|
|
2071
|
+
return contents;
|
|
2072
|
+
}, "de_UpdateAssetCommand");
|
|
2073
|
+
var de_UpdateAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2074
|
+
const parsedOutput = {
|
|
2075
|
+
...output,
|
|
2076
|
+
body: await parseErrorBody(output.body, context)
|
|
2077
|
+
};
|
|
2078
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
|
+
switch (errorCode) {
|
|
2080
|
+
case "AccessDeniedException":
|
|
2081
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2082
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2083
|
+
case "ConflictException":
|
|
2084
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
2085
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2086
|
+
case "InternalServerException":
|
|
2087
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2088
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2089
|
+
case "ResourceNotFoundException":
|
|
2090
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2091
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2092
|
+
case "ThrottlingException":
|
|
2093
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2094
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2095
|
+
case "ValidationException":
|
|
2096
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
2097
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2098
|
+
default:
|
|
2099
|
+
const parsedBody = parsedOutput.body;
|
|
2100
|
+
return throwDefaultError({
|
|
2101
|
+
output,
|
|
2102
|
+
parsedBody,
|
|
2103
|
+
errorCode
|
|
2104
|
+
});
|
|
2105
|
+
}
|
|
2106
|
+
}, "de_UpdateAssetCommandError");
|
|
2107
|
+
var de_UpdateDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2108
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2109
|
+
return de_UpdateDataSetCommandError(output, context);
|
|
2110
|
+
}
|
|
2111
|
+
const contents = (0, import_smithy_client.map)({
|
|
2112
|
+
$metadata: deserializeMetadata(output)
|
|
2113
|
+
});
|
|
2114
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2115
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2116
|
+
Arn: import_smithy_client.expectString,
|
|
2117
|
+
AssetType: import_smithy_client.expectString,
|
|
2118
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2119
|
+
Description: import_smithy_client.expectString,
|
|
2120
|
+
Id: import_smithy_client.expectString,
|
|
2121
|
+
Name: import_smithy_client.expectString,
|
|
2122
|
+
Origin: import_smithy_client.expectString,
|
|
2123
|
+
OriginDetails: import_smithy_client._json,
|
|
2124
|
+
SourceId: import_smithy_client.expectString,
|
|
2125
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2126
|
+
});
|
|
2127
|
+
Object.assign(contents, doc);
|
|
2128
|
+
return contents;
|
|
2129
|
+
}, "de_UpdateDataSetCommand");
|
|
2130
|
+
var de_UpdateDataSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2131
|
+
const parsedOutput = {
|
|
2132
|
+
...output,
|
|
2133
|
+
body: await parseErrorBody(output.body, context)
|
|
2134
|
+
};
|
|
2135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
+
switch (errorCode) {
|
|
2137
|
+
case "AccessDeniedException":
|
|
2138
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2139
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2140
|
+
case "InternalServerException":
|
|
2141
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2142
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2143
|
+
case "ResourceNotFoundException":
|
|
2144
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2145
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2146
|
+
case "ThrottlingException":
|
|
2147
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2148
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2149
|
+
case "ValidationException":
|
|
2150
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
2151
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2152
|
+
default:
|
|
2153
|
+
const parsedBody = parsedOutput.body;
|
|
2154
|
+
return throwDefaultError({
|
|
2155
|
+
output,
|
|
2156
|
+
parsedBody,
|
|
2157
|
+
errorCode
|
|
2158
|
+
});
|
|
2159
|
+
}
|
|
2160
|
+
}, "de_UpdateDataSetCommandError");
|
|
2161
|
+
var de_UpdateEventActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2162
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2163
|
+
return de_UpdateEventActionCommandError(output, context);
|
|
2164
|
+
}
|
|
2165
|
+
const contents = (0, import_smithy_client.map)({
|
|
2166
|
+
$metadata: deserializeMetadata(output)
|
|
2167
|
+
});
|
|
2168
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2169
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2170
|
+
Action: import_smithy_client._json,
|
|
2171
|
+
Arn: import_smithy_client.expectString,
|
|
2172
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2173
|
+
Event: import_smithy_client._json,
|
|
2174
|
+
Id: import_smithy_client.expectString,
|
|
2175
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2176
|
+
});
|
|
2177
|
+
Object.assign(contents, doc);
|
|
2178
|
+
return contents;
|
|
2179
|
+
}, "de_UpdateEventActionCommand");
|
|
2180
|
+
var de_UpdateEventActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2181
|
+
const parsedOutput = {
|
|
2182
|
+
...output,
|
|
2183
|
+
body: await parseErrorBody(output.body, context)
|
|
2184
|
+
};
|
|
2185
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2186
|
+
switch (errorCode) {
|
|
2187
|
+
case "AccessDeniedException":
|
|
2188
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2189
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2190
|
+
case "InternalServerException":
|
|
2191
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2192
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2193
|
+
case "ResourceNotFoundException":
|
|
2194
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2195
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2196
|
+
case "ThrottlingException":
|
|
2197
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2198
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2199
|
+
case "ValidationException":
|
|
2200
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
2201
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2202
|
+
default:
|
|
2203
|
+
const parsedBody = parsedOutput.body;
|
|
2204
|
+
return throwDefaultError({
|
|
2205
|
+
output,
|
|
2206
|
+
parsedBody,
|
|
2207
|
+
errorCode
|
|
2208
|
+
});
|
|
2209
|
+
}
|
|
2210
|
+
}, "de_UpdateEventActionCommandError");
|
|
2211
|
+
var de_UpdateRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2212
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2213
|
+
return de_UpdateRevisionCommandError(output, context);
|
|
2214
|
+
}
|
|
2215
|
+
const contents = (0, import_smithy_client.map)({
|
|
2216
|
+
$metadata: deserializeMetadata(output)
|
|
2217
|
+
});
|
|
2218
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2219
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2220
|
+
Arn: import_smithy_client.expectString,
|
|
2221
|
+
Comment: import_smithy_client.expectString,
|
|
2222
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2223
|
+
DataSetId: import_smithy_client.expectString,
|
|
2224
|
+
Finalized: import_smithy_client.expectBoolean,
|
|
2225
|
+
Id: import_smithy_client.expectString,
|
|
2226
|
+
RevocationComment: import_smithy_client.expectString,
|
|
2227
|
+
Revoked: import_smithy_client.expectBoolean,
|
|
2228
|
+
RevokedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2229
|
+
SourceId: import_smithy_client.expectString,
|
|
2230
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2231
|
+
});
|
|
2232
|
+
Object.assign(contents, doc);
|
|
2233
|
+
return contents;
|
|
2234
|
+
}, "de_UpdateRevisionCommand");
|
|
2235
|
+
var de_UpdateRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2236
|
+
const parsedOutput = {
|
|
2237
|
+
...output,
|
|
2238
|
+
body: await parseErrorBody(output.body, context)
|
|
2239
|
+
};
|
|
2240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
+
switch (errorCode) {
|
|
2242
|
+
case "AccessDeniedException":
|
|
2243
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2244
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2245
|
+
case "ConflictException":
|
|
2246
|
+
case "com.amazonaws.dataexchange#ConflictException":
|
|
2247
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2248
|
+
case "InternalServerException":
|
|
2249
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2250
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2251
|
+
case "ResourceNotFoundException":
|
|
2252
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2253
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2254
|
+
case "ThrottlingException":
|
|
2255
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2256
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2257
|
+
case "ValidationException":
|
|
2258
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
2259
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2260
|
+
default:
|
|
2261
|
+
const parsedBody = parsedOutput.body;
|
|
2262
|
+
return throwDefaultError({
|
|
2263
|
+
output,
|
|
2264
|
+
parsedBody,
|
|
2265
|
+
errorCode
|
|
2266
|
+
});
|
|
2267
|
+
}
|
|
2268
|
+
}, "de_UpdateRevisionCommandError");
|
|
2269
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(DataExchangeServiceException);
|
|
2270
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2271
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2272
|
+
const data = parsedOutput.body;
|
|
2273
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2274
|
+
Message: import_smithy_client.expectString
|
|
2275
|
+
});
|
|
2276
|
+
Object.assign(contents, doc);
|
|
2277
|
+
const exception = new AccessDeniedException({
|
|
2278
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2279
|
+
...contents
|
|
2280
|
+
});
|
|
2281
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2282
|
+
}, "de_AccessDeniedExceptionRes");
|
|
2283
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2284
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2285
|
+
const data = parsedOutput.body;
|
|
2286
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2287
|
+
Message: import_smithy_client.expectString,
|
|
2288
|
+
ResourceId: import_smithy_client.expectString,
|
|
2289
|
+
ResourceType: import_smithy_client.expectString
|
|
2290
|
+
});
|
|
2291
|
+
Object.assign(contents, doc);
|
|
2292
|
+
const exception = new ConflictException({
|
|
2293
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2294
|
+
...contents
|
|
2295
|
+
});
|
|
2296
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2297
|
+
}, "de_ConflictExceptionRes");
|
|
2298
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2299
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2300
|
+
const data = parsedOutput.body;
|
|
2301
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2302
|
+
Message: import_smithy_client.expectString
|
|
2303
|
+
});
|
|
2304
|
+
Object.assign(contents, doc);
|
|
2305
|
+
const exception = new InternalServerException({
|
|
2306
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2307
|
+
...contents
|
|
2308
|
+
});
|
|
2309
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2310
|
+
}, "de_InternalServerExceptionRes");
|
|
2311
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2312
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2313
|
+
const data = parsedOutput.body;
|
|
2314
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2315
|
+
Message: import_smithy_client.expectString,
|
|
2316
|
+
ResourceId: import_smithy_client.expectString,
|
|
2317
|
+
ResourceType: import_smithy_client.expectString
|
|
2318
|
+
});
|
|
2319
|
+
Object.assign(contents, doc);
|
|
2320
|
+
const exception = new ResourceNotFoundException({
|
|
2321
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2322
|
+
...contents
|
|
2323
|
+
});
|
|
2324
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2325
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
2326
|
+
var de_ServiceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2327
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2328
|
+
const data = parsedOutput.body;
|
|
2329
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2330
|
+
LimitName: import_smithy_client.expectString,
|
|
2331
|
+
LimitValue: import_smithy_client.limitedParseDouble,
|
|
2332
|
+
Message: import_smithy_client.expectString
|
|
2333
|
+
});
|
|
2334
|
+
Object.assign(contents, doc);
|
|
2335
|
+
const exception = new ServiceLimitExceededException({
|
|
2336
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2337
|
+
...contents
|
|
2338
|
+
});
|
|
2339
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2340
|
+
}, "de_ServiceLimitExceededExceptionRes");
|
|
2341
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2342
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2343
|
+
const data = parsedOutput.body;
|
|
2344
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2345
|
+
Message: import_smithy_client.expectString
|
|
2346
|
+
});
|
|
2347
|
+
Object.assign(contents, doc);
|
|
2348
|
+
const exception = new ThrottlingException({
|
|
2349
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2350
|
+
...contents
|
|
2351
|
+
});
|
|
2352
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2353
|
+
}, "de_ThrottlingExceptionRes");
|
|
2354
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2355
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2356
|
+
const data = parsedOutput.body;
|
|
2357
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2358
|
+
ExceptionCause: import_smithy_client.expectString,
|
|
2359
|
+
Message: import_smithy_client.expectString
|
|
2360
|
+
});
|
|
2361
|
+
Object.assign(contents, doc);
|
|
2362
|
+
const exception = new ValidationException({
|
|
2363
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2364
|
+
...contents
|
|
2365
|
+
});
|
|
2366
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2367
|
+
}, "de_ValidationExceptionRes");
|
|
2368
|
+
var se_DataUpdateRequestDetails = /* @__PURE__ */ __name((input, context) => {
|
|
2369
|
+
return (0, import_smithy_client.take)(input, {
|
|
2370
|
+
DataUpdatedAt: (_) => _.toISOString().split(".")[0] + "Z"
|
|
2371
|
+
});
|
|
2372
|
+
}, "se_DataUpdateRequestDetails");
|
|
2373
|
+
var se_DeprecationRequestDetails = /* @__PURE__ */ __name((input, context) => {
|
|
2374
|
+
return (0, import_smithy_client.take)(input, {
|
|
2375
|
+
DeprecationAt: (_) => _.toISOString().split(".")[0] + "Z"
|
|
2376
|
+
});
|
|
2377
|
+
}, "se_DeprecationRequestDetails");
|
|
2378
|
+
var se_NotificationDetails = /* @__PURE__ */ __name((input, context) => {
|
|
2379
|
+
return (0, import_smithy_client.take)(input, {
|
|
2380
|
+
DataUpdate: (_) => se_DataUpdateRequestDetails(_, context),
|
|
2381
|
+
Deprecation: (_) => se_DeprecationRequestDetails(_, context),
|
|
2382
|
+
SchemaChange: (_) => se_SchemaChangeRequestDetails(_, context)
|
|
2383
|
+
});
|
|
2384
|
+
}, "se_NotificationDetails");
|
|
2385
|
+
var se_SchemaChangeRequestDetails = /* @__PURE__ */ __name((input, context) => {
|
|
2386
|
+
return (0, import_smithy_client.take)(input, {
|
|
2387
|
+
Changes: import_smithy_client._json,
|
|
2388
|
+
SchemaChangeAt: (_) => _.toISOString().split(".")[0] + "Z"
|
|
2389
|
+
});
|
|
2390
|
+
}, "se_SchemaChangeRequestDetails");
|
|
2391
|
+
var de_ApiGatewayApiAsset = /* @__PURE__ */ __name((output, context) => {
|
|
2392
|
+
return (0, import_smithy_client.take)(output, {
|
|
2393
|
+
ApiDescription: import_smithy_client.expectString,
|
|
2394
|
+
ApiEndpoint: import_smithy_client.expectString,
|
|
2395
|
+
ApiId: import_smithy_client.expectString,
|
|
2396
|
+
ApiKey: import_smithy_client.expectString,
|
|
2397
|
+
ApiName: import_smithy_client.expectString,
|
|
2398
|
+
ApiSpecificationDownloadUrl: import_smithy_client.expectString,
|
|
2399
|
+
ApiSpecificationDownloadUrlExpiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2400
|
+
ProtocolType: import_smithy_client.expectString,
|
|
2401
|
+
Stage: import_smithy_client.expectString
|
|
2402
|
+
});
|
|
2403
|
+
}, "de_ApiGatewayApiAsset");
|
|
2404
|
+
var de_AssetDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2405
|
+
return (0, import_smithy_client.take)(output, {
|
|
2406
|
+
ApiGatewayApiAsset: (_) => de_ApiGatewayApiAsset(_, context),
|
|
2407
|
+
LakeFormationDataPermissionAsset: import_smithy_client._json,
|
|
2408
|
+
RedshiftDataShareAsset: import_smithy_client._json,
|
|
2409
|
+
S3DataAccessAsset: import_smithy_client._json,
|
|
2410
|
+
S3SnapshotAsset: (_) => de_S3SnapshotAsset(_, context)
|
|
2411
|
+
});
|
|
2412
|
+
}, "de_AssetDetails");
|
|
2413
|
+
var de_AssetEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2414
|
+
return (0, import_smithy_client.take)(output, {
|
|
2415
|
+
Arn: import_smithy_client.expectString,
|
|
2416
|
+
AssetDetails: (_) => de_AssetDetails(_, context),
|
|
2417
|
+
AssetType: import_smithy_client.expectString,
|
|
2418
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2419
|
+
DataSetId: import_smithy_client.expectString,
|
|
2420
|
+
Id: import_smithy_client.expectString,
|
|
2421
|
+
Name: import_smithy_client.expectString,
|
|
2422
|
+
RevisionId: import_smithy_client.expectString,
|
|
2423
|
+
SourceId: import_smithy_client.expectString,
|
|
2424
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2425
|
+
});
|
|
2426
|
+
}, "de_AssetEntry");
|
|
2427
|
+
var de_DataSetEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2428
|
+
return (0, import_smithy_client.take)(output, {
|
|
2429
|
+
Arn: import_smithy_client.expectString,
|
|
2430
|
+
AssetType: import_smithy_client.expectString,
|
|
2431
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2432
|
+
Description: import_smithy_client.expectString,
|
|
2433
|
+
Id: import_smithy_client.expectString,
|
|
2434
|
+
Name: import_smithy_client.expectString,
|
|
2435
|
+
Origin: import_smithy_client.expectString,
|
|
2436
|
+
OriginDetails: import_smithy_client._json,
|
|
2437
|
+
SourceId: import_smithy_client.expectString,
|
|
2438
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2439
|
+
});
|
|
2440
|
+
}, "de_DataSetEntry");
|
|
2441
|
+
var de_EventActionEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2442
|
+
return (0, import_smithy_client.take)(output, {
|
|
2443
|
+
Action: import_smithy_client._json,
|
|
2444
|
+
Arn: import_smithy_client.expectString,
|
|
2445
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2446
|
+
Event: import_smithy_client._json,
|
|
2447
|
+
Id: import_smithy_client.expectString,
|
|
2448
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2449
|
+
});
|
|
2450
|
+
}, "de_EventActionEntry");
|
|
2451
|
+
var de_ExportAssetToSignedUrlResponseDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2452
|
+
return (0, import_smithy_client.take)(output, {
|
|
2453
|
+
AssetId: import_smithy_client.expectString,
|
|
2454
|
+
DataSetId: import_smithy_client.expectString,
|
|
2455
|
+
RevisionId: import_smithy_client.expectString,
|
|
2456
|
+
SignedUrl: import_smithy_client.expectString,
|
|
2457
|
+
SignedUrlExpiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2458
|
+
});
|
|
2459
|
+
}, "de_ExportAssetToSignedUrlResponseDetails");
|
|
2460
|
+
var de_ImportAssetFromApiGatewayApiResponseDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2461
|
+
return (0, import_smithy_client.take)(output, {
|
|
2462
|
+
ApiDescription: import_smithy_client.expectString,
|
|
2463
|
+
ApiId: import_smithy_client.expectString,
|
|
2464
|
+
ApiKey: import_smithy_client.expectString,
|
|
2465
|
+
ApiName: import_smithy_client.expectString,
|
|
2466
|
+
ApiSpecificationMd5Hash: import_smithy_client.expectString,
|
|
2467
|
+
ApiSpecificationUploadUrl: import_smithy_client.expectString,
|
|
2468
|
+
ApiSpecificationUploadUrlExpiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2469
|
+
DataSetId: import_smithy_client.expectString,
|
|
2470
|
+
ProtocolType: import_smithy_client.expectString,
|
|
2471
|
+
RevisionId: import_smithy_client.expectString,
|
|
2472
|
+
Stage: import_smithy_client.expectString
|
|
2473
|
+
});
|
|
2474
|
+
}, "de_ImportAssetFromApiGatewayApiResponseDetails");
|
|
2475
|
+
var de_ImportAssetFromSignedUrlResponseDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2476
|
+
return (0, import_smithy_client.take)(output, {
|
|
2477
|
+
AssetName: import_smithy_client.expectString,
|
|
2478
|
+
DataSetId: import_smithy_client.expectString,
|
|
2479
|
+
Md5Hash: import_smithy_client.expectString,
|
|
2480
|
+
RevisionId: import_smithy_client.expectString,
|
|
2481
|
+
SignedUrl: import_smithy_client.expectString,
|
|
2482
|
+
SignedUrlExpiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2483
|
+
});
|
|
2484
|
+
}, "de_ImportAssetFromSignedUrlResponseDetails");
|
|
2485
|
+
var de_JobEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2486
|
+
return (0, import_smithy_client.take)(output, {
|
|
2487
|
+
Arn: import_smithy_client.expectString,
|
|
2488
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2489
|
+
Details: (_) => de_ResponseDetails(_, context),
|
|
2490
|
+
Errors: (_) => de_ListOfJobError(_, context),
|
|
2491
|
+
Id: import_smithy_client.expectString,
|
|
2492
|
+
State: import_smithy_client.expectString,
|
|
2493
|
+
Type: import_smithy_client.expectString,
|
|
2494
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2495
|
+
});
|
|
2496
|
+
}, "de_JobEntry");
|
|
2497
|
+
var de_JobError = /* @__PURE__ */ __name((output, context) => {
|
|
2498
|
+
return (0, import_smithy_client.take)(output, {
|
|
2499
|
+
Code: import_smithy_client.expectString,
|
|
2500
|
+
Details: import_smithy_client._json,
|
|
2501
|
+
LimitName: import_smithy_client.expectString,
|
|
2502
|
+
LimitValue: import_smithy_client.limitedParseDouble,
|
|
2503
|
+
Message: import_smithy_client.expectString,
|
|
2504
|
+
ResourceId: import_smithy_client.expectString,
|
|
2505
|
+
ResourceType: import_smithy_client.expectString
|
|
2506
|
+
});
|
|
2507
|
+
}, "de_JobError");
|
|
2508
|
+
var de_ListOfAssetEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2509
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2510
|
+
return de_AssetEntry(entry, context);
|
|
2511
|
+
});
|
|
2512
|
+
return retVal;
|
|
2513
|
+
}, "de_ListOfAssetEntry");
|
|
2514
|
+
var de_ListOfDataSetEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2515
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2516
|
+
return de_DataSetEntry(entry, context);
|
|
2517
|
+
});
|
|
2518
|
+
return retVal;
|
|
2519
|
+
}, "de_ListOfDataSetEntry");
|
|
2520
|
+
var de_ListOfEventActionEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2521
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2522
|
+
return de_EventActionEntry(entry, context);
|
|
2523
|
+
});
|
|
2524
|
+
return retVal;
|
|
2525
|
+
}, "de_ListOfEventActionEntry");
|
|
2526
|
+
var de_ListOfJobEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2527
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2528
|
+
return de_JobEntry(entry, context);
|
|
2529
|
+
});
|
|
2530
|
+
return retVal;
|
|
2531
|
+
}, "de_ListOfJobEntry");
|
|
2532
|
+
var de_ListOfJobError = /* @__PURE__ */ __name((output, context) => {
|
|
2533
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2534
|
+
return de_JobError(entry, context);
|
|
2535
|
+
});
|
|
2536
|
+
return retVal;
|
|
2537
|
+
}, "de_ListOfJobError");
|
|
2538
|
+
var de_ListOfRevisionEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2539
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2540
|
+
return de_RevisionEntry(entry, context);
|
|
2541
|
+
});
|
|
2542
|
+
return retVal;
|
|
2543
|
+
}, "de_ListOfRevisionEntry");
|
|
2544
|
+
var de_ResponseDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2545
|
+
return (0, import_smithy_client.take)(output, {
|
|
2546
|
+
CreateS3DataAccessFromS3Bucket: import_smithy_client._json,
|
|
2547
|
+
ExportAssetToSignedUrl: (_) => de_ExportAssetToSignedUrlResponseDetails(_, context),
|
|
2548
|
+
ExportAssetsToS3: import_smithy_client._json,
|
|
2549
|
+
ExportRevisionsToS3: import_smithy_client._json,
|
|
2550
|
+
ImportAssetFromApiGatewayApi: (_) => de_ImportAssetFromApiGatewayApiResponseDetails(_, context),
|
|
2551
|
+
ImportAssetFromSignedUrl: (_) => de_ImportAssetFromSignedUrlResponseDetails(_, context),
|
|
2552
|
+
ImportAssetsFromLakeFormationTagPolicy: import_smithy_client._json,
|
|
2553
|
+
ImportAssetsFromRedshiftDataShares: import_smithy_client._json,
|
|
2554
|
+
ImportAssetsFromS3: import_smithy_client._json
|
|
2555
|
+
});
|
|
2556
|
+
}, "de_ResponseDetails");
|
|
2557
|
+
var de_RevisionEntry = /* @__PURE__ */ __name((output, context) => {
|
|
2558
|
+
return (0, import_smithy_client.take)(output, {
|
|
2559
|
+
Arn: import_smithy_client.expectString,
|
|
2560
|
+
Comment: import_smithy_client.expectString,
|
|
2561
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2562
|
+
DataSetId: import_smithy_client.expectString,
|
|
2563
|
+
Finalized: import_smithy_client.expectBoolean,
|
|
2564
|
+
Id: import_smithy_client.expectString,
|
|
2565
|
+
RevocationComment: import_smithy_client.expectString,
|
|
2566
|
+
Revoked: import_smithy_client.expectBoolean,
|
|
2567
|
+
RevokedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2568
|
+
SourceId: import_smithy_client.expectString,
|
|
2569
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2570
|
+
});
|
|
2571
|
+
}, "de_RevisionEntry");
|
|
2572
|
+
var de_S3SnapshotAsset = /* @__PURE__ */ __name((output, context) => {
|
|
2573
|
+
return (0, import_smithy_client.take)(output, {
|
|
2574
|
+
Size: import_smithy_client.limitedParseDouble
|
|
2575
|
+
});
|
|
2576
|
+
}, "de_S3SnapshotAsset");
|
|
2577
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
2578
|
+
httpStatusCode: output.statusCode,
|
|
2579
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2580
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2581
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
2582
|
+
}), "deserializeMetadata");
|
|
2583
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2584
|
+
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
2585
|
+
var _AI = "AssetId";
|
|
2586
|
+
var _DSI = "DataSetId";
|
|
2587
|
+
var _ESI = "EventSourceId";
|
|
2588
|
+
var _M = "Method";
|
|
2589
|
+
var _MR = "MaxResults";
|
|
2590
|
+
var _NT = "NextToken";
|
|
2591
|
+
var _O = "Origin";
|
|
2592
|
+
var _P = "Path";
|
|
2593
|
+
var _RI = "RevisionId";
|
|
2594
|
+
var _TK = "TagKeys";
|
|
2595
|
+
var _dSI = "dataSetId";
|
|
2596
|
+
var _eSI = "eventSourceId";
|
|
2597
|
+
var _mR = "maxResults";
|
|
2598
|
+
var _nT = "nextToken";
|
|
2599
|
+
var _o = "origin";
|
|
2600
|
+
var _rI = "revisionId";
|
|
2601
|
+
var _tK = "tagKeys";
|
|
2602
|
+
var _xadai = "x-amzn-dataexchange-asset-id";
|
|
2603
|
+
var _xaddsi = "x-amzn-dataexchange-data-set-id";
|
|
2604
|
+
var _xadhm = "x-amzn-dataexchange-http-method";
|
|
2605
|
+
var _xadp = "x-amzn-dataexchange-path";
|
|
2606
|
+
var _xadri = "x-amzn-dataexchange-revision-id";
|
|
2607
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2608
|
+
if (encoded.length) {
|
|
2609
|
+
return JSON.parse(encoded);
|
|
2610
|
+
}
|
|
2611
|
+
return {};
|
|
2612
|
+
}), "parseBody");
|
|
2613
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2614
|
+
const value = await parseBody(errorBody, context);
|
|
2615
|
+
value.message = value.message ?? value.Message;
|
|
2616
|
+
return value;
|
|
2617
|
+
}, "parseErrorBody");
|
|
2618
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2619
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2620
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2621
|
+
let cleanValue = rawValue;
|
|
2622
|
+
if (typeof cleanValue === "number") {
|
|
2623
|
+
cleanValue = cleanValue.toString();
|
|
2624
|
+
}
|
|
2625
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2626
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2627
|
+
}
|
|
2628
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2629
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2630
|
+
}
|
|
2631
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2632
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2633
|
+
}
|
|
2634
|
+
return cleanValue;
|
|
2635
|
+
}, "sanitizeErrorCode");
|
|
2636
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2637
|
+
if (headerKey !== void 0) {
|
|
2638
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2639
|
+
}
|
|
2640
|
+
if (data.code !== void 0) {
|
|
2641
|
+
return sanitizeErrorCode(data.code);
|
|
2642
|
+
}
|
|
2643
|
+
if (data["__type"] !== void 0) {
|
|
2644
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2645
|
+
}
|
|
2646
|
+
}, "loadRestJsonErrorCode");
|
|
2647
|
+
|
|
2648
|
+
// src/commands/CancelJobCommand.ts
|
|
2649
|
+
var _CancelJobCommand = class _CancelJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2650
|
+
...commonParams
|
|
2651
|
+
}).m(function(Command, cs, config, o) {
|
|
2652
|
+
return [
|
|
2653
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2654
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2655
|
+
];
|
|
2656
|
+
}).s("DataExchange", "CancelJob", {}).n("DataExchangeClient", "CancelJobCommand").f(void 0, void 0).ser(se_CancelJobCommand).de(de_CancelJobCommand).build() {
|
|
2657
|
+
};
|
|
2658
|
+
__name(_CancelJobCommand, "CancelJobCommand");
|
|
2659
|
+
var CancelJobCommand = _CancelJobCommand;
|
|
2660
|
+
|
|
2661
|
+
// src/commands/CreateDataSetCommand.ts
|
|
2662
|
+
|
|
2663
|
+
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
var _CreateDataSetCommand = class _CreateDataSetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2667
|
+
...commonParams
|
|
2668
|
+
}).m(function(Command, cs, config, o) {
|
|
2669
|
+
return [
|
|
2670
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2671
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2672
|
+
];
|
|
2673
|
+
}).s("DataExchange", "CreateDataSet", {}).n("DataExchangeClient", "CreateDataSetCommand").f(void 0, void 0).ser(se_CreateDataSetCommand).de(de_CreateDataSetCommand).build() {
|
|
2674
|
+
};
|
|
2675
|
+
__name(_CreateDataSetCommand, "CreateDataSetCommand");
|
|
2676
|
+
var CreateDataSetCommand = _CreateDataSetCommand;
|
|
2677
|
+
|
|
2678
|
+
// src/commands/CreateEventActionCommand.ts
|
|
2679
|
+
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
var _CreateEventActionCommand = class _CreateEventActionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2684
|
+
...commonParams
|
|
2685
|
+
}).m(function(Command, cs, config, o) {
|
|
2686
|
+
return [
|
|
2687
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2688
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2689
|
+
];
|
|
2690
|
+
}).s("DataExchange", "CreateEventAction", {}).n("DataExchangeClient", "CreateEventActionCommand").f(void 0, void 0).ser(se_CreateEventActionCommand).de(de_CreateEventActionCommand).build() {
|
|
2691
|
+
};
|
|
2692
|
+
__name(_CreateEventActionCommand, "CreateEventActionCommand");
|
|
2693
|
+
var CreateEventActionCommand = _CreateEventActionCommand;
|
|
2694
|
+
|
|
2695
|
+
// src/commands/CreateJobCommand.ts
|
|
2696
|
+
|
|
2697
|
+
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
var _CreateJobCommand = class _CreateJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2701
|
+
...commonParams
|
|
2702
|
+
}).m(function(Command, cs, config, o) {
|
|
2703
|
+
return [
|
|
2704
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2705
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2706
|
+
];
|
|
2707
|
+
}).s("DataExchange", "CreateJob", {}).n("DataExchangeClient", "CreateJobCommand").f(void 0, void 0).ser(se_CreateJobCommand).de(de_CreateJobCommand).build() {
|
|
2708
|
+
};
|
|
2709
|
+
__name(_CreateJobCommand, "CreateJobCommand");
|
|
2710
|
+
var CreateJobCommand = _CreateJobCommand;
|
|
2711
|
+
|
|
2712
|
+
// src/commands/CreateRevisionCommand.ts
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
var _CreateRevisionCommand = class _CreateRevisionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2718
|
+
...commonParams
|
|
2719
|
+
}).m(function(Command, cs, config, o) {
|
|
2720
|
+
return [
|
|
2721
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2722
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2723
|
+
];
|
|
2724
|
+
}).s("DataExchange", "CreateRevision", {}).n("DataExchangeClient", "CreateRevisionCommand").f(void 0, void 0).ser(se_CreateRevisionCommand).de(de_CreateRevisionCommand).build() {
|
|
2725
|
+
};
|
|
2726
|
+
__name(_CreateRevisionCommand, "CreateRevisionCommand");
|
|
2727
|
+
var CreateRevisionCommand = _CreateRevisionCommand;
|
|
2728
|
+
|
|
2729
|
+
// src/commands/DeleteAssetCommand.ts
|
|
2730
|
+
|
|
2731
|
+
|
|
2732
|
+
|
|
2733
|
+
|
|
2734
|
+
var _DeleteAssetCommand = class _DeleteAssetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2735
|
+
...commonParams
|
|
2736
|
+
}).m(function(Command, cs, config, o) {
|
|
2737
|
+
return [
|
|
2738
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2739
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2740
|
+
];
|
|
2741
|
+
}).s("DataExchange", "DeleteAsset", {}).n("DataExchangeClient", "DeleteAssetCommand").f(void 0, void 0).ser(se_DeleteAssetCommand).de(de_DeleteAssetCommand).build() {
|
|
2742
|
+
};
|
|
2743
|
+
__name(_DeleteAssetCommand, "DeleteAssetCommand");
|
|
2744
|
+
var DeleteAssetCommand = _DeleteAssetCommand;
|
|
2745
|
+
|
|
2746
|
+
// src/commands/DeleteDataSetCommand.ts
|
|
2747
|
+
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
|
|
2751
|
+
var _DeleteDataSetCommand = class _DeleteDataSetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2752
|
+
...commonParams
|
|
2753
|
+
}).m(function(Command, cs, config, o) {
|
|
2754
|
+
return [
|
|
2755
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2756
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2757
|
+
];
|
|
2758
|
+
}).s("DataExchange", "DeleteDataSet", {}).n("DataExchangeClient", "DeleteDataSetCommand").f(void 0, void 0).ser(se_DeleteDataSetCommand).de(de_DeleteDataSetCommand).build() {
|
|
2759
|
+
};
|
|
2760
|
+
__name(_DeleteDataSetCommand, "DeleteDataSetCommand");
|
|
2761
|
+
var DeleteDataSetCommand = _DeleteDataSetCommand;
|
|
2762
|
+
|
|
2763
|
+
// src/commands/DeleteEventActionCommand.ts
|
|
2764
|
+
|
|
2765
|
+
|
|
2766
|
+
|
|
2767
|
+
|
|
2768
|
+
var _DeleteEventActionCommand = class _DeleteEventActionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2769
|
+
...commonParams
|
|
2770
|
+
}).m(function(Command, cs, config, o) {
|
|
2771
|
+
return [
|
|
2772
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2773
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2774
|
+
];
|
|
2775
|
+
}).s("DataExchange", "DeleteEventAction", {}).n("DataExchangeClient", "DeleteEventActionCommand").f(void 0, void 0).ser(se_DeleteEventActionCommand).de(de_DeleteEventActionCommand).build() {
|
|
2776
|
+
};
|
|
2777
|
+
__name(_DeleteEventActionCommand, "DeleteEventActionCommand");
|
|
2778
|
+
var DeleteEventActionCommand = _DeleteEventActionCommand;
|
|
2779
|
+
|
|
2780
|
+
// src/commands/DeleteRevisionCommand.ts
|
|
2781
|
+
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
var _DeleteRevisionCommand = class _DeleteRevisionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2786
|
+
...commonParams
|
|
2787
|
+
}).m(function(Command, cs, config, o) {
|
|
2788
|
+
return [
|
|
2789
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2790
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2791
|
+
];
|
|
2792
|
+
}).s("DataExchange", "DeleteRevision", {}).n("DataExchangeClient", "DeleteRevisionCommand").f(void 0, void 0).ser(se_DeleteRevisionCommand).de(de_DeleteRevisionCommand).build() {
|
|
2793
|
+
};
|
|
2794
|
+
__name(_DeleteRevisionCommand, "DeleteRevisionCommand");
|
|
2795
|
+
var DeleteRevisionCommand = _DeleteRevisionCommand;
|
|
2796
|
+
|
|
2797
|
+
// src/commands/GetAssetCommand.ts
|
|
2798
|
+
|
|
2799
|
+
|
|
2800
|
+
|
|
2801
|
+
|
|
2802
|
+
var _GetAssetCommand = class _GetAssetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2803
|
+
...commonParams
|
|
2804
|
+
}).m(function(Command, cs, config, o) {
|
|
2805
|
+
return [
|
|
2806
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2807
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2808
|
+
];
|
|
2809
|
+
}).s("DataExchange", "GetAsset", {}).n("DataExchangeClient", "GetAssetCommand").f(void 0, void 0).ser(se_GetAssetCommand).de(de_GetAssetCommand).build() {
|
|
2810
|
+
};
|
|
2811
|
+
__name(_GetAssetCommand, "GetAssetCommand");
|
|
2812
|
+
var GetAssetCommand = _GetAssetCommand;
|
|
2813
|
+
|
|
2814
|
+
// src/commands/GetDataSetCommand.ts
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
|
|
2819
|
+
var _GetDataSetCommand = class _GetDataSetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2820
|
+
...commonParams
|
|
2821
|
+
}).m(function(Command, cs, config, o) {
|
|
2822
|
+
return [
|
|
2823
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2824
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2825
|
+
];
|
|
2826
|
+
}).s("DataExchange", "GetDataSet", {}).n("DataExchangeClient", "GetDataSetCommand").f(void 0, void 0).ser(se_GetDataSetCommand).de(de_GetDataSetCommand).build() {
|
|
2827
|
+
};
|
|
2828
|
+
__name(_GetDataSetCommand, "GetDataSetCommand");
|
|
2829
|
+
var GetDataSetCommand = _GetDataSetCommand;
|
|
2830
|
+
|
|
2831
|
+
// src/commands/GetEventActionCommand.ts
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
|
|
2835
|
+
|
|
2836
|
+
var _GetEventActionCommand = class _GetEventActionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2837
|
+
...commonParams
|
|
2838
|
+
}).m(function(Command, cs, config, o) {
|
|
2839
|
+
return [
|
|
2840
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2841
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2842
|
+
];
|
|
2843
|
+
}).s("DataExchange", "GetEventAction", {}).n("DataExchangeClient", "GetEventActionCommand").f(void 0, void 0).ser(se_GetEventActionCommand).de(de_GetEventActionCommand).build() {
|
|
2844
|
+
};
|
|
2845
|
+
__name(_GetEventActionCommand, "GetEventActionCommand");
|
|
2846
|
+
var GetEventActionCommand = _GetEventActionCommand;
|
|
2847
|
+
|
|
2848
|
+
// src/commands/GetJobCommand.ts
|
|
2849
|
+
|
|
2850
|
+
|
|
2851
|
+
|
|
2852
|
+
|
|
2853
|
+
var _GetJobCommand = class _GetJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2854
|
+
...commonParams
|
|
2855
|
+
}).m(function(Command, cs, config, o) {
|
|
2856
|
+
return [
|
|
2857
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2858
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2859
|
+
];
|
|
2860
|
+
}).s("DataExchange", "GetJob", {}).n("DataExchangeClient", "GetJobCommand").f(void 0, void 0).ser(se_GetJobCommand).de(de_GetJobCommand).build() {
|
|
2861
|
+
};
|
|
2862
|
+
__name(_GetJobCommand, "GetJobCommand");
|
|
2863
|
+
var GetJobCommand = _GetJobCommand;
|
|
2864
|
+
|
|
2865
|
+
// src/commands/GetRevisionCommand.ts
|
|
2866
|
+
|
|
2867
|
+
|
|
2868
|
+
|
|
2869
|
+
|
|
2870
|
+
var _GetRevisionCommand = class _GetRevisionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2871
|
+
...commonParams
|
|
2872
|
+
}).m(function(Command, cs, config, o) {
|
|
2873
|
+
return [
|
|
2874
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2875
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2876
|
+
];
|
|
2877
|
+
}).s("DataExchange", "GetRevision", {}).n("DataExchangeClient", "GetRevisionCommand").f(void 0, void 0).ser(se_GetRevisionCommand).de(de_GetRevisionCommand).build() {
|
|
2878
|
+
};
|
|
2879
|
+
__name(_GetRevisionCommand, "GetRevisionCommand");
|
|
2880
|
+
var GetRevisionCommand = _GetRevisionCommand;
|
|
2881
|
+
|
|
2882
|
+
// src/commands/ListDataSetRevisionsCommand.ts
|
|
2883
|
+
|
|
2884
|
+
|
|
2885
|
+
|
|
2886
|
+
|
|
2887
|
+
var _ListDataSetRevisionsCommand = class _ListDataSetRevisionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2888
|
+
...commonParams
|
|
2889
|
+
}).m(function(Command, cs, config, o) {
|
|
2890
|
+
return [
|
|
2891
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2892
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2893
|
+
];
|
|
2894
|
+
}).s("DataExchange", "ListDataSetRevisions", {}).n("DataExchangeClient", "ListDataSetRevisionsCommand").f(void 0, void 0).ser(se_ListDataSetRevisionsCommand).de(de_ListDataSetRevisionsCommand).build() {
|
|
2895
|
+
};
|
|
2896
|
+
__name(_ListDataSetRevisionsCommand, "ListDataSetRevisionsCommand");
|
|
2897
|
+
var ListDataSetRevisionsCommand = _ListDataSetRevisionsCommand;
|
|
2898
|
+
|
|
2899
|
+
// src/commands/ListDataSetsCommand.ts
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
|
|
2903
|
+
|
|
2904
|
+
var _ListDataSetsCommand = class _ListDataSetsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2905
|
+
...commonParams
|
|
2906
|
+
}).m(function(Command, cs, config, o) {
|
|
2907
|
+
return [
|
|
2908
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2909
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2910
|
+
];
|
|
2911
|
+
}).s("DataExchange", "ListDataSets", {}).n("DataExchangeClient", "ListDataSetsCommand").f(void 0, void 0).ser(se_ListDataSetsCommand).de(de_ListDataSetsCommand).build() {
|
|
2912
|
+
};
|
|
2913
|
+
__name(_ListDataSetsCommand, "ListDataSetsCommand");
|
|
2914
|
+
var ListDataSetsCommand = _ListDataSetsCommand;
|
|
2915
|
+
|
|
2916
|
+
// src/commands/ListEventActionsCommand.ts
|
|
2917
|
+
|
|
2918
|
+
|
|
2919
|
+
|
|
2920
|
+
|
|
2921
|
+
var _ListEventActionsCommand = class _ListEventActionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2922
|
+
...commonParams
|
|
2923
|
+
}).m(function(Command, cs, config, o) {
|
|
2924
|
+
return [
|
|
2925
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2926
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2927
|
+
];
|
|
2928
|
+
}).s("DataExchange", "ListEventActions", {}).n("DataExchangeClient", "ListEventActionsCommand").f(void 0, void 0).ser(se_ListEventActionsCommand).de(de_ListEventActionsCommand).build() {
|
|
2929
|
+
};
|
|
2930
|
+
__name(_ListEventActionsCommand, "ListEventActionsCommand");
|
|
2931
|
+
var ListEventActionsCommand = _ListEventActionsCommand;
|
|
2932
|
+
|
|
2933
|
+
// src/commands/ListJobsCommand.ts
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
|
|
2938
|
+
var _ListJobsCommand = class _ListJobsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2939
|
+
...commonParams
|
|
2940
|
+
}).m(function(Command, cs, config, o) {
|
|
2941
|
+
return [
|
|
2942
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2943
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2944
|
+
];
|
|
2945
|
+
}).s("DataExchange", "ListJobs", {}).n("DataExchangeClient", "ListJobsCommand").f(void 0, void 0).ser(se_ListJobsCommand).de(de_ListJobsCommand).build() {
|
|
2946
|
+
};
|
|
2947
|
+
__name(_ListJobsCommand, "ListJobsCommand");
|
|
2948
|
+
var ListJobsCommand = _ListJobsCommand;
|
|
2949
|
+
|
|
2950
|
+
// src/commands/ListRevisionAssetsCommand.ts
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
var _ListRevisionAssetsCommand = class _ListRevisionAssetsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2956
|
+
...commonParams
|
|
2957
|
+
}).m(function(Command, cs, config, o) {
|
|
2958
|
+
return [
|
|
2959
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2960
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2961
|
+
];
|
|
2962
|
+
}).s("DataExchange", "ListRevisionAssets", {}).n("DataExchangeClient", "ListRevisionAssetsCommand").f(void 0, void 0).ser(se_ListRevisionAssetsCommand).de(de_ListRevisionAssetsCommand).build() {
|
|
2963
|
+
};
|
|
2964
|
+
__name(_ListRevisionAssetsCommand, "ListRevisionAssetsCommand");
|
|
2965
|
+
var ListRevisionAssetsCommand = _ListRevisionAssetsCommand;
|
|
2966
|
+
|
|
2967
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
|
|
2972
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2973
|
+
...commonParams
|
|
2974
|
+
}).m(function(Command, cs, config, o) {
|
|
2975
|
+
return [
|
|
2976
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2977
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2978
|
+
];
|
|
2979
|
+
}).s("DataExchange", "ListTagsForResource", {}).n("DataExchangeClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2980
|
+
};
|
|
2981
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2982
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2983
|
+
|
|
2984
|
+
// src/commands/RevokeRevisionCommand.ts
|
|
2985
|
+
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
var _RevokeRevisionCommand = class _RevokeRevisionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2990
|
+
...commonParams
|
|
2991
|
+
}).m(function(Command, cs, config, o) {
|
|
2992
|
+
return [
|
|
2993
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2994
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2995
|
+
];
|
|
2996
|
+
}).s("DataExchange", "RevokeRevision", {}).n("DataExchangeClient", "RevokeRevisionCommand").f(void 0, void 0).ser(se_RevokeRevisionCommand).de(de_RevokeRevisionCommand).build() {
|
|
2997
|
+
};
|
|
2998
|
+
__name(_RevokeRevisionCommand, "RevokeRevisionCommand");
|
|
2999
|
+
var RevokeRevisionCommand = _RevokeRevisionCommand;
|
|
3000
|
+
|
|
3001
|
+
// src/commands/SendApiAssetCommand.ts
|
|
3002
|
+
|
|
3003
|
+
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
var _SendApiAssetCommand = class _SendApiAssetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3007
|
+
...commonParams
|
|
3008
|
+
}).m(function(Command, cs, config, o) {
|
|
3009
|
+
return [
|
|
3010
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3011
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3012
|
+
];
|
|
3013
|
+
}).s("DataExchange", "SendApiAsset", {}).n("DataExchangeClient", "SendApiAssetCommand").f(void 0, void 0).ser(se_SendApiAssetCommand).de(de_SendApiAssetCommand).build() {
|
|
3014
|
+
};
|
|
3015
|
+
__name(_SendApiAssetCommand, "SendApiAssetCommand");
|
|
3016
|
+
var SendApiAssetCommand = _SendApiAssetCommand;
|
|
3017
|
+
|
|
3018
|
+
// src/commands/SendDataSetNotificationCommand.ts
|
|
3019
|
+
|
|
3020
|
+
|
|
3021
|
+
|
|
3022
|
+
|
|
3023
|
+
var _SendDataSetNotificationCommand = class _SendDataSetNotificationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3024
|
+
...commonParams
|
|
3025
|
+
}).m(function(Command, cs, config, o) {
|
|
3026
|
+
return [
|
|
3027
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3028
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3029
|
+
];
|
|
3030
|
+
}).s("DataExchange", "SendDataSetNotification", {}).n("DataExchangeClient", "SendDataSetNotificationCommand").f(void 0, void 0).ser(se_SendDataSetNotificationCommand).de(de_SendDataSetNotificationCommand).build() {
|
|
3031
|
+
};
|
|
3032
|
+
__name(_SendDataSetNotificationCommand, "SendDataSetNotificationCommand");
|
|
3033
|
+
var SendDataSetNotificationCommand = _SendDataSetNotificationCommand;
|
|
3034
|
+
|
|
3035
|
+
// src/commands/StartJobCommand.ts
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
|
|
3040
|
+
var _StartJobCommand = class _StartJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3041
|
+
...commonParams
|
|
3042
|
+
}).m(function(Command, cs, config, o) {
|
|
3043
|
+
return [
|
|
3044
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3045
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3046
|
+
];
|
|
3047
|
+
}).s("DataExchange", "StartJob", {}).n("DataExchangeClient", "StartJobCommand").f(void 0, void 0).ser(se_StartJobCommand).de(de_StartJobCommand).build() {
|
|
3048
|
+
};
|
|
3049
|
+
__name(_StartJobCommand, "StartJobCommand");
|
|
3050
|
+
var StartJobCommand = _StartJobCommand;
|
|
3051
|
+
|
|
3052
|
+
// src/commands/TagResourceCommand.ts
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
|
|
3056
|
+
|
|
3057
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3058
|
+
...commonParams
|
|
3059
|
+
}).m(function(Command, cs, config, o) {
|
|
3060
|
+
return [
|
|
3061
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3062
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3063
|
+
];
|
|
3064
|
+
}).s("DataExchange", "TagResource", {}).n("DataExchangeClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
3065
|
+
};
|
|
3066
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
3067
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
3068
|
+
|
|
3069
|
+
// src/commands/UntagResourceCommand.ts
|
|
3070
|
+
|
|
3071
|
+
|
|
3072
|
+
|
|
3073
|
+
|
|
3074
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3075
|
+
...commonParams
|
|
3076
|
+
}).m(function(Command, cs, config, o) {
|
|
3077
|
+
return [
|
|
3078
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3079
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3080
|
+
];
|
|
3081
|
+
}).s("DataExchange", "UntagResource", {}).n("DataExchangeClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
3082
|
+
};
|
|
3083
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
3084
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
3085
|
+
|
|
3086
|
+
// src/commands/UpdateAssetCommand.ts
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
|
|
3091
|
+
var _UpdateAssetCommand = class _UpdateAssetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3092
|
+
...commonParams
|
|
3093
|
+
}).m(function(Command, cs, config, o) {
|
|
3094
|
+
return [
|
|
3095
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3096
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3097
|
+
];
|
|
3098
|
+
}).s("DataExchange", "UpdateAsset", {}).n("DataExchangeClient", "UpdateAssetCommand").f(void 0, void 0).ser(se_UpdateAssetCommand).de(de_UpdateAssetCommand).build() {
|
|
3099
|
+
};
|
|
3100
|
+
__name(_UpdateAssetCommand, "UpdateAssetCommand");
|
|
3101
|
+
var UpdateAssetCommand = _UpdateAssetCommand;
|
|
3102
|
+
|
|
3103
|
+
// src/commands/UpdateDataSetCommand.ts
|
|
3104
|
+
|
|
3105
|
+
|
|
3106
|
+
|
|
3107
|
+
|
|
3108
|
+
var _UpdateDataSetCommand = class _UpdateDataSetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3109
|
+
...commonParams
|
|
3110
|
+
}).m(function(Command, cs, config, o) {
|
|
3111
|
+
return [
|
|
3112
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3113
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3114
|
+
];
|
|
3115
|
+
}).s("DataExchange", "UpdateDataSet", {}).n("DataExchangeClient", "UpdateDataSetCommand").f(void 0, void 0).ser(se_UpdateDataSetCommand).de(de_UpdateDataSetCommand).build() {
|
|
3116
|
+
};
|
|
3117
|
+
__name(_UpdateDataSetCommand, "UpdateDataSetCommand");
|
|
3118
|
+
var UpdateDataSetCommand = _UpdateDataSetCommand;
|
|
3119
|
+
|
|
3120
|
+
// src/commands/UpdateEventActionCommand.ts
|
|
3121
|
+
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
|
|
3125
|
+
var _UpdateEventActionCommand = class _UpdateEventActionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3126
|
+
...commonParams
|
|
3127
|
+
}).m(function(Command, cs, config, o) {
|
|
3128
|
+
return [
|
|
3129
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3130
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3131
|
+
];
|
|
3132
|
+
}).s("DataExchange", "UpdateEventAction", {}).n("DataExchangeClient", "UpdateEventActionCommand").f(void 0, void 0).ser(se_UpdateEventActionCommand).de(de_UpdateEventActionCommand).build() {
|
|
3133
|
+
};
|
|
3134
|
+
__name(_UpdateEventActionCommand, "UpdateEventActionCommand");
|
|
3135
|
+
var UpdateEventActionCommand = _UpdateEventActionCommand;
|
|
3136
|
+
|
|
3137
|
+
// src/commands/UpdateRevisionCommand.ts
|
|
3138
|
+
|
|
3139
|
+
|
|
3140
|
+
|
|
3141
|
+
|
|
3142
|
+
var _UpdateRevisionCommand = class _UpdateRevisionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3143
|
+
...commonParams
|
|
3144
|
+
}).m(function(Command, cs, config, o) {
|
|
3145
|
+
return [
|
|
3146
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3147
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3148
|
+
];
|
|
3149
|
+
}).s("DataExchange", "UpdateRevision", {}).n("DataExchangeClient", "UpdateRevisionCommand").f(void 0, void 0).ser(se_UpdateRevisionCommand).de(de_UpdateRevisionCommand).build() {
|
|
3150
|
+
};
|
|
3151
|
+
__name(_UpdateRevisionCommand, "UpdateRevisionCommand");
|
|
3152
|
+
var UpdateRevisionCommand = _UpdateRevisionCommand;
|
|
3153
|
+
|
|
3154
|
+
// src/DataExchange.ts
|
|
3155
|
+
var commands = {
|
|
3156
|
+
CancelJobCommand,
|
|
3157
|
+
CreateDataSetCommand,
|
|
3158
|
+
CreateEventActionCommand,
|
|
3159
|
+
CreateJobCommand,
|
|
3160
|
+
CreateRevisionCommand,
|
|
3161
|
+
DeleteAssetCommand,
|
|
3162
|
+
DeleteDataSetCommand,
|
|
3163
|
+
DeleteEventActionCommand,
|
|
3164
|
+
DeleteRevisionCommand,
|
|
3165
|
+
GetAssetCommand,
|
|
3166
|
+
GetDataSetCommand,
|
|
3167
|
+
GetEventActionCommand,
|
|
3168
|
+
GetJobCommand,
|
|
3169
|
+
GetRevisionCommand,
|
|
3170
|
+
ListDataSetRevisionsCommand,
|
|
3171
|
+
ListDataSetsCommand,
|
|
3172
|
+
ListEventActionsCommand,
|
|
3173
|
+
ListJobsCommand,
|
|
3174
|
+
ListRevisionAssetsCommand,
|
|
3175
|
+
ListTagsForResourceCommand,
|
|
3176
|
+
RevokeRevisionCommand,
|
|
3177
|
+
SendApiAssetCommand,
|
|
3178
|
+
SendDataSetNotificationCommand,
|
|
3179
|
+
StartJobCommand,
|
|
3180
|
+
TagResourceCommand,
|
|
3181
|
+
UntagResourceCommand,
|
|
3182
|
+
UpdateAssetCommand,
|
|
3183
|
+
UpdateDataSetCommand,
|
|
3184
|
+
UpdateEventActionCommand,
|
|
3185
|
+
UpdateRevisionCommand
|
|
3186
|
+
};
|
|
3187
|
+
var _DataExchange = class _DataExchange extends DataExchangeClient {
|
|
3188
|
+
};
|
|
3189
|
+
__name(_DataExchange, "DataExchange");
|
|
3190
|
+
var DataExchange = _DataExchange;
|
|
3191
|
+
(0, import_smithy_client.createAggregatedClient)(commands, DataExchange);
|
|
3192
|
+
|
|
3193
|
+
// src/pagination/ListDataSetRevisionsPaginator.ts
|
|
3194
|
+
|
|
3195
|
+
var paginateListDataSetRevisions = (0, import_core.createPaginator)(DataExchangeClient, ListDataSetRevisionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
3196
|
+
|
|
3197
|
+
// src/pagination/ListDataSetsPaginator.ts
|
|
3198
|
+
|
|
3199
|
+
var paginateListDataSets = (0, import_core.createPaginator)(DataExchangeClient, ListDataSetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
3200
|
+
|
|
3201
|
+
// src/pagination/ListEventActionsPaginator.ts
|
|
3202
|
+
|
|
3203
|
+
var paginateListEventActions = (0, import_core.createPaginator)(DataExchangeClient, ListEventActionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
3204
|
+
|
|
3205
|
+
// src/pagination/ListJobsPaginator.ts
|
|
3206
|
+
|
|
3207
|
+
var paginateListJobs = (0, import_core.createPaginator)(DataExchangeClient, ListJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
3208
|
+
|
|
3209
|
+
// src/pagination/ListRevisionAssetsPaginator.ts
|
|
3210
|
+
|
|
3211
|
+
var paginateListRevisionAssets = (0, import_core.createPaginator)(DataExchangeClient, ListRevisionAssetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
3212
|
+
|
|
3213
|
+
// src/index.ts
|
|
3214
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
3215
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3216
|
+
|
|
3217
|
+
0 && (module.exports = {
|
|
3218
|
+
AccessDeniedException,
|
|
3219
|
+
AssetType,
|
|
3220
|
+
CancelJobCommand,
|
|
3221
|
+
Code,
|
|
3222
|
+
ConflictException,
|
|
3223
|
+
CreateDataSetCommand,
|
|
3224
|
+
CreateEventActionCommand,
|
|
3225
|
+
CreateJobCommand,
|
|
3226
|
+
CreateRevisionCommand,
|
|
3227
|
+
DataExchange,
|
|
3228
|
+
DataExchangeClient,
|
|
3229
|
+
DataExchangeServiceException,
|
|
3230
|
+
DatabaseLFTagPolicyPermission,
|
|
3231
|
+
DeleteAssetCommand,
|
|
3232
|
+
DeleteDataSetCommand,
|
|
3233
|
+
DeleteEventActionCommand,
|
|
3234
|
+
DeleteRevisionCommand,
|
|
3235
|
+
ExceptionCause,
|
|
3236
|
+
GetAssetCommand,
|
|
3237
|
+
GetDataSetCommand,
|
|
3238
|
+
GetEventActionCommand,
|
|
3239
|
+
GetJobCommand,
|
|
3240
|
+
GetRevisionCommand,
|
|
3241
|
+
InternalServerException,
|
|
3242
|
+
JobErrorLimitName,
|
|
3243
|
+
JobErrorResourceTypes,
|
|
3244
|
+
LFPermission,
|
|
3245
|
+
LFResourceType,
|
|
3246
|
+
LakeFormationDataPermissionType,
|
|
3247
|
+
LimitName,
|
|
3248
|
+
ListDataSetRevisionsCommand,
|
|
3249
|
+
ListDataSetsCommand,
|
|
3250
|
+
ListEventActionsCommand,
|
|
3251
|
+
ListJobsCommand,
|
|
3252
|
+
ListRevisionAssetsCommand,
|
|
3253
|
+
ListTagsForResourceCommand,
|
|
3254
|
+
NotificationType,
|
|
3255
|
+
Origin,
|
|
3256
|
+
ProtocolType,
|
|
3257
|
+
ResourceNotFoundException,
|
|
3258
|
+
ResourceType,
|
|
3259
|
+
RevokeRevisionCommand,
|
|
3260
|
+
SchemaChangeType,
|
|
3261
|
+
SendApiAssetCommand,
|
|
3262
|
+
SendDataSetNotificationCommand,
|
|
3263
|
+
ServerSideEncryptionTypes,
|
|
3264
|
+
ServiceLimitExceededException,
|
|
3265
|
+
StartJobCommand,
|
|
3266
|
+
State,
|
|
3267
|
+
TableTagPolicyLFPermission,
|
|
3268
|
+
TagResourceCommand,
|
|
3269
|
+
ThrottlingException,
|
|
3270
|
+
Type,
|
|
3271
|
+
UntagResourceCommand,
|
|
3272
|
+
UpdateAssetCommand,
|
|
3273
|
+
UpdateDataSetCommand,
|
|
3274
|
+
UpdateEventActionCommand,
|
|
3275
|
+
UpdateRevisionCommand,
|
|
3276
|
+
ValidationException,
|
|
3277
|
+
__Client,
|
|
3278
|
+
paginateListDataSetRevisions,
|
|
3279
|
+
paginateListDataSets,
|
|
3280
|
+
paginateListEventActions,
|
|
3281
|
+
paginateListJobs,
|
|
3282
|
+
paginateListRevisionAssets
|
|
3283
|
+
});
|
|
3284
|
+
|