@aws-sdk/client-eks-auth 3.901.0 → 3.906.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 +458 -608
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,643 +1,493 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
$Command: () => import_smithy_client.Command,
|
|
25
|
-
AccessDeniedException: () => AccessDeniedException,
|
|
26
|
-
AssumeRoleForPodIdentityCommand: () => AssumeRoleForPodIdentityCommand,
|
|
27
|
-
AssumeRoleForPodIdentityRequestFilterSensitiveLog: () => AssumeRoleForPodIdentityRequestFilterSensitiveLog,
|
|
28
|
-
AssumeRoleForPodIdentityResponseFilterSensitiveLog: () => AssumeRoleForPodIdentityResponseFilterSensitiveLog,
|
|
29
|
-
CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog,
|
|
30
|
-
EKSAuth: () => EKSAuth,
|
|
31
|
-
EKSAuthClient: () => EKSAuthClient,
|
|
32
|
-
EKSAuthServiceException: () => EKSAuthServiceException,
|
|
33
|
-
ExpiredTokenException: () => ExpiredTokenException,
|
|
34
|
-
InternalServerException: () => InternalServerException,
|
|
35
|
-
InvalidParameterException: () => InvalidParameterException,
|
|
36
|
-
InvalidRequestException: () => InvalidRequestException,
|
|
37
|
-
InvalidTokenException: () => InvalidTokenException,
|
|
38
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
39
|
-
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
40
|
-
ThrottlingException: () => ThrottlingException,
|
|
41
|
-
__Client: () => import_smithy_client.Client
|
|
42
|
-
});
|
|
43
|
-
module.exports = __toCommonJS(index_exports);
|
|
1
|
+
'use strict';
|
|
44
2
|
|
|
45
|
-
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
55
19
|
|
|
56
|
-
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
23
|
+
defaultSigningName: "eks-auth",
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const commonParams = {
|
|
27
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
28
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
29
|
+
Region: { type: "builtInParams", name: "region" },
|
|
30
|
+
};
|
|
57
31
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
32
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
33
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
34
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
35
|
+
let _credentials = runtimeConfig.credentials;
|
|
36
|
+
return {
|
|
37
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
38
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
39
|
+
if (index === -1) {
|
|
40
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
httpAuthSchemes() {
|
|
47
|
+
return _httpAuthSchemes;
|
|
48
|
+
},
|
|
49
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
50
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
51
|
+
},
|
|
52
|
+
httpAuthSchemeProvider() {
|
|
53
|
+
return _httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
setCredentials(credentials) {
|
|
56
|
+
_credentials = credentials;
|
|
57
|
+
},
|
|
58
|
+
credentials() {
|
|
59
|
+
return _credentials;
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
64
|
+
return {
|
|
65
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
66
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
67
|
+
credentials: config.credentials(),
|
|
68
|
+
};
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
75
|
+
};
|
|
73
76
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
class EKSAuthClient extends smithyClient.Client {
|
|
78
|
+
config;
|
|
79
|
+
constructor(...[configuration]) {
|
|
80
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
81
|
+
super(_config_0);
|
|
82
|
+
this.initConfig = _config_0;
|
|
83
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
85
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
86
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
87
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
88
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
89
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
90
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
91
|
+
this.config = _config_8;
|
|
92
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
93
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
99
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultEKSAuthHttpAuthSchemeParametersProvider,
|
|
100
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
101
|
+
"aws.auth#sigv4": config.credentials,
|
|
102
|
+
}),
|
|
103
|
+
}));
|
|
104
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
105
|
+
}
|
|
106
|
+
destroy() {
|
|
107
|
+
super.destroy();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
78
110
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
let _credentials = runtimeConfig.credentials;
|
|
84
|
-
return {
|
|
85
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
86
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
87
|
-
if (index === -1) {
|
|
88
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
89
|
-
} else {
|
|
90
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
httpAuthSchemes() {
|
|
94
|
-
return _httpAuthSchemes;
|
|
95
|
-
},
|
|
96
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
97
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
98
|
-
},
|
|
99
|
-
httpAuthSchemeProvider() {
|
|
100
|
-
return _httpAuthSchemeProvider;
|
|
101
|
-
},
|
|
102
|
-
setCredentials(credentials) {
|
|
103
|
-
_credentials = credentials;
|
|
104
|
-
},
|
|
105
|
-
credentials() {
|
|
106
|
-
return _credentials;
|
|
111
|
+
class EKSAuthServiceException extends smithyClient.ServiceException {
|
|
112
|
+
constructor(options) {
|
|
113
|
+
super(options);
|
|
114
|
+
Object.setPrototypeOf(this, EKSAuthServiceException.prototype);
|
|
107
115
|
}
|
|
108
|
-
|
|
109
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
110
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
111
|
-
return {
|
|
112
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
113
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
114
|
-
credentials: config.credentials()
|
|
115
|
-
};
|
|
116
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
116
|
+
}
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
118
|
+
class AccessDeniedException extends EKSAuthServiceException {
|
|
119
|
+
name = "AccessDeniedException";
|
|
120
|
+
$fault = "client";
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "AccessDeniedException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
class ExpiredTokenException extends EKSAuthServiceException {
|
|
131
|
+
name = "ExpiredTokenException";
|
|
132
|
+
$fault = "client";
|
|
133
|
+
constructor(opts) {
|
|
134
|
+
super({
|
|
135
|
+
name: "ExpiredTokenException",
|
|
136
|
+
$fault: "client",
|
|
137
|
+
...opts,
|
|
138
|
+
});
|
|
139
|
+
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
class InternalServerException extends EKSAuthServiceException {
|
|
143
|
+
name = "InternalServerException";
|
|
144
|
+
$fault = "server";
|
|
145
|
+
constructor(opts) {
|
|
146
|
+
super({
|
|
147
|
+
name: "InternalServerException",
|
|
148
|
+
$fault: "server",
|
|
149
|
+
...opts,
|
|
150
|
+
});
|
|
151
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
class InvalidParameterException extends EKSAuthServiceException {
|
|
155
|
+
name = "InvalidParameterException";
|
|
156
|
+
$fault = "client";
|
|
157
|
+
constructor(opts) {
|
|
158
|
+
super({
|
|
159
|
+
name: "InvalidParameterException",
|
|
160
|
+
$fault: "client",
|
|
161
|
+
...opts,
|
|
162
|
+
});
|
|
163
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
class InvalidRequestException extends EKSAuthServiceException {
|
|
167
|
+
name = "InvalidRequestException";
|
|
168
|
+
$fault = "client";
|
|
169
|
+
constructor(opts) {
|
|
170
|
+
super({
|
|
171
|
+
name: "InvalidRequestException",
|
|
172
|
+
$fault: "client",
|
|
173
|
+
...opts,
|
|
174
|
+
});
|
|
175
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
class InvalidTokenException extends EKSAuthServiceException {
|
|
179
|
+
name = "InvalidTokenException";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "InvalidTokenException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, InvalidTokenException.prototype);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
class ResourceNotFoundException extends EKSAuthServiceException {
|
|
191
|
+
name = "ResourceNotFoundException";
|
|
192
|
+
$fault = "client";
|
|
193
|
+
constructor(opts) {
|
|
194
|
+
super({
|
|
195
|
+
name: "ResourceNotFoundException",
|
|
196
|
+
$fault: "client",
|
|
197
|
+
...opts,
|
|
198
|
+
});
|
|
199
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
class ServiceUnavailableException extends EKSAuthServiceException {
|
|
203
|
+
name = "ServiceUnavailableException";
|
|
204
|
+
$fault = "server";
|
|
205
|
+
constructor(opts) {
|
|
206
|
+
super({
|
|
207
|
+
name: "ServiceUnavailableException",
|
|
208
|
+
$fault: "server",
|
|
209
|
+
...opts,
|
|
210
|
+
});
|
|
211
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
class ThrottlingException extends EKSAuthServiceException {
|
|
215
|
+
name = "ThrottlingException";
|
|
216
|
+
$fault = "client";
|
|
217
|
+
constructor(opts) {
|
|
218
|
+
super({
|
|
219
|
+
name: "ThrottlingException",
|
|
220
|
+
$fault: "client",
|
|
221
|
+
...opts,
|
|
222
|
+
});
|
|
223
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
const AssumeRoleForPodIdentityRequestFilterSensitiveLog = (obj) => ({
|
|
227
|
+
...obj,
|
|
228
|
+
...(obj.token && { token: smithyClient.SENSITIVE_STRING }),
|
|
229
|
+
});
|
|
230
|
+
const CredentialsFilterSensitiveLog = (obj) => ({
|
|
231
|
+
...obj,
|
|
232
|
+
});
|
|
233
|
+
const AssumeRoleForPodIdentityResponseFilterSensitiveLog = (obj) => ({
|
|
234
|
+
...obj,
|
|
235
|
+
...(obj.credentials && { credentials: smithyClient.SENSITIVE_STRING }),
|
|
236
|
+
});
|
|
135
237
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
150
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
151
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
152
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
153
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
154
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
155
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
156
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
157
|
-
this.config = _config_8;
|
|
158
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
159
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
160
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
161
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
162
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
163
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
164
|
-
this.middlewareStack.use(
|
|
165
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
166
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultEKSAuthHttpAuthSchemeParametersProvider,
|
|
167
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
168
|
-
"aws.auth#sigv4": config.credentials
|
|
169
|
-
}), "identityProviderConfigProvider")
|
|
170
|
-
})
|
|
171
|
-
);
|
|
172
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
176
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
177
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
178
|
-
*/
|
|
179
|
-
destroy() {
|
|
180
|
-
super.destroy();
|
|
181
|
-
}
|
|
238
|
+
const se_AssumeRoleForPodIdentityCommand = async (input, context) => {
|
|
239
|
+
const b = core.requestBuilder(input, context);
|
|
240
|
+
const headers = {
|
|
241
|
+
"content-type": "application/json",
|
|
242
|
+
};
|
|
243
|
+
b.bp("/clusters/{clusterName}/assume-role-for-pod-identity");
|
|
244
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
245
|
+
let body;
|
|
246
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
247
|
+
token: [],
|
|
248
|
+
}));
|
|
249
|
+
b.m("POST").h(headers).b(body);
|
|
250
|
+
return b.build();
|
|
182
251
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
constructor(options) {
|
|
205
|
-
super(options);
|
|
206
|
-
Object.setPrototypeOf(this, _EKSAuthServiceException.prototype);
|
|
207
|
-
}
|
|
252
|
+
const de_AssumeRoleForPodIdentityCommand = async (output, context) => {
|
|
253
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
254
|
+
return de_CommandError(output, context);
|
|
255
|
+
}
|
|
256
|
+
const contents = smithyClient.map({
|
|
257
|
+
$metadata: deserializeMetadata(output),
|
|
258
|
+
});
|
|
259
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
260
|
+
const doc = smithyClient.take(data, {
|
|
261
|
+
assumedRoleUser: smithyClient._json,
|
|
262
|
+
audience: smithyClient.expectString,
|
|
263
|
+
credentials: (_) => de_Credentials(_),
|
|
264
|
+
podIdentityAssociation: smithyClient._json,
|
|
265
|
+
subject: smithyClient._json,
|
|
266
|
+
});
|
|
267
|
+
Object.assign(contents, doc);
|
|
268
|
+
return contents;
|
|
208
269
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
270
|
+
const de_CommandError = async (output, context) => {
|
|
271
|
+
const parsedOutput = {
|
|
272
|
+
...output,
|
|
273
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
274
|
+
};
|
|
275
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
276
|
+
switch (errorCode) {
|
|
277
|
+
case "AccessDeniedException":
|
|
278
|
+
case "com.amazonaws.eksauth#AccessDeniedException":
|
|
279
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
280
|
+
case "ExpiredTokenException":
|
|
281
|
+
case "com.amazonaws.eksauth#ExpiredTokenException":
|
|
282
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput);
|
|
283
|
+
case "InternalServerException":
|
|
284
|
+
case "com.amazonaws.eksauth#InternalServerException":
|
|
285
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
286
|
+
case "InvalidParameterException":
|
|
287
|
+
case "com.amazonaws.eksauth#InvalidParameterException":
|
|
288
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput);
|
|
289
|
+
case "InvalidRequestException":
|
|
290
|
+
case "com.amazonaws.eksauth#InvalidRequestException":
|
|
291
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
|
292
|
+
case "InvalidTokenException":
|
|
293
|
+
case "com.amazonaws.eksauth#InvalidTokenException":
|
|
294
|
+
throw await de_InvalidTokenExceptionRes(parsedOutput);
|
|
295
|
+
case "ResourceNotFoundException":
|
|
296
|
+
case "com.amazonaws.eksauth#ResourceNotFoundException":
|
|
297
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
298
|
+
case "ServiceUnavailableException":
|
|
299
|
+
case "com.amazonaws.eksauth#ServiceUnavailableException":
|
|
300
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
301
|
+
case "ThrottlingException":
|
|
302
|
+
case "com.amazonaws.eksauth#ThrottlingException":
|
|
303
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
304
|
+
default:
|
|
305
|
+
const parsedBody = parsedOutput.body;
|
|
306
|
+
return throwDefaultError({
|
|
307
|
+
output,
|
|
308
|
+
parsedBody,
|
|
309
|
+
errorCode,
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
const throwDefaultError = smithyClient.withBaseException(EKSAuthServiceException);
|
|
314
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
315
|
+
const contents = smithyClient.map({});
|
|
316
|
+
const data = parsedOutput.body;
|
|
317
|
+
const doc = smithyClient.take(data, {
|
|
318
|
+
message: smithyClient.expectString,
|
|
225
319
|
});
|
|
226
|
-
Object.
|
|
227
|
-
|
|
320
|
+
Object.assign(contents, doc);
|
|
321
|
+
const exception = new AccessDeniedException({
|
|
322
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
323
|
+
...contents,
|
|
324
|
+
});
|
|
325
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
228
326
|
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
327
|
+
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
328
|
+
const contents = smithyClient.map({});
|
|
329
|
+
const data = parsedOutput.body;
|
|
330
|
+
const doc = smithyClient.take(data, {
|
|
331
|
+
message: smithyClient.expectString,
|
|
332
|
+
});
|
|
333
|
+
Object.assign(contents, doc);
|
|
334
|
+
const exception = new ExpiredTokenException({
|
|
335
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
336
|
+
...contents,
|
|
337
|
+
});
|
|
338
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
339
|
+
};
|
|
340
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
341
|
+
const contents = smithyClient.map({});
|
|
342
|
+
const data = parsedOutput.body;
|
|
343
|
+
const doc = smithyClient.take(data, {
|
|
344
|
+
message: smithyClient.expectString,
|
|
345
|
+
});
|
|
346
|
+
Object.assign(contents, doc);
|
|
347
|
+
const exception = new InternalServerException({
|
|
348
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
349
|
+
...contents,
|
|
243
350
|
});
|
|
244
|
-
|
|
245
|
-
}
|
|
351
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
246
352
|
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
$fault = "server";
|
|
253
|
-
/**
|
|
254
|
-
* @internal
|
|
255
|
-
*/
|
|
256
|
-
constructor(opts) {
|
|
257
|
-
super({
|
|
258
|
-
name: "InternalServerException",
|
|
259
|
-
$fault: "server",
|
|
260
|
-
...opts
|
|
353
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
354
|
+
const contents = smithyClient.map({});
|
|
355
|
+
const data = parsedOutput.body;
|
|
356
|
+
const doc = smithyClient.take(data, {
|
|
357
|
+
message: smithyClient.expectString,
|
|
261
358
|
});
|
|
262
|
-
Object.
|
|
263
|
-
|
|
359
|
+
Object.assign(contents, doc);
|
|
360
|
+
const exception = new InvalidParameterException({
|
|
361
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
362
|
+
...contents,
|
|
363
|
+
});
|
|
364
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
264
365
|
};
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
super({
|
|
276
|
-
name: "InvalidParameterException",
|
|
277
|
-
$fault: "client",
|
|
278
|
-
...opts
|
|
366
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
367
|
+
const contents = smithyClient.map({});
|
|
368
|
+
const data = parsedOutput.body;
|
|
369
|
+
const doc = smithyClient.take(data, {
|
|
370
|
+
message: smithyClient.expectString,
|
|
371
|
+
});
|
|
372
|
+
Object.assign(contents, doc);
|
|
373
|
+
const exception = new InvalidRequestException({
|
|
374
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
375
|
+
...contents,
|
|
279
376
|
});
|
|
280
|
-
|
|
281
|
-
}
|
|
377
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
282
378
|
};
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
$fault = "client";
|
|
289
|
-
/**
|
|
290
|
-
* @internal
|
|
291
|
-
*/
|
|
292
|
-
constructor(opts) {
|
|
293
|
-
super({
|
|
294
|
-
name: "InvalidRequestException",
|
|
295
|
-
$fault: "client",
|
|
296
|
-
...opts
|
|
379
|
+
const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
|
|
380
|
+
const contents = smithyClient.map({});
|
|
381
|
+
const data = parsedOutput.body;
|
|
382
|
+
const doc = smithyClient.take(data, {
|
|
383
|
+
message: smithyClient.expectString,
|
|
297
384
|
});
|
|
298
|
-
Object.
|
|
299
|
-
|
|
385
|
+
Object.assign(contents, doc);
|
|
386
|
+
const exception = new InvalidTokenException({
|
|
387
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
388
|
+
...contents,
|
|
389
|
+
});
|
|
390
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
300
391
|
};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
super({
|
|
312
|
-
name: "InvalidTokenException",
|
|
313
|
-
$fault: "client",
|
|
314
|
-
...opts
|
|
392
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
393
|
+
const contents = smithyClient.map({});
|
|
394
|
+
const data = parsedOutput.body;
|
|
395
|
+
const doc = smithyClient.take(data, {
|
|
396
|
+
message: smithyClient.expectString,
|
|
397
|
+
});
|
|
398
|
+
Object.assign(contents, doc);
|
|
399
|
+
const exception = new ResourceNotFoundException({
|
|
400
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
401
|
+
...contents,
|
|
315
402
|
});
|
|
316
|
-
|
|
317
|
-
}
|
|
403
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
318
404
|
};
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
$fault = "client";
|
|
325
|
-
/**
|
|
326
|
-
* @internal
|
|
327
|
-
*/
|
|
328
|
-
constructor(opts) {
|
|
329
|
-
super({
|
|
330
|
-
name: "ResourceNotFoundException",
|
|
331
|
-
$fault: "client",
|
|
332
|
-
...opts
|
|
405
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
406
|
+
const contents = smithyClient.map({});
|
|
407
|
+
const data = parsedOutput.body;
|
|
408
|
+
const doc = smithyClient.take(data, {
|
|
409
|
+
message: smithyClient.expectString,
|
|
333
410
|
});
|
|
334
|
-
Object.
|
|
335
|
-
|
|
411
|
+
Object.assign(contents, doc);
|
|
412
|
+
const exception = new ServiceUnavailableException({
|
|
413
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
414
|
+
...contents,
|
|
415
|
+
});
|
|
416
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
336
417
|
};
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
super({
|
|
348
|
-
name: "ServiceUnavailableException",
|
|
349
|
-
$fault: "server",
|
|
350
|
-
...opts
|
|
418
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
419
|
+
const contents = smithyClient.map({});
|
|
420
|
+
const data = parsedOutput.body;
|
|
421
|
+
const doc = smithyClient.take(data, {
|
|
422
|
+
message: smithyClient.expectString,
|
|
423
|
+
});
|
|
424
|
+
Object.assign(contents, doc);
|
|
425
|
+
const exception = new ThrottlingException({
|
|
426
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
427
|
+
...contents,
|
|
351
428
|
});
|
|
352
|
-
|
|
353
|
-
}
|
|
429
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
354
430
|
};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* @internal
|
|
363
|
-
*/
|
|
364
|
-
constructor(opts) {
|
|
365
|
-
super({
|
|
366
|
-
name: "ThrottlingException",
|
|
367
|
-
$fault: "client",
|
|
368
|
-
...opts
|
|
431
|
+
const de_Credentials = (output, context) => {
|
|
432
|
+
return smithyClient.take(output, {
|
|
433
|
+
accessKeyId: smithyClient.expectString,
|
|
434
|
+
expiration: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
435
|
+
secretAccessKey: smithyClient.expectString,
|
|
436
|
+
sessionToken: smithyClient.expectString,
|
|
369
437
|
});
|
|
370
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
371
|
-
}
|
|
372
438
|
};
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
}), "CredentialsFilterSensitiveLog");
|
|
380
|
-
var AssumeRoleForPodIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
381
|
-
...obj,
|
|
382
|
-
...obj.credentials && { credentials: import_smithy_client.SENSITIVE_STRING }
|
|
383
|
-
}), "AssumeRoleForPodIdentityResponseFilterSensitiveLog");
|
|
384
|
-
|
|
385
|
-
// src/protocols/Aws_restJson1.ts
|
|
386
|
-
var import_core2 = require("@aws-sdk/core");
|
|
387
|
-
|
|
439
|
+
const deserializeMetadata = (output) => ({
|
|
440
|
+
httpStatusCode: output.statusCode,
|
|
441
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
442
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
443
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
444
|
+
});
|
|
388
445
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
(
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
var de_AssumeRoleForPodIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
406
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
407
|
-
return de_CommandError(output, context);
|
|
408
|
-
}
|
|
409
|
-
const contents = (0, import_smithy_client.map)({
|
|
410
|
-
$metadata: deserializeMetadata(output)
|
|
411
|
-
});
|
|
412
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
413
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
414
|
-
assumedRoleUser: import_smithy_client._json,
|
|
415
|
-
audience: import_smithy_client.expectString,
|
|
416
|
-
credentials: /* @__PURE__ */ __name((_) => de_Credentials(_, context), "credentials"),
|
|
417
|
-
podIdentityAssociation: import_smithy_client._json,
|
|
418
|
-
subject: import_smithy_client._json
|
|
419
|
-
});
|
|
420
|
-
Object.assign(contents, doc);
|
|
421
|
-
return contents;
|
|
422
|
-
}, "de_AssumeRoleForPodIdentityCommand");
|
|
423
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
424
|
-
const parsedOutput = {
|
|
425
|
-
...output,
|
|
426
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
427
|
-
};
|
|
428
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
429
|
-
switch (errorCode) {
|
|
430
|
-
case "AccessDeniedException":
|
|
431
|
-
case "com.amazonaws.eksauth#AccessDeniedException":
|
|
432
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
433
|
-
case "ExpiredTokenException":
|
|
434
|
-
case "com.amazonaws.eksauth#ExpiredTokenException":
|
|
435
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
436
|
-
case "InternalServerException":
|
|
437
|
-
case "com.amazonaws.eksauth#InternalServerException":
|
|
438
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
439
|
-
case "InvalidParameterException":
|
|
440
|
-
case "com.amazonaws.eksauth#InvalidParameterException":
|
|
441
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
442
|
-
case "InvalidRequestException":
|
|
443
|
-
case "com.amazonaws.eksauth#InvalidRequestException":
|
|
444
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
445
|
-
case "InvalidTokenException":
|
|
446
|
-
case "com.amazonaws.eksauth#InvalidTokenException":
|
|
447
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ResourceNotFoundException":
|
|
449
|
-
case "com.amazonaws.eksauth#ResourceNotFoundException":
|
|
450
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
451
|
-
case "ServiceUnavailableException":
|
|
452
|
-
case "com.amazonaws.eksauth#ServiceUnavailableException":
|
|
453
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
454
|
-
case "ThrottlingException":
|
|
455
|
-
case "com.amazonaws.eksauth#ThrottlingException":
|
|
456
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
457
|
-
default:
|
|
458
|
-
const parsedBody = parsedOutput.body;
|
|
459
|
-
return throwDefaultError({
|
|
460
|
-
output,
|
|
461
|
-
parsedBody,
|
|
462
|
-
errorCode
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
}, "de_CommandError");
|
|
466
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(EKSAuthServiceException);
|
|
467
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
468
|
-
const contents = (0, import_smithy_client.map)({});
|
|
469
|
-
const data = parsedOutput.body;
|
|
470
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
471
|
-
message: import_smithy_client.expectString
|
|
472
|
-
});
|
|
473
|
-
Object.assign(contents, doc);
|
|
474
|
-
const exception = new AccessDeniedException({
|
|
475
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
476
|
-
...contents
|
|
477
|
-
});
|
|
478
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
479
|
-
}, "de_AccessDeniedExceptionRes");
|
|
480
|
-
var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
481
|
-
const contents = (0, import_smithy_client.map)({});
|
|
482
|
-
const data = parsedOutput.body;
|
|
483
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
484
|
-
message: import_smithy_client.expectString
|
|
485
|
-
});
|
|
486
|
-
Object.assign(contents, doc);
|
|
487
|
-
const exception = new ExpiredTokenException({
|
|
488
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
489
|
-
...contents
|
|
490
|
-
});
|
|
491
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
492
|
-
}, "de_ExpiredTokenExceptionRes");
|
|
493
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
494
|
-
const contents = (0, import_smithy_client.map)({});
|
|
495
|
-
const data = parsedOutput.body;
|
|
496
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
497
|
-
message: import_smithy_client.expectString
|
|
498
|
-
});
|
|
499
|
-
Object.assign(contents, doc);
|
|
500
|
-
const exception = new InternalServerException({
|
|
501
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
502
|
-
...contents
|
|
503
|
-
});
|
|
504
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
505
|
-
}, "de_InternalServerExceptionRes");
|
|
506
|
-
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
507
|
-
const contents = (0, import_smithy_client.map)({});
|
|
508
|
-
const data = parsedOutput.body;
|
|
509
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
510
|
-
message: import_smithy_client.expectString
|
|
511
|
-
});
|
|
512
|
-
Object.assign(contents, doc);
|
|
513
|
-
const exception = new InvalidParameterException({
|
|
514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
515
|
-
...contents
|
|
516
|
-
});
|
|
517
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
518
|
-
}, "de_InvalidParameterExceptionRes");
|
|
519
|
-
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
520
|
-
const contents = (0, import_smithy_client.map)({});
|
|
521
|
-
const data = parsedOutput.body;
|
|
522
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
523
|
-
message: import_smithy_client.expectString
|
|
524
|
-
});
|
|
525
|
-
Object.assign(contents, doc);
|
|
526
|
-
const exception = new InvalidRequestException({
|
|
527
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
528
|
-
...contents
|
|
529
|
-
});
|
|
530
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
531
|
-
}, "de_InvalidRequestExceptionRes");
|
|
532
|
-
var de_InvalidTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
533
|
-
const contents = (0, import_smithy_client.map)({});
|
|
534
|
-
const data = parsedOutput.body;
|
|
535
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
536
|
-
message: import_smithy_client.expectString
|
|
537
|
-
});
|
|
538
|
-
Object.assign(contents, doc);
|
|
539
|
-
const exception = new InvalidTokenException({
|
|
540
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
541
|
-
...contents
|
|
542
|
-
});
|
|
543
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
544
|
-
}, "de_InvalidTokenExceptionRes");
|
|
545
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
546
|
-
const contents = (0, import_smithy_client.map)({});
|
|
547
|
-
const data = parsedOutput.body;
|
|
548
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
549
|
-
message: import_smithy_client.expectString
|
|
550
|
-
});
|
|
551
|
-
Object.assign(contents, doc);
|
|
552
|
-
const exception = new ResourceNotFoundException({
|
|
553
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
554
|
-
...contents
|
|
555
|
-
});
|
|
556
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
557
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
558
|
-
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
559
|
-
const contents = (0, import_smithy_client.map)({});
|
|
560
|
-
const data = parsedOutput.body;
|
|
561
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
562
|
-
message: import_smithy_client.expectString
|
|
563
|
-
});
|
|
564
|
-
Object.assign(contents, doc);
|
|
565
|
-
const exception = new ServiceUnavailableException({
|
|
566
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
567
|
-
...contents
|
|
568
|
-
});
|
|
569
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
570
|
-
}, "de_ServiceUnavailableExceptionRes");
|
|
571
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
572
|
-
const contents = (0, import_smithy_client.map)({});
|
|
573
|
-
const data = parsedOutput.body;
|
|
574
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
575
|
-
message: import_smithy_client.expectString
|
|
576
|
-
});
|
|
577
|
-
Object.assign(contents, doc);
|
|
578
|
-
const exception = new ThrottlingException({
|
|
579
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
580
|
-
...contents
|
|
581
|
-
});
|
|
582
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
583
|
-
}, "de_ThrottlingExceptionRes");
|
|
584
|
-
var de_Credentials = /* @__PURE__ */ __name((output, context) => {
|
|
585
|
-
return (0, import_smithy_client.take)(output, {
|
|
586
|
-
accessKeyId: import_smithy_client.expectString,
|
|
587
|
-
expiration: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "expiration"),
|
|
588
|
-
secretAccessKey: import_smithy_client.expectString,
|
|
589
|
-
sessionToken: import_smithy_client.expectString
|
|
590
|
-
});
|
|
591
|
-
}, "de_Credentials");
|
|
592
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
593
|
-
httpStatusCode: output.statusCode,
|
|
594
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
595
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
596
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
597
|
-
}), "deserializeMetadata");
|
|
446
|
+
class AssumeRoleForPodIdentityCommand extends smithyClient.Command
|
|
447
|
+
.classBuilder()
|
|
448
|
+
.ep(commonParams)
|
|
449
|
+
.m(function (Command, cs, config, o) {
|
|
450
|
+
return [
|
|
451
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
452
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
453
|
+
];
|
|
454
|
+
})
|
|
455
|
+
.s("EKSAuthFrontend", "AssumeRoleForPodIdentity", {})
|
|
456
|
+
.n("EKSAuthClient", "AssumeRoleForPodIdentityCommand")
|
|
457
|
+
.f(AssumeRoleForPodIdentityRequestFilterSensitiveLog, AssumeRoleForPodIdentityResponseFilterSensitiveLog)
|
|
458
|
+
.ser(se_AssumeRoleForPodIdentityCommand)
|
|
459
|
+
.de(de_AssumeRoleForPodIdentityCommand)
|
|
460
|
+
.build() {
|
|
461
|
+
}
|
|
598
462
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
return [
|
|
602
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
603
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
604
|
-
];
|
|
605
|
-
}).s("EKSAuthFrontend", "AssumeRoleForPodIdentity", {}).n("EKSAuthClient", "AssumeRoleForPodIdentityCommand").f(AssumeRoleForPodIdentityRequestFilterSensitiveLog, AssumeRoleForPodIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleForPodIdentityCommand).de(de_AssumeRoleForPodIdentityCommand).build() {
|
|
606
|
-
static {
|
|
607
|
-
__name(this, "AssumeRoleForPodIdentityCommand");
|
|
608
|
-
}
|
|
463
|
+
const commands = {
|
|
464
|
+
AssumeRoleForPodIdentityCommand,
|
|
609
465
|
};
|
|
466
|
+
class EKSAuth extends EKSAuthClient {
|
|
467
|
+
}
|
|
468
|
+
smithyClient.createAggregatedClient(commands, EKSAuth);
|
|
610
469
|
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
};
|
|
615
|
-
var EKSAuth = class extends EKSAuthClient {
|
|
616
|
-
static {
|
|
617
|
-
__name(this, "EKSAuth");
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
|
-
(0, import_smithy_client.createAggregatedClient)(commands, EKSAuth);
|
|
621
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
622
|
-
|
|
623
|
-
0 && (module.exports = {
|
|
624
|
-
EKSAuthServiceException,
|
|
625
|
-
__Client,
|
|
626
|
-
EKSAuthClient,
|
|
627
|
-
EKSAuth,
|
|
628
|
-
$Command,
|
|
629
|
-
AssumeRoleForPodIdentityCommand,
|
|
630
|
-
AccessDeniedException,
|
|
631
|
-
ExpiredTokenException,
|
|
632
|
-
InternalServerException,
|
|
633
|
-
InvalidParameterException,
|
|
634
|
-
InvalidRequestException,
|
|
635
|
-
InvalidTokenException,
|
|
636
|
-
ResourceNotFoundException,
|
|
637
|
-
ServiceUnavailableException,
|
|
638
|
-
ThrottlingException,
|
|
639
|
-
AssumeRoleForPodIdentityRequestFilterSensitiveLog,
|
|
640
|
-
CredentialsFilterSensitiveLog,
|
|
641
|
-
AssumeRoleForPodIdentityResponseFilterSensitiveLog
|
|
470
|
+
Object.defineProperty(exports, "$Command", {
|
|
471
|
+
enumerable: true,
|
|
472
|
+
get: function () { return smithyClient.Command; }
|
|
642
473
|
});
|
|
643
|
-
|
|
474
|
+
Object.defineProperty(exports, "__Client", {
|
|
475
|
+
enumerable: true,
|
|
476
|
+
get: function () { return smithyClient.Client; }
|
|
477
|
+
});
|
|
478
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
479
|
+
exports.AssumeRoleForPodIdentityCommand = AssumeRoleForPodIdentityCommand;
|
|
480
|
+
exports.AssumeRoleForPodIdentityRequestFilterSensitiveLog = AssumeRoleForPodIdentityRequestFilterSensitiveLog;
|
|
481
|
+
exports.AssumeRoleForPodIdentityResponseFilterSensitiveLog = AssumeRoleForPodIdentityResponseFilterSensitiveLog;
|
|
482
|
+
exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog;
|
|
483
|
+
exports.EKSAuth = EKSAuth;
|
|
484
|
+
exports.EKSAuthClient = EKSAuthClient;
|
|
485
|
+
exports.EKSAuthServiceException = EKSAuthServiceException;
|
|
486
|
+
exports.ExpiredTokenException = ExpiredTokenException;
|
|
487
|
+
exports.InternalServerException = InternalServerException;
|
|
488
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
489
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
490
|
+
exports.InvalidTokenException = InvalidTokenException;
|
|
491
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
492
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
493
|
+
exports.ThrottlingException = ThrottlingException;
|
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.906.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-eks-auth",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.906.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.906.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.901.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.901.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.901.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.906.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.901.0",
|
|
30
30
|
"@aws-sdk/types": "3.901.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.901.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.901.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.906.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.3.0",
|
|
35
35
|
"@smithy/core": "^3.14.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.0",
|