@aws-sdk/client-eks-auth 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 +454 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -38
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/EKSAuthServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -109
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -157
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
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 } = 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 {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 defaultEKSAuthHttpAuthSchemeParametersProvider = 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: "eks-auth",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultEKSAuthHttpAuthSchemeProvider = (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, {
|
|
@@ -29,6 +65,381 @@ const commonParams = {
|
|
|
29
65
|
Region: { type: "builtInParams", name: "region" },
|
|
30
66
|
};
|
|
31
67
|
|
|
68
|
+
var version = "3.1075.0";
|
|
69
|
+
var packageInfo = {
|
|
70
|
+
version: version};
|
|
71
|
+
|
|
72
|
+
const j = "ref";
|
|
73
|
+
const a = true, b = "isSet", c = "PartitionResult", d = "booleanEquals", e = "getAttr", f = { [j]: "Endpoint" }, g = { [j]: c }, h = {}, i = [{ [j]: "Region" }];
|
|
74
|
+
const _data = {
|
|
75
|
+
conditions: [
|
|
76
|
+
[b, [f]],
|
|
77
|
+
[b, i],
|
|
78
|
+
["aws.partition", i, c],
|
|
79
|
+
[d, [{ [j]: "UseFIPS" }, a]],
|
|
80
|
+
[d, [{ fn: e, argv: [g, "supportsFIPS"] }, a]],
|
|
81
|
+
[d, [{ fn: e, argv: [g, "supportsDualStack"] }, a]]
|
|
82
|
+
],
|
|
83
|
+
results: [
|
|
84
|
+
[-1],
|
|
85
|
+
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
86
|
+
[f, h],
|
|
87
|
+
["https://eks-auth-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", h],
|
|
88
|
+
[-1, "FIPS is enabled but this partition does not support FIPS"],
|
|
89
|
+
["https://eks-auth.{Region}.{PartitionResult#dualStackDnsSuffix}", h],
|
|
90
|
+
["https://eks-auth-fips.{Region}.{PartitionResult#dnsSuffix}", h],
|
|
91
|
+
["https://eks-auth.{Region}.{PartitionResult#dnsSuffix}", h],
|
|
92
|
+
[-1, "Invalid Configuration: Missing Region"]
|
|
93
|
+
]
|
|
94
|
+
};
|
|
95
|
+
const root = 2;
|
|
96
|
+
const r = 100_000_000;
|
|
97
|
+
const nodes = new Int32Array([
|
|
98
|
+
-1, 1, -1,
|
|
99
|
+
0, 9, 3,
|
|
100
|
+
1, 4, r + 8,
|
|
101
|
+
2, 5, r + 8,
|
|
102
|
+
3, 7, 6,
|
|
103
|
+
5, r + 5, r + 7,
|
|
104
|
+
4, 8, r + 4,
|
|
105
|
+
5, r + 3, r + 6,
|
|
106
|
+
3, r + 1, r + 2,
|
|
107
|
+
]);
|
|
108
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
109
|
+
|
|
110
|
+
const cache = new EndpointCache({
|
|
111
|
+
size: 50,
|
|
112
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
113
|
+
});
|
|
114
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
115
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
116
|
+
endpointParams: endpointParams,
|
|
117
|
+
logger: context.logger,
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
121
|
+
|
|
122
|
+
class EKSAuthServiceException extends ServiceException {
|
|
123
|
+
constructor(options) {
|
|
124
|
+
super(options);
|
|
125
|
+
Object.setPrototypeOf(this, EKSAuthServiceException.prototype);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
class AccessDeniedException extends EKSAuthServiceException {
|
|
130
|
+
name = "AccessDeniedException";
|
|
131
|
+
$fault = "client";
|
|
132
|
+
constructor(opts) {
|
|
133
|
+
super({
|
|
134
|
+
name: "AccessDeniedException",
|
|
135
|
+
$fault: "client",
|
|
136
|
+
...opts,
|
|
137
|
+
});
|
|
138
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
class ExpiredTokenException extends EKSAuthServiceException {
|
|
142
|
+
name = "ExpiredTokenException";
|
|
143
|
+
$fault = "client";
|
|
144
|
+
constructor(opts) {
|
|
145
|
+
super({
|
|
146
|
+
name: "ExpiredTokenException",
|
|
147
|
+
$fault: "client",
|
|
148
|
+
...opts,
|
|
149
|
+
});
|
|
150
|
+
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
class InternalServerException extends EKSAuthServiceException {
|
|
154
|
+
name = "InternalServerException";
|
|
155
|
+
$fault = "server";
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "InternalServerException",
|
|
159
|
+
$fault: "server",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
class InvalidParameterException extends EKSAuthServiceException {
|
|
166
|
+
name = "InvalidParameterException";
|
|
167
|
+
$fault = "client";
|
|
168
|
+
constructor(opts) {
|
|
169
|
+
super({
|
|
170
|
+
name: "InvalidParameterException",
|
|
171
|
+
$fault: "client",
|
|
172
|
+
...opts,
|
|
173
|
+
});
|
|
174
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
class InvalidRequestException extends EKSAuthServiceException {
|
|
178
|
+
name = "InvalidRequestException";
|
|
179
|
+
$fault = "client";
|
|
180
|
+
constructor(opts) {
|
|
181
|
+
super({
|
|
182
|
+
name: "InvalidRequestException",
|
|
183
|
+
$fault: "client",
|
|
184
|
+
...opts,
|
|
185
|
+
});
|
|
186
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class InvalidTokenException extends EKSAuthServiceException {
|
|
190
|
+
name = "InvalidTokenException";
|
|
191
|
+
$fault = "client";
|
|
192
|
+
constructor(opts) {
|
|
193
|
+
super({
|
|
194
|
+
name: "InvalidTokenException",
|
|
195
|
+
$fault: "client",
|
|
196
|
+
...opts,
|
|
197
|
+
});
|
|
198
|
+
Object.setPrototypeOf(this, InvalidTokenException.prototype);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
class ResourceNotFoundException extends EKSAuthServiceException {
|
|
202
|
+
name = "ResourceNotFoundException";
|
|
203
|
+
$fault = "client";
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
super({
|
|
206
|
+
name: "ResourceNotFoundException",
|
|
207
|
+
$fault: "client",
|
|
208
|
+
...opts,
|
|
209
|
+
});
|
|
210
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
class ServiceUnavailableException extends EKSAuthServiceException {
|
|
214
|
+
name = "ServiceUnavailableException";
|
|
215
|
+
$fault = "server";
|
|
216
|
+
constructor(opts) {
|
|
217
|
+
super({
|
|
218
|
+
name: "ServiceUnavailableException",
|
|
219
|
+
$fault: "server",
|
|
220
|
+
...opts,
|
|
221
|
+
});
|
|
222
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
class ThrottlingException extends EKSAuthServiceException {
|
|
226
|
+
name = "ThrottlingException";
|
|
227
|
+
$fault = "client";
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "ThrottlingException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts,
|
|
233
|
+
});
|
|
234
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const _ADE = "AccessDeniedException";
|
|
239
|
+
const _ARFPI = "AssumeRoleForPodIdentity";
|
|
240
|
+
const _ARFPIR = "AssumeRoleForPodIdentityRequest";
|
|
241
|
+
const _ARFPIRs = "AssumeRoleForPodIdentityResponse";
|
|
242
|
+
const _ARU = "AssumedRoleUser";
|
|
243
|
+
const _C = "Credentials";
|
|
244
|
+
const _ETE = "ExpiredTokenException";
|
|
245
|
+
const _IPE = "InvalidParameterException";
|
|
246
|
+
const _IRE = "InvalidRequestException";
|
|
247
|
+
const _ISE = "InternalServerException";
|
|
248
|
+
const _ITE = "InvalidTokenException";
|
|
249
|
+
const _JT = "JwtToken";
|
|
250
|
+
const _PIA = "PodIdentityAssociation";
|
|
251
|
+
const _RNFE = "ResourceNotFoundException";
|
|
252
|
+
const _S = "Subject";
|
|
253
|
+
const _SUE = "ServiceUnavailableException";
|
|
254
|
+
const _TE = "ThrottlingException";
|
|
255
|
+
const _a = "arn";
|
|
256
|
+
const _aA = "associationArn";
|
|
257
|
+
const _aI = "associationId";
|
|
258
|
+
const _aKI = "accessKeyId";
|
|
259
|
+
const _aRI = "assumeRoleId";
|
|
260
|
+
const _aRU = "assumedRoleUser";
|
|
261
|
+
const _au = "audience";
|
|
262
|
+
const _c = "client";
|
|
263
|
+
const _cN = "clusterName";
|
|
264
|
+
const _cr = "credentials";
|
|
265
|
+
const _e = "error";
|
|
266
|
+
const _ex = "expiration";
|
|
267
|
+
const _h = "http";
|
|
268
|
+
const _hE = "httpError";
|
|
269
|
+
const _m = "message";
|
|
270
|
+
const _n = "namespace";
|
|
271
|
+
const _pIA = "podIdentityAssociation";
|
|
272
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.eksauth";
|
|
273
|
+
const _sA = "serviceAccount";
|
|
274
|
+
const _sAK = "secretAccessKey";
|
|
275
|
+
const _sT = "sessionToken";
|
|
276
|
+
const _se = "server";
|
|
277
|
+
const _su = "subject";
|
|
278
|
+
const _t = "token";
|
|
279
|
+
const n0 = "com.amazonaws.eksauth";
|
|
280
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
281
|
+
var EKSAuthServiceException$ = [-3, _s, "EKSAuthServiceException", 0, [], []];
|
|
282
|
+
_s_registry.registerError(EKSAuthServiceException$, EKSAuthServiceException);
|
|
283
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
284
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
285
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
286
|
+
[_m],
|
|
287
|
+
[0]
|
|
288
|
+
];
|
|
289
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
290
|
+
var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
291
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
292
|
+
[_m],
|
|
293
|
+
[0]
|
|
294
|
+
];
|
|
295
|
+
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
296
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
297
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
298
|
+
[_m],
|
|
299
|
+
[0]
|
|
300
|
+
];
|
|
301
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
302
|
+
var InvalidParameterException$ = [-3, n0, _IPE,
|
|
303
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
304
|
+
[_m],
|
|
305
|
+
[0]
|
|
306
|
+
];
|
|
307
|
+
n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
|
|
308
|
+
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
309
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
310
|
+
[_m],
|
|
311
|
+
[0]
|
|
312
|
+
];
|
|
313
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
314
|
+
var InvalidTokenException$ = [-3, n0, _ITE,
|
|
315
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
316
|
+
[_m],
|
|
317
|
+
[0]
|
|
318
|
+
];
|
|
319
|
+
n0_registry.registerError(InvalidTokenException$, InvalidTokenException);
|
|
320
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
321
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
322
|
+
[_m],
|
|
323
|
+
[0]
|
|
324
|
+
];
|
|
325
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
326
|
+
var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
327
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
328
|
+
[_m],
|
|
329
|
+
[0]
|
|
330
|
+
];
|
|
331
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
332
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
333
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
334
|
+
[_m],
|
|
335
|
+
[0]
|
|
336
|
+
];
|
|
337
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
338
|
+
const errorTypeRegistries = [
|
|
339
|
+
_s_registry,
|
|
340
|
+
n0_registry,
|
|
341
|
+
];
|
|
342
|
+
var JwtToken = [0, n0, _JT, 8, 0];
|
|
343
|
+
var AssumedRoleUser$ = [3, n0, _ARU,
|
|
344
|
+
0,
|
|
345
|
+
[_a, _aRI],
|
|
346
|
+
[0, 0], 2
|
|
347
|
+
];
|
|
348
|
+
var AssumeRoleForPodIdentityRequest$ = [3, n0, _ARFPIR,
|
|
349
|
+
0,
|
|
350
|
+
[_cN, _t],
|
|
351
|
+
[[0, 1], [() => JwtToken, 0]], 2
|
|
352
|
+
];
|
|
353
|
+
var AssumeRoleForPodIdentityResponse$ = [3, n0, _ARFPIRs,
|
|
354
|
+
0,
|
|
355
|
+
[_su, _au, _pIA, _aRU, _cr],
|
|
356
|
+
[() => Subject$, 0, () => PodIdentityAssociation$, () => AssumedRoleUser$, [() => Credentials$, 0]], 5
|
|
357
|
+
];
|
|
358
|
+
var Credentials$ = [3, n0, _C,
|
|
359
|
+
8,
|
|
360
|
+
[_sT, _sAK, _aKI, _ex],
|
|
361
|
+
[0, 0, 0, 4], 4
|
|
362
|
+
];
|
|
363
|
+
var PodIdentityAssociation$ = [3, n0, _PIA,
|
|
364
|
+
0,
|
|
365
|
+
[_aA, _aI],
|
|
366
|
+
[0, 0], 2
|
|
367
|
+
];
|
|
368
|
+
var Subject$ = [3, n0, _S,
|
|
369
|
+
0,
|
|
370
|
+
[_n, _sA],
|
|
371
|
+
[0, 0], 2
|
|
372
|
+
];
|
|
373
|
+
var AssumeRoleForPodIdentity$ = [9, n0, _ARFPI,
|
|
374
|
+
{ [_h]: ["POST", "/clusters/{clusterName}/assume-role-for-pod-identity", 200] }, () => AssumeRoleForPodIdentityRequest$, () => AssumeRoleForPodIdentityResponse$
|
|
375
|
+
];
|
|
376
|
+
|
|
377
|
+
const getRuntimeConfig$1 = (config) => {
|
|
378
|
+
return {
|
|
379
|
+
apiVersion: "2023-11-26",
|
|
380
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
381
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
382
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
383
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
384
|
+
extensions: config?.extensions ?? [],
|
|
385
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultEKSAuthHttpAuthSchemeProvider,
|
|
386
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
387
|
+
{
|
|
388
|
+
schemeId: "aws.auth#sigv4",
|
|
389
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
390
|
+
signer: new AwsSdkSigV4Signer(),
|
|
391
|
+
},
|
|
392
|
+
],
|
|
393
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
394
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
395
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
396
|
+
defaultNamespace: "com.amazonaws.eksauth",
|
|
397
|
+
errorTypeRegistries,
|
|
398
|
+
version: "2023-11-26",
|
|
399
|
+
serviceTarget: "EKSAuthFrontend",
|
|
400
|
+
},
|
|
401
|
+
serviceId: config?.serviceId ?? "EKS Auth",
|
|
402
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
403
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
404
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
const getRuntimeConfig = (config) => {
|
|
409
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
410
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
411
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
412
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
413
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
414
|
+
const loaderConfig = {
|
|
415
|
+
profile: config?.profile,
|
|
416
|
+
logger: clientSharedValues.logger,
|
|
417
|
+
};
|
|
418
|
+
return {
|
|
419
|
+
...clientSharedValues,
|
|
420
|
+
...config,
|
|
421
|
+
runtime: "node",
|
|
422
|
+
defaultsMode,
|
|
423
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
424
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
425
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
426
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
427
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
428
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
429
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
430
|
+
retryMode: config?.retryMode ??
|
|
431
|
+
loadConfig({
|
|
432
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
433
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
434
|
+
}, config),
|
|
435
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
436
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
437
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
438
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
439
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
|
|
32
443
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
33
444
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
34
445
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -128,6 +539,34 @@ class EKSAuth extends EKSAuthClient {
|
|
|
128
539
|
}
|
|
129
540
|
createAggregatedClient(commands, EKSAuth);
|
|
130
541
|
|
|
542
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
543
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
544
|
+
exports.AssumeRoleForPodIdentity$ = AssumeRoleForPodIdentity$;
|
|
131
545
|
exports.AssumeRoleForPodIdentityCommand = AssumeRoleForPodIdentityCommand;
|
|
546
|
+
exports.AssumeRoleForPodIdentityRequest$ = AssumeRoleForPodIdentityRequest$;
|
|
547
|
+
exports.AssumeRoleForPodIdentityResponse$ = AssumeRoleForPodIdentityResponse$;
|
|
548
|
+
exports.AssumedRoleUser$ = AssumedRoleUser$;
|
|
549
|
+
exports.Credentials$ = Credentials$;
|
|
132
550
|
exports.EKSAuth = EKSAuth;
|
|
133
551
|
exports.EKSAuthClient = EKSAuthClient;
|
|
552
|
+
exports.EKSAuthServiceException = EKSAuthServiceException;
|
|
553
|
+
exports.EKSAuthServiceException$ = EKSAuthServiceException$;
|
|
554
|
+
exports.ExpiredTokenException = ExpiredTokenException;
|
|
555
|
+
exports.ExpiredTokenException$ = ExpiredTokenException$;
|
|
556
|
+
exports.InternalServerException = InternalServerException;
|
|
557
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
558
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
559
|
+
exports.InvalidParameterException$ = InvalidParameterException$;
|
|
560
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
561
|
+
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
562
|
+
exports.InvalidTokenException = InvalidTokenException;
|
|
563
|
+
exports.InvalidTokenException$ = InvalidTokenException$;
|
|
564
|
+
exports.PodIdentityAssociation$ = PodIdentityAssociation$;
|
|
565
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
566
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
567
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
568
|
+
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
569
|
+
exports.Subject$ = Subject$;
|
|
570
|
+
exports.ThrottlingException = ThrottlingException;
|
|
571
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
572
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -21,7 +21,13 @@ export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
|
21
21
|
| RequestHandler;
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
23
|
sha256: import("@smithy/types").HashConstructor;
|
|
24
|
-
streamCollector:
|
|
24
|
+
streamCollector: (
|
|
25
|
+
stream:
|
|
26
|
+
| import("stream").Readable
|
|
27
|
+
| import("stream/web").ReadableStream
|
|
28
|
+
| ReadableStream
|
|
29
|
+
| Blob
|
|
30
|
+
) => Promise<Uint8Array>;
|
|
25
31
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
32
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
33
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
|
22
22
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
23
23
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
24
|
sha256: import("@smithy/types").HashConstructor;
|
|
25
|
-
streamCollector:
|
|
25
|
+
streamCollector: (
|
|
26
|
+
stream:
|
|
27
|
+
| import("stream").Readable
|
|
28
|
+
| import("stream/web").ReadableStream
|
|
29
|
+
| ReadableStream
|
|
30
|
+
| Blob
|
|
31
|
+
) => Promise<Uint8Array>;
|
|
26
32
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
27
33
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
28
34
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
|
-
streamCollector:
|
|
23
|
+
streamCollector: (
|
|
24
|
+
stream:
|
|
25
|
+
| import("stream").Readable
|
|
26
|
+
| import("stream/web").ReadableStream
|
|
27
|
+
| ReadableStream
|
|
28
|
+
| Blob
|
|
29
|
+
) => Promise<Uint8Array>;
|
|
24
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
25
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
26
32
|
utf8Decoder: import("@smithy/types").Decoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-eks-auth",
|
|
3
3
|
"description": "AWS SDK for JavaScript Eks Auth Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1076.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",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
27
|
-
"@smithy/core": "^3.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.
|
|
29
|
-
"@smithy/node-http-handler": "^4.
|
|
30
|
-
"@smithy/types": "^4.
|
|
24
|
+
"@aws-sdk/core": "^3.974.24",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
26
|
+
"@aws-sdk/types": "^3.973.14",
|
|
27
|
+
"@smithy/core": "^3.27.0",
|
|
28
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
29
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
30
|
+
"@smithy/types": "^4.15.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultEKSAuthHttpAuthSchemeParametersProvider = 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: "eks-auth",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultEKSAuthHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
-
const options = [];
|
|
28
|
-
switch (authParameters.operation) {
|
|
29
|
-
default: {
|
|
30
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return options;
|
|
34
|
-
};
|
|
35
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
-
return Object.assign(config_0, {
|
|
38
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
-
});
|
|
40
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const j = "ref";
|
|
3
|
-
const a = true, b = "isSet", c = "PartitionResult", d = "booleanEquals", e = "getAttr", f = { [j]: "Endpoint" }, g = { [j]: c }, h = {}, i = [{ [j]: "Region" }];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[b, [f]],
|
|
7
|
-
[b, i],
|
|
8
|
-
["aws.partition", i, c],
|
|
9
|
-
[d, [{ [j]: "UseFIPS" }, a]],
|
|
10
|
-
[d, [{ fn: e, argv: [g, "supportsFIPS"] }, a]],
|
|
11
|
-
[d, [{ fn: e, argv: [g, "supportsDualStack"] }, a]]
|
|
12
|
-
],
|
|
13
|
-
results: [
|
|
14
|
-
[-1],
|
|
15
|
-
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
16
|
-
[f, h],
|
|
17
|
-
["https://eks-auth-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", h],
|
|
18
|
-
[-1, "FIPS is enabled but this partition does not support FIPS"],
|
|
19
|
-
["https://eks-auth.{Region}.{PartitionResult#dualStackDnsSuffix}", h],
|
|
20
|
-
["https://eks-auth-fips.{Region}.{PartitionResult#dnsSuffix}", h],
|
|
21
|
-
["https://eks-auth.{Region}.{PartitionResult#dnsSuffix}", h],
|
|
22
|
-
[-1, "Invalid Configuration: Missing Region"]
|
|
23
|
-
]
|
|
24
|
-
};
|
|
25
|
-
const root = 2;
|
|
26
|
-
const r = 100_000_000;
|
|
27
|
-
const nodes = new Int32Array([
|
|
28
|
-
-1, 1, -1,
|
|
29
|
-
0, 9, 3,
|
|
30
|
-
1, 4, r + 8,
|
|
31
|
-
2, 5, r + 8,
|
|
32
|
-
3, 7, 6,
|
|
33
|
-
5, r + 5, r + 7,
|
|
34
|
-
4, 8, r + 4,
|
|
35
|
-
5, r + 3, r + 6,
|
|
36
|
-
3, r + 1, r + 2,
|
|
37
|
-
]);
|
|
38
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.EKSAuthServiceException = class EKSAuthServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, EKSAuthServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
const { EKSAuthServiceException: __BaseException } = require("./EKSAuthServiceException");
|
|
2
|
-
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.ExpiredTokenException = class ExpiredTokenException extends __BaseException {
|
|
15
|
-
name = "ExpiredTokenException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "ExpiredTokenException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
27
|
-
name = "InternalServerException";
|
|
28
|
-
$fault = "server";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "InternalServerException",
|
|
32
|
-
$fault: "server",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.InvalidParameterException = class InvalidParameterException extends __BaseException {
|
|
39
|
-
name = "InvalidParameterException";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "InvalidParameterException",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
exports.InvalidRequestException = class InvalidRequestException extends __BaseException {
|
|
51
|
-
name = "InvalidRequestException";
|
|
52
|
-
$fault = "client";
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "InvalidRequestException",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts,
|
|
58
|
-
});
|
|
59
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
exports.InvalidTokenException = class InvalidTokenException extends __BaseException {
|
|
63
|
-
name = "InvalidTokenException";
|
|
64
|
-
$fault = "client";
|
|
65
|
-
constructor(opts) {
|
|
66
|
-
super({
|
|
67
|
-
name: "InvalidTokenException",
|
|
68
|
-
$fault: "client",
|
|
69
|
-
...opts,
|
|
70
|
-
});
|
|
71
|
-
Object.setPrototypeOf(this, InvalidTokenException.prototype);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
75
|
-
name = "ResourceNotFoundException";
|
|
76
|
-
$fault = "client";
|
|
77
|
-
constructor(opts) {
|
|
78
|
-
super({
|
|
79
|
-
name: "ResourceNotFoundException",
|
|
80
|
-
$fault: "client",
|
|
81
|
-
...opts,
|
|
82
|
-
});
|
|
83
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
exports.ServiceUnavailableException = class ServiceUnavailableException extends __BaseException {
|
|
87
|
-
name = "ServiceUnavailableException";
|
|
88
|
-
$fault = "server";
|
|
89
|
-
constructor(opts) {
|
|
90
|
-
super({
|
|
91
|
-
name: "ServiceUnavailableException",
|
|
92
|
-
$fault: "server",
|
|
93
|
-
...opts,
|
|
94
|
-
});
|
|
95
|
-
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
exports.ThrottlingException = class ThrottlingException extends __BaseException {
|
|
99
|
-
name = "ThrottlingException";
|
|
100
|
-
$fault = "client";
|
|
101
|
-
constructor(opts) {
|
|
102
|
-
super({
|
|
103
|
-
name: "ThrottlingException",
|
|
104
|
-
$fault: "client",
|
|
105
|
-
...opts,
|
|
106
|
-
});
|
|
107
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
-
return {
|
|
15
|
-
...clientSharedValues,
|
|
16
|
-
...config,
|
|
17
|
-
runtime: "browser",
|
|
18
|
-
defaultsMode,
|
|
19
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
-
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
-
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
-
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
-
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
-
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
-
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
-
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
11
|
-
const getRuntimeConfig = (config) => {
|
|
12
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
awsCheckVersion(process.version);
|
|
17
|
-
const loaderConfig = {
|
|
18
|
-
profile: config?.profile,
|
|
19
|
-
logger: clientSharedValues.logger,
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
...clientSharedValues,
|
|
23
|
-
...config,
|
|
24
|
-
runtime: "node",
|
|
25
|
-
defaultsMode,
|
|
26
|
-
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
33
|
-
retryMode: config?.retryMode ??
|
|
34
|
-
loadNodeConfig({
|
|
35
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
|
-
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
-
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
3
|
-
const getRuntimeConfig = (config) => {
|
|
4
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
-
return {
|
|
6
|
-
...browserDefaults,
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
-
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
-
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
-
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
-
const { defaultEKSAuthHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
-
exports.getRuntimeConfig = (config) => {
|
|
10
|
-
return {
|
|
11
|
-
apiVersion: "2023-11-26",
|
|
12
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
-
extensions: config?.extensions ?? [],
|
|
17
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultEKSAuthHttpAuthSchemeProvider,
|
|
18
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
-
{
|
|
20
|
-
schemeId: "aws.auth#sigv4",
|
|
21
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
-
signer: new AwsSdkSigV4Signer(),
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
-
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
-
defaultNamespace: "com.amazonaws.eksauth",
|
|
29
|
-
errorTypeRegistries,
|
|
30
|
-
version: "2023-11-26",
|
|
31
|
-
serviceTarget: "EKSAuthFrontend",
|
|
32
|
-
},
|
|
33
|
-
serviceId: config?.serviceId ?? "EKS Auth",
|
|
34
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
37
|
-
};
|
|
38
|
-
};
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
const _ADE = "AccessDeniedException";
|
|
2
|
-
const _ARFPI = "AssumeRoleForPodIdentity";
|
|
3
|
-
const _ARFPIR = "AssumeRoleForPodIdentityRequest";
|
|
4
|
-
const _ARFPIRs = "AssumeRoleForPodIdentityResponse";
|
|
5
|
-
const _ARU = "AssumedRoleUser";
|
|
6
|
-
const _C = "Credentials";
|
|
7
|
-
const _ETE = "ExpiredTokenException";
|
|
8
|
-
const _IPE = "InvalidParameterException";
|
|
9
|
-
const _IRE = "InvalidRequestException";
|
|
10
|
-
const _ISE = "InternalServerException";
|
|
11
|
-
const _ITE = "InvalidTokenException";
|
|
12
|
-
const _JT = "JwtToken";
|
|
13
|
-
const _PIA = "PodIdentityAssociation";
|
|
14
|
-
const _RNFE = "ResourceNotFoundException";
|
|
15
|
-
const _S = "Subject";
|
|
16
|
-
const _SUE = "ServiceUnavailableException";
|
|
17
|
-
const _TE = "ThrottlingException";
|
|
18
|
-
const _a = "arn";
|
|
19
|
-
const _aA = "associationArn";
|
|
20
|
-
const _aI = "associationId";
|
|
21
|
-
const _aKI = "accessKeyId";
|
|
22
|
-
const _aRI = "assumeRoleId";
|
|
23
|
-
const _aRU = "assumedRoleUser";
|
|
24
|
-
const _au = "audience";
|
|
25
|
-
const _c = "client";
|
|
26
|
-
const _cN = "clusterName";
|
|
27
|
-
const _cr = "credentials";
|
|
28
|
-
const _e = "error";
|
|
29
|
-
const _ex = "expiration";
|
|
30
|
-
const _h = "http";
|
|
31
|
-
const _hE = "httpError";
|
|
32
|
-
const _m = "message";
|
|
33
|
-
const _n = "namespace";
|
|
34
|
-
const _pIA = "podIdentityAssociation";
|
|
35
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.eksauth";
|
|
36
|
-
const _sA = "serviceAccount";
|
|
37
|
-
const _sAK = "secretAccessKey";
|
|
38
|
-
const _sT = "sessionToken";
|
|
39
|
-
const _se = "server";
|
|
40
|
-
const _su = "subject";
|
|
41
|
-
const _t = "token";
|
|
42
|
-
const n0 = "com.amazonaws.eksauth";
|
|
43
|
-
const { TypeRegistry } = require("@smithy/core/schema");
|
|
44
|
-
const { EKSAuthServiceException } = require("../models/EKSAuthServiceException");
|
|
45
|
-
const { AccessDeniedException, ExpiredTokenException, InternalServerException, InvalidParameterException, InvalidRequestException, InvalidTokenException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException } = require("../models/errors");
|
|
46
|
-
const _s_registry = TypeRegistry.for(_s);
|
|
47
|
-
const EKSAuthServiceException$ = [-3, _s, "EKSAuthServiceException", 0, [], []];
|
|
48
|
-
exports.EKSAuthServiceException$ = EKSAuthServiceException$;
|
|
49
|
-
_s_registry.registerError(EKSAuthServiceException$, EKSAuthServiceException);
|
|
50
|
-
const n0_registry = TypeRegistry.for(n0);
|
|
51
|
-
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
52
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
53
|
-
[_m],
|
|
54
|
-
[0]
|
|
55
|
-
];
|
|
56
|
-
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
57
|
-
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
58
|
-
const ExpiredTokenException$ = [-3, n0, _ETE,
|
|
59
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
60
|
-
[_m],
|
|
61
|
-
[0]
|
|
62
|
-
];
|
|
63
|
-
exports.ExpiredTokenException$ = ExpiredTokenException$;
|
|
64
|
-
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
65
|
-
const InternalServerException$ = [-3, n0, _ISE,
|
|
66
|
-
{ [_e]: _se, [_hE]: 500 },
|
|
67
|
-
[_m],
|
|
68
|
-
[0]
|
|
69
|
-
];
|
|
70
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
71
|
-
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
72
|
-
const InvalidParameterException$ = [-3, n0, _IPE,
|
|
73
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
74
|
-
[_m],
|
|
75
|
-
[0]
|
|
76
|
-
];
|
|
77
|
-
exports.InvalidParameterException$ = InvalidParameterException$;
|
|
78
|
-
n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
|
|
79
|
-
const InvalidRequestException$ = [-3, n0, _IRE,
|
|
80
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
81
|
-
[_m],
|
|
82
|
-
[0]
|
|
83
|
-
];
|
|
84
|
-
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
85
|
-
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
86
|
-
const InvalidTokenException$ = [-3, n0, _ITE,
|
|
87
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
88
|
-
[_m],
|
|
89
|
-
[0]
|
|
90
|
-
];
|
|
91
|
-
exports.InvalidTokenException$ = InvalidTokenException$;
|
|
92
|
-
n0_registry.registerError(InvalidTokenException$, InvalidTokenException);
|
|
93
|
-
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
94
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
95
|
-
[_m],
|
|
96
|
-
[0]
|
|
97
|
-
];
|
|
98
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
99
|
-
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
100
|
-
const ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
101
|
-
{ [_e]: _se, [_hE]: 503 },
|
|
102
|
-
[_m],
|
|
103
|
-
[0]
|
|
104
|
-
];
|
|
105
|
-
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
106
|
-
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
107
|
-
const ThrottlingException$ = [-3, n0, _TE,
|
|
108
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
109
|
-
[_m],
|
|
110
|
-
[0]
|
|
111
|
-
];
|
|
112
|
-
exports.ThrottlingException$ = ThrottlingException$;
|
|
113
|
-
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
114
|
-
exports.errorTypeRegistries = [
|
|
115
|
-
_s_registry,
|
|
116
|
-
n0_registry,
|
|
117
|
-
];
|
|
118
|
-
var JwtToken = [0, n0, _JT, 8, 0];
|
|
119
|
-
const AssumedRoleUser$ = [3, n0, _ARU,
|
|
120
|
-
0,
|
|
121
|
-
[_a, _aRI],
|
|
122
|
-
[0, 0], 2
|
|
123
|
-
];
|
|
124
|
-
exports.AssumedRoleUser$ = AssumedRoleUser$;
|
|
125
|
-
const AssumeRoleForPodIdentityRequest$ = [3, n0, _ARFPIR,
|
|
126
|
-
0,
|
|
127
|
-
[_cN, _t],
|
|
128
|
-
[[0, 1], [() => JwtToken, 0]], 2
|
|
129
|
-
];
|
|
130
|
-
exports.AssumeRoleForPodIdentityRequest$ = AssumeRoleForPodIdentityRequest$;
|
|
131
|
-
const AssumeRoleForPodIdentityResponse$ = [3, n0, _ARFPIRs,
|
|
132
|
-
0,
|
|
133
|
-
[_su, _au, _pIA, _aRU, _cr],
|
|
134
|
-
[() => Subject$, 0, () => PodIdentityAssociation$, () => AssumedRoleUser$, [() => Credentials$, 0]], 5
|
|
135
|
-
];
|
|
136
|
-
exports.AssumeRoleForPodIdentityResponse$ = AssumeRoleForPodIdentityResponse$;
|
|
137
|
-
const Credentials$ = [3, n0, _C,
|
|
138
|
-
8,
|
|
139
|
-
[_sT, _sAK, _aKI, _ex],
|
|
140
|
-
[0, 0, 0, 4], 4
|
|
141
|
-
];
|
|
142
|
-
exports.Credentials$ = Credentials$;
|
|
143
|
-
const PodIdentityAssociation$ = [3, n0, _PIA,
|
|
144
|
-
0,
|
|
145
|
-
[_aA, _aI],
|
|
146
|
-
[0, 0], 2
|
|
147
|
-
];
|
|
148
|
-
exports.PodIdentityAssociation$ = PodIdentityAssociation$;
|
|
149
|
-
const Subject$ = [3, n0, _S,
|
|
150
|
-
0,
|
|
151
|
-
[_n, _sA],
|
|
152
|
-
[0, 0], 2
|
|
153
|
-
];
|
|
154
|
-
exports.Subject$ = Subject$;
|
|
155
|
-
exports.AssumeRoleForPodIdentity$ = [9, n0, _ARFPI,
|
|
156
|
-
{ [_h]: ["POST", "/clusters/{clusterName}/assume-role-for-pod-identity", 200] }, () => AssumeRoleForPodIdentityRequest$, () => AssumeRoleForPodIdentityResponse$
|
|
157
|
-
];
|