@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,121 +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 { CreatePermissionRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreatePermissionCommand,
|
|
18
|
-
serializeAws_json1_1CreatePermissionCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreatePermissionCommandInput extends CreatePermissionRequest {}
|
|
22
|
-
export interface CreatePermissionCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Grants one or more permissions on a private CA to the AWS Certificate Manager (ACM) service
|
|
26
|
-
* principal (<code>acm.amazonaws.com</code>). These permissions allow ACM to issue and
|
|
27
|
-
* renew ACM certificates that reside in the same AWS account as the CA.</p>
|
|
28
|
-
* <p>You can list current permissions with the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListPermissions.html">ListPermissions</a> action and
|
|
29
|
-
* revoke them with the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_DeletePermission.html">DeletePermission</a> action.</p>
|
|
30
|
-
* <p class="title">
|
|
31
|
-
* <b>About Permissions</b>
|
|
32
|
-
* </p>
|
|
33
|
-
* <ul>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>If the private CA and the certificates it issues reside in the same
|
|
36
|
-
* account, you can use <code>CreatePermission</code> to grant permissions for ACM to
|
|
37
|
-
* carry out automatic certificate renewals.</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>For automatic certificate renewal to succeed, the ACM service principal
|
|
41
|
-
* needs permissions to create, retrieve, and list certificates.</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>If the private CA and the ACM certificates reside in different accounts,
|
|
45
|
-
* then permissions cannot be used to enable automatic renewals. Instead,
|
|
46
|
-
* the ACM certificate owner must set up a resource-based policy to enable
|
|
47
|
-
* cross-account issuance and renewals. For more information, see
|
|
48
|
-
* <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/pca-rbp.html">Using a Resource
|
|
49
|
-
* Based Policy with ACM Private CA</a>.</p>
|
|
50
|
-
* </li>
|
|
51
|
-
* </ul>
|
|
52
|
-
* @example
|
|
53
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
54
|
-
* ```javascript
|
|
55
|
-
* import { ACMPCAClient, CreatePermissionCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
56
|
-
* // const { ACMPCAClient, CreatePermissionCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
57
|
-
* const client = new ACMPCAClient(config);
|
|
58
|
-
* const command = new CreatePermissionCommand(input);
|
|
59
|
-
* const response = await client.send(command);
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* @see {@link CreatePermissionCommandInput} for command's `input` shape.
|
|
63
|
-
* @see {@link CreatePermissionCommandOutput} for command's `response` shape.
|
|
64
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
export class CreatePermissionCommand extends $Command<
|
|
68
|
-
CreatePermissionCommandInput,
|
|
69
|
-
CreatePermissionCommandOutput,
|
|
70
|
-
ACMPCAClientResolvedConfig
|
|
71
|
-
> {
|
|
72
|
-
// Start section: command_properties
|
|
73
|
-
// End section: command_properties
|
|
74
|
-
|
|
75
|
-
constructor(readonly input: CreatePermissionCommandInput) {
|
|
76
|
-
// Start section: command_constructor
|
|
77
|
-
super();
|
|
78
|
-
// End section: command_constructor
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
resolveMiddleware(
|
|
85
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
86
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
87
|
-
options?: __HttpHandlerOptions
|
|
88
|
-
): Handler<CreatePermissionCommandInput, CreatePermissionCommandOutput> {
|
|
89
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
90
|
-
|
|
91
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
92
|
-
|
|
93
|
-
const { logger } = configuration;
|
|
94
|
-
const clientName = "ACMPCAClient";
|
|
95
|
-
const commandName = "CreatePermissionCommand";
|
|
96
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
97
|
-
logger,
|
|
98
|
-
clientName,
|
|
99
|
-
commandName,
|
|
100
|
-
inputFilterSensitiveLog: CreatePermissionRequest.filterSensitiveLog,
|
|
101
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
102
|
-
};
|
|
103
|
-
const { requestHandler } = configuration;
|
|
104
|
-
return stack.resolve(
|
|
105
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
106
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
107
|
-
handlerExecutionContext
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
private serialize(input: CreatePermissionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
112
|
-
return serializeAws_json1_1CreatePermissionCommand(input, context);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreatePermissionCommandOutput> {
|
|
116
|
-
return deserializeAws_json1_1CreatePermissionCommand(output, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Start section: command_body_extra
|
|
120
|
-
// End section: command_body_extra
|
|
121
|
-
}
|
|
@@ -1,117 +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 { DeleteCertificateAuthorityRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeleteCertificateAuthorityCommand,
|
|
18
|
-
serializeAws_json1_1DeleteCertificateAuthorityCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteCertificateAuthorityCommandInput extends DeleteCertificateAuthorityRequest {}
|
|
22
|
-
export interface DeleteCertificateAuthorityCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a private certificate authority (CA). You must provide the Amazon Resource
|
|
26
|
-
* Name (ARN) of the private CA that you want to delete. You can find the ARN by calling
|
|
27
|
-
* the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> action. </p>
|
|
28
|
-
* <note>
|
|
29
|
-
* <p>Deleting a CA will invalidate other CAs and certificates below it in your CA
|
|
30
|
-
* hierarchy.</p>
|
|
31
|
-
* </note>
|
|
32
|
-
* <p>Before you can delete a CA that you have created and activated, you must disable it.
|
|
33
|
-
* To do this, call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> action and set the <b>CertificateAuthorityStatus</b> parameter to <code>DISABLED</code>. </p>
|
|
34
|
-
* <p>Additionally, you can delete a CA if you are waiting for it to be created (that is,
|
|
35
|
-
* the status of the CA is <code>CREATING</code>). You can also delete it if the CA has
|
|
36
|
-
* been created but you haven't yet imported the signed certificate into ACM Private CA (that is,
|
|
37
|
-
* the status of the CA is <code>PENDING_CERTIFICATE</code>). </p>
|
|
38
|
-
* <p>When you successfully call <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_DeleteCertificateAuthority.html">DeleteCertificateAuthority</a>, the CA's status changes to
|
|
39
|
-
* <code>DELETED</code>. However, the CA won't be permanently deleted until the restoration
|
|
40
|
-
* period has passed. By default, if you do not set the
|
|
41
|
-
* <code>PermanentDeletionTimeInDays</code> parameter, the CA remains restorable for 30
|
|
42
|
-
* days. You can set the parameter from 7 to 30 days. The <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_DescribeCertificateAuthority.html">DescribeCertificateAuthority</a> action returns the time remaining in the
|
|
43
|
-
* restoration window of a private CA in the <code>DELETED</code> state. To restore an
|
|
44
|
-
* eligible CA, call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_RestoreCertificateAuthority.html">RestoreCertificateAuthority</a> action.</p>
|
|
45
|
-
* @example
|
|
46
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
47
|
-
* ```javascript
|
|
48
|
-
* import { ACMPCAClient, DeleteCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
49
|
-
* // const { ACMPCAClient, DeleteCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
50
|
-
* const client = new ACMPCAClient(config);
|
|
51
|
-
* const command = new DeleteCertificateAuthorityCommand(input);
|
|
52
|
-
* const response = await client.send(command);
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @see {@link DeleteCertificateAuthorityCommandInput} for command's `input` shape.
|
|
56
|
-
* @see {@link DeleteCertificateAuthorityCommandOutput} for command's `response` shape.
|
|
57
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
export class DeleteCertificateAuthorityCommand extends $Command<
|
|
61
|
-
DeleteCertificateAuthorityCommandInput,
|
|
62
|
-
DeleteCertificateAuthorityCommandOutput,
|
|
63
|
-
ACMPCAClientResolvedConfig
|
|
64
|
-
> {
|
|
65
|
-
// Start section: command_properties
|
|
66
|
-
// End section: command_properties
|
|
67
|
-
|
|
68
|
-
constructor(readonly input: DeleteCertificateAuthorityCommandInput) {
|
|
69
|
-
// Start section: command_constructor
|
|
70
|
-
super();
|
|
71
|
-
// End section: command_constructor
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
77
|
-
resolveMiddleware(
|
|
78
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
79
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
80
|
-
options?: __HttpHandlerOptions
|
|
81
|
-
): Handler<DeleteCertificateAuthorityCommandInput, DeleteCertificateAuthorityCommandOutput> {
|
|
82
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
83
|
-
|
|
84
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
85
|
-
|
|
86
|
-
const { logger } = configuration;
|
|
87
|
-
const clientName = "ACMPCAClient";
|
|
88
|
-
const commandName = "DeleteCertificateAuthorityCommand";
|
|
89
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
90
|
-
logger,
|
|
91
|
-
clientName,
|
|
92
|
-
commandName,
|
|
93
|
-
inputFilterSensitiveLog: DeleteCertificateAuthorityRequest.filterSensitiveLog,
|
|
94
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
95
|
-
};
|
|
96
|
-
const { requestHandler } = configuration;
|
|
97
|
-
return stack.resolve(
|
|
98
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
99
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
100
|
-
handlerExecutionContext
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private serialize(input: DeleteCertificateAuthorityCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
105
|
-
return serializeAws_json1_1DeleteCertificateAuthorityCommand(input, context);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
private deserialize(
|
|
109
|
-
output: __HttpResponse,
|
|
110
|
-
context: __SerdeContext
|
|
111
|
-
): Promise<DeleteCertificateAuthorityCommandOutput> {
|
|
112
|
-
return deserializeAws_json1_1DeleteCertificateAuthorityCommand(output, context);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// Start section: command_body_extra
|
|
116
|
-
// End section: command_body_extra
|
|
117
|
-
}
|
|
@@ -1,123 +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 { DeletePermissionRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeletePermissionCommand,
|
|
18
|
-
serializeAws_json1_1DeletePermissionCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeletePermissionCommandInput extends DeletePermissionRequest {}
|
|
22
|
-
export interface DeletePermissionCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Revokes permissions on a private CA granted to the AWS Certificate Manager (ACM) service principal
|
|
26
|
-
* (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. If you revoke these permissions, ACM will no longer
|
|
29
|
-
* renew the affected certificates automatically.</p>
|
|
30
|
-
* <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
|
|
31
|
-
* listed with the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListPermissions.html">ListPermissions</a> action. </p>
|
|
32
|
-
* <p class="title">
|
|
33
|
-
* <b>About Permissions</b>
|
|
34
|
-
* </p>
|
|
35
|
-
* <ul>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>If the private CA and the certificates it issues reside in the same
|
|
38
|
-
* account, you can use <code>CreatePermission</code> to grant permissions for ACM to
|
|
39
|
-
* carry out automatic certificate renewals.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>For automatic certificate renewal to succeed, the ACM service principal
|
|
43
|
-
* needs permissions to create, retrieve, and list certificates.</p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>If the private CA and the ACM certificates reside in different accounts,
|
|
47
|
-
* then permissions cannot be used to enable automatic renewals. Instead,
|
|
48
|
-
* the ACM certificate owner must set up a resource-based policy to enable
|
|
49
|
-
* cross-account issuance and renewals. For more information, see
|
|
50
|
-
* <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/pca-rbp.html">Using a Resource
|
|
51
|
-
* Based Policy with ACM Private CA</a>.</p>
|
|
52
|
-
* </li>
|
|
53
|
-
* </ul>
|
|
54
|
-
* @example
|
|
55
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
56
|
-
* ```javascript
|
|
57
|
-
* import { ACMPCAClient, DeletePermissionCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
58
|
-
* // const { ACMPCAClient, DeletePermissionCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
59
|
-
* const client = new ACMPCAClient(config);
|
|
60
|
-
* const command = new DeletePermissionCommand(input);
|
|
61
|
-
* const response = await client.send(command);
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @see {@link DeletePermissionCommandInput} for command's `input` shape.
|
|
65
|
-
* @see {@link DeletePermissionCommandOutput} for command's `response` shape.
|
|
66
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
export class DeletePermissionCommand extends $Command<
|
|
70
|
-
DeletePermissionCommandInput,
|
|
71
|
-
DeletePermissionCommandOutput,
|
|
72
|
-
ACMPCAClientResolvedConfig
|
|
73
|
-
> {
|
|
74
|
-
// Start section: command_properties
|
|
75
|
-
// End section: command_properties
|
|
76
|
-
|
|
77
|
-
constructor(readonly input: DeletePermissionCommandInput) {
|
|
78
|
-
// Start section: command_constructor
|
|
79
|
-
super();
|
|
80
|
-
// End section: command_constructor
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
resolveMiddleware(
|
|
87
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
88
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
89
|
-
options?: __HttpHandlerOptions
|
|
90
|
-
): Handler<DeletePermissionCommandInput, DeletePermissionCommandOutput> {
|
|
91
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
92
|
-
|
|
93
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
94
|
-
|
|
95
|
-
const { logger } = configuration;
|
|
96
|
-
const clientName = "ACMPCAClient";
|
|
97
|
-
const commandName = "DeletePermissionCommand";
|
|
98
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
99
|
-
logger,
|
|
100
|
-
clientName,
|
|
101
|
-
commandName,
|
|
102
|
-
inputFilterSensitiveLog: DeletePermissionRequest.filterSensitiveLog,
|
|
103
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
104
|
-
};
|
|
105
|
-
const { requestHandler } = configuration;
|
|
106
|
-
return stack.resolve(
|
|
107
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
108
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
109
|
-
handlerExecutionContext
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
private serialize(input: DeletePermissionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
114
|
-
return serializeAws_json1_1DeletePermissionCommand(input, context);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeletePermissionCommandOutput> {
|
|
118
|
-
return deserializeAws_json1_1DeletePermissionCommand(output, context);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Start section: command_body_extra
|
|
122
|
-
// End section: command_body_extra
|
|
123
|
-
}
|
|
@@ -1,129 +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 { DeletePolicyRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeletePolicyCommand,
|
|
18
|
-
serializeAws_json1_1DeletePolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeletePolicyCommandInput extends DeletePolicyRequest {}
|
|
22
|
-
export interface DeletePolicyCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes the resource-based policy attached to a private CA. Deletion will remove any
|
|
26
|
-
* access that the policy has granted. If there is no policy attached to the private CA,
|
|
27
|
-
* this action will return successful.</p>
|
|
28
|
-
* <p>If you delete a policy that was applied through AWS Resource Access Manager (RAM), the
|
|
29
|
-
* CA will be removed from all shares in which it was included. </p>
|
|
30
|
-
* <p>The AWS Certificate Manager Service Linked Role that the policy supports is not affected when you
|
|
31
|
-
* delete the policy. </p>
|
|
32
|
-
* <p>The current policy can be shown with <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_GetPolicy.html">GetPolicy</a> and updated with <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_PutPolicy.html">PutPolicy</a>.</p>
|
|
33
|
-
* <p class="title">
|
|
34
|
-
* <b>About Policies</b>
|
|
35
|
-
* </p>
|
|
36
|
-
* <ul>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>A policy grants access on a private CA to an AWS customer account, to AWS Organizations, or to
|
|
39
|
-
* an AWS Organizations unit. Policies are under the control of a CA administrator. For more information,
|
|
40
|
-
* see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/pca-rbp.html">Using a Resource Based Policy with ACM Private CA</a>.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>A policy permits a user of AWS Certificate Manager (ACM) to issue ACM certificates
|
|
44
|
-
* signed by a CA in another account.</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>For ACM to manage automatic renewal of these certificates,
|
|
48
|
-
* the ACM user must configure a Service Linked Role (SLR). The SLR allows
|
|
49
|
-
* the ACM service to assume the identity of the user, subject to confirmation against the
|
|
50
|
-
* ACM Private CA policy. For more information, see
|
|
51
|
-
* <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-slr.html">Using a
|
|
52
|
-
* Service Linked Role with ACM</a>.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>Updates made in AWS Resource Manager (RAM) are reflected in policies. For more information,
|
|
56
|
-
* see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/pca-ram.html">Attach a Policy for Cross-Account
|
|
57
|
-
* Access</a>.</p>
|
|
58
|
-
* </li>
|
|
59
|
-
* </ul>
|
|
60
|
-
* @example
|
|
61
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
62
|
-
* ```javascript
|
|
63
|
-
* import { ACMPCAClient, DeletePolicyCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
64
|
-
* // const { ACMPCAClient, DeletePolicyCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
65
|
-
* const client = new ACMPCAClient(config);
|
|
66
|
-
* const command = new DeletePolicyCommand(input);
|
|
67
|
-
* const response = await client.send(command);
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* @see {@link DeletePolicyCommandInput} for command's `input` shape.
|
|
71
|
-
* @see {@link DeletePolicyCommandOutput} for command's `response` shape.
|
|
72
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
|
-
export class DeletePolicyCommand extends $Command<
|
|
76
|
-
DeletePolicyCommandInput,
|
|
77
|
-
DeletePolicyCommandOutput,
|
|
78
|
-
ACMPCAClientResolvedConfig
|
|
79
|
-
> {
|
|
80
|
-
// Start section: command_properties
|
|
81
|
-
// End section: command_properties
|
|
82
|
-
|
|
83
|
-
constructor(readonly input: DeletePolicyCommandInput) {
|
|
84
|
-
// Start section: command_constructor
|
|
85
|
-
super();
|
|
86
|
-
// End section: command_constructor
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
resolveMiddleware(
|
|
93
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
94
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
95
|
-
options?: __HttpHandlerOptions
|
|
96
|
-
): Handler<DeletePolicyCommandInput, DeletePolicyCommandOutput> {
|
|
97
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
98
|
-
|
|
99
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
100
|
-
|
|
101
|
-
const { logger } = configuration;
|
|
102
|
-
const clientName = "ACMPCAClient";
|
|
103
|
-
const commandName = "DeletePolicyCommand";
|
|
104
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
105
|
-
logger,
|
|
106
|
-
clientName,
|
|
107
|
-
commandName,
|
|
108
|
-
inputFilterSensitiveLog: DeletePolicyRequest.filterSensitiveLog,
|
|
109
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
110
|
-
};
|
|
111
|
-
const { requestHandler } = configuration;
|
|
112
|
-
return stack.resolve(
|
|
113
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
114
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
115
|
-
handlerExecutionContext
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private serialize(input: DeletePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
120
|
-
return serializeAws_json1_1DeletePolicyCommand(input, context);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeletePolicyCommandOutput> {
|
|
124
|
-
return deserializeAws_json1_1DeletePolicyCommand(output, context);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// Start section: command_body_extra
|
|
128
|
-
// End section: command_body_extra
|
|
129
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
|
|
15
|
-
import {
|
|
16
|
-
DescribeCertificateAuthorityAuditReportRequest,
|
|
17
|
-
DescribeCertificateAuthorityAuditReportResponse,
|
|
18
|
-
} from "../models/models_0";
|
|
19
|
-
import {
|
|
20
|
-
deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand,
|
|
21
|
-
serializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand,
|
|
22
|
-
} from "../protocols/Aws_json1_1";
|
|
23
|
-
|
|
24
|
-
export interface DescribeCertificateAuthorityAuditReportCommandInput
|
|
25
|
-
extends DescribeCertificateAuthorityAuditReportRequest {}
|
|
26
|
-
export interface DescribeCertificateAuthorityAuditReportCommandOutput
|
|
27
|
-
extends DescribeCertificateAuthorityAuditReportResponse,
|
|
28
|
-
__MetadataBearer {}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* <p>Lists information about a specific audit report created by calling the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthorityAuditReport.html">CreateCertificateAuthorityAuditReport</a> action. Audit information is created
|
|
32
|
-
* every time the certificate authority (CA) private key is used. The private key is used
|
|
33
|
-
* when you call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_IssueCertificate.html">IssueCertificate</a> action or the
|
|
34
|
-
* <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_RevokeCertificate.html">RevokeCertificate</a> action. </p>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { ACMPCAClient, DescribeCertificateAuthorityAuditReportCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
39
|
-
* // const { ACMPCAClient, DescribeCertificateAuthorityAuditReportCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
40
|
-
* const client = new ACMPCAClient(config);
|
|
41
|
-
* const command = new DescribeCertificateAuthorityAuditReportCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link DescribeCertificateAuthorityAuditReportCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link DescribeCertificateAuthorityAuditReportCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export class DescribeCertificateAuthorityAuditReportCommand extends $Command<
|
|
51
|
-
DescribeCertificateAuthorityAuditReportCommandInput,
|
|
52
|
-
DescribeCertificateAuthorityAuditReportCommandOutput,
|
|
53
|
-
ACMPCAClientResolvedConfig
|
|
54
|
-
> {
|
|
55
|
-
// Start section: command_properties
|
|
56
|
-
// End section: command_properties
|
|
57
|
-
|
|
58
|
-
constructor(readonly input: DescribeCertificateAuthorityAuditReportCommandInput) {
|
|
59
|
-
// Start section: command_constructor
|
|
60
|
-
super();
|
|
61
|
-
// End section: command_constructor
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
resolveMiddleware(
|
|
68
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
69
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
70
|
-
options?: __HttpHandlerOptions
|
|
71
|
-
): Handler<
|
|
72
|
-
DescribeCertificateAuthorityAuditReportCommandInput,
|
|
73
|
-
DescribeCertificateAuthorityAuditReportCommandOutput
|
|
74
|
-
> {
|
|
75
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
76
|
-
|
|
77
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
78
|
-
|
|
79
|
-
const { logger } = configuration;
|
|
80
|
-
const clientName = "ACMPCAClient";
|
|
81
|
-
const commandName = "DescribeCertificateAuthorityAuditReportCommand";
|
|
82
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
83
|
-
logger,
|
|
84
|
-
clientName,
|
|
85
|
-
commandName,
|
|
86
|
-
inputFilterSensitiveLog: DescribeCertificateAuthorityAuditReportRequest.filterSensitiveLog,
|
|
87
|
-
outputFilterSensitiveLog: DescribeCertificateAuthorityAuditReportResponse.filterSensitiveLog,
|
|
88
|
-
};
|
|
89
|
-
const { requestHandler } = configuration;
|
|
90
|
-
return stack.resolve(
|
|
91
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
92
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
93
|
-
handlerExecutionContext
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private serialize(
|
|
98
|
-
input: DescribeCertificateAuthorityAuditReportCommandInput,
|
|
99
|
-
context: __SerdeContext
|
|
100
|
-
): Promise<__HttpRequest> {
|
|
101
|
-
return serializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand(input, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private deserialize(
|
|
105
|
-
output: __HttpResponse,
|
|
106
|
-
context: __SerdeContext
|
|
107
|
-
): Promise<DescribeCertificateAuthorityAuditReportCommandOutput> {
|
|
108
|
-
return deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand(output, context);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// Start section: command_body_extra
|
|
112
|
-
// End section: command_body_extra
|
|
113
|
-
}
|