@aws-sdk/client-eks 3.1075.0 → 3.1077.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/README.md +7 -0
- package/dist-cjs/index.js +3087 -15
- package/dist-es/EKS.js +2 -0
- package/dist-es/commands/CancelUpdateCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +7 -0
- package/dist-es/models/errors.js +14 -14
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +45 -14
- package/dist-types/EKS.d.ts +7 -0
- package/dist-types/EKSClient.d.ts +3 -2
- package/dist-types/commands/AssociateEncryptionConfigCommand.d.ts +5 -1
- package/dist-types/commands/AssociateIdentityProviderConfigCommand.d.ts +5 -1
- package/dist-types/commands/CancelUpdateCommand.d.ts +146 -0
- package/dist-types/commands/DescribeInsightCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUpdateCommand.d.ts +5 -1
- package/dist-types/commands/DisassociateIdentityProviderConfigCommand.d.ts +5 -1
- package/dist-types/commands/ListInsightsCommand.d.ts +2 -2
- package/dist-types/commands/UpdateAddonCommand.d.ts +5 -1
- package/dist-types/commands/UpdateCapabilityCommand.d.ts +5 -1
- package/dist-types/commands/UpdateClusterConfigCommand.d.ts +5 -1
- package/dist-types/commands/UpdateClusterVersionCommand.d.ts +8 -1
- package/dist-types/commands/UpdateNodegroupConfigCommand.d.ts +5 -1
- package/dist-types/commands/UpdateNodegroupVersionCommand.d.ts +5 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +15 -0
- package/dist-types/models/errors.d.ts +23 -23
- package/dist-types/models/models_0.d.ts +76 -2
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +5 -0
- package/dist-types/ts3.4/EKS.d.ts +17 -0
- package/dist-types/ts3.4/EKSClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/CancelUpdateCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +9 -0
- package/dist-types/ts3.4/models/errors.d.ts +8 -8
- package/dist-types/ts3.4/models/models_0.d.ts +18 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
- package/package.json +8 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -52
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/EKSServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -247
- 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 -2523
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
EKSClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../EKSClient";
|
|
8
|
+
import { CancelUpdateRequest, CancelUpdateResponse } from "../models/models_0";
|
|
9
|
+
export { __MetadataBearer };
|
|
10
|
+
export { $Command };
|
|
11
|
+
export interface CancelUpdateCommandInput extends CancelUpdateRequest {}
|
|
12
|
+
export interface CancelUpdateCommandOutput
|
|
13
|
+
extends CancelUpdateResponse,
|
|
14
|
+
__MetadataBearer {}
|
|
15
|
+
declare const CancelUpdateCommand_base: {
|
|
16
|
+
new (
|
|
17
|
+
input: CancelUpdateCommandInput
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
|
+
CancelUpdateCommandInput,
|
|
20
|
+
CancelUpdateCommandOutput,
|
|
21
|
+
EKSClientResolvedConfig,
|
|
22
|
+
ServiceInputTypes,
|
|
23
|
+
ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
new (
|
|
26
|
+
input: CancelUpdateCommandInput
|
|
27
|
+
): import("@smithy/core/client").CommandImpl<
|
|
28
|
+
CancelUpdateCommandInput,
|
|
29
|
+
CancelUpdateCommandOutput,
|
|
30
|
+
EKSClientResolvedConfig,
|
|
31
|
+
ServiceInputTypes,
|
|
32
|
+
ServiceOutputTypes
|
|
33
|
+
>;
|
|
34
|
+
getEndpointParameterInstructions(): {
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare class CancelUpdateCommand extends CancelUpdateCommand_base {
|
|
39
|
+
protected static __types: {
|
|
40
|
+
api: {
|
|
41
|
+
input: CancelUpdateRequest;
|
|
42
|
+
output: CancelUpdateResponse;
|
|
43
|
+
};
|
|
44
|
+
sdk: {
|
|
45
|
+
input: CancelUpdateCommandInput;
|
|
46
|
+
output: CancelUpdateCommandOutput;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AssociateAccessPolicyCommand";
|
|
2
2
|
export * from "./AssociateEncryptionConfigCommand";
|
|
3
3
|
export * from "./AssociateIdentityProviderConfigCommand";
|
|
4
|
+
export * from "./CancelUpdateCommand";
|
|
4
5
|
export * from "./CreateAccessEntryCommand";
|
|
5
6
|
export * from "./CreateAddonCommand";
|
|
6
7
|
export * from "./CreateCapabilityCommand";
|
|
@@ -74,6 +74,13 @@ export declare const ArgoCdRole: {
|
|
|
74
74
|
readonly VIEWER: "VIEWER";
|
|
75
75
|
};
|
|
76
76
|
export type ArgoCdRole = (typeof ArgoCdRole)[keyof typeof ArgoCdRole];
|
|
77
|
+
export declare const CancellationStatus: {
|
|
78
|
+
readonly FAILED: "Failed";
|
|
79
|
+
readonly IN_PROGRESS: "InProgress";
|
|
80
|
+
readonly SUCCESSFUL: "Successful";
|
|
81
|
+
};
|
|
82
|
+
export type CancellationStatus =
|
|
83
|
+
(typeof CancellationStatus)[keyof typeof CancellationStatus];
|
|
77
84
|
export declare const ErrorCode: {
|
|
78
85
|
readonly ACCESS_DENIED: "AccessDenied";
|
|
79
86
|
readonly ADMISSION_REQUEST_DENIED: "AdmissionRequestDenied";
|
|
@@ -173,6 +180,7 @@ export declare const UpdateType: {
|
|
|
173
180
|
readonly REMOTE_NETWORK_CONFIG_UPDATE: "RemoteNetworkConfigUpdate";
|
|
174
181
|
readonly UPGRADE_POLICY_UPDATE: "UpgradePolicyUpdate";
|
|
175
182
|
readonly VENDED_LOGS_UPDATE: "VendedLogsUpdate";
|
|
183
|
+
readonly VERSION_ROLLBACK: "VersionRollback";
|
|
176
184
|
readonly VERSION_UPDATE: "VersionUpdate";
|
|
177
185
|
readonly VPC_CONFIG_UPDATE: "VpcConfigUpdate";
|
|
178
186
|
readonly ZONAL_SHIFT_CONFIG_UPDATE: "ZonalShiftConfigUpdate";
|
|
@@ -414,6 +422,7 @@ export declare const ConfigStatus: {
|
|
|
414
422
|
export type ConfigStatus = (typeof ConfigStatus)[keyof typeof ConfigStatus];
|
|
415
423
|
export declare const Category: {
|
|
416
424
|
readonly MISCONFIGURATION: "MISCONFIGURATION";
|
|
425
|
+
readonly ROLLBACK_READINESS: "ROLLBACK_READINESS";
|
|
417
426
|
readonly UPGRADE_READINESS: "UPGRADE_READINESS";
|
|
418
427
|
};
|
|
419
428
|
export type Category = (typeof Category)[keyof typeof Category];
|
|
@@ -78,6 +78,14 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
78
78
|
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
|
+
export declare class InvalidStateException extends __BaseException {
|
|
82
|
+
readonly name: "InvalidStateException";
|
|
83
|
+
readonly $fault: "client";
|
|
84
|
+
clusterName?: string | undefined;
|
|
85
|
+
constructor(
|
|
86
|
+
opts: __ExceptionOptionType<InvalidStateException, __BaseException>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
81
89
|
export declare class ResourceLimitExceededException extends __BaseException {
|
|
82
90
|
readonly name: "ResourceLimitExceededException";
|
|
83
91
|
readonly $fault: "client";
|
|
@@ -130,11 +138,3 @@ export declare class ResourcePropagationDelayException extends __BaseException {
|
|
|
130
138
|
>
|
|
131
139
|
);
|
|
132
140
|
}
|
|
133
|
-
export declare class InvalidStateException extends __BaseException {
|
|
134
|
-
readonly name: "InvalidStateException";
|
|
135
|
-
readonly $fault: "client";
|
|
136
|
-
clusterName?: string | undefined;
|
|
137
|
-
constructor(
|
|
138
|
-
opts: __ExceptionOptionType<InvalidStateException, __BaseException>
|
|
139
|
-
);
|
|
140
|
-
}
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
AMITypes,
|
|
6
6
|
ArgoCdRole,
|
|
7
7
|
AuthenticationMode,
|
|
8
|
+
CancellationStatus,
|
|
8
9
|
CapabilityDeletePropagationPolicy,
|
|
9
10
|
CapabilityIssueCode,
|
|
10
11
|
CapabilityStatus,
|
|
@@ -201,6 +202,10 @@ export interface AssociateEncryptionConfigRequest {
|
|
|
201
202
|
encryptionConfig: EncryptionConfig[] | undefined;
|
|
202
203
|
clientRequestToken?: string | undefined;
|
|
203
204
|
}
|
|
205
|
+
export interface Cancellation {
|
|
206
|
+
status?: CancellationStatus | undefined;
|
|
207
|
+
reason?: string | undefined;
|
|
208
|
+
}
|
|
204
209
|
export interface ErrorDetail {
|
|
205
210
|
errorCode?: ErrorCode | undefined;
|
|
206
211
|
errorMessage?: string | undefined;
|
|
@@ -217,6 +222,7 @@ export interface Update {
|
|
|
217
222
|
params?: UpdateParam[] | undefined;
|
|
218
223
|
createdAt?: Date | undefined;
|
|
219
224
|
errors?: ErrorDetail[] | undefined;
|
|
225
|
+
cancellation?: Cancellation | undefined;
|
|
220
226
|
}
|
|
221
227
|
export interface AssociateEncryptionConfigResponse {
|
|
222
228
|
update?: Update | undefined;
|
|
@@ -244,6 +250,14 @@ export interface AssociateIdentityProviderConfigResponse {
|
|
|
244
250
|
export interface AutoScalingGroup {
|
|
245
251
|
name?: string | undefined;
|
|
246
252
|
}
|
|
253
|
+
export interface CancelUpdateRequest {
|
|
254
|
+
name: string | undefined;
|
|
255
|
+
updateId: string | undefined;
|
|
256
|
+
clientRequestToken?: string | undefined;
|
|
257
|
+
}
|
|
258
|
+
export interface CancelUpdateResponse {
|
|
259
|
+
update?: Update | undefined;
|
|
260
|
+
}
|
|
247
261
|
export interface CreateAccessEntryRequest {
|
|
248
262
|
clusterName: string | undefined;
|
|
249
263
|
principalArn: string | undefined;
|
|
@@ -1248,11 +1262,15 @@ export interface UpdateClusterConfigRequest {
|
|
|
1248
1262
|
export interface UpdateClusterConfigResponse {
|
|
1249
1263
|
update?: Update | undefined;
|
|
1250
1264
|
}
|
|
1265
|
+
export interface RollbackConfig {
|
|
1266
|
+
timeoutMinutes?: number | undefined;
|
|
1267
|
+
}
|
|
1251
1268
|
export interface UpdateClusterVersionRequest {
|
|
1252
1269
|
name: string | undefined;
|
|
1253
1270
|
version: string | undefined;
|
|
1254
1271
|
clientRequestToken?: string | undefined;
|
|
1255
1272
|
force?: boolean | undefined;
|
|
1273
|
+
rollbackConfig?: RollbackConfig | undefined;
|
|
1256
1274
|
}
|
|
1257
1275
|
export interface UpdateClusterVersionResponse {
|
|
1258
1276
|
update?: Update | undefined;
|
|
@@ -20,8 +20,13 @@ export declare const getRuntimeConfig: (config: EKSClientConfig) => {
|
|
|
20
20
|
| import("@smithy/core/protocols").HttpHandler<any>
|
|
21
21
|
| RequestHandler;
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
streamCollector: (
|
|
24
|
+
stream:
|
|
25
|
+
| import("stream").Readable
|
|
26
|
+
| import("stream/web").ReadableStream
|
|
27
|
+
| ReadableStream
|
|
28
|
+
| Blob
|
|
29
|
+
) => Promise<Uint8Array>;
|
|
25
30
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
31
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
32
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -36,6 +41,7 @@ export declare const getRuntimeConfig: (config: EKSClientConfig) => {
|
|
|
36
41
|
[setting: string]: unknown;
|
|
37
42
|
};
|
|
38
43
|
apiVersion: string;
|
|
44
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
39
45
|
urlParser: import("@smithy/types").UrlParser;
|
|
40
46
|
base64Decoder: import("@smithy/types").Decoder;
|
|
41
47
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -21,8 +21,13 @@ export declare const getRuntimeConfig: (config: EKSClientConfig) => {
|
|
|
21
21
|
| RequestHandler
|
|
22
22
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
23
23
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
streamCollector: (
|
|
25
|
+
stream:
|
|
26
|
+
| import("stream").Readable
|
|
27
|
+
| import("stream/web").ReadableStream
|
|
28
|
+
| ReadableStream
|
|
29
|
+
| Blob
|
|
30
|
+
) => Promise<Uint8Array>;
|
|
26
31
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
27
32
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
28
33
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -36,6 +41,7 @@ export declare const getRuntimeConfig: (config: EKSClientConfig) => {
|
|
|
36
41
|
[setting: string]: unknown;
|
|
37
42
|
};
|
|
38
43
|
apiVersion: string;
|
|
44
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
39
45
|
urlParser: import("@smithy/types").UrlParser;
|
|
40
46
|
base64Decoder: import("@smithy/types").Decoder;
|
|
41
47
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EKSClientConfig } from "./EKSClient";
|
|
2
2
|
export declare const getRuntimeConfig: (config: EKSClientConfig) => {
|
|
3
3
|
runtime: string;
|
|
4
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
5
4
|
requestHandler:
|
|
6
5
|
| import("@smithy/types").NodeHttpHandlerOptions
|
|
7
6
|
| import("@smithy/types").FetchHttpHandlerOptions
|
|
@@ -18,9 +17,16 @@ export declare const getRuntimeConfig: (config: EKSClientConfig) => {
|
|
|
18
17
|
[setting: string]: unknown;
|
|
19
18
|
};
|
|
20
19
|
apiVersion: string;
|
|
20
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
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;
|
|
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: EKSClientConfig) => {
|
|
|
24
24
|
defaultNamespace?: string;
|
|
25
25
|
};
|
|
26
26
|
serviceId: string;
|
|
27
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
27
28
|
urlParser: import("@smithy/types").UrlParser;
|
|
28
29
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
29
30
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
@@ -51,6 +51,9 @@ export declare var AssociateIdentityProviderConfigRequest$: StaticStructureSchem
|
|
|
51
51
|
export declare var AssociateIdentityProviderConfigResponse$: StaticStructureSchema;
|
|
52
52
|
export declare var AutoScalingGroup$: StaticStructureSchema;
|
|
53
53
|
export declare var BlockStorage$: StaticStructureSchema;
|
|
54
|
+
export declare var Cancellation$: StaticStructureSchema;
|
|
55
|
+
export declare var CancelUpdateRequest$: StaticStructureSchema;
|
|
56
|
+
export declare var CancelUpdateResponse$: StaticStructureSchema;
|
|
54
57
|
export declare var Capability$: StaticStructureSchema;
|
|
55
58
|
export declare var CapabilityConfigurationRequest$: StaticStructureSchema;
|
|
56
59
|
export declare var CapabilityConfigurationResponse$: StaticStructureSchema;
|
|
@@ -219,6 +222,7 @@ export declare var RemoteNetworkConfigRequest$: StaticStructureSchema;
|
|
|
219
222
|
export declare var RemoteNetworkConfigResponse$: StaticStructureSchema;
|
|
220
223
|
export declare var RemoteNodeNetwork$: StaticStructureSchema;
|
|
221
224
|
export declare var RemotePodNetwork$: StaticStructureSchema;
|
|
225
|
+
export declare var RollbackConfig$: StaticStructureSchema;
|
|
222
226
|
export declare var SsoIdentity$: StaticStructureSchema;
|
|
223
227
|
export declare var StartInsightsRefreshRequest$: StaticStructureSchema;
|
|
224
228
|
export declare var StartInsightsRefreshResponse$: StaticStructureSchema;
|
|
@@ -265,6 +269,7 @@ export declare var ZonalShiftConfigResponse$: StaticStructureSchema;
|
|
|
265
269
|
export declare var AssociateAccessPolicy$: StaticOperationSchema;
|
|
266
270
|
export declare var AssociateEncryptionConfig$: StaticOperationSchema;
|
|
267
271
|
export declare var AssociateIdentityProviderConfig$: StaticOperationSchema;
|
|
272
|
+
export declare var CancelUpdate$: StaticOperationSchema;
|
|
268
273
|
export declare var CreateAccessEntry$: StaticOperationSchema;
|
|
269
274
|
export declare var CreateAddon$: StaticOperationSchema;
|
|
270
275
|
export declare var CreateCapability$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-eks",
|
|
3
3
|
"description": "AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1077.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",
|
|
@@ -19,15 +19,13 @@
|
|
|
19
19
|
"module": "./dist-es/index.js",
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-
|
|
23
|
-
"@aws-
|
|
24
|
-
"@aws-sdk/
|
|
25
|
-
"@
|
|
26
|
-
"@
|
|
27
|
-
"@smithy/
|
|
28
|
-
"@smithy/
|
|
29
|
-
"@smithy/node-http-handler": "^4.7.6",
|
|
30
|
-
"@smithy/types": "^4.14.3",
|
|
22
|
+
"@aws-sdk/core": "^3.974.25",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "^3.972.60",
|
|
24
|
+
"@aws-sdk/types": "^3.973.14",
|
|
25
|
+
"@smithy/core": "^3.28.0",
|
|
26
|
+
"@smithy/fetch-http-handler": "^5.6.1",
|
|
27
|
+
"@smithy/node-http-handler": "^4.9.1",
|
|
28
|
+
"@smithy/types": "^4.15.0",
|
|
31
29
|
"tslib": "^2.6.2"
|
|
32
30
|
},
|
|
33
31
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultEKSHttpAuthSchemeParametersProvider = 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",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultEKSHttpAuthSchemeProvider = (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,52 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const m = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [h]],
|
|
7
|
-
[c, l],
|
|
8
|
-
["aws.partition", l, d],
|
|
9
|
-
[e, [{ [m]: "UseFIPS" }, b]],
|
|
10
|
-
[e, [{ [m]: "UseDualStack" }, b]],
|
|
11
|
-
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
12
|
-
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
13
|
-
[g, [j, "aws"]],
|
|
14
|
-
[g, [j, "aws-us-gov"]]
|
|
15
|
-
],
|
|
16
|
-
results: [
|
|
17
|
-
[a],
|
|
18
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
19
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
20
|
-
[h, k],
|
|
21
|
-
["https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
22
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
23
|
-
["https://fips.eks.{Region}.amazonaws.com", k],
|
|
24
|
-
["https://eks.{Region}.amazonaws.com", k],
|
|
25
|
-
["https://eks-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
26
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
27
|
-
["https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
28
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
29
|
-
["https://eks.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
30
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
31
|
-
]
|
|
32
|
-
};
|
|
33
|
-
const root = 2;
|
|
34
|
-
const r = 100_000_000;
|
|
35
|
-
const nodes = new Int32Array([
|
|
36
|
-
-1, 1, -1,
|
|
37
|
-
0, 14, 3,
|
|
38
|
-
1, 4, r + 13,
|
|
39
|
-
2, 5, r + 13,
|
|
40
|
-
3, 8, 6,
|
|
41
|
-
4, 7, r + 12,
|
|
42
|
-
5, r + 10, r + 11,
|
|
43
|
-
4, 12, 9,
|
|
44
|
-
6, 10, r + 9,
|
|
45
|
-
7, r + 6, 11,
|
|
46
|
-
8, r + 7, r + 8,
|
|
47
|
-
5, 13, r + 5,
|
|
48
|
-
6, r + 4, r + 5,
|
|
49
|
-
3, r + 1, 15,
|
|
50
|
-
4, r + 2, r + 3,
|
|
51
|
-
]);
|
|
52
|
-
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", "UseDualStack", "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.EKSServiceException = class EKSServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, EKSServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|