@aws-sdk/client-acm-pca 3.577.0 → 3.578.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1915,6 +1915,9 @@ var checkState = /* @__PURE__ */ __name(async (client, input) => {
1915
1915
  }
1916
1916
  } catch (exception) {
1917
1917
  reason = exception;
1918
+ if (exception.name && exception.name == "AccessDeniedException") {
1919
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
1920
+ }
1918
1921
  }
1919
1922
  return { state: import_util_waiter.WaiterState.RETRY, reason };
1920
1923
  }, "checkState");
@@ -1941,6 +1944,9 @@ var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
1941
1944
  if (exception.name && exception.name == "RequestInProgressException") {
1942
1945
  return { state: import_util_waiter.WaiterState.RETRY, reason };
1943
1946
  }
1947
+ if (exception.name && exception.name == "AccessDeniedException") {
1948
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
1949
+ }
1944
1950
  }
1945
1951
  return { state: import_util_waiter.WaiterState.RETRY, reason };
1946
1952
  }, "checkState");
@@ -1967,6 +1973,9 @@ var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
1967
1973
  if (exception.name && exception.name == "RequestInProgressException") {
1968
1974
  return { state: import_util_waiter.WaiterState.RETRY, reason };
1969
1975
  }
1976
+ if (exception.name && exception.name == "AccessDeniedException") {
1977
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
1978
+ }
1970
1979
  }
1971
1980
  return { state: import_util_waiter.WaiterState.RETRY, reason };
1972
1981
  }, "checkState");
@@ -26,6 +26,9 @@ const checkState = async (client, input) => {
26
26
  }
27
27
  catch (exception) {
28
28
  reason = exception;
29
+ if (exception.name && exception.name == "AccessDeniedException") {
30
+ return { state: WaiterState.FAILURE, reason };
31
+ }
29
32
  }
30
33
  return { state: WaiterState.RETRY, reason };
31
34
  };
@@ -12,6 +12,9 @@ const checkState = async (client, input) => {
12
12
  if (exception.name && exception.name == "RequestInProgressException") {
13
13
  return { state: WaiterState.RETRY, reason };
14
14
  }
15
+ if (exception.name && exception.name == "AccessDeniedException") {
16
+ return { state: WaiterState.FAILURE, reason };
17
+ }
15
18
  }
16
19
  return { state: WaiterState.RETRY, reason };
17
20
  };
@@ -12,6 +12,9 @@ const checkState = async (client, input) => {
12
12
  if (exception.name && exception.name == "RequestInProgressException") {
13
13
  return { state: WaiterState.RETRY, reason };
14
14
  }
15
+ if (exception.name && exception.name == "AccessDeniedException") {
16
+ return { state: WaiterState.FAILURE, reason };
17
+ }
15
18
  }
16
19
  return { state: WaiterState.RETRY, reason };
17
20
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-acm-pca",
3
3
  "description": "AWS SDK for JavaScript Acm Pca Client for Node.js, Browser and React Native",
4
- "version": "3.577.0",
4
+ "version": "3.578.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-acm-pca",