@aws-sdk/client-eks-auth 3.458.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +214 -0
- package/dist-cjs/EKSAuth.js +13 -0
- package/dist-cjs/EKSAuthClient.js +43 -0
- package/dist-cjs/commands/AssumeRoleForPodIdentityCommand.js +51 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/EndpointParameters.js +11 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/EKSAuthServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +136 -0
- package/dist-cjs/protocols/Aws_restJson1.js +270 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/EKSAuth.js +9 -0
- package/dist-es/EKSAuthClient.js +39 -0
- package/dist-es/commands/AssumeRoleForPodIdentityCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/EndpointParameters.js +7 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/EKSAuthServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +121 -0
- package/dist-es/protocols/Aws_restJson1.js +265 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/EKSAuth.d.ts +18 -0
- package/dist-types/EKSAuthClient.d.ts +171 -0
- package/dist-types/commands/AssumeRoleForPodIdentityCommand.d.ts +128 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/EKSAuthServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +273 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +11 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/EKSAuth.d.ts +22 -0
- package/dist-types/ts3.4/EKSAuthClient.d.ts +122 -0
- package/dist-types/ts3.4/commands/AssumeRoleForPodIdentityCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +31 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/EKSAuthServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +101 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +17 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +102 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssumeRoleForPodIdentityResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.AssumeRoleForPodIdentityRequestFilterSensitiveLog = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.InvalidTokenException = exports.InvalidRequestException = exports.InvalidParameterException = exports.InternalServerException = exports.ExpiredTokenException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
const EKSAuthServiceException_1 = require("./EKSAuthServiceException");
|
|
6
|
+
class AccessDeniedException extends EKSAuthServiceException_1.EKSAuthServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "AccessDeniedException";
|
|
14
|
+
this.$fault = "client";
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
19
|
+
class ExpiredTokenException extends EKSAuthServiceException_1.EKSAuthServiceException {
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "ExpiredTokenException",
|
|
23
|
+
$fault: "client",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
this.name = "ExpiredTokenException";
|
|
27
|
+
this.$fault = "client";
|
|
28
|
+
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ExpiredTokenException = ExpiredTokenException;
|
|
32
|
+
class InternalServerException extends EKSAuthServiceException_1.EKSAuthServiceException {
|
|
33
|
+
constructor(opts) {
|
|
34
|
+
super({
|
|
35
|
+
name: "InternalServerException",
|
|
36
|
+
$fault: "server",
|
|
37
|
+
...opts,
|
|
38
|
+
});
|
|
39
|
+
this.name = "InternalServerException";
|
|
40
|
+
this.$fault = "server";
|
|
41
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.InternalServerException = InternalServerException;
|
|
45
|
+
class InvalidParameterException extends EKSAuthServiceException_1.EKSAuthServiceException {
|
|
46
|
+
constructor(opts) {
|
|
47
|
+
super({
|
|
48
|
+
name: "InvalidParameterException",
|
|
49
|
+
$fault: "client",
|
|
50
|
+
...opts,
|
|
51
|
+
});
|
|
52
|
+
this.name = "InvalidParameterException";
|
|
53
|
+
this.$fault = "client";
|
|
54
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
58
|
+
class InvalidRequestException extends EKSAuthServiceException_1.EKSAuthServiceException {
|
|
59
|
+
constructor(opts) {
|
|
60
|
+
super({
|
|
61
|
+
name: "InvalidRequestException",
|
|
62
|
+
$fault: "client",
|
|
63
|
+
...opts,
|
|
64
|
+
});
|
|
65
|
+
this.name = "InvalidRequestException";
|
|
66
|
+
this.$fault = "client";
|
|
67
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
71
|
+
class InvalidTokenException extends EKSAuthServiceException_1.EKSAuthServiceException {
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "InvalidTokenException",
|
|
75
|
+
$fault: "client",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
this.name = "InvalidTokenException";
|
|
79
|
+
this.$fault = "client";
|
|
80
|
+
Object.setPrototypeOf(this, InvalidTokenException.prototype);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.InvalidTokenException = InvalidTokenException;
|
|
84
|
+
class ResourceNotFoundException extends EKSAuthServiceException_1.EKSAuthServiceException {
|
|
85
|
+
constructor(opts) {
|
|
86
|
+
super({
|
|
87
|
+
name: "ResourceNotFoundException",
|
|
88
|
+
$fault: "client",
|
|
89
|
+
...opts,
|
|
90
|
+
});
|
|
91
|
+
this.name = "ResourceNotFoundException";
|
|
92
|
+
this.$fault = "client";
|
|
93
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
97
|
+
class ServiceUnavailableException extends EKSAuthServiceException_1.EKSAuthServiceException {
|
|
98
|
+
constructor(opts) {
|
|
99
|
+
super({
|
|
100
|
+
name: "ServiceUnavailableException",
|
|
101
|
+
$fault: "server",
|
|
102
|
+
...opts,
|
|
103
|
+
});
|
|
104
|
+
this.name = "ServiceUnavailableException";
|
|
105
|
+
this.$fault = "server";
|
|
106
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
110
|
+
class ThrottlingException extends EKSAuthServiceException_1.EKSAuthServiceException {
|
|
111
|
+
constructor(opts) {
|
|
112
|
+
super({
|
|
113
|
+
name: "ThrottlingException",
|
|
114
|
+
$fault: "client",
|
|
115
|
+
...opts,
|
|
116
|
+
});
|
|
117
|
+
this.name = "ThrottlingException";
|
|
118
|
+
this.$fault = "client";
|
|
119
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.ThrottlingException = ThrottlingException;
|
|
123
|
+
const AssumeRoleForPodIdentityRequestFilterSensitiveLog = (obj) => ({
|
|
124
|
+
...obj,
|
|
125
|
+
...(obj.token && { token: smithy_client_1.SENSITIVE_STRING }),
|
|
126
|
+
});
|
|
127
|
+
exports.AssumeRoleForPodIdentityRequestFilterSensitiveLog = AssumeRoleForPodIdentityRequestFilterSensitiveLog;
|
|
128
|
+
const CredentialsFilterSensitiveLog = (obj) => ({
|
|
129
|
+
...obj,
|
|
130
|
+
});
|
|
131
|
+
exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog;
|
|
132
|
+
const AssumeRoleForPodIdentityResponseFilterSensitiveLog = (obj) => ({
|
|
133
|
+
...obj,
|
|
134
|
+
...(obj.credentials && { credentials: smithy_client_1.SENSITIVE_STRING }),
|
|
135
|
+
});
|
|
136
|
+
exports.AssumeRoleForPodIdentityResponseFilterSensitiveLog = AssumeRoleForPodIdentityResponseFilterSensitiveLog;
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.de_AssumeRoleForPodIdentityCommand = exports.se_AssumeRoleForPodIdentityCommand = void 0;
|
|
4
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
+
const EKSAuthServiceException_1 = require("../models/EKSAuthServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const se_AssumeRoleForPodIdentityCommand = async (input, context) => {
|
|
9
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
|
+
const headers = {
|
|
11
|
+
"content-type": "application/json",
|
|
12
|
+
};
|
|
13
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
14
|
+
"/clusters/{clusterName}/assume-role-for-pod-identity";
|
|
15
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
16
|
+
let body;
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
token: [],
|
|
19
|
+
}));
|
|
20
|
+
return new protocol_http_1.HttpRequest({
|
|
21
|
+
protocol,
|
|
22
|
+
hostname,
|
|
23
|
+
port,
|
|
24
|
+
method: "POST",
|
|
25
|
+
headers,
|
|
26
|
+
path: resolvedPath,
|
|
27
|
+
body,
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.se_AssumeRoleForPodIdentityCommand = se_AssumeRoleForPodIdentityCommand;
|
|
31
|
+
const de_AssumeRoleForPodIdentityCommand = async (output, context) => {
|
|
32
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
33
|
+
return de_AssumeRoleForPodIdentityCommandError(output, context);
|
|
34
|
+
}
|
|
35
|
+
const contents = (0, smithy_client_1.map)({
|
|
36
|
+
$metadata: deserializeMetadata(output),
|
|
37
|
+
});
|
|
38
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
39
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
40
|
+
assumedRoleUser: smithy_client_1._json,
|
|
41
|
+
audience: smithy_client_1.expectString,
|
|
42
|
+
credentials: (_) => de_Credentials(_, context),
|
|
43
|
+
podIdentityAssociation: smithy_client_1._json,
|
|
44
|
+
subject: smithy_client_1._json,
|
|
45
|
+
});
|
|
46
|
+
Object.assign(contents, doc);
|
|
47
|
+
return contents;
|
|
48
|
+
};
|
|
49
|
+
exports.de_AssumeRoleForPodIdentityCommand = de_AssumeRoleForPodIdentityCommand;
|
|
50
|
+
const de_AssumeRoleForPodIdentityCommandError = async (output, context) => {
|
|
51
|
+
const parsedOutput = {
|
|
52
|
+
...output,
|
|
53
|
+
body: await parseErrorBody(output.body, context),
|
|
54
|
+
};
|
|
55
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
56
|
+
switch (errorCode) {
|
|
57
|
+
case "AccessDeniedException":
|
|
58
|
+
case "com.amazonaws.eksauth#AccessDeniedException":
|
|
59
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
60
|
+
case "ExpiredTokenException":
|
|
61
|
+
case "com.amazonaws.eksauth#ExpiredTokenException":
|
|
62
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
63
|
+
case "InternalServerException":
|
|
64
|
+
case "com.amazonaws.eksauth#InternalServerException":
|
|
65
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
66
|
+
case "InvalidParameterException":
|
|
67
|
+
case "com.amazonaws.eksauth#InvalidParameterException":
|
|
68
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
69
|
+
case "InvalidRequestException":
|
|
70
|
+
case "com.amazonaws.eksauth#InvalidRequestException":
|
|
71
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
72
|
+
case "InvalidTokenException":
|
|
73
|
+
case "com.amazonaws.eksauth#InvalidTokenException":
|
|
74
|
+
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
75
|
+
case "ResourceNotFoundException":
|
|
76
|
+
case "com.amazonaws.eksauth#ResourceNotFoundException":
|
|
77
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
78
|
+
case "ServiceUnavailableException":
|
|
79
|
+
case "com.amazonaws.eksauth#ServiceUnavailableException":
|
|
80
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
81
|
+
case "ThrottlingException":
|
|
82
|
+
case "com.amazonaws.eksauth#ThrottlingException":
|
|
83
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
84
|
+
default:
|
|
85
|
+
const parsedBody = parsedOutput.body;
|
|
86
|
+
return throwDefaultError({
|
|
87
|
+
output,
|
|
88
|
+
parsedBody,
|
|
89
|
+
errorCode,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(EKSAuthServiceException_1.EKSAuthServiceException);
|
|
94
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
95
|
+
const contents = (0, smithy_client_1.map)({});
|
|
96
|
+
const data = parsedOutput.body;
|
|
97
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
98
|
+
message: smithy_client_1.expectString,
|
|
99
|
+
});
|
|
100
|
+
Object.assign(contents, doc);
|
|
101
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
102
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
103
|
+
...contents,
|
|
104
|
+
});
|
|
105
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
106
|
+
};
|
|
107
|
+
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
108
|
+
const contents = (0, smithy_client_1.map)({});
|
|
109
|
+
const data = parsedOutput.body;
|
|
110
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
111
|
+
message: smithy_client_1.expectString,
|
|
112
|
+
});
|
|
113
|
+
Object.assign(contents, doc);
|
|
114
|
+
const exception = new models_0_1.ExpiredTokenException({
|
|
115
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
116
|
+
...contents,
|
|
117
|
+
});
|
|
118
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
119
|
+
};
|
|
120
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
121
|
+
const contents = (0, smithy_client_1.map)({});
|
|
122
|
+
const data = parsedOutput.body;
|
|
123
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
124
|
+
message: smithy_client_1.expectString,
|
|
125
|
+
});
|
|
126
|
+
Object.assign(contents, doc);
|
|
127
|
+
const exception = new models_0_1.InternalServerException({
|
|
128
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
129
|
+
...contents,
|
|
130
|
+
});
|
|
131
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
132
|
+
};
|
|
133
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
134
|
+
const contents = (0, smithy_client_1.map)({});
|
|
135
|
+
const data = parsedOutput.body;
|
|
136
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
137
|
+
message: smithy_client_1.expectString,
|
|
138
|
+
});
|
|
139
|
+
Object.assign(contents, doc);
|
|
140
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
141
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
142
|
+
...contents,
|
|
143
|
+
});
|
|
144
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
145
|
+
};
|
|
146
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
147
|
+
const contents = (0, smithy_client_1.map)({});
|
|
148
|
+
const data = parsedOutput.body;
|
|
149
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
150
|
+
message: smithy_client_1.expectString,
|
|
151
|
+
});
|
|
152
|
+
Object.assign(contents, doc);
|
|
153
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
154
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
155
|
+
...contents,
|
|
156
|
+
});
|
|
157
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
158
|
+
};
|
|
159
|
+
const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
|
|
160
|
+
const contents = (0, smithy_client_1.map)({});
|
|
161
|
+
const data = parsedOutput.body;
|
|
162
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
163
|
+
message: smithy_client_1.expectString,
|
|
164
|
+
});
|
|
165
|
+
Object.assign(contents, doc);
|
|
166
|
+
const exception = new models_0_1.InvalidTokenException({
|
|
167
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
168
|
+
...contents,
|
|
169
|
+
});
|
|
170
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
171
|
+
};
|
|
172
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
173
|
+
const contents = (0, smithy_client_1.map)({});
|
|
174
|
+
const data = parsedOutput.body;
|
|
175
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
176
|
+
message: smithy_client_1.expectString,
|
|
177
|
+
});
|
|
178
|
+
Object.assign(contents, doc);
|
|
179
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
180
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
181
|
+
...contents,
|
|
182
|
+
});
|
|
183
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
184
|
+
};
|
|
185
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
186
|
+
const contents = (0, smithy_client_1.map)({});
|
|
187
|
+
const data = parsedOutput.body;
|
|
188
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
189
|
+
message: smithy_client_1.expectString,
|
|
190
|
+
});
|
|
191
|
+
Object.assign(contents, doc);
|
|
192
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
193
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
194
|
+
...contents,
|
|
195
|
+
});
|
|
196
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
197
|
+
};
|
|
198
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
199
|
+
const contents = (0, smithy_client_1.map)({});
|
|
200
|
+
const data = parsedOutput.body;
|
|
201
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
202
|
+
message: smithy_client_1.expectString,
|
|
203
|
+
});
|
|
204
|
+
Object.assign(contents, doc);
|
|
205
|
+
const exception = new models_0_1.ThrottlingException({
|
|
206
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
207
|
+
...contents,
|
|
208
|
+
});
|
|
209
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
210
|
+
};
|
|
211
|
+
const de_Credentials = (output, context) => {
|
|
212
|
+
return (0, smithy_client_1.take)(output, {
|
|
213
|
+
accessKeyId: smithy_client_1.expectString,
|
|
214
|
+
expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
215
|
+
secretAccessKey: smithy_client_1.expectString,
|
|
216
|
+
sessionToken: smithy_client_1.expectString,
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
const deserializeMetadata = (output) => ({
|
|
220
|
+
httpStatusCode: output.statusCode,
|
|
221
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
222
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
223
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
224
|
+
});
|
|
225
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
226
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
227
|
+
value !== null &&
|
|
228
|
+
value !== "" &&
|
|
229
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
230
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
231
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
232
|
+
if (encoded.length) {
|
|
233
|
+
return JSON.parse(encoded);
|
|
234
|
+
}
|
|
235
|
+
return {};
|
|
236
|
+
});
|
|
237
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
238
|
+
const value = await parseBody(errorBody, context);
|
|
239
|
+
value.message = value.message ?? value.Message;
|
|
240
|
+
return value;
|
|
241
|
+
};
|
|
242
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
243
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
244
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
245
|
+
let cleanValue = rawValue;
|
|
246
|
+
if (typeof cleanValue === "number") {
|
|
247
|
+
cleanValue = cleanValue.toString();
|
|
248
|
+
}
|
|
249
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
250
|
+
cleanValue = cleanValue.split(",")[0];
|
|
251
|
+
}
|
|
252
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
253
|
+
cleanValue = cleanValue.split(":")[0];
|
|
254
|
+
}
|
|
255
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
256
|
+
cleanValue = cleanValue.split("#")[1];
|
|
257
|
+
}
|
|
258
|
+
return cleanValue;
|
|
259
|
+
};
|
|
260
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
261
|
+
if (headerKey !== undefined) {
|
|
262
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
263
|
+
}
|
|
264
|
+
if (data.code !== undefined) {
|
|
265
|
+
return sanitizeErrorCode(data.code);
|
|
266
|
+
}
|
|
267
|
+
if (data["__type"] !== undefined) {
|
|
268
|
+
return sanitizeErrorCode(data["__type"]);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
+
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
12
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
13
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
16
|
+
const getRuntimeConfig = (config) => {
|
|
17
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
19
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
20
|
+
return {
|
|
21
|
+
...clientSharedValues,
|
|
22
|
+
...config,
|
|
23
|
+
runtime: "browser",
|
|
24
|
+
defaultsMode,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const core_1 = require("@aws-sdk/core");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
10
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
11
|
+
const hash_node_1 = require("@smithy/hash-node");
|
|
12
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
14
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
15
|
+
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
16
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
20
|
+
const smithy_client_2 = require("@smithy/smithy-client");
|
|
21
|
+
const getRuntimeConfig = (config) => {
|
|
22
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
23
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
24
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
25
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
27
|
+
return {
|
|
28
|
+
...clientSharedValues,
|
|
29
|
+
...config,
|
|
30
|
+
runtime: "node",
|
|
31
|
+
defaultsMode,
|
|
32
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
33
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
35
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
36
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
37
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
38
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
39
|
+
retryMode: config?.retryMode ??
|
|
40
|
+
(0, node_config_provider_1.loadConfig)({
|
|
41
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
42
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
43
|
+
}),
|
|
44
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
45
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
46
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
6
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
7
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
|
+
const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2023-11-26",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
|
+
serviceId: config?.serviceId ?? "EKS Auth",
|
|
19
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
20
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
21
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const asPartial = (t) => t;
|
|
8
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
+
const extensionConfiguration = {
|
|
10
|
+
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
+
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
+
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
+
};
|
|
14
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
+
return {
|
|
16
|
+
...runtimeConfig,
|
|
17
|
+
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
+
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
+
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { AssumeRoleForPodIdentityCommand, } from "./commands/AssumeRoleForPodIdentityCommand";
|
|
3
|
+
import { EKSAuthClient } from "./EKSAuthClient";
|
|
4
|
+
const commands = {
|
|
5
|
+
AssumeRoleForPodIdentityCommand,
|
|
6
|
+
};
|
|
7
|
+
export class EKSAuth extends EKSAuthClient {
|
|
8
|
+
}
|
|
9
|
+
createAggregatedClient(commands, EKSAuth);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
7
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
|
+
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
|
+
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
10
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
14
|
+
export { __Client };
|
|
15
|
+
export class EKSAuthClient extends __Client {
|
|
16
|
+
constructor(...[configuration]) {
|
|
17
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
18
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
19
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
20
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
21
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
22
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
23
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
24
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
25
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
26
|
+
super(_config_8);
|
|
27
|
+
this.config = _config_8;
|
|
28
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
35
|
+
}
|
|
36
|
+
destroy() {
|
|
37
|
+
super.destroy();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { AssumeRoleForPodIdentityRequestFilterSensitiveLog, AssumeRoleForPodIdentityResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_AssumeRoleForPodIdentityCommand, se_AssumeRoleForPodIdentityCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class AssumeRoleForPodIdentityCommand extends $Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleForPodIdentityCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "EKSAuthClient";
|
|
26
|
+
const commandName = "AssumeRoleForPodIdentityCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: AssumeRoleForPodIdentityRequestFilterSensitiveLog,
|
|
32
|
+
outputFilterSensitiveLog: AssumeRoleForPodIdentityResponseFilterSensitiveLog,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "EKSAuthFrontend",
|
|
35
|
+
operation: "AssumeRoleForPodIdentity",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_AssumeRoleForPodIdentityCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_AssumeRoleForPodIdentityCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AssumeRoleForPodIdentityCommand";
|