@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.
- package/CHANGELOG.md +13 -0
- package/dist-cjs/ACMPCA.js +0 -1
- package/dist-cjs/ACMPCAClient.js +0 -1
- package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -1
- package/dist-cjs/commands/CreateCertificateAuthorityCommand.js +0 -1
- package/dist-cjs/commands/CreatePermissionCommand.js +0 -1
- package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js +0 -1
- package/dist-cjs/commands/DeletePermissionCommand.js +0 -1
- package/dist-cjs/commands/DeletePolicyCommand.js +0 -1
- package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js +0 -1
- package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js +0 -1
- package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js +0 -1
- package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js +0 -1
- package/dist-cjs/commands/GetCertificateCommand.js +0 -1
- package/dist-cjs/commands/GetPolicyCommand.js +0 -1
- package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js +0 -1
- package/dist-cjs/commands/IssueCertificateCommand.js +0 -1
- package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js +0 -1
- package/dist-cjs/commands/ListPermissionsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsCommand.js +0 -1
- package/dist-cjs/commands/PutPolicyCommand.js +0 -1
- package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js +0 -1
- package/dist-cjs/commands/RevokeCertificateCommand.js +0 -1
- package/dist-cjs/commands/TagCertificateAuthorityCommand.js +0 -1
- package/dist-cjs/commands/UntagCertificateAuthorityCommand.js +0 -1
- package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js +0 -1
- package/dist-cjs/pagination/ListPermissionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListTagsPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-cjs/waiters/waitForAuditReportCreated.js +0 -1
- package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js +0 -1
- package/dist-cjs/waiters/waitForCertificateIssued.js +0 -1
- package/dist-es/ACMPCA.js +0 -1
- package/dist-es/ACMPCAClient.js +0 -1
- package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -1
- package/dist-es/commands/CreateCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/CreatePermissionCommand.js +0 -1
- package/dist-es/commands/DeleteCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/DeletePermissionCommand.js +0 -1
- package/dist-es/commands/DeletePolicyCommand.js +0 -1
- package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js +0 -1
- package/dist-es/commands/DescribeCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js +0 -1
- package/dist-es/commands/GetCertificateAuthorityCsrCommand.js +0 -1
- package/dist-es/commands/GetCertificateCommand.js +0 -1
- package/dist-es/commands/GetPolicyCommand.js +0 -1
- package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +0 -1
- package/dist-es/commands/IssueCertificateCommand.js +0 -1
- package/dist-es/commands/ListCertificateAuthoritiesCommand.js +0 -1
- package/dist-es/commands/ListPermissionsCommand.js +0 -1
- package/dist-es/commands/ListTagsCommand.js +0 -1
- package/dist-es/commands/PutPolicyCommand.js +0 -1
- package/dist-es/commands/RestoreCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/RevokeCertificateCommand.js +0 -1
- package/dist-es/commands/TagCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/UntagCertificateAuthorityCommand.js +0 -1
- package/dist-es/commands/UpdateCertificateAuthorityCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js +0 -1
- package/dist-es/pagination/ListPermissionsPaginator.js +0 -1
- package/dist-es/pagination/ListTagsPaginator.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/waitForAuditReportCreated.js +0 -1
- package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js +0 -1
- package/dist-es/waiters/waitForCertificateIssued.js +0 -1
- package/package.json +34 -31
- package/dist-cjs/ACMPCA.js.map +0 -1
- package/dist-cjs/ACMPCAClient.js.map +0 -1
- package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist-cjs/commands/CreateCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/CreatePermissionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePermissionCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
- package/dist-cjs/commands/GetCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/GetPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/IssueCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
- package/dist-cjs/commands/ListPermissionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsCommand.js.map +0 -1
- package/dist-cjs/commands/PutPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/RevokeCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/TagCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/UntagCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTagsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForAuditReportCreated.js.map +0 -1
- package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
- package/dist-cjs/waiters/waitForCertificateIssued.js.map +0 -1
- package/dist-es/ACMPCA.js.map +0 -1
- package/dist-es/ACMPCAClient.js.map +0 -1
- package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist-es/commands/CreateCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/CreatePermissionCommand.js.map +0 -1
- package/dist-es/commands/DeleteCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/DeletePermissionCommand.js.map +0 -1
- package/dist-es/commands/DeletePolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js.map +0 -1
- package/dist-es/commands/DescribeCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist-es/commands/GetCertificateAuthorityCsrCommand.js.map +0 -1
- package/dist-es/commands/GetCertificateCommand.js.map +0 -1
- package/dist-es/commands/GetPolicyCommand.js.map +0 -1
- package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js.map +0 -1
- package/dist-es/commands/IssueCertificateCommand.js.map +0 -1
- package/dist-es/commands/ListCertificateAuthoritiesCommand.js.map +0 -1
- package/dist-es/commands/ListPermissionsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsCommand.js.map +0 -1
- package/dist-es/commands/PutPolicyCommand.js.map +0 -1
- package/dist-es/commands/RestoreCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/RevokeCertificateCommand.js.map +0 -1
- package/dist-es/commands/TagCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/UntagCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/commands/UpdateCertificateAuthorityCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js.map +0 -1
- package/dist-es/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListTagsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForAuditReportCreated.js.map +0 -1
- package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js.map +0 -1
- package/dist-es/waiters/waitForCertificateIssued.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/ACMPCA.ts +0 -1323
- package/src/ACMPCAClient.ts +0 -361
- package/src/commands/CreateCertificateAuthorityAuditReportCommand.ts +0 -122
- package/src/commands/CreateCertificateAuthorityCommand.ts +0 -118
- package/src/commands/CreatePermissionCommand.ts +0 -121
- package/src/commands/DeleteCertificateAuthorityCommand.ts +0 -117
- package/src/commands/DeletePermissionCommand.ts +0 -123
- package/src/commands/DeletePolicyCommand.ts +0 -129
- package/src/commands/DescribeCertificateAuthorityAuditReportCommand.ts +0 -113
- package/src/commands/DescribeCertificateAuthorityCommand.ts +0 -140
- package/src/commands/GetCertificateAuthorityCertificateCommand.ts +0 -109
- package/src/commands/GetCertificateAuthorityCsrCommand.ts +0 -102
- package/src/commands/GetCertificateCommand.ts +0 -102
- package/src/commands/GetPolicyCommand.ts +0 -122
- package/src/commands/ImportCertificateAuthorityCertificateCommand.ts +0 -229
- package/src/commands/IssueCertificateCommand.ts +0 -102
- package/src/commands/ListCertificateAuthoritiesCommand.ts +0 -98
- package/src/commands/ListPermissionsCommand.ts +0 -122
- package/src/commands/ListTagsCommand.ts +0 -91
- package/src/commands/PutPolicyCommand.ts +0 -123
- package/src/commands/RestoreCertificateAuthorityCommand.ts +0 -108
- package/src/commands/RevokeCertificateCommand.ts +0 -114
- package/src/commands/TagCertificateAuthorityCommand.ts +0 -102
- package/src/commands/UntagCertificateAuthorityCommand.ts +0 -102
- package/src/commands/UpdateCertificateAuthorityCommand.ts +0 -108
- package/src/endpoints.ts +0 -91
- package/src/index.ts +0 -33
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2571
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListCertificateAuthoritiesPaginator.ts +0 -59
- package/src/pagination/ListPermissionsPaginator.ts +0 -59
- package/src/pagination/ListTagsPaginator.ts +0 -55
- package/src/protocols/Aws_json1_1.ts +0 -3845
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForAuditReportCreated.ts +0 -61
- package/src/waiters/waitForCertificateAuthorityCSRCreated.ts +0 -49
- package/src/waiters/waitForCertificateIssued.ts +0 -43
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- 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
|
-
}
|