@aws-sdk/client-oam 3.490.0 → 3.495.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/OAM.js +1 -41
- package/dist-cjs/OAMClient.js +1 -43
- package/dist-cjs/commands/CreateLinkCommand.js +1 -28
- package/dist-cjs/commands/CreateSinkCommand.js +1 -28
- package/dist-cjs/commands/DeleteLinkCommand.js +1 -28
- package/dist-cjs/commands/DeleteSinkCommand.js +1 -28
- package/dist-cjs/commands/GetLinkCommand.js +1 -28
- package/dist-cjs/commands/GetSinkCommand.js +1 -28
- package/dist-cjs/commands/GetSinkPolicyCommand.js +1 -28
- package/dist-cjs/commands/ListAttachedLinksCommand.js +1 -28
- package/dist-cjs/commands/ListLinksCommand.js +1 -28
- package/dist-cjs/commands/ListSinksCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutSinkPolicyCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateLinkCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -18
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1680 -11
- package/dist-cjs/models/OAMServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -126
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAttachedLinksPaginator.js +1 -7
- package/dist-cjs/pagination/ListLinksPaginator.js +1 -7
- package/dist-cjs/pagination/ListSinksPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1047
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1681 @@
|
|
|
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
|
+
ConflictException: () => ConflictException,
|
|
25
|
+
CreateLinkCommand: () => CreateLinkCommand,
|
|
26
|
+
CreateSinkCommand: () => CreateSinkCommand,
|
|
27
|
+
DeleteLinkCommand: () => DeleteLinkCommand,
|
|
28
|
+
DeleteSinkCommand: () => DeleteSinkCommand,
|
|
29
|
+
GetLinkCommand: () => GetLinkCommand,
|
|
30
|
+
GetSinkCommand: () => GetSinkCommand,
|
|
31
|
+
GetSinkPolicyCommand: () => GetSinkPolicyCommand,
|
|
32
|
+
InternalServiceFault: () => InternalServiceFault,
|
|
33
|
+
InvalidParameterException: () => InvalidParameterException,
|
|
34
|
+
ListAttachedLinksCommand: () => ListAttachedLinksCommand,
|
|
35
|
+
ListLinksCommand: () => ListLinksCommand,
|
|
36
|
+
ListSinksCommand: () => ListSinksCommand,
|
|
37
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
38
|
+
MissingRequiredParameterException: () => MissingRequiredParameterException,
|
|
39
|
+
OAM: () => OAM,
|
|
40
|
+
OAMClient: () => OAMClient,
|
|
41
|
+
OAMServiceException: () => OAMServiceException,
|
|
42
|
+
PutSinkPolicyCommand: () => PutSinkPolicyCommand,
|
|
43
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
44
|
+
ResourceType: () => ResourceType,
|
|
45
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
46
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
47
|
+
TooManyTagsException: () => TooManyTagsException,
|
|
48
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
49
|
+
UpdateLinkCommand: () => UpdateLinkCommand,
|
|
50
|
+
ValidationException: () => ValidationException,
|
|
51
|
+
__Client: () => import_smithy_client.Client,
|
|
52
|
+
paginateListAttachedLinks: () => paginateListAttachedLinks,
|
|
53
|
+
paginateListLinks: () => paginateListLinks,
|
|
54
|
+
paginateListSinks: () => paginateListSinks
|
|
55
|
+
});
|
|
56
|
+
module.exports = __toCommonJS(src_exports);
|
|
57
|
+
|
|
58
|
+
// src/OAMClient.ts
|
|
59
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
60
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
61
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
62
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
63
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
64
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
65
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
66
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
67
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
// src/endpoint/EndpointParameters.ts
|
|
71
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
72
|
+
return {
|
|
73
|
+
...options,
|
|
74
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
75
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
76
|
+
defaultSigningName: "oam"
|
|
77
|
+
};
|
|
78
|
+
}, "resolveClientEndpointParameters");
|
|
79
|
+
var commonParams = {
|
|
80
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
81
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
82
|
+
Region: { type: "builtInParams", name: "region" },
|
|
83
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
// src/OAMClient.ts
|
|
87
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
88
|
+
|
|
89
|
+
// src/runtimeExtensions.ts
|
|
90
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
91
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
92
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
93
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
94
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
95
|
+
const extensionConfiguration = {
|
|
96
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
97
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
98
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
99
|
+
};
|
|
100
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
101
|
+
return {
|
|
102
|
+
...runtimeConfig,
|
|
103
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
104
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
105
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
106
|
+
};
|
|
107
|
+
}, "resolveRuntimeExtensions");
|
|
108
|
+
|
|
109
|
+
// src/OAMClient.ts
|
|
110
|
+
var _OAMClient = class _OAMClient extends import_smithy_client.Client {
|
|
111
|
+
constructor(...[configuration]) {
|
|
112
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
113
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
114
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
115
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
116
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
117
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
118
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
119
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
120
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
121
|
+
super(_config_8);
|
|
122
|
+
this.config = _config_8;
|
|
123
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
124
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
125
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
126
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
127
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
128
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
129
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
133
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
134
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
135
|
+
*/
|
|
136
|
+
destroy() {
|
|
137
|
+
super.destroy();
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
__name(_OAMClient, "OAMClient");
|
|
141
|
+
var OAMClient = _OAMClient;
|
|
142
|
+
|
|
143
|
+
// src/OAM.ts
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
// src/commands/CreateLinkCommand.ts
|
|
147
|
+
|
|
148
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
149
|
+
|
|
150
|
+
var import_types = require("@smithy/types");
|
|
151
|
+
|
|
152
|
+
// src/protocols/Aws_restJson1.ts
|
|
153
|
+
var import_core = require("@smithy/core");
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
// src/models/OAMServiceException.ts
|
|
157
|
+
|
|
158
|
+
var _OAMServiceException = class _OAMServiceException extends import_smithy_client.ServiceException {
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
162
|
+
constructor(options) {
|
|
163
|
+
super(options);
|
|
164
|
+
Object.setPrototypeOf(this, _OAMServiceException.prototype);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
__name(_OAMServiceException, "OAMServiceException");
|
|
168
|
+
var OAMServiceException = _OAMServiceException;
|
|
169
|
+
|
|
170
|
+
// src/models/models_0.ts
|
|
171
|
+
var _ConflictException = class _ConflictException extends OAMServiceException {
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "ConflictException",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts
|
|
180
|
+
});
|
|
181
|
+
this.name = "ConflictException";
|
|
182
|
+
this.$fault = "client";
|
|
183
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
184
|
+
this.Message = opts.Message;
|
|
185
|
+
this.amznErrorType = opts.amznErrorType;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
__name(_ConflictException, "ConflictException");
|
|
189
|
+
var ConflictException = _ConflictException;
|
|
190
|
+
var ResourceType = {
|
|
191
|
+
AWS_APPLICATIONINSIGHTS_APPLICATION: "AWS::ApplicationInsights::Application",
|
|
192
|
+
AWS_CLOUDWATCH_METRIC: "AWS::CloudWatch::Metric",
|
|
193
|
+
AWS_LOGS_LOGGROUP: "AWS::Logs::LogGroup",
|
|
194
|
+
AWS_XRAY_TRACE: "AWS::XRay::Trace"
|
|
195
|
+
};
|
|
196
|
+
var _InternalServiceFault = class _InternalServiceFault extends OAMServiceException {
|
|
197
|
+
/**
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
200
|
+
constructor(opts) {
|
|
201
|
+
super({
|
|
202
|
+
name: "InternalServiceFault",
|
|
203
|
+
$fault: "server",
|
|
204
|
+
...opts
|
|
205
|
+
});
|
|
206
|
+
this.name = "InternalServiceFault";
|
|
207
|
+
this.$fault = "server";
|
|
208
|
+
Object.setPrototypeOf(this, _InternalServiceFault.prototype);
|
|
209
|
+
this.Message = opts.Message;
|
|
210
|
+
this.amznErrorType = opts.amznErrorType;
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
__name(_InternalServiceFault, "InternalServiceFault");
|
|
214
|
+
var InternalServiceFault = _InternalServiceFault;
|
|
215
|
+
var _InvalidParameterException = class _InvalidParameterException extends OAMServiceException {
|
|
216
|
+
/**
|
|
217
|
+
* @internal
|
|
218
|
+
*/
|
|
219
|
+
constructor(opts) {
|
|
220
|
+
super({
|
|
221
|
+
name: "InvalidParameterException",
|
|
222
|
+
$fault: "client",
|
|
223
|
+
...opts
|
|
224
|
+
});
|
|
225
|
+
this.name = "InvalidParameterException";
|
|
226
|
+
this.$fault = "client";
|
|
227
|
+
Object.setPrototypeOf(this, _InvalidParameterException.prototype);
|
|
228
|
+
this.amznErrorType = opts.amznErrorType;
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
__name(_InvalidParameterException, "InvalidParameterException");
|
|
232
|
+
var InvalidParameterException = _InvalidParameterException;
|
|
233
|
+
var _MissingRequiredParameterException = class _MissingRequiredParameterException extends OAMServiceException {
|
|
234
|
+
/**
|
|
235
|
+
* @internal
|
|
236
|
+
*/
|
|
237
|
+
constructor(opts) {
|
|
238
|
+
super({
|
|
239
|
+
name: "MissingRequiredParameterException",
|
|
240
|
+
$fault: "client",
|
|
241
|
+
...opts
|
|
242
|
+
});
|
|
243
|
+
this.name = "MissingRequiredParameterException";
|
|
244
|
+
this.$fault = "client";
|
|
245
|
+
Object.setPrototypeOf(this, _MissingRequiredParameterException.prototype);
|
|
246
|
+
this.amznErrorType = opts.amznErrorType;
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
__name(_MissingRequiredParameterException, "MissingRequiredParameterException");
|
|
250
|
+
var MissingRequiredParameterException = _MissingRequiredParameterException;
|
|
251
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends OAMServiceException {
|
|
252
|
+
/**
|
|
253
|
+
* @internal
|
|
254
|
+
*/
|
|
255
|
+
constructor(opts) {
|
|
256
|
+
super({
|
|
257
|
+
name: "ServiceQuotaExceededException",
|
|
258
|
+
$fault: "client",
|
|
259
|
+
...opts
|
|
260
|
+
});
|
|
261
|
+
this.name = "ServiceQuotaExceededException";
|
|
262
|
+
this.$fault = "client";
|
|
263
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
264
|
+
this.Message = opts.Message;
|
|
265
|
+
this.amznErrorType = opts.amznErrorType;
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
269
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
270
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends OAMServiceException {
|
|
271
|
+
/**
|
|
272
|
+
* @internal
|
|
273
|
+
*/
|
|
274
|
+
constructor(opts) {
|
|
275
|
+
super({
|
|
276
|
+
name: "ResourceNotFoundException",
|
|
277
|
+
$fault: "client",
|
|
278
|
+
...opts
|
|
279
|
+
});
|
|
280
|
+
this.name = "ResourceNotFoundException";
|
|
281
|
+
this.$fault = "client";
|
|
282
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
283
|
+
this.Message = opts.Message;
|
|
284
|
+
this.amznErrorType = opts.amznErrorType;
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
288
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
289
|
+
var _ValidationException = class _ValidationException extends OAMServiceException {
|
|
290
|
+
/**
|
|
291
|
+
* @internal
|
|
292
|
+
*/
|
|
293
|
+
constructor(opts) {
|
|
294
|
+
super({
|
|
295
|
+
name: "ValidationException",
|
|
296
|
+
$fault: "client",
|
|
297
|
+
...opts
|
|
298
|
+
});
|
|
299
|
+
this.name = "ValidationException";
|
|
300
|
+
this.$fault = "client";
|
|
301
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
302
|
+
this.Message = opts.Message;
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
__name(_ValidationException, "ValidationException");
|
|
306
|
+
var ValidationException = _ValidationException;
|
|
307
|
+
var _TooManyTagsException = class _TooManyTagsException extends OAMServiceException {
|
|
308
|
+
/**
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
constructor(opts) {
|
|
312
|
+
super({
|
|
313
|
+
name: "TooManyTagsException",
|
|
314
|
+
$fault: "client",
|
|
315
|
+
...opts
|
|
316
|
+
});
|
|
317
|
+
this.name = "TooManyTagsException";
|
|
318
|
+
this.$fault = "client";
|
|
319
|
+
Object.setPrototypeOf(this, _TooManyTagsException.prototype);
|
|
320
|
+
this.Message = opts.Message;
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
__name(_TooManyTagsException, "TooManyTagsException");
|
|
324
|
+
var TooManyTagsException = _TooManyTagsException;
|
|
325
|
+
|
|
326
|
+
// src/protocols/Aws_restJson1.ts
|
|
327
|
+
var se_CreateLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
328
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
329
|
+
const headers = {
|
|
330
|
+
"content-type": "application/json"
|
|
331
|
+
};
|
|
332
|
+
b.bp("/CreateLink");
|
|
333
|
+
let body;
|
|
334
|
+
body = JSON.stringify(
|
|
335
|
+
(0, import_smithy_client.take)(input, {
|
|
336
|
+
LabelTemplate: [],
|
|
337
|
+
ResourceTypes: (_) => (0, import_smithy_client._json)(_),
|
|
338
|
+
SinkIdentifier: [],
|
|
339
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
340
|
+
})
|
|
341
|
+
);
|
|
342
|
+
b.m("POST").h(headers).b(body);
|
|
343
|
+
return b.build();
|
|
344
|
+
}, "se_CreateLinkCommand");
|
|
345
|
+
var se_CreateSinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
346
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
347
|
+
const headers = {
|
|
348
|
+
"content-type": "application/json"
|
|
349
|
+
};
|
|
350
|
+
b.bp("/CreateSink");
|
|
351
|
+
let body;
|
|
352
|
+
body = JSON.stringify(
|
|
353
|
+
(0, import_smithy_client.take)(input, {
|
|
354
|
+
Name: [],
|
|
355
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
356
|
+
})
|
|
357
|
+
);
|
|
358
|
+
b.m("POST").h(headers).b(body);
|
|
359
|
+
return b.build();
|
|
360
|
+
}, "se_CreateSinkCommand");
|
|
361
|
+
var se_DeleteLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
362
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
363
|
+
const headers = {
|
|
364
|
+
"content-type": "application/json"
|
|
365
|
+
};
|
|
366
|
+
b.bp("/DeleteLink");
|
|
367
|
+
let body;
|
|
368
|
+
body = JSON.stringify(
|
|
369
|
+
(0, import_smithy_client.take)(input, {
|
|
370
|
+
Identifier: []
|
|
371
|
+
})
|
|
372
|
+
);
|
|
373
|
+
b.m("POST").h(headers).b(body);
|
|
374
|
+
return b.build();
|
|
375
|
+
}, "se_DeleteLinkCommand");
|
|
376
|
+
var se_DeleteSinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
377
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
378
|
+
const headers = {
|
|
379
|
+
"content-type": "application/json"
|
|
380
|
+
};
|
|
381
|
+
b.bp("/DeleteSink");
|
|
382
|
+
let body;
|
|
383
|
+
body = JSON.stringify(
|
|
384
|
+
(0, import_smithy_client.take)(input, {
|
|
385
|
+
Identifier: []
|
|
386
|
+
})
|
|
387
|
+
);
|
|
388
|
+
b.m("POST").h(headers).b(body);
|
|
389
|
+
return b.build();
|
|
390
|
+
}, "se_DeleteSinkCommand");
|
|
391
|
+
var se_GetLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
392
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
393
|
+
const headers = {
|
|
394
|
+
"content-type": "application/json"
|
|
395
|
+
};
|
|
396
|
+
b.bp("/GetLink");
|
|
397
|
+
let body;
|
|
398
|
+
body = JSON.stringify(
|
|
399
|
+
(0, import_smithy_client.take)(input, {
|
|
400
|
+
Identifier: []
|
|
401
|
+
})
|
|
402
|
+
);
|
|
403
|
+
b.m("POST").h(headers).b(body);
|
|
404
|
+
return b.build();
|
|
405
|
+
}, "se_GetLinkCommand");
|
|
406
|
+
var se_GetSinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
407
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
408
|
+
const headers = {
|
|
409
|
+
"content-type": "application/json"
|
|
410
|
+
};
|
|
411
|
+
b.bp("/GetSink");
|
|
412
|
+
let body;
|
|
413
|
+
body = JSON.stringify(
|
|
414
|
+
(0, import_smithy_client.take)(input, {
|
|
415
|
+
Identifier: []
|
|
416
|
+
})
|
|
417
|
+
);
|
|
418
|
+
b.m("POST").h(headers).b(body);
|
|
419
|
+
return b.build();
|
|
420
|
+
}, "se_GetSinkCommand");
|
|
421
|
+
var se_GetSinkPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
422
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
423
|
+
const headers = {
|
|
424
|
+
"content-type": "application/json"
|
|
425
|
+
};
|
|
426
|
+
b.bp("/GetSinkPolicy");
|
|
427
|
+
let body;
|
|
428
|
+
body = JSON.stringify(
|
|
429
|
+
(0, import_smithy_client.take)(input, {
|
|
430
|
+
SinkIdentifier: []
|
|
431
|
+
})
|
|
432
|
+
);
|
|
433
|
+
b.m("POST").h(headers).b(body);
|
|
434
|
+
return b.build();
|
|
435
|
+
}, "se_GetSinkPolicyCommand");
|
|
436
|
+
var se_ListAttachedLinksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
437
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
438
|
+
const headers = {
|
|
439
|
+
"content-type": "application/json"
|
|
440
|
+
};
|
|
441
|
+
b.bp("/ListAttachedLinks");
|
|
442
|
+
let body;
|
|
443
|
+
body = JSON.stringify(
|
|
444
|
+
(0, import_smithy_client.take)(input, {
|
|
445
|
+
MaxResults: [],
|
|
446
|
+
NextToken: [],
|
|
447
|
+
SinkIdentifier: []
|
|
448
|
+
})
|
|
449
|
+
);
|
|
450
|
+
b.m("POST").h(headers).b(body);
|
|
451
|
+
return b.build();
|
|
452
|
+
}, "se_ListAttachedLinksCommand");
|
|
453
|
+
var se_ListLinksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
454
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
455
|
+
const headers = {
|
|
456
|
+
"content-type": "application/json"
|
|
457
|
+
};
|
|
458
|
+
b.bp("/ListLinks");
|
|
459
|
+
let body;
|
|
460
|
+
body = JSON.stringify(
|
|
461
|
+
(0, import_smithy_client.take)(input, {
|
|
462
|
+
MaxResults: [],
|
|
463
|
+
NextToken: []
|
|
464
|
+
})
|
|
465
|
+
);
|
|
466
|
+
b.m("POST").h(headers).b(body);
|
|
467
|
+
return b.build();
|
|
468
|
+
}, "se_ListLinksCommand");
|
|
469
|
+
var se_ListSinksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
470
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
471
|
+
const headers = {
|
|
472
|
+
"content-type": "application/json"
|
|
473
|
+
};
|
|
474
|
+
b.bp("/ListSinks");
|
|
475
|
+
let body;
|
|
476
|
+
body = JSON.stringify(
|
|
477
|
+
(0, import_smithy_client.take)(input, {
|
|
478
|
+
MaxResults: [],
|
|
479
|
+
NextToken: []
|
|
480
|
+
})
|
|
481
|
+
);
|
|
482
|
+
b.m("POST").h(headers).b(body);
|
|
483
|
+
return b.build();
|
|
484
|
+
}, "se_ListSinksCommand");
|
|
485
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
486
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
487
|
+
const headers = {};
|
|
488
|
+
b.bp("/tags/{ResourceArn}");
|
|
489
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
490
|
+
let body;
|
|
491
|
+
b.m("GET").h(headers).b(body);
|
|
492
|
+
return b.build();
|
|
493
|
+
}, "se_ListTagsForResourceCommand");
|
|
494
|
+
var se_PutSinkPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
495
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
496
|
+
const headers = {
|
|
497
|
+
"content-type": "application/json"
|
|
498
|
+
};
|
|
499
|
+
b.bp("/PutSinkPolicy");
|
|
500
|
+
let body;
|
|
501
|
+
body = JSON.stringify(
|
|
502
|
+
(0, import_smithy_client.take)(input, {
|
|
503
|
+
Policy: [],
|
|
504
|
+
SinkIdentifier: []
|
|
505
|
+
})
|
|
506
|
+
);
|
|
507
|
+
b.m("POST").h(headers).b(body);
|
|
508
|
+
return b.build();
|
|
509
|
+
}, "se_PutSinkPolicyCommand");
|
|
510
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
511
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
512
|
+
const headers = {
|
|
513
|
+
"content-type": "application/json"
|
|
514
|
+
};
|
|
515
|
+
b.bp("/tags/{ResourceArn}");
|
|
516
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
517
|
+
let body;
|
|
518
|
+
body = JSON.stringify(
|
|
519
|
+
(0, import_smithy_client.take)(input, {
|
|
520
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
521
|
+
})
|
|
522
|
+
);
|
|
523
|
+
b.m("PUT").h(headers).b(body);
|
|
524
|
+
return b.build();
|
|
525
|
+
}, "se_TagResourceCommand");
|
|
526
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
527
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
528
|
+
const headers = {};
|
|
529
|
+
b.bp("/tags/{ResourceArn}");
|
|
530
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
531
|
+
const query = (0, import_smithy_client.map)({
|
|
532
|
+
[_tK]: [
|
|
533
|
+
(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
534
|
+
() => (input[_TK] || []).map((_entry) => _entry)
|
|
535
|
+
]
|
|
536
|
+
});
|
|
537
|
+
let body;
|
|
538
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
539
|
+
return b.build();
|
|
540
|
+
}, "se_UntagResourceCommand");
|
|
541
|
+
var se_UpdateLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
542
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
543
|
+
const headers = {
|
|
544
|
+
"content-type": "application/json"
|
|
545
|
+
};
|
|
546
|
+
b.bp("/UpdateLink");
|
|
547
|
+
let body;
|
|
548
|
+
body = JSON.stringify(
|
|
549
|
+
(0, import_smithy_client.take)(input, {
|
|
550
|
+
Identifier: [],
|
|
551
|
+
ResourceTypes: (_) => (0, import_smithy_client._json)(_)
|
|
552
|
+
})
|
|
553
|
+
);
|
|
554
|
+
b.m("POST").h(headers).b(body);
|
|
555
|
+
return b.build();
|
|
556
|
+
}, "se_UpdateLinkCommand");
|
|
557
|
+
var de_CreateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
558
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
+
return de_CreateLinkCommandError(output, context);
|
|
560
|
+
}
|
|
561
|
+
const contents = (0, import_smithy_client.map)({
|
|
562
|
+
$metadata: deserializeMetadata(output)
|
|
563
|
+
});
|
|
564
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
565
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
566
|
+
Arn: import_smithy_client.expectString,
|
|
567
|
+
Id: import_smithy_client.expectString,
|
|
568
|
+
Label: import_smithy_client.expectString,
|
|
569
|
+
LabelTemplate: import_smithy_client.expectString,
|
|
570
|
+
ResourceTypes: import_smithy_client._json,
|
|
571
|
+
SinkArn: import_smithy_client.expectString,
|
|
572
|
+
Tags: import_smithy_client._json
|
|
573
|
+
});
|
|
574
|
+
Object.assign(contents, doc);
|
|
575
|
+
return contents;
|
|
576
|
+
}, "de_CreateLinkCommand");
|
|
577
|
+
var de_CreateLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
578
|
+
const parsedOutput = {
|
|
579
|
+
...output,
|
|
580
|
+
body: await parseErrorBody(output.body, context)
|
|
581
|
+
};
|
|
582
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
|
+
switch (errorCode) {
|
|
584
|
+
case "ConflictException":
|
|
585
|
+
case "com.amazonaws.oam#ConflictException":
|
|
586
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
587
|
+
case "InternalServiceFault":
|
|
588
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
589
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
590
|
+
case "InvalidParameterException":
|
|
591
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
592
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
593
|
+
case "MissingRequiredParameterException":
|
|
594
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
595
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
596
|
+
case "ServiceQuotaExceededException":
|
|
597
|
+
case "com.amazonaws.oam#ServiceQuotaExceededException":
|
|
598
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
599
|
+
default:
|
|
600
|
+
const parsedBody = parsedOutput.body;
|
|
601
|
+
return throwDefaultError({
|
|
602
|
+
output,
|
|
603
|
+
parsedBody,
|
|
604
|
+
errorCode
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
}, "de_CreateLinkCommandError");
|
|
608
|
+
var de_CreateSinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
609
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
|
+
return de_CreateSinkCommandError(output, context);
|
|
611
|
+
}
|
|
612
|
+
const contents = (0, import_smithy_client.map)({
|
|
613
|
+
$metadata: deserializeMetadata(output)
|
|
614
|
+
});
|
|
615
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
616
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
617
|
+
Arn: import_smithy_client.expectString,
|
|
618
|
+
Id: import_smithy_client.expectString,
|
|
619
|
+
Name: import_smithy_client.expectString,
|
|
620
|
+
Tags: import_smithy_client._json
|
|
621
|
+
});
|
|
622
|
+
Object.assign(contents, doc);
|
|
623
|
+
return contents;
|
|
624
|
+
}, "de_CreateSinkCommand");
|
|
625
|
+
var de_CreateSinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
626
|
+
const parsedOutput = {
|
|
627
|
+
...output,
|
|
628
|
+
body: await parseErrorBody(output.body, context)
|
|
629
|
+
};
|
|
630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
631
|
+
switch (errorCode) {
|
|
632
|
+
case "ConflictException":
|
|
633
|
+
case "com.amazonaws.oam#ConflictException":
|
|
634
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
635
|
+
case "InternalServiceFault":
|
|
636
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
637
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
638
|
+
case "InvalidParameterException":
|
|
639
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
640
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
641
|
+
case "MissingRequiredParameterException":
|
|
642
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
643
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
644
|
+
case "ServiceQuotaExceededException":
|
|
645
|
+
case "com.amazonaws.oam#ServiceQuotaExceededException":
|
|
646
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
647
|
+
default:
|
|
648
|
+
const parsedBody = parsedOutput.body;
|
|
649
|
+
return throwDefaultError({
|
|
650
|
+
output,
|
|
651
|
+
parsedBody,
|
|
652
|
+
errorCode
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
}, "de_CreateSinkCommandError");
|
|
656
|
+
var de_DeleteLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
657
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
658
|
+
return de_DeleteLinkCommandError(output, context);
|
|
659
|
+
}
|
|
660
|
+
const contents = (0, import_smithy_client.map)({
|
|
661
|
+
$metadata: deserializeMetadata(output)
|
|
662
|
+
});
|
|
663
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
664
|
+
return contents;
|
|
665
|
+
}, "de_DeleteLinkCommand");
|
|
666
|
+
var de_DeleteLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
667
|
+
const parsedOutput = {
|
|
668
|
+
...output,
|
|
669
|
+
body: await parseErrorBody(output.body, context)
|
|
670
|
+
};
|
|
671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
+
switch (errorCode) {
|
|
673
|
+
case "InternalServiceFault":
|
|
674
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
675
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
676
|
+
case "InvalidParameterException":
|
|
677
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
678
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
679
|
+
case "MissingRequiredParameterException":
|
|
680
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
681
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
682
|
+
case "ResourceNotFoundException":
|
|
683
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
684
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
685
|
+
default:
|
|
686
|
+
const parsedBody = parsedOutput.body;
|
|
687
|
+
return throwDefaultError({
|
|
688
|
+
output,
|
|
689
|
+
parsedBody,
|
|
690
|
+
errorCode
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
}, "de_DeleteLinkCommandError");
|
|
694
|
+
var de_DeleteSinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
695
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
|
+
return de_DeleteSinkCommandError(output, context);
|
|
697
|
+
}
|
|
698
|
+
const contents = (0, import_smithy_client.map)({
|
|
699
|
+
$metadata: deserializeMetadata(output)
|
|
700
|
+
});
|
|
701
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
702
|
+
return contents;
|
|
703
|
+
}, "de_DeleteSinkCommand");
|
|
704
|
+
var de_DeleteSinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
705
|
+
const parsedOutput = {
|
|
706
|
+
...output,
|
|
707
|
+
body: await parseErrorBody(output.body, context)
|
|
708
|
+
};
|
|
709
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
710
|
+
switch (errorCode) {
|
|
711
|
+
case "ConflictException":
|
|
712
|
+
case "com.amazonaws.oam#ConflictException":
|
|
713
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
714
|
+
case "InternalServiceFault":
|
|
715
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
716
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
717
|
+
case "InvalidParameterException":
|
|
718
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
719
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
720
|
+
case "MissingRequiredParameterException":
|
|
721
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
722
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
723
|
+
case "ResourceNotFoundException":
|
|
724
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
725
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
726
|
+
default:
|
|
727
|
+
const parsedBody = parsedOutput.body;
|
|
728
|
+
return throwDefaultError({
|
|
729
|
+
output,
|
|
730
|
+
parsedBody,
|
|
731
|
+
errorCode
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
}, "de_DeleteSinkCommandError");
|
|
735
|
+
var de_GetLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
736
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
+
return de_GetLinkCommandError(output, context);
|
|
738
|
+
}
|
|
739
|
+
const contents = (0, import_smithy_client.map)({
|
|
740
|
+
$metadata: deserializeMetadata(output)
|
|
741
|
+
});
|
|
742
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
743
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
744
|
+
Arn: import_smithy_client.expectString,
|
|
745
|
+
Id: import_smithy_client.expectString,
|
|
746
|
+
Label: import_smithy_client.expectString,
|
|
747
|
+
LabelTemplate: import_smithy_client.expectString,
|
|
748
|
+
ResourceTypes: import_smithy_client._json,
|
|
749
|
+
SinkArn: import_smithy_client.expectString,
|
|
750
|
+
Tags: import_smithy_client._json
|
|
751
|
+
});
|
|
752
|
+
Object.assign(contents, doc);
|
|
753
|
+
return contents;
|
|
754
|
+
}, "de_GetLinkCommand");
|
|
755
|
+
var de_GetLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
|
+
const parsedOutput = {
|
|
757
|
+
...output,
|
|
758
|
+
body: await parseErrorBody(output.body, context)
|
|
759
|
+
};
|
|
760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
+
switch (errorCode) {
|
|
762
|
+
case "InternalServiceFault":
|
|
763
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
764
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
765
|
+
case "InvalidParameterException":
|
|
766
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
767
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
768
|
+
case "MissingRequiredParameterException":
|
|
769
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
770
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
771
|
+
case "ResourceNotFoundException":
|
|
772
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
773
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
774
|
+
default:
|
|
775
|
+
const parsedBody = parsedOutput.body;
|
|
776
|
+
return throwDefaultError({
|
|
777
|
+
output,
|
|
778
|
+
parsedBody,
|
|
779
|
+
errorCode
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
}, "de_GetLinkCommandError");
|
|
783
|
+
var de_GetSinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
784
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
785
|
+
return de_GetSinkCommandError(output, context);
|
|
786
|
+
}
|
|
787
|
+
const contents = (0, import_smithy_client.map)({
|
|
788
|
+
$metadata: deserializeMetadata(output)
|
|
789
|
+
});
|
|
790
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
791
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
792
|
+
Arn: import_smithy_client.expectString,
|
|
793
|
+
Id: import_smithy_client.expectString,
|
|
794
|
+
Name: import_smithy_client.expectString,
|
|
795
|
+
Tags: import_smithy_client._json
|
|
796
|
+
});
|
|
797
|
+
Object.assign(contents, doc);
|
|
798
|
+
return contents;
|
|
799
|
+
}, "de_GetSinkCommand");
|
|
800
|
+
var de_GetSinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
801
|
+
const parsedOutput = {
|
|
802
|
+
...output,
|
|
803
|
+
body: await parseErrorBody(output.body, context)
|
|
804
|
+
};
|
|
805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
|
+
switch (errorCode) {
|
|
807
|
+
case "InternalServiceFault":
|
|
808
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
809
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
810
|
+
case "InvalidParameterException":
|
|
811
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
812
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
813
|
+
case "MissingRequiredParameterException":
|
|
814
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
815
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
816
|
+
case "ResourceNotFoundException":
|
|
817
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
818
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
819
|
+
default:
|
|
820
|
+
const parsedBody = parsedOutput.body;
|
|
821
|
+
return throwDefaultError({
|
|
822
|
+
output,
|
|
823
|
+
parsedBody,
|
|
824
|
+
errorCode
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
}, "de_GetSinkCommandError");
|
|
828
|
+
var de_GetSinkPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
829
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
830
|
+
return de_GetSinkPolicyCommandError(output, context);
|
|
831
|
+
}
|
|
832
|
+
const contents = (0, import_smithy_client.map)({
|
|
833
|
+
$metadata: deserializeMetadata(output)
|
|
834
|
+
});
|
|
835
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
836
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
837
|
+
Policy: import_smithy_client.expectString,
|
|
838
|
+
SinkArn: import_smithy_client.expectString,
|
|
839
|
+
SinkId: import_smithy_client.expectString
|
|
840
|
+
});
|
|
841
|
+
Object.assign(contents, doc);
|
|
842
|
+
return contents;
|
|
843
|
+
}, "de_GetSinkPolicyCommand");
|
|
844
|
+
var de_GetSinkPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
|
+
const parsedOutput = {
|
|
846
|
+
...output,
|
|
847
|
+
body: await parseErrorBody(output.body, context)
|
|
848
|
+
};
|
|
849
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
|
+
switch (errorCode) {
|
|
851
|
+
case "InternalServiceFault":
|
|
852
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
853
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
854
|
+
case "InvalidParameterException":
|
|
855
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
856
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
857
|
+
case "MissingRequiredParameterException":
|
|
858
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
859
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
860
|
+
case "ResourceNotFoundException":
|
|
861
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
862
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
863
|
+
default:
|
|
864
|
+
const parsedBody = parsedOutput.body;
|
|
865
|
+
return throwDefaultError({
|
|
866
|
+
output,
|
|
867
|
+
parsedBody,
|
|
868
|
+
errorCode
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
}, "de_GetSinkPolicyCommandError");
|
|
872
|
+
var de_ListAttachedLinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
873
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
+
return de_ListAttachedLinksCommandError(output, context);
|
|
875
|
+
}
|
|
876
|
+
const contents = (0, import_smithy_client.map)({
|
|
877
|
+
$metadata: deserializeMetadata(output)
|
|
878
|
+
});
|
|
879
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
880
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
881
|
+
Items: import_smithy_client._json,
|
|
882
|
+
NextToken: import_smithy_client.expectString
|
|
883
|
+
});
|
|
884
|
+
Object.assign(contents, doc);
|
|
885
|
+
return contents;
|
|
886
|
+
}, "de_ListAttachedLinksCommand");
|
|
887
|
+
var de_ListAttachedLinksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
888
|
+
const parsedOutput = {
|
|
889
|
+
...output,
|
|
890
|
+
body: await parseErrorBody(output.body, context)
|
|
891
|
+
};
|
|
892
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
|
+
switch (errorCode) {
|
|
894
|
+
case "InternalServiceFault":
|
|
895
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
896
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
897
|
+
case "InvalidParameterException":
|
|
898
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
899
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
900
|
+
case "MissingRequiredParameterException":
|
|
901
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
902
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
903
|
+
case "ResourceNotFoundException":
|
|
904
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
905
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
906
|
+
default:
|
|
907
|
+
const parsedBody = parsedOutput.body;
|
|
908
|
+
return throwDefaultError({
|
|
909
|
+
output,
|
|
910
|
+
parsedBody,
|
|
911
|
+
errorCode
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
}, "de_ListAttachedLinksCommandError");
|
|
915
|
+
var de_ListLinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
916
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
917
|
+
return de_ListLinksCommandError(output, context);
|
|
918
|
+
}
|
|
919
|
+
const contents = (0, import_smithy_client.map)({
|
|
920
|
+
$metadata: deserializeMetadata(output)
|
|
921
|
+
});
|
|
922
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
923
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
924
|
+
Items: import_smithy_client._json,
|
|
925
|
+
NextToken: import_smithy_client.expectString
|
|
926
|
+
});
|
|
927
|
+
Object.assign(contents, doc);
|
|
928
|
+
return contents;
|
|
929
|
+
}, "de_ListLinksCommand");
|
|
930
|
+
var de_ListLinksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
931
|
+
const parsedOutput = {
|
|
932
|
+
...output,
|
|
933
|
+
body: await parseErrorBody(output.body, context)
|
|
934
|
+
};
|
|
935
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
|
+
switch (errorCode) {
|
|
937
|
+
case "InternalServiceFault":
|
|
938
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
939
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
940
|
+
case "InvalidParameterException":
|
|
941
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
942
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
943
|
+
case "ResourceNotFoundException":
|
|
944
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
945
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
946
|
+
default:
|
|
947
|
+
const parsedBody = parsedOutput.body;
|
|
948
|
+
return throwDefaultError({
|
|
949
|
+
output,
|
|
950
|
+
parsedBody,
|
|
951
|
+
errorCode
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
}, "de_ListLinksCommandError");
|
|
955
|
+
var de_ListSinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
957
|
+
return de_ListSinksCommandError(output, context);
|
|
958
|
+
}
|
|
959
|
+
const contents = (0, import_smithy_client.map)({
|
|
960
|
+
$metadata: deserializeMetadata(output)
|
|
961
|
+
});
|
|
962
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
963
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
964
|
+
Items: import_smithy_client._json,
|
|
965
|
+
NextToken: import_smithy_client.expectString
|
|
966
|
+
});
|
|
967
|
+
Object.assign(contents, doc);
|
|
968
|
+
return contents;
|
|
969
|
+
}, "de_ListSinksCommand");
|
|
970
|
+
var de_ListSinksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
971
|
+
const parsedOutput = {
|
|
972
|
+
...output,
|
|
973
|
+
body: await parseErrorBody(output.body, context)
|
|
974
|
+
};
|
|
975
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
|
+
switch (errorCode) {
|
|
977
|
+
case "InternalServiceFault":
|
|
978
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
979
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
980
|
+
case "InvalidParameterException":
|
|
981
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
982
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
983
|
+
case "ResourceNotFoundException":
|
|
984
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
985
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
986
|
+
default:
|
|
987
|
+
const parsedBody = parsedOutput.body;
|
|
988
|
+
return throwDefaultError({
|
|
989
|
+
output,
|
|
990
|
+
parsedBody,
|
|
991
|
+
errorCode
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
}, "de_ListSinksCommandError");
|
|
995
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
996
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
997
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
998
|
+
}
|
|
999
|
+
const contents = (0, import_smithy_client.map)({
|
|
1000
|
+
$metadata: deserializeMetadata(output)
|
|
1001
|
+
});
|
|
1002
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1003
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1004
|
+
Tags: import_smithy_client._json
|
|
1005
|
+
});
|
|
1006
|
+
Object.assign(contents, doc);
|
|
1007
|
+
return contents;
|
|
1008
|
+
}, "de_ListTagsForResourceCommand");
|
|
1009
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1010
|
+
const parsedOutput = {
|
|
1011
|
+
...output,
|
|
1012
|
+
body: await parseErrorBody(output.body, context)
|
|
1013
|
+
};
|
|
1014
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
+
switch (errorCode) {
|
|
1016
|
+
case "ResourceNotFoundException":
|
|
1017
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
1018
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1019
|
+
case "ValidationException":
|
|
1020
|
+
case "com.amazonaws.oam#ValidationException":
|
|
1021
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1022
|
+
default:
|
|
1023
|
+
const parsedBody = parsedOutput.body;
|
|
1024
|
+
return throwDefaultError({
|
|
1025
|
+
output,
|
|
1026
|
+
parsedBody,
|
|
1027
|
+
errorCode
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1031
|
+
var de_PutSinkPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1032
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
+
return de_PutSinkPolicyCommandError(output, context);
|
|
1034
|
+
}
|
|
1035
|
+
const contents = (0, import_smithy_client.map)({
|
|
1036
|
+
$metadata: deserializeMetadata(output)
|
|
1037
|
+
});
|
|
1038
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1039
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1040
|
+
Policy: import_smithy_client.expectString,
|
|
1041
|
+
SinkArn: import_smithy_client.expectString,
|
|
1042
|
+
SinkId: import_smithy_client.expectString
|
|
1043
|
+
});
|
|
1044
|
+
Object.assign(contents, doc);
|
|
1045
|
+
return contents;
|
|
1046
|
+
}, "de_PutSinkPolicyCommand");
|
|
1047
|
+
var de_PutSinkPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1048
|
+
const parsedOutput = {
|
|
1049
|
+
...output,
|
|
1050
|
+
body: await parseErrorBody(output.body, context)
|
|
1051
|
+
};
|
|
1052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
+
switch (errorCode) {
|
|
1054
|
+
case "InternalServiceFault":
|
|
1055
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
1056
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
1057
|
+
case "InvalidParameterException":
|
|
1058
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
1059
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1060
|
+
case "MissingRequiredParameterException":
|
|
1061
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
1062
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1063
|
+
case "ResourceNotFoundException":
|
|
1064
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
1065
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1066
|
+
default:
|
|
1067
|
+
const parsedBody = parsedOutput.body;
|
|
1068
|
+
return throwDefaultError({
|
|
1069
|
+
output,
|
|
1070
|
+
parsedBody,
|
|
1071
|
+
errorCode
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
}, "de_PutSinkPolicyCommandError");
|
|
1075
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1077
|
+
return de_TagResourceCommandError(output, context);
|
|
1078
|
+
}
|
|
1079
|
+
const contents = (0, import_smithy_client.map)({
|
|
1080
|
+
$metadata: deserializeMetadata(output)
|
|
1081
|
+
});
|
|
1082
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1083
|
+
return contents;
|
|
1084
|
+
}, "de_TagResourceCommand");
|
|
1085
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
|
+
const parsedOutput = {
|
|
1087
|
+
...output,
|
|
1088
|
+
body: await parseErrorBody(output.body, context)
|
|
1089
|
+
};
|
|
1090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
+
switch (errorCode) {
|
|
1092
|
+
case "ResourceNotFoundException":
|
|
1093
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
1094
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1095
|
+
case "TooManyTagsException":
|
|
1096
|
+
case "com.amazonaws.oam#TooManyTagsException":
|
|
1097
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1098
|
+
case "ValidationException":
|
|
1099
|
+
case "com.amazonaws.oam#ValidationException":
|
|
1100
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1101
|
+
default:
|
|
1102
|
+
const parsedBody = parsedOutput.body;
|
|
1103
|
+
return throwDefaultError({
|
|
1104
|
+
output,
|
|
1105
|
+
parsedBody,
|
|
1106
|
+
errorCode
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
}, "de_TagResourceCommandError");
|
|
1110
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1111
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1112
|
+
return de_UntagResourceCommandError(output, context);
|
|
1113
|
+
}
|
|
1114
|
+
const contents = (0, import_smithy_client.map)({
|
|
1115
|
+
$metadata: deserializeMetadata(output)
|
|
1116
|
+
});
|
|
1117
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1118
|
+
return contents;
|
|
1119
|
+
}, "de_UntagResourceCommand");
|
|
1120
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1121
|
+
const parsedOutput = {
|
|
1122
|
+
...output,
|
|
1123
|
+
body: await parseErrorBody(output.body, context)
|
|
1124
|
+
};
|
|
1125
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
+
switch (errorCode) {
|
|
1127
|
+
case "ResourceNotFoundException":
|
|
1128
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
1129
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "ValidationException":
|
|
1131
|
+
case "com.amazonaws.oam#ValidationException":
|
|
1132
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1133
|
+
default:
|
|
1134
|
+
const parsedBody = parsedOutput.body;
|
|
1135
|
+
return throwDefaultError({
|
|
1136
|
+
output,
|
|
1137
|
+
parsedBody,
|
|
1138
|
+
errorCode
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
}, "de_UntagResourceCommandError");
|
|
1142
|
+
var de_UpdateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1144
|
+
return de_UpdateLinkCommandError(output, context);
|
|
1145
|
+
}
|
|
1146
|
+
const contents = (0, import_smithy_client.map)({
|
|
1147
|
+
$metadata: deserializeMetadata(output)
|
|
1148
|
+
});
|
|
1149
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1150
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1151
|
+
Arn: import_smithy_client.expectString,
|
|
1152
|
+
Id: import_smithy_client.expectString,
|
|
1153
|
+
Label: import_smithy_client.expectString,
|
|
1154
|
+
LabelTemplate: import_smithy_client.expectString,
|
|
1155
|
+
ResourceTypes: import_smithy_client._json,
|
|
1156
|
+
SinkArn: import_smithy_client.expectString,
|
|
1157
|
+
Tags: import_smithy_client._json
|
|
1158
|
+
});
|
|
1159
|
+
Object.assign(contents, doc);
|
|
1160
|
+
return contents;
|
|
1161
|
+
}, "de_UpdateLinkCommand");
|
|
1162
|
+
var de_UpdateLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1163
|
+
const parsedOutput = {
|
|
1164
|
+
...output,
|
|
1165
|
+
body: await parseErrorBody(output.body, context)
|
|
1166
|
+
};
|
|
1167
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
+
switch (errorCode) {
|
|
1169
|
+
case "InternalServiceFault":
|
|
1170
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
1171
|
+
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
1172
|
+
case "InvalidParameterException":
|
|
1173
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
1174
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1175
|
+
case "MissingRequiredParameterException":
|
|
1176
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
1177
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1178
|
+
case "ResourceNotFoundException":
|
|
1179
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
1180
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1181
|
+
default:
|
|
1182
|
+
const parsedBody = parsedOutput.body;
|
|
1183
|
+
return throwDefaultError({
|
|
1184
|
+
output,
|
|
1185
|
+
parsedBody,
|
|
1186
|
+
errorCode
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
}, "de_UpdateLinkCommandError");
|
|
1190
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(OAMServiceException);
|
|
1191
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1192
|
+
const contents = (0, import_smithy_client.map)({
|
|
1193
|
+
[_aET]: [, parsedOutput.headers[_xae]]
|
|
1194
|
+
});
|
|
1195
|
+
const data = parsedOutput.body;
|
|
1196
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1197
|
+
Message: import_smithy_client.expectString
|
|
1198
|
+
});
|
|
1199
|
+
Object.assign(contents, doc);
|
|
1200
|
+
const exception = new ConflictException({
|
|
1201
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1202
|
+
...contents
|
|
1203
|
+
});
|
|
1204
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1205
|
+
}, "de_ConflictExceptionRes");
|
|
1206
|
+
var de_InternalServiceFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1207
|
+
const contents = (0, import_smithy_client.map)({
|
|
1208
|
+
[_aET]: [, parsedOutput.headers[_xae]]
|
|
1209
|
+
});
|
|
1210
|
+
const data = parsedOutput.body;
|
|
1211
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1212
|
+
Message: import_smithy_client.expectString
|
|
1213
|
+
});
|
|
1214
|
+
Object.assign(contents, doc);
|
|
1215
|
+
const exception = new InternalServiceFault({
|
|
1216
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1217
|
+
...contents
|
|
1218
|
+
});
|
|
1219
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1220
|
+
}, "de_InternalServiceFaultRes");
|
|
1221
|
+
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1222
|
+
const contents = (0, import_smithy_client.map)({
|
|
1223
|
+
[_aET]: [, parsedOutput.headers[_xae]]
|
|
1224
|
+
});
|
|
1225
|
+
const data = parsedOutput.body;
|
|
1226
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1227
|
+
message: import_smithy_client.expectString
|
|
1228
|
+
});
|
|
1229
|
+
Object.assign(contents, doc);
|
|
1230
|
+
const exception = new InvalidParameterException({
|
|
1231
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1232
|
+
...contents
|
|
1233
|
+
});
|
|
1234
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1235
|
+
}, "de_InvalidParameterExceptionRes");
|
|
1236
|
+
var de_MissingRequiredParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1237
|
+
const contents = (0, import_smithy_client.map)({
|
|
1238
|
+
[_aET]: [, parsedOutput.headers[_xae]]
|
|
1239
|
+
});
|
|
1240
|
+
const data = parsedOutput.body;
|
|
1241
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1242
|
+
message: import_smithy_client.expectString
|
|
1243
|
+
});
|
|
1244
|
+
Object.assign(contents, doc);
|
|
1245
|
+
const exception = new MissingRequiredParameterException({
|
|
1246
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1247
|
+
...contents
|
|
1248
|
+
});
|
|
1249
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1250
|
+
}, "de_MissingRequiredParameterExceptionRes");
|
|
1251
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1252
|
+
const contents = (0, import_smithy_client.map)({
|
|
1253
|
+
[_aET]: [, parsedOutput.headers[_xae]]
|
|
1254
|
+
});
|
|
1255
|
+
const data = parsedOutput.body;
|
|
1256
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1257
|
+
Message: import_smithy_client.expectString
|
|
1258
|
+
});
|
|
1259
|
+
Object.assign(contents, doc);
|
|
1260
|
+
const exception = new ResourceNotFoundException({
|
|
1261
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1262
|
+
...contents
|
|
1263
|
+
});
|
|
1264
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1265
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1266
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1267
|
+
const contents = (0, import_smithy_client.map)({
|
|
1268
|
+
[_aET]: [, parsedOutput.headers[_xae]]
|
|
1269
|
+
});
|
|
1270
|
+
const data = parsedOutput.body;
|
|
1271
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1272
|
+
Message: import_smithy_client.expectString
|
|
1273
|
+
});
|
|
1274
|
+
Object.assign(contents, doc);
|
|
1275
|
+
const exception = new ServiceQuotaExceededException({
|
|
1276
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1277
|
+
...contents
|
|
1278
|
+
});
|
|
1279
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1280
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1281
|
+
var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1282
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1283
|
+
const data = parsedOutput.body;
|
|
1284
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1285
|
+
Message: import_smithy_client.expectString
|
|
1286
|
+
});
|
|
1287
|
+
Object.assign(contents, doc);
|
|
1288
|
+
const exception = new TooManyTagsException({
|
|
1289
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1290
|
+
...contents
|
|
1291
|
+
});
|
|
1292
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1293
|
+
}, "de_TooManyTagsExceptionRes");
|
|
1294
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1295
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1296
|
+
const data = parsedOutput.body;
|
|
1297
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1298
|
+
Message: import_smithy_client.expectString
|
|
1299
|
+
});
|
|
1300
|
+
Object.assign(contents, doc);
|
|
1301
|
+
const exception = new ValidationException({
|
|
1302
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1303
|
+
...contents
|
|
1304
|
+
});
|
|
1305
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1306
|
+
}, "de_ValidationExceptionRes");
|
|
1307
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1308
|
+
httpStatusCode: output.statusCode,
|
|
1309
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1310
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1311
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1312
|
+
}), "deserializeMetadata");
|
|
1313
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1314
|
+
var _TK = "TagKeys";
|
|
1315
|
+
var _aET = "amznErrorType";
|
|
1316
|
+
var _tK = "tagKeys";
|
|
1317
|
+
var _xae = "x-amzn-errortype";
|
|
1318
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1319
|
+
if (encoded.length) {
|
|
1320
|
+
return JSON.parse(encoded);
|
|
1321
|
+
}
|
|
1322
|
+
return {};
|
|
1323
|
+
}), "parseBody");
|
|
1324
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1325
|
+
const value = await parseBody(errorBody, context);
|
|
1326
|
+
value.message = value.message ?? value.Message;
|
|
1327
|
+
return value;
|
|
1328
|
+
}, "parseErrorBody");
|
|
1329
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1330
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1331
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1332
|
+
let cleanValue = rawValue;
|
|
1333
|
+
if (typeof cleanValue === "number") {
|
|
1334
|
+
cleanValue = cleanValue.toString();
|
|
1335
|
+
}
|
|
1336
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1337
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1338
|
+
}
|
|
1339
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1340
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1341
|
+
}
|
|
1342
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1343
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1344
|
+
}
|
|
1345
|
+
return cleanValue;
|
|
1346
|
+
}, "sanitizeErrorCode");
|
|
1347
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1348
|
+
if (headerKey !== void 0) {
|
|
1349
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1350
|
+
}
|
|
1351
|
+
if (data.code !== void 0) {
|
|
1352
|
+
return sanitizeErrorCode(data.code);
|
|
1353
|
+
}
|
|
1354
|
+
if (data["__type"] !== void 0) {
|
|
1355
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1356
|
+
}
|
|
1357
|
+
}, "loadRestJsonErrorCode");
|
|
1358
|
+
|
|
1359
|
+
// src/commands/CreateLinkCommand.ts
|
|
1360
|
+
var _CreateLinkCommand = class _CreateLinkCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1361
|
+
...commonParams
|
|
1362
|
+
}).m(function(Command, cs, config, o) {
|
|
1363
|
+
return [
|
|
1364
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1365
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1366
|
+
];
|
|
1367
|
+
}).s("oamservice", "CreateLink", {}).n("OAMClient", "CreateLinkCommand").f(void 0, void 0).ser(se_CreateLinkCommand).de(de_CreateLinkCommand).build() {
|
|
1368
|
+
};
|
|
1369
|
+
__name(_CreateLinkCommand, "CreateLinkCommand");
|
|
1370
|
+
var CreateLinkCommand = _CreateLinkCommand;
|
|
1371
|
+
|
|
1372
|
+
// src/commands/CreateSinkCommand.ts
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
var _CreateSinkCommand = class _CreateSinkCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1378
|
+
...commonParams
|
|
1379
|
+
}).m(function(Command, cs, config, o) {
|
|
1380
|
+
return [
|
|
1381
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1382
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1383
|
+
];
|
|
1384
|
+
}).s("oamservice", "CreateSink", {}).n("OAMClient", "CreateSinkCommand").f(void 0, void 0).ser(se_CreateSinkCommand).de(de_CreateSinkCommand).build() {
|
|
1385
|
+
};
|
|
1386
|
+
__name(_CreateSinkCommand, "CreateSinkCommand");
|
|
1387
|
+
var CreateSinkCommand = _CreateSinkCommand;
|
|
1388
|
+
|
|
1389
|
+
// src/commands/DeleteLinkCommand.ts
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
var _DeleteLinkCommand = class _DeleteLinkCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1395
|
+
...commonParams
|
|
1396
|
+
}).m(function(Command, cs, config, o) {
|
|
1397
|
+
return [
|
|
1398
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1399
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1400
|
+
];
|
|
1401
|
+
}).s("oamservice", "DeleteLink", {}).n("OAMClient", "DeleteLinkCommand").f(void 0, void 0).ser(se_DeleteLinkCommand).de(de_DeleteLinkCommand).build() {
|
|
1402
|
+
};
|
|
1403
|
+
__name(_DeleteLinkCommand, "DeleteLinkCommand");
|
|
1404
|
+
var DeleteLinkCommand = _DeleteLinkCommand;
|
|
1405
|
+
|
|
1406
|
+
// src/commands/DeleteSinkCommand.ts
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
var _DeleteSinkCommand = class _DeleteSinkCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1412
|
+
...commonParams
|
|
1413
|
+
}).m(function(Command, cs, config, o) {
|
|
1414
|
+
return [
|
|
1415
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1416
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1417
|
+
];
|
|
1418
|
+
}).s("oamservice", "DeleteSink", {}).n("OAMClient", "DeleteSinkCommand").f(void 0, void 0).ser(se_DeleteSinkCommand).de(de_DeleteSinkCommand).build() {
|
|
1419
|
+
};
|
|
1420
|
+
__name(_DeleteSinkCommand, "DeleteSinkCommand");
|
|
1421
|
+
var DeleteSinkCommand = _DeleteSinkCommand;
|
|
1422
|
+
|
|
1423
|
+
// src/commands/GetLinkCommand.ts
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
var _GetLinkCommand = class _GetLinkCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1429
|
+
...commonParams
|
|
1430
|
+
}).m(function(Command, cs, config, o) {
|
|
1431
|
+
return [
|
|
1432
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1433
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1434
|
+
];
|
|
1435
|
+
}).s("oamservice", "GetLink", {}).n("OAMClient", "GetLinkCommand").f(void 0, void 0).ser(se_GetLinkCommand).de(de_GetLinkCommand).build() {
|
|
1436
|
+
};
|
|
1437
|
+
__name(_GetLinkCommand, "GetLinkCommand");
|
|
1438
|
+
var GetLinkCommand = _GetLinkCommand;
|
|
1439
|
+
|
|
1440
|
+
// src/commands/GetSinkCommand.ts
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
var _GetSinkCommand = class _GetSinkCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1446
|
+
...commonParams
|
|
1447
|
+
}).m(function(Command, cs, config, o) {
|
|
1448
|
+
return [
|
|
1449
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1450
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1451
|
+
];
|
|
1452
|
+
}).s("oamservice", "GetSink", {}).n("OAMClient", "GetSinkCommand").f(void 0, void 0).ser(se_GetSinkCommand).de(de_GetSinkCommand).build() {
|
|
1453
|
+
};
|
|
1454
|
+
__name(_GetSinkCommand, "GetSinkCommand");
|
|
1455
|
+
var GetSinkCommand = _GetSinkCommand;
|
|
1456
|
+
|
|
1457
|
+
// src/commands/GetSinkPolicyCommand.ts
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
var _GetSinkPolicyCommand = class _GetSinkPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1463
|
+
...commonParams
|
|
1464
|
+
}).m(function(Command, cs, config, o) {
|
|
1465
|
+
return [
|
|
1466
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1467
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1468
|
+
];
|
|
1469
|
+
}).s("oamservice", "GetSinkPolicy", {}).n("OAMClient", "GetSinkPolicyCommand").f(void 0, void 0).ser(se_GetSinkPolicyCommand).de(de_GetSinkPolicyCommand).build() {
|
|
1470
|
+
};
|
|
1471
|
+
__name(_GetSinkPolicyCommand, "GetSinkPolicyCommand");
|
|
1472
|
+
var GetSinkPolicyCommand = _GetSinkPolicyCommand;
|
|
1473
|
+
|
|
1474
|
+
// src/commands/ListAttachedLinksCommand.ts
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
var _ListAttachedLinksCommand = class _ListAttachedLinksCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1480
|
+
...commonParams
|
|
1481
|
+
}).m(function(Command, cs, config, o) {
|
|
1482
|
+
return [
|
|
1483
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1484
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1485
|
+
];
|
|
1486
|
+
}).s("oamservice", "ListAttachedLinks", {}).n("OAMClient", "ListAttachedLinksCommand").f(void 0, void 0).ser(se_ListAttachedLinksCommand).de(de_ListAttachedLinksCommand).build() {
|
|
1487
|
+
};
|
|
1488
|
+
__name(_ListAttachedLinksCommand, "ListAttachedLinksCommand");
|
|
1489
|
+
var ListAttachedLinksCommand = _ListAttachedLinksCommand;
|
|
1490
|
+
|
|
1491
|
+
// src/commands/ListLinksCommand.ts
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
var _ListLinksCommand = class _ListLinksCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1497
|
+
...commonParams
|
|
1498
|
+
}).m(function(Command, cs, config, o) {
|
|
1499
|
+
return [
|
|
1500
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1501
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1502
|
+
];
|
|
1503
|
+
}).s("oamservice", "ListLinks", {}).n("OAMClient", "ListLinksCommand").f(void 0, void 0).ser(se_ListLinksCommand).de(de_ListLinksCommand).build() {
|
|
1504
|
+
};
|
|
1505
|
+
__name(_ListLinksCommand, "ListLinksCommand");
|
|
1506
|
+
var ListLinksCommand = _ListLinksCommand;
|
|
1507
|
+
|
|
1508
|
+
// src/commands/ListSinksCommand.ts
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
var _ListSinksCommand = class _ListSinksCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1514
|
+
...commonParams
|
|
1515
|
+
}).m(function(Command, cs, config, o) {
|
|
1516
|
+
return [
|
|
1517
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1518
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1519
|
+
];
|
|
1520
|
+
}).s("oamservice", "ListSinks", {}).n("OAMClient", "ListSinksCommand").f(void 0, void 0).ser(se_ListSinksCommand).de(de_ListSinksCommand).build() {
|
|
1521
|
+
};
|
|
1522
|
+
__name(_ListSinksCommand, "ListSinksCommand");
|
|
1523
|
+
var ListSinksCommand = _ListSinksCommand;
|
|
1524
|
+
|
|
1525
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1531
|
+
...commonParams
|
|
1532
|
+
}).m(function(Command, cs, config, o) {
|
|
1533
|
+
return [
|
|
1534
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1535
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1536
|
+
];
|
|
1537
|
+
}).s("oamservice", "ListTagsForResource", {}).n("OAMClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1538
|
+
};
|
|
1539
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1540
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1541
|
+
|
|
1542
|
+
// src/commands/PutSinkPolicyCommand.ts
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
var _PutSinkPolicyCommand = class _PutSinkPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1548
|
+
...commonParams
|
|
1549
|
+
}).m(function(Command, cs, config, o) {
|
|
1550
|
+
return [
|
|
1551
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1552
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1553
|
+
];
|
|
1554
|
+
}).s("oamservice", "PutSinkPolicy", {}).n("OAMClient", "PutSinkPolicyCommand").f(void 0, void 0).ser(se_PutSinkPolicyCommand).de(de_PutSinkPolicyCommand).build() {
|
|
1555
|
+
};
|
|
1556
|
+
__name(_PutSinkPolicyCommand, "PutSinkPolicyCommand");
|
|
1557
|
+
var PutSinkPolicyCommand = _PutSinkPolicyCommand;
|
|
1558
|
+
|
|
1559
|
+
// src/commands/TagResourceCommand.ts
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1565
|
+
...commonParams
|
|
1566
|
+
}).m(function(Command, cs, config, o) {
|
|
1567
|
+
return [
|
|
1568
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1569
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1570
|
+
];
|
|
1571
|
+
}).s("oamservice", "TagResource", {}).n("OAMClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1572
|
+
};
|
|
1573
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1574
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1575
|
+
|
|
1576
|
+
// src/commands/UntagResourceCommand.ts
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1582
|
+
...commonParams
|
|
1583
|
+
}).m(function(Command, cs, config, o) {
|
|
1584
|
+
return [
|
|
1585
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1586
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1587
|
+
];
|
|
1588
|
+
}).s("oamservice", "UntagResource", {}).n("OAMClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1589
|
+
};
|
|
1590
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1591
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1592
|
+
|
|
1593
|
+
// src/commands/UpdateLinkCommand.ts
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
var _UpdateLinkCommand = class _UpdateLinkCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1599
|
+
...commonParams
|
|
1600
|
+
}).m(function(Command, cs, config, o) {
|
|
1601
|
+
return [
|
|
1602
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1603
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1604
|
+
];
|
|
1605
|
+
}).s("oamservice", "UpdateLink", {}).n("OAMClient", "UpdateLinkCommand").f(void 0, void 0).ser(se_UpdateLinkCommand).de(de_UpdateLinkCommand).build() {
|
|
1606
|
+
};
|
|
1607
|
+
__name(_UpdateLinkCommand, "UpdateLinkCommand");
|
|
1608
|
+
var UpdateLinkCommand = _UpdateLinkCommand;
|
|
1609
|
+
|
|
1610
|
+
// src/OAM.ts
|
|
1611
|
+
var commands = {
|
|
1612
|
+
CreateLinkCommand,
|
|
1613
|
+
CreateSinkCommand,
|
|
1614
|
+
DeleteLinkCommand,
|
|
1615
|
+
DeleteSinkCommand,
|
|
1616
|
+
GetLinkCommand,
|
|
1617
|
+
GetSinkCommand,
|
|
1618
|
+
GetSinkPolicyCommand,
|
|
1619
|
+
ListAttachedLinksCommand,
|
|
1620
|
+
ListLinksCommand,
|
|
1621
|
+
ListSinksCommand,
|
|
1622
|
+
ListTagsForResourceCommand,
|
|
1623
|
+
PutSinkPolicyCommand,
|
|
1624
|
+
TagResourceCommand,
|
|
1625
|
+
UntagResourceCommand,
|
|
1626
|
+
UpdateLinkCommand
|
|
1627
|
+
};
|
|
1628
|
+
var _OAM = class _OAM extends OAMClient {
|
|
1629
|
+
};
|
|
1630
|
+
__name(_OAM, "OAM");
|
|
1631
|
+
var OAM = _OAM;
|
|
1632
|
+
(0, import_smithy_client.createAggregatedClient)(commands, OAM);
|
|
1633
|
+
|
|
1634
|
+
// src/pagination/ListAttachedLinksPaginator.ts
|
|
1635
|
+
|
|
1636
|
+
var paginateListAttachedLinks = (0, import_core.createPaginator)(OAMClient, ListAttachedLinksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1637
|
+
|
|
1638
|
+
// src/pagination/ListLinksPaginator.ts
|
|
1639
|
+
|
|
1640
|
+
var paginateListLinks = (0, import_core.createPaginator)(OAMClient, ListLinksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1641
|
+
|
|
1642
|
+
// src/pagination/ListSinksPaginator.ts
|
|
1643
|
+
|
|
1644
|
+
var paginateListSinks = (0, import_core.createPaginator)(OAMClient, ListSinksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1645
|
+
|
|
1646
|
+
// src/index.ts
|
|
1647
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1648
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1649
|
+
0 && (module.exports = {
|
|
1650
|
+
ConflictException,
|
|
1651
|
+
CreateLinkCommand,
|
|
1652
|
+
CreateSinkCommand,
|
|
1653
|
+
DeleteLinkCommand,
|
|
1654
|
+
DeleteSinkCommand,
|
|
1655
|
+
GetLinkCommand,
|
|
1656
|
+
GetSinkCommand,
|
|
1657
|
+
GetSinkPolicyCommand,
|
|
1658
|
+
InternalServiceFault,
|
|
1659
|
+
InvalidParameterException,
|
|
1660
|
+
ListAttachedLinksCommand,
|
|
1661
|
+
ListLinksCommand,
|
|
1662
|
+
ListSinksCommand,
|
|
1663
|
+
ListTagsForResourceCommand,
|
|
1664
|
+
MissingRequiredParameterException,
|
|
1665
|
+
OAM,
|
|
1666
|
+
OAMClient,
|
|
1667
|
+
OAMServiceException,
|
|
1668
|
+
PutSinkPolicyCommand,
|
|
1669
|
+
ResourceNotFoundException,
|
|
1670
|
+
ResourceType,
|
|
1671
|
+
ServiceQuotaExceededException,
|
|
1672
|
+
TagResourceCommand,
|
|
1673
|
+
TooManyTagsException,
|
|
1674
|
+
UntagResourceCommand,
|
|
1675
|
+
UpdateLinkCommand,
|
|
1676
|
+
ValidationException,
|
|
1677
|
+
__Client,
|
|
1678
|
+
paginateListAttachedLinks,
|
|
1679
|
+
paginateListLinks,
|
|
1680
|
+
paginateListSinks
|
|
1681
|
+
});
|