@aws-sdk/client-eks 3.774.0 → 3.775.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.
@@ -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));
@@ -735,6 +736,30 @@ var ResourceInUseException = class _ResourceInUseException extends EKSServiceExc
735
736
  this.addonName = opts.addonName;
736
737
  }
737
738
  };
739
+ var ThrottlingException = class _ThrottlingException extends EKSServiceException {
740
+ static {
741
+ __name(this, "ThrottlingException");
742
+ }
743
+ name = "ThrottlingException";
744
+ $fault = "client";
745
+ /**
746
+ * <p>The Amazon EKS cluster associated with the exception.</p>
747
+ * @public
748
+ */
749
+ clusterName;
750
+ /**
751
+ * @internal
752
+ */
753
+ constructor(opts) {
754
+ super({
755
+ name: "ThrottlingException",
756
+ $fault: "client",
757
+ ...opts
758
+ });
759
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
760
+ this.clusterName = opts.clusterName;
761
+ }
762
+ };
738
763
  var ResourceLimitExceededException = class _ResourceLimitExceededException extends EKSServiceException {
739
764
  static {
740
765
  __name(this, "ResourceLimitExceededException");
@@ -1052,6 +1077,30 @@ var ResourcePropagationDelayException = class _ResourcePropagationDelayException
1052
1077
  Object.setPrototypeOf(this, _ResourcePropagationDelayException.prototype);
1053
1078
  }
1054
1079
  };
1080
+ var InvalidStateException = class _InvalidStateException extends EKSServiceException {
1081
+ static {
1082
+ __name(this, "InvalidStateException");
1083
+ }
1084
+ name = "InvalidStateException";
1085
+ $fault = "client";
1086
+ /**
1087
+ * <p>The Amazon EKS cluster associated with the exception.</p>
1088
+ * @public
1089
+ */
1090
+ clusterName;
1091
+ /**
1092
+ * @internal
1093
+ */
1094
+ constructor(opts) {
1095
+ super({
1096
+ name: "InvalidStateException",
1097
+ $fault: "client",
1098
+ ...opts
1099
+ });
1100
+ Object.setPrototypeOf(this, _InvalidStateException.prototype);
1101
+ this.clusterName = opts.clusterName;
1102
+ }
1103
+ };
1055
1104
 
1056
1105
  // src/protocols/Aws_restJson1.ts
1057
1106
  var se_AssociateAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -1837,6 +1886,7 @@ var se_UpdateClusterVersionCommand = /* @__PURE__ */ __name(async (input, contex
1837
1886
  body = JSON.stringify(
1838
1887
  (0, import_smithy_client.take)(input, {
1839
1888
  clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1889
+ force: [],
1840
1890
  version: []
1841
1891
  })
1842
1892
  );
@@ -2750,6 +2800,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2750
2800
  case "ResourceInUseException":
2751
2801
  case "com.amazonaws.eks#ResourceInUseException":
2752
2802
  throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2803
+ case "ThrottlingException":
2804
+ case "com.amazonaws.eks#ThrottlingException":
2805
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2753
2806
  case "ResourceLimitExceededException":
2754
2807
  case "com.amazonaws.eks#ResourceLimitExceededException":
2755
2808
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
@@ -2771,6 +2824,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2771
2824
  case "ResourcePropagationDelayException":
2772
2825
  case "com.amazonaws.eks#ResourcePropagationDelayException":
2773
2826
  throw await de_ResourcePropagationDelayExceptionRes(parsedOutput, context);
2827
+ case "InvalidStateException":
2828
+ case "com.amazonaws.eks#InvalidStateException":
2829
+ throw await de_InvalidStateExceptionRes(parsedOutput, context);
2774
2830
  default:
2775
2831
  const parsedBody = parsedOutput.body;
2776
2832
  return throwDefaultError({
@@ -2859,6 +2915,20 @@ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
2859
2915
  });
2860
2916
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2861
2917
  }, "de_InvalidRequestExceptionRes");
2918
+ var de_InvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2919
+ const contents = (0, import_smithy_client.map)({});
2920
+ const data = parsedOutput.body;
2921
+ const doc = (0, import_smithy_client.take)(data, {
2922
+ clusterName: import_smithy_client.expectString,
2923
+ message: import_smithy_client.expectString
2924
+ });
2925
+ Object.assign(contents, doc);
2926
+ const exception = new InvalidStateException({
2927
+ $metadata: deserializeMetadata(parsedOutput),
2928
+ ...contents
2929
+ });
2930
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2931
+ }, "de_InvalidStateExceptionRes");
2862
2932
  var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2863
2933
  const contents = (0, import_smithy_client.map)({});
2864
2934
  const data = parsedOutput.body;
@@ -2965,6 +3035,20 @@ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutp
2965
3035
  });
2966
3036
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2967
3037
  }, "de_ServiceUnavailableExceptionRes");
3038
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3039
+ const contents = (0, import_smithy_client.map)({});
3040
+ const data = parsedOutput.body;
3041
+ const doc = (0, import_smithy_client.take)(data, {
3042
+ clusterName: import_smithy_client.expectString,
3043
+ message: import_smithy_client.expectString
3044
+ });
3045
+ Object.assign(contents, doc);
3046
+ const exception = new ThrottlingException({
3047
+ $metadata: deserializeMetadata(parsedOutput),
3048
+ ...contents
3049
+ });
3050
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3051
+ }, "de_ThrottlingExceptionRes");
2968
3052
  var de_UnsupportedAvailabilityZoneExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2969
3053
  const contents = (0, import_smithy_client.map)({});
2970
3054
  const data = parsedOutput.body;
@@ -4689,6 +4773,7 @@ var waitUntilNodegroupDeleted = /* @__PURE__ */ __name(async (params, input) =>
4689
4773
  UpdateType,
4690
4774
  ClientException,
4691
4775
  ResourceInUseException,
4776
+ ThrottlingException,
4692
4777
  ResourceLimitExceededException,
4693
4778
  ResolveConflicts,
4694
4779
  IpFamily,
@@ -4716,6 +4801,7 @@ var waitUntilNodegroupDeleted = /* @__PURE__ */ __name(async (params, input) =>
4716
4801
  BadRequestException,
4717
4802
  NotFoundException,
4718
4803
  ConnectorConfigProvider,
4719
- ResourcePropagationDelayException
4804
+ ResourcePropagationDelayException,
4805
+ InvalidStateException
4720
4806
  });
4721
4807
 
@@ -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" },
@@ -259,6 +259,20 @@ export class ResourceInUseException extends __BaseException {
259
259
  this.addonName = opts.addonName;
260
260
  }
261
261
  }
262
+ export class ThrottlingException extends __BaseException {
263
+ name = "ThrottlingException";
264
+ $fault = "client";
265
+ clusterName;
266
+ constructor(opts) {
267
+ super({
268
+ name: "ThrottlingException",
269
+ $fault: "client",
270
+ ...opts,
271
+ });
272
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
273
+ this.clusterName = opts.clusterName;
274
+ }
275
+ }
262
276
  export class ResourceLimitExceededException extends __BaseException {
263
277
  name = "ResourceLimitExceededException";
264
278
  $fault = "client";
@@ -515,3 +529,17 @@ export class ResourcePropagationDelayException extends __BaseException {
515
529
  Object.setPrototypeOf(this, ResourcePropagationDelayException.prototype);
516
530
  }
517
531
  }
532
+ export class InvalidStateException extends __BaseException {
533
+ name = "InvalidStateException";
534
+ $fault = "client";
535
+ clusterName;
536
+ constructor(opts) {
537
+ super({
538
+ name: "InvalidStateException",
539
+ $fault: "client",
540
+ ...opts,
541
+ });
542
+ Object.setPrototypeOf(this, InvalidStateException.prototype);
543
+ this.clusterName = opts.clusterName;
544
+ }
545
+ }
@@ -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
  };
@@ -110,6 +110,10 @@ 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
  *
@@ -122,6 +122,10 @@ 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
  *
@@ -104,6 +104,10 @@ declare const DisassociateIdentityProviderConfigCommand_base: {
104
104
  * @throws {@link ServerException} (server fault)
105
105
  * <p>These errors are usually caused by a server-side issue.</p>
106
106
  *
107
+ * @throws {@link ThrottlingException} (client fault)
108
+ * <p>The request or operation couldn't be performed because a service is throttling
109
+ * requests.</p>
110
+ *
107
111
  * @throws {@link EKSServiceException}
108
112
  * <p>Base exception class for all service exceptions from EKS service.</p>
109
113
  *
@@ -180,6 +180,10 @@ declare const UpdateClusterConfigCommand_base: {
180
180
  * @throws {@link ServerException} (server fault)
181
181
  * <p>These errors are usually caused by a server-side issue.</p>
182
182
  *
183
+ * @throws {@link ThrottlingException} (client fault)
184
+ * <p>The request or operation couldn't be performed because a service is throttling
185
+ * requests.</p>
186
+ *
183
187
  * @throws {@link EKSServiceException}
184
188
  * <p>Base exception class for all service exceptions from EKS service.</p>
185
189
  *
@@ -49,6 +49,7 @@ declare const UpdateClusterVersionCommand_base: {
49
49
  * name: "STRING_VALUE", // required
50
50
  * version: "STRING_VALUE", // required
51
51
  * clientRequestToken: "STRING_VALUE",
52
+ * force: true || false,
52
53
  * };
53
54
  * const command = new UpdateClusterVersionCommand(input);
54
55
  * const response = await client.send(command);
@@ -97,6 +98,15 @@ declare const UpdateClusterVersionCommand_base: {
97
98
  * <p>The request is invalid given the state of the cluster. Check the state of the cluster
98
99
  * and the associated operations.</p>
99
100
  *
101
+ * @throws {@link InvalidStateException} (client fault)
102
+ * <p>Amazon EKS detected upgrade readiness issues. Call the <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListInsights.html">
103
+ * <code>ListInsights</code>
104
+ * </a> API to view detected upgrade blocking issues.
105
+ * Pass the <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateClusterVersion.html#API_UpdateClusterVersion_RequestBody">
106
+ * <code>force</code>
107
+ * </a> flag when updating to override upgrade readiness
108
+ * errors.</p>
109
+ *
100
110
  * @throws {@link ResourceInUseException} (client fault)
101
111
  * <p>The specified resource is in use.</p>
102
112
  *
@@ -109,6 +119,10 @@ declare const UpdateClusterVersionCommand_base: {
109
119
  * @throws {@link ServerException} (server fault)
110
120
  * <p>These errors are usually caused by a server-side issue.</p>
111
121
  *
122
+ * @throws {@link ThrottlingException} (client fault)
123
+ * <p>The request or operation couldn't be performed because a service is throttling
124
+ * requests.</p>
125
+ *
112
126
  * @throws {@link EKSServiceException}
113
127
  * <p>Base exception class for all service exceptions from EKS service.</p>
114
128
  *
@@ -1082,6 +1082,24 @@ export declare class ResourceInUseException extends __BaseException {
1082
1082
  */
1083
1083
  constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
1084
1084
  }
1085
+ /**
1086
+ * <p>The request or operation couldn't be performed because a service is throttling
1087
+ * requests.</p>
1088
+ * @public
1089
+ */
1090
+ export declare class ThrottlingException extends __BaseException {
1091
+ readonly name: "ThrottlingException";
1092
+ readonly $fault: "client";
1093
+ /**
1094
+ * <p>The Amazon EKS cluster associated with the exception.</p>
1095
+ * @public
1096
+ */
1097
+ clusterName?: string | undefined;
1098
+ /**
1099
+ * @internal
1100
+ */
1101
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
1102
+ }
1085
1103
  /**
1086
1104
  * <p>An object representing an OpenID Connect (OIDC) configuration. Before associating an
1087
1105
  * OIDC identity provider to your cluster, review the considerations in <a href="https://docs.aws.amazon.com/eks/latest/userguide/authenticate-oidc-identity-provider.html">Authenticating
@@ -2937,7 +2955,7 @@ export interface EksAnywhereSubscription {
2937
2955
  licenseArns?: string[] | undefined;
2938
2956
  /**
2939
2957
  * <p>Includes all of the claims in the license token necessary to validate the license for
2940
- * extended support.</p>
2958
+ * extended support.</p>
2941
2959
  * @public
2942
2960
  */
2943
2961
  licenses?: License[] | undefined;
@@ -6515,6 +6533,29 @@ export interface UpdateClusterConfigResponse {
6515
6533
  */
6516
6534
  update?: Update | undefined;
6517
6535
  }
6536
+ /**
6537
+ * <p>Amazon EKS detected upgrade readiness issues. Call the <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListInsights.html">
6538
+ * <code>ListInsights</code>
6539
+ * </a> API to view detected upgrade blocking issues.
6540
+ * Pass the <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateClusterVersion.html#API_UpdateClusterVersion_RequestBody">
6541
+ * <code>force</code>
6542
+ * </a> flag when updating to override upgrade readiness
6543
+ * errors.</p>
6544
+ * @public
6545
+ */
6546
+ export declare class InvalidStateException extends __BaseException {
6547
+ readonly name: "InvalidStateException";
6548
+ readonly $fault: "client";
6549
+ /**
6550
+ * <p>The Amazon EKS cluster associated with the exception.</p>
6551
+ * @public
6552
+ */
6553
+ clusterName?: string | undefined;
6554
+ /**
6555
+ * @internal
6556
+ */
6557
+ constructor(opts: __ExceptionOptionType<InvalidStateException, __BaseException>);
6558
+ }
6518
6559
  /**
6519
6560
  * @public
6520
6561
  */
@@ -6535,6 +6576,12 @@ export interface UpdateClusterVersionRequest {
6535
6576
  * @public
6536
6577
  */
6537
6578
  clientRequestToken?: string | undefined;
6579
+ /**
6580
+ * <p>Set this value to <code>true</code> to override upgrade-blocking readiness checks when
6581
+ * updating a cluster.</p>
6582
+ * @public
6583
+ */
6584
+ force?: boolean | undefined;
6538
6585
  }
6539
6586
  /**
6540
6587
  * @public
@@ -343,6 +343,14 @@ export declare class ResourceInUseException extends __BaseException {
343
343
  opts: __ExceptionOptionType<ResourceInUseException, __BaseException>
344
344
  );
345
345
  }
346
+ export declare class ThrottlingException extends __BaseException {
347
+ readonly name: "ThrottlingException";
348
+ readonly $fault: "client";
349
+ clusterName?: string | undefined;
350
+ constructor(
351
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
352
+ );
353
+ }
346
354
  export interface OidcIdentityProviderConfigRequest {
347
355
  identityProviderConfigName: string | undefined;
348
356
  issuerUrl: string | undefined;
@@ -1464,10 +1472,19 @@ export interface UpdateClusterConfigRequest {
1464
1472
  export interface UpdateClusterConfigResponse {
1465
1473
  update?: Update | undefined;
1466
1474
  }
1475
+ export declare class InvalidStateException extends __BaseException {
1476
+ readonly name: "InvalidStateException";
1477
+ readonly $fault: "client";
1478
+ clusterName?: string | undefined;
1479
+ constructor(
1480
+ opts: __ExceptionOptionType<InvalidStateException, __BaseException>
1481
+ );
1482
+ }
1467
1483
  export interface UpdateClusterVersionRequest {
1468
1484
  name: string | undefined;
1469
1485
  version: string | undefined;
1470
1486
  clientRequestToken?: string | undefined;
1487
+ force?: boolean | undefined;
1471
1488
  }
1472
1489
  export interface UpdateClusterVersionResponse {
1473
1490
  update?: Update | undefined;
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.774.0",
4
+ "version": "3.775.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-eks",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.774.0",
24
- "@aws-sdk/credential-provider-node": "3.774.0",
25
- "@aws-sdk/middleware-host-header": "3.774.0",
26
- "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
- "@aws-sdk/middleware-user-agent": "3.774.0",
29
- "@aws-sdk/region-config-resolver": "3.734.0",
30
- "@aws-sdk/types": "3.734.0",
31
- "@aws-sdk/util-endpoints": "3.743.0",
32
- "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.774.0",
34
- "@smithy/config-resolver": "^4.0.1",
35
- "@smithy/core": "^3.1.5",
36
- "@smithy/fetch-http-handler": "^5.0.1",
37
- "@smithy/hash-node": "^4.0.1",
38
- "@smithy/invalid-dependency": "^4.0.1",
39
- "@smithy/middleware-content-length": "^4.0.1",
40
- "@smithy/middleware-endpoint": "^4.0.6",
41
- "@smithy/middleware-retry": "^4.0.7",
42
- "@smithy/middleware-serde": "^4.0.2",
43
- "@smithy/middleware-stack": "^4.0.1",
44
- "@smithy/node-config-provider": "^4.0.1",
45
- "@smithy/node-http-handler": "^4.0.3",
46
- "@smithy/protocol-http": "^5.0.1",
47
- "@smithy/smithy-client": "^4.1.6",
48
- "@smithy/types": "^4.1.0",
49
- "@smithy/url-parser": "^4.0.1",
23
+ "@aws-sdk/core": "3.775.0",
24
+ "@aws-sdk/credential-provider-node": "3.775.0",
25
+ "@aws-sdk/middleware-host-header": "3.775.0",
26
+ "@aws-sdk/middleware-logger": "3.775.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
+ "@aws-sdk/middleware-user-agent": "3.775.0",
29
+ "@aws-sdk/region-config-resolver": "3.775.0",
30
+ "@aws-sdk/types": "3.775.0",
31
+ "@aws-sdk/util-endpoints": "3.775.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.775.0",
33
+ "@aws-sdk/util-user-agent-node": "3.775.0",
34
+ "@smithy/config-resolver": "^4.1.0",
35
+ "@smithy/core": "^3.2.0",
36
+ "@smithy/fetch-http-handler": "^5.0.2",
37
+ "@smithy/hash-node": "^4.0.2",
38
+ "@smithy/invalid-dependency": "^4.0.2",
39
+ "@smithy/middleware-content-length": "^4.0.2",
40
+ "@smithy/middleware-endpoint": "^4.1.0",
41
+ "@smithy/middleware-retry": "^4.1.0",
42
+ "@smithy/middleware-serde": "^4.0.3",
43
+ "@smithy/middleware-stack": "^4.0.2",
44
+ "@smithy/node-config-provider": "^4.0.2",
45
+ "@smithy/node-http-handler": "^4.0.4",
46
+ "@smithy/protocol-http": "^5.1.0",
47
+ "@smithy/smithy-client": "^4.2.0",
48
+ "@smithy/types": "^4.2.0",
49
+ "@smithy/url-parser": "^4.0.2",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.7",
54
- "@smithy/util-defaults-mode-node": "^4.0.7",
55
- "@smithy/util-endpoints": "^3.0.1",
56
- "@smithy/util-middleware": "^4.0.1",
57
- "@smithy/util-retry": "^4.0.1",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.8",
54
+ "@smithy/util-defaults-mode-node": "^4.0.8",
55
+ "@smithy/util-endpoints": "^3.0.2",
56
+ "@smithy/util-middleware": "^4.0.2",
57
+ "@smithy/util-retry": "^4.0.2",
58
58
  "@smithy/util-utf8": "^4.0.0",
59
- "@smithy/util-waiter": "^4.0.2",
59
+ "@smithy/util-waiter": "^4.0.3",
60
60
  "@types/uuid": "^9.0.1",
61
61
  "tslib": "^2.6.2",
62
62
  "uuid": "^9.0.1"