@aws-sdk/client-acm-pca 3.1037.0 → 3.1038.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
@@ -422,7 +422,7 @@ const checkState$2 = async (client, input) => {
422
422
  }
423
423
  catch (exception) {
424
424
  reason = exception;
425
- if (exception.name && exception.name == "AccessDeniedException") {
425
+ if (exception.name === "AccessDeniedException") {
426
426
  return { state: utilWaiter.WaiterState.FAILURE, reason };
427
427
  }
428
428
  }
@@ -447,10 +447,10 @@ const checkState$1 = async (client, input) => {
447
447
  }
448
448
  catch (exception) {
449
449
  reason = exception;
450
- if (exception.name && exception.name == "RequestInProgressException") {
450
+ if (exception.name === "RequestInProgressException") {
451
451
  return { state: utilWaiter.WaiterState.RETRY, reason };
452
452
  }
453
- if (exception.name && exception.name == "AccessDeniedException") {
453
+ if (exception.name === "AccessDeniedException") {
454
454
  return { state: utilWaiter.WaiterState.FAILURE, reason };
455
455
  }
456
456
  }
@@ -475,10 +475,10 @@ const checkState = async (client, input) => {
475
475
  }
476
476
  catch (exception) {
477
477
  reason = exception;
478
- if (exception.name && exception.name == "RequestInProgressException") {
478
+ if (exception.name === "RequestInProgressException") {
479
479
  return { state: utilWaiter.WaiterState.RETRY, reason };
480
480
  }
481
- if (exception.name && exception.name == "AccessDeniedException") {
481
+ if (exception.name === "AccessDeniedException") {
482
482
  return { state: utilWaiter.WaiterState.FAILURE, reason };
483
483
  }
484
484
  }
@@ -26,7 +26,7 @@ const checkState = async (client, input) => {
26
26
  }
27
27
  catch (exception) {
28
28
  reason = exception;
29
- if (exception.name && exception.name == "AccessDeniedException") {
29
+ if (exception.name === "AccessDeniedException") {
30
30
  return { state: WaiterState.FAILURE, reason };
31
31
  }
32
32
  }
@@ -9,10 +9,10 @@ const checkState = async (client, input) => {
9
9
  }
10
10
  catch (exception) {
11
11
  reason = exception;
12
- if (exception.name && exception.name == "RequestInProgressException") {
12
+ if (exception.name === "RequestInProgressException") {
13
13
  return { state: WaiterState.RETRY, reason };
14
14
  }
15
- if (exception.name && exception.name == "AccessDeniedException") {
15
+ if (exception.name === "AccessDeniedException") {
16
16
  return { state: WaiterState.FAILURE, reason };
17
17
  }
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetCertificateCommand } from "../commands/GetCertificateCommand";
2
+ import { GetCertificateCommand, } from "../commands/GetCertificateCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -9,10 +9,10 @@ const checkState = async (client, input) => {
9
9
  }
10
10
  catch (exception) {
11
11
  reason = exception;
12
- if (exception.name && exception.name == "RequestInProgressException") {
12
+ if (exception.name === "RequestInProgressException") {
13
13
  return { state: WaiterState.RETRY, reason };
14
14
  }
15
- if (exception.name && exception.name == "AccessDeniedException") {
15
+ if (exception.name === "AccessDeniedException") {
16
16
  return { state: WaiterState.FAILURE, reason };
17
17
  }
18
18
  }
@@ -190,19 +190,19 @@ export interface ACMPCA {
190
190
  * @param args - command input.
191
191
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
192
192
  */
193
- waitUntilAuditReportCreated(args: DescribeCertificateAuthorityAuditReportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ACMPCA>, "client">): Promise<WaiterResult>;
193
+ waitUntilAuditReportCreated(args: DescribeCertificateAuthorityAuditReportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ACMPCA>, "client">): Promise<WaiterResult<DescribeCertificateAuthorityAuditReportCommandOutput>>;
194
194
  /**
195
195
  * @see {@link GetCertificateCommand}
196
196
  * @param args - command input.
197
197
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
198
198
  */
199
- waitUntilCertificateIssued(args: GetCertificateCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ACMPCA>, "client">): Promise<WaiterResult>;
199
+ waitUntilCertificateIssued(args: GetCertificateCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ACMPCA>, "client">): Promise<WaiterResult<GetCertificateCommandOutput>>;
200
200
  /**
201
201
  * @see {@link GetCertificateAuthorityCsrCommand}
202
202
  * @param args - command input.
203
203
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
204
204
  */
205
- waitUntilCertificateAuthorityCSRCreated(args: GetCertificateAuthorityCsrCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ACMPCA>, "client">): Promise<WaiterResult>;
205
+ waitUntilCertificateAuthorityCSRCreated(args: GetCertificateAuthorityCsrCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ACMPCA>, "client">): Promise<WaiterResult<GetCertificateAuthorityCsrCommandOutput>>;
206
206
  }
207
207
  /**
208
208
  * <p>This is the <i>Amazon Web Services Private Certificate Authority API Reference</i>. It provides descriptions, syntax, and usage examples for each of the actions and data types involved in creating and managing a private certificate authority (CA) for your organization.</p> <p>The documentation for each action shows the API request parameters and the JSON response. Alternatively, you can use one of the Amazon Web Services SDKs to access an API that is tailored to the programming language or platform that you prefer. For more information, see <a href="https://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>.</p> <p>Each Amazon Web Services Private CA API operation has a quota that determines the number of times the operation can be called per second. Amazon Web Services Private CA throttles API requests at different rates depending on the operation. Throttling means that Amazon Web Services Private CA rejects an otherwise valid request because the request exceeds the operation's quota for the number of requests per second. When a request is throttled, Amazon Web Services Private CA returns a <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/CommonErrors.html">ThrottlingException</a> error. Amazon Web Services Private CA does not guarantee a minimum request rate for APIs. </p> <p>To see an up-to-date list of your Amazon Web Services Private CA quotas, or to request a quota increase, log into your Amazon Web Services account and visit the <a href="https://console.aws.amazon.com/servicequotas/">Service Quotas</a> console.</p>
@@ -452,7 +452,9 @@ export interface ACMPCA {
452
452
  WaiterConfiguration<ACMPCA>,
453
453
  Exclude<keyof WaiterConfiguration<ACMPCA>, "client">
454
454
  >
455
- ): Promise<WaiterResult>;
455
+ ): Promise<
456
+ WaiterResult<DescribeCertificateAuthorityAuditReportCommandOutput>
457
+ >;
456
458
  waitUntilCertificateIssued(
457
459
  args: GetCertificateCommandInput,
458
460
  waiterConfig:
@@ -461,7 +463,7 @@ export interface ACMPCA {
461
463
  WaiterConfiguration<ACMPCA>,
462
464
  Exclude<keyof WaiterConfiguration<ACMPCA>, "client">
463
465
  >
464
- ): Promise<WaiterResult>;
466
+ ): Promise<WaiterResult<GetCertificateCommandOutput>>;
465
467
  waitUntilCertificateAuthorityCSRCreated(
466
468
  args: GetCertificateAuthorityCsrCommandInput,
467
469
  waiterConfig:
@@ -470,6 +472,6 @@ export interface ACMPCA {
470
472
  WaiterConfiguration<ACMPCA>,
471
473
  Exclude<keyof WaiterConfiguration<ACMPCA>, "client">
472
474
  >
473
- ): Promise<WaiterResult>;
475
+ ): Promise<WaiterResult<GetCertificateAuthorityCsrCommandOutput>>;
474
476
  }
475
477
  export declare class ACMPCA extends ACMPCAClient implements ACMPCA {}
@@ -1,11 +1,22 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
2
  import { ACMPCAClient } from "../ACMPCAClient";
3
- import { DescribeCertificateAuthorityAuditReportCommandInput } from "../commands/DescribeCertificateAuthorityAuditReportCommand";
3
+ import {
4
+ DescribeCertificateAuthorityAuditReportCommandInput,
5
+ DescribeCertificateAuthorityAuditReportCommandOutput,
6
+ } from "../commands/DescribeCertificateAuthorityAuditReportCommand";
7
+ import { ACMPCAServiceException } from "../models/ACMPCAServiceException";
4
8
  export declare const waitForAuditReportCreated: (
5
9
  params: WaiterConfiguration<ACMPCAClient>,
6
10
  input: DescribeCertificateAuthorityAuditReportCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<
13
+ | DescribeCertificateAuthorityAuditReportCommandOutput
14
+ | ACMPCAServiceException
15
+ >
16
+ >;
8
17
  export declare const waitUntilAuditReportCreated: (
9
18
  params: WaiterConfiguration<ACMPCAClient>,
10
19
  input: DescribeCertificateAuthorityAuditReportCommandInput
11
- ) => Promise<WaiterResult>;
20
+ ) => Promise<
21
+ WaiterResult<DescribeCertificateAuthorityAuditReportCommandOutput>
22
+ >;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
2
  import { ACMPCAClient } from "../ACMPCAClient";
3
- import { GetCertificateAuthorityCsrCommandInput } from "../commands/GetCertificateAuthorityCsrCommand";
3
+ import {
4
+ GetCertificateAuthorityCsrCommandInput,
5
+ GetCertificateAuthorityCsrCommandOutput,
6
+ } from "../commands/GetCertificateAuthorityCsrCommand";
7
+ import { ACMPCAServiceException } from "../models/ACMPCAServiceException";
4
8
  export declare const waitForCertificateAuthorityCSRCreated: (
5
9
  params: WaiterConfiguration<ACMPCAClient>,
6
10
  input: GetCertificateAuthorityCsrCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<GetCertificateAuthorityCsrCommandOutput | ACMPCAServiceException>
13
+ >;
8
14
  export declare const waitUntilCertificateAuthorityCSRCreated: (
9
15
  params: WaiterConfiguration<ACMPCAClient>,
10
16
  input: GetCertificateAuthorityCsrCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<GetCertificateAuthorityCsrCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
2
  import { ACMPCAClient } from "../ACMPCAClient";
3
- import { GetCertificateCommandInput } from "../commands/GetCertificateCommand";
3
+ import {
4
+ GetCertificateCommandInput,
5
+ GetCertificateCommandOutput,
6
+ } from "../commands/GetCertificateCommand";
7
+ import { ACMPCAServiceException } from "../models/ACMPCAServiceException";
4
8
  export declare const waitForCertificateIssued: (
5
9
  params: WaiterConfiguration<ACMPCAClient>,
6
10
  input: GetCertificateCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<GetCertificateCommandOutput | ACMPCAServiceException>
13
+ >;
8
14
  export declare const waitUntilCertificateIssued: (
9
15
  params: WaiterConfiguration<ACMPCAClient>,
10
16
  input: GetCertificateCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<GetCertificateCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
2
  import type { ACMPCAClient } from "../ACMPCAClient";
3
- import { type DescribeCertificateAuthorityAuditReportCommandInput } from "../commands/DescribeCertificateAuthorityAuditReportCommand";
3
+ import { type DescribeCertificateAuthorityAuditReportCommandInput, type DescribeCertificateAuthorityAuditReportCommandOutput } from "../commands/DescribeCertificateAuthorityAuditReportCommand";
4
+ import type { ACMPCAServiceException } from "../models/ACMPCAServiceException";
4
5
  /**
5
6
  * Wait until a Audit Report is created
6
7
  * @deprecated Use waitUntilAuditReportCreated instead. waitForAuditReportCreated does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForAuditReportCreated: (params: WaiterConfiguration<ACMPCAClient>, input: DescribeCertificateAuthorityAuditReportCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForAuditReportCreated: (params: WaiterConfiguration<ACMPCAClient>, input: DescribeCertificateAuthorityAuditReportCommandInput) => Promise<WaiterResult<DescribeCertificateAuthorityAuditReportCommandOutput | ACMPCAServiceException>>;
9
10
  /**
10
11
  * Wait until a Audit Report is created
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeCertificateAuthorityAuditReportCommand for polling.
13
14
  */
14
- export declare const waitUntilAuditReportCreated: (params: WaiterConfiguration<ACMPCAClient>, input: DescribeCertificateAuthorityAuditReportCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilAuditReportCreated: (params: WaiterConfiguration<ACMPCAClient>, input: DescribeCertificateAuthorityAuditReportCommandInput) => Promise<WaiterResult<DescribeCertificateAuthorityAuditReportCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
2
  import type { ACMPCAClient } from "../ACMPCAClient";
3
- import { type GetCertificateAuthorityCsrCommandInput } from "../commands/GetCertificateAuthorityCsrCommand";
3
+ import { type GetCertificateAuthorityCsrCommandInput, type GetCertificateAuthorityCsrCommandOutput } from "../commands/GetCertificateAuthorityCsrCommand";
4
+ import type { ACMPCAServiceException } from "../models/ACMPCAServiceException";
4
5
  /**
5
6
  * Wait until a Certificate Authority CSR is created
6
7
  * @deprecated Use waitUntilCertificateAuthorityCSRCreated instead. waitForCertificateAuthorityCSRCreated does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForCertificateAuthorityCSRCreated: (params: WaiterConfiguration<ACMPCAClient>, input: GetCertificateAuthorityCsrCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForCertificateAuthorityCSRCreated: (params: WaiterConfiguration<ACMPCAClient>, input: GetCertificateAuthorityCsrCommandInput) => Promise<WaiterResult<GetCertificateAuthorityCsrCommandOutput | ACMPCAServiceException>>;
9
10
  /**
10
11
  * Wait until a Certificate Authority CSR is created
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetCertificateAuthorityCsrCommand for polling.
13
14
  */
14
- export declare const waitUntilCertificateAuthorityCSRCreated: (params: WaiterConfiguration<ACMPCAClient>, input: GetCertificateAuthorityCsrCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilCertificateAuthorityCSRCreated: (params: WaiterConfiguration<ACMPCAClient>, input: GetCertificateAuthorityCsrCommandInput) => Promise<WaiterResult<GetCertificateAuthorityCsrCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
2
  import type { ACMPCAClient } from "../ACMPCAClient";
3
- import { type GetCertificateCommandInput } from "../commands/GetCertificateCommand";
3
+ import { type GetCertificateCommandInput, type GetCertificateCommandOutput } from "../commands/GetCertificateCommand";
4
+ import type { ACMPCAServiceException } from "../models/ACMPCAServiceException";
4
5
  /**
5
6
  * Wait until a certificate is issued
6
7
  * @deprecated Use waitUntilCertificateIssued instead. waitForCertificateIssued does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForCertificateIssued: (params: WaiterConfiguration<ACMPCAClient>, input: GetCertificateCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForCertificateIssued: (params: WaiterConfiguration<ACMPCAClient>, input: GetCertificateCommandInput) => Promise<WaiterResult<GetCertificateCommandOutput | ACMPCAServiceException>>;
9
10
  /**
10
11
  * Wait until a certificate is issued
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetCertificateCommand for polling.
13
14
  */
14
- export declare const waitUntilCertificateIssued: (params: WaiterConfiguration<ACMPCAClient>, input: GetCertificateCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilCertificateIssued: (params: WaiterConfiguration<ACMPCAClient>, input: GetCertificateCommandInput) => Promise<WaiterResult<GetCertificateCommandOutput>>;
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.1037.0",
4
+ "version": "3.1038.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-acm-pca",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.5",
25
- "@aws-sdk/credential-provider-node": "^3.972.36",
24
+ "@aws-sdk/core": "^3.974.6",
25
+ "@aws-sdk/credential-provider-node": "^3.972.37",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.35",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.13",
31
31
  "@aws-sdk/types": "^3.973.8",
32
32
  "@aws-sdk/util-endpoints": "^3.996.8",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.21",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
35
35
  "@smithy/config-resolver": "^4.4.17",
36
36
  "@smithy/core": "^3.23.17",
37
37
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -39,7 +39,7 @@
39
39
  "@smithy/invalid-dependency": "^4.2.14",
40
40
  "@smithy/middleware-content-length": "^4.2.14",
41
41
  "@smithy/middleware-endpoint": "^4.4.32",
42
- "@smithy/middleware-retry": "^4.5.5",
42
+ "@smithy/middleware-retry": "^4.5.6",
43
43
  "@smithy/middleware-serde": "^4.2.20",
44
44
  "@smithy/middleware-stack": "^4.2.14",
45
45
  "@smithy/node-config-provider": "^4.3.14",
@@ -55,9 +55,9 @@
55
55
  "@smithy/util-defaults-mode-node": "^4.2.54",
56
56
  "@smithy/util-endpoints": "^3.4.2",
57
57
  "@smithy/util-middleware": "^4.2.14",
58
- "@smithy/util-retry": "^4.3.4",
58
+ "@smithy/util-retry": "^4.3.5",
59
59
  "@smithy/util-utf8": "^4.2.2",
60
- "@smithy/util-waiter": "^4.2.16",
60
+ "@smithy/util-waiter": "^4.3.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {