@aws-sdk/client-eks 3.774.0 → 3.777.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.
Files changed (68) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  2. package/dist-cjs/index.js +107 -19
  3. package/dist-es/EKSClient.js +2 -1
  4. package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  5. package/dist-es/endpoint/EndpointParameters.js +2 -3
  6. package/dist-es/models/models_0.js +30 -0
  7. package/dist-es/protocols/Aws_restJson1.js +36 -1
  8. package/dist-es/runtimeExtensions.js +2 -14
  9. package/dist-types/commands/AssociateAccessPolicyCommand.d.ts +1 -0
  10. package/dist-types/commands/AssociateEncryptionConfigCommand.d.ts +5 -0
  11. package/dist-types/commands/AssociateIdentityProviderConfigCommand.d.ts +5 -0
  12. package/dist-types/commands/CreateAccessEntryCommand.d.ts +1 -0
  13. package/dist-types/commands/CreateAddonCommand.d.ts +1 -0
  14. package/dist-types/commands/CreateClusterCommand.d.ts +13 -10
  15. package/dist-types/commands/CreateEksAnywhereSubscriptionCommand.d.ts +1 -0
  16. package/dist-types/commands/CreateFargateProfileCommand.d.ts +1 -0
  17. package/dist-types/commands/CreateNodegroupCommand.d.ts +3 -2
  18. package/dist-types/commands/CreatePodIdentityAssociationCommand.d.ts +1 -0
  19. package/dist-types/commands/DeleteAccessEntryCommand.d.ts +1 -0
  20. package/dist-types/commands/DeleteAddonCommand.d.ts +1 -0
  21. package/dist-types/commands/DeleteClusterCommand.d.ts +7 -4
  22. package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +1 -0
  23. package/dist-types/commands/DeleteFargateProfileCommand.d.ts +1 -0
  24. package/dist-types/commands/DeleteNodegroupCommand.d.ts +2 -1
  25. package/dist-types/commands/DeletePodIdentityAssociationCommand.d.ts +1 -0
  26. package/dist-types/commands/DeregisterClusterCommand.d.ts +1 -0
  27. package/dist-types/commands/DescribeAccessEntryCommand.d.ts +1 -0
  28. package/dist-types/commands/DescribeAddonCommand.d.ts +1 -0
  29. package/dist-types/commands/DescribeAddonConfigurationCommand.d.ts +1 -0
  30. package/dist-types/commands/DescribeAddonVersionsCommand.d.ts +1 -0
  31. package/dist-types/commands/DescribeClusterCommand.d.ts +18 -18
  32. package/dist-types/commands/DescribeClusterVersionsCommand.d.ts +1 -0
  33. package/dist-types/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +1 -0
  34. package/dist-types/commands/DescribeFargateProfileCommand.d.ts +1 -0
  35. package/dist-types/commands/DescribeIdentityProviderConfigCommand.d.ts +1 -0
  36. package/dist-types/commands/DescribeInsightCommand.d.ts +1 -0
  37. package/dist-types/commands/DescribeNodegroupCommand.d.ts +2 -1
  38. package/dist-types/commands/DescribePodIdentityAssociationCommand.d.ts +1 -0
  39. package/dist-types/commands/DescribeUpdateCommand.d.ts +1 -0
  40. package/dist-types/commands/DisassociateAccessPolicyCommand.d.ts +1 -0
  41. package/dist-types/commands/DisassociateIdentityProviderConfigCommand.d.ts +5 -0
  42. package/dist-types/commands/ListAccessEntriesCommand.d.ts +1 -0
  43. package/dist-types/commands/ListAccessPoliciesCommand.d.ts +1 -0
  44. package/dist-types/commands/ListAddonsCommand.d.ts +1 -0
  45. package/dist-types/commands/ListAssociatedAccessPoliciesCommand.d.ts +1 -0
  46. package/dist-types/commands/ListClustersCommand.d.ts +5 -5
  47. package/dist-types/commands/ListEksAnywhereSubscriptionsCommand.d.ts +1 -0
  48. package/dist-types/commands/ListFargateProfilesCommand.d.ts +1 -0
  49. package/dist-types/commands/ListIdentityProviderConfigsCommand.d.ts +1 -0
  50. package/dist-types/commands/ListInsightsCommand.d.ts +1 -0
  51. package/dist-types/commands/ListNodegroupsCommand.d.ts +1 -0
  52. package/dist-types/commands/ListPodIdentityAssociationsCommand.d.ts +1 -0
  53. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -6
  54. package/dist-types/commands/ListUpdatesCommand.d.ts +1 -0
  55. package/dist-types/commands/RegisterClusterCommand.d.ts +1 -0
  56. package/dist-types/commands/TagResourceCommand.d.ts +1 -0
  57. package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
  58. package/dist-types/commands/UpdateAccessEntryCommand.d.ts +1 -0
  59. package/dist-types/commands/UpdateAddonCommand.d.ts +1 -0
  60. package/dist-types/commands/UpdateClusterConfigCommand.d.ts +5 -0
  61. package/dist-types/commands/UpdateClusterVersionCommand.d.ts +15 -0
  62. package/dist-types/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +1 -0
  63. package/dist-types/commands/UpdateNodegroupConfigCommand.d.ts +1 -0
  64. package/dist-types/commands/UpdateNodegroupVersionCommand.d.ts +1 -0
  65. package/dist-types/commands/UpdatePodIdentityAssociationCommand.d.ts +1 -0
  66. package/dist-types/models/models_0.d.ts +50 -1
  67. package/dist-types/ts3.4/models/models_0.d.ts +19 -0
  68. package/package.json +34 -34
@@ -40,8 +40,6 @@ const defaultEKSHttpAuthSchemeProvider = (authParameters) => {
40
40
  exports.defaultEKSHttpAuthSchemeProvider = defaultEKSHttpAuthSchemeProvider;
41
41
  const resolveHttpAuthSchemeConfig = (config) => {
42
42
  const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
43
- return {
44
- ...config_0,
45
- };
43
+ return Object.assign(config_0, {});
46
44
  };
47
45
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
package/dist-cjs/index.js CHANGED
@@ -81,6 +81,7 @@ __export(index_exports, {
81
81
  InsightStatusValue: () => InsightStatusValue,
82
82
  InvalidParameterException: () => InvalidParameterException,
83
83
  InvalidRequestException: () => InvalidRequestException,
84
+ InvalidStateException: () => InvalidStateException,
84
85
  IpFamily: () => IpFamily,
85
86
  ListAccessEntriesCommand: () => ListAccessEntriesCommand,
86
87
  ListAccessPoliciesCommand: () => ListAccessPoliciesCommand,
@@ -111,6 +112,7 @@ __export(index_exports, {
111
112
  SupportType: () => SupportType,
112
113
  TagResourceCommand: () => TagResourceCommand,
113
114
  TaintEffect: () => TaintEffect,
115
+ ThrottlingException: () => ThrottlingException,
114
116
  UnsupportedAvailabilityZoneException: () => UnsupportedAvailabilityZoneException,
115
117
  UntagResourceCommand: () => UntagResourceCommand,
116
118
  UpdateAccessEntryCommand: () => UpdateAccessEntryCommand,
@@ -174,12 +176,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
174
176
 
175
177
  // src/endpoint/EndpointParameters.ts
176
178
  var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
177
- return {
178
- ...options,
179
+ return Object.assign(options, {
179
180
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
180
181
  useFipsEndpoint: options.useFipsEndpoint ?? false,
181
182
  defaultSigningName: "eks"
182
- };
183
+ });
183
184
  }, "resolveClientEndpointParameters");
184
185
  var commonParams = {
185
186
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -236,22 +237,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
236
237
  }, "resolveHttpAuthRuntimeConfig");
237
238
 
238
239
  // src/runtimeExtensions.ts
239
- var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
240
240
  var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
241
- const extensionConfiguration = {
242
- ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
243
- ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
244
- ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
245
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
246
- };
241
+ const extensionConfiguration = Object.assign(
242
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
243
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
244
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
245
+ getHttpAuthExtensionConfiguration(runtimeConfig)
246
+ );
247
247
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
248
- return {
249
- ...runtimeConfig,
250
- ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
251
- ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
252
- ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
253
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
254
- };
248
+ return Object.assign(
249
+ runtimeConfig,
250
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
251
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
252
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
253
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
254
+ );
255
255
  }, "resolveRuntimeExtensions");
256
256
 
257
257
  // src/EKSClient.ts
@@ -265,6 +265,8 @@ var EKSClient = class extends import_smithy_client.Client {
265
265
  config;
266
266
  constructor(...[configuration]) {
267
267
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
268
+ super(_config_0);
269
+ this.initConfig = _config_0;
268
270
  const _config_1 = resolveClientEndpointParameters(_config_0);
269
271
  const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
270
272
  const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
@@ -273,7 +275,6 @@ var EKSClient = class extends import_smithy_client.Client {
273
275
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
274
276
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
275
277
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
276
- super(_config_8);
277
278
  this.config = _config_8;
278
279
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
279
280
  this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
@@ -389,8 +390,10 @@ var AMITypes = {
389
390
  AL2_x86_64: "AL2_x86_64",
390
391
  AL2_x86_64_GPU: "AL2_x86_64_GPU",
391
392
  BOTTLEROCKET_ARM_64: "BOTTLEROCKET_ARM_64",
393
+ BOTTLEROCKET_ARM_64_FIPS: "BOTTLEROCKET_ARM_64_FIPS",
392
394
  BOTTLEROCKET_ARM_64_NVIDIA: "BOTTLEROCKET_ARM_64_NVIDIA",
393
395
  BOTTLEROCKET_x86_64: "BOTTLEROCKET_x86_64",
396
+ BOTTLEROCKET_x86_64_FIPS: "BOTTLEROCKET_x86_64_FIPS",
394
397
  BOTTLEROCKET_x86_64_NVIDIA: "BOTTLEROCKET_x86_64_NVIDIA",
395
398
  CUSTOM: "CUSTOM",
396
399
  WINDOWS_CORE_2019_x86_64: "WINDOWS_CORE_2019_x86_64",
@@ -735,6 +738,30 @@ var ResourceInUseException = class _ResourceInUseException extends EKSServiceExc
735
738
  this.addonName = opts.addonName;
736
739
  }
737
740
  };
741
+ var ThrottlingException = class _ThrottlingException extends EKSServiceException {
742
+ static {
743
+ __name(this, "ThrottlingException");
744
+ }
745
+ name = "ThrottlingException";
746
+ $fault = "client";
747
+ /**
748
+ * <p>The Amazon EKS cluster associated with the exception.</p>
749
+ * @public
750
+ */
751
+ clusterName;
752
+ /**
753
+ * @internal
754
+ */
755
+ constructor(opts) {
756
+ super({
757
+ name: "ThrottlingException",
758
+ $fault: "client",
759
+ ...opts
760
+ });
761
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
762
+ this.clusterName = opts.clusterName;
763
+ }
764
+ };
738
765
  var ResourceLimitExceededException = class _ResourceLimitExceededException extends EKSServiceException {
739
766
  static {
740
767
  __name(this, "ResourceLimitExceededException");
@@ -1052,6 +1079,30 @@ var ResourcePropagationDelayException = class _ResourcePropagationDelayException
1052
1079
  Object.setPrototypeOf(this, _ResourcePropagationDelayException.prototype);
1053
1080
  }
1054
1081
  };
1082
+ var InvalidStateException = class _InvalidStateException extends EKSServiceException {
1083
+ static {
1084
+ __name(this, "InvalidStateException");
1085
+ }
1086
+ name = "InvalidStateException";
1087
+ $fault = "client";
1088
+ /**
1089
+ * <p>The Amazon EKS cluster associated with the exception.</p>
1090
+ * @public
1091
+ */
1092
+ clusterName;
1093
+ /**
1094
+ * @internal
1095
+ */
1096
+ constructor(opts) {
1097
+ super({
1098
+ name: "InvalidStateException",
1099
+ $fault: "client",
1100
+ ...opts
1101
+ });
1102
+ Object.setPrototypeOf(this, _InvalidStateException.prototype);
1103
+ this.clusterName = opts.clusterName;
1104
+ }
1105
+ };
1055
1106
 
1056
1107
  // src/protocols/Aws_restJson1.ts
1057
1108
  var se_AssociateAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -1837,6 +1888,7 @@ var se_UpdateClusterVersionCommand = /* @__PURE__ */ __name(async (input, contex
1837
1888
  body = JSON.stringify(
1838
1889
  (0, import_smithy_client.take)(input, {
1839
1890
  clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1891
+ force: [],
1840
1892
  version: []
1841
1893
  })
1842
1894
  );
@@ -2750,6 +2802,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2750
2802
  case "ResourceInUseException":
2751
2803
  case "com.amazonaws.eks#ResourceInUseException":
2752
2804
  throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2805
+ case "ThrottlingException":
2806
+ case "com.amazonaws.eks#ThrottlingException":
2807
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2753
2808
  case "ResourceLimitExceededException":
2754
2809
  case "com.amazonaws.eks#ResourceLimitExceededException":
2755
2810
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
@@ -2771,6 +2826,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2771
2826
  case "ResourcePropagationDelayException":
2772
2827
  case "com.amazonaws.eks#ResourcePropagationDelayException":
2773
2828
  throw await de_ResourcePropagationDelayExceptionRes(parsedOutput, context);
2829
+ case "InvalidStateException":
2830
+ case "com.amazonaws.eks#InvalidStateException":
2831
+ throw await de_InvalidStateExceptionRes(parsedOutput, context);
2774
2832
  default:
2775
2833
  const parsedBody = parsedOutput.body;
2776
2834
  return throwDefaultError({
@@ -2859,6 +2917,20 @@ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
2859
2917
  });
2860
2918
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2861
2919
  }, "de_InvalidRequestExceptionRes");
2920
+ var de_InvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2921
+ const contents = (0, import_smithy_client.map)({});
2922
+ const data = parsedOutput.body;
2923
+ const doc = (0, import_smithy_client.take)(data, {
2924
+ clusterName: import_smithy_client.expectString,
2925
+ message: import_smithy_client.expectString
2926
+ });
2927
+ Object.assign(contents, doc);
2928
+ const exception = new InvalidStateException({
2929
+ $metadata: deserializeMetadata(parsedOutput),
2930
+ ...contents
2931
+ });
2932
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2933
+ }, "de_InvalidStateExceptionRes");
2862
2934
  var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2863
2935
  const contents = (0, import_smithy_client.map)({});
2864
2936
  const data = parsedOutput.body;
@@ -2965,6 +3037,20 @@ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutp
2965
3037
  });
2966
3038
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2967
3039
  }, "de_ServiceUnavailableExceptionRes");
3040
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3041
+ const contents = (0, import_smithy_client.map)({});
3042
+ const data = parsedOutput.body;
3043
+ const doc = (0, import_smithy_client.take)(data, {
3044
+ clusterName: import_smithy_client.expectString,
3045
+ message: import_smithy_client.expectString
3046
+ });
3047
+ Object.assign(contents, doc);
3048
+ const exception = new ThrottlingException({
3049
+ $metadata: deserializeMetadata(parsedOutput),
3050
+ ...contents
3051
+ });
3052
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3053
+ }, "de_ThrottlingExceptionRes");
2968
3054
  var de_UnsupportedAvailabilityZoneExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2969
3055
  const contents = (0, import_smithy_client.map)({});
2970
3056
  const data = parsedOutput.body;
@@ -4689,6 +4775,7 @@ var waitUntilNodegroupDeleted = /* @__PURE__ */ __name(async (params, input) =>
4689
4775
  UpdateType,
4690
4776
  ClientException,
4691
4777
  ResourceInUseException,
4778
+ ThrottlingException,
4692
4779
  ResourceLimitExceededException,
4693
4780
  ResolveConflicts,
4694
4781
  IpFamily,
@@ -4716,6 +4803,7 @@ var waitUntilNodegroupDeleted = /* @__PURE__ */ __name(async (params, input) =>
4716
4803
  BadRequestException,
4717
4804
  NotFoundException,
4718
4805
  ConnectorConfigProvider,
4719
- ResourcePropagationDelayException
4806
+ ResourcePropagationDelayException,
4807
+ InvalidStateException
4720
4808
  });
4721
4809
 
@@ -17,6 +17,8 @@ export class EKSClient extends __Client {
17
17
  config;
18
18
  constructor(...[configuration]) {
19
19
  const _config_0 = __getRuntimeConfig(configuration || {});
20
+ super(_config_0);
21
+ this.initConfig = _config_0;
20
22
  const _config_1 = resolveClientEndpointParameters(_config_0);
21
23
  const _config_2 = resolveUserAgentConfig(_config_1);
22
24
  const _config_3 = resolveRetryConfig(_config_2);
@@ -25,7 +27,6 @@ export class EKSClient extends __Client {
25
27
  const _config_6 = resolveEndpointConfig(_config_5);
26
28
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
29
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
- super(_config_8);
29
30
  this.config = _config_8;
30
31
  this.middlewareStack.use(getUserAgentPlugin(this.config));
31
32
  this.middlewareStack.use(getRetryPlugin(this.config));
@@ -35,7 +35,5 @@ export const defaultEKSHttpAuthSchemeProvider = (authParameters) => {
35
35
  };
36
36
  export const resolveHttpAuthSchemeConfig = (config) => {
37
37
  const config_0 = resolveAwsSdkSigV4Config(config);
38
- return {
39
- ...config_0,
40
- };
38
+ return Object.assign(config_0, {});
41
39
  };
@@ -1,10 +1,9 @@
1
1
  export const resolveClientEndpointParameters = (options) => {
2
- return {
3
- ...options,
2
+ return Object.assign(options, {
4
3
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
4
  useFipsEndpoint: options.useFipsEndpoint ?? false,
6
5
  defaultSigningName: "eks",
7
- };
6
+ });
8
7
  };
9
8
  export const commonParams = {
10
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -51,8 +51,10 @@ export const AMITypes = {
51
51
  AL2_x86_64: "AL2_x86_64",
52
52
  AL2_x86_64_GPU: "AL2_x86_64_GPU",
53
53
  BOTTLEROCKET_ARM_64: "BOTTLEROCKET_ARM_64",
54
+ BOTTLEROCKET_ARM_64_FIPS: "BOTTLEROCKET_ARM_64_FIPS",
54
55
  BOTTLEROCKET_ARM_64_NVIDIA: "BOTTLEROCKET_ARM_64_NVIDIA",
55
56
  BOTTLEROCKET_x86_64: "BOTTLEROCKET_x86_64",
57
+ BOTTLEROCKET_x86_64_FIPS: "BOTTLEROCKET_x86_64_FIPS",
56
58
  BOTTLEROCKET_x86_64_NVIDIA: "BOTTLEROCKET_x86_64_NVIDIA",
57
59
  CUSTOM: "CUSTOM",
58
60
  WINDOWS_CORE_2019_x86_64: "WINDOWS_CORE_2019_x86_64",
@@ -259,6 +261,20 @@ export class ResourceInUseException extends __BaseException {
259
261
  this.addonName = opts.addonName;
260
262
  }
261
263
  }
264
+ export class ThrottlingException extends __BaseException {
265
+ name = "ThrottlingException";
266
+ $fault = "client";
267
+ clusterName;
268
+ constructor(opts) {
269
+ super({
270
+ name: "ThrottlingException",
271
+ $fault: "client",
272
+ ...opts,
273
+ });
274
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
275
+ this.clusterName = opts.clusterName;
276
+ }
277
+ }
262
278
  export class ResourceLimitExceededException extends __BaseException {
263
279
  name = "ResourceLimitExceededException";
264
280
  $fault = "client";
@@ -515,3 +531,17 @@ export class ResourcePropagationDelayException extends __BaseException {
515
531
  Object.setPrototypeOf(this, ResourcePropagationDelayException.prototype);
516
532
  }
517
533
  }
534
+ export class InvalidStateException extends __BaseException {
535
+ name = "InvalidStateException";
536
+ $fault = "client";
537
+ clusterName;
538
+ constructor(opts) {
539
+ super({
540
+ name: "InvalidStateException",
541
+ $fault: "client",
542
+ ...opts,
543
+ });
544
+ Object.setPrototypeOf(this, InvalidStateException.prototype);
545
+ this.clusterName = opts.clusterName;
546
+ }
547
+ }
@@ -3,7 +3,7 @@ import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { EKSServiceException as __BaseException } from "../models/EKSServiceException";
6
- import { AccessDeniedException, BadRequestException, ClientException, InvalidParameterException, InvalidRequestException, NotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePropagationDelayException, ServerException, ServiceUnavailableException, UnsupportedAvailabilityZoneException, } from "../models/models_0";
6
+ import { AccessDeniedException, BadRequestException, ClientException, InvalidParameterException, InvalidRequestException, InvalidStateException, NotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePropagationDelayException, ServerException, ServiceUnavailableException, ThrottlingException, UnsupportedAvailabilityZoneException, } from "../models/models_0";
7
7
  export const se_AssociateAccessPolicyCommand = async (input, context) => {
8
8
  const b = rb(input, context);
9
9
  const headers = {
@@ -750,6 +750,7 @@ export const se_UpdateClusterVersionCommand = async (input, context) => {
750
750
  let body;
751
751
  body = JSON.stringify(take(input, {
752
752
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
753
+ force: [],
753
754
  version: [],
754
755
  }));
755
756
  b.m("POST").h(headers).b(body);
@@ -1654,6 +1655,9 @@ const de_CommandError = async (output, context) => {
1654
1655
  case "ResourceInUseException":
1655
1656
  case "com.amazonaws.eks#ResourceInUseException":
1656
1657
  throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1658
+ case "ThrottlingException":
1659
+ case "com.amazonaws.eks#ThrottlingException":
1660
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1657
1661
  case "ResourceLimitExceededException":
1658
1662
  case "com.amazonaws.eks#ResourceLimitExceededException":
1659
1663
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
@@ -1675,6 +1679,9 @@ const de_CommandError = async (output, context) => {
1675
1679
  case "ResourcePropagationDelayException":
1676
1680
  case "com.amazonaws.eks#ResourcePropagationDelayException":
1677
1681
  throw await de_ResourcePropagationDelayExceptionRes(parsedOutput, context);
1682
+ case "InvalidStateException":
1683
+ case "com.amazonaws.eks#InvalidStateException":
1684
+ throw await de_InvalidStateExceptionRes(parsedOutput, context);
1678
1685
  default:
1679
1686
  const parsedBody = parsedOutput.body;
1680
1687
  return throwDefaultError({
@@ -1763,6 +1770,20 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1763
1770
  });
1764
1771
  return __decorateServiceException(exception, parsedOutput.body);
1765
1772
  };
1773
+ const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
1774
+ const contents = map({});
1775
+ const data = parsedOutput.body;
1776
+ const doc = take(data, {
1777
+ clusterName: __expectString,
1778
+ message: __expectString,
1779
+ });
1780
+ Object.assign(contents, doc);
1781
+ const exception = new InvalidStateException({
1782
+ $metadata: deserializeMetadata(parsedOutput),
1783
+ ...contents,
1784
+ });
1785
+ return __decorateServiceException(exception, parsedOutput.body);
1786
+ };
1766
1787
  const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1767
1788
  const contents = map({});
1768
1789
  const data = parsedOutput.body;
@@ -1869,6 +1890,20 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1869
1890
  });
1870
1891
  return __decorateServiceException(exception, parsedOutput.body);
1871
1892
  };
1893
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1894
+ const contents = map({});
1895
+ const data = parsedOutput.body;
1896
+ const doc = take(data, {
1897
+ clusterName: __expectString,
1898
+ message: __expectString,
1899
+ });
1900
+ Object.assign(contents, doc);
1901
+ const exception = new ThrottlingException({
1902
+ $metadata: deserializeMetadata(parsedOutput),
1903
+ ...contents,
1904
+ });
1905
+ return __decorateServiceException(exception, parsedOutput.body);
1906
+ };
1872
1907
  const de_UnsupportedAvailabilityZoneExceptionRes = async (parsedOutput, context) => {
1873
1908
  const contents = map({});
1874
1909
  const data = parsedOutput.body;
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
2
2
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
3
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
- const asPartial = (t) => t;
6
5
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
- const extensionConfiguration = {
8
- ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
- ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
- ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
- };
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
13
7
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
- return {
15
- ...runtimeConfig,
16
- ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
- ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
- ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
- };
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
21
9
  };
@@ -93,6 +93,7 @@ declare const AssociateAccessPolicyCommand_base: {
93
93
  * @throws {@link EKSServiceException}
94
94
  * <p>Base exception class for all service exceptions from EKS service.</p>
95
95
  *
96
+ *
96
97
  * @public
97
98
  */
98
99
  export declare class AssociateAccessPolicyCommand extends AssociateAccessPolicyCommand_base {
@@ -110,9 +110,14 @@ declare const AssociateEncryptionConfigCommand_base: {
110
110
  * @throws {@link ServerException} (server fault)
111
111
  * <p>These errors are usually caused by a server-side issue.</p>
112
112
  *
113
+ * @throws {@link ThrottlingException} (client fault)
114
+ * <p>The request or operation couldn't be performed because a service is throttling
115
+ * requests.</p>
116
+ *
113
117
  * @throws {@link EKSServiceException}
114
118
  * <p>Base exception class for all service exceptions from EKS service.</p>
115
119
  *
120
+ *
116
121
  * @public
117
122
  */
118
123
  export declare class AssociateEncryptionConfigCommand extends AssociateEncryptionConfigCommand_base {
@@ -122,9 +122,14 @@ declare const AssociateIdentityProviderConfigCommand_base: {
122
122
  * @throws {@link ServerException} (server fault)
123
123
  * <p>These errors are usually caused by a server-side issue.</p>
124
124
  *
125
+ * @throws {@link ThrottlingException} (client fault)
126
+ * <p>The request or operation couldn't be performed because a service is throttling
127
+ * requests.</p>
128
+ *
125
129
  * @throws {@link EKSServiceException}
126
130
  * <p>Base exception class for all service exceptions from EKS service.</p>
127
131
  *
132
+ *
128
133
  * @public
129
134
  */
130
135
  export declare class AssociateIdentityProviderConfigCommand extends AssociateIdentityProviderConfigCommand_base {
@@ -113,6 +113,7 @@ declare const CreateAccessEntryCommand_base: {
113
113
  * @throws {@link EKSServiceException}
114
114
  * <p>Base exception class for all service exceptions from EKS service.</p>
115
115
  *
116
+ *
116
117
  * @public
117
118
  */
118
119
  export declare class CreateAccessEntryCommand extends CreateAccessEntryCommand_base {
@@ -130,6 +130,7 @@ declare const CreateAddonCommand_base: {
130
130
  * @throws {@link EKSServiceException}
131
131
  * <p>Base exception class for all service exceptions from EKS service.</p>
132
132
  *
133
+ *
133
134
  * @public
134
135
  */
135
136
  export declare class CreateAddonCommand extends CreateAddonCommand_base {
@@ -324,30 +324,33 @@ declare const CreateClusterCommand_base: {
324
324
  * @throws {@link EKSServiceException}
325
325
  * <p>Base exception class for all service exceptions from EKS service.</p>
326
326
  *
327
- * @public
327
+ *
328
328
  * @example To create a new cluster
329
329
  * ```javascript
330
330
  * // The following example creates an Amazon EKS cluster called prod.
331
331
  * const input = {
332
- * "version": "1.10",
333
- * "name": "prod",
334
- * "clientRequestToken": "1d2129a1-3d38-460a-9756-e5b91fddb951",
335
- * "resourcesVpcConfig": {
336
- * "securityGroupIds": [
332
+ * clientRequestToken: "1d2129a1-3d38-460a-9756-e5b91fddb951",
333
+ * name: "prod",
334
+ * resourcesVpcConfig: {
335
+ * securityGroupIds: [
337
336
  * "sg-6979fe18"
338
337
  * ],
339
- * "subnetIds": [
338
+ * subnetIds: [
340
339
  * "subnet-6782e71e",
341
340
  * "subnet-e7e761ac"
342
341
  * ]
343
342
  * },
344
- * "roleArn": "arn:aws:iam::012345678910:role/eks-service-role-AWSServiceRoleForAmazonEKS-J7ONKE3BQ4PI"
343
+ * roleArn: "arn:aws:iam::012345678910:role/eks-service-role-AWSServiceRoleForAmazonEKS-J7ONKE3BQ4PI",
344
+ * version: "1.10"
345
345
  * };
346
346
  * const command = new CreateClusterCommand(input);
347
- * await client.send(command);
348
- * // example id: to-create-a-new-cluster-1527868185648
347
+ * const response = await client.send(command);
348
+ * /* response is
349
+ * { /* empty *\/ }
350
+ * *\/
349
351
  * ```
350
352
  *
353
+ * @public
351
354
  */
352
355
  export declare class CreateClusterCommand extends CreateClusterCommand_base {
353
356
  /** @internal type navigation helper, not in runtime. */
@@ -112,6 +112,7 @@ declare const CreateEksAnywhereSubscriptionCommand_base: {
112
112
  * @throws {@link EKSServiceException}
113
113
  * <p>Base exception class for all service exceptions from EKS service.</p>
114
114
  *
115
+ *
115
116
  * @public
116
117
  */
117
118
  export declare class CreateEksAnywhereSubscriptionCommand extends CreateEksAnywhereSubscriptionCommand_base {
@@ -151,6 +151,7 @@ declare const CreateFargateProfileCommand_base: {
151
151
  * @throws {@link EKSServiceException}
152
152
  * <p>Base exception class for all service exceptions from EKS service.</p>
153
153
  *
154
+ *
154
155
  * @public
155
156
  */
156
157
  export declare class CreateFargateProfileCommand extends CreateFargateProfileCommand_base {
@@ -66,7 +66,7 @@ declare const CreateNodegroupCommand_base: {
66
66
  * instanceTypes: [
67
67
  * "STRING_VALUE",
68
68
  * ],
69
- * amiType: "AL2_x86_64" || "AL2_x86_64_GPU" || "AL2_ARM_64" || "CUSTOM" || "BOTTLEROCKET_ARM_64" || "BOTTLEROCKET_x86_64" || "BOTTLEROCKET_ARM_64_NVIDIA" || "BOTTLEROCKET_x86_64_NVIDIA" || "WINDOWS_CORE_2019_x86_64" || "WINDOWS_FULL_2019_x86_64" || "WINDOWS_CORE_2022_x86_64" || "WINDOWS_FULL_2022_x86_64" || "AL2023_x86_64_STANDARD" || "AL2023_ARM_64_STANDARD" || "AL2023_x86_64_NEURON" || "AL2023_x86_64_NVIDIA",
69
+ * amiType: "AL2_x86_64" || "AL2_x86_64_GPU" || "AL2_ARM_64" || "CUSTOM" || "BOTTLEROCKET_ARM_64" || "BOTTLEROCKET_x86_64" || "BOTTLEROCKET_ARM_64_FIPS" || "BOTTLEROCKET_x86_64_FIPS" || "BOTTLEROCKET_ARM_64_NVIDIA" || "BOTTLEROCKET_x86_64_NVIDIA" || "WINDOWS_CORE_2019_x86_64" || "WINDOWS_FULL_2019_x86_64" || "WINDOWS_CORE_2022_x86_64" || "WINDOWS_FULL_2022_x86_64" || "AL2023_x86_64_STANDARD" || "AL2023_ARM_64_STANDARD" || "AL2023_x86_64_NEURON" || "AL2023_x86_64_NVIDIA",
70
70
  * remoteAccess: { // RemoteAccessConfig
71
71
  * ec2SshKey: "STRING_VALUE",
72
72
  * sourceSecurityGroups: [
@@ -135,7 +135,7 @@ declare const CreateNodegroupCommand_base: {
135
135
  * // "STRING_VALUE",
136
136
  * // ],
137
137
  * // },
138
- * // amiType: "AL2_x86_64" || "AL2_x86_64_GPU" || "AL2_ARM_64" || "CUSTOM" || "BOTTLEROCKET_ARM_64" || "BOTTLEROCKET_x86_64" || "BOTTLEROCKET_ARM_64_NVIDIA" || "BOTTLEROCKET_x86_64_NVIDIA" || "WINDOWS_CORE_2019_x86_64" || "WINDOWS_FULL_2019_x86_64" || "WINDOWS_CORE_2022_x86_64" || "WINDOWS_FULL_2022_x86_64" || "AL2023_x86_64_STANDARD" || "AL2023_ARM_64_STANDARD" || "AL2023_x86_64_NEURON" || "AL2023_x86_64_NVIDIA",
138
+ * // amiType: "AL2_x86_64" || "AL2_x86_64_GPU" || "AL2_ARM_64" || "CUSTOM" || "BOTTLEROCKET_ARM_64" || "BOTTLEROCKET_x86_64" || "BOTTLEROCKET_ARM_64_FIPS" || "BOTTLEROCKET_x86_64_FIPS" || "BOTTLEROCKET_ARM_64_NVIDIA" || "BOTTLEROCKET_x86_64_NVIDIA" || "WINDOWS_CORE_2019_x86_64" || "WINDOWS_FULL_2019_x86_64" || "WINDOWS_CORE_2022_x86_64" || "WINDOWS_FULL_2022_x86_64" || "AL2023_x86_64_STANDARD" || "AL2023_ARM_64_STANDARD" || "AL2023_x86_64_NEURON" || "AL2023_x86_64_NVIDIA",
139
139
  * // nodeRole: "STRING_VALUE",
140
140
  * // labels: { // labelsMap
141
141
  * // "<keys>": "STRING_VALUE",
@@ -220,6 +220,7 @@ declare const CreateNodegroupCommand_base: {
220
220
  * @throws {@link EKSServiceException}
221
221
  * <p>Base exception class for all service exceptions from EKS service.</p>
222
222
  *
223
+ *
223
224
  * @public
224
225
  */
225
226
  export declare class CreateNodegroupCommand extends CreateNodegroupCommand_base {
@@ -107,6 +107,7 @@ declare const CreatePodIdentityAssociationCommand_base: {
107
107
  * @throws {@link EKSServiceException}
108
108
  * <p>Base exception class for all service exceptions from EKS service.</p>
109
109
  *
110
+ *
110
111
  * @public
111
112
  */
112
113
  export declare class CreatePodIdentityAssociationCommand extends CreatePodIdentityAssociationCommand_base {
@@ -69,6 +69,7 @@ declare const DeleteAccessEntryCommand_base: {
69
69
  * @throws {@link EKSServiceException}
70
70
  * <p>Base exception class for all service exceptions from EKS service.</p>
71
71
  *
72
+ *
72
73
  * @public
73
74
  */
74
75
  export declare class DeleteAccessEntryCommand extends DeleteAccessEntryCommand_base {
@@ -113,6 +113,7 @@ declare const DeleteAddonCommand_base: {
113
113
  * @throws {@link EKSServiceException}
114
114
  * <p>Base exception class for all service exceptions from EKS service.</p>
115
115
  *
116
+ *
116
117
  * @public
117
118
  */
118
119
  export declare class DeleteAddonCommand extends DeleteAddonCommand_base {
@@ -202,18 +202,21 @@ declare const DeleteClusterCommand_base: {
202
202
  * @throws {@link EKSServiceException}
203
203
  * <p>Base exception class for all service exceptions from EKS service.</p>
204
204
  *
205
- * @public
205
+ *
206
206
  * @example To delete a cluster
207
207
  * ```javascript
208
208
  * // This example command deletes a cluster named `devel` in your default region.
209
209
  * const input = {
210
- * "name": "devel"
210
+ * name: "devel"
211
211
  * };
212
212
  * const command = new DeleteClusterCommand(input);
213
- * await client.send(command);
214
- * // example id: to-delete-a-cluster-1527868641252
213
+ * const response = await client.send(command);
214
+ * /* response is
215
+ * { /* empty *\/ }
216
+ * *\/
215
217
  * ```
216
218
  *
219
+ * @public
217
220
  */
218
221
  export declare class DeleteClusterCommand extends DeleteClusterCommand_base {
219
222
  /** @internal type navigation helper, not in runtime. */
@@ -101,6 +101,7 @@ declare const DeleteEksAnywhereSubscriptionCommand_base: {
101
101
  * @throws {@link EKSServiceException}
102
102
  * <p>Base exception class for all service exceptions from EKS service.</p>
103
103
  *
104
+ *
104
105
  * @public
105
106
  */
106
107
  export declare class DeleteEksAnywhereSubscriptionCommand extends DeleteEksAnywhereSubscriptionCommand_base {