@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,229 +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 { ImportCertificateAuthorityCertificateRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand,
18
- serializeAws_json1_1ImportCertificateAuthorityCertificateCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ImportCertificateAuthorityCertificateCommandInput
22
- extends ImportCertificateAuthorityCertificateRequest {}
23
- export interface ImportCertificateAuthorityCertificateCommandOutput extends __MetadataBearer {}
24
-
25
- /**
26
- * <p>Imports a signed private CA certificate into ACM Private CA. This action is used when you are
27
- * using a chain of trust whose root is located outside ACM Private CA. Before you can call this
28
- * action, the following preparations must in place:</p>
29
- * <ol>
30
- * <li>
31
- * <p>In ACM Private CA, call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> action to create the private CA that you
32
- * plan to back with the imported certificate.</p>
33
- * </li>
34
- * <li>
35
- * <p>Call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_GetCertificateAuthorityCsr.html">GetCertificateAuthorityCsr</a> action to generate a certificate signing
36
- * request (CSR).</p>
37
- * </li>
38
- * <li>
39
- * <p>Sign the CSR using a root or intermediate CA hosted by either an on-premises
40
- * PKI hierarchy or by a commercial CA.</p>
41
- * </li>
42
- * <li>
43
- * <p>Create a certificate chain and copy the signed certificate and the certificate
44
- * chain to your working directory.</p>
45
- * </li>
46
- * </ol>
47
- * <p>ACM Private CA supports three scenarios for installing a CA certificate:</p>
48
- * <ul>
49
- * <li>
50
- * <p>Installing a certificate for a root CA hosted by ACM Private CA.</p>
51
- * </li>
52
- * <li>
53
- * <p>Installing a subordinate CA certificate whose parent authority is hosted by
54
- * ACM Private CA.</p>
55
- * </li>
56
- * <li>
57
- * <p>Installing a subordinate CA certificate whose parent authority is externally
58
- * hosted.</p>
59
- * </li>
60
- * </ul>
61
- * <p>The following additional requirements apply when you import a CA certificate.</p>
62
- * <ul>
63
- * <li>
64
- * <p>Only a self-signed certificate can be imported as a root CA.</p>
65
- * </li>
66
- * <li>
67
- * <p>A self-signed certificate cannot be imported as a subordinate CA.</p>
68
- * </li>
69
- * <li>
70
- * <p>Your certificate chain must not include the private CA certificate that you
71
- * are importing.</p>
72
- * </li>
73
- * <li>
74
- * <p>Your root CA must be the last certificate in your chain. The subordinate
75
- * certificate, if any, that your root CA signed must be next to last. The
76
- * subordinate certificate signed by the preceding subordinate CA must come next,
77
- * and so on until your chain is built. </p>
78
- * </li>
79
- * <li>
80
- * <p>The chain must be PEM-encoded.</p>
81
- * </li>
82
- * <li>
83
- * <p>The maximum allowed size of a certificate is 32 KB.</p>
84
- * </li>
85
- * <li>
86
- * <p>The maximum allowed size of a certificate chain is 2 MB.</p>
87
- * </li>
88
- * </ul>
89
- * <p>
90
- * <i>Enforcement of Critical Constraints</i>
91
- * </p>
92
- * <p>ACM Private CA allows the following extensions to be marked critical in the imported CA
93
- * certificate or chain.</p>
94
- * <ul>
95
- * <li>
96
- * <p>Basic constraints (<i>must</i> be marked critical)</p>
97
- * </li>
98
- * <li>
99
- * <p>Subject alternative names</p>
100
- * </li>
101
- * <li>
102
- * <p>Key usage</p>
103
- * </li>
104
- * <li>
105
- * <p>Extended key usage</p>
106
- * </li>
107
- * <li>
108
- * <p>Authority key identifier</p>
109
- * </li>
110
- * <li>
111
- * <p>Subject key identifier</p>
112
- * </li>
113
- * <li>
114
- * <p>Issuer alternative name</p>
115
- * </li>
116
- * <li>
117
- * <p>Subject directory attributes</p>
118
- * </li>
119
- * <li>
120
- * <p>Subject information access</p>
121
- * </li>
122
- * <li>
123
- * <p>Certificate policies</p>
124
- * </li>
125
- * <li>
126
- * <p>Policy mappings</p>
127
- * </li>
128
- * <li>
129
- * <p>Inhibit anyPolicy</p>
130
- * </li>
131
- * </ul>
132
- * <p>ACM Private CA rejects the following extensions when they are marked critical in an imported CA
133
- * certificate or chain.</p>
134
- * <ul>
135
- * <li>
136
- * <p>Name constraints</p>
137
- * </li>
138
- * <li>
139
- * <p>Policy constraints</p>
140
- * </li>
141
- * <li>
142
- * <p>CRL distribution points</p>
143
- * </li>
144
- * <li>
145
- * <p>Authority information access</p>
146
- * </li>
147
- * <li>
148
- * <p>Freshest CRL</p>
149
- * </li>
150
- * <li>
151
- * <p>Any other extension</p>
152
- * </li>
153
- * </ul>
154
- * @example
155
- * Use a bare-bones client and the command you need to make an API call.
156
- * ```javascript
157
- * import { ACMPCAClient, ImportCertificateAuthorityCertificateCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
158
- * // const { ACMPCAClient, ImportCertificateAuthorityCertificateCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
159
- * const client = new ACMPCAClient(config);
160
- * const command = new ImportCertificateAuthorityCertificateCommand(input);
161
- * const response = await client.send(command);
162
- * ```
163
- *
164
- * @see {@link ImportCertificateAuthorityCertificateCommandInput} for command's `input` shape.
165
- * @see {@link ImportCertificateAuthorityCertificateCommandOutput} for command's `response` shape.
166
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
167
- *
168
- */
169
- export class ImportCertificateAuthorityCertificateCommand extends $Command<
170
- ImportCertificateAuthorityCertificateCommandInput,
171
- ImportCertificateAuthorityCertificateCommandOutput,
172
- ACMPCAClientResolvedConfig
173
- > {
174
- // Start section: command_properties
175
- // End section: command_properties
176
-
177
- constructor(readonly input: ImportCertificateAuthorityCertificateCommandInput) {
178
- // Start section: command_constructor
179
- super();
180
- // End section: command_constructor
181
- }
182
-
183
- /**
184
- * @internal
185
- */
186
- resolveMiddleware(
187
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
188
- configuration: ACMPCAClientResolvedConfig,
189
- options?: __HttpHandlerOptions
190
- ): Handler<ImportCertificateAuthorityCertificateCommandInput, ImportCertificateAuthorityCertificateCommandOutput> {
191
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
192
-
193
- const stack = clientStack.concat(this.middlewareStack);
194
-
195
- const { logger } = configuration;
196
- const clientName = "ACMPCAClient";
197
- const commandName = "ImportCertificateAuthorityCertificateCommand";
198
- const handlerExecutionContext: HandlerExecutionContext = {
199
- logger,
200
- clientName,
201
- commandName,
202
- inputFilterSensitiveLog: ImportCertificateAuthorityCertificateRequest.filterSensitiveLog,
203
- outputFilterSensitiveLog: (output: any) => output,
204
- };
205
- const { requestHandler } = configuration;
206
- return stack.resolve(
207
- (request: FinalizeHandlerArguments<any>) =>
208
- requestHandler.handle(request.request as __HttpRequest, options || {}),
209
- handlerExecutionContext
210
- );
211
- }
212
-
213
- private serialize(
214
- input: ImportCertificateAuthorityCertificateCommandInput,
215
- context: __SerdeContext
216
- ): Promise<__HttpRequest> {
217
- return serializeAws_json1_1ImportCertificateAuthorityCertificateCommand(input, context);
218
- }
219
-
220
- private deserialize(
221
- output: __HttpResponse,
222
- context: __SerdeContext
223
- ): Promise<ImportCertificateAuthorityCertificateCommandOutput> {
224
- return deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand(output, context);
225
- }
226
-
227
- // Start section: command_body_extra
228
- // End section: command_body_extra
229
- }
@@ -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 { IssueCertificateRequest, IssueCertificateResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1IssueCertificateCommand,
18
- serializeAws_json1_1IssueCertificateCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface IssueCertificateCommandInput extends IssueCertificateRequest {}
22
- export interface IssueCertificateCommandOutput extends IssueCertificateResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Uses your private certificate authority (CA), or one that has been shared with you, to
26
- * issue a client certificate. This action returns the Amazon Resource Name (ARN) of the
27
- * certificate. You can retrieve the certificate by calling the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_GetCertificate.html">GetCertificate</a> action and
28
- * specifying the ARN. </p>
29
- * <note>
30
- * <p>You cannot use the ACM <b>ListCertificateAuthorities</b> action to retrieve the ARNs of the
31
- * certificates that you issue by using ACM Private CA.</p>
32
- * </note>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { ACMPCAClient, IssueCertificateCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
37
- * // const { ACMPCAClient, IssueCertificateCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
38
- * const client = new ACMPCAClient(config);
39
- * const command = new IssueCertificateCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link IssueCertificateCommandInput} for command's `input` shape.
44
- * @see {@link IssueCertificateCommandOutput} for command's `response` shape.
45
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
- export class IssueCertificateCommand extends $Command<
49
- IssueCertificateCommandInput,
50
- IssueCertificateCommandOutput,
51
- ACMPCAClientResolvedConfig
52
- > {
53
- // Start section: command_properties
54
- // End section: command_properties
55
-
56
- constructor(readonly input: IssueCertificateCommandInput) {
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<IssueCertificateCommandInput, IssueCertificateCommandOutput> {
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 = "IssueCertificateCommand";
77
- const handlerExecutionContext: HandlerExecutionContext = {
78
- logger,
79
- clientName,
80
- commandName,
81
- inputFilterSensitiveLog: IssueCertificateRequest.filterSensitiveLog,
82
- outputFilterSensitiveLog: IssueCertificateResponse.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: IssueCertificateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
93
- return serializeAws_json1_1IssueCertificateCommand(input, context);
94
- }
95
-
96
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<IssueCertificateCommandOutput> {
97
- return deserializeAws_json1_1IssueCertificateCommand(output, context);
98
- }
99
-
100
- // Start section: command_body_extra
101
- // End section: command_body_extra
102
- }
@@ -1,98 +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 { ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ListCertificateAuthoritiesCommand,
18
- serializeAws_json1_1ListCertificateAuthoritiesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ListCertificateAuthoritiesCommandInput extends ListCertificateAuthoritiesRequest {}
22
- export interface ListCertificateAuthoritiesCommandOutput extends ListCertificateAuthoritiesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Lists the private certificate authorities that you created by using the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> action.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ACMPCAClient, ListCertificateAuthoritiesCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
30
- * // const { ACMPCAClient, ListCertificateAuthoritiesCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
31
- * const client = new ACMPCAClient(config);
32
- * const command = new ListCertificateAuthoritiesCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListCertificateAuthoritiesCommandInput} for command's `input` shape.
37
- * @see {@link ListCertificateAuthoritiesCommandOutput} for command's `response` shape.
38
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListCertificateAuthoritiesCommand extends $Command<
42
- ListCertificateAuthoritiesCommandInput,
43
- ListCertificateAuthoritiesCommandOutput,
44
- ACMPCAClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListCertificateAuthoritiesCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: ACMPCAClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListCertificateAuthoritiesCommandInput, ListCertificateAuthoritiesCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "ACMPCAClient";
69
- const commandName = "ListCertificateAuthoritiesCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListCertificateAuthoritiesRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListCertificateAuthoritiesResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: ListCertificateAuthoritiesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1ListCertificateAuthoritiesCommand(input, context);
87
- }
88
-
89
- private deserialize(
90
- output: __HttpResponse,
91
- context: __SerdeContext
92
- ): Promise<ListCertificateAuthoritiesCommandOutput> {
93
- return deserializeAws_json1_1ListCertificateAuthoritiesCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -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 { ListPermissionsRequest, ListPermissionsResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ListPermissionsCommand,
18
- serializeAws_json1_1ListPermissionsCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ListPermissionsCommandInput extends ListPermissionsRequest {}
22
- export interface ListPermissionsCommandOutput extends ListPermissionsResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>List all permissions on a private CA, if any, granted to the AWS Certificate Manager (ACM) service
26
- * principal (acm.amazonaws.com). </p>
27
- * <p>These permissions allow ACM to issue and renew ACM certificates that reside in the
28
- * same AWS account as the CA. </p>
29
- * <p>Permissions can be granted with the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreatePermission.html">CreatePermission</a> action and
30
- * revoked with the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_DeletePermission.html">DeletePermission</a> action.</p>
31
- * <p class="title">
32
- * <b>About Permissions</b>
33
- * </p>
34
- * <ul>
35
- * <li>
36
- * <p>If the private CA and the certificates it issues reside in the same
37
- * account, you can use <code>CreatePermission</code> to grant permissions for ACM to
38
- * carry out automatic certificate renewals.</p>
39
- * </li>
40
- * <li>
41
- * <p>For automatic certificate renewal to succeed, the ACM service principal
42
- * needs permissions to create, retrieve, and list certificates.</p>
43
- * </li>
44
- * <li>
45
- * <p>If the private CA and the ACM certificates reside in different accounts,
46
- * then permissions cannot be used to enable automatic renewals. Instead,
47
- * the ACM certificate owner must set up a resource-based policy to enable
48
- * cross-account issuance and renewals. For more information, see
49
- * <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/pca-rbp.html">Using a Resource
50
- * Based Policy with ACM Private CA</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, ListPermissionsCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
57
- * // const { ACMPCAClient, ListPermissionsCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
58
- * const client = new ACMPCAClient(config);
59
- * const command = new ListPermissionsCommand(input);
60
- * const response = await client.send(command);
61
- * ```
62
- *
63
- * @see {@link ListPermissionsCommandInput} for command's `input` shape.
64
- * @see {@link ListPermissionsCommandOutput} for command's `response` shape.
65
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
66
- *
67
- */
68
- export class ListPermissionsCommand extends $Command<
69
- ListPermissionsCommandInput,
70
- ListPermissionsCommandOutput,
71
- ACMPCAClientResolvedConfig
72
- > {
73
- // Start section: command_properties
74
- // End section: command_properties
75
-
76
- constructor(readonly input: ListPermissionsCommandInput) {
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<ListPermissionsCommandInput, ListPermissionsCommandOutput> {
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 = "ListPermissionsCommand";
97
- const handlerExecutionContext: HandlerExecutionContext = {
98
- logger,
99
- clientName,
100
- commandName,
101
- inputFilterSensitiveLog: ListPermissionsRequest.filterSensitiveLog,
102
- outputFilterSensitiveLog: ListPermissionsResponse.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: ListPermissionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
113
- return serializeAws_json1_1ListPermissionsCommand(input, context);
114
- }
115
-
116
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListPermissionsCommandOutput> {
117
- return deserializeAws_json1_1ListPermissionsCommand(output, context);
118
- }
119
-
120
- // Start section: command_body_extra
121
- // End section: command_body_extra
122
- }
@@ -1,91 +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 { ListTagsRequest, ListTagsResponse } from "../models/models_0";
16
- import { deserializeAws_json1_1ListTagsCommand, serializeAws_json1_1ListTagsCommand } from "../protocols/Aws_json1_1";
17
-
18
- export interface ListTagsCommandInput extends ListTagsRequest {}
19
- export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBearer {}
20
-
21
- /**
22
- * <p>Lists the tags, if any, that are associated with your private CA or one that has been
23
- * shared with you. Tags are labels that you can use to identify and organize your CAs.
24
- * Each tag consists of a key and an optional value. Call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_TagCertificateAuthority.html">TagCertificateAuthority</a>
25
- * action to add one or more tags to your CA. Call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_UntagCertificateAuthority.html">UntagCertificateAuthority</a> action to remove tags. </p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { ACMPCAClient, ListTagsCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
30
- * // const { ACMPCAClient, ListTagsCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
31
- * const client = new ACMPCAClient(config);
32
- * const command = new ListTagsCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListTagsCommandInput} for command's `input` shape.
37
- * @see {@link ListTagsCommandOutput} for command's `response` shape.
38
- * @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListTagsCommand extends $Command<ListTagsCommandInput, ListTagsCommandOutput, ACMPCAClientResolvedConfig> {
42
- // Start section: command_properties
43
- // End section: command_properties
44
-
45
- constructor(readonly input: ListTagsCommandInput) {
46
- // Start section: command_constructor
47
- super();
48
- // End section: command_constructor
49
- }
50
-
51
- /**
52
- * @internal
53
- */
54
- resolveMiddleware(
55
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
56
- configuration: ACMPCAClientResolvedConfig,
57
- options?: __HttpHandlerOptions
58
- ): Handler<ListTagsCommandInput, ListTagsCommandOutput> {
59
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
60
-
61
- const stack = clientStack.concat(this.middlewareStack);
62
-
63
- const { logger } = configuration;
64
- const clientName = "ACMPCAClient";
65
- const commandName = "ListTagsCommand";
66
- const handlerExecutionContext: HandlerExecutionContext = {
67
- logger,
68
- clientName,
69
- commandName,
70
- inputFilterSensitiveLog: ListTagsRequest.filterSensitiveLog,
71
- outputFilterSensitiveLog: ListTagsResponse.filterSensitiveLog,
72
- };
73
- const { requestHandler } = configuration;
74
- return stack.resolve(
75
- (request: FinalizeHandlerArguments<any>) =>
76
- requestHandler.handle(request.request as __HttpRequest, options || {}),
77
- handlerExecutionContext
78
- );
79
- }
80
-
81
- private serialize(input: ListTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
82
- return serializeAws_json1_1ListTagsCommand(input, context);
83
- }
84
-
85
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsCommandOutput> {
86
- return deserializeAws_json1_1ListTagsCommand(output, context);
87
- }
88
-
89
- // Start section: command_body_extra
90
- // End section: command_body_extra
91
- }