@aws-sdk/client-direct-connect 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultDirectConnectHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2012-10-25",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.directconnect",
30
+ errorTypeRegistries,
29
31
  xmlNamespace: "http://directconnect.amazonaws.com/doc/2012-10-25/",
30
32
  version: "2012-10-25",
31
33
  serviceTarget: "OvertureService",
@@ -243,7 +243,7 @@ const _bP = "bgpPeers";
243
243
  const _bPI = "bgpPeerId";
244
244
  const _bPS = "bgpPeerState";
245
245
  const _bS = "bgpStatus";
246
- const _c = "ckn";
246
+ const _c = "client";
247
247
  const _cA = "customerAddress";
248
248
  const _cB = "connectionsBandwidth";
249
249
  const _cCT = "childConnectionTags";
@@ -253,7 +253,7 @@ const _cRC = "customerRouterConfig";
253
253
  const _cS = "connectionState";
254
254
  const _ca = "cak";
255
255
  const _ci = "cidr";
256
- const _cl = "client";
256
+ const _ck = "ckn";
257
257
  const _co = "connections";
258
258
  const _dCG = "directConnectGateway";
259
259
  const _dCGA = "directConnectGatewayAssociation";
@@ -330,16 +330,16 @@ const _rMACS = "requestMACSec";
330
330
  const _rT = "resourceTags";
331
331
  const _rTI = "routerTypeIdentifier";
332
332
  const _ro = "router";
333
- const _s = "status";
333
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.directconnect";
334
334
  const _sARN = "secretARN";
335
335
  const _sCE = "stateChangeError";
336
336
  const _sLE = "siteLinkEnabled";
337
337
  const _sO = "startOn";
338
338
  const _sT = "startTime";
339
339
  const _se = "server";
340
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.directconnect";
341
340
  const _so = "software";
342
- const _st = "state";
341
+ const _st = "status";
342
+ const _sta = "state";
343
343
  const _t = "tags";
344
344
  const _tDIM = "testDurationInMinutes";
345
345
  const _tI = "testId";
@@ -369,6 +369,38 @@ const n0 = "com.amazonaws.directconnect";
369
369
  import { TypeRegistry } from "@smithy/core/schema";
370
370
  import { DirectConnectServiceException } from "../models/DirectConnectServiceException";
371
371
  import { DirectConnectClientException, DirectConnectServerException, DuplicateTagKeysException, TooManyTagsException, } from "../models/errors";
372
+ const _s_registry = TypeRegistry.for(_s);
373
+ export var DirectConnectServiceException$ = [-3, _s, "DirectConnectServiceException", 0, [], []];
374
+ _s_registry.registerError(DirectConnectServiceException$, DirectConnectServiceException);
375
+ const n0_registry = TypeRegistry.for(n0);
376
+ export var DirectConnectClientException$ = [-3, n0, _DCCE,
377
+ { [_e]: _c },
378
+ [_m],
379
+ [0]
380
+ ];
381
+ n0_registry.registerError(DirectConnectClientException$, DirectConnectClientException);
382
+ export var DirectConnectServerException$ = [-3, n0, _DCSE,
383
+ { [_e]: _se, [_hE]: 500 },
384
+ [_m],
385
+ [0]
386
+ ];
387
+ n0_registry.registerError(DirectConnectServerException$, DirectConnectServerException);
388
+ export var DuplicateTagKeysException$ = [-3, n0, _DTKE,
389
+ { [_e]: _c },
390
+ [_m],
391
+ [0]
392
+ ];
393
+ n0_registry.registerError(DuplicateTagKeysException$, DuplicateTagKeysException);
394
+ export var TooManyTagsException$ = [-3, n0, _TMTE,
395
+ { [_e]: _c },
396
+ [_m],
397
+ [0]
398
+ ];
399
+ n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
400
+ export const errorTypeRegistries = [
401
+ _s_registry,
402
+ n0_registry,
403
+ ];
372
404
  export var AcceptDirectConnectGatewayAssociationProposalRequest$ = [3, n0, _ADCGAPR,
373
405
  0,
374
406
  [_dCGI, _pI, _aGOA, _oAPTDCG],
@@ -431,7 +463,7 @@ export var AssociateHostedConnectionRequest$ = [3, n0, _AHCRs,
431
463
  ];
432
464
  export var AssociateMacSecKeyRequest$ = [3, n0, _AMSKR,
433
465
  0,
434
- [_cI, _sARN, _c, _ca],
466
+ [_cI, _sARN, _ck, _ca],
435
467
  [0, 0, 0, 0], 1
436
468
  ];
437
469
  export var AssociateMacSecKeyResponse$ = [3, n0, _AMSKRs,
@@ -466,7 +498,7 @@ export var ConfirmCustomerAgreementRequest$ = [3, n0, _CCAR,
466
498
  ];
467
499
  export var ConfirmCustomerAgreementResponse$ = [3, n0, _CCARo,
468
500
  0,
469
- [_s],
501
+ [_st],
470
502
  [0]
471
503
  ];
472
504
  export var ConfirmPrivateVirtualInterfaceRequest$ = [3, n0, _CPVIR,
@@ -586,7 +618,7 @@ export var CreateTransitVirtualInterfaceResult$ = [3, n0, _CTVIRre,
586
618
  ];
587
619
  export var CustomerAgreement$ = [3, n0, _CA,
588
620
  0,
589
- [_aN, _s],
621
+ [_aN, _st],
590
622
  [0, 0]
591
623
  ];
592
624
  export var DeleteBGPPeerRequest$ = [3, n0, _DBGPPR,
@@ -779,12 +811,6 @@ export var DescribeVirtualInterfacesRequest$ = [3, n0, _DVIRes,
779
811
  [_cI, _vII, _mR, _nT],
780
812
  [0, 0, 1, 0]
781
813
  ];
782
- export var DirectConnectClientException$ = [-3, n0, _DCCE,
783
- { [_e]: _cl },
784
- [_m],
785
- [0]
786
- ];
787
- TypeRegistry.for(n0).registerError(DirectConnectClientException$, DirectConnectClientException);
788
814
  export var DirectConnectGateway$ = [3, n0, _DCG,
789
815
  0,
790
816
  [_dCGI, _dCGN, _aSA, _oA, _dCGS, _sCE, _t],
@@ -805,12 +831,6 @@ export var DirectConnectGatewayAttachment$ = [3, n0, _DCGAi,
805
831
  [_dCGI, _vII, _vIR, _vIOA, _aSt, _aT, _sCE],
806
832
  [0, 0, 0, 0, 0, 0, 0]
807
833
  ];
808
- export var DirectConnectServerException$ = [-3, n0, _DCSE,
809
- { [_e]: _se, [_hE]: 500 },
810
- [_m],
811
- [0]
812
- ];
813
- TypeRegistry.for(n0).registerError(DirectConnectServerException$, DirectConnectServerException);
814
834
  export var DisassociateConnectionFromLagRequest$ = [3, n0, _DCFLR,
815
835
  0,
816
836
  [_cI, _lI],
@@ -826,12 +846,6 @@ export var DisassociateMacSecKeyResponse$ = [3, n0, _DMSKRi,
826
846
  [_cI, _mSK],
827
847
  [0, () => MacSecKeyList]
828
848
  ];
829
- export var DuplicateTagKeysException$ = [-3, n0, _DTKE,
830
- { [_e]: _cl },
831
- [_m],
832
- [0]
833
- ];
834
- TypeRegistry.for(n0).registerError(DuplicateTagKeysException$, DuplicateTagKeysException);
835
849
  export var Interconnect$ = [3, n0, _I,
836
850
  0,
837
851
  [_iI, _iN, _iS, _r, _l, _b, _lIT, _lI, _aD, _jFC, _aDV, _aLDI, _hLR, _t, _pNr, _mSC, _pES, _eM, _mSK],
@@ -854,7 +868,7 @@ export var Lags$ = [3, n0, _La,
854
868
  ];
855
869
  export var ListVirtualInterfaceTestHistoryRequest$ = [3, n0, _LVITHR,
856
870
  0,
857
- [_tI, _vII, _bP, _s, _mR, _nT],
871
+ [_tI, _vII, _bP, _st, _mR, _nT],
858
872
  [0, 0, 64 | 0, 0, 1, 0]
859
873
  ];
860
874
  export var ListVirtualInterfaceTestHistoryResponse$ = [3, n0, _LVITHRi,
@@ -879,7 +893,7 @@ export var Locations$ = [3, n0, _Loca,
879
893
  ];
880
894
  export var MacSecKey$ = [3, n0, _MSK,
881
895
  0,
882
- [_sARN, _c, _st, _sO],
896
+ [_sARN, _ck, _sta, _sO],
883
897
  [0, 0, 0, 0]
884
898
  ];
885
899
  export var NewBGPPeer$ = [3, n0, _NBGPP,
@@ -967,12 +981,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
967
981
  [],
968
982
  []
969
983
  ];
970
- export var TooManyTagsException$ = [-3, n0, _TMTE,
971
- { [_e]: _cl },
972
- [_m],
973
- [0]
974
- ];
975
- TypeRegistry.for(n0).registerError(TooManyTagsException$, TooManyTagsException);
976
984
  export var UntagResourceRequest$ = [3, n0, _URR,
977
985
  0,
978
986
  [_rAe, _tK],
@@ -1040,12 +1048,10 @@ export var VirtualInterfaces$ = [3, n0, _VIi,
1040
1048
  ];
1041
1049
  export var VirtualInterfaceTestHistory$ = [3, n0, _VITH,
1042
1050
  0,
1043
- [_tI, _vII, _bP, _s, _oA, _tDIM, _sT, _eT],
1051
+ [_tI, _vII, _bP, _st, _oA, _tDIM, _sT, _eT],
1044
1052
  [0, 0, 64 | 0, 0, 0, 1, 4, 4]
1045
1053
  ];
1046
1054
  var __Unit = "unit";
1047
- export var DirectConnectServiceException$ = [-3, _sm, "DirectConnectServiceException", 0, [], []];
1048
- TypeRegistry.for(_sm).registerError(DirectConnectServiceException$, DirectConnectServiceException);
1049
1055
  var AgreementList = [1, n0, _AL,
1050
1056
  0, () => CustomerAgreement$
1051
1057
  ];
@@ -1,4 +1,16 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var DirectConnectServiceException$: StaticErrorSchema;
4
+ export declare var DirectConnectClientException$: StaticErrorSchema;
5
+ export declare var DirectConnectServerException$: StaticErrorSchema;
6
+ export declare var DuplicateTagKeysException$: StaticErrorSchema;
7
+ export declare var TooManyTagsException$: StaticErrorSchema;
8
+ /**
9
+ * TypeRegistry instances containing modeled errors.
10
+ * @internal
11
+ *
12
+ */
13
+ export declare const errorTypeRegistries: TypeRegistry[];
2
14
  export declare var AcceptDirectConnectGatewayAssociationProposalRequest$: StaticStructureSchema;
3
15
  export declare var AcceptDirectConnectGatewayAssociationProposalResult$: StaticStructureSchema;
4
16
  export declare var AllocateConnectionOnInterconnectRequest$: StaticStructureSchema;
@@ -81,16 +93,13 @@ export declare var DescribeRouterConfigurationResponse$: StaticStructureSchema;
81
93
  export declare var DescribeTagsRequest$: StaticStructureSchema;
82
94
  export declare var DescribeTagsResponse$: StaticStructureSchema;
83
95
  export declare var DescribeVirtualInterfacesRequest$: StaticStructureSchema;
84
- export declare var DirectConnectClientException$: StaticErrorSchema;
85
96
  export declare var DirectConnectGateway$: StaticStructureSchema;
86
97
  export declare var DirectConnectGatewayAssociation$: StaticStructureSchema;
87
98
  export declare var DirectConnectGatewayAssociationProposal$: StaticStructureSchema;
88
99
  export declare var DirectConnectGatewayAttachment$: StaticStructureSchema;
89
- export declare var DirectConnectServerException$: StaticErrorSchema;
90
100
  export declare var DisassociateConnectionFromLagRequest$: StaticStructureSchema;
91
101
  export declare var DisassociateMacSecKeyRequest$: StaticStructureSchema;
92
102
  export declare var DisassociateMacSecKeyResponse$: StaticStructureSchema;
93
- export declare var DuplicateTagKeysException$: StaticErrorSchema;
94
103
  export declare var Interconnect$: StaticStructureSchema;
95
104
  export declare var Interconnects$: StaticStructureSchema;
96
105
  export declare var Lag$: StaticStructureSchema;
@@ -118,7 +127,6 @@ export declare var StopBgpFailoverTestResponse$: StaticStructureSchema;
118
127
  export declare var Tag$: StaticStructureSchema;
119
128
  export declare var TagResourceRequest$: StaticStructureSchema;
120
129
  export declare var TagResourceResponse$: StaticStructureSchema;
121
- export declare var TooManyTagsException$: StaticErrorSchema;
122
130
  export declare var UntagResourceRequest$: StaticStructureSchema;
123
131
  export declare var UntagResourceResponse$: StaticStructureSchema;
124
132
  export declare var UpdateConnectionRequest$: StaticStructureSchema;
@@ -133,7 +141,6 @@ export declare var VirtualGateways$: StaticStructureSchema;
133
141
  export declare var VirtualInterface$: StaticStructureSchema;
134
142
  export declare var VirtualInterfaces$: StaticStructureSchema;
135
143
  export declare var VirtualInterfaceTestHistory$: StaticStructureSchema;
136
- export declare var DirectConnectServiceException$: StaticErrorSchema;
137
144
  export declare var AcceptDirectConnectGatewayAssociationProposal$: StaticOperationSchema;
138
145
  export declare var AllocateConnectionOnInterconnect$: StaticOperationSchema;
139
146
  export declare var AllocateHostedConnection$: StaticOperationSchema;
@@ -1,8 +1,15 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var DirectConnectServiceException$: StaticErrorSchema;
8
+ export declare var DirectConnectClientException$: StaticErrorSchema;
9
+ export declare var DirectConnectServerException$: StaticErrorSchema;
10
+ export declare var DuplicateTagKeysException$: StaticErrorSchema;
11
+ export declare var TooManyTagsException$: StaticErrorSchema;
12
+ export declare const errorTypeRegistries: TypeRegistry[];
6
13
  export declare var AcceptDirectConnectGatewayAssociationProposalRequest$: StaticStructureSchema;
7
14
  export declare var AcceptDirectConnectGatewayAssociationProposalResult$: StaticStructureSchema;
8
15
  export declare var AllocateConnectionOnInterconnectRequest$: StaticStructureSchema;
@@ -85,16 +92,13 @@ export declare var DescribeRouterConfigurationResponse$: StaticStructureSchema;
85
92
  export declare var DescribeTagsRequest$: StaticStructureSchema;
86
93
  export declare var DescribeTagsResponse$: StaticStructureSchema;
87
94
  export declare var DescribeVirtualInterfacesRequest$: StaticStructureSchema;
88
- export declare var DirectConnectClientException$: StaticErrorSchema;
89
95
  export declare var DirectConnectGateway$: StaticStructureSchema;
90
96
  export declare var DirectConnectGatewayAssociation$: StaticStructureSchema;
91
97
  export declare var DirectConnectGatewayAssociationProposal$: StaticStructureSchema;
92
98
  export declare var DirectConnectGatewayAttachment$: StaticStructureSchema;
93
- export declare var DirectConnectServerException$: StaticErrorSchema;
94
99
  export declare var DisassociateConnectionFromLagRequest$: StaticStructureSchema;
95
100
  export declare var DisassociateMacSecKeyRequest$: StaticStructureSchema;
96
101
  export declare var DisassociateMacSecKeyResponse$: StaticStructureSchema;
97
- export declare var DuplicateTagKeysException$: StaticErrorSchema;
98
102
  export declare var Interconnect$: StaticStructureSchema;
99
103
  export declare var Interconnects$: StaticStructureSchema;
100
104
  export declare var Lag$: StaticStructureSchema;
@@ -122,7 +126,6 @@ export declare var StopBgpFailoverTestResponse$: StaticStructureSchema;
122
126
  export declare var Tag$: StaticStructureSchema;
123
127
  export declare var TagResourceRequest$: StaticStructureSchema;
124
128
  export declare var TagResourceResponse$: StaticStructureSchema;
125
- export declare var TooManyTagsException$: StaticErrorSchema;
126
129
  export declare var UntagResourceRequest$: StaticStructureSchema;
127
130
  export declare var UntagResourceResponse$: StaticStructureSchema;
128
131
  export declare var UpdateConnectionRequest$: StaticStructureSchema;
@@ -137,7 +140,6 @@ export declare var VirtualGateways$: StaticStructureSchema;
137
140
  export declare var VirtualInterface$: StaticStructureSchema;
138
141
  export declare var VirtualInterfaces$: StaticStructureSchema;
139
142
  export declare var VirtualInterfaceTestHistory$: StaticStructureSchema;
140
- export declare var DirectConnectServiceException$: StaticErrorSchema;
141
143
  export declare var AcceptDirectConnectGatewayAssociationProposal$: StaticOperationSchema;
142
144
  export declare var AllocateConnectionOnInterconnect$: StaticOperationSchema;
143
145
  export declare var AllocateHostedConnection$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-direct-connect",
3
3
  "description": "AWS SDK for JavaScript Direct Connect Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-direct-connect",
@@ -23,38 +23,38 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.7",
27
- "@aws-sdk/credential-provider-node": "^3.972.6",
26
+ "@aws-sdk/core": "^3.973.9",
27
+ "@aws-sdk/credential-provider-node": "^3.972.8",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.3",
29
29
  "@aws-sdk/middleware-logger": "^3.972.3",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
31
- "@aws-sdk/middleware-user-agent": "^3.972.7",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
32
32
  "@aws-sdk/region-config-resolver": "^3.972.3",
33
33
  "@aws-sdk/types": "^3.973.1",
34
- "@aws-sdk/util-endpoints": "3.987.0",
34
+ "@aws-sdk/util-endpoints": "3.989.0",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
36
- "@aws-sdk/util-user-agent-node": "^3.972.5",
36
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
37
37
  "@smithy/config-resolver": "^4.4.6",
38
- "@smithy/core": "^3.22.1",
38
+ "@smithy/core": "^3.23.0",
39
39
  "@smithy/fetch-http-handler": "^5.3.9",
40
40
  "@smithy/hash-node": "^4.2.8",
41
41
  "@smithy/invalid-dependency": "^4.2.8",
42
42
  "@smithy/middleware-content-length": "^4.2.8",
43
- "@smithy/middleware-endpoint": "^4.4.13",
44
- "@smithy/middleware-retry": "^4.4.30",
43
+ "@smithy/middleware-endpoint": "^4.4.14",
44
+ "@smithy/middleware-retry": "^4.4.31",
45
45
  "@smithy/middleware-serde": "^4.2.9",
46
46
  "@smithy/middleware-stack": "^4.2.8",
47
47
  "@smithy/node-config-provider": "^4.3.8",
48
- "@smithy/node-http-handler": "^4.4.9",
48
+ "@smithy/node-http-handler": "^4.4.10",
49
49
  "@smithy/protocol-http": "^5.3.8",
50
- "@smithy/smithy-client": "^4.11.2",
50
+ "@smithy/smithy-client": "^4.11.3",
51
51
  "@smithy/types": "^4.12.0",
52
52
  "@smithy/url-parser": "^4.2.8",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.29",
57
- "@smithy/util-defaults-mode-node": "^4.2.32",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
57
+ "@smithy/util-defaults-mode-node": "^4.2.33",
58
58
  "@smithy/util-endpoints": "^3.2.8",
59
59
  "@smithy/util-middleware": "^4.2.8",
60
60
  "@smithy/util-retry": "^4.2.8",