@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,140 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
|
|
15
|
-
import { DescribeCertificateAuthorityRequest, DescribeCertificateAuthorityResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeCertificateAuthorityCommand,
|
|
18
|
-
serializeAws_json1_1DescribeCertificateAuthorityCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeCertificateAuthorityCommandInput extends DescribeCertificateAuthorityRequest {}
|
|
22
|
-
export interface DescribeCertificateAuthorityCommandOutput
|
|
23
|
-
extends DescribeCertificateAuthorityResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Lists information about your private certificate authority (CA) or one that has been
|
|
28
|
-
* shared with you. You specify the private CA on input by its ARN (Amazon Resource Name).
|
|
29
|
-
* The output contains the status of your CA. This can be any of the following: </p>
|
|
30
|
-
* <ul>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>
|
|
33
|
-
* <code>CREATING</code> - ACM Private CA is creating your private certificate
|
|
34
|
-
* authority.</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>
|
|
38
|
-
* <code>PENDING_CERTIFICATE</code> - The certificate is pending. You must use
|
|
39
|
-
* your ACM Private CA-hosted or on-premises root or subordinate CA to sign your private CA
|
|
40
|
-
* CSR and then import it into PCA. </p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>
|
|
44
|
-
* <code>ACTIVE</code> - Your private CA is active.</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>
|
|
48
|
-
* <code>DISABLED</code> - Your private CA has been disabled.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>
|
|
52
|
-
* <code>EXPIRED</code> - Your private CA certificate has expired.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>
|
|
56
|
-
* <code>FAILED</code> - Your private CA has failed. Your CA can fail because of
|
|
57
|
-
* problems such a network outage or back-end AWS failure or other errors. A
|
|
58
|
-
* failed CA can never return to the pending state. You must create a new CA.
|
|
59
|
-
* </p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>
|
|
63
|
-
* <code>DELETED</code> - Your private CA is within the restoration period, after
|
|
64
|
-
* which it is permanently deleted. The length of time remaining in the CA's
|
|
65
|
-
* restoration period is also included in this action's output.</p>
|
|
66
|
-
* </li>
|
|
67
|
-
* </ul>
|
|
68
|
-
* @example
|
|
69
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
70
|
-
* ```javascript
|
|
71
|
-
* import { ACMPCAClient, DescribeCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
72
|
-
* // const { ACMPCAClient, DescribeCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
73
|
-
* const client = new ACMPCAClient(config);
|
|
74
|
-
* const command = new DescribeCertificateAuthorityCommand(input);
|
|
75
|
-
* const response = await client.send(command);
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* @see {@link DescribeCertificateAuthorityCommandInput} for command's `input` shape.
|
|
79
|
-
* @see {@link DescribeCertificateAuthorityCommandOutput} for command's `response` shape.
|
|
80
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
81
|
-
*
|
|
82
|
-
*/
|
|
83
|
-
export class DescribeCertificateAuthorityCommand extends $Command<
|
|
84
|
-
DescribeCertificateAuthorityCommandInput,
|
|
85
|
-
DescribeCertificateAuthorityCommandOutput,
|
|
86
|
-
ACMPCAClientResolvedConfig
|
|
87
|
-
> {
|
|
88
|
-
// Start section: command_properties
|
|
89
|
-
// End section: command_properties
|
|
90
|
-
|
|
91
|
-
constructor(readonly input: DescribeCertificateAuthorityCommandInput) {
|
|
92
|
-
// Start section: command_constructor
|
|
93
|
-
super();
|
|
94
|
-
// End section: command_constructor
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
100
|
-
resolveMiddleware(
|
|
101
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
102
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
103
|
-
options?: __HttpHandlerOptions
|
|
104
|
-
): Handler<DescribeCertificateAuthorityCommandInput, DescribeCertificateAuthorityCommandOutput> {
|
|
105
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
106
|
-
|
|
107
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
108
|
-
|
|
109
|
-
const { logger } = configuration;
|
|
110
|
-
const clientName = "ACMPCAClient";
|
|
111
|
-
const commandName = "DescribeCertificateAuthorityCommand";
|
|
112
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
113
|
-
logger,
|
|
114
|
-
clientName,
|
|
115
|
-
commandName,
|
|
116
|
-
inputFilterSensitiveLog: DescribeCertificateAuthorityRequest.filterSensitiveLog,
|
|
117
|
-
outputFilterSensitiveLog: DescribeCertificateAuthorityResponse.filterSensitiveLog,
|
|
118
|
-
};
|
|
119
|
-
const { requestHandler } = configuration;
|
|
120
|
-
return stack.resolve(
|
|
121
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
122
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
123
|
-
handlerExecutionContext
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
private serialize(input: DescribeCertificateAuthorityCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
128
|
-
return serializeAws_json1_1DescribeCertificateAuthorityCommand(input, context);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
private deserialize(
|
|
132
|
-
output: __HttpResponse,
|
|
133
|
-
context: __SerdeContext
|
|
134
|
-
): Promise<DescribeCertificateAuthorityCommandOutput> {
|
|
135
|
-
return deserializeAws_json1_1DescribeCertificateAuthorityCommand(output, context);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// Start section: command_body_extra
|
|
139
|
-
// End section: command_body_extra
|
|
140
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
|
|
15
|
-
import {
|
|
16
|
-
GetCertificateAuthorityCertificateRequest,
|
|
17
|
-
GetCertificateAuthorityCertificateResponse,
|
|
18
|
-
} from "../models/models_0";
|
|
19
|
-
import {
|
|
20
|
-
deserializeAws_json1_1GetCertificateAuthorityCertificateCommand,
|
|
21
|
-
serializeAws_json1_1GetCertificateAuthorityCertificateCommand,
|
|
22
|
-
} from "../protocols/Aws_json1_1";
|
|
23
|
-
|
|
24
|
-
export interface GetCertificateAuthorityCertificateCommandInput extends GetCertificateAuthorityCertificateRequest {}
|
|
25
|
-
export interface GetCertificateAuthorityCertificateCommandOutput
|
|
26
|
-
extends GetCertificateAuthorityCertificateResponse,
|
|
27
|
-
__MetadataBearer {}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* <p>Retrieves the certificate and certificate chain for your private certificate authority
|
|
31
|
-
* (CA) or one that has been shared with you. Both the certificate and the chain are base64
|
|
32
|
-
* PEM-encoded. The chain does not include the CA certificate. Each certificate in the
|
|
33
|
-
* chain signs the one before it. </p>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { ACMPCAClient, GetCertificateAuthorityCertificateCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
38
|
-
* // const { ACMPCAClient, GetCertificateAuthorityCertificateCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
39
|
-
* const client = new ACMPCAClient(config);
|
|
40
|
-
* const command = new GetCertificateAuthorityCertificateCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link GetCertificateAuthorityCertificateCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link GetCertificateAuthorityCertificateCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export class GetCertificateAuthorityCertificateCommand extends $Command<
|
|
50
|
-
GetCertificateAuthorityCertificateCommandInput,
|
|
51
|
-
GetCertificateAuthorityCertificateCommandOutput,
|
|
52
|
-
ACMPCAClientResolvedConfig
|
|
53
|
-
> {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
|
-
|
|
57
|
-
constructor(readonly input: GetCertificateAuthorityCertificateCommandInput) {
|
|
58
|
-
// Start section: command_constructor
|
|
59
|
-
super();
|
|
60
|
-
// End section: command_constructor
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
resolveMiddleware(
|
|
67
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
68
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
69
|
-
options?: __HttpHandlerOptions
|
|
70
|
-
): Handler<GetCertificateAuthorityCertificateCommandInput, GetCertificateAuthorityCertificateCommandOutput> {
|
|
71
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
72
|
-
|
|
73
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
74
|
-
|
|
75
|
-
const { logger } = configuration;
|
|
76
|
-
const clientName = "ACMPCAClient";
|
|
77
|
-
const commandName = "GetCertificateAuthorityCertificateCommand";
|
|
78
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
79
|
-
logger,
|
|
80
|
-
clientName,
|
|
81
|
-
commandName,
|
|
82
|
-
inputFilterSensitiveLog: GetCertificateAuthorityCertificateRequest.filterSensitiveLog,
|
|
83
|
-
outputFilterSensitiveLog: GetCertificateAuthorityCertificateResponse.filterSensitiveLog,
|
|
84
|
-
};
|
|
85
|
-
const { requestHandler } = configuration;
|
|
86
|
-
return stack.resolve(
|
|
87
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
88
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
89
|
-
handlerExecutionContext
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private serialize(
|
|
94
|
-
input: GetCertificateAuthorityCertificateCommandInput,
|
|
95
|
-
context: __SerdeContext
|
|
96
|
-
): Promise<__HttpRequest> {
|
|
97
|
-
return serializeAws_json1_1GetCertificateAuthorityCertificateCommand(input, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private deserialize(
|
|
101
|
-
output: __HttpResponse,
|
|
102
|
-
context: __SerdeContext
|
|
103
|
-
): Promise<GetCertificateAuthorityCertificateCommandOutput> {
|
|
104
|
-
return deserializeAws_json1_1GetCertificateAuthorityCertificateCommand(output, context);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Start section: command_body_extra
|
|
108
|
-
// End section: command_body_extra
|
|
109
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
|
|
15
|
-
import { GetCertificateAuthorityCsrRequest, GetCertificateAuthorityCsrResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetCertificateAuthorityCsrCommand,
|
|
18
|
-
serializeAws_json1_1GetCertificateAuthorityCsrCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetCertificateAuthorityCsrCommandInput extends GetCertificateAuthorityCsrRequest {}
|
|
22
|
-
export interface GetCertificateAuthorityCsrCommandOutput extends GetCertificateAuthorityCsrResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves the certificate signing request (CSR) for your private certificate authority
|
|
26
|
-
* (CA). The CSR is created when you call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> action. Sign the CSR with your ACM Private CA-hosted or
|
|
27
|
-
* on-premises root or subordinate CA. Then import the signed certificate back into ACM Private CA
|
|
28
|
-
* by calling the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ImportCertificateAuthorityCertificate.html">ImportCertificateAuthorityCertificate</a> action. The CSR is returned as a
|
|
29
|
-
* base64 PEM-encoded string. </p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { ACMPCAClient, GetCertificateAuthorityCsrCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
34
|
-
* // const { ACMPCAClient, GetCertificateAuthorityCsrCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
35
|
-
* const client = new ACMPCAClient(config);
|
|
36
|
-
* const command = new GetCertificateAuthorityCsrCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link GetCertificateAuthorityCsrCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link GetCertificateAuthorityCsrCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class GetCertificateAuthorityCsrCommand extends $Command<
|
|
46
|
-
GetCertificateAuthorityCsrCommandInput,
|
|
47
|
-
GetCertificateAuthorityCsrCommandOutput,
|
|
48
|
-
ACMPCAClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: GetCertificateAuthorityCsrCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<GetCertificateAuthorityCsrCommandInput, GetCertificateAuthorityCsrCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "ACMPCAClient";
|
|
73
|
-
const commandName = "GetCertificateAuthorityCsrCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: GetCertificateAuthorityCsrRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: GetCertificateAuthorityCsrResponse.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: GetCertificateAuthorityCsrCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_json1_1GetCertificateAuthorityCsrCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(
|
|
94
|
-
output: __HttpResponse,
|
|
95
|
-
context: __SerdeContext
|
|
96
|
-
): Promise<GetCertificateAuthorityCsrCommandOutput> {
|
|
97
|
-
return deserializeAws_json1_1GetCertificateAuthorityCsrCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
|
|
15
|
-
import { GetCertificateRequest, GetCertificateResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetCertificateCommand,
|
|
18
|
-
serializeAws_json1_1GetCertificateCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetCertificateCommandInput extends GetCertificateRequest {}
|
|
22
|
-
export interface GetCertificateCommandOutput extends GetCertificateResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a certificate from your private CA or one that has been shared with you. The
|
|
26
|
-
* ARN of the certificate is returned when you call the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_IssueCertificate.html">IssueCertificate</a> action. You
|
|
27
|
-
* must specify both the ARN of your private CA and the ARN of the issued certificate when
|
|
28
|
-
* calling the <b>GetCertificate</b> action. You can retrieve the
|
|
29
|
-
* certificate if it is in the <b>ISSUED</b> state. You can call
|
|
30
|
-
* the <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CreateCertificateAuthorityAuditReport.html">CreateCertificateAuthorityAuditReport</a> action to create a report that
|
|
31
|
-
* contains information about all of the certificates issued and revoked by your private
|
|
32
|
-
* CA. </p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { ACMPCAClient, GetCertificateCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
37
|
-
* // const { ACMPCAClient, GetCertificateCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
38
|
-
* const client = new ACMPCAClient(config);
|
|
39
|
-
* const command = new GetCertificateCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link GetCertificateCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link GetCertificateCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class GetCertificateCommand extends $Command<
|
|
49
|
-
GetCertificateCommandInput,
|
|
50
|
-
GetCertificateCommandOutput,
|
|
51
|
-
ACMPCAClientResolvedConfig
|
|
52
|
-
> {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
|
|
56
|
-
constructor(readonly input: GetCertificateCommandInput) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
|
-
super();
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
resolveMiddleware(
|
|
66
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
67
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
68
|
-
options?: __HttpHandlerOptions
|
|
69
|
-
): Handler<GetCertificateCommandInput, GetCertificateCommandOutput> {
|
|
70
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
|
-
|
|
72
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
73
|
-
|
|
74
|
-
const { logger } = configuration;
|
|
75
|
-
const clientName = "ACMPCAClient";
|
|
76
|
-
const commandName = "GetCertificateCommand";
|
|
77
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
78
|
-
logger,
|
|
79
|
-
clientName,
|
|
80
|
-
commandName,
|
|
81
|
-
inputFilterSensitiveLog: GetCertificateRequest.filterSensitiveLog,
|
|
82
|
-
outputFilterSensitiveLog: GetCertificateResponse.filterSensitiveLog,
|
|
83
|
-
};
|
|
84
|
-
const { requestHandler } = configuration;
|
|
85
|
-
return stack.resolve(
|
|
86
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
87
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
88
|
-
handlerExecutionContext
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private serialize(input: GetCertificateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
93
|
-
return serializeAws_json1_1GetCertificateCommand(input, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetCertificateCommandOutput> {
|
|
97
|
-
return deserializeAws_json1_1GetCertificateCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ACMPCAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ACMPCAClient";
|
|
15
|
-
import { GetPolicyRequest, GetPolicyResponse } from "../models/models_0";
|
|
16
|
-
import { deserializeAws_json1_1GetPolicyCommand, serializeAws_json1_1GetPolicyCommand } from "../protocols/Aws_json1_1";
|
|
17
|
-
|
|
18
|
-
export interface GetPolicyCommandInput extends GetPolicyRequest {}
|
|
19
|
-
export interface GetPolicyCommandOutput extends GetPolicyResponse, __MetadataBearer {}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* <p>Retrieves the resource-based policy attached to a private CA. If either the private CA
|
|
23
|
-
* resource or the policy cannot be found, this action returns a
|
|
24
|
-
* <code>ResourceNotFoundException</code>. </p>
|
|
25
|
-
* <p>The policy can be attached or updated with <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_PutPolicy.html">PutPolicy</a> and removed with <a href="https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_DeletePolicy.html">DeletePolicy</a>.</p>
|
|
26
|
-
* <p class="title">
|
|
27
|
-
* <b>About Policies</b>
|
|
28
|
-
* </p>
|
|
29
|
-
* <ul>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>A policy grants access on a private CA to an AWS customer account, to AWS Organizations, or to
|
|
32
|
-
* an AWS Organizations unit. Policies are under the control of a CA administrator. For more information,
|
|
33
|
-
* see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/pca-rbp.html">Using a Resource Based Policy with ACM Private CA</a>.</p>
|
|
34
|
-
* </li>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>A policy permits a user of AWS Certificate Manager (ACM) to issue ACM certificates
|
|
37
|
-
* signed by a CA in another account.</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>For ACM to manage automatic renewal of these certificates,
|
|
41
|
-
* the ACM user must configure a Service Linked Role (SLR). The SLR allows
|
|
42
|
-
* the ACM service to assume the identity of the user, subject to confirmation against the
|
|
43
|
-
* ACM Private CA policy. For more information, see
|
|
44
|
-
* <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-slr.html">Using a
|
|
45
|
-
* Service Linked Role with ACM</a>.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>Updates made in AWS Resource Manager (RAM) are reflected in policies. For more information,
|
|
49
|
-
* see <a href="https://docs.aws.amazon.com/acm-pca/latest/userguide/pca-ram.html">Attach a Policy for Cross-Account
|
|
50
|
-
* Access</a>.</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* </ul>
|
|
53
|
-
* @example
|
|
54
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
55
|
-
* ```javascript
|
|
56
|
-
* import { ACMPCAClient, GetPolicyCommand } from "@aws-sdk/client-acm-pca"; // ES Modules import
|
|
57
|
-
* // const { ACMPCAClient, GetPolicyCommand } = require("@aws-sdk/client-acm-pca"); // CommonJS import
|
|
58
|
-
* const client = new ACMPCAClient(config);
|
|
59
|
-
* const command = new GetPolicyCommand(input);
|
|
60
|
-
* const response = await client.send(command);
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @see {@link GetPolicyCommandInput} for command's `input` shape.
|
|
64
|
-
* @see {@link GetPolicyCommandOutput} for command's `response` shape.
|
|
65
|
-
* @see {@link ACMPCAClientResolvedConfig | config} for command's `input` shape.
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
export class GetPolicyCommand extends $Command<
|
|
69
|
-
GetPolicyCommandInput,
|
|
70
|
-
GetPolicyCommandOutput,
|
|
71
|
-
ACMPCAClientResolvedConfig
|
|
72
|
-
> {
|
|
73
|
-
// Start section: command_properties
|
|
74
|
-
// End section: command_properties
|
|
75
|
-
|
|
76
|
-
constructor(readonly input: GetPolicyCommandInput) {
|
|
77
|
-
// Start section: command_constructor
|
|
78
|
-
super();
|
|
79
|
-
// End section: command_constructor
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
resolveMiddleware(
|
|
86
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
87
|
-
configuration: ACMPCAClientResolvedConfig,
|
|
88
|
-
options?: __HttpHandlerOptions
|
|
89
|
-
): Handler<GetPolicyCommandInput, GetPolicyCommandOutput> {
|
|
90
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
91
|
-
|
|
92
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
93
|
-
|
|
94
|
-
const { logger } = configuration;
|
|
95
|
-
const clientName = "ACMPCAClient";
|
|
96
|
-
const commandName = "GetPolicyCommand";
|
|
97
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
98
|
-
logger,
|
|
99
|
-
clientName,
|
|
100
|
-
commandName,
|
|
101
|
-
inputFilterSensitiveLog: GetPolicyRequest.filterSensitiveLog,
|
|
102
|
-
outputFilterSensitiveLog: GetPolicyResponse.filterSensitiveLog,
|
|
103
|
-
};
|
|
104
|
-
const { requestHandler } = configuration;
|
|
105
|
-
return stack.resolve(
|
|
106
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
107
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
108
|
-
handlerExecutionContext
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private serialize(input: GetPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
113
|
-
return serializeAws_json1_1GetPolicyCommand(input, context);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetPolicyCommandOutput> {
|
|
117
|
-
return deserializeAws_json1_1GetPolicyCommand(output, context);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Start section: command_body_extra
|
|
121
|
-
// End section: command_body_extra
|
|
122
|
-
}
|