@aws-sdk/client-acm-pca 3.35.0 → 3.36.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 (211) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/ACMPCA.js +0 -1
  3. package/dist-cjs/ACMPCAClient.js +0 -1
  4. package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -1
  5. package/dist-cjs/commands/CreateCertificateAuthorityCommand.js +0 -1
  6. package/dist-cjs/commands/CreatePermissionCommand.js +0 -1
  7. package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js +0 -1
  8. package/dist-cjs/commands/DeletePermissionCommand.js +0 -1
  9. package/dist-cjs/commands/DeletePolicyCommand.js +0 -1
  10. package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js +0 -1
  11. package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js +0 -1
  12. package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js +0 -1
  13. package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js +0 -1
  14. package/dist-cjs/commands/GetCertificateCommand.js +0 -1
  15. package/dist-cjs/commands/GetPolicyCommand.js +0 -1
  16. package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js +0 -1
  17. package/dist-cjs/commands/IssueCertificateCommand.js +0 -1
  18. package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js +0 -1
  19. package/dist-cjs/commands/ListPermissionsCommand.js +0 -1
  20. package/dist-cjs/commands/ListTagsCommand.js +0 -1
  21. package/dist-cjs/commands/PutPolicyCommand.js +0 -1
  22. package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js +0 -1
  23. package/dist-cjs/commands/RevokeCertificateCommand.js +0 -1
  24. package/dist-cjs/commands/TagCertificateAuthorityCommand.js +0 -1
  25. package/dist-cjs/commands/UntagCertificateAuthorityCommand.js +0 -1
  26. package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js +0 -1
  27. package/dist-cjs/endpoints.js +0 -1
  28. package/dist-cjs/index.js +0 -1
  29. package/dist-cjs/models/index.js +0 -1
  30. package/dist-cjs/models/models_0.js +0 -1
  31. package/dist-cjs/pagination/Interfaces.js +0 -1
  32. package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js +0 -1
  33. package/dist-cjs/pagination/ListPermissionsPaginator.js +0 -1
  34. package/dist-cjs/pagination/ListTagsPaginator.js +0 -1
  35. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  36. package/dist-cjs/runtimeConfig.browser.js +2 -3
  37. package/dist-cjs/runtimeConfig.js +3 -4
  38. package/dist-cjs/runtimeConfig.native.js +0 -1
  39. package/dist-cjs/runtimeConfig.shared.js +0 -1
  40. package/dist-cjs/waiters/waitForAuditReportCreated.js +0 -1
  41. package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js +0 -1
  42. package/dist-cjs/waiters/waitForCertificateIssued.js +0 -1
  43. package/dist-es/ACMPCA.js +0 -1
  44. package/dist-es/ACMPCAClient.js +0 -1
  45. package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -1
  46. package/dist-es/commands/CreateCertificateAuthorityCommand.js +0 -1
  47. package/dist-es/commands/CreatePermissionCommand.js +0 -1
  48. package/dist-es/commands/DeleteCertificateAuthorityCommand.js +0 -1
  49. package/dist-es/commands/DeletePermissionCommand.js +0 -1
  50. package/dist-es/commands/DeletePolicyCommand.js +0 -1
  51. package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js +0 -1
  52. package/dist-es/commands/DescribeCertificateAuthorityCommand.js +0 -1
  53. package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js +0 -1
  54. package/dist-es/commands/GetCertificateAuthorityCsrCommand.js +0 -1
  55. package/dist-es/commands/GetCertificateCommand.js +0 -1
  56. package/dist-es/commands/GetPolicyCommand.js +0 -1
  57. package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +0 -1
  58. package/dist-es/commands/IssueCertificateCommand.js +0 -1
  59. package/dist-es/commands/ListCertificateAuthoritiesCommand.js +0 -1
  60. package/dist-es/commands/ListPermissionsCommand.js +0 -1
  61. package/dist-es/commands/ListTagsCommand.js +0 -1
  62. package/dist-es/commands/PutPolicyCommand.js +0 -1
  63. package/dist-es/commands/RestoreCertificateAuthorityCommand.js +0 -1
  64. package/dist-es/commands/RevokeCertificateCommand.js +0 -1
  65. package/dist-es/commands/TagCertificateAuthorityCommand.js +0 -1
  66. package/dist-es/commands/UntagCertificateAuthorityCommand.js +0 -1
  67. package/dist-es/commands/UpdateCertificateAuthorityCommand.js +0 -1
  68. package/dist-es/endpoints.js +0 -1
  69. package/dist-es/index.js +0 -1
  70. package/dist-es/models/index.js +0 -1
  71. package/dist-es/models/models_0.js +0 -1
  72. package/dist-es/pagination/Interfaces.js +0 -1
  73. package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js +0 -1
  74. package/dist-es/pagination/ListPermissionsPaginator.js +0 -1
  75. package/dist-es/pagination/ListTagsPaginator.js +0 -1
  76. package/dist-es/protocols/Aws_json1_1.js +0 -1
  77. package/dist-es/runtimeConfig.browser.js +1 -2
  78. package/dist-es/runtimeConfig.js +2 -3
  79. package/dist-es/runtimeConfig.native.js +0 -1
  80. package/dist-es/runtimeConfig.shared.js +0 -1
  81. package/dist-es/waiters/waitForAuditReportCreated.js +0 -1
  82. package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js +0 -1
  83. package/dist-es/waiters/waitForCertificateIssued.js +0 -1
  84. package/package.json +34 -31
  85. package/dist-cjs/ACMPCA.js.map +0 -1
  86. package/dist-cjs/ACMPCAClient.js.map +0 -1
  87. package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
  88. package/dist-cjs/commands/CreateCertificateAuthorityCommand.js.map +0 -1
  89. package/dist-cjs/commands/CreatePermissionCommand.js.map +0 -1
  90. package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
  91. package/dist-cjs/commands/DeletePermissionCommand.js.map +0 -1
  92. package/dist-cjs/commands/DeletePolicyCommand.js.map +0 -1
  93. package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
  94. package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
  95. package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
  96. package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
  97. package/dist-cjs/commands/GetCertificateCommand.js.map +0 -1
  98. package/dist-cjs/commands/GetPolicyCommand.js.map +0 -1
  99. package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
  100. package/dist-cjs/commands/IssueCertificateCommand.js.map +0 -1
  101. package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
  102. package/dist-cjs/commands/ListPermissionsCommand.js.map +0 -1
  103. package/dist-cjs/commands/ListTagsCommand.js.map +0 -1
  104. package/dist-cjs/commands/PutPolicyCommand.js.map +0 -1
  105. package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
  106. package/dist-cjs/commands/RevokeCertificateCommand.js.map +0 -1
  107. package/dist-cjs/commands/TagCertificateAuthorityCommand.js.map +0 -1
  108. package/dist-cjs/commands/UntagCertificateAuthorityCommand.js.map +0 -1
  109. package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
  110. package/dist-cjs/endpoints.js.map +0 -1
  111. package/dist-cjs/index.js.map +0 -1
  112. package/dist-cjs/models/index.js.map +0 -1
  113. package/dist-cjs/models/models_0.js.map +0 -1
  114. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  115. package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
  116. package/dist-cjs/pagination/ListPermissionsPaginator.js.map +0 -1
  117. package/dist-cjs/pagination/ListTagsPaginator.js.map +0 -1
  118. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  119. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  120. package/dist-cjs/runtimeConfig.js.map +0 -1
  121. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  122. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  123. package/dist-cjs/waiters/waitForAuditReportCreated.js.map +0 -1
  124. package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
  125. package/dist-cjs/waiters/waitForCertificateIssued.js.map +0 -1
  126. package/dist-es/ACMPCA.js.map +0 -1
  127. package/dist-es/ACMPCAClient.js.map +0 -1
  128. package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
  129. package/dist-es/commands/CreateCertificateAuthorityCommand.js.map +0 -1
  130. package/dist-es/commands/CreatePermissionCommand.js.map +0 -1
  131. package/dist-es/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
  132. package/dist-es/commands/DeletePermissionCommand.js.map +0 -1
  133. package/dist-es/commands/DeletePolicyCommand.js.map +0 -1
  134. package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
  135. package/dist-es/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
  136. package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
  137. package/dist-es/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
  138. package/dist-es/commands/GetCertificateCommand.js.map +0 -1
  139. package/dist-es/commands/GetPolicyCommand.js.map +0 -1
  140. package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
  141. package/dist-es/commands/IssueCertificateCommand.js.map +0 -1
  142. package/dist-es/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
  143. package/dist-es/commands/ListPermissionsCommand.js.map +0 -1
  144. package/dist-es/commands/ListTagsCommand.js.map +0 -1
  145. package/dist-es/commands/PutPolicyCommand.js.map +0 -1
  146. package/dist-es/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
  147. package/dist-es/commands/RevokeCertificateCommand.js.map +0 -1
  148. package/dist-es/commands/TagCertificateAuthorityCommand.js.map +0 -1
  149. package/dist-es/commands/UntagCertificateAuthorityCommand.js.map +0 -1
  150. package/dist-es/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
  151. package/dist-es/endpoints.js.map +0 -1
  152. package/dist-es/index.js.map +0 -1
  153. package/dist-es/models/index.js.map +0 -1
  154. package/dist-es/models/models_0.js.map +0 -1
  155. package/dist-es/pagination/Interfaces.js.map +0 -1
  156. package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
  157. package/dist-es/pagination/ListPermissionsPaginator.js.map +0 -1
  158. package/dist-es/pagination/ListTagsPaginator.js.map +0 -1
  159. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  160. package/dist-es/runtimeConfig.browser.js.map +0 -1
  161. package/dist-es/runtimeConfig.js.map +0 -1
  162. package/dist-es/runtimeConfig.native.js.map +0 -1
  163. package/dist-es/runtimeConfig.shared.js.map +0 -1
  164. package/dist-es/waiters/waitForAuditReportCreated.js.map +0 -1
  165. package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
  166. package/dist-es/waiters/waitForCertificateIssued.js.map +0 -1
  167. package/jest.config.js +0 -4
  168. package/src/ACMPCA.ts +0 -1323
  169. package/src/ACMPCAClient.ts +0 -361
  170. package/src/commands/CreateCertificateAuthorityAuditReportCommand.ts +0 -122
  171. package/src/commands/CreateCertificateAuthorityCommand.ts +0 -118
  172. package/src/commands/CreatePermissionCommand.ts +0 -121
  173. package/src/commands/DeleteCertificateAuthorityCommand.ts +0 -117
  174. package/src/commands/DeletePermissionCommand.ts +0 -123
  175. package/src/commands/DeletePolicyCommand.ts +0 -129
  176. package/src/commands/DescribeCertificateAuthorityAuditReportCommand.ts +0 -113
  177. package/src/commands/DescribeCertificateAuthorityCommand.ts +0 -140
  178. package/src/commands/GetCertificateAuthorityCertificateCommand.ts +0 -109
  179. package/src/commands/GetCertificateAuthorityCsrCommand.ts +0 -102
  180. package/src/commands/GetCertificateCommand.ts +0 -102
  181. package/src/commands/GetPolicyCommand.ts +0 -122
  182. package/src/commands/ImportCertificateAuthorityCertificateCommand.ts +0 -229
  183. package/src/commands/IssueCertificateCommand.ts +0 -102
  184. package/src/commands/ListCertificateAuthoritiesCommand.ts +0 -98
  185. package/src/commands/ListPermissionsCommand.ts +0 -122
  186. package/src/commands/ListTagsCommand.ts +0 -91
  187. package/src/commands/PutPolicyCommand.ts +0 -123
  188. package/src/commands/RestoreCertificateAuthorityCommand.ts +0 -108
  189. package/src/commands/RevokeCertificateCommand.ts +0 -114
  190. package/src/commands/TagCertificateAuthorityCommand.ts +0 -102
  191. package/src/commands/UntagCertificateAuthorityCommand.ts +0 -102
  192. package/src/commands/UpdateCertificateAuthorityCommand.ts +0 -108
  193. package/src/endpoints.ts +0 -91
  194. package/src/index.ts +0 -33
  195. package/src/models/index.ts +0 -1
  196. package/src/models/models_0.ts +0 -2571
  197. package/src/pagination/Interfaces.ts +0 -8
  198. package/src/pagination/ListCertificateAuthoritiesPaginator.ts +0 -59
  199. package/src/pagination/ListPermissionsPaginator.ts +0 -59
  200. package/src/pagination/ListTagsPaginator.ts +0 -55
  201. package/src/protocols/Aws_json1_1.ts +0 -3845
  202. package/src/runtimeConfig.browser.ts +0 -41
  203. package/src/runtimeConfig.native.ts +0 -17
  204. package/src/runtimeConfig.shared.ts +0 -17
  205. package/src/runtimeConfig.ts +0 -46
  206. package/src/waiters/waitForAuditReportCreated.ts +0 -61
  207. package/src/waiters/waitForCertificateAuthorityCSRCreated.ts +0 -49
  208. package/src/waiters/waitForCertificateIssued.ts +0 -43
  209. package/tsconfig.es.json +0 -10
  210. package/tsconfig.json +0 -33
  211. package/tsconfig.types.json +0 -9
@@ -1,41 +0,0 @@
1
- import { Sha256 } from "@aws-crypto/sha256-browser";
2
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
3
- import { invalidProvider } from "@aws-sdk/invalid-dependency";
4
- import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
5
- import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
6
- import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
7
- import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
8
- import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
9
-
10
- // @ts-ignore: package.json will be imported from dist folders
11
- import packageInfo from "../package.json";
12
- import { ACMPCAClientConfig } from "./ACMPCAClient";
13
- import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
14
-
15
- /**
16
- * @internal
17
- */
18
- export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
19
- const clientSharedValues = getSharedRuntimeConfig(config);
20
- return {
21
- ...clientSharedValues,
22
- ...config,
23
- runtime: "browser",
24
- base64Decoder: config?.base64Decoder ?? fromBase64,
25
- base64Encoder: config?.base64Encoder ?? toBase64,
26
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
27
- credentialDefaultProvider:
28
- config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
29
- defaultUserAgentProvider:
30
- config?.defaultUserAgentProvider ??
31
- defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
32
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
33
- region: config?.region ?? invalidProvider("Region is missing"),
34
- requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
35
- retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
36
- sha256: config?.sha256 ?? Sha256,
37
- streamCollector: config?.streamCollector ?? streamCollector,
38
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
39
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
40
- };
41
- };
@@ -1,17 +0,0 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
-
3
- import { ACMPCAClientConfig } from "./ACMPCAClient";
4
- import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
5
-
6
- /**
7
- * @internal
8
- */
9
- export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
10
- const browserDefaults = getBrowserRuntimeConfig(config);
11
- return {
12
- ...browserDefaults,
13
- ...config,
14
- runtime: "react-native",
15
- sha256: config?.sha256 ?? Sha256,
16
- };
17
- };
@@ -1,17 +0,0 @@
1
- import { Logger as __Logger } from "@aws-sdk/types";
2
- import { parseUrl } from "@aws-sdk/url-parser";
3
-
4
- import { ACMPCAClientConfig } from "./ACMPCAClient";
5
- import { defaultRegionInfoProvider } from "./endpoints";
6
-
7
- /**
8
- * @internal
9
- */
10
- export const getRuntimeConfig = (config: ACMPCAClientConfig) => ({
11
- apiVersion: "2017-08-22",
12
- disableHostPrefix: config?.disableHostPrefix ?? false,
13
- logger: config?.logger ?? ({} as __Logger),
14
- regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
15
- serviceId: config?.serviceId ?? "ACM PCA",
16
- urlParser: config?.urlParser ?? parseUrl,
17
- });
@@ -1,46 +0,0 @@
1
- import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
2
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
3
- import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { Hash } from "@aws-sdk/hash-node";
5
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
6
- import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
7
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
8
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
9
- import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
10
- import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
11
- import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
12
- import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
13
-
14
- // @ts-ignore: package.json will be imported from dist folders
15
- import packageInfo from "../package.json";
16
- import { ACMPCAClientConfig } from "./ACMPCAClient";
17
- import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
18
-
19
- /**
20
- * @internal
21
- */
22
- export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
23
- emitWarningIfUnsupportedVersion(process.version);
24
- const clientSharedValues = getSharedRuntimeConfig(config);
25
- return {
26
- ...clientSharedValues,
27
- ...config,
28
- runtime: "node",
29
- base64Decoder: config?.base64Decoder ?? fromBase64,
30
- base64Encoder: config?.base64Encoder ?? toBase64,
31
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
- credentialDefaultProvider:
33
- config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
34
- defaultUserAgentProvider:
35
- config?.defaultUserAgentProvider ??
36
- defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
37
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
40
- retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
41
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
- streamCollector: config?.streamCollector ?? streamCollector,
43
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
44
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
45
- };
46
- };
@@ -1,61 +0,0 @@
1
- import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
2
-
3
- import { ACMPCAClient } from "../ACMPCAClient";
4
- import {
5
- DescribeCertificateAuthorityAuditReportCommand,
6
- DescribeCertificateAuthorityAuditReportCommandInput,
7
- } from "../commands/DescribeCertificateAuthorityAuditReportCommand";
8
-
9
- const checkState = async (
10
- client: ACMPCAClient,
11
- input: DescribeCertificateAuthorityAuditReportCommandInput
12
- ): Promise<WaiterResult> => {
13
- let reason;
14
- try {
15
- const result: any = await client.send(new DescribeCertificateAuthorityAuditReportCommand(input));
16
- reason = result;
17
- try {
18
- const returnComparator = () => {
19
- return result.AuditReportStatus;
20
- };
21
- if (returnComparator() === "SUCCESS") {
22
- return { state: WaiterState.SUCCESS, reason };
23
- }
24
- } catch (e) {}
25
- try {
26
- const returnComparator = () => {
27
- return result.AuditReportStatus;
28
- };
29
- if (returnComparator() === "FAILED") {
30
- return { state: WaiterState.FAILURE, reason };
31
- }
32
- } catch (e) {}
33
- } catch (exception) {
34
- reason = exception;
35
- }
36
- return { state: WaiterState.RETRY, reason };
37
- };
38
- /**
39
- * Wait until a Audit Report is created
40
- * @deprecated Use waitUntilAuditReportCreated instead. waitForAuditReportCreated does not throw error in non-success cases.
41
- */
42
- export const waitForAuditReportCreated = async (
43
- params: WaiterConfiguration<ACMPCAClient>,
44
- input: DescribeCertificateAuthorityAuditReportCommandInput
45
- ): Promise<WaiterResult> => {
46
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
47
- return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
- };
49
- /**
50
- * Wait until a Audit Report is created
51
- * @param params - Waiter configuration options.
52
- * @param input - The input to DescribeCertificateAuthorityAuditReportCommand for polling.
53
- */
54
- export const waitUntilAuditReportCreated = async (
55
- params: WaiterConfiguration<ACMPCAClient>,
56
- input: DescribeCertificateAuthorityAuditReportCommandInput
57
- ): Promise<WaiterResult> => {
58
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
59
- const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
60
- return checkExceptions(result);
61
- };
@@ -1,49 +0,0 @@
1
- import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
2
-
3
- import { ACMPCAClient } from "../ACMPCAClient";
4
- import {
5
- GetCertificateAuthorityCsrCommand,
6
- GetCertificateAuthorityCsrCommandInput,
7
- } from "../commands/GetCertificateAuthorityCsrCommand";
8
-
9
- const checkState = async (
10
- client: ACMPCAClient,
11
- input: GetCertificateAuthorityCsrCommandInput
12
- ): Promise<WaiterResult> => {
13
- let reason;
14
- try {
15
- const result: any = await client.send(new GetCertificateAuthorityCsrCommand(input));
16
- reason = result;
17
- return { state: WaiterState.SUCCESS, reason };
18
- } catch (exception) {
19
- reason = exception;
20
- if (exception.name && exception.name == "RequestInProgressException") {
21
- return { state: WaiterState.RETRY, reason };
22
- }
23
- }
24
- return { state: WaiterState.RETRY, reason };
25
- };
26
- /**
27
- * Wait until a Certificate Authority CSR is created
28
- * @deprecated Use waitUntilCertificateAuthorityCSRCreated instead. waitForCertificateAuthorityCSRCreated does not throw error in non-success cases.
29
- */
30
- export const waitForCertificateAuthorityCSRCreated = async (
31
- params: WaiterConfiguration<ACMPCAClient>,
32
- input: GetCertificateAuthorityCsrCommandInput
33
- ): Promise<WaiterResult> => {
34
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
35
- return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
36
- };
37
- /**
38
- * Wait until a Certificate Authority CSR is created
39
- * @param params - Waiter configuration options.
40
- * @param input - The input to GetCertificateAuthorityCsrCommand for polling.
41
- */
42
- export const waitUntilCertificateAuthorityCSRCreated = async (
43
- params: WaiterConfiguration<ACMPCAClient>,
44
- input: GetCertificateAuthorityCsrCommandInput
45
- ): Promise<WaiterResult> => {
46
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
47
- const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
- return checkExceptions(result);
49
- };
@@ -1,43 +0,0 @@
1
- import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
2
-
3
- import { ACMPCAClient } from "../ACMPCAClient";
4
- import { GetCertificateCommand, GetCertificateCommandInput } from "../commands/GetCertificateCommand";
5
-
6
- const checkState = async (client: ACMPCAClient, input: GetCertificateCommandInput): Promise<WaiterResult> => {
7
- let reason;
8
- try {
9
- const result: any = await client.send(new GetCertificateCommand(input));
10
- reason = result;
11
- return { state: WaiterState.SUCCESS, reason };
12
- } catch (exception) {
13
- reason = exception;
14
- if (exception.name && exception.name == "RequestInProgressException") {
15
- return { state: WaiterState.RETRY, reason };
16
- }
17
- }
18
- return { state: WaiterState.RETRY, reason };
19
- };
20
- /**
21
- * Wait until a certificate is issued
22
- * @deprecated Use waitUntilCertificateIssued instead. waitForCertificateIssued does not throw error in non-success cases.
23
- */
24
- export const waitForCertificateIssued = async (
25
- params: WaiterConfiguration<ACMPCAClient>,
26
- input: GetCertificateCommandInput
27
- ): Promise<WaiterResult> => {
28
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
29
- return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
30
- };
31
- /**
32
- * Wait until a certificate is issued
33
- * @param params - Waiter configuration options.
34
- * @param input - The input to GetCertificateCommand for polling.
35
- */
36
- export const waitUntilCertificateIssued = async (
37
- params: WaiterConfiguration<ACMPCAClient>,
38
- input: GetCertificateCommandInput
39
- ): Promise<WaiterResult> => {
40
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
41
- const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
42
- return checkExceptions(result);
43
- };
package/tsconfig.es.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "./tsconfig",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "module": "esnext",
6
- "moduleResolution": "node",
7
- "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
8
- "outDir": "dist-es"
9
- }
10
- }
package/tsconfig.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "alwaysStrict": true,
4
- "target": "ES2018",
5
- "module": "commonjs",
6
- "strict": true,
7
- "sourceMap": true,
8
- "downlevelIteration": true,
9
- "importHelpers": true,
10
- "noEmitHelpers": true,
11
- "incremental": true,
12
- "resolveJsonModule": true,
13
- "esModuleInterop": true,
14
- "rootDir": "src",
15
- "outDir": "dist-cjs",
16
- "removeComments": true
17
- },
18
- "typedocOptions": {
19
- "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
20
- "excludeNotExported": true,
21
- "excludePrivate": true,
22
- "hideGenerator": true,
23
- "ignoreCompilerErrors": true,
24
- "includeDeclarations": true,
25
- "stripInternal": true,
26
- "readme": "README.md",
27
- "mode": "file",
28
- "out": "docs",
29
- "theme": "minimal",
30
- "plugin": ["@aws-sdk/client-documentation-generator"]
31
- },
32
- "exclude": ["test/**/*"]
33
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig",
3
- "compilerOptions": {
4
- "removeComments": false,
5
- "declaration": true,
6
- "declarationDir": "dist-types"
7
- },
8
- "exclude": ["test/**/*", "dist-types/**/*"]
9
- }