@aws-sdk/client-interconnect 3.1030.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/LICENSE +201 -0
- package/README.md +311 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +454 -0
- package/dist-cjs/models/InterconnectServiceException.js +12 -0
- package/dist-cjs/models/errors.js +95 -0
- package/dist-cjs/runtimeConfig.browser.js +38 -0
- package/dist-cjs/runtimeConfig.js +54 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +379 -0
- package/dist-es/Interconnect.js +47 -0
- package/dist-es/InterconnectClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/AcceptConnectionProposalCommand.js +16 -0
- package/dist-es/commands/CreateConnectionCommand.js +16 -0
- package/dist-es/commands/DeleteConnectionCommand.js +16 -0
- package/dist-es/commands/DescribeConnectionProposalCommand.js +16 -0
- package/dist-es/commands/GetConnectionCommand.js +16 -0
- package/dist-es/commands/GetEnvironmentCommand.js +16 -0
- package/dist-es/commands/ListAttachPointsCommand.js +16 -0
- package/dist-es/commands/ListConnectionsCommand.js +16 -0
- package/dist-es/commands/ListEnvironmentsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateConnectionCommand.js +16 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/InterconnectServiceException.js +8 -0
- package/dist-es/models/enums.js +22 -0
- package/dist-es/models/errors.js +85 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAttachPointsPaginator.js +4 -0
- package/dist-es/pagination/ListConnectionsPaginator.js +4 -0
- package/dist-es/pagination/ListEnvironmentsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/runtimeConfig.browser.js +33 -0
- package/dist-es/runtimeConfig.js +49 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +375 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForConnectionAvailable.js +49 -0
- package/dist-es/waiters/waitForConnectionDeleted.js +31 -0
- package/dist-types/Interconnect.d.ts +137 -0
- package/dist-types/InterconnectClient.d.ts +200 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AcceptConnectionProposalCommand.d.ts +164 -0
- package/dist-types/commands/CreateConnectionCommand.d.ts +172 -0
- package/dist-types/commands/DeleteConnectionCommand.d.ts +153 -0
- package/dist-types/commands/DescribeConnectionProposalCommand.d.ts +121 -0
- package/dist-types/commands/GetConnectionCommand.d.ts +152 -0
- package/dist-types/commands/GetEnvironmentCommand.d.ts +146 -0
- package/dist-types/commands/ListAttachPointsCommand.d.ts +125 -0
- package/dist-types/commands/ListConnectionsCommand.d.ts +242 -0
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +173 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +115 -0
- package/dist-types/commands/TagResourceCommand.d.ts +113 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +113 -0
- package/dist-types/commands/UpdateConnectionCommand.d.ts +190 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/InterconnectServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +54 -0
- package/dist-types/models/errors.d.ts +86 -0
- package/dist-types/models/models_0.d.ts +764 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAttachPointsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConnectionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +63 -0
- package/dist-types/ts3.4/Interconnect.d.ts +275 -0
- package/dist-types/ts3.4/InterconnectClient.d.ts +197 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AcceptConnectionProposalCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DescribeConnectionProposalCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListAttachPointsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/InterconnectServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +30 -0
- package/dist-types/ts3.4/models/errors.d.ts +54 -0
- package/dist-types/ts3.4/models/models_0.d.ts +231 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAttachPointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConnectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +63 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForConnectionAvailable.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForConnectionDeleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForConnectionAvailable.d.ts +14 -0
- package/dist-types/waiters/waitForConnectionDeleted.d.ts +14 -0
- package/package.json +101 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
8
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
9
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
13
|
+
const getRuntimeConfig = (config) => {
|
|
14
|
+
return {
|
|
15
|
+
apiVersion: "2022-07-26",
|
|
16
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
17
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
18
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
19
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
20
|
+
extensions: config?.extensions ?? [],
|
|
21
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultInterconnectHttpAuthSchemeProvider,
|
|
22
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
23
|
+
{
|
|
24
|
+
schemeId: "aws.auth#sigv4",
|
|
25
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
26
|
+
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
30
|
+
protocol: config?.protocol ?? protocols_1.AwsJson1_0Protocol,
|
|
31
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
32
|
+
defaultNamespace: "com.amazonaws.interconnect",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
34
|
+
version: "2022-07-26",
|
|
35
|
+
serviceTarget: "Interconnect",
|
|
36
|
+
},
|
|
37
|
+
serviceId: config?.serviceId ?? "Interconnect",
|
|
38
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
39
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
40
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAttachPoints$ = exports.GetEnvironment$ = exports.GetConnection$ = exports.DescribeConnectionProposal$ = exports.DeleteConnection$ = exports.CreateConnection$ = exports.AcceptConnectionProposal$ = exports.RemoteAccountIdentifier$ = exports.Provider$ = exports.AttachPoint$ = exports.UpdateConnectionResponse$ = exports.UpdateConnectionRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListEnvironmentsResponse$ = exports.ListEnvironmentsRequest$ = exports.ListConnectionsResponse$ = exports.ListConnectionsRequest$ = exports.ListAttachPointsResponse$ = exports.ListAttachPointsRequest$ = exports.GetEnvironmentResponse$ = exports.GetEnvironmentRequest$ = exports.GetConnectionResponse$ = exports.GetConnectionRequest$ = exports.Environment$ = exports.DescribeConnectionProposalResponse$ = exports.DescribeConnectionProposalRequest$ = exports.DeleteConnectionResponse$ = exports.DeleteConnectionRequest$ = exports.CreateConnectionResponse$ = exports.CreateConnectionRequest$ = exports.ConnectionSummary$ = exports.Connection$ = exports.Bandwidths$ = exports.AttachPointDescriptor$ = exports.AcceptConnectionProposalResponse$ = exports.AcceptConnectionProposalRequest$ = exports.errorTypeRegistries = exports.ThrottlingException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InterconnectValidationException$ = exports.InterconnectServerException$ = exports.InterconnectClientException$ = exports.AccessDeniedException$ = exports.InterconnectServiceException$ = void 0;
|
|
4
|
+
exports.UpdateConnection$ = exports.UntagResource$ = exports.TagResource$ = exports.ListTagsForResource$ = exports.ListEnvironments$ = exports.ListConnections$ = void 0;
|
|
5
|
+
const _ACP = "AcceptConnectionProposal";
|
|
6
|
+
const _ACPR = "AcceptConnectionProposalRequest";
|
|
7
|
+
const _ACPRc = "AcceptConnectionProposalResponse";
|
|
8
|
+
const _ADE = "AccessDeniedException";
|
|
9
|
+
const _AK = "ActivationKey";
|
|
10
|
+
const _AP = "AttachPoint";
|
|
11
|
+
const _APD = "AttachPointDescriptor";
|
|
12
|
+
const _APDL = "AttachPointDescriptorList";
|
|
13
|
+
const _B = "Bandwidths";
|
|
14
|
+
const _C = "Connection";
|
|
15
|
+
const _CC = "CreateConnection";
|
|
16
|
+
const _CCR = "CreateConnectionRequest";
|
|
17
|
+
const _CCRr = "CreateConnectionResponse";
|
|
18
|
+
const _CS = "ConnectionSummary";
|
|
19
|
+
const _CSL = "ConnectionSummariesList";
|
|
20
|
+
const _DC = "DeleteConnection";
|
|
21
|
+
const _DCP = "DescribeConnectionProposal";
|
|
22
|
+
const _DCPR = "DescribeConnectionProposalRequest";
|
|
23
|
+
const _DCPRe = "DescribeConnectionProposalResponse";
|
|
24
|
+
const _DCR = "DeleteConnectionRequest";
|
|
25
|
+
const _DCRe = "DeleteConnectionResponse";
|
|
26
|
+
const _E = "Environment";
|
|
27
|
+
const _EL = "EnvironmentList";
|
|
28
|
+
const _GC = "GetConnection";
|
|
29
|
+
const _GCR = "GetConnectionRequest";
|
|
30
|
+
const _GCRe = "GetConnectionResponse";
|
|
31
|
+
const _GE = "GetEnvironment";
|
|
32
|
+
const _GER = "GetEnvironmentRequest";
|
|
33
|
+
const _GERe = "GetEnvironmentResponse";
|
|
34
|
+
const _ICE = "InterconnectClientException";
|
|
35
|
+
const _ISE = "InterconnectServerException";
|
|
36
|
+
const _IVE = "InterconnectValidationException";
|
|
37
|
+
const _LAP = "ListAttachPoints";
|
|
38
|
+
const _LAPR = "ListAttachPointsRequest";
|
|
39
|
+
const _LAPRi = "ListAttachPointsResponse";
|
|
40
|
+
const _LC = "ListConnections";
|
|
41
|
+
const _LCR = "ListConnectionsRequest";
|
|
42
|
+
const _LCRi = "ListConnectionsResponse";
|
|
43
|
+
const _LE = "ListEnvironments";
|
|
44
|
+
const _LER = "ListEnvironmentsRequest";
|
|
45
|
+
const _LERi = "ListEnvironmentsResponse";
|
|
46
|
+
const _LTFR = "ListTagsForResource";
|
|
47
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
48
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
49
|
+
const _P = "Provider";
|
|
50
|
+
const _RAI = "RemoteAccountIdentifier";
|
|
51
|
+
const _RNFE = "ResourceNotFoundException";
|
|
52
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
53
|
+
const _TE = "ThrottlingException";
|
|
54
|
+
const _TR = "TagResource";
|
|
55
|
+
const _TRR = "TagResourceRequest";
|
|
56
|
+
const _TRRa = "TagResourceResponse";
|
|
57
|
+
const _UC = "UpdateConnection";
|
|
58
|
+
const _UCR = "UpdateConnectionRequest";
|
|
59
|
+
const _UCRp = "UpdateConnectionResponse";
|
|
60
|
+
const _UR = "UntagResource";
|
|
61
|
+
const _URR = "UntagResourceRequest";
|
|
62
|
+
const _URRn = "UntagResourceResponse";
|
|
63
|
+
const _a = "available";
|
|
64
|
+
const _aK = "activationKey";
|
|
65
|
+
const _aP = "attachPoint";
|
|
66
|
+
const _aPU = "activationPageUrl";
|
|
67
|
+
const _aPt = "attachPoints";
|
|
68
|
+
const _ar = "arn";
|
|
69
|
+
const _b = "bandwidth";
|
|
70
|
+
const _bT = "billingTier";
|
|
71
|
+
const _ba = "bandwidths";
|
|
72
|
+
const _c = "client";
|
|
73
|
+
const _cSP = "cloudServiceProvider";
|
|
74
|
+
const _cT = "clientToken";
|
|
75
|
+
const _co = "connection";
|
|
76
|
+
const _con = "connections";
|
|
77
|
+
const _d = "description";
|
|
78
|
+
const _dCG = "directConnectGateway";
|
|
79
|
+
const _e = "error";
|
|
80
|
+
const _eI = "environmentId";
|
|
81
|
+
const _en = "environment";
|
|
82
|
+
const _env = "environments";
|
|
83
|
+
const _hE = "httpError";
|
|
84
|
+
const _i = "identifier";
|
|
85
|
+
const _id = "id";
|
|
86
|
+
const _l = "location";
|
|
87
|
+
const _lMP = "lastMileProvider";
|
|
88
|
+
const _m = "message";
|
|
89
|
+
const _mR = "maxResults";
|
|
90
|
+
const _n = "name";
|
|
91
|
+
const _nT = "nextToken";
|
|
92
|
+
const _oA = "ownerAccount";
|
|
93
|
+
const _p = "provider";
|
|
94
|
+
const _rA = "remoteAccount";
|
|
95
|
+
const _rIT = "remoteIdentifierType";
|
|
96
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.interconnect";
|
|
97
|
+
const _sI = "sharedId";
|
|
98
|
+
const _se = "server";
|
|
99
|
+
const _st = "state";
|
|
100
|
+
const _su = "supported";
|
|
101
|
+
const _t = "tags";
|
|
102
|
+
const _tK = "tagKeys";
|
|
103
|
+
const _ty = "type";
|
|
104
|
+
const n0 = "com.amazonaws.interconnect";
|
|
105
|
+
const schema_1 = require("@smithy/core/schema");
|
|
106
|
+
const errors_1 = require("../models/errors");
|
|
107
|
+
const InterconnectServiceException_1 = require("../models/InterconnectServiceException");
|
|
108
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
109
|
+
exports.InterconnectServiceException$ = [-3, _s, "InterconnectServiceException", 0, [], []];
|
|
110
|
+
_s_registry.registerError(exports.InterconnectServiceException$, InterconnectServiceException_1.InterconnectServiceException);
|
|
111
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
112
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE,
|
|
113
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
114
|
+
[_m],
|
|
115
|
+
[0]
|
|
116
|
+
];
|
|
117
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
118
|
+
exports.InterconnectClientException$ = [-3, n0, _ICE,
|
|
119
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
120
|
+
[_m],
|
|
121
|
+
[0], 1
|
|
122
|
+
];
|
|
123
|
+
n0_registry.registerError(exports.InterconnectClientException$, errors_1.InterconnectClientException);
|
|
124
|
+
exports.InterconnectServerException$ = [-3, n0, _ISE,
|
|
125
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
126
|
+
[_m],
|
|
127
|
+
[0], 1
|
|
128
|
+
];
|
|
129
|
+
n0_registry.registerError(exports.InterconnectServerException$, errors_1.InterconnectServerException);
|
|
130
|
+
exports.InterconnectValidationException$ = [-3, n0, _IVE,
|
|
131
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
132
|
+
[_m],
|
|
133
|
+
[0], 1
|
|
134
|
+
];
|
|
135
|
+
n0_registry.registerError(exports.InterconnectValidationException$, errors_1.InterconnectValidationException);
|
|
136
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
137
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
138
|
+
[_m],
|
|
139
|
+
[0]
|
|
140
|
+
];
|
|
141
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
142
|
+
exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
143
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
144
|
+
[_m],
|
|
145
|
+
[0]
|
|
146
|
+
];
|
|
147
|
+
n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
|
|
148
|
+
exports.ThrottlingException$ = [-3, n0, _TE,
|
|
149
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
150
|
+
[_m],
|
|
151
|
+
[0]
|
|
152
|
+
];
|
|
153
|
+
n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
|
|
154
|
+
exports.errorTypeRegistries = [
|
|
155
|
+
_s_registry,
|
|
156
|
+
n0_registry,
|
|
157
|
+
];
|
|
158
|
+
var ActivationKey = [0, n0, _AK, 8, 0];
|
|
159
|
+
exports.AcceptConnectionProposalRequest$ = [3, n0, _ACPR,
|
|
160
|
+
0,
|
|
161
|
+
[_aP, _aK, _d, _t, _cT],
|
|
162
|
+
[() => exports.AttachPoint$, [() => ActivationKey, 0], 0, 128 | 0, [0, 4]], 2
|
|
163
|
+
];
|
|
164
|
+
exports.AcceptConnectionProposalResponse$ = [3, n0, _ACPRc,
|
|
165
|
+
0,
|
|
166
|
+
[_co],
|
|
167
|
+
[[() => exports.Connection$, 0]]
|
|
168
|
+
];
|
|
169
|
+
exports.AttachPointDescriptor$ = [3, n0, _APD,
|
|
170
|
+
0,
|
|
171
|
+
[_ty, _i, _n],
|
|
172
|
+
[0, 0, 0], 3
|
|
173
|
+
];
|
|
174
|
+
exports.Bandwidths$ = [3, n0, _B,
|
|
175
|
+
0,
|
|
176
|
+
[_a, _su],
|
|
177
|
+
[64 | 0, 64 | 0]
|
|
178
|
+
];
|
|
179
|
+
exports.Connection$ = [3, n0, _C,
|
|
180
|
+
0,
|
|
181
|
+
[_id, _ar, _d, _b, _aP, _eI, _p, _l, _ty, _st, _sI, _oA, _aK, _bT, _t],
|
|
182
|
+
[0, 0, 0, 0, () => exports.AttachPoint$, 0, () => exports.Provider$, 0, 0, 0, 0, 0, [() => ActivationKey, 0], 1, 128 | 0], 13
|
|
183
|
+
];
|
|
184
|
+
exports.ConnectionSummary$ = [3, n0, _CS,
|
|
185
|
+
0,
|
|
186
|
+
[_id, _ar, _d, _b, _aP, _eI, _p, _l, _ty, _st, _sI, _bT],
|
|
187
|
+
[0, 0, 0, 0, () => exports.AttachPoint$, 0, () => exports.Provider$, 0, 0, 0, 0, 1], 11
|
|
188
|
+
];
|
|
189
|
+
exports.CreateConnectionRequest$ = [3, n0, _CCR,
|
|
190
|
+
0,
|
|
191
|
+
[_b, _aP, _eI, _d, _rA, _t, _cT],
|
|
192
|
+
[0, () => exports.AttachPoint$, 0, 0, () => exports.RemoteAccountIdentifier$, 128 | 0, [0, 4]], 3
|
|
193
|
+
];
|
|
194
|
+
exports.CreateConnectionResponse$ = [3, n0, _CCRr,
|
|
195
|
+
0,
|
|
196
|
+
[_co],
|
|
197
|
+
[[() => exports.Connection$, 0]]
|
|
198
|
+
];
|
|
199
|
+
exports.DeleteConnectionRequest$ = [3, n0, _DCR,
|
|
200
|
+
0,
|
|
201
|
+
[_i, _cT],
|
|
202
|
+
[0, [0, 4]], 1
|
|
203
|
+
];
|
|
204
|
+
exports.DeleteConnectionResponse$ = [3, n0, _DCRe,
|
|
205
|
+
0,
|
|
206
|
+
[_co],
|
|
207
|
+
[[() => exports.Connection$, 0]], 1
|
|
208
|
+
];
|
|
209
|
+
exports.DescribeConnectionProposalRequest$ = [3, n0, _DCPR,
|
|
210
|
+
0,
|
|
211
|
+
[_aK],
|
|
212
|
+
[[() => ActivationKey, 0]], 1
|
|
213
|
+
];
|
|
214
|
+
exports.DescribeConnectionProposalResponse$ = [3, n0, _DCPRe,
|
|
215
|
+
0,
|
|
216
|
+
[_b, _eI, _p, _l],
|
|
217
|
+
[0, 0, () => exports.Provider$, 0], 4
|
|
218
|
+
];
|
|
219
|
+
exports.Environment$ = [3, n0, _E,
|
|
220
|
+
0,
|
|
221
|
+
[_p, _l, _eI, _st, _ba, _ty, _aPU, _rIT],
|
|
222
|
+
[() => exports.Provider$, 0, 0, 0, () => exports.Bandwidths$, 0, 0, 0], 6
|
|
223
|
+
];
|
|
224
|
+
exports.GetConnectionRequest$ = [3, n0, _GCR,
|
|
225
|
+
0,
|
|
226
|
+
[_i],
|
|
227
|
+
[0], 1
|
|
228
|
+
];
|
|
229
|
+
exports.GetConnectionResponse$ = [3, n0, _GCRe,
|
|
230
|
+
0,
|
|
231
|
+
[_co],
|
|
232
|
+
[[() => exports.Connection$, 0]]
|
|
233
|
+
];
|
|
234
|
+
exports.GetEnvironmentRequest$ = [3, n0, _GER,
|
|
235
|
+
0,
|
|
236
|
+
[_id],
|
|
237
|
+
[0], 1
|
|
238
|
+
];
|
|
239
|
+
exports.GetEnvironmentResponse$ = [3, n0, _GERe,
|
|
240
|
+
0,
|
|
241
|
+
[_en],
|
|
242
|
+
[() => exports.Environment$], 1
|
|
243
|
+
];
|
|
244
|
+
exports.ListAttachPointsRequest$ = [3, n0, _LAPR,
|
|
245
|
+
0,
|
|
246
|
+
[_eI, _mR, _nT],
|
|
247
|
+
[0, 1, 0], 1
|
|
248
|
+
];
|
|
249
|
+
exports.ListAttachPointsResponse$ = [3, n0, _LAPRi,
|
|
250
|
+
0,
|
|
251
|
+
[_aPt, _nT],
|
|
252
|
+
[() => AttachPointDescriptorList, 0], 1
|
|
253
|
+
];
|
|
254
|
+
exports.ListConnectionsRequest$ = [3, n0, _LCR,
|
|
255
|
+
0,
|
|
256
|
+
[_mR, _nT, _st, _eI, _p, _aP],
|
|
257
|
+
[1, 0, 0, 0, () => exports.Provider$, () => exports.AttachPoint$]
|
|
258
|
+
];
|
|
259
|
+
exports.ListConnectionsResponse$ = [3, n0, _LCRi,
|
|
260
|
+
0,
|
|
261
|
+
[_con, _nT],
|
|
262
|
+
[() => ConnectionSummariesList, 0]
|
|
263
|
+
];
|
|
264
|
+
exports.ListEnvironmentsRequest$ = [3, n0, _LER,
|
|
265
|
+
0,
|
|
266
|
+
[_mR, _nT, _p, _l],
|
|
267
|
+
[1, 0, () => exports.Provider$, 0]
|
|
268
|
+
];
|
|
269
|
+
exports.ListEnvironmentsResponse$ = [3, n0, _LERi,
|
|
270
|
+
0,
|
|
271
|
+
[_env, _nT],
|
|
272
|
+
[() => EnvironmentList, 0], 1
|
|
273
|
+
];
|
|
274
|
+
exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
275
|
+
0,
|
|
276
|
+
[_ar],
|
|
277
|
+
[0], 1
|
|
278
|
+
];
|
|
279
|
+
exports.ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
280
|
+
0,
|
|
281
|
+
[_t],
|
|
282
|
+
[128 | 0]
|
|
283
|
+
];
|
|
284
|
+
exports.TagResourceRequest$ = [3, n0, _TRR,
|
|
285
|
+
0,
|
|
286
|
+
[_ar, _t],
|
|
287
|
+
[0, 128 | 0], 2
|
|
288
|
+
];
|
|
289
|
+
exports.TagResourceResponse$ = [3, n0, _TRRa,
|
|
290
|
+
0,
|
|
291
|
+
[],
|
|
292
|
+
[]
|
|
293
|
+
];
|
|
294
|
+
exports.UntagResourceRequest$ = [3, n0, _URR,
|
|
295
|
+
0,
|
|
296
|
+
[_ar, _tK],
|
|
297
|
+
[0, 64 | 0], 2
|
|
298
|
+
];
|
|
299
|
+
exports.UntagResourceResponse$ = [3, n0, _URRn,
|
|
300
|
+
0,
|
|
301
|
+
[],
|
|
302
|
+
[]
|
|
303
|
+
];
|
|
304
|
+
exports.UpdateConnectionRequest$ = [3, n0, _UCR,
|
|
305
|
+
0,
|
|
306
|
+
[_i, _d, _b, _cT],
|
|
307
|
+
[0, 0, 0, [0, 4]], 1
|
|
308
|
+
];
|
|
309
|
+
exports.UpdateConnectionResponse$ = [3, n0, _UCRp,
|
|
310
|
+
0,
|
|
311
|
+
[_co],
|
|
312
|
+
[[() => exports.Connection$, 0]]
|
|
313
|
+
];
|
|
314
|
+
var AttachPointDescriptorList = [1, n0, _APDL,
|
|
315
|
+
0, () => exports.AttachPointDescriptor$
|
|
316
|
+
];
|
|
317
|
+
var BandwidthList = 64 | 0;
|
|
318
|
+
var ConnectionSummariesList = [1, n0, _CSL,
|
|
319
|
+
0, () => exports.ConnectionSummary$
|
|
320
|
+
];
|
|
321
|
+
var EnvironmentList = [1, n0, _EL,
|
|
322
|
+
0, () => exports.Environment$
|
|
323
|
+
];
|
|
324
|
+
var TagKeyList = 64 | 0;
|
|
325
|
+
var TagMap = 128 | 0;
|
|
326
|
+
exports.AttachPoint$ = [4, n0, _AP,
|
|
327
|
+
0,
|
|
328
|
+
[_dCG, _ar],
|
|
329
|
+
[0, 0]
|
|
330
|
+
];
|
|
331
|
+
exports.Provider$ = [4, n0, _P,
|
|
332
|
+
0,
|
|
333
|
+
[_cSP, _lMP],
|
|
334
|
+
[0, 0]
|
|
335
|
+
];
|
|
336
|
+
exports.RemoteAccountIdentifier$ = [4, n0, _RAI,
|
|
337
|
+
0,
|
|
338
|
+
[_i],
|
|
339
|
+
[0]
|
|
340
|
+
];
|
|
341
|
+
exports.AcceptConnectionProposal$ = [9, n0, _ACP,
|
|
342
|
+
2, () => exports.AcceptConnectionProposalRequest$, () => exports.AcceptConnectionProposalResponse$
|
|
343
|
+
];
|
|
344
|
+
exports.CreateConnection$ = [9, n0, _CC,
|
|
345
|
+
2, () => exports.CreateConnectionRequest$, () => exports.CreateConnectionResponse$
|
|
346
|
+
];
|
|
347
|
+
exports.DeleteConnection$ = [9, n0, _DC,
|
|
348
|
+
2, () => exports.DeleteConnectionRequest$, () => exports.DeleteConnectionResponse$
|
|
349
|
+
];
|
|
350
|
+
exports.DescribeConnectionProposal$ = [9, n0, _DCP,
|
|
351
|
+
0, () => exports.DescribeConnectionProposalRequest$, () => exports.DescribeConnectionProposalResponse$
|
|
352
|
+
];
|
|
353
|
+
exports.GetConnection$ = [9, n0, _GC,
|
|
354
|
+
0, () => exports.GetConnectionRequest$, () => exports.GetConnectionResponse$
|
|
355
|
+
];
|
|
356
|
+
exports.GetEnvironment$ = [9, n0, _GE,
|
|
357
|
+
0, () => exports.GetEnvironmentRequest$, () => exports.GetEnvironmentResponse$
|
|
358
|
+
];
|
|
359
|
+
exports.ListAttachPoints$ = [9, n0, _LAP,
|
|
360
|
+
0, () => exports.ListAttachPointsRequest$, () => exports.ListAttachPointsResponse$
|
|
361
|
+
];
|
|
362
|
+
exports.ListConnections$ = [9, n0, _LC,
|
|
363
|
+
0, () => exports.ListConnectionsRequest$, () => exports.ListConnectionsResponse$
|
|
364
|
+
];
|
|
365
|
+
exports.ListEnvironments$ = [9, n0, _LE,
|
|
366
|
+
0, () => exports.ListEnvironmentsRequest$, () => exports.ListEnvironmentsResponse$
|
|
367
|
+
];
|
|
368
|
+
exports.ListTagsForResource$ = [9, n0, _LTFR,
|
|
369
|
+
0, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceResponse$
|
|
370
|
+
];
|
|
371
|
+
exports.TagResource$ = [9, n0, _TR,
|
|
372
|
+
0, () => exports.TagResourceRequest$, () => exports.TagResourceResponse$
|
|
373
|
+
];
|
|
374
|
+
exports.UntagResource$ = [9, n0, _UR,
|
|
375
|
+
0, () => exports.UntagResourceRequest$, () => exports.UntagResourceResponse$
|
|
376
|
+
];
|
|
377
|
+
exports.UpdateConnection$ = [9, n0, _UC,
|
|
378
|
+
2, () => exports.UpdateConnectionRequest$, () => exports.UpdateConnectionResponse$
|
|
379
|
+
];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { AcceptConnectionProposalCommand, } from "./commands/AcceptConnectionProposalCommand";
|
|
3
|
+
import { CreateConnectionCommand, } from "./commands/CreateConnectionCommand";
|
|
4
|
+
import { DeleteConnectionCommand, } from "./commands/DeleteConnectionCommand";
|
|
5
|
+
import { DescribeConnectionProposalCommand, } from "./commands/DescribeConnectionProposalCommand";
|
|
6
|
+
import { GetConnectionCommand, } from "./commands/GetConnectionCommand";
|
|
7
|
+
import { GetEnvironmentCommand, } from "./commands/GetEnvironmentCommand";
|
|
8
|
+
import { ListAttachPointsCommand, } from "./commands/ListAttachPointsCommand";
|
|
9
|
+
import { ListConnectionsCommand, } from "./commands/ListConnectionsCommand";
|
|
10
|
+
import { ListEnvironmentsCommand, } from "./commands/ListEnvironmentsCommand";
|
|
11
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
12
|
+
import { TagResourceCommand, } from "./commands/TagResourceCommand";
|
|
13
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
14
|
+
import { UpdateConnectionCommand, } from "./commands/UpdateConnectionCommand";
|
|
15
|
+
import { InterconnectClient } from "./InterconnectClient";
|
|
16
|
+
import { paginateListAttachPoints } from "./pagination/ListAttachPointsPaginator";
|
|
17
|
+
import { paginateListConnections } from "./pagination/ListConnectionsPaginator";
|
|
18
|
+
import { paginateListEnvironments } from "./pagination/ListEnvironmentsPaginator";
|
|
19
|
+
import { waitUntilConnectionAvailable } from "./waiters/waitForConnectionAvailable";
|
|
20
|
+
import { waitUntilConnectionDeleted } from "./waiters/waitForConnectionDeleted";
|
|
21
|
+
const commands = {
|
|
22
|
+
AcceptConnectionProposalCommand,
|
|
23
|
+
CreateConnectionCommand,
|
|
24
|
+
DeleteConnectionCommand,
|
|
25
|
+
DescribeConnectionProposalCommand,
|
|
26
|
+
GetConnectionCommand,
|
|
27
|
+
GetEnvironmentCommand,
|
|
28
|
+
ListAttachPointsCommand,
|
|
29
|
+
ListConnectionsCommand,
|
|
30
|
+
ListEnvironmentsCommand,
|
|
31
|
+
ListTagsForResourceCommand,
|
|
32
|
+
TagResourceCommand,
|
|
33
|
+
UntagResourceCommand,
|
|
34
|
+
UpdateConnectionCommand,
|
|
35
|
+
};
|
|
36
|
+
const paginators = {
|
|
37
|
+
paginateListAttachPoints,
|
|
38
|
+
paginateListConnections,
|
|
39
|
+
paginateListEnvironments,
|
|
40
|
+
};
|
|
41
|
+
const waiters = {
|
|
42
|
+
waitUntilConnectionAvailable,
|
|
43
|
+
waitUntilConnectionDeleted,
|
|
44
|
+
};
|
|
45
|
+
export class Interconnect extends InterconnectClient {
|
|
46
|
+
}
|
|
47
|
+
createAggregatedClient(commands, Interconnect, { paginators, waiters });
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
|
+
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
9
|
+
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
10
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
11
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
12
|
+
import { defaultInterconnectHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
13
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
14
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
15
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
16
|
+
export { __Client };
|
|
17
|
+
export class InterconnectClient extends __Client {
|
|
18
|
+
config;
|
|
19
|
+
constructor(...[configuration]) {
|
|
20
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
21
|
+
super(_config_0);
|
|
22
|
+
this.initConfig = _config_0;
|
|
23
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
24
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
25
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
26
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
27
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
28
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
29
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
30
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
31
|
+
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
36
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
37
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
38
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
39
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
40
|
+
httpAuthSchemeParametersProvider: defaultInterconnectHttpAuthSchemeParametersProvider,
|
|
41
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
42
|
+
"aws.auth#sigv4": config.credentials,
|
|
43
|
+
}),
|
|
44
|
+
}));
|
|
45
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
46
|
+
}
|
|
47
|
+
destroy() {
|
|
48
|
+
super.destroy();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
|
+
export const defaultInterconnectHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
+
return {
|
|
13
|
+
schemeId: "aws.auth#sigv4",
|
|
14
|
+
signingProperties: {
|
|
15
|
+
name: "interconnect",
|
|
16
|
+
region: authParameters.region,
|
|
17
|
+
},
|
|
18
|
+
propertiesExtractor: (config, context) => ({
|
|
19
|
+
signingProperties: {
|
|
20
|
+
config,
|
|
21
|
+
context,
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export const defaultInterconnectHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
+
const options = [];
|
|
28
|
+
switch (authParameters.operation) {
|
|
29
|
+
default: {
|
|
30
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return options;
|
|
34
|
+
};
|
|
35
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
+
return Object.assign(config_0, {
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { AcceptConnectionProposal$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class AcceptConnectionProposalCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Interconnect", "AcceptConnectionProposal", {})
|
|
13
|
+
.n("InterconnectClient", "AcceptConnectionProposalCommand")
|
|
14
|
+
.sc(AcceptConnectionProposal$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateConnection$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateConnectionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Interconnect", "CreateConnection", {})
|
|
13
|
+
.n("InterconnectClient", "CreateConnectionCommand")
|
|
14
|
+
.sc(CreateConnection$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteConnection$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteConnectionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Interconnect", "DeleteConnection", {})
|
|
13
|
+
.n("InterconnectClient", "DeleteConnectionCommand")
|
|
14
|
+
.sc(DeleteConnection$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DescribeConnectionProposal$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DescribeConnectionProposalCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Interconnect", "DescribeConnectionProposal", {})
|
|
13
|
+
.n("InterconnectClient", "DescribeConnectionProposalCommand")
|
|
14
|
+
.sc(DescribeConnectionProposal$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|