@aws-sdk/client-rtbfabric 3.1025.0 → 3.1026.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.
Files changed (39) hide show
  1. package/dist-cjs/index.js +182 -11
  2. package/dist-cjs/schemas/schemas_0.js +49 -36
  3. package/dist-es/RTBFabric.js +6 -0
  4. package/dist-es/models/enums.js +10 -0
  5. package/dist-es/schemas/schemas_0.js +47 -34
  6. package/dist-es/waiters/index.js +3 -0
  7. package/dist-es/waiters/waitForInboundExternalLinkDeleted.js +49 -0
  8. package/dist-es/waiters/waitForLinkDeleted.js +49 -0
  9. package/dist-es/waiters/waitForOutboundExternalLinkDeleted.js +49 -0
  10. package/dist-es/waiters/waitForRequesterGatewayDeleted.js +3 -0
  11. package/dist-es/waiters/waitForResponderGatewayDeleted.js +3 -0
  12. package/dist-types/RTBFabric.d.ts +18 -0
  13. package/dist-types/commands/AcceptLinkCommand.d.ts +10 -0
  14. package/dist-types/commands/CreateLinkCommand.d.ts +12 -2
  15. package/dist-types/commands/CreateResponderGatewayCommand.d.ts +12 -0
  16. package/dist-types/commands/GetInboundExternalLinkCommand.d.ts +2 -1
  17. package/dist-types/commands/GetLinkCommand.d.ts +7 -4
  18. package/dist-types/commands/GetOutboundExternalLinkCommand.d.ts +102 -0
  19. package/dist-types/commands/GetResponderGatewayCommand.d.ts +7 -0
  20. package/dist-types/commands/ListLinksCommand.d.ts +10 -0
  21. package/dist-types/commands/RejectLinkCommand.d.ts +9 -0
  22. package/dist-types/commands/UpdateLinkCommand.d.ts +1 -0
  23. package/dist-types/commands/UpdateResponderGatewayCommand.d.ts +5 -0
  24. package/dist-types/models/enums.d.ts +26 -0
  25. package/dist-types/models/models_0.d.ts +159 -8
  26. package/dist-types/schemas/schemas_0.d.ts +1 -0
  27. package/dist-types/ts3.4/RTBFabric.d.ts +27 -0
  28. package/dist-types/ts3.4/models/enums.d.ts +13 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +34 -1
  30. package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  31. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  32. package/dist-types/ts3.4/waiters/waitForInboundExternalLinkDeleted.d.ts +11 -0
  33. package/dist-types/ts3.4/waiters/waitForLinkDeleted.d.ts +11 -0
  34. package/dist-types/ts3.4/waiters/waitForOutboundExternalLinkDeleted.d.ts +11 -0
  35. package/dist-types/waiters/index.d.ts +3 -0
  36. package/dist-types/waiters/waitForInboundExternalLinkDeleted.d.ts +14 -0
  37. package/dist-types/waiters/waitForLinkDeleted.d.ts +14 -0
  38. package/dist-types/waiters/waitForOutboundExternalLinkDeleted.d.ts +14 -0
  39. package/package.json +34 -34
@@ -62,6 +62,7 @@ const _ISE = "InternalServerException";
62
62
  const _LA = "LinkAttributes";
63
63
  const _LALC = "LinkApplicationLogConfiguration";
64
64
  const _LALS = "LinkApplicationLogSampling";
65
+ const _LC = "ListenerConfig";
65
66
  const _LL = "LinkList";
66
67
  const _LLR = "ListLinksRequest";
67
68
  const _LLRS = "ListLinksResponseStructure";
@@ -126,7 +127,8 @@ const _cASCCC = "clusterApiServerCaCertificateChain";
126
127
  const _cASEU = "clusterApiServerEndpointUri";
127
128
  const _cN = "clusterName";
128
129
  const _cPI = "customerProvidedId";
129
- const _cT = "clientToken";
130
+ const _cT = "connectivityType";
131
+ const _cTl = "clientToken";
130
132
  const _cr = "criteria";
131
133
  const _d = "direction";
132
134
  const _dN = "domainName";
@@ -134,6 +136,7 @@ const _dO = "dependsOn";
134
136
  const _de = "description";
135
137
  const _e = "error";
136
138
  const _eE = "eksEndpoints";
139
+ const _eIE = "externalInboundEndpoint";
137
140
  const _eL = "errorLog";
138
141
  const _eRN = "endpointsResourceName";
139
142
  const _eRNn = "endpointsResourceNamespace";
@@ -143,6 +146,7 @@ const _fM = "flowModules";
143
146
  const _fT = "filterType";
144
147
  const _gI = "gatewayId";
145
148
  const _gIa = "gatewayIds";
149
+ const _gT = "gatewayType";
146
150
  const _h = "http";
147
151
  const _hC = "httpCode";
148
152
  const _hE = "httpError";
@@ -152,6 +156,7 @@ const _hRA = "httpResponderAllowed";
152
156
  const _hT = "headerTag";
153
157
  const _iLC = "inboundLinksCount";
154
158
  const _l = "links";
159
+ const _lC = "listenerConfig";
155
160
  const _lI = "linkId";
156
161
  const _lS = "logSettings";
157
162
  const _lT = "loggingTypes";
@@ -172,6 +177,7 @@ const _pGI = "peerGatewayId";
172
177
  const _pTP = "passThroughPercentage";
173
178
  const _pa = "path";
174
179
  const _pr = "protocol";
180
+ const _pro = "protocols";
175
181
  const _r = "reason";
176
182
  const _rA = "roleArn";
177
183
  const _rAe = "resourceArn";
@@ -186,6 +192,7 @@ const _sa = "sampling";
186
192
  const _se = "server";
187
193
  const _st = "status";
188
194
  const _t = "tags";
195
+ const _tIM = "timeoutInMillis";
189
196
  const _tK = "tagKeys";
190
197
  const _tLC = "totalLinksCount";
191
198
  const _tSC = "trustStoreConfiguration";
@@ -252,13 +259,13 @@ export const errorTypeRegistries = [
252
259
  var Base64EncodedCertificateChain = [0, n0, _BECC, 8, 0];
253
260
  export var AcceptLinkRequest$ = [3, n0, _ALR,
254
261
  0,
255
- [_gI, _lI, _lS, _a],
256
- [[0, 1], [0, 1], () => LinkLogSettings$, () => LinkAttributes$], 3
262
+ [_gI, _lI, _lS, _a, _tIM],
263
+ [[0, 1], [0, 1], () => LinkLogSettings$, () => LinkAttributes$, 1], 3
257
264
  ];
258
265
  export var AcceptLinkResponse$ = [3, n0, _ALRc,
259
266
  0,
260
- [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a],
261
- [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$], 6
267
+ [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a, _lS, _cT],
268
+ [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, () => LinkLogSettings$, 0], 6
262
269
  ];
263
270
  export var AutoScalingGroupsConfiguration$ = [3, n0, _ASGC,
264
271
  0,
@@ -267,7 +274,7 @@ export var AutoScalingGroupsConfiguration$ = [3, n0, _ASGC,
267
274
  ];
268
275
  export var CreateInboundExternalLinkRequest$ = [3, n0, _CIELR,
269
276
  0,
270
- [_gI, _lS, _cT, _a, _t],
277
+ [_gI, _lS, _cTl, _a, _t],
271
278
  [[0, 1], () => LinkLogSettings$, [0, 4], () => LinkAttributes$, 128 | 0], 2
272
279
  ];
273
280
  export var CreateInboundExternalLinkResponse$ = [3, n0, _CIELRr,
@@ -277,17 +284,17 @@ export var CreateInboundExternalLinkResponse$ = [3, n0, _CIELRr,
277
284
  ];
278
285
  export var CreateLinkRequest$ = [3, n0, _CLR,
279
286
  0,
280
- [_gI, _pGI, _lS, _a, _hRA, _t],
281
- [[0, 1], 0, () => LinkLogSettings$, () => LinkAttributes$, 2, 128 | 0], 3
287
+ [_gI, _pGI, _lS, _a, _hRA, _t, _tIM],
288
+ [[0, 1], 0, () => LinkLogSettings$, () => LinkAttributes$, 2, 128 | 0, 1], 3
282
289
  ];
283
290
  export var CreateLinkResponse$ = [3, n0, _CLRr,
284
291
  0,
285
- [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a, _cPI],
286
- [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, 0], 6
292
+ [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a, _lS, _cT, _cPI],
293
+ [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, () => LinkLogSettings$, 0, 0], 6
287
294
  ];
288
295
  export var CreateOutboundExternalLinkRequest$ = [3, n0, _COELR,
289
296
  0,
290
- [_gI, _pE, _lS, _cT, _a, _t],
297
+ [_gI, _pE, _lS, _cTl, _a, _t],
291
298
  [[0, 1], 0, () => LinkLogSettings$, [0, 4], () => LinkAttributes$, 128 | 0], 3
292
299
  ];
293
300
  export var CreateOutboundExternalLinkResponse$ = [3, n0, _COELRr,
@@ -297,7 +304,7 @@ export var CreateOutboundExternalLinkResponse$ = [3, n0, _COELRr,
297
304
  ];
298
305
  export var CreateRequesterGatewayRequest$ = [3, n0, _CRGR,
299
306
  0,
300
- [_vI, _sI, _sGI, _cT, _de, _t],
307
+ [_vI, _sI, _sGI, _cTl, _de, _t],
301
308
  [0, 64 | 0, 64 | 0, [0, 4], 0, 128 | 0], 3
302
309
  ];
303
310
  export var CreateRequesterGatewayResponse$ = [3, n0, _CRGRr,
@@ -307,13 +314,13 @@ export var CreateRequesterGatewayResponse$ = [3, n0, _CRGRr,
307
314
  ];
308
315
  export var CreateResponderGatewayRequest$ = [3, n0, _CRGRre,
309
316
  0,
310
- [_vI, _sI, _sGI, _p, _pr, _dN, _tSC, _mEC, _cT, _de, _t],
311
- [0, 64 | 0, 64 | 0, 1, 0, 0, [() => TrustStoreConfiguration$, 0], [() => ManagedEndpointConfiguration$, 0], [0, 4], 0, 128 | 0], 5
317
+ [_vI, _sI, _sGI, _p, _pr, _dN, _lC, _tSC, _mEC, _cTl, _de, _t, _gT],
318
+ [0, 64 | 0, 64 | 0, 1, 0, 0, () => ListenerConfig$, [() => TrustStoreConfiguration$, 0], [() => ManagedEndpointConfiguration$, 0], [0, 4], 0, 128 | 0, 0], 5
312
319
  ];
313
320
  export var CreateResponderGatewayResponse$ = [3, n0, _CRGRrea,
314
321
  0,
315
- [_gI, _st],
316
- [0, 0], 2
322
+ [_gI, _st, _lC, _eIE],
323
+ [0, 0, () => ListenerConfig$, 0], 2
317
324
  ];
318
325
  export var DeleteInboundExternalLinkRequest$ = [3, n0, _DIELR,
319
326
  0,
@@ -387,8 +394,8 @@ export var GetInboundExternalLinkRequest$ = [3, n0, _GIELR,
387
394
  ];
388
395
  export var GetInboundExternalLinkResponse$ = [3, n0, _GIELRe,
389
396
  0,
390
- [_gI, _lI, _st, _dN, _fM, _pFM, _a, _cA, _uA, _t, _lS],
391
- [0, 0, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, 4, 4, 128 | 0, () => LinkLogSettings$], 4
397
+ [_gI, _lI, _st, _dN, _fM, _pFM, _a, _cA, _uA, _t, _lS, _cT],
398
+ [0, 0, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, 4, 4, 128 | 0, () => LinkLogSettings$, 0], 4
392
399
  ];
393
400
  export var GetLinkRequest$ = [3, n0, _GLR,
394
401
  0,
@@ -397,8 +404,8 @@ export var GetLinkRequest$ = [3, n0, _GLR,
397
404
  ];
398
405
  export var GetLinkResponse$ = [3, n0, _GLRe,
399
406
  0,
400
- [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a, _t, _lS],
401
- [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, 128 | 0, () => LinkLogSettings$], 6
407
+ [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a, _lS, _cT, _t, _hRA, _tIM],
408
+ [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, () => LinkLogSettings$, 0, 128 | 0, 2, 1], 6
402
409
  ];
403
410
  export var GetOutboundExternalLinkRequest$ = [3, n0, _GOELR,
404
411
  0,
@@ -407,8 +414,8 @@ export var GetOutboundExternalLinkRequest$ = [3, n0, _GOELR,
407
414
  ];
408
415
  export var GetOutboundExternalLinkResponse$ = [3, n0, _GOELRe,
409
416
  0,
410
- [_gI, _lI, _st, _pE, _cA, _uA, _t, _lS],
411
- [0, 0, 0, 0, 4, 4, 128 | 0, () => LinkLogSettings$], 4
417
+ [_gI, _lI, _st, _pE, _fM, _pFM, _a, _cA, _uA, _t, _lS, _cT],
418
+ [0, 0, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, 4, 4, 128 | 0, () => LinkLogSettings$, 0], 4
412
419
  ];
413
420
  export var GetRequesterGatewayRequest$ = [3, n0, _GRGR,
414
421
  0,
@@ -427,8 +434,8 @@ export var GetResponderGatewayRequest$ = [3, n0, _GRGRet,
427
434
  ];
428
435
  export var GetResponderGatewayResponse$ = [3, n0, _GRGRete,
429
436
  0,
430
- [_vI, _sI, _sGI, _st, _p, _pr, _gI, _de, _cA, _uA, _dN, _tSC, _mEC, _t, _aLC, _tLC, _iLC],
431
- [0, 64 | 0, 64 | 0, 0, 1, 0, 0, 0, 4, 4, 0, [() => TrustStoreConfiguration$, 0], [() => ManagedEndpointConfiguration$, 0], 128 | 0, 1, 1, 1], 7
437
+ [_vI, _sI, _sGI, _st, _p, _pr, _gI, _de, _cA, _uA, _dN, _lC, _tSC, _mEC, _t, _aLC, _tLC, _iLC, _gT, _eIE],
438
+ [0, 64 | 0, 64 | 0, 0, 1, 0, 0, 0, 4, 4, 0, () => ListenerConfig$, [() => TrustStoreConfiguration$, 0], [() => ManagedEndpointConfiguration$, 0], 128 | 0, 1, 1, 1, 0, 0], 7
432
439
  ];
433
440
  export var HeaderTagAction$ = [3, n0, _HTA,
434
441
  0,
@@ -455,6 +462,11 @@ export var LinkLogSettings$ = [3, n0, _LLS,
455
462
  [_aL],
456
463
  [() => LinkApplicationLogConfiguration$], 1
457
464
  ];
465
+ export var ListenerConfig$ = [3, n0, _LC,
466
+ 0,
467
+ [_pro],
468
+ [64 | 0], 1
469
+ ];
458
470
  export var ListLinksRequest$ = [3, n0, _LLR,
459
471
  0,
460
472
  [_gI, _nT, _mR],
@@ -467,8 +479,8 @@ export var ListLinksResponse$ = [3, n0, _LLRi,
467
479
  ];
468
480
  export var ListLinksResponseStructure$ = [3, n0, _LLRS,
469
481
  0,
470
- [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a, _t],
471
- [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, 128 | 0], 6
482
+ [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a, _lS, _cT, _t, _pE],
483
+ [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, () => LinkLogSettings$, 0, 128 | 0, 0], 6
472
484
  ];
473
485
  export var ListRequesterGatewaysRequest$ = [3, n0, _LRGR,
474
486
  0,
@@ -532,8 +544,8 @@ export var RejectLinkRequest$ = [3, n0, _RLR,
532
544
  ];
533
545
  export var RejectLinkResponse$ = [3, n0, _RLRe,
534
546
  0,
535
- [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a],
536
- [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$], 6
547
+ [_gI, _pGI, _st, _cA, _uA, _lI, _d, _fM, _pFM, _a, _lS, _cT],
548
+ [0, 0, 0, 4, 4, 0, 0, () => ModuleConfigurationList, () => ModuleConfigurationList, () => LinkAttributes$, () => LinkLogSettings$, 0], 6
537
549
  ];
538
550
  export var ResponderErrorMaskingForHttpCode$ = [3, n0, _REMFHC,
539
551
  0,
@@ -567,7 +579,7 @@ export var UntagResourceResponse$ = [3, n0, _URRn,
567
579
  ];
568
580
  export var UpdateLinkModuleFlowRequest$ = [3, n0, _ULMFR,
569
581
  0,
570
- [_gI, _lI, _mo, _cT],
582
+ [_gI, _lI, _mo, _cTl],
571
583
  [[0, 1], [0, 1], () => ModuleConfigurationList, [0, 4]], 3
572
584
  ];
573
585
  export var UpdateLinkModuleFlowResponse$ = [3, n0, _ULMFRp,
@@ -577,8 +589,8 @@ export var UpdateLinkModuleFlowResponse$ = [3, n0, _ULMFRp,
577
589
  ];
578
590
  export var UpdateLinkRequest$ = [3, n0, _ULR,
579
591
  0,
580
- [_gI, _lI, _lS],
581
- [[0, 1], [0, 1], () => LinkLogSettings$], 2
592
+ [_gI, _lI, _lS, _tIM],
593
+ [[0, 1], [0, 1], () => LinkLogSettings$, 1], 2
582
594
  ];
583
595
  export var UpdateLinkResponse$ = [3, n0, _ULRp,
584
596
  0,
@@ -587,7 +599,7 @@ export var UpdateLinkResponse$ = [3, n0, _ULRp,
587
599
  ];
588
600
  export var UpdateRequesterGatewayRequest$ = [3, n0, _URGR,
589
601
  0,
590
- [_gI, _cT, _de],
602
+ [_gI, _cTl, _de],
591
603
  [[0, 1], [0, 4], 0], 1
592
604
  ];
593
605
  export var UpdateRequesterGatewayResponse$ = [3, n0, _URGRp,
@@ -597,8 +609,8 @@ export var UpdateRequesterGatewayResponse$ = [3, n0, _URGRp,
597
609
  ];
598
610
  export var UpdateResponderGatewayRequest$ = [3, n0, _URGRpd,
599
611
  0,
600
- [_p, _pr, _gI, _dN, _tSC, _mEC, _cT, _de],
601
- [1, 0, [0, 1], 0, [() => TrustStoreConfiguration$, 0], [() => ManagedEndpointConfiguration$, 0], [0, 4], 0], 3
612
+ [_p, _pr, _gI, _dN, _lC, _tSC, _mEC, _cTl, _de],
613
+ [1, 0, [0, 1], 0, () => ListenerConfig$, [() => TrustStoreConfiguration$, 0], [() => ManagedEndpointConfiguration$, 0], [0, 4], 0], 3
602
614
  ];
603
615
  export var UpdateResponderGatewayResponse$ = [3, n0, _URGRpda,
604
616
  0,
@@ -624,6 +636,7 @@ var LinkList = [1, n0, _LL,
624
636
  var ModuleConfigurationList = [1, n0, _MCL,
625
637
  0, () => ModuleConfiguration$
626
638
  ];
639
+ var ProtocolList = 64 | 0;
627
640
  var ResponderErrorMasking = [1, n0, _REM,
628
641
  0, () => ResponderErrorMaskingForHttpCode$
629
642
  ];
@@ -1,7 +1,10 @@
1
1
  export * from "./waitForInboundExternalLinkActive";
2
+ export * from "./waitForInboundExternalLinkDeleted";
2
3
  export * from "./waitForLinkAccepted";
3
4
  export * from "./waitForLinkActive";
5
+ export * from "./waitForLinkDeleted";
4
6
  export * from "./waitForOutboundExternalLinkActive";
7
+ export * from "./waitForOutboundExternalLinkDeleted";
5
8
  export * from "./waitForRequesterGatewayActive";
6
9
  export * from "./waitForRequesterGatewayDeleted";
7
10
  export * from "./waitForResponderGatewayActive";
@@ -0,0 +1,49 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
+ import { GetInboundExternalLinkCommand, } from "../commands/GetInboundExternalLinkCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetInboundExternalLinkCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "DELETED") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.status;
29
+ };
30
+ if (returnComparator() === "REJECTED") {
31
+ return { state: WaiterState.FAILURE, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ }
36
+ catch (exception) {
37
+ reason = exception;
38
+ }
39
+ return { state: WaiterState.RETRY, reason };
40
+ };
41
+ export const waitForInboundExternalLinkDeleted = async (params, input) => {
42
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
43
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
+ };
45
+ export const waitUntilInboundExternalLinkDeleted = async (params, input) => {
46
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
47
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
+ return checkExceptions(result);
49
+ };
@@ -0,0 +1,49 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
+ import { GetLinkCommand } from "../commands/GetLinkCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetLinkCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "DELETED") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.status;
29
+ };
30
+ if (returnComparator() === "REJECTED") {
31
+ return { state: WaiterState.FAILURE, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ }
36
+ catch (exception) {
37
+ reason = exception;
38
+ }
39
+ return { state: WaiterState.RETRY, reason };
40
+ };
41
+ export const waitForLinkDeleted = async (params, input) => {
42
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
43
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
+ };
45
+ export const waitUntilLinkDeleted = async (params, input) => {
46
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
47
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
+ return checkExceptions(result);
49
+ };
@@ -0,0 +1,49 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
+ import { GetOutboundExternalLinkCommand, } from "../commands/GetOutboundExternalLinkCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetOutboundExternalLinkCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "DELETED") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.status;
29
+ };
30
+ if (returnComparator() === "REJECTED") {
31
+ return { state: WaiterState.FAILURE, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ }
36
+ catch (exception) {
37
+ reason = exception;
38
+ }
39
+ return { state: WaiterState.RETRY, reason };
40
+ };
41
+ export const waitForOutboundExternalLinkDeleted = async (params, input) => {
42
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
43
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
+ };
45
+ export const waitUntilOutboundExternalLinkDeleted = async (params, input) => {
46
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
47
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
+ return checkExceptions(result);
49
+ };
@@ -26,6 +26,9 @@ const checkState = async (client, input) => {
26
26
  }
27
27
  catch (exception) {
28
28
  reason = exception;
29
+ if (exception.name && exception.name == "ResourceNotFoundException") {
30
+ return { state: WaiterState.SUCCESS, reason };
31
+ }
29
32
  }
30
33
  return { state: WaiterState.RETRY, reason };
31
34
  };
@@ -26,6 +26,9 @@ const checkState = async (client, input) => {
26
26
  }
27
27
  catch (exception) {
28
28
  reason = exception;
29
+ if (exception.name && exception.name == "ResourceNotFoundException") {
30
+ return { state: WaiterState.SUCCESS, reason };
31
+ }
29
32
  }
30
33
  return { state: WaiterState.RETRY, reason };
31
34
  };
@@ -220,6 +220,12 @@ export interface RTBFabric {
220
220
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
221
221
  */
222
222
  waitUntilInboundExternalLinkActive(args: GetInboundExternalLinkCommandInput, waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">): Promise<WaiterResult>;
223
+ /**
224
+ * @see {@link GetInboundExternalLinkCommand}
225
+ * @param args - command input.
226
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
227
+ */
228
+ waitUntilInboundExternalLinkDeleted(args: GetInboundExternalLinkCommandInput, waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">): Promise<WaiterResult>;
223
229
  /**
224
230
  * @see {@link GetLinkCommand}
225
231
  * @param args - command input.
@@ -232,12 +238,24 @@ export interface RTBFabric {
232
238
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
233
239
  */
234
240
  waitUntilLinkActive(args: GetLinkCommandInput, waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">): Promise<WaiterResult>;
241
+ /**
242
+ * @see {@link GetLinkCommand}
243
+ * @param args - command input.
244
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
245
+ */
246
+ waitUntilLinkDeleted(args: GetLinkCommandInput, waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">): Promise<WaiterResult>;
235
247
  /**
236
248
  * @see {@link GetOutboundExternalLinkCommand}
237
249
  * @param args - command input.
238
250
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
239
251
  */
240
252
  waitUntilOutboundExternalLinkActive(args: GetOutboundExternalLinkCommandInput, waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">): Promise<WaiterResult>;
253
+ /**
254
+ * @see {@link GetOutboundExternalLinkCommand}
255
+ * @param args - command input.
256
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
257
+ */
258
+ waitUntilOutboundExternalLinkDeleted(args: GetOutboundExternalLinkCommandInput, waiterConfig: number | Omit<WaiterConfiguration<RTBFabric>, "client">): Promise<WaiterResult>;
241
259
  /**
242
260
  * @see {@link GetRequesterGatewayCommand}
243
261
  * @param args - command input.
@@ -60,6 +60,7 @@ declare const AcceptLinkCommand_base: {
60
60
  * },
61
61
  * },
62
62
  * },
63
+ * timeoutInMillis: Number("long"),
63
64
  * };
64
65
  * const command = new AcceptLinkCommand(input);
65
66
  * const response = await client.send(command);
@@ -171,6 +172,15 @@ declare const AcceptLinkCommand_base: {
171
172
  * // ],
172
173
  * // customerProvidedId: "STRING_VALUE",
173
174
  * // },
175
+ * // logSettings: { // LinkLogSettings
176
+ * // applicationLogs: { // LinkApplicationLogConfiguration
177
+ * // sampling: { // LinkApplicationLogSampling
178
+ * // errorLog: Number("double"), // required
179
+ * // filterLog: Number("double"), // required
180
+ * // },
181
+ * // },
182
+ * // },
183
+ * // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
174
184
  * // linkId: "STRING_VALUE", // required
175
185
  * // };
176
186
  *
@@ -64,6 +64,7 @@ declare const CreateLinkCommand_base: {
64
64
  * },
65
65
  * },
66
66
  * },
67
+ * timeoutInMillis: Number("long"),
67
68
  * };
68
69
  * const command = new CreateLinkCommand(input);
69
70
  * const response = await client.send(command);
@@ -175,6 +176,15 @@ declare const CreateLinkCommand_base: {
175
176
  * // ],
176
177
  * // customerProvidedId: "STRING_VALUE",
177
178
  * // },
179
+ * // logSettings: { // LinkLogSettings
180
+ * // applicationLogs: { // LinkApplicationLogConfiguration
181
+ * // sampling: { // LinkApplicationLogSampling
182
+ * // errorLog: Number("double"), // required
183
+ * // filterLog: Number("double"), // required
184
+ * // },
185
+ * // },
186
+ * // },
187
+ * // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
178
188
  * // linkId: "STRING_VALUE", // required
179
189
  * // customerProvidedId: "STRING_VALUE",
180
190
  * // };
@@ -212,9 +222,9 @@ declare const CreateLinkCommand_base: {
212
222
  * <p>Base exception class for all service exceptions from RTBFabric service.</p>
213
223
  *
214
224
  *
215
- * @example Create a new link
225
+ * @example Create a standard link between gateways
216
226
  * ```javascript
217
- * // Creates a new link between RTB applications
227
+ * // Creates a new link between two RTB applications. Requires peerGatewayId to specify the target gateway.
218
228
  * const input = {
219
229
  * gatewayId: "rtb-gw-12345678",
220
230
  * logSettings: {
@@ -47,6 +47,11 @@ declare const CreateResponderGatewayCommand_base: {
47
47
  * domainName: "STRING_VALUE",
48
48
  * port: Number("int"), // required
49
49
  * protocol: "HTTP" || "HTTPS", // required
50
+ * listenerConfig: { // ListenerConfig
51
+ * protocols: [ // ProtocolList // required
52
+ * "HTTP" || "HTTPS",
53
+ * ],
54
+ * },
50
55
  * trustStoreConfiguration: { // TrustStoreConfiguration
51
56
  * certificateAuthorityCertificates: [ // CertificateAuthorityCertificates // required
52
57
  * "STRING_VALUE",
@@ -73,12 +78,19 @@ declare const CreateResponderGatewayCommand_base: {
73
78
  * tags: { // TagsMap
74
79
  * "<keys>": "STRING_VALUE",
75
80
  * },
81
+ * gatewayType: "EXTERNAL" || "INTERNAL",
76
82
  * };
77
83
  * const command = new CreateResponderGatewayCommand(input);
78
84
  * const response = await client.send(command);
79
85
  * // { // CreateResponderGatewayResponse
80
86
  * // gatewayId: "STRING_VALUE", // required
81
87
  * // status: "PENDING_CREATION" || "ACTIVE" || "PENDING_DELETION" || "DELETED" || "ERROR" || "PENDING_UPDATE" || "ISOLATED" || "PENDING_ISOLATION" || "PENDING_RESTORATION", // required
88
+ * // listenerConfig: { // ListenerConfig
89
+ * // protocols: [ // ProtocolList // required
90
+ * // "HTTP" || "HTTPS",
91
+ * // ],
92
+ * // },
93
+ * // externalInboundEndpoint: "STRING_VALUE",
82
94
  * // };
83
95
  *
84
96
  * ```
@@ -161,6 +161,7 @@ declare const GetInboundExternalLinkCommand_base: {
161
161
  * // },
162
162
  * // },
163
163
  * // },
164
+ * // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
164
165
  * // };
165
166
  *
166
167
  * ```
@@ -202,7 +203,7 @@ declare const GetInboundExternalLinkCommand_base: {
202
203
  * /* response is
203
204
  * {
204
205
  * createdAt: "2024-01-15T10:30:00Z",
205
- * domainName: "rtb-gw-12345678.example.com",
206
+ * domainName: "rtb-gw-12345678.123456789012.gateway.rtbfabric.us-east-1.amazonaws.com",
206
207
  * gatewayId: "rtb-gw-12345678",
207
208
  * linkId: "link-87654321",
208
209
  * status: "ACTIVE",
@@ -150,10 +150,6 @@ declare const GetLinkCommand_base: {
150
150
  * // ],
151
151
  * // customerProvidedId: "STRING_VALUE",
152
152
  * // },
153
- * // linkId: "STRING_VALUE", // required
154
- * // tags: { // TagsMap
155
- * // "<keys>": "STRING_VALUE",
156
- * // },
157
153
  * // logSettings: { // LinkLogSettings
158
154
  * // applicationLogs: { // LinkApplicationLogConfiguration
159
155
  * // sampling: { // LinkApplicationLogSampling
@@ -162,6 +158,13 @@ declare const GetLinkCommand_base: {
162
158
  * // },
163
159
  * // },
164
160
  * // },
161
+ * // connectivityType: "DEFAULT" || "PUBLIC_INGRESS" || "PUBLIC_EGRESS" || "EXTERNAL_INBOUND",
162
+ * // linkId: "STRING_VALUE", // required
163
+ * // tags: { // TagsMap
164
+ * // "<keys>": "STRING_VALUE",
165
+ * // },
166
+ * // httpResponderAllowed: true || false,
167
+ * // timeoutInMillis: Number("long"),
165
168
  * // };
166
169
  *
167
170
  * ```