@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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/ACMPCA.js +0 -21
- package/dist-cjs/ACMPCAClient.js +0 -26
- package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js +0 -40
- package/dist-cjs/commands/CreateCertificateAuthorityCommand.js +0 -45
- package/dist-cjs/commands/CreatePermissionCommand.js +0 -51
- package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js +0 -44
- package/dist-cjs/commands/DeletePermissionCommand.js +0 -53
- package/dist-cjs/commands/DeletePolicyCommand.js +0 -59
- package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js +0 -28
- package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js +0 -65
- package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js +0 -28
- package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js +0 -29
- package/dist-cjs/commands/GetCertificateCommand.js +0 -32
- package/dist-cjs/commands/GetPolicyCommand.js +0 -55
- package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js +0 -152
- package/dist-cjs/commands/IssueCertificateCommand.js +0 -32
- package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js +0 -25
- package/dist-cjs/commands/ListPermissionsCommand.js +0 -52
- package/dist-cjs/commands/ListTagsCommand.js +0 -28
- package/dist-cjs/commands/PutPolicyCommand.js +0 -56
- package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js +0 -35
- package/dist-cjs/commands/RevokeCertificateCommand.js +0 -44
- package/dist-cjs/commands/TagCertificateAuthorityCommand.js +0 -32
- package/dist-cjs/commands/UntagCertificateAuthorityCommand.js +0 -29
- package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js +0 -35
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +5 -33
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -229
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js +0 -11
- package/dist-cjs/pagination/ListPermissionsPaginator.js +0 -11
- package/dist-cjs/pagination/ListTagsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-cjs/waiters/index.js +6 -0
- package/dist-cjs/waiters/waitForAuditReportCreated.js +0 -10
- package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js +0 -10
- package/dist-cjs/waiters/waitForCertificateIssued.js +0 -10
- 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/commands/index.js +23 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +5 -33
- 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/pagination/index.js +4 -0
- 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/index.js +3 -0
- 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/dist-types/commands/index.d.ts +23 -0
- package/dist-types/index.d.ts +5 -32
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/ACMPCA.d.ts +24 -563
- package/dist-types/ts3.4/ACMPCAClient.d.ts +24 -106
- package/dist-types/ts3.4/commands/CreateCertificateAuthorityAuditReportCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/CreateCertificateAuthorityCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/CreatePermissionCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/DeleteCertificateAuthorityCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/DeletePermissionCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +2 -54
- package/dist-types/ts3.4/commands/DescribeCertificateAuthorityAuditReportCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeCertificateAuthorityCommand.d.ts +2 -60
- package/dist-types/ts3.4/commands/GetCertificateAuthorityCertificateCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetCertificateAuthorityCsrCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetCertificateCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/ImportCertificateAuthorityCertificateCommand.d.ts +2 -147
- package/dist-types/ts3.4/commands/IssueCertificateCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListCertificateAuthoritiesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListPermissionsCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/PutPolicyCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/RestoreCertificateAuthorityCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/RevokeCertificateCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/TagCertificateAuthorityCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/UntagCertificateAuthorityCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UpdateCertificateAuthorityCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/index.d.ts +5 -32
- package/dist-types/ts3.4/models/models_0.d.ts +289 -1432
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/ts3.4/waiters/waitForAuditReportCreated.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForCertificateAuthorityCSRCreated.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForCertificateIssued.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +3 -0
- 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
|
@@ -5,45 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Restores a certificate authority (CA) that is in the <code>DELETED</code> state. You
|
|
10
|
-
* can restore a CA during the period that you defined in the <b>PermanentDeletionTimeInDays</b> parameter of the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_DeleteCertificateAuthority.html">DeleteCertificateAuthority</a> action. Currently, you can specify 7 to 30 days.
|
|
11
|
-
* If you did not specify a <b>PermanentDeletionTimeInDays</b>
|
|
12
|
-
* value, by default you can restore the CA at any time in a 30 day period. You can check
|
|
13
|
-
* the time remaining in the restoration period of a private CA in the <code>DELETED</code>
|
|
14
|
-
* state by calling the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_DescribeCertificateAuthority.html">DescribeCertificateAuthority</a> or <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> actions. The status of a restored CA is set to
|
|
15
|
-
* its pre-deletion status when the <b>RestoreCertificateAuthority</b> action returns. To change its status to
|
|
16
|
-
* <code>ACTIVE</code>, call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> action. If the private CA was in the
|
|
17
|
-
* <code>PENDING_CERTIFICATE</code> state at deletion, you must use the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ImportCertificateAuthorityCertificate.html">ImportCertificateAuthorityCertificate</a> action to import a certificate
|
|
18
|
-
* authority into the private CA before it can be activated. You cannot restore a CA after
|
|
19
|
-
* the restoration period has ended.</p>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { ACMPCAClient, RestoreCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
24
|
-
* // const { ACMPCAClient, RestoreCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
25
|
-
* const client = new ACMPCAClient(config);
|
|
26
|
-
* const command = new RestoreCertificateAuthorityCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link RestoreCertificateAuthorityCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link RestoreCertificateAuthorityCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
8
|
class RestoreCertificateAuthorityCommand extends smithy_client_1.Command {
|
|
36
|
-
// Start section: command_properties
|
|
37
|
-
// End section: command_properties
|
|
38
9
|
constructor(input) {
|
|
39
|
-
// Start section: command_constructor
|
|
40
10
|
super();
|
|
41
11
|
this.input = input;
|
|
42
|
-
// End section: command_constructor
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
48
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
49
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -68,4 +34,3 @@ class RestoreCertificateAuthorityCommand extends smithy_client_1.Command {
|
|
|
68
34
|
}
|
|
69
35
|
}
|
|
70
36
|
exports.RestoreCertificateAuthorityCommand = RestoreCertificateAuthorityCommand;
|
|
71
|
-
//# sourceMappingURL=RestoreCertificateAuthorityCommand.js.map
|
|
@@ -5,54 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Revokes a certificate that was issued inside ACM Private CA. If you enable a certificate
|
|
10
|
-
* revocation list (CRL) when you create or update your private CA, information about the
|
|
11
|
-
* revoked certificates will be included in the CRL. ACM Private CA writes the CRL to an S3 bucket
|
|
12
|
-
* that you specify. A CRL is typically updated approximately 30 minutes after a
|
|
13
|
-
* certificate is revoked. If for any reason the CRL update fails, ACM Private CA attempts makes
|
|
14
|
-
* further attempts every 15 minutes. With Amazon CloudWatch, you can create alarms for the
|
|
15
|
-
* metrics <code>CRLGenerated</code> and <code>MisconfiguredCRLBucket</code>. For more
|
|
16
|
-
* information, see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaCloudWatch.html">Supported CloudWatch Metrics</a>.</p>
|
|
17
|
-
* <note>
|
|
18
|
-
* <p>Both PCA and the IAM principal must have permission to write to
|
|
19
|
-
* the S3 bucket that you specify. If the IAM principal making the call
|
|
20
|
-
* does not have permission to write to the bucket, then an exception is
|
|
21
|
-
* thrown. For more information, see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaAuthAccess.html">Configure
|
|
22
|
-
* Access to ACM Private CA</a>.</p>
|
|
23
|
-
* </note>
|
|
24
|
-
* <p>ACM Private CA also writes
|
|
25
|
-
* revocation information to the audit report. For more information, see <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthorityAuditReport.html">CreateCertificateAuthorityAuditReport</a>.</p>
|
|
26
|
-
* <note>
|
|
27
|
-
* <p>You cannot revoke a root CA self-signed certificate.</p>
|
|
28
|
-
* </note>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { ACMPCAClient, RevokeCertificateCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
33
|
-
* // const { ACMPCAClient, RevokeCertificateCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
34
|
-
* const client = new ACMPCAClient(config);
|
|
35
|
-
* const command = new RevokeCertificateCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link RevokeCertificateCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link RevokeCertificateCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
8
|
class RevokeCertificateCommand extends smithy_client_1.Command {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
9
|
constructor(input) {
|
|
48
|
-
// Start section: command_constructor
|
|
49
10
|
super();
|
|
50
11
|
this.input = input;
|
|
51
|
-
// End section: command_constructor
|
|
52
12
|
}
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
57
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
58
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -77,4 +34,3 @@ class RevokeCertificateCommand extends smithy_client_1.Command {
|
|
|
77
34
|
}
|
|
78
35
|
}
|
|
79
36
|
exports.RevokeCertificateCommand = RevokeCertificateCommand;
|
|
80
|
-
//# sourceMappingURL=RevokeCertificateCommand.js.map
|
|
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Adds one or more tags to your private CA. Tags are labels that you can use to identify
|
|
10
|
-
* and organize your AWS resources. Each tag consists of a key and an optional value. You
|
|
11
|
-
* specify the private CA on input by its Amazon Resource Name (ARN). You specify the tag
|
|
12
|
-
* by using a key-value pair. You can apply a tag to just one private CA if you want to
|
|
13
|
-
* identify a specific characteristic of that CA, or you can apply the same tag to multiple
|
|
14
|
-
* private CAs if you want to filter for a common relationship among those CAs. To remove
|
|
15
|
-
* one or more tags, use the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_UntagCertificateAuthority.html">UntagCertificateAuthority</a> action. Call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListTags.html">ListTags</a> action to see what tags are
|
|
16
|
-
* associated with your CA. </p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { ACMPCAClient, TagCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
21
|
-
* // const { ACMPCAClient, TagCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
22
|
-
* const client = new ACMPCAClient(config);
|
|
23
|
-
* const command = new TagCertificateAuthorityCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link TagCertificateAuthorityCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link TagCertificateAuthorityCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
8
|
class TagCertificateAuthorityCommand extends smithy_client_1.Command {
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
9
|
constructor(input) {
|
|
36
|
-
// Start section: command_constructor
|
|
37
10
|
super();
|
|
38
11
|
this.input = input;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -65,4 +34,3 @@ class TagCertificateAuthorityCommand extends smithy_client_1.Command {
|
|
|
65
34
|
}
|
|
66
35
|
}
|
|
67
36
|
exports.TagCertificateAuthorityCommand = TagCertificateAuthorityCommand;
|
|
68
|
-
//# sourceMappingURL=TagCertificateAuthorityCommand.js.map
|
|
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Remove one or more tags from your private CA. A tag consists of a key-value pair. If
|
|
10
|
-
* you do not specify the value portion of the tag when calling this action, the tag will
|
|
11
|
-
* be removed regardless of value. If you specify a value, the tag is removed only if it is
|
|
12
|
-
* associated with the specified value. To add tags to a private CA, use the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_TagCertificateAuthority.html">TagCertificateAuthority</a>. Call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListTags.html">ListTags</a> action to see what tags are
|
|
13
|
-
* associated with your CA. </p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { ACMPCAClient, UntagCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
18
|
-
* // const { ACMPCAClient, UntagCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
19
|
-
* const client = new ACMPCAClient(config);
|
|
20
|
-
* const command = new UntagCertificateAuthorityCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link UntagCertificateAuthorityCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link UntagCertificateAuthorityCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class UntagCertificateAuthorityCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -62,4 +34,3 @@ class UntagCertificateAuthorityCommand extends smithy_client_1.Command {
|
|
|
62
34
|
}
|
|
63
35
|
}
|
|
64
36
|
exports.UntagCertificateAuthorityCommand = UntagCertificateAuthorityCommand;
|
|
65
|
-
//# sourceMappingURL=UntagCertificateAuthorityCommand.js.map
|
|
@@ -5,45 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates the status or configuration of a private certificate authority (CA). Your
|
|
10
|
-
* private CA must be in the <code>ACTIVE</code> or <code>DISABLED</code> state before you
|
|
11
|
-
* can update it. You can disable a private CA that is in the <code>ACTIVE</code> state or
|
|
12
|
-
* make a CA that is in the <code>DISABLED</code> state active again.</p>
|
|
13
|
-
* <note>
|
|
14
|
-
* <p>Both PCA and the IAM principal must have permission to write to
|
|
15
|
-
* the S3 bucket that you specify. If the IAM principal making the call
|
|
16
|
-
* does not have permission to write to the bucket, then an exception is
|
|
17
|
-
* thrown. For more information, see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaAuthAccess.html">Configure
|
|
18
|
-
* Access to ACM Private CA</a>.</p>
|
|
19
|
-
* </note>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { ACMPCAClient, UpdateCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
24
|
-
* // const { ACMPCAClient, UpdateCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
25
|
-
* const client = new ACMPCAClient(config);
|
|
26
|
-
* const command = new UpdateCertificateAuthorityCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link UpdateCertificateAuthorityCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link UpdateCertificateAuthorityCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
8
|
class UpdateCertificateAuthorityCommand extends smithy_client_1.Command {
|
|
36
|
-
// Start section: command_properties
|
|
37
|
-
// End section: command_properties
|
|
38
9
|
constructor(input) {
|
|
39
|
-
// Start section: command_constructor
|
|
40
10
|
super();
|
|
41
11
|
this.input = input;
|
|
42
|
-
// End section: command_constructor
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
48
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
49
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -68,4 +34,3 @@ class UpdateCertificateAuthorityCommand extends smithy_client_1.Command {
|
|
|
68
34
|
}
|
|
69
35
|
}
|
|
70
36
|
exports.UpdateCertificateAuthorityCommand = UpdateCertificateAuthorityCommand;
|
|
71
|
-
//# sourceMappingURL=UpdateCertificateAuthorityCommand.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreateCertificateAuthorityAuditReportCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateCertificateAuthorityCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./CreatePermissionCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DeleteCertificateAuthorityCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeletePermissionCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DeletePolicyCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DescribeCertificateAuthorityAuditReportCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DescribeCertificateAuthorityCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./GetCertificateAuthorityCertificateCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./GetCertificateAuthorityCsrCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./GetCertificateCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./GetPolicyCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./ImportCertificateAuthorityCertificateCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./IssueCertificateCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./ListCertificateAuthoritiesCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./ListPermissionsCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./ListTagsCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./PutPolicyCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./RestoreCertificateAuthorityCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./RevokeCertificateCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./TagCertificateAuthorityCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./UntagCertificateAuthorityCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./UpdateCertificateAuthorityCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -69,7 +69,7 @@ const partitionHash = {
|
|
|
69
69
|
hostname: "acm-pca.{region}.amazonaws.com.cn",
|
|
70
70
|
},
|
|
71
71
|
"aws-iso": {
|
|
72
|
-
regions: ["us-iso-east-1"],
|
|
72
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
73
73
|
hostname: "acm-pca.{region}.c2s.ic.gov",
|
|
74
74
|
},
|
|
75
75
|
"aws-iso-b": {
|
|
@@ -88,4 +88,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
|
|
|
88
88
|
partitionHash,
|
|
89
89
|
});
|
|
90
90
|
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
91
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,37 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./ACMPCAClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./ACMPCA"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
10
|
-
tslib_1.__exportStar(require("./
|
|
11
|
-
tslib_1.__exportStar(require("./commands/DeletePolicyCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./commands/DescribeCertificateAuthorityCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./commands/DescribeCertificateAuthorityAuditReportCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./waiters/waitForAuditReportCreated"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./commands/GetCertificateCommand"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./waiters/waitForCertificateIssued"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./commands/GetCertificateAuthorityCertificateCommand"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./commands/GetCertificateAuthorityCsrCommand"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./waiters/waitForCertificateAuthorityCSRCreated"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./commands/GetPolicyCommand"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./commands/ImportCertificateAuthorityCertificateCommand"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./commands/IssueCertificateCommand"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./commands/ListCertificateAuthoritiesCommand"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./pagination/ListCertificateAuthoritiesPaginator"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./commands/ListPermissionsCommand"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./pagination/ListPermissionsPaginator"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./commands/ListTagsCommand"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./pagination/ListTagsPaginator"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./commands/PutPolicyCommand"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./commands/RestoreCertificateAuthorityCommand"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./commands/RevokeCertificateCommand"), exports);
|
|
32
|
-
tslib_1.__exportStar(require("./commands/TagCertificateAuthorityCommand"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./commands/UntagCertificateAuthorityCommand"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./commands/UpdateCertificateAuthorityCommand"), exports);
|
|
35
|
-
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
tslib_1.__exportStar(require("./ACMPCAClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./waiters"), exports);
|
package/dist-cjs/models/index.js
CHANGED