@aws-sdk/client-acm-pca 3.35.0 → 3.38.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 (258) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/ACMPCA.js +0 -21
  3. package/dist-cjs/ACMPCAClient.js +0 -26
  4. package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -40
  5. package/dist-cjs/commands/CreateCertificateAuthorityCommand.js +0 -45
  6. package/dist-cjs/commands/CreatePermissionCommand.js +0 -51
  7. package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js +0 -44
  8. package/dist-cjs/commands/DeletePermissionCommand.js +0 -53
  9. package/dist-cjs/commands/DeletePolicyCommand.js +0 -59
  10. package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js +0 -28
  11. package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js +0 -65
  12. package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js +0 -28
  13. package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js +0 -29
  14. package/dist-cjs/commands/GetCertificateCommand.js +0 -32
  15. package/dist-cjs/commands/GetPolicyCommand.js +0 -55
  16. package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js +0 -152
  17. package/dist-cjs/commands/IssueCertificateCommand.js +0 -32
  18. package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js +0 -25
  19. package/dist-cjs/commands/ListPermissionsCommand.js +0 -52
  20. package/dist-cjs/commands/ListTagsCommand.js +0 -28
  21. package/dist-cjs/commands/PutPolicyCommand.js +0 -56
  22. package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js +0 -35
  23. package/dist-cjs/commands/RevokeCertificateCommand.js +0 -44
  24. package/dist-cjs/commands/TagCertificateAuthorityCommand.js +0 -32
  25. package/dist-cjs/commands/UntagCertificateAuthorityCommand.js +0 -29
  26. package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js +0 -35
  27. package/dist-cjs/commands/index.js +26 -0
  28. package/dist-cjs/endpoints.js +1 -2
  29. package/dist-cjs/index.js +5 -33
  30. package/dist-cjs/models/index.js +0 -1
  31. package/dist-cjs/models/models_0.js +0 -229
  32. package/dist-cjs/pagination/Interfaces.js +0 -1
  33. package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js +0 -11
  34. package/dist-cjs/pagination/ListPermissionsPaginator.js +0 -11
  35. package/dist-cjs/pagination/ListTagsPaginator.js +0 -11
  36. package/dist-cjs/pagination/index.js +7 -0
  37. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  38. package/dist-cjs/runtimeConfig.browser.js +1 -6
  39. package/dist-cjs/runtimeConfig.js +2 -7
  40. package/dist-cjs/runtimeConfig.native.js +0 -4
  41. package/dist-cjs/runtimeConfig.shared.js +0 -4
  42. package/dist-cjs/waiters/index.js +6 -0
  43. package/dist-cjs/waiters/waitForAuditReportCreated.js +0 -10
  44. package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js +0 -10
  45. package/dist-cjs/waiters/waitForCertificateIssued.js +0 -10
  46. package/dist-es/ACMPCA.js +0 -1
  47. package/dist-es/ACMPCAClient.js +0 -1
  48. package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -1
  49. package/dist-es/commands/CreateCertificateAuthorityCommand.js +0 -1
  50. package/dist-es/commands/CreatePermissionCommand.js +0 -1
  51. package/dist-es/commands/DeleteCertificateAuthorityCommand.js +0 -1
  52. package/dist-es/commands/DeletePermissionCommand.js +0 -1
  53. package/dist-es/commands/DeletePolicyCommand.js +0 -1
  54. package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js +0 -1
  55. package/dist-es/commands/DescribeCertificateAuthorityCommand.js +0 -1
  56. package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js +0 -1
  57. package/dist-es/commands/GetCertificateAuthorityCsrCommand.js +0 -1
  58. package/dist-es/commands/GetCertificateCommand.js +0 -1
  59. package/dist-es/commands/GetPolicyCommand.js +0 -1
  60. package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +0 -1
  61. package/dist-es/commands/IssueCertificateCommand.js +0 -1
  62. package/dist-es/commands/ListCertificateAuthoritiesCommand.js +0 -1
  63. package/dist-es/commands/ListPermissionsCommand.js +0 -1
  64. package/dist-es/commands/ListTagsCommand.js +0 -1
  65. package/dist-es/commands/PutPolicyCommand.js +0 -1
  66. package/dist-es/commands/RestoreCertificateAuthorityCommand.js +0 -1
  67. package/dist-es/commands/RevokeCertificateCommand.js +0 -1
  68. package/dist-es/commands/TagCertificateAuthorityCommand.js +0 -1
  69. package/dist-es/commands/UntagCertificateAuthorityCommand.js +0 -1
  70. package/dist-es/commands/UpdateCertificateAuthorityCommand.js +0 -1
  71. package/dist-es/commands/index.js +23 -0
  72. package/dist-es/endpoints.js +1 -2
  73. package/dist-es/index.js +5 -33
  74. package/dist-es/models/index.js +0 -1
  75. package/dist-es/models/models_0.js +0 -1
  76. package/dist-es/pagination/Interfaces.js +0 -1
  77. package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js +0 -1
  78. package/dist-es/pagination/ListPermissionsPaginator.js +0 -1
  79. package/dist-es/pagination/ListTagsPaginator.js +0 -1
  80. package/dist-es/pagination/index.js +4 -0
  81. package/dist-es/protocols/Aws_json1_1.js +0 -1
  82. package/dist-es/runtimeConfig.browser.js +1 -2
  83. package/dist-es/runtimeConfig.js +2 -3
  84. package/dist-es/runtimeConfig.native.js +0 -1
  85. package/dist-es/runtimeConfig.shared.js +0 -1
  86. package/dist-es/waiters/index.js +3 -0
  87. package/dist-es/waiters/waitForAuditReportCreated.js +0 -1
  88. package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js +0 -1
  89. package/dist-es/waiters/waitForCertificateIssued.js +0 -1
  90. package/dist-types/commands/index.d.ts +23 -0
  91. package/dist-types/index.d.ts +5 -32
  92. package/dist-types/pagination/index.d.ts +4 -0
  93. package/dist-types/ts3.4/ACMPCA.d.ts +24 -563
  94. package/dist-types/ts3.4/ACMPCAClient.d.ts +24 -106
  95. package/dist-types/ts3.4/commands/CreateCertificateAuthorityAuditReportCommand.d.ts +2 -35
  96. package/dist-types/ts3.4/commands/CreateCertificateAuthorityCommand.d.ts +2 -40
  97. package/dist-types/ts3.4/commands/CreatePermissionCommand.d.ts +2 -46
  98. package/dist-types/ts3.4/commands/DeleteCertificateAuthorityCommand.d.ts +2 -39
  99. package/dist-types/ts3.4/commands/DeletePermissionCommand.d.ts +2 -48
  100. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +2 -54
  101. package/dist-types/ts3.4/commands/DescribeCertificateAuthorityAuditReportCommand.d.ts +2 -23
  102. package/dist-types/ts3.4/commands/DescribeCertificateAuthorityCommand.d.ts +2 -60
  103. package/dist-types/ts3.4/commands/GetCertificateAuthorityCertificateCommand.d.ts +2 -23
  104. package/dist-types/ts3.4/commands/GetCertificateAuthorityCsrCommand.d.ts +2 -24
  105. package/dist-types/ts3.4/commands/GetCertificateCommand.d.ts +2 -27
  106. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +2 -50
  107. package/dist-types/ts3.4/commands/ImportCertificateAuthorityCertificateCommand.d.ts +2 -147
  108. package/dist-types/ts3.4/commands/IssueCertificateCommand.d.ts +2 -27
  109. package/dist-types/ts3.4/commands/ListCertificateAuthoritiesCommand.d.ts +2 -20
  110. package/dist-types/ts3.4/commands/ListPermissionsCommand.d.ts +2 -47
  111. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -23
  112. package/dist-types/ts3.4/commands/PutPolicyCommand.d.ts +2 -51
  113. package/dist-types/ts3.4/commands/RestoreCertificateAuthorityCommand.d.ts +2 -30
  114. package/dist-types/ts3.4/commands/RevokeCertificateCommand.d.ts +2 -39
  115. package/dist-types/ts3.4/commands/TagCertificateAuthorityCommand.d.ts +2 -27
  116. package/dist-types/ts3.4/commands/UntagCertificateAuthorityCommand.d.ts +2 -24
  117. package/dist-types/ts3.4/commands/UpdateCertificateAuthorityCommand.d.ts +2 -30
  118. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  119. package/dist-types/ts3.4/index.d.ts +5 -32
  120. package/dist-types/ts3.4/models/models_0.d.ts +289 -1432
  121. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  122. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  123. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  124. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  125. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  126. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  127. package/dist-types/ts3.4/waiters/waitForAuditReportCreated.d.ts +2 -9
  128. package/dist-types/ts3.4/waiters/waitForCertificateAuthorityCSRCreated.d.ts +2 -9
  129. package/dist-types/ts3.4/waiters/waitForCertificateIssued.d.ts +2 -9
  130. package/dist-types/waiters/index.d.ts +3 -0
  131. package/package.json +34 -31
  132. package/dist-cjs/ACMPCA.js.map +0 -1
  133. package/dist-cjs/ACMPCAClient.js.map +0 -1
  134. package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
  135. package/dist-cjs/commands/CreateCertificateAuthorityCommand.js.map +0 -1
  136. package/dist-cjs/commands/CreatePermissionCommand.js.map +0 -1
  137. package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
  138. package/dist-cjs/commands/DeletePermissionCommand.js.map +0 -1
  139. package/dist-cjs/commands/DeletePolicyCommand.js.map +0 -1
  140. package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
  141. package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
  142. package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
  143. package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
  144. package/dist-cjs/commands/GetCertificateCommand.js.map +0 -1
  145. package/dist-cjs/commands/GetPolicyCommand.js.map +0 -1
  146. package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
  147. package/dist-cjs/commands/IssueCertificateCommand.js.map +0 -1
  148. package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
  149. package/dist-cjs/commands/ListPermissionsCommand.js.map +0 -1
  150. package/dist-cjs/commands/ListTagsCommand.js.map +0 -1
  151. package/dist-cjs/commands/PutPolicyCommand.js.map +0 -1
  152. package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
  153. package/dist-cjs/commands/RevokeCertificateCommand.js.map +0 -1
  154. package/dist-cjs/commands/TagCertificateAuthorityCommand.js.map +0 -1
  155. package/dist-cjs/commands/UntagCertificateAuthorityCommand.js.map +0 -1
  156. package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
  157. package/dist-cjs/endpoints.js.map +0 -1
  158. package/dist-cjs/index.js.map +0 -1
  159. package/dist-cjs/models/index.js.map +0 -1
  160. package/dist-cjs/models/models_0.js.map +0 -1
  161. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  162. package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
  163. package/dist-cjs/pagination/ListPermissionsPaginator.js.map +0 -1
  164. package/dist-cjs/pagination/ListTagsPaginator.js.map +0 -1
  165. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  166. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  167. package/dist-cjs/runtimeConfig.js.map +0 -1
  168. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  169. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  170. package/dist-cjs/waiters/waitForAuditReportCreated.js.map +0 -1
  171. package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
  172. package/dist-cjs/waiters/waitForCertificateIssued.js.map +0 -1
  173. package/dist-es/ACMPCA.js.map +0 -1
  174. package/dist-es/ACMPCAClient.js.map +0 -1
  175. package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
  176. package/dist-es/commands/CreateCertificateAuthorityCommand.js.map +0 -1
  177. package/dist-es/commands/CreatePermissionCommand.js.map +0 -1
  178. package/dist-es/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
  179. package/dist-es/commands/DeletePermissionCommand.js.map +0 -1
  180. package/dist-es/commands/DeletePolicyCommand.js.map +0 -1
  181. package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
  182. package/dist-es/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
  183. package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
  184. package/dist-es/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
  185. package/dist-es/commands/GetCertificateCommand.js.map +0 -1
  186. package/dist-es/commands/GetPolicyCommand.js.map +0 -1
  187. package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
  188. package/dist-es/commands/IssueCertificateCommand.js.map +0 -1
  189. package/dist-es/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
  190. package/dist-es/commands/ListPermissionsCommand.js.map +0 -1
  191. package/dist-es/commands/ListTagsCommand.js.map +0 -1
  192. package/dist-es/commands/PutPolicyCommand.js.map +0 -1
  193. package/dist-es/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
  194. package/dist-es/commands/RevokeCertificateCommand.js.map +0 -1
  195. package/dist-es/commands/TagCertificateAuthorityCommand.js.map +0 -1
  196. package/dist-es/commands/UntagCertificateAuthorityCommand.js.map +0 -1
  197. package/dist-es/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
  198. package/dist-es/endpoints.js.map +0 -1
  199. package/dist-es/index.js.map +0 -1
  200. package/dist-es/models/index.js.map +0 -1
  201. package/dist-es/models/models_0.js.map +0 -1
  202. package/dist-es/pagination/Interfaces.js.map +0 -1
  203. package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
  204. package/dist-es/pagination/ListPermissionsPaginator.js.map +0 -1
  205. package/dist-es/pagination/ListTagsPaginator.js.map +0 -1
  206. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  207. package/dist-es/runtimeConfig.browser.js.map +0 -1
  208. package/dist-es/runtimeConfig.js.map +0 -1
  209. package/dist-es/runtimeConfig.native.js.map +0 -1
  210. package/dist-es/runtimeConfig.shared.js.map +0 -1
  211. package/dist-es/waiters/waitForAuditReportCreated.js.map +0 -1
  212. package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
  213. package/dist-es/waiters/waitForCertificateIssued.js.map +0 -1
  214. package/jest.config.js +0 -4
  215. package/src/ACMPCA.ts +0 -1323
  216. package/src/ACMPCAClient.ts +0 -361
  217. package/src/commands/CreateCertificateAuthorityAuditReportCommand.ts +0 -122
  218. package/src/commands/CreateCertificateAuthorityCommand.ts +0 -118
  219. package/src/commands/CreatePermissionCommand.ts +0 -121
  220. package/src/commands/DeleteCertificateAuthorityCommand.ts +0 -117
  221. package/src/commands/DeletePermissionCommand.ts +0 -123
  222. package/src/commands/DeletePolicyCommand.ts +0 -129
  223. package/src/commands/DescribeCertificateAuthorityAuditReportCommand.ts +0 -113
  224. package/src/commands/DescribeCertificateAuthorityCommand.ts +0 -140
  225. package/src/commands/GetCertificateAuthorityCertificateCommand.ts +0 -109
  226. package/src/commands/GetCertificateAuthorityCsrCommand.ts +0 -102
  227. package/src/commands/GetCertificateCommand.ts +0 -102
  228. package/src/commands/GetPolicyCommand.ts +0 -122
  229. package/src/commands/ImportCertificateAuthorityCertificateCommand.ts +0 -229
  230. package/src/commands/IssueCertificateCommand.ts +0 -102
  231. package/src/commands/ListCertificateAuthoritiesCommand.ts +0 -98
  232. package/src/commands/ListPermissionsCommand.ts +0 -122
  233. package/src/commands/ListTagsCommand.ts +0 -91
  234. package/src/commands/PutPolicyCommand.ts +0 -123
  235. package/src/commands/RestoreCertificateAuthorityCommand.ts +0 -108
  236. package/src/commands/RevokeCertificateCommand.ts +0 -114
  237. package/src/commands/TagCertificateAuthorityCommand.ts +0 -102
  238. package/src/commands/UntagCertificateAuthorityCommand.ts +0 -102
  239. package/src/commands/UpdateCertificateAuthorityCommand.ts +0 -108
  240. package/src/endpoints.ts +0 -91
  241. package/src/index.ts +0 -33
  242. package/src/models/index.ts +0 -1
  243. package/src/models/models_0.ts +0 -2571
  244. package/src/pagination/Interfaces.ts +0 -8
  245. package/src/pagination/ListCertificateAuthoritiesPaginator.ts +0 -59
  246. package/src/pagination/ListPermissionsPaginator.ts +0 -59
  247. package/src/pagination/ListTagsPaginator.ts +0 -55
  248. package/src/protocols/Aws_json1_1.ts +0 -3845
  249. package/src/runtimeConfig.browser.ts +0 -41
  250. package/src/runtimeConfig.native.ts +0 -17
  251. package/src/runtimeConfig.shared.ts +0 -17
  252. package/src/runtimeConfig.ts +0 -46
  253. package/src/waiters/waitForAuditReportCreated.ts +0 -61
  254. package/src/waiters/waitForCertificateAuthorityCSRCreated.ts +0 -49
  255. package/src/waiters/waitForCertificateIssued.ts +0 -43
  256. package/tsconfig.es.json +0 -10
  257. package/tsconfig.json +0 -33
  258. package/tsconfig.types.json +0 -9
@@ -1,140 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
15
- import { DescribeCertificateAuthorityRequest, DescribeCertificateAuthorityResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DescribeCertificateAuthorityCommand,
18
- serializeAws_json1_1DescribeCertificateAuthorityCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DescribeCertificateAuthorityCommandInput extends DescribeCertificateAuthorityRequest {}
22
- export interface DescribeCertificateAuthorityCommandOutput
23
- extends DescribeCertificateAuthorityResponse,
24
- __MetadataBearer {}
25
-
26
- /**
27
- * <p>Lists information about your private certificate authority (CA) or one that has been
28
- * shared with you. You specify the private CA on input by its ARN (Amazon Resource Name).
29
- * The output contains the status of your CA. This can be any of the following: </p>
30
- * <ul>
31
- * <li>
32
- * <p>
33
- * <code>CREATING</code> - ACM Private CA is creating your private certificate
34
- * authority.</p>
35
- * </li>
36
- * <li>
37
- * <p>
38
- * <code>PENDING_CERTIFICATE</code> - The certificate is pending. You must use
39
- * your ACM Private CA-hosted or on-premises root or subordinate CA to sign your private CA
40
- * CSR and then import it into PCA. </p>
41
- * </li>
42
- * <li>
43
- * <p>
44
- * <code>ACTIVE</code> - Your private CA is active.</p>
45
- * </li>
46
- * <li>
47
- * <p>
48
- * <code>DISABLED</code> - Your private CA has been disabled.</p>
49
- * </li>
50
- * <li>
51
- * <p>
52
- * <code>EXPIRED</code> - Your private CA certificate has expired.</p>
53
- * </li>
54
- * <li>
55
- * <p>
56
- * <code>FAILED</code> - Your private CA has failed. Your CA can fail because of
57
- * problems such a network outage or back-end AWS failure or other errors. A
58
- * failed CA can never return to the pending state. You must create a new CA.
59
- * </p>
60
- * </li>
61
- * <li>
62
- * <p>
63
- * <code>DELETED</code> - Your private CA is within the restoration period, after
64
- * which it is permanently deleted. The length of time remaining in the CA's
65
- * restoration period is also included in this action's output.</p>
66
- * </li>
67
- * </ul>
68
- * @example
69
- * Use a bare-bones client and the command you need to make an API call.
70
- * ```javascript
71
- * import { ACMPCAClient, DescribeCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
72
- * // const { ACMPCAClient, DescribeCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
73
- * const client = new ACMPCAClient(config);
74
- * const command = new DescribeCertificateAuthorityCommand(input);
75
- * const response = await client.send(command);
76
- * ```
77
- *
78
- * @see {@link DescribeCertificateAuthorityCommandInput} for command's `input` shape.
79
- * @see {@link DescribeCertificateAuthorityCommandOutput} for command's `response` shape.
80
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
81
- *
82
- */
83
- export class DescribeCertificateAuthorityCommand extends $Command<
84
- DescribeCertificateAuthorityCommandInput,
85
- DescribeCertificateAuthorityCommandOutput,
86
- ACMPCAClientResolvedConfig
87
- > {
88
- // Start section: command_properties
89
- // End section: command_properties
90
-
91
- constructor(readonly input: DescribeCertificateAuthorityCommandInput) {
92
- // Start section: command_constructor
93
- super();
94
- // End section: command_constructor
95
- }
96
-
97
- /**
98
- * @internal
99
- */
100
- resolveMiddleware(
101
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
102
- configuration: ACMPCAClientResolvedConfig,
103
- options?: __HttpHandlerOptions
104
- ): Handler<DescribeCertificateAuthorityCommandInput, DescribeCertificateAuthorityCommandOutput> {
105
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
106
-
107
- const stack = clientStack.concat(this.middlewareStack);
108
-
109
- const { logger } = configuration;
110
- const clientName = "ACMPCAClient";
111
- const commandName = "DescribeCertificateAuthorityCommand";
112
- const handlerExecutionContext: HandlerExecutionContext = {
113
- logger,
114
- clientName,
115
- commandName,
116
- inputFilterSensitiveLog: DescribeCertificateAuthorityRequest.filterSensitiveLog,
117
- outputFilterSensitiveLog: DescribeCertificateAuthorityResponse.filterSensitiveLog,
118
- };
119
- const { requestHandler } = configuration;
120
- return stack.resolve(
121
- (request: FinalizeHandlerArguments<any>) =>
122
- requestHandler.handle(request.request as __HttpRequest, options || {}),
123
- handlerExecutionContext
124
- );
125
- }
126
-
127
- private serialize(input: DescribeCertificateAuthorityCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
128
- return serializeAws_json1_1DescribeCertificateAuthorityCommand(input, context);
129
- }
130
-
131
- private deserialize(
132
- output: __HttpResponse,
133
- context: __SerdeContext
134
- ): Promise<DescribeCertificateAuthorityCommandOutput> {
135
- return deserializeAws_json1_1DescribeCertificateAuthorityCommand(output, context);
136
- }
137
-
138
- // Start section: command_body_extra
139
- // End section: command_body_extra
140
- }
@@ -1,109 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
15
- import {
16
- GetCertificateAuthorityCertificateRequest,
17
- GetCertificateAuthorityCertificateResponse,
18
- } from "../models/models_0";
19
- import {
20
- deserializeAws_json1_1GetCertificateAuthorityCertificateCommand,
21
- serializeAws_json1_1GetCertificateAuthorityCertificateCommand,
22
- } from "../protocols/Aws_json1_1";
23
-
24
- export interface GetCertificateAuthorityCertificateCommandInput extends GetCertificateAuthorityCertificateRequest {}
25
- export interface GetCertificateAuthorityCertificateCommandOutput
26
- extends GetCertificateAuthorityCertificateResponse,
27
- __MetadataBearer {}
28
-
29
- /**
30
- * <p>Retrieves the certificate and certificate chain for your private certificate authority
31
- * (CA) or one that has been shared with you. Both the certificate and the chain are base64
32
- * PEM-encoded. The chain does not include the CA certificate. Each certificate in the
33
- * chain signs the one before it. </p>
34
- * @example
35
- * Use a bare-bones client and the command you need to make an API call.
36
- * ```javascript
37
- * import { ACMPCAClient, GetCertificateAuthorityCertificateCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
38
- * // const { ACMPCAClient, GetCertificateAuthorityCertificateCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
39
- * const client = new ACMPCAClient(config);
40
- * const command = new GetCertificateAuthorityCertificateCommand(input);
41
- * const response = await client.send(command);
42
- * ```
43
- *
44
- * @see {@link GetCertificateAuthorityCertificateCommandInput} for command's `input` shape.
45
- * @see {@link GetCertificateAuthorityCertificateCommandOutput} for command's `response` shape.
46
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
47
- *
48
- */
49
- export class GetCertificateAuthorityCertificateCommand extends $Command<
50
- GetCertificateAuthorityCertificateCommandInput,
51
- GetCertificateAuthorityCertificateCommandOutput,
52
- ACMPCAClientResolvedConfig
53
- > {
54
- // Start section: command_properties
55
- // End section: command_properties
56
-
57
- constructor(readonly input: GetCertificateAuthorityCertificateCommandInput) {
58
- // Start section: command_constructor
59
- super();
60
- // End section: command_constructor
61
- }
62
-
63
- /**
64
- * @internal
65
- */
66
- resolveMiddleware(
67
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
68
- configuration: ACMPCAClientResolvedConfig,
69
- options?: __HttpHandlerOptions
70
- ): Handler<GetCertificateAuthorityCertificateCommandInput, GetCertificateAuthorityCertificateCommandOutput> {
71
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
72
-
73
- const stack = clientStack.concat(this.middlewareStack);
74
-
75
- const { logger } = configuration;
76
- const clientName = "ACMPCAClient";
77
- const commandName = "GetCertificateAuthorityCertificateCommand";
78
- const handlerExecutionContext: HandlerExecutionContext = {
79
- logger,
80
- clientName,
81
- commandName,
82
- inputFilterSensitiveLog: GetCertificateAuthorityCertificateRequest.filterSensitiveLog,
83
- outputFilterSensitiveLog: GetCertificateAuthorityCertificateResponse.filterSensitiveLog,
84
- };
85
- const { requestHandler } = configuration;
86
- return stack.resolve(
87
- (request: FinalizeHandlerArguments<any>) =>
88
- requestHandler.handle(request.request as __HttpRequest, options || {}),
89
- handlerExecutionContext
90
- );
91
- }
92
-
93
- private serialize(
94
- input: GetCertificateAuthorityCertificateCommandInput,
95
- context: __SerdeContext
96
- ): Promise<__HttpRequest> {
97
- return serializeAws_json1_1GetCertificateAuthorityCertificateCommand(input, context);
98
- }
99
-
100
- private deserialize(
101
- output: __HttpResponse,
102
- context: __SerdeContext
103
- ): Promise<GetCertificateAuthorityCertificateCommandOutput> {
104
- return deserializeAws_json1_1GetCertificateAuthorityCertificateCommand(output, context);
105
- }
106
-
107
- // Start section: command_body_extra
108
- // End section: command_body_extra
109
- }
@@ -1,102 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
15
- import { GetCertificateAuthorityCsrRequest, GetCertificateAuthorityCsrResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1GetCertificateAuthorityCsrCommand,
18
- serializeAws_json1_1GetCertificateAuthorityCsrCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface GetCertificateAuthorityCsrCommandInput extends GetCertificateAuthorityCsrRequest {}
22
- export interface GetCertificateAuthorityCsrCommandOutput extends GetCertificateAuthorityCsrResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves the certificate signing request (CSR) for your private certificate authority
26
- * (CA). The CSR is created when you call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> action. Sign the CSR with your ACM Private CA-hosted or
27
- * on-premises root or subordinate CA. Then import the signed certificate back into ACM Private CA
28
- * by calling the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ImportCertificateAuthorityCertificate.html">ImportCertificateAuthorityCertificate</a> action. The CSR is returned as a
29
- * base64 PEM-encoded string. </p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ACMPCAClient, GetCertificateAuthorityCsrCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
34
- * // const { ACMPCAClient, GetCertificateAuthorityCsrCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
35
- * const client = new ACMPCAClient(config);
36
- * const command = new GetCertificateAuthorityCsrCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link GetCertificateAuthorityCsrCommandInput} for command's `input` shape.
41
- * @see {@link GetCertificateAuthorityCsrCommandOutput} for command's `response` shape.
42
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class GetCertificateAuthorityCsrCommand extends $Command<
46
- GetCertificateAuthorityCsrCommandInput,
47
- GetCertificateAuthorityCsrCommandOutput,
48
- ACMPCAClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: GetCertificateAuthorityCsrCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ACMPCAClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<GetCertificateAuthorityCsrCommandInput, GetCertificateAuthorityCsrCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ACMPCAClient";
73
- const commandName = "GetCertificateAuthorityCsrCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: GetCertificateAuthorityCsrRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: GetCertificateAuthorityCsrResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: GetCertificateAuthorityCsrCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_json1_1GetCertificateAuthorityCsrCommand(input, context);
91
- }
92
-
93
- private deserialize(
94
- output: __HttpResponse,
95
- context: __SerdeContext
96
- ): Promise<GetCertificateAuthorityCsrCommandOutput> {
97
- return deserializeAws_json1_1GetCertificateAuthorityCsrCommand(output, context);
98
- }
99
-
100
- // Start section: command_body_extra
101
- // End section: command_body_extra
102
- }
@@ -1,102 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
15
- import { GetCertificateRequest, GetCertificateResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1GetCertificateCommand,
18
- serializeAws_json1_1GetCertificateCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface GetCertificateCommandInput extends GetCertificateRequest {}
22
- export interface GetCertificateCommandOutput extends GetCertificateResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves a certificate from your private CA or one that has been shared with you. The
26
- * ARN of the certificate is returned when you call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_IssueCertificate.html">IssueCertificate</a> action. You
27
- * must specify both the ARN of your private CA and the ARN of the issued certificate when
28
- * calling the <b>GetCertificate</b> action. You can retrieve the
29
- * certificate if it is in the <b>ISSUED</b> state. You can call
30
- * the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthorityAuditReport.html">CreateCertificateAuthorityAuditReport</a> action to create a report that
31
- * contains information about all of the certificates issued and revoked by your private
32
- * CA. </p>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { ACMPCAClient, GetCertificateCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
37
- * // const { ACMPCAClient, GetCertificateCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
38
- * const client = new ACMPCAClient(config);
39
- * const command = new GetCertificateCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link GetCertificateCommandInput} for command's `input` shape.
44
- * @see {@link GetCertificateCommandOutput} for command's `response` shape.
45
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
- export class GetCertificateCommand extends $Command<
49
- GetCertificateCommandInput,
50
- GetCertificateCommandOutput,
51
- ACMPCAClientResolvedConfig
52
- > {
53
- // Start section: command_properties
54
- // End section: command_properties
55
-
56
- constructor(readonly input: GetCertificateCommandInput) {
57
- // Start section: command_constructor
58
- super();
59
- // End section: command_constructor
60
- }
61
-
62
- /**
63
- * @internal
64
- */
65
- resolveMiddleware(
66
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
67
- configuration: ACMPCAClientResolvedConfig,
68
- options?: __HttpHandlerOptions
69
- ): Handler<GetCertificateCommandInput, GetCertificateCommandOutput> {
70
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
-
72
- const stack = clientStack.concat(this.middlewareStack);
73
-
74
- const { logger } = configuration;
75
- const clientName = "ACMPCAClient";
76
- const commandName = "GetCertificateCommand";
77
- const handlerExecutionContext: HandlerExecutionContext = {
78
- logger,
79
- clientName,
80
- commandName,
81
- inputFilterSensitiveLog: GetCertificateRequest.filterSensitiveLog,
82
- outputFilterSensitiveLog: GetCertificateResponse.filterSensitiveLog,
83
- };
84
- const { requestHandler } = configuration;
85
- return stack.resolve(
86
- (request: FinalizeHandlerArguments<any>) =>
87
- requestHandler.handle(request.request as __HttpRequest, options || {}),
88
- handlerExecutionContext
89
- );
90
- }
91
-
92
- private serialize(input: GetCertificateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
93
- return serializeAws_json1_1GetCertificateCommand(input, context);
94
- }
95
-
96
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetCertificateCommandOutput> {
97
- return deserializeAws_json1_1GetCertificateCommand(output, context);
98
- }
99
-
100
- // Start section: command_body_extra
101
- // End section: command_body_extra
102
- }
@@ -1,122 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
15
- import { GetPolicyRequest, GetPolicyResponse } from "../models/models_0";
16
- import { deserializeAws_json1_1GetPolicyCommand, serializeAws_json1_1GetPolicyCommand } from "../protocols/Aws_json1_1";
17
-
18
- export interface GetPolicyCommandInput extends GetPolicyRequest {}
19
- export interface GetPolicyCommandOutput extends GetPolicyResponse, __MetadataBearer {}
20
-
21
- /**
22
- * <p>Retrieves the resource-based policy attached to a private CA. If either the private CA
23
- * resource or the policy cannot be found, this action returns a
24
- * <code>ResourceNotFoundException</code>. </p>
25
- * <p>The policy can be attached or updated with <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_PutPolicy.html">PutPolicy</a> and removed with <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_DeletePolicy.html">DeletePolicy</a>.</p>
26
- * <p class="title">
27
- * <b>About Policies</b>
28
- * </p>
29
- * <ul>
30
- * <li>
31
- * <p>A policy grants access on a private CA to an AWS customer account, to AWS Organizations, or to
32
- * an AWS Organizations unit. Policies are under the control of a CA administrator. For more information,
33
- * see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/pca-rbp.html">Using a Resource Based Policy with ACM Private CA</a>.</p>
34
- * </li>
35
- * <li>
36
- * <p>A policy permits a user of AWS Certificate Manager (ACM) to issue ACM certificates
37
- * signed by a CA in another account.</p>
38
- * </li>
39
- * <li>
40
- * <p>For ACM to manage automatic renewal of these certificates,
41
- * the ACM user must configure a Service Linked Role (SLR). The SLR allows
42
- * the ACM service to assume the identity of the user, subject to confirmation against the
43
- * ACM Private CA policy. For more information, see
44
- * <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-slr.html">Using a
45
- * Service Linked Role with ACM</a>.</p>
46
- * </li>
47
- * <li>
48
- * <p>Updates made in AWS Resource Manager (RAM) are reflected in policies. For more information,
49
- * see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/pca-ram.html">Attach a Policy for Cross-Account
50
- * Access</a>.</p>
51
- * </li>
52
- * </ul>
53
- * @example
54
- * Use a bare-bones client and the command you need to make an API call.
55
- * ```javascript
56
- * import { ACMPCAClient, GetPolicyCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
57
- * // const { ACMPCAClient, GetPolicyCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
58
- * const client = new ACMPCAClient(config);
59
- * const command = new GetPolicyCommand(input);
60
- * const response = await client.send(command);
61
- * ```
62
- *
63
- * @see {@link GetPolicyCommandInput} for command's `input` shape.
64
- * @see {@link GetPolicyCommandOutput} for command's `response` shape.
65
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
66
- *
67
- */
68
- export class GetPolicyCommand extends $Command<
69
- GetPolicyCommandInput,
70
- GetPolicyCommandOutput,
71
- ACMPCAClientResolvedConfig
72
- > {
73
- // Start section: command_properties
74
- // End section: command_properties
75
-
76
- constructor(readonly input: GetPolicyCommandInput) {
77
- // Start section: command_constructor
78
- super();
79
- // End section: command_constructor
80
- }
81
-
82
- /**
83
- * @internal
84
- */
85
- resolveMiddleware(
86
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
87
- configuration: ACMPCAClientResolvedConfig,
88
- options?: __HttpHandlerOptions
89
- ): Handler<GetPolicyCommandInput, GetPolicyCommandOutput> {
90
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
91
-
92
- const stack = clientStack.concat(this.middlewareStack);
93
-
94
- const { logger } = configuration;
95
- const clientName = "ACMPCAClient";
96
- const commandName = "GetPolicyCommand";
97
- const handlerExecutionContext: HandlerExecutionContext = {
98
- logger,
99
- clientName,
100
- commandName,
101
- inputFilterSensitiveLog: GetPolicyRequest.filterSensitiveLog,
102
- outputFilterSensitiveLog: GetPolicyResponse.filterSensitiveLog,
103
- };
104
- const { requestHandler } = configuration;
105
- return stack.resolve(
106
- (request: FinalizeHandlerArguments<any>) =>
107
- requestHandler.handle(request.request as __HttpRequest, options || {}),
108
- handlerExecutionContext
109
- );
110
- }
111
-
112
- private serialize(input: GetPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
113
- return serializeAws_json1_1GetPolicyCommand(input, context);
114
- }
115
-
116
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetPolicyCommandOutput> {
117
- return deserializeAws_json1_1GetPolicyCommand(output, context);
118
- }
119
-
120
- // Start section: command_body_extra
121
- // End section: command_body_extra
122
- }