@aws-sdk/client-eks 3.433.0 → 3.436.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const s = "required", t = "fn", u = "argv", v = "ref";
5
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsDualStack"] }] }, o = { [t]: "getAttr", [u]: [{ [v]: e }, "name"] }, p = [j], q = [k], r = [{ [v]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ endpoint: { url: "https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: f, [u]: ["aws", o] }], endpoint: { url: "https://fips.eks.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: ["aws-us-gov", o] }], endpoint: { url: "https://eks.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://eks-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [n], type: b, rules: [{ endpoint: { url: "https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://eks.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
+ const u = "required", v = "fn", w = "argv", x = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, q = { [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, r = [l], s = [m], t = [{ [x]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, p], rules: [{ endpoint: { url: "https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: h, [w]: [q, "aws"] }], endpoint: { url: "https://fips.eks.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { conditions: [{ [v]: h, [w]: [q, "aws-us-gov"] }], endpoint: { url: "https://eks.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://eks-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://eks.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
@@ -71,6 +71,7 @@ exports.ErrorCode = {
71
71
  exports.UpdateParamType = {
72
72
  ADDON_VERSION: "AddonVersion",
73
73
  CLUSTER_LOGGING: "ClusterLogging",
74
+ CONFIGURATION_VALUES: "ConfigurationValues",
74
75
  DESIRED_SIZE: "DesiredSize",
75
76
  ENCRYPTION_CONFIG: "EncryptionConfig",
76
77
  ENDPOINT_PRIVATE_ACCESS: "EndpointPrivateAccess",
@@ -88,7 +89,9 @@ exports.UpdateParamType = {
88
89
  PUBLIC_ACCESS_CIDRS: "PublicAccessCidrs",
89
90
  RELEASE_VERSION: "ReleaseVersion",
90
91
  RESOLVE_CONFLICTS: "ResolveConflicts",
92
+ SECURITY_GROUPS: "SecurityGroups",
91
93
  SERVICE_ACCOUNT_ROLE_ARN: "ServiceAccountRoleArn",
94
+ SUBNETS: "Subnets",
92
95
  TAINTS_TO_ADD: "TaintsToAdd",
93
96
  TAINTS_TO_REMOVE: "TaintsToRemove",
94
97
  VERSION: "Version",
@@ -108,6 +111,7 @@ exports.UpdateType = {
108
111
  ENDPOINT_ACCESS_UPDATE: "EndpointAccessUpdate",
109
112
  LOGGING_UPDATE: "LoggingUpdate",
110
113
  VERSION_UPDATE: "VersionUpdate",
114
+ VPC_CONFIG_UPDATE: "VpcConfigUpdate",
111
115
  };
112
116
  class ClientException extends EKSServiceException_1.EKSServiceException {
113
117
  constructor(opts) {
@@ -227,9 +231,22 @@ exports.ClusterIssueCode = {
227
231
  ACCESS_DENIED: "AccessDenied",
228
232
  CLUSTER_UNREACHABLE: "ClusterUnreachable",
229
233
  CONFIGURATION_CONFLICT: "ConfigurationConflict",
234
+ EC2_SECURITY_GROUP_NOT_FOUND: "Ec2SecurityGroupNotFound",
235
+ EC2_SERVICE_NOT_SUBSCRIBED: "Ec2ServiceNotSubscribed",
236
+ EC2_SUBNET_NOT_FOUND: "Ec2SubnetNotFound",
237
+ IAM_ROLE_NOT_FOUND: "IamRoleNotFound",
238
+ INSUFFICIENT_FREE_ADDRESSES: "InsufficientFreeAddresses",
230
239
  INTERNAL_FAILURE: "InternalFailure",
240
+ KMS_GRANT_REVOKED: "KmsGrantRevoked",
241
+ KMS_KEY_DISABLED: "KmsKeyDisabled",
242
+ KMS_KEY_MARKED_FOR_DELETION: "KmsKeyMarkedForDeletion",
243
+ KMS_KEY_NOT_FOUND: "KmsKeyNotFound",
244
+ OTHER: "Other",
231
245
  RESOURCE_LIMIT_EXCEEDED: "ResourceLimitExceeded",
232
246
  RESOURCE_NOT_FOUND: "ResourceNotFound",
247
+ STS_REGIONAL_ENDPOINT_DISABLED: "StsRegionalEndpointDisabled",
248
+ UNSUPPORTED_VERSION: "UnsupportedVersion",
249
+ VPC_NOT_FOUND: "VpcNotFound",
233
250
  };
234
251
  exports.ClusterStatus = {
235
252
  ACTIVE: "ACTIVE",
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const client_sts_1 = require("@aws-sdk/client-sts");
7
+ const core_1 = require("@aws-sdk/core");
7
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
8
9
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
9
10
  const config_resolver_1 = require("@smithy/config-resolver");
@@ -22,6 +23,7 @@ const getRuntimeConfig = (config) => {
22
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
25
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
26
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
25
27
  return {
26
28
  ...clientSharedValues,
27
29
  ...config,
@@ -6,17 +6,19 @@ const url_parser_1 = require("@smithy/url-parser");
6
6
  const util_base64_1 = require("@smithy/util-base64");
7
7
  const util_utf8_1 = require("@smithy/util-utf8");
8
8
  const endpointResolver_1 = require("./endpoint/endpointResolver");
9
- const getRuntimeConfig = (config) => ({
10
- apiVersion: "2017-11-01",
11
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
12
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
13
- disableHostPrefix: config?.disableHostPrefix ?? false,
14
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
- extensions: config?.extensions ?? [],
16
- logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
17
- serviceId: config?.serviceId ?? "EKS",
18
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
19
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
20
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
21
- });
9
+ const getRuntimeConfig = (config) => {
10
+ return {
11
+ apiVersion: "2017-11-01",
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",
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
+ };
22
24
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,4 +1,4 @@
1
- const s = "required", t = "fn", u = "argv", v = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsDualStack"] }] }, o = { [t]: "getAttr", [u]: [{ [v]: e }, "name"] }, p = [j], q = [k], r = [{ [v]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ endpoint: { url: "https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: f, [u]: ["aws", o] }], endpoint: { url: "https://fips.eks.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: ["aws-us-gov", o] }], endpoint: { url: "https://eks.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://eks-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [n], type: b, rules: [{ endpoint: { url: "https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://eks.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
1
+ const u = "required", v = "fn", w = "argv", x = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, q = { [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, r = [l], s = [m], t = [{ [x]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, p], rules: [{ endpoint: { url: "https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: h, [w]: [q, "aws"] }], endpoint: { url: "https://fips.eks.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { conditions: [{ [v]: h, [w]: [q, "aws-us-gov"] }], endpoint: { url: "https://eks.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://eks-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://eks.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
4
  export const ruleSet = _data;
@@ -67,6 +67,7 @@ export const ErrorCode = {
67
67
  export const UpdateParamType = {
68
68
  ADDON_VERSION: "AddonVersion",
69
69
  CLUSTER_LOGGING: "ClusterLogging",
70
+ CONFIGURATION_VALUES: "ConfigurationValues",
70
71
  DESIRED_SIZE: "DesiredSize",
71
72
  ENCRYPTION_CONFIG: "EncryptionConfig",
72
73
  ENDPOINT_PRIVATE_ACCESS: "EndpointPrivateAccess",
@@ -84,7 +85,9 @@ export const UpdateParamType = {
84
85
  PUBLIC_ACCESS_CIDRS: "PublicAccessCidrs",
85
86
  RELEASE_VERSION: "ReleaseVersion",
86
87
  RESOLVE_CONFLICTS: "ResolveConflicts",
88
+ SECURITY_GROUPS: "SecurityGroups",
87
89
  SERVICE_ACCOUNT_ROLE_ARN: "ServiceAccountRoleArn",
90
+ SUBNETS: "Subnets",
88
91
  TAINTS_TO_ADD: "TaintsToAdd",
89
92
  TAINTS_TO_REMOVE: "TaintsToRemove",
90
93
  VERSION: "Version",
@@ -104,6 +107,7 @@ export const UpdateType = {
104
107
  ENDPOINT_ACCESS_UPDATE: "EndpointAccessUpdate",
105
108
  LOGGING_UPDATE: "LoggingUpdate",
106
109
  VERSION_UPDATE: "VersionUpdate",
110
+ VPC_CONFIG_UPDATE: "VpcConfigUpdate",
107
111
  };
108
112
  export class ClientException extends __BaseException {
109
113
  constructor(opts) {
@@ -217,9 +221,22 @@ export const ClusterIssueCode = {
217
221
  ACCESS_DENIED: "AccessDenied",
218
222
  CLUSTER_UNREACHABLE: "ClusterUnreachable",
219
223
  CONFIGURATION_CONFLICT: "ConfigurationConflict",
224
+ EC2_SECURITY_GROUP_NOT_FOUND: "Ec2SecurityGroupNotFound",
225
+ EC2_SERVICE_NOT_SUBSCRIBED: "Ec2ServiceNotSubscribed",
226
+ EC2_SUBNET_NOT_FOUND: "Ec2SubnetNotFound",
227
+ IAM_ROLE_NOT_FOUND: "IamRoleNotFound",
228
+ INSUFFICIENT_FREE_ADDRESSES: "InsufficientFreeAddresses",
220
229
  INTERNAL_FAILURE: "InternalFailure",
230
+ KMS_GRANT_REVOKED: "KmsGrantRevoked",
231
+ KMS_KEY_DISABLED: "KmsKeyDisabled",
232
+ KMS_KEY_MARKED_FOR_DELETION: "KmsKeyMarkedForDeletion",
233
+ KMS_KEY_NOT_FOUND: "KmsKeyNotFound",
234
+ OTHER: "Other",
221
235
  RESOURCE_LIMIT_EXCEEDED: "ResourceLimitExceeded",
222
236
  RESOURCE_NOT_FOUND: "ResourceNotFound",
237
+ STS_REGIONAL_ENDPOINT_DISABLED: "StsRegionalEndpointDisabled",
238
+ UNSUPPORTED_VERSION: "UnsupportedVersion",
239
+ VPC_NOT_FOUND: "VpcNotFound",
223
240
  };
224
241
  export const ClusterStatus = {
225
242
  ACTIVE: "ACTIVE",
@@ -1,5 +1,6 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
5
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
5
6
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
@@ -18,6 +19,7 @@ export const getRuntimeConfig = (config) => {
18
19
  const defaultsMode = resolveDefaultsModeConfig(config);
19
20
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
21
  const clientSharedValues = getSharedRuntimeConfig(config);
22
+ awsCheckVersion(process.version);
21
23
  return {
22
24
  ...clientSharedValues,
23
25
  ...config,
@@ -3,16 +3,18 @@ import { parseUrl } from "@smithy/url-parser";
3
3
  import { fromBase64, toBase64 } from "@smithy/util-base64";
4
4
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
5
5
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
6
- export const getRuntimeConfig = (config) => ({
7
- apiVersion: "2017-11-01",
8
- base64Decoder: config?.base64Decoder ?? fromBase64,
9
- base64Encoder: config?.base64Encoder ?? toBase64,
10
- disableHostPrefix: config?.disableHostPrefix ?? false,
11
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
12
- extensions: config?.extensions ?? [],
13
- logger: config?.logger ?? new NoOpLogger(),
14
- serviceId: config?.serviceId ?? "EKS",
15
- urlParser: config?.urlParser ?? parseUrl,
16
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
17
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
18
- });
6
+ export const getRuntimeConfig = (config) => {
7
+ return {
8
+ apiVersion: "2017-11-01",
9
+ base64Decoder: config?.base64Decoder ?? fromBase64,
10
+ base64Encoder: config?.base64Encoder ?? toBase64,
11
+ disableHostPrefix: config?.disableHostPrefix ?? false,
12
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
13
+ extensions: config?.extensions ?? [],
14
+ logger: config?.logger ?? new NoOpLogger(),
15
+ serviceId: config?.serviceId ?? "EKS",
16
+ urlParser: config?.urlParser ?? parseUrl,
17
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
18
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
19
+ };
20
+ };
@@ -53,10 +53,10 @@ export interface AssociateEncryptionConfigCommandOutput extends AssociateEncrypt
53
53
  * // update: { // Update
54
54
  * // id: "STRING_VALUE",
55
55
  * // status: "InProgress" || "Failed" || "Cancelled" || "Successful",
56
- * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate",
56
+ * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate",
57
57
  * // params: [ // UpdateParams
58
58
  * // { // UpdateParam
59
- * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage",
59
+ * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets",
60
60
  * // value: "STRING_VALUE",
61
61
  * // },
62
62
  * // ],
@@ -62,10 +62,10 @@ export interface AssociateIdentityProviderConfigCommandOutput extends AssociateI
62
62
  * // update: { // Update
63
63
  * // id: "STRING_VALUE",
64
64
  * // status: "InProgress" || "Failed" || "Cancelled" || "Successful",
65
- * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate",
65
+ * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate",
66
66
  * // params: [ // UpdateParams
67
67
  * // { // UpdateParam
68
- * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage",
68
+ * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets",
69
69
  * // value: "STRING_VALUE",
70
70
  * // },
71
71
  * // ],
@@ -180,7 +180,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
180
180
  * // health: { // ClusterHealth
181
181
  * // issues: [ // ClusterIssueList
182
182
  * // { // ClusterIssue
183
- * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound",
183
+ * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound" || "IamRoleNotFound" || "VpcNotFound" || "InsufficientFreeAddresses" || "Ec2ServiceNotSubscribed" || "Ec2SubnetNotFound" || "Ec2SecurityGroupNotFound" || "KmsGrantRevoked" || "KmsKeyNotFound" || "KmsKeyMarkedForDeletion" || "KmsKeyDisabled" || "StsRegionalEndpointDisabled" || "UnsupportedVersion" || "Other",
184
184
  * // message: "STRING_VALUE",
185
185
  * // resourceIds: "<StringList>",
186
186
  * // },
@@ -115,7 +115,7 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __Met
115
115
  * // health: { // ClusterHealth
116
116
  * // issues: [ // ClusterIssueList
117
117
  * // { // ClusterIssue
118
- * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound",
118
+ * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound" || "IamRoleNotFound" || "VpcNotFound" || "InsufficientFreeAddresses" || "Ec2ServiceNotSubscribed" || "Ec2SubnetNotFound" || "Ec2SecurityGroupNotFound" || "KmsGrantRevoked" || "KmsKeyNotFound" || "KmsKeyMarkedForDeletion" || "KmsKeyDisabled" || "StsRegionalEndpointDisabled" || "UnsupportedVersion" || "Other",
119
119
  * // message: "STRING_VALUE",
120
120
  * // resourceIds: "<StringList>",
121
121
  * // },
@@ -109,7 +109,7 @@ export interface DeregisterClusterCommandOutput extends DeregisterClusterRespons
109
109
  * // health: { // ClusterHealth
110
110
  * // issues: [ // ClusterIssueList
111
111
  * // { // ClusterIssue
112
- * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound",
112
+ * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound" || "IamRoleNotFound" || "VpcNotFound" || "InsufficientFreeAddresses" || "Ec2ServiceNotSubscribed" || "Ec2SubnetNotFound" || "Ec2SecurityGroupNotFound" || "KmsGrantRevoked" || "KmsKeyNotFound" || "KmsKeyMarkedForDeletion" || "KmsKeyDisabled" || "StsRegionalEndpointDisabled" || "UnsupportedVersion" || "Other",
113
113
  * // message: "STRING_VALUE",
114
114
  * // resourceIds: "<StringList>",
115
115
  * // },
@@ -116,7 +116,7 @@ export interface DescribeClusterCommandOutput extends DescribeClusterResponse, _
116
116
  * // health: { // ClusterHealth
117
117
  * // issues: [ // ClusterIssueList
118
118
  * // { // ClusterIssue
119
- * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound",
119
+ * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound" || "IamRoleNotFound" || "VpcNotFound" || "InsufficientFreeAddresses" || "Ec2ServiceNotSubscribed" || "Ec2SubnetNotFound" || "Ec2SecurityGroupNotFound" || "KmsGrantRevoked" || "KmsKeyNotFound" || "KmsKeyMarkedForDeletion" || "KmsKeyDisabled" || "StsRegionalEndpointDisabled" || "UnsupportedVersion" || "Other",
120
120
  * // message: "STRING_VALUE",
121
121
  * // resourceIds: "<StringList>",
122
122
  * // },
@@ -46,10 +46,10 @@ export interface DescribeUpdateCommandOutput extends DescribeUpdateResponse, __M
46
46
  * // update: { // Update
47
47
  * // id: "STRING_VALUE",
48
48
  * // status: "InProgress" || "Failed" || "Cancelled" || "Successful",
49
- * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate",
49
+ * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate",
50
50
  * // params: [ // UpdateParams
51
51
  * // { // UpdateParam
52
- * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage",
52
+ * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets",
53
53
  * // value: "STRING_VALUE",
54
54
  * // },
55
55
  * // ],
@@ -47,10 +47,10 @@ export interface DisassociateIdentityProviderConfigCommandOutput extends Disasso
47
47
  * // update: { // Update
48
48
  * // id: "STRING_VALUE",
49
49
  * // status: "InProgress" || "Failed" || "Cancelled" || "Successful",
50
- * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate",
50
+ * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate",
51
51
  * // params: [ // UpdateParams
52
52
  * // { // UpdateParam
53
- * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage",
53
+ * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets",
54
54
  * // value: "STRING_VALUE",
55
55
  * // },
56
56
  * // ],
@@ -128,7 +128,7 @@ export interface RegisterClusterCommandOutput extends RegisterClusterResponse, _
128
128
  * // health: { // ClusterHealth
129
129
  * // issues: [ // ClusterIssueList
130
130
  * // { // ClusterIssue
131
- * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound",
131
+ * // code: "AccessDenied" || "ClusterUnreachable" || "ConfigurationConflict" || "InternalFailure" || "ResourceLimitExceeded" || "ResourceNotFound" || "IamRoleNotFound" || "VpcNotFound" || "InsufficientFreeAddresses" || "Ec2ServiceNotSubscribed" || "Ec2SubnetNotFound" || "Ec2SecurityGroupNotFound" || "KmsGrantRevoked" || "KmsKeyNotFound" || "KmsKeyMarkedForDeletion" || "KmsKeyDisabled" || "StsRegionalEndpointDisabled" || "UnsupportedVersion" || "Other",
132
132
  * // message: "STRING_VALUE",
133
133
  * // resourceIds: "<StringList>",
134
134
  * // },
@@ -45,10 +45,10 @@ export interface UpdateAddonCommandOutput extends UpdateAddonResponse, __Metadat
45
45
  * // update: { // Update
46
46
  * // id: "STRING_VALUE",
47
47
  * // status: "InProgress" || "Failed" || "Cancelled" || "Successful",
48
- * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate",
48
+ * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate",
49
49
  * // params: [ // UpdateParams
50
50
  * // { // UpdateParam
51
- * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage",
51
+ * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets",
52
52
  * // value: "STRING_VALUE",
53
53
  * // },
54
54
  * // ],
@@ -90,10 +90,10 @@ export interface UpdateClusterConfigCommandOutput extends UpdateClusterConfigRes
90
90
  * // update: { // Update
91
91
  * // id: "STRING_VALUE",
92
92
  * // status: "InProgress" || "Failed" || "Cancelled" || "Successful",
93
- * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate",
93
+ * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate",
94
94
  * // params: [ // UpdateParams
95
95
  * // { // UpdateParam
96
- * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage",
96
+ * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets",
97
97
  * // value: "STRING_VALUE",
98
98
  * // },
99
99
  * // ],
@@ -50,10 +50,10 @@ export interface UpdateClusterVersionCommandOutput extends UpdateClusterVersionR
50
50
  * // update: { // Update
51
51
  * // id: "STRING_VALUE",
52
52
  * // status: "InProgress" || "Failed" || "Cancelled" || "Successful",
53
- * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate",
53
+ * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate",
54
54
  * // params: [ // UpdateParams
55
55
  * // { // UpdateParam
56
- * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage",
56
+ * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets",
57
57
  * // value: "STRING_VALUE",
58
58
  * // },
59
59
  * // ],
@@ -77,10 +77,10 @@ export interface UpdateNodegroupConfigCommandOutput extends UpdateNodegroupConfi
77
77
  * // update: { // Update
78
78
  * // id: "STRING_VALUE",
79
79
  * // status: "InProgress" || "Failed" || "Cancelled" || "Successful",
80
- * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate",
80
+ * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate",
81
81
  * // params: [ // UpdateParams
82
82
  * // { // UpdateParam
83
- * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage",
83
+ * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets",
84
84
  * // value: "STRING_VALUE",
85
85
  * // },
86
86
  * // ],
@@ -69,10 +69,10 @@ export interface UpdateNodegroupVersionCommandOutput extends UpdateNodegroupVers
69
69
  * // update: { // Update
70
70
  * // id: "STRING_VALUE",
71
71
  * // status: "InProgress" || "Failed" || "Cancelled" || "Successful",
72
- * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate",
72
+ * // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate",
73
73
  * // params: [ // UpdateParams
74
74
  * // { // UpdateParam
75
- * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage",
75
+ * // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets",
76
76
  * // value: "STRING_VALUE",
77
77
  * // },
78
78
  * // ],
@@ -430,6 +430,7 @@ export interface ErrorDetail {
430
430
  export declare const UpdateParamType: {
431
431
  readonly ADDON_VERSION: "AddonVersion";
432
432
  readonly CLUSTER_LOGGING: "ClusterLogging";
433
+ readonly CONFIGURATION_VALUES: "ConfigurationValues";
433
434
  readonly DESIRED_SIZE: "DesiredSize";
434
435
  readonly ENCRYPTION_CONFIG: "EncryptionConfig";
435
436
  readonly ENDPOINT_PRIVATE_ACCESS: "EndpointPrivateAccess";
@@ -447,7 +448,9 @@ export declare const UpdateParamType: {
447
448
  readonly PUBLIC_ACCESS_CIDRS: "PublicAccessCidrs";
448
449
  readonly RELEASE_VERSION: "ReleaseVersion";
449
450
  readonly RESOLVE_CONFLICTS: "ResolveConflicts";
451
+ readonly SECURITY_GROUPS: "SecurityGroups";
450
452
  readonly SERVICE_ACCOUNT_ROLE_ARN: "ServiceAccountRoleArn";
453
+ readonly SUBNETS: "Subnets";
451
454
  readonly TAINTS_TO_ADD: "TaintsToAdd";
452
455
  readonly TAINTS_TO_REMOVE: "TaintsToRemove";
453
456
  readonly VERSION: "Version";
@@ -499,6 +502,7 @@ export declare const UpdateType: {
499
502
  readonly ENDPOINT_ACCESS_UPDATE: "EndpointAccessUpdate";
500
503
  readonly LOGGING_UPDATE: "LoggingUpdate";
501
504
  readonly VERSION_UPDATE: "VersionUpdate";
505
+ readonly VPC_CONFIG_UPDATE: "VpcConfigUpdate";
502
506
  };
503
507
  /**
504
508
  * @public
@@ -1299,9 +1303,22 @@ export declare const ClusterIssueCode: {
1299
1303
  readonly ACCESS_DENIED: "AccessDenied";
1300
1304
  readonly CLUSTER_UNREACHABLE: "ClusterUnreachable";
1301
1305
  readonly CONFIGURATION_CONFLICT: "ConfigurationConflict";
1306
+ readonly EC2_SECURITY_GROUP_NOT_FOUND: "Ec2SecurityGroupNotFound";
1307
+ readonly EC2_SERVICE_NOT_SUBSCRIBED: "Ec2ServiceNotSubscribed";
1308
+ readonly EC2_SUBNET_NOT_FOUND: "Ec2SubnetNotFound";
1309
+ readonly IAM_ROLE_NOT_FOUND: "IamRoleNotFound";
1310
+ readonly INSUFFICIENT_FREE_ADDRESSES: "InsufficientFreeAddresses";
1302
1311
  readonly INTERNAL_FAILURE: "InternalFailure";
1312
+ readonly KMS_GRANT_REVOKED: "KmsGrantRevoked";
1313
+ readonly KMS_KEY_DISABLED: "KmsKeyDisabled";
1314
+ readonly KMS_KEY_MARKED_FOR_DELETION: "KmsKeyMarkedForDeletion";
1315
+ readonly KMS_KEY_NOT_FOUND: "KmsKeyNotFound";
1316
+ readonly OTHER: "Other";
1303
1317
  readonly RESOURCE_LIMIT_EXCEEDED: "ResourceLimitExceeded";
1304
1318
  readonly RESOURCE_NOT_FOUND: "ResourceNotFound";
1319
+ readonly STS_REGIONAL_ENDPOINT_DISABLED: "StsRegionalEndpointDisabled";
1320
+ readonly UNSUPPORTED_VERSION: "UnsupportedVersion";
1321
+ readonly VPC_NOT_FOUND: "VpcNotFound";
1305
1322
  };
1306
1323
  /**
1307
1324
  * @public
@@ -132,6 +132,7 @@ export interface ErrorDetail {
132
132
  export declare const UpdateParamType: {
133
133
  readonly ADDON_VERSION: "AddonVersion";
134
134
  readonly CLUSTER_LOGGING: "ClusterLogging";
135
+ readonly CONFIGURATION_VALUES: "ConfigurationValues";
135
136
  readonly DESIRED_SIZE: "DesiredSize";
136
137
  readonly ENCRYPTION_CONFIG: "EncryptionConfig";
137
138
  readonly ENDPOINT_PRIVATE_ACCESS: "EndpointPrivateAccess";
@@ -149,7 +150,9 @@ export declare const UpdateParamType: {
149
150
  readonly PUBLIC_ACCESS_CIDRS: "PublicAccessCidrs";
150
151
  readonly RELEASE_VERSION: "ReleaseVersion";
151
152
  readonly RESOLVE_CONFLICTS: "ResolveConflicts";
153
+ readonly SECURITY_GROUPS: "SecurityGroups";
152
154
  readonly SERVICE_ACCOUNT_ROLE_ARN: "ServiceAccountRoleArn";
155
+ readonly SUBNETS: "Subnets";
153
156
  readonly TAINTS_TO_ADD: "TaintsToAdd";
154
157
  readonly TAINTS_TO_REMOVE: "TaintsToRemove";
155
158
  readonly VERSION: "Version";
@@ -176,6 +179,7 @@ export declare const UpdateType: {
176
179
  readonly ENDPOINT_ACCESS_UPDATE: "EndpointAccessUpdate";
177
180
  readonly LOGGING_UPDATE: "LoggingUpdate";
178
181
  readonly VERSION_UPDATE: "VersionUpdate";
182
+ readonly VPC_CONFIG_UPDATE: "VpcConfigUpdate";
179
183
  };
180
184
  export type UpdateType = (typeof UpdateType)[keyof typeof UpdateType];
181
185
  export interface Update {
@@ -355,9 +359,22 @@ export declare const ClusterIssueCode: {
355
359
  readonly ACCESS_DENIED: "AccessDenied";
356
360
  readonly CLUSTER_UNREACHABLE: "ClusterUnreachable";
357
361
  readonly CONFIGURATION_CONFLICT: "ConfigurationConflict";
362
+ readonly EC2_SECURITY_GROUP_NOT_FOUND: "Ec2SecurityGroupNotFound";
363
+ readonly EC2_SERVICE_NOT_SUBSCRIBED: "Ec2ServiceNotSubscribed";
364
+ readonly EC2_SUBNET_NOT_FOUND: "Ec2SubnetNotFound";
365
+ readonly IAM_ROLE_NOT_FOUND: "IamRoleNotFound";
366
+ readonly INSUFFICIENT_FREE_ADDRESSES: "InsufficientFreeAddresses";
358
367
  readonly INTERNAL_FAILURE: "InternalFailure";
368
+ readonly KMS_GRANT_REVOKED: "KmsGrantRevoked";
369
+ readonly KMS_KEY_DISABLED: "KmsKeyDisabled";
370
+ readonly KMS_KEY_MARKED_FOR_DELETION: "KmsKeyMarkedForDeletion";
371
+ readonly KMS_KEY_NOT_FOUND: "KmsKeyNotFound";
372
+ readonly OTHER: "Other";
359
373
  readonly RESOURCE_LIMIT_EXCEEDED: "ResourceLimitExceeded";
360
374
  readonly RESOURCE_NOT_FOUND: "ResourceNotFound";
375
+ readonly STS_REGIONAL_ENDPOINT_DISABLED: "StsRegionalEndpointDisabled";
376
+ readonly UNSUPPORTED_VERSION: "UnsupportedVersion";
377
+ readonly VPC_NOT_FOUND: "VpcNotFound";
361
378
  };
362
379
  export type ClusterIssueCode =
363
380
  (typeof ClusterIssueCode)[keyof typeof ClusterIssueCode];
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.433.0",
4
+ "version": "3.436.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.433.0",
25
- "@aws-sdk/credential-provider-node": "3.433.0",
24
+ "@aws-sdk/client-sts": "3.436.0",
25
+ "@aws-sdk/core": "3.436.0",
26
+ "@aws-sdk/credential-provider-node": "3.436.0",
26
27
  "@aws-sdk/middleware-host-header": "3.433.0",
27
28
  "@aws-sdk/middleware-logger": "3.433.0",
28
29
  "@aws-sdk/middleware-recursion-detection": "3.433.0",