@aws-sdk/client-oam 3.1074.0 → 3.1076.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultOAMHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateLink$, CreateSink$, DeleteLink$, DeleteSink$, GetLink$, GetSink$, GetSinkPolicy$, ListAttachedLinks$, ListLinks$, ListSinks$, ListTagsForResource$, PutSinkPolicy$, TagResource$, UntagResource$, UpdateLink$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { OAMServiceException } = require("./models/OAMServiceException");
18
- exports.OAMServiceException = OAMServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultOAMHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "oam",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultOAMHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,649 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://oam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://oam-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://oam.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://oam.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class OAMServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, OAMServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class ConflictException extends OAMServiceException {
140
+ name = "ConflictException";
141
+ $fault = "client";
142
+ Message;
143
+ amznErrorType;
144
+ constructor(opts) {
145
+ super({
146
+ name: "ConflictException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, ConflictException.prototype);
151
+ this.Message = opts.Message;
152
+ this.amznErrorType = opts.amznErrorType;
153
+ }
154
+ }
155
+ class InternalServiceFault extends OAMServiceException {
156
+ name = "InternalServiceFault";
157
+ $fault = "server";
158
+ Message;
159
+ amznErrorType;
160
+ constructor(opts) {
161
+ super({
162
+ name: "InternalServiceFault",
163
+ $fault: "server",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, InternalServiceFault.prototype);
167
+ this.Message = opts.Message;
168
+ this.amznErrorType = opts.amznErrorType;
169
+ }
170
+ }
171
+ class InvalidParameterException extends OAMServiceException {
172
+ name = "InvalidParameterException";
173
+ $fault = "client";
174
+ amznErrorType;
175
+ constructor(opts) {
176
+ super({
177
+ name: "InvalidParameterException",
178
+ $fault: "client",
179
+ ...opts,
180
+ });
181
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
182
+ this.amznErrorType = opts.amznErrorType;
183
+ }
184
+ }
185
+ class MissingRequiredParameterException extends OAMServiceException {
186
+ name = "MissingRequiredParameterException";
187
+ $fault = "client";
188
+ amznErrorType;
189
+ constructor(opts) {
190
+ super({
191
+ name: "MissingRequiredParameterException",
192
+ $fault: "client",
193
+ ...opts,
194
+ });
195
+ Object.setPrototypeOf(this, MissingRequiredParameterException.prototype);
196
+ this.amznErrorType = opts.amznErrorType;
197
+ }
198
+ }
199
+ class ServiceQuotaExceededException extends OAMServiceException {
200
+ name = "ServiceQuotaExceededException";
201
+ $fault = "client";
202
+ Message;
203
+ amznErrorType;
204
+ constructor(opts) {
205
+ super({
206
+ name: "ServiceQuotaExceededException",
207
+ $fault: "client",
208
+ ...opts,
209
+ });
210
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
211
+ this.Message = opts.Message;
212
+ this.amznErrorType = opts.amznErrorType;
213
+ }
214
+ }
215
+ class ResourceNotFoundException extends OAMServiceException {
216
+ name = "ResourceNotFoundException";
217
+ $fault = "client";
218
+ Message;
219
+ amznErrorType;
220
+ constructor(opts) {
221
+ super({
222
+ name: "ResourceNotFoundException",
223
+ $fault: "client",
224
+ ...opts,
225
+ });
226
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
227
+ this.Message = opts.Message;
228
+ this.amznErrorType = opts.amznErrorType;
229
+ }
230
+ }
231
+ class ValidationException extends OAMServiceException {
232
+ name = "ValidationException";
233
+ $fault = "client";
234
+ Message;
235
+ constructor(opts) {
236
+ super({
237
+ name: "ValidationException",
238
+ $fault: "client",
239
+ ...opts,
240
+ });
241
+ Object.setPrototypeOf(this, ValidationException.prototype);
242
+ this.Message = opts.Message;
243
+ }
244
+ }
245
+ class TooManyTagsException extends OAMServiceException {
246
+ name = "TooManyTagsException";
247
+ $fault = "client";
248
+ Message;
249
+ constructor(opts) {
250
+ super({
251
+ name: "TooManyTagsException",
252
+ $fault: "client",
253
+ ...opts,
254
+ });
255
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
256
+ this.Message = opts.Message;
257
+ }
258
+ }
259
+
260
+ const _A = "Arn";
261
+ const _CE = "ConflictException";
262
+ const _CL = "CreateLink";
263
+ const _CLI = "CreateLinkInput";
264
+ const _CLO = "CreateLinkOutput";
265
+ const _CS = "CreateSink";
266
+ const _CSI = "CreateSinkInput";
267
+ const _CSO = "CreateSinkOutput";
268
+ const _DL = "DeleteLink";
269
+ const _DLI = "DeleteLinkInput";
270
+ const _DLO = "DeleteLinkOutput";
271
+ const _DS = "DeleteSink";
272
+ const _DSI = "DeleteSinkInput";
273
+ const _DSO = "DeleteSinkOutput";
274
+ const _F = "Filter";
275
+ const _GL = "GetLink";
276
+ const _GLI = "GetLinkInput";
277
+ const _GLO = "GetLinkOutput";
278
+ const _GS = "GetSink";
279
+ const _GSI = "GetSinkInput";
280
+ const _GSO = "GetSinkOutput";
281
+ const _GSP = "GetSinkPolicy";
282
+ const _GSPI = "GetSinkPolicyInput";
283
+ const _GSPO = "GetSinkPolicyOutput";
284
+ const _I = "Id";
285
+ const _IPE = "InvalidParameterException";
286
+ const _ISF = "InternalServiceFault";
287
+ const _IT = "IncludeTags";
288
+ const _Id = "Identifier";
289
+ const _It = "Items";
290
+ const _L = "Label";
291
+ const _LA = "LinkArn";
292
+ const _LAL = "ListAttachedLinks";
293
+ const _LALI = "ListAttachedLinksInput";
294
+ const _LALIi = "ListAttachedLinksItem";
295
+ const _LALIis = "ListAttachedLinksItems";
296
+ const _LALO = "ListAttachedLinksOutput";
297
+ const _LC = "LinkConfiguration";
298
+ const _LGC = "LogGroupConfiguration";
299
+ const _LL = "ListLinks";
300
+ const _LLI = "ListLinksInput";
301
+ const _LLIi = "ListLinksItem";
302
+ const _LLIis = "ListLinksItems";
303
+ const _LLO = "ListLinksOutput";
304
+ const _LS = "ListSinks";
305
+ const _LSI = "ListSinksInput";
306
+ const _LSIi = "ListSinksItem";
307
+ const _LSIis = "ListSinksItems";
308
+ const _LSO = "ListSinksOutput";
309
+ const _LT = "LabelTemplate";
310
+ const _LTFR = "ListTagsForResource";
311
+ const _LTFRI = "ListTagsForResourceInput";
312
+ const _LTFRO = "ListTagsForResourceOutput";
313
+ const _M = "Message";
314
+ const _MC = "MetricConfiguration";
315
+ const _MR = "MaxResults";
316
+ const _MRPE = "MissingRequiredParameterException";
317
+ const _N = "Name";
318
+ const _NT = "NextToken";
319
+ const _P = "Policy";
320
+ const _PSP = "PutSinkPolicy";
321
+ const _PSPI = "PutSinkPolicyInput";
322
+ const _PSPO = "PutSinkPolicyOutput";
323
+ const _RA = "ResourceArn";
324
+ const _RNFE = "ResourceNotFoundException";
325
+ const _RT = "ResourceTypes";
326
+ const _SA = "SinkArn";
327
+ const _SI = "SinkIdentifier";
328
+ const _SIi = "SinkId";
329
+ const _SQEE = "ServiceQuotaExceededException";
330
+ const _T = "Tags";
331
+ const _TK = "TagKeys";
332
+ const _TMTE = "TooManyTagsException";
333
+ const _TR = "TagResource";
334
+ const _TRI = "TagResourceInput";
335
+ const _TRO = "TagResourceOutput";
336
+ const _UL = "UpdateLink";
337
+ const _ULI = "UpdateLinkInput";
338
+ const _ULO = "UpdateLinkOutput";
339
+ const _UR = "UntagResource";
340
+ const _URI = "UntagResourceInput";
341
+ const _URO = "UntagResourceOutput";
342
+ const _VE = "ValidationException";
343
+ const _aET = "amznErrorType";
344
+ const _c = "client";
345
+ const _e = "error";
346
+ const _h = "http";
347
+ const _hE = "httpError";
348
+ const _hH = "httpHeader";
349
+ const _hQ = "httpQuery";
350
+ const _m = "message";
351
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.oam";
352
+ const _se = "server";
353
+ const _tK = "tagKeys";
354
+ const _xaE = "x-amzn-ErrorType";
355
+ const n0 = "com.amazonaws.oam";
356
+ const _s_registry = TypeRegistry.for(_s);
357
+ var OAMServiceException$ = [-3, _s, "OAMServiceException", 0, [], []];
358
+ _s_registry.registerError(OAMServiceException$, OAMServiceException);
359
+ const n0_registry = TypeRegistry.for(n0);
360
+ var ConflictException$ = [-3, n0, _CE,
361
+ { [_e]: _c, [_hE]: 409 },
362
+ [_M, _aET],
363
+ [0, [0, { [_hH]: _xaE }]]
364
+ ];
365
+ n0_registry.registerError(ConflictException$, ConflictException);
366
+ var InternalServiceFault$ = [-3, n0, _ISF,
367
+ { [_e]: _se, [_hE]: 500 },
368
+ [_M, _aET],
369
+ [0, [0, { [_hH]: _xaE }]]
370
+ ];
371
+ n0_registry.registerError(InternalServiceFault$, InternalServiceFault);
372
+ var InvalidParameterException$ = [-3, n0, _IPE,
373
+ { [_e]: _c, [_hE]: 400 },
374
+ [_m, _aET],
375
+ [0, [0, { [_hH]: _xaE }]]
376
+ ];
377
+ n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
378
+ var MissingRequiredParameterException$ = [-3, n0, _MRPE,
379
+ { [_e]: _c, [_hE]: 400 },
380
+ [_m, _aET],
381
+ [0, [0, { [_hH]: _xaE }]]
382
+ ];
383
+ n0_registry.registerError(MissingRequiredParameterException$, MissingRequiredParameterException);
384
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
385
+ { [_e]: _c, [_hE]: 404 },
386
+ [_M, _aET],
387
+ [0, [0, { [_hH]: _xaE }]]
388
+ ];
389
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
390
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
391
+ { [_e]: _c, [_hE]: 429 },
392
+ [_M, _aET],
393
+ [0, [0, { [_hH]: _xaE }]]
394
+ ];
395
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
396
+ var TooManyTagsException$ = [-3, n0, _TMTE,
397
+ { [_e]: _c, [_hE]: 400 },
398
+ [_M],
399
+ [0]
400
+ ];
401
+ n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
402
+ var ValidationException$ = [-3, n0, _VE,
403
+ { [_e]: _c, [_hE]: 400 },
404
+ [_M],
405
+ [0]
406
+ ];
407
+ n0_registry.registerError(ValidationException$, ValidationException);
408
+ const errorTypeRegistries = [
409
+ _s_registry,
410
+ n0_registry,
411
+ ];
412
+ var CreateLinkInput$ = [3, n0, _CLI,
413
+ 0,
414
+ [_LT, _RT, _SI, _T, _LC],
415
+ [0, 64 | 0, 0, 128 | 0, () => LinkConfiguration$], 3
416
+ ];
417
+ var CreateLinkOutput$ = [3, n0, _CLO,
418
+ 0,
419
+ [_A, _I, _L, _LT, _RT, _SA, _T, _LC],
420
+ [0, 0, 0, 0, 64 | 0, 0, 128 | 0, () => LinkConfiguration$]
421
+ ];
422
+ var CreateSinkInput$ = [3, n0, _CSI,
423
+ 0,
424
+ [_N, _T],
425
+ [0, 128 | 0], 1
426
+ ];
427
+ var CreateSinkOutput$ = [3, n0, _CSO,
428
+ 0,
429
+ [_A, _I, _N, _T],
430
+ [0, 0, 0, 128 | 0]
431
+ ];
432
+ var DeleteLinkInput$ = [3, n0, _DLI,
433
+ 0,
434
+ [_Id],
435
+ [0], 1
436
+ ];
437
+ var DeleteLinkOutput$ = [3, n0, _DLO,
438
+ 0,
439
+ [],
440
+ []
441
+ ];
442
+ var DeleteSinkInput$ = [3, n0, _DSI,
443
+ 0,
444
+ [_Id],
445
+ [0], 1
446
+ ];
447
+ var DeleteSinkOutput$ = [3, n0, _DSO,
448
+ 0,
449
+ [],
450
+ []
451
+ ];
452
+ var GetLinkInput$ = [3, n0, _GLI,
453
+ 0,
454
+ [_Id, _IT],
455
+ [0, 2], 1
456
+ ];
457
+ var GetLinkOutput$ = [3, n0, _GLO,
458
+ 0,
459
+ [_A, _I, _L, _LT, _RT, _SA, _T, _LC],
460
+ [0, 0, 0, 0, 64 | 0, 0, 128 | 0, () => LinkConfiguration$]
461
+ ];
462
+ var GetSinkInput$ = [3, n0, _GSI,
463
+ 0,
464
+ [_Id, _IT],
465
+ [0, 2], 1
466
+ ];
467
+ var GetSinkOutput$ = [3, n0, _GSO,
468
+ 0,
469
+ [_A, _I, _N, _T],
470
+ [0, 0, 0, 128 | 0]
471
+ ];
472
+ var GetSinkPolicyInput$ = [3, n0, _GSPI,
473
+ 0,
474
+ [_SI],
475
+ [0], 1
476
+ ];
477
+ var GetSinkPolicyOutput$ = [3, n0, _GSPO,
478
+ 0,
479
+ [_SA, _SIi, _P],
480
+ [0, 0, 0]
481
+ ];
482
+ var LinkConfiguration$ = [3, n0, _LC,
483
+ 0,
484
+ [_LGC, _MC],
485
+ [() => LogGroupConfiguration$, () => MetricConfiguration$]
486
+ ];
487
+ var ListAttachedLinksInput$ = [3, n0, _LALI,
488
+ 0,
489
+ [_SI, _MR, _NT],
490
+ [0, 1, 0], 1
491
+ ];
492
+ var ListAttachedLinksItem$ = [3, n0, _LALIi,
493
+ 0,
494
+ [_L, _LA, _RT],
495
+ [0, 0, 64 | 0]
496
+ ];
497
+ var ListAttachedLinksOutput$ = [3, n0, _LALO,
498
+ 0,
499
+ [_It, _NT],
500
+ [() => ListAttachedLinksItems, 0], 1
501
+ ];
502
+ var ListLinksInput$ = [3, n0, _LLI,
503
+ 0,
504
+ [_MR, _NT],
505
+ [1, 0]
506
+ ];
507
+ var ListLinksItem$ = [3, n0, _LLIi,
508
+ 0,
509
+ [_A, _I, _L, _RT, _SA],
510
+ [0, 0, 0, 64 | 0, 0]
511
+ ];
512
+ var ListLinksOutput$ = [3, n0, _LLO,
513
+ 0,
514
+ [_It, _NT],
515
+ [() => ListLinksItems, 0], 1
516
+ ];
517
+ var ListSinksInput$ = [3, n0, _LSI,
518
+ 0,
519
+ [_MR, _NT],
520
+ [1, 0]
521
+ ];
522
+ var ListSinksItem$ = [3, n0, _LSIi,
523
+ 0,
524
+ [_A, _I, _N],
525
+ [0, 0, 0]
526
+ ];
527
+ var ListSinksOutput$ = [3, n0, _LSO,
528
+ 0,
529
+ [_It, _NT],
530
+ [() => ListSinksItems, 0], 1
531
+ ];
532
+ var ListTagsForResourceInput$ = [3, n0, _LTFRI,
533
+ 0,
534
+ [_RA],
535
+ [[0, 1]], 1
536
+ ];
537
+ var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
538
+ 0,
539
+ [_T],
540
+ [128 | 0]
541
+ ];
542
+ var LogGroupConfiguration$ = [3, n0, _LGC,
543
+ 0,
544
+ [_F],
545
+ [0], 1
546
+ ];
547
+ var MetricConfiguration$ = [3, n0, _MC,
548
+ 0,
549
+ [_F],
550
+ [0], 1
551
+ ];
552
+ var PutSinkPolicyInput$ = [3, n0, _PSPI,
553
+ 0,
554
+ [_SI, _P],
555
+ [0, 0], 2
556
+ ];
557
+ var PutSinkPolicyOutput$ = [3, n0, _PSPO,
558
+ 0,
559
+ [_SA, _SIi, _P],
560
+ [0, 0, 0]
561
+ ];
562
+ var TagResourceInput$ = [3, n0, _TRI,
563
+ 0,
564
+ [_RA, _T],
565
+ [[0, 1], 128 | 0], 2
566
+ ];
567
+ var TagResourceOutput$ = [3, n0, _TRO,
568
+ 0,
569
+ [],
570
+ []
571
+ ];
572
+ var UntagResourceInput$ = [3, n0, _URI,
573
+ 0,
574
+ [_RA, _TK],
575
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
576
+ ];
577
+ var UntagResourceOutput$ = [3, n0, _URO,
578
+ 0,
579
+ [],
580
+ []
581
+ ];
582
+ var UpdateLinkInput$ = [3, n0, _ULI,
583
+ 0,
584
+ [_Id, _RT, _LC, _IT],
585
+ [0, 64 | 0, () => LinkConfiguration$, 2], 2
586
+ ];
587
+ var UpdateLinkOutput$ = [3, n0, _ULO,
588
+ 0,
589
+ [_A, _I, _L, _LT, _RT, _SA, _T, _LC],
590
+ [0, 0, 0, 0, 64 | 0, 0, 128 | 0, () => LinkConfiguration$]
591
+ ];
592
+ var ListAttachedLinksItems = [1, n0, _LALIis,
593
+ 0, () => ListAttachedLinksItem$
594
+ ];
595
+ var ListLinksItems = [1, n0, _LLIis,
596
+ 0, () => ListLinksItem$
597
+ ];
598
+ var ListSinksItems = [1, n0, _LSIis,
599
+ 0, () => ListSinksItem$
600
+ ];
601
+ var CreateLink$ = [9, n0, _CL,
602
+ { [_h]: ["POST", "/CreateLink", 200] }, () => CreateLinkInput$, () => CreateLinkOutput$
603
+ ];
604
+ var CreateSink$ = [9, n0, _CS,
605
+ { [_h]: ["POST", "/CreateSink", 200] }, () => CreateSinkInput$, () => CreateSinkOutput$
606
+ ];
607
+ var DeleteLink$ = [9, n0, _DL,
608
+ { [_h]: ["POST", "/DeleteLink", 200] }, () => DeleteLinkInput$, () => DeleteLinkOutput$
609
+ ];
610
+ var DeleteSink$ = [9, n0, _DS,
611
+ { [_h]: ["POST", "/DeleteSink", 200] }, () => DeleteSinkInput$, () => DeleteSinkOutput$
612
+ ];
613
+ var GetLink$ = [9, n0, _GL,
614
+ { [_h]: ["POST", "/GetLink", 200] }, () => GetLinkInput$, () => GetLinkOutput$
615
+ ];
616
+ var GetSink$ = [9, n0, _GS,
617
+ { [_h]: ["POST", "/GetSink", 200] }, () => GetSinkInput$, () => GetSinkOutput$
618
+ ];
619
+ var GetSinkPolicy$ = [9, n0, _GSP,
620
+ { [_h]: ["POST", "/GetSinkPolicy", 200] }, () => GetSinkPolicyInput$, () => GetSinkPolicyOutput$
621
+ ];
622
+ var ListAttachedLinks$ = [9, n0, _LAL,
623
+ { [_h]: ["POST", "/ListAttachedLinks", 200] }, () => ListAttachedLinksInput$, () => ListAttachedLinksOutput$
624
+ ];
625
+ var ListLinks$ = [9, n0, _LL,
626
+ { [_h]: ["POST", "/ListLinks", 200] }, () => ListLinksInput$, () => ListLinksOutput$
627
+ ];
628
+ var ListSinks$ = [9, n0, _LS,
629
+ { [_h]: ["POST", "/ListSinks", 200] }, () => ListSinksInput$, () => ListSinksOutput$
630
+ ];
631
+ var ListTagsForResource$ = [9, n0, _LTFR,
632
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
633
+ ];
634
+ var PutSinkPolicy$ = [9, n0, _PSP,
635
+ { [_h]: ["POST", "/PutSinkPolicy", 200] }, () => PutSinkPolicyInput$, () => PutSinkPolicyOutput$
636
+ ];
637
+ var TagResource$ = [9, n0, _TR,
638
+ { [_h]: ["PUT", "/tags/{ResourceArn}", 200] }, () => TagResourceInput$, () => TagResourceOutput$
639
+ ];
640
+ var UntagResource$ = [9, n0, _UR,
641
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$
642
+ ];
643
+ var UpdateLink$ = [9, n0, _UL,
644
+ { [_h]: ["POST", "/UpdateLink", 200] }, () => UpdateLinkInput$, () => UpdateLinkOutput$
645
+ ];
646
+
647
+ const getRuntimeConfig$1 = (config) => {
648
+ return {
649
+ apiVersion: "2022-06-10",
650
+ base64Decoder: config?.base64Decoder ?? fromBase64,
651
+ base64Encoder: config?.base64Encoder ?? toBase64,
652
+ disableHostPrefix: config?.disableHostPrefix ?? false,
653
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
654
+ extensions: config?.extensions ?? [],
655
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultOAMHttpAuthSchemeProvider,
656
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
657
+ {
658
+ schemeId: "aws.auth#sigv4",
659
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
660
+ signer: new AwsSdkSigV4Signer(),
661
+ },
662
+ ],
663
+ logger: config?.logger ?? new NoOpLogger(),
664
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
665
+ protocolSettings: config?.protocolSettings ?? {
666
+ defaultNamespace: "com.amazonaws.oam",
667
+ errorTypeRegistries,
668
+ version: "2022-06-10",
669
+ serviceTarget: "oamservice",
670
+ },
671
+ serviceId: config?.serviceId ?? "OAM",
672
+ urlParser: config?.urlParser ?? parseUrl,
673
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
674
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
675
+ };
676
+ };
677
+
678
+ const getRuntimeConfig = (config) => {
679
+ emitWarningIfUnsupportedVersion(process.version);
680
+ const defaultsMode = resolveDefaultsModeConfig(config);
681
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
682
+ const clientSharedValues = getRuntimeConfig$1(config);
683
+ emitWarningIfUnsupportedVersion$1(process.version);
684
+ const loaderConfig = {
685
+ profile: config?.profile,
686
+ logger: clientSharedValues.logger,
687
+ };
688
+ return {
689
+ ...clientSharedValues,
690
+ ...config,
691
+ runtime: "node",
692
+ defaultsMode,
693
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
694
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
695
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
696
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
697
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
698
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
699
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
700
+ retryMode: config?.retryMode ??
701
+ loadConfig({
702
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
703
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
704
+ }, config),
705
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
706
+ streamCollector: config?.streamCollector ?? streamCollector,
707
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
708
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
709
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
710
+ };
711
+ };
712
+
34
713
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
714
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
715
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -333,24 +1012,94 @@ const ResourceType = {
333
1012
  AWS_XRAY_TRACE: "AWS::XRay::Trace",
334
1013
  };
335
1014
 
1015
+ exports.ConflictException = ConflictException;
1016
+ exports.ConflictException$ = ConflictException$;
1017
+ exports.CreateLink$ = CreateLink$;
336
1018
  exports.CreateLinkCommand = CreateLinkCommand;
1019
+ exports.CreateLinkInput$ = CreateLinkInput$;
1020
+ exports.CreateLinkOutput$ = CreateLinkOutput$;
1021
+ exports.CreateSink$ = CreateSink$;
337
1022
  exports.CreateSinkCommand = CreateSinkCommand;
1023
+ exports.CreateSinkInput$ = CreateSinkInput$;
1024
+ exports.CreateSinkOutput$ = CreateSinkOutput$;
1025
+ exports.DeleteLink$ = DeleteLink$;
338
1026
  exports.DeleteLinkCommand = DeleteLinkCommand;
1027
+ exports.DeleteLinkInput$ = DeleteLinkInput$;
1028
+ exports.DeleteLinkOutput$ = DeleteLinkOutput$;
1029
+ exports.DeleteSink$ = DeleteSink$;
339
1030
  exports.DeleteSinkCommand = DeleteSinkCommand;
1031
+ exports.DeleteSinkInput$ = DeleteSinkInput$;
1032
+ exports.DeleteSinkOutput$ = DeleteSinkOutput$;
1033
+ exports.GetLink$ = GetLink$;
340
1034
  exports.GetLinkCommand = GetLinkCommand;
1035
+ exports.GetLinkInput$ = GetLinkInput$;
1036
+ exports.GetLinkOutput$ = GetLinkOutput$;
1037
+ exports.GetSink$ = GetSink$;
341
1038
  exports.GetSinkCommand = GetSinkCommand;
1039
+ exports.GetSinkInput$ = GetSinkInput$;
1040
+ exports.GetSinkOutput$ = GetSinkOutput$;
1041
+ exports.GetSinkPolicy$ = GetSinkPolicy$;
342
1042
  exports.GetSinkPolicyCommand = GetSinkPolicyCommand;
1043
+ exports.GetSinkPolicyInput$ = GetSinkPolicyInput$;
1044
+ exports.GetSinkPolicyOutput$ = GetSinkPolicyOutput$;
1045
+ exports.InternalServiceFault = InternalServiceFault;
1046
+ exports.InternalServiceFault$ = InternalServiceFault$;
1047
+ exports.InvalidParameterException = InvalidParameterException;
1048
+ exports.InvalidParameterException$ = InvalidParameterException$;
1049
+ exports.LinkConfiguration$ = LinkConfiguration$;
1050
+ exports.ListAttachedLinks$ = ListAttachedLinks$;
343
1051
  exports.ListAttachedLinksCommand = ListAttachedLinksCommand;
1052
+ exports.ListAttachedLinksInput$ = ListAttachedLinksInput$;
1053
+ exports.ListAttachedLinksItem$ = ListAttachedLinksItem$;
1054
+ exports.ListAttachedLinksOutput$ = ListAttachedLinksOutput$;
1055
+ exports.ListLinks$ = ListLinks$;
344
1056
  exports.ListLinksCommand = ListLinksCommand;
1057
+ exports.ListLinksInput$ = ListLinksInput$;
1058
+ exports.ListLinksItem$ = ListLinksItem$;
1059
+ exports.ListLinksOutput$ = ListLinksOutput$;
1060
+ exports.ListSinks$ = ListSinks$;
345
1061
  exports.ListSinksCommand = ListSinksCommand;
1062
+ exports.ListSinksInput$ = ListSinksInput$;
1063
+ exports.ListSinksItem$ = ListSinksItem$;
1064
+ exports.ListSinksOutput$ = ListSinksOutput$;
1065
+ exports.ListTagsForResource$ = ListTagsForResource$;
346
1066
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1067
+ exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
1068
+ exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
1069
+ exports.LogGroupConfiguration$ = LogGroupConfiguration$;
1070
+ exports.MetricConfiguration$ = MetricConfiguration$;
1071
+ exports.MissingRequiredParameterException = MissingRequiredParameterException;
1072
+ exports.MissingRequiredParameterException$ = MissingRequiredParameterException$;
347
1073
  exports.OAM = OAM;
348
1074
  exports.OAMClient = OAMClient;
1075
+ exports.OAMServiceException = OAMServiceException;
1076
+ exports.OAMServiceException$ = OAMServiceException$;
1077
+ exports.PutSinkPolicy$ = PutSinkPolicy$;
349
1078
  exports.PutSinkPolicyCommand = PutSinkPolicyCommand;
1079
+ exports.PutSinkPolicyInput$ = PutSinkPolicyInput$;
1080
+ exports.PutSinkPolicyOutput$ = PutSinkPolicyOutput$;
1081
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1082
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
350
1083
  exports.ResourceType = ResourceType;
1084
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1085
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1086
+ exports.TagResource$ = TagResource$;
351
1087
  exports.TagResourceCommand = TagResourceCommand;
1088
+ exports.TagResourceInput$ = TagResourceInput$;
1089
+ exports.TagResourceOutput$ = TagResourceOutput$;
1090
+ exports.TooManyTagsException = TooManyTagsException;
1091
+ exports.TooManyTagsException$ = TooManyTagsException$;
1092
+ exports.UntagResource$ = UntagResource$;
352
1093
  exports.UntagResourceCommand = UntagResourceCommand;
1094
+ exports.UntagResourceInput$ = UntagResourceInput$;
1095
+ exports.UntagResourceOutput$ = UntagResourceOutput$;
1096
+ exports.UpdateLink$ = UpdateLink$;
353
1097
  exports.UpdateLinkCommand = UpdateLinkCommand;
1098
+ exports.UpdateLinkInput$ = UpdateLinkInput$;
1099
+ exports.UpdateLinkOutput$ = UpdateLinkOutput$;
1100
+ exports.ValidationException = ValidationException;
1101
+ exports.ValidationException$ = ValidationException$;
1102
+ exports.errorTypeRegistries = errorTypeRegistries;
354
1103
  exports.paginateListAttachedLinks = paginateListAttachedLinks;
355
1104
  exports.paginateListLinks = paginateListLinks;
356
1105
  exports.paginateListSinks = paginateListSinks;