@aws-sdk/client-acm-pca 3.489.0 → 3.495.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/dist-cjs/ACMPCA.js +1 -57
- package/dist-cjs/ACMPCAClient.js +1 -43
- package/dist-cjs/commands/CreateCertificateAuthorityAuditReportCommand.js +1 -28
- package/dist-cjs/commands/CreateCertificateAuthorityCommand.js +1 -28
- package/dist-cjs/commands/CreatePermissionCommand.js +1 -28
- package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js +1 -28
- package/dist-cjs/commands/DeletePermissionCommand.js +1 -28
- package/dist-cjs/commands/DeletePolicyCommand.js +1 -28
- package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js +1 -28
- package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js +1 -28
- package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js +1 -28
- package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js +1 -28
- package/dist-cjs/commands/GetCertificateCommand.js +1 -28
- package/dist-cjs/commands/GetPolicyCommand.js +1 -28
- package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js +1 -28
- package/dist-cjs/commands/IssueCertificateCommand.js +1 -28
- package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js +1 -28
- package/dist-cjs/commands/ListPermissionsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsCommand.js +1 -28
- package/dist-cjs/commands/PutPolicyCommand.js +1 -28
- package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js +1 -28
- package/dist-cjs/commands/RevokeCertificateCommand.js +1 -28
- package/dist-cjs/commands/TagCertificateAuthorityCommand.js +1 -28
- package/dist-cjs/commands/UntagCertificateAuthorityCommand.js +1 -28
- package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -26
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2665 -12
- package/dist-cjs/models/ACMPCAServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -349
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCertificateAuthoritiesPaginator.js +1 -7
- package/dist-cjs/pagination/ListPermissionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1487
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -6
- package/dist-cjs/waiters/waitForAuditReportCreated.js +1 -45
- package/dist-cjs/waiters/waitForCertificateAuthorityCSRCreated.js +1 -31
- package/dist-cjs/waiters/waitForCertificateIssued.js +1 -31
- package/package.json +41 -41
package/dist-cjs/index.js
CHANGED
|
@@ -1,13 +1,2666 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
ACMPCA: () => ACMPCA,
|
|
25
|
+
ACMPCAClient: () => ACMPCAClient,
|
|
26
|
+
ACMPCAServiceException: () => ACMPCAServiceException,
|
|
27
|
+
AccessMethodType: () => AccessMethodType,
|
|
28
|
+
ActionType: () => ActionType,
|
|
29
|
+
AuditReportResponseFormat: () => AuditReportResponseFormat,
|
|
30
|
+
AuditReportStatus: () => AuditReportStatus,
|
|
31
|
+
CertificateAuthorityStatus: () => CertificateAuthorityStatus,
|
|
32
|
+
CertificateAuthorityType: () => CertificateAuthorityType,
|
|
33
|
+
CertificateAuthorityUsageMode: () => CertificateAuthorityUsageMode,
|
|
34
|
+
CertificateMismatchException: () => CertificateMismatchException,
|
|
35
|
+
ConcurrentModificationException: () => ConcurrentModificationException,
|
|
36
|
+
CreateCertificateAuthorityAuditReportCommand: () => CreateCertificateAuthorityAuditReportCommand,
|
|
37
|
+
CreateCertificateAuthorityCommand: () => CreateCertificateAuthorityCommand,
|
|
38
|
+
CreatePermissionCommand: () => CreatePermissionCommand,
|
|
39
|
+
DeleteCertificateAuthorityCommand: () => DeleteCertificateAuthorityCommand,
|
|
40
|
+
DeletePermissionCommand: () => DeletePermissionCommand,
|
|
41
|
+
DeletePolicyCommand: () => DeletePolicyCommand,
|
|
42
|
+
DescribeCertificateAuthorityAuditReportCommand: () => DescribeCertificateAuthorityAuditReportCommand,
|
|
43
|
+
DescribeCertificateAuthorityCommand: () => DescribeCertificateAuthorityCommand,
|
|
44
|
+
ExtendedKeyUsageType: () => ExtendedKeyUsageType,
|
|
45
|
+
FailureReason: () => FailureReason,
|
|
46
|
+
GetCertificateAuthorityCertificateCommand: () => GetCertificateAuthorityCertificateCommand,
|
|
47
|
+
GetCertificateAuthorityCsrCommand: () => GetCertificateAuthorityCsrCommand,
|
|
48
|
+
GetCertificateCommand: () => GetCertificateCommand,
|
|
49
|
+
GetPolicyCommand: () => GetPolicyCommand,
|
|
50
|
+
ImportCertificateAuthorityCertificateCommand: () => ImportCertificateAuthorityCertificateCommand,
|
|
51
|
+
InvalidArgsException: () => InvalidArgsException,
|
|
52
|
+
InvalidArnException: () => InvalidArnException,
|
|
53
|
+
InvalidNextTokenException: () => InvalidNextTokenException,
|
|
54
|
+
InvalidPolicyException: () => InvalidPolicyException,
|
|
55
|
+
InvalidRequestException: () => InvalidRequestException,
|
|
56
|
+
InvalidStateException: () => InvalidStateException,
|
|
57
|
+
InvalidTagException: () => InvalidTagException,
|
|
58
|
+
IssueCertificateCommand: () => IssueCertificateCommand,
|
|
59
|
+
KeyAlgorithm: () => KeyAlgorithm,
|
|
60
|
+
KeyStorageSecurityStandard: () => KeyStorageSecurityStandard,
|
|
61
|
+
LimitExceededException: () => LimitExceededException,
|
|
62
|
+
ListCertificateAuthoritiesCommand: () => ListCertificateAuthoritiesCommand,
|
|
63
|
+
ListPermissionsCommand: () => ListPermissionsCommand,
|
|
64
|
+
ListTagsCommand: () => ListTagsCommand,
|
|
65
|
+
LockoutPreventedException: () => LockoutPreventedException,
|
|
66
|
+
MalformedCSRException: () => MalformedCSRException,
|
|
67
|
+
MalformedCertificateException: () => MalformedCertificateException,
|
|
68
|
+
PermissionAlreadyExistsException: () => PermissionAlreadyExistsException,
|
|
69
|
+
PolicyQualifierId: () => PolicyQualifierId,
|
|
70
|
+
PutPolicyCommand: () => PutPolicyCommand,
|
|
71
|
+
RequestAlreadyProcessedException: () => RequestAlreadyProcessedException,
|
|
72
|
+
RequestFailedException: () => RequestFailedException,
|
|
73
|
+
RequestInProgressException: () => RequestInProgressException,
|
|
74
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
75
|
+
ResourceOwner: () => ResourceOwner,
|
|
76
|
+
RestoreCertificateAuthorityCommand: () => RestoreCertificateAuthorityCommand,
|
|
77
|
+
RevocationReason: () => RevocationReason,
|
|
78
|
+
RevokeCertificateCommand: () => RevokeCertificateCommand,
|
|
79
|
+
S3ObjectAcl: () => S3ObjectAcl,
|
|
80
|
+
SigningAlgorithm: () => SigningAlgorithm,
|
|
81
|
+
TagCertificateAuthorityCommand: () => TagCertificateAuthorityCommand,
|
|
82
|
+
TooManyTagsException: () => TooManyTagsException,
|
|
83
|
+
UntagCertificateAuthorityCommand: () => UntagCertificateAuthorityCommand,
|
|
84
|
+
UpdateCertificateAuthorityCommand: () => UpdateCertificateAuthorityCommand,
|
|
85
|
+
ValidityPeriodType: () => ValidityPeriodType,
|
|
86
|
+
__Client: () => import_smithy_client.Client,
|
|
87
|
+
paginateListCertificateAuthorities: () => paginateListCertificateAuthorities,
|
|
88
|
+
paginateListPermissions: () => paginateListPermissions,
|
|
89
|
+
paginateListTags: () => paginateListTags,
|
|
90
|
+
waitForAuditReportCreated: () => waitForAuditReportCreated,
|
|
91
|
+
waitForCertificateAuthorityCSRCreated: () => waitForCertificateAuthorityCSRCreated,
|
|
92
|
+
waitForCertificateIssued: () => waitForCertificateIssued,
|
|
93
|
+
waitUntilAuditReportCreated: () => waitUntilAuditReportCreated,
|
|
94
|
+
waitUntilCertificateAuthorityCSRCreated: () => waitUntilCertificateAuthorityCSRCreated,
|
|
95
|
+
waitUntilCertificateIssued: () => waitUntilCertificateIssued
|
|
96
|
+
});
|
|
97
|
+
module.exports = __toCommonJS(src_exports);
|
|
98
|
+
|
|
99
|
+
// src/ACMPCAClient.ts
|
|
100
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
101
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
102
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
103
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
104
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
105
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
106
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
107
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
108
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
// src/endpoint/EndpointParameters.ts
|
|
112
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
113
|
+
return {
|
|
114
|
+
...options,
|
|
115
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
116
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
117
|
+
defaultSigningName: "acm-pca"
|
|
118
|
+
};
|
|
119
|
+
}, "resolveClientEndpointParameters");
|
|
120
|
+
var commonParams = {
|
|
121
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
122
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
123
|
+
Region: { type: "builtInParams", name: "region" },
|
|
124
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// src/ACMPCAClient.ts
|
|
128
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
129
|
+
|
|
130
|
+
// src/runtimeExtensions.ts
|
|
131
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
132
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
133
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
134
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
135
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
136
|
+
const extensionConfiguration = {
|
|
137
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
138
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
139
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
140
|
+
};
|
|
141
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
142
|
+
return {
|
|
143
|
+
...runtimeConfig,
|
|
144
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
145
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
146
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
147
|
+
};
|
|
148
|
+
}, "resolveRuntimeExtensions");
|
|
149
|
+
|
|
150
|
+
// src/ACMPCAClient.ts
|
|
151
|
+
var _ACMPCAClient = class _ACMPCAClient extends import_smithy_client.Client {
|
|
152
|
+
constructor(...[configuration]) {
|
|
153
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
154
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
155
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
156
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
157
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
158
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
159
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
160
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
161
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
162
|
+
super(_config_8);
|
|
163
|
+
this.config = _config_8;
|
|
164
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
165
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
166
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
167
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
168
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
169
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
170
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
174
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
175
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
176
|
+
*/
|
|
177
|
+
destroy() {
|
|
178
|
+
super.destroy();
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
__name(_ACMPCAClient, "ACMPCAClient");
|
|
182
|
+
var ACMPCAClient = _ACMPCAClient;
|
|
183
|
+
|
|
184
|
+
// src/ACMPCA.ts
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
// src/commands/CreateCertificateAuthorityAuditReportCommand.ts
|
|
188
|
+
|
|
189
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
190
|
+
|
|
191
|
+
var import_types = require("@smithy/types");
|
|
192
|
+
|
|
193
|
+
// src/protocols/Aws_json1_1.ts
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
// src/models/ACMPCAServiceException.ts
|
|
198
|
+
|
|
199
|
+
var _ACMPCAServiceException = class _ACMPCAServiceException extends import_smithy_client.ServiceException {
|
|
200
|
+
/**
|
|
201
|
+
* @internal
|
|
202
|
+
*/
|
|
203
|
+
constructor(options) {
|
|
204
|
+
super(options);
|
|
205
|
+
Object.setPrototypeOf(this, _ACMPCAServiceException.prototype);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
__name(_ACMPCAServiceException, "ACMPCAServiceException");
|
|
209
|
+
var ACMPCAServiceException = _ACMPCAServiceException;
|
|
210
|
+
|
|
211
|
+
// src/models/models_0.ts
|
|
212
|
+
var AccessMethodType = {
|
|
213
|
+
CA_REPOSITORY: "CA_REPOSITORY",
|
|
214
|
+
RESOURCE_PKI_MANIFEST: "RESOURCE_PKI_MANIFEST",
|
|
215
|
+
RESOURCE_PKI_NOTIFY: "RESOURCE_PKI_NOTIFY"
|
|
216
|
+
};
|
|
217
|
+
var KeyAlgorithm = {
|
|
218
|
+
EC_prime256v1: "EC_prime256v1",
|
|
219
|
+
EC_secp384r1: "EC_secp384r1",
|
|
220
|
+
RSA_2048: "RSA_2048",
|
|
221
|
+
RSA_4096: "RSA_4096"
|
|
222
|
+
};
|
|
223
|
+
var SigningAlgorithm = {
|
|
224
|
+
SHA256WITHECDSA: "SHA256WITHECDSA",
|
|
225
|
+
SHA256WITHRSA: "SHA256WITHRSA",
|
|
226
|
+
SHA384WITHECDSA: "SHA384WITHECDSA",
|
|
227
|
+
SHA384WITHRSA: "SHA384WITHRSA",
|
|
228
|
+
SHA512WITHECDSA: "SHA512WITHECDSA",
|
|
229
|
+
SHA512WITHRSA: "SHA512WITHRSA"
|
|
230
|
+
};
|
|
231
|
+
var CertificateAuthorityType = {
|
|
232
|
+
ROOT: "ROOT",
|
|
233
|
+
SUBORDINATE: "SUBORDINATE"
|
|
234
|
+
};
|
|
235
|
+
var KeyStorageSecurityStandard = {
|
|
236
|
+
FIPS_140_2_LEVEL_2_OR_HIGHER: "FIPS_140_2_LEVEL_2_OR_HIGHER",
|
|
237
|
+
FIPS_140_2_LEVEL_3_OR_HIGHER: "FIPS_140_2_LEVEL_3_OR_HIGHER"
|
|
238
|
+
};
|
|
239
|
+
var S3ObjectAcl = {
|
|
240
|
+
BUCKET_OWNER_FULL_CONTROL: "BUCKET_OWNER_FULL_CONTROL",
|
|
241
|
+
PUBLIC_READ: "PUBLIC_READ"
|
|
242
|
+
};
|
|
243
|
+
var CertificateAuthorityUsageMode = {
|
|
244
|
+
GENERAL_PURPOSE: "GENERAL_PURPOSE",
|
|
245
|
+
SHORT_LIVED_CERTIFICATE: "SHORT_LIVED_CERTIFICATE"
|
|
246
|
+
};
|
|
247
|
+
var _InvalidArgsException = class _InvalidArgsException extends ACMPCAServiceException {
|
|
248
|
+
/**
|
|
249
|
+
* @internal
|
|
250
|
+
*/
|
|
251
|
+
constructor(opts) {
|
|
252
|
+
super({
|
|
253
|
+
name: "InvalidArgsException",
|
|
254
|
+
$fault: "client",
|
|
255
|
+
...opts
|
|
256
|
+
});
|
|
257
|
+
this.name = "InvalidArgsException";
|
|
258
|
+
this.$fault = "client";
|
|
259
|
+
Object.setPrototypeOf(this, _InvalidArgsException.prototype);
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
__name(_InvalidArgsException, "InvalidArgsException");
|
|
263
|
+
var InvalidArgsException = _InvalidArgsException;
|
|
264
|
+
var _InvalidPolicyException = class _InvalidPolicyException extends ACMPCAServiceException {
|
|
265
|
+
/**
|
|
266
|
+
* @internal
|
|
267
|
+
*/
|
|
268
|
+
constructor(opts) {
|
|
269
|
+
super({
|
|
270
|
+
name: "InvalidPolicyException",
|
|
271
|
+
$fault: "client",
|
|
272
|
+
...opts
|
|
273
|
+
});
|
|
274
|
+
this.name = "InvalidPolicyException";
|
|
275
|
+
this.$fault = "client";
|
|
276
|
+
Object.setPrototypeOf(this, _InvalidPolicyException.prototype);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
__name(_InvalidPolicyException, "InvalidPolicyException");
|
|
280
|
+
var InvalidPolicyException = _InvalidPolicyException;
|
|
281
|
+
var _InvalidTagException = class _InvalidTagException extends ACMPCAServiceException {
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
285
|
+
constructor(opts) {
|
|
286
|
+
super({
|
|
287
|
+
name: "InvalidTagException",
|
|
288
|
+
$fault: "client",
|
|
289
|
+
...opts
|
|
290
|
+
});
|
|
291
|
+
this.name = "InvalidTagException";
|
|
292
|
+
this.$fault = "client";
|
|
293
|
+
Object.setPrototypeOf(this, _InvalidTagException.prototype);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
__name(_InvalidTagException, "InvalidTagException");
|
|
297
|
+
var InvalidTagException = _InvalidTagException;
|
|
298
|
+
var _LimitExceededException = class _LimitExceededException extends ACMPCAServiceException {
|
|
299
|
+
/**
|
|
300
|
+
* @internal
|
|
301
|
+
*/
|
|
302
|
+
constructor(opts) {
|
|
303
|
+
super({
|
|
304
|
+
name: "LimitExceededException",
|
|
305
|
+
$fault: "client",
|
|
306
|
+
...opts
|
|
307
|
+
});
|
|
308
|
+
this.name = "LimitExceededException";
|
|
309
|
+
this.$fault = "client";
|
|
310
|
+
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
__name(_LimitExceededException, "LimitExceededException");
|
|
314
|
+
var LimitExceededException = _LimitExceededException;
|
|
315
|
+
var AuditReportResponseFormat = {
|
|
316
|
+
CSV: "CSV",
|
|
317
|
+
JSON: "JSON"
|
|
318
|
+
};
|
|
319
|
+
var _InvalidArnException = class _InvalidArnException extends ACMPCAServiceException {
|
|
320
|
+
/**
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
constructor(opts) {
|
|
324
|
+
super({
|
|
325
|
+
name: "InvalidArnException",
|
|
326
|
+
$fault: "client",
|
|
327
|
+
...opts
|
|
328
|
+
});
|
|
329
|
+
this.name = "InvalidArnException";
|
|
330
|
+
this.$fault = "client";
|
|
331
|
+
Object.setPrototypeOf(this, _InvalidArnException.prototype);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
__name(_InvalidArnException, "InvalidArnException");
|
|
335
|
+
var InvalidArnException = _InvalidArnException;
|
|
336
|
+
var _InvalidStateException = class _InvalidStateException extends ACMPCAServiceException {
|
|
337
|
+
/**
|
|
338
|
+
* @internal
|
|
339
|
+
*/
|
|
340
|
+
constructor(opts) {
|
|
341
|
+
super({
|
|
342
|
+
name: "InvalidStateException",
|
|
343
|
+
$fault: "client",
|
|
344
|
+
...opts
|
|
345
|
+
});
|
|
346
|
+
this.name = "InvalidStateException";
|
|
347
|
+
this.$fault = "client";
|
|
348
|
+
Object.setPrototypeOf(this, _InvalidStateException.prototype);
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
__name(_InvalidStateException, "InvalidStateException");
|
|
352
|
+
var InvalidStateException = _InvalidStateException;
|
|
353
|
+
var _RequestFailedException = class _RequestFailedException extends ACMPCAServiceException {
|
|
354
|
+
/**
|
|
355
|
+
* @internal
|
|
356
|
+
*/
|
|
357
|
+
constructor(opts) {
|
|
358
|
+
super({
|
|
359
|
+
name: "RequestFailedException",
|
|
360
|
+
$fault: "client",
|
|
361
|
+
...opts
|
|
362
|
+
});
|
|
363
|
+
this.name = "RequestFailedException";
|
|
364
|
+
this.$fault = "client";
|
|
365
|
+
Object.setPrototypeOf(this, _RequestFailedException.prototype);
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
__name(_RequestFailedException, "RequestFailedException");
|
|
369
|
+
var RequestFailedException = _RequestFailedException;
|
|
370
|
+
var _RequestInProgressException = class _RequestInProgressException extends ACMPCAServiceException {
|
|
371
|
+
/**
|
|
372
|
+
* @internal
|
|
373
|
+
*/
|
|
374
|
+
constructor(opts) {
|
|
375
|
+
super({
|
|
376
|
+
name: "RequestInProgressException",
|
|
377
|
+
$fault: "client",
|
|
378
|
+
...opts
|
|
379
|
+
});
|
|
380
|
+
this.name = "RequestInProgressException";
|
|
381
|
+
this.$fault = "client";
|
|
382
|
+
Object.setPrototypeOf(this, _RequestInProgressException.prototype);
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
__name(_RequestInProgressException, "RequestInProgressException");
|
|
386
|
+
var RequestInProgressException = _RequestInProgressException;
|
|
387
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends ACMPCAServiceException {
|
|
388
|
+
/**
|
|
389
|
+
* @internal
|
|
390
|
+
*/
|
|
391
|
+
constructor(opts) {
|
|
392
|
+
super({
|
|
393
|
+
name: "ResourceNotFoundException",
|
|
394
|
+
$fault: "client",
|
|
395
|
+
...opts
|
|
396
|
+
});
|
|
397
|
+
this.name = "ResourceNotFoundException";
|
|
398
|
+
this.$fault = "client";
|
|
399
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
403
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
404
|
+
var ActionType = {
|
|
405
|
+
GetCertificate: "GetCertificate",
|
|
406
|
+
IssueCertificate: "IssueCertificate",
|
|
407
|
+
ListPermissions: "ListPermissions"
|
|
408
|
+
};
|
|
409
|
+
var _PermissionAlreadyExistsException = class _PermissionAlreadyExistsException extends ACMPCAServiceException {
|
|
410
|
+
/**
|
|
411
|
+
* @internal
|
|
412
|
+
*/
|
|
413
|
+
constructor(opts) {
|
|
414
|
+
super({
|
|
415
|
+
name: "PermissionAlreadyExistsException",
|
|
416
|
+
$fault: "client",
|
|
417
|
+
...opts
|
|
418
|
+
});
|
|
419
|
+
this.name = "PermissionAlreadyExistsException";
|
|
420
|
+
this.$fault = "client";
|
|
421
|
+
Object.setPrototypeOf(this, _PermissionAlreadyExistsException.prototype);
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
__name(_PermissionAlreadyExistsException, "PermissionAlreadyExistsException");
|
|
425
|
+
var PermissionAlreadyExistsException = _PermissionAlreadyExistsException;
|
|
426
|
+
var _ConcurrentModificationException = class _ConcurrentModificationException extends ACMPCAServiceException {
|
|
427
|
+
/**
|
|
428
|
+
* @internal
|
|
429
|
+
*/
|
|
430
|
+
constructor(opts) {
|
|
431
|
+
super({
|
|
432
|
+
name: "ConcurrentModificationException",
|
|
433
|
+
$fault: "client",
|
|
434
|
+
...opts
|
|
435
|
+
});
|
|
436
|
+
this.name = "ConcurrentModificationException";
|
|
437
|
+
this.$fault = "client";
|
|
438
|
+
Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
__name(_ConcurrentModificationException, "ConcurrentModificationException");
|
|
442
|
+
var ConcurrentModificationException = _ConcurrentModificationException;
|
|
443
|
+
var _LockoutPreventedException = class _LockoutPreventedException extends ACMPCAServiceException {
|
|
444
|
+
/**
|
|
445
|
+
* @internal
|
|
446
|
+
*/
|
|
447
|
+
constructor(opts) {
|
|
448
|
+
super({
|
|
449
|
+
name: "LockoutPreventedException",
|
|
450
|
+
$fault: "client",
|
|
451
|
+
...opts
|
|
452
|
+
});
|
|
453
|
+
this.name = "LockoutPreventedException";
|
|
454
|
+
this.$fault = "client";
|
|
455
|
+
Object.setPrototypeOf(this, _LockoutPreventedException.prototype);
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
__name(_LockoutPreventedException, "LockoutPreventedException");
|
|
459
|
+
var LockoutPreventedException = _LockoutPreventedException;
|
|
460
|
+
var FailureReason = {
|
|
461
|
+
OTHER: "OTHER",
|
|
462
|
+
REQUEST_TIMED_OUT: "REQUEST_TIMED_OUT",
|
|
463
|
+
UNSUPPORTED_ALGORITHM: "UNSUPPORTED_ALGORITHM"
|
|
464
|
+
};
|
|
465
|
+
var CertificateAuthorityStatus = {
|
|
466
|
+
ACTIVE: "ACTIVE",
|
|
467
|
+
CREATING: "CREATING",
|
|
468
|
+
DELETED: "DELETED",
|
|
469
|
+
DISABLED: "DISABLED",
|
|
470
|
+
EXPIRED: "EXPIRED",
|
|
471
|
+
FAILED: "FAILED",
|
|
472
|
+
PENDING_CERTIFICATE: "PENDING_CERTIFICATE"
|
|
473
|
+
};
|
|
474
|
+
var AuditReportStatus = {
|
|
475
|
+
CREATING: "CREATING",
|
|
476
|
+
FAILED: "FAILED",
|
|
477
|
+
SUCCESS: "SUCCESS"
|
|
478
|
+
};
|
|
479
|
+
var _CertificateMismatchException = class _CertificateMismatchException extends ACMPCAServiceException {
|
|
480
|
+
/**
|
|
481
|
+
* @internal
|
|
482
|
+
*/
|
|
483
|
+
constructor(opts) {
|
|
484
|
+
super({
|
|
485
|
+
name: "CertificateMismatchException",
|
|
486
|
+
$fault: "client",
|
|
487
|
+
...opts
|
|
488
|
+
});
|
|
489
|
+
this.name = "CertificateMismatchException";
|
|
490
|
+
this.$fault = "client";
|
|
491
|
+
Object.setPrototypeOf(this, _CertificateMismatchException.prototype);
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
__name(_CertificateMismatchException, "CertificateMismatchException");
|
|
495
|
+
var CertificateMismatchException = _CertificateMismatchException;
|
|
496
|
+
var _InvalidRequestException = class _InvalidRequestException extends ACMPCAServiceException {
|
|
497
|
+
/**
|
|
498
|
+
* @internal
|
|
499
|
+
*/
|
|
500
|
+
constructor(opts) {
|
|
501
|
+
super({
|
|
502
|
+
name: "InvalidRequestException",
|
|
503
|
+
$fault: "client",
|
|
504
|
+
...opts
|
|
505
|
+
});
|
|
506
|
+
this.name = "InvalidRequestException";
|
|
507
|
+
this.$fault = "client";
|
|
508
|
+
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
__name(_InvalidRequestException, "InvalidRequestException");
|
|
512
|
+
var InvalidRequestException = _InvalidRequestException;
|
|
513
|
+
var _MalformedCertificateException = class _MalformedCertificateException extends ACMPCAServiceException {
|
|
514
|
+
/**
|
|
515
|
+
* @internal
|
|
516
|
+
*/
|
|
517
|
+
constructor(opts) {
|
|
518
|
+
super({
|
|
519
|
+
name: "MalformedCertificateException",
|
|
520
|
+
$fault: "client",
|
|
521
|
+
...opts
|
|
522
|
+
});
|
|
523
|
+
this.name = "MalformedCertificateException";
|
|
524
|
+
this.$fault = "client";
|
|
525
|
+
Object.setPrototypeOf(this, _MalformedCertificateException.prototype);
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
__name(_MalformedCertificateException, "MalformedCertificateException");
|
|
529
|
+
var MalformedCertificateException = _MalformedCertificateException;
|
|
530
|
+
var PolicyQualifierId = {
|
|
531
|
+
CPS: "CPS"
|
|
532
|
+
};
|
|
533
|
+
var ExtendedKeyUsageType = {
|
|
534
|
+
CERTIFICATE_TRANSPARENCY: "CERTIFICATE_TRANSPARENCY",
|
|
535
|
+
CLIENT_AUTH: "CLIENT_AUTH",
|
|
536
|
+
CODE_SIGNING: "CODE_SIGNING",
|
|
537
|
+
DOCUMENT_SIGNING: "DOCUMENT_SIGNING",
|
|
538
|
+
EMAIL_PROTECTION: "EMAIL_PROTECTION",
|
|
539
|
+
OCSP_SIGNING: "OCSP_SIGNING",
|
|
540
|
+
SERVER_AUTH: "SERVER_AUTH",
|
|
541
|
+
SMART_CARD_LOGIN: "SMART_CARD_LOGIN",
|
|
542
|
+
TIME_STAMPING: "TIME_STAMPING"
|
|
543
|
+
};
|
|
544
|
+
var ValidityPeriodType = {
|
|
545
|
+
ABSOLUTE: "ABSOLUTE",
|
|
546
|
+
DAYS: "DAYS",
|
|
547
|
+
END_DATE: "END_DATE",
|
|
548
|
+
MONTHS: "MONTHS",
|
|
549
|
+
YEARS: "YEARS"
|
|
550
|
+
};
|
|
551
|
+
var _MalformedCSRException = class _MalformedCSRException extends ACMPCAServiceException {
|
|
552
|
+
/**
|
|
553
|
+
* @internal
|
|
554
|
+
*/
|
|
555
|
+
constructor(opts) {
|
|
556
|
+
super({
|
|
557
|
+
name: "MalformedCSRException",
|
|
558
|
+
$fault: "client",
|
|
559
|
+
...opts
|
|
560
|
+
});
|
|
561
|
+
this.name = "MalformedCSRException";
|
|
562
|
+
this.$fault = "client";
|
|
563
|
+
Object.setPrototypeOf(this, _MalformedCSRException.prototype);
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
__name(_MalformedCSRException, "MalformedCSRException");
|
|
567
|
+
var MalformedCSRException = _MalformedCSRException;
|
|
568
|
+
var _InvalidNextTokenException = class _InvalidNextTokenException extends ACMPCAServiceException {
|
|
569
|
+
/**
|
|
570
|
+
* @internal
|
|
571
|
+
*/
|
|
572
|
+
constructor(opts) {
|
|
573
|
+
super({
|
|
574
|
+
name: "InvalidNextTokenException",
|
|
575
|
+
$fault: "client",
|
|
576
|
+
...opts
|
|
577
|
+
});
|
|
578
|
+
this.name = "InvalidNextTokenException";
|
|
579
|
+
this.$fault = "client";
|
|
580
|
+
Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
__name(_InvalidNextTokenException, "InvalidNextTokenException");
|
|
584
|
+
var InvalidNextTokenException = _InvalidNextTokenException;
|
|
585
|
+
var ResourceOwner = {
|
|
586
|
+
OTHER_ACCOUNTS: "OTHER_ACCOUNTS",
|
|
587
|
+
SELF: "SELF"
|
|
588
|
+
};
|
|
589
|
+
var _RequestAlreadyProcessedException = class _RequestAlreadyProcessedException extends ACMPCAServiceException {
|
|
590
|
+
/**
|
|
591
|
+
* @internal
|
|
592
|
+
*/
|
|
593
|
+
constructor(opts) {
|
|
594
|
+
super({
|
|
595
|
+
name: "RequestAlreadyProcessedException",
|
|
596
|
+
$fault: "client",
|
|
597
|
+
...opts
|
|
598
|
+
});
|
|
599
|
+
this.name = "RequestAlreadyProcessedException";
|
|
600
|
+
this.$fault = "client";
|
|
601
|
+
Object.setPrototypeOf(this, _RequestAlreadyProcessedException.prototype);
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
__name(_RequestAlreadyProcessedException, "RequestAlreadyProcessedException");
|
|
605
|
+
var RequestAlreadyProcessedException = _RequestAlreadyProcessedException;
|
|
606
|
+
var RevocationReason = {
|
|
607
|
+
AFFILIATION_CHANGED: "AFFILIATION_CHANGED",
|
|
608
|
+
A_A_COMPROMISE: "A_A_COMPROMISE",
|
|
609
|
+
CERTIFICATE_AUTHORITY_COMPROMISE: "CERTIFICATE_AUTHORITY_COMPROMISE",
|
|
610
|
+
CESSATION_OF_OPERATION: "CESSATION_OF_OPERATION",
|
|
611
|
+
KEY_COMPROMISE: "KEY_COMPROMISE",
|
|
612
|
+
PRIVILEGE_WITHDRAWN: "PRIVILEGE_WITHDRAWN",
|
|
613
|
+
SUPERSEDED: "SUPERSEDED",
|
|
614
|
+
UNSPECIFIED: "UNSPECIFIED"
|
|
615
|
+
};
|
|
616
|
+
var _TooManyTagsException = class _TooManyTagsException extends ACMPCAServiceException {
|
|
617
|
+
/**
|
|
618
|
+
* @internal
|
|
619
|
+
*/
|
|
620
|
+
constructor(opts) {
|
|
621
|
+
super({
|
|
622
|
+
name: "TooManyTagsException",
|
|
623
|
+
$fault: "client",
|
|
624
|
+
...opts
|
|
625
|
+
});
|
|
626
|
+
this.name = "TooManyTagsException";
|
|
627
|
+
this.$fault = "client";
|
|
628
|
+
Object.setPrototypeOf(this, _TooManyTagsException.prototype);
|
|
629
|
+
}
|
|
630
|
+
};
|
|
631
|
+
__name(_TooManyTagsException, "TooManyTagsException");
|
|
632
|
+
var TooManyTagsException = _TooManyTagsException;
|
|
633
|
+
|
|
634
|
+
// src/protocols/Aws_json1_1.ts
|
|
635
|
+
var se_CreateCertificateAuthorityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
636
|
+
const headers = sharedHeaders("CreateCertificateAuthority");
|
|
637
|
+
let body;
|
|
638
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
639
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
640
|
+
}, "se_CreateCertificateAuthorityCommand");
|
|
641
|
+
var se_CreateCertificateAuthorityAuditReportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
642
|
+
const headers = sharedHeaders("CreateCertificateAuthorityAuditReport");
|
|
643
|
+
let body;
|
|
644
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
645
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
646
|
+
}, "se_CreateCertificateAuthorityAuditReportCommand");
|
|
647
|
+
var se_CreatePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
648
|
+
const headers = sharedHeaders("CreatePermission");
|
|
649
|
+
let body;
|
|
650
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
651
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
652
|
+
}, "se_CreatePermissionCommand");
|
|
653
|
+
var se_DeleteCertificateAuthorityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
654
|
+
const headers = sharedHeaders("DeleteCertificateAuthority");
|
|
655
|
+
let body;
|
|
656
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
657
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
658
|
+
}, "se_DeleteCertificateAuthorityCommand");
|
|
659
|
+
var se_DeletePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
660
|
+
const headers = sharedHeaders("DeletePermission");
|
|
661
|
+
let body;
|
|
662
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
663
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
664
|
+
}, "se_DeletePermissionCommand");
|
|
665
|
+
var se_DeletePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
666
|
+
const headers = sharedHeaders("DeletePolicy");
|
|
667
|
+
let body;
|
|
668
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
669
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
670
|
+
}, "se_DeletePolicyCommand");
|
|
671
|
+
var se_DescribeCertificateAuthorityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
672
|
+
const headers = sharedHeaders("DescribeCertificateAuthority");
|
|
673
|
+
let body;
|
|
674
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
675
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
676
|
+
}, "se_DescribeCertificateAuthorityCommand");
|
|
677
|
+
var se_DescribeCertificateAuthorityAuditReportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
678
|
+
const headers = sharedHeaders("DescribeCertificateAuthorityAuditReport");
|
|
679
|
+
let body;
|
|
680
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
681
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
682
|
+
}, "se_DescribeCertificateAuthorityAuditReportCommand");
|
|
683
|
+
var se_GetCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
684
|
+
const headers = sharedHeaders("GetCertificate");
|
|
685
|
+
let body;
|
|
686
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
687
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
688
|
+
}, "se_GetCertificateCommand");
|
|
689
|
+
var se_GetCertificateAuthorityCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
690
|
+
const headers = sharedHeaders("GetCertificateAuthorityCertificate");
|
|
691
|
+
let body;
|
|
692
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
693
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
694
|
+
}, "se_GetCertificateAuthorityCertificateCommand");
|
|
695
|
+
var se_GetCertificateAuthorityCsrCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
696
|
+
const headers = sharedHeaders("GetCertificateAuthorityCsr");
|
|
697
|
+
let body;
|
|
698
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
699
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
700
|
+
}, "se_GetCertificateAuthorityCsrCommand");
|
|
701
|
+
var se_GetPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
702
|
+
const headers = sharedHeaders("GetPolicy");
|
|
703
|
+
let body;
|
|
704
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
705
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
706
|
+
}, "se_GetPolicyCommand");
|
|
707
|
+
var se_ImportCertificateAuthorityCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
708
|
+
const headers = sharedHeaders("ImportCertificateAuthorityCertificate");
|
|
709
|
+
let body;
|
|
710
|
+
body = JSON.stringify(se_ImportCertificateAuthorityCertificateRequest(input, context));
|
|
711
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
712
|
+
}, "se_ImportCertificateAuthorityCertificateCommand");
|
|
713
|
+
var se_IssueCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
714
|
+
const headers = sharedHeaders("IssueCertificate");
|
|
715
|
+
let body;
|
|
716
|
+
body = JSON.stringify(se_IssueCertificateRequest(input, context));
|
|
717
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
718
|
+
}, "se_IssueCertificateCommand");
|
|
719
|
+
var se_ListCertificateAuthoritiesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
720
|
+
const headers = sharedHeaders("ListCertificateAuthorities");
|
|
721
|
+
let body;
|
|
722
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
723
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
724
|
+
}, "se_ListCertificateAuthoritiesCommand");
|
|
725
|
+
var se_ListPermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
726
|
+
const headers = sharedHeaders("ListPermissions");
|
|
727
|
+
let body;
|
|
728
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
729
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
730
|
+
}, "se_ListPermissionsCommand");
|
|
731
|
+
var se_ListTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
732
|
+
const headers = sharedHeaders("ListTags");
|
|
733
|
+
let body;
|
|
734
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
735
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
736
|
+
}, "se_ListTagsCommand");
|
|
737
|
+
var se_PutPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
738
|
+
const headers = sharedHeaders("PutPolicy");
|
|
739
|
+
let body;
|
|
740
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
741
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
742
|
+
}, "se_PutPolicyCommand");
|
|
743
|
+
var se_RestoreCertificateAuthorityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
744
|
+
const headers = sharedHeaders("RestoreCertificateAuthority");
|
|
745
|
+
let body;
|
|
746
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
747
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
748
|
+
}, "se_RestoreCertificateAuthorityCommand");
|
|
749
|
+
var se_RevokeCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
750
|
+
const headers = sharedHeaders("RevokeCertificate");
|
|
751
|
+
let body;
|
|
752
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
753
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
754
|
+
}, "se_RevokeCertificateCommand");
|
|
755
|
+
var se_TagCertificateAuthorityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
756
|
+
const headers = sharedHeaders("TagCertificateAuthority");
|
|
757
|
+
let body;
|
|
758
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
759
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
760
|
+
}, "se_TagCertificateAuthorityCommand");
|
|
761
|
+
var se_UntagCertificateAuthorityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
762
|
+
const headers = sharedHeaders("UntagCertificateAuthority");
|
|
763
|
+
let body;
|
|
764
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
765
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
766
|
+
}, "se_UntagCertificateAuthorityCommand");
|
|
767
|
+
var se_UpdateCertificateAuthorityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
768
|
+
const headers = sharedHeaders("UpdateCertificateAuthority");
|
|
769
|
+
let body;
|
|
770
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
771
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
772
|
+
}, "se_UpdateCertificateAuthorityCommand");
|
|
773
|
+
var de_CreateCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
774
|
+
if (output.statusCode >= 300) {
|
|
775
|
+
return de_CreateCertificateAuthorityCommandError(output, context);
|
|
776
|
+
}
|
|
777
|
+
const data = await parseBody(output.body, context);
|
|
778
|
+
let contents = {};
|
|
779
|
+
contents = (0, import_smithy_client._json)(data);
|
|
780
|
+
const response = {
|
|
781
|
+
$metadata: deserializeMetadata(output),
|
|
782
|
+
...contents
|
|
783
|
+
};
|
|
784
|
+
return response;
|
|
785
|
+
}, "de_CreateCertificateAuthorityCommand");
|
|
786
|
+
var de_CreateCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
787
|
+
const parsedOutput = {
|
|
788
|
+
...output,
|
|
789
|
+
body: await parseErrorBody(output.body, context)
|
|
790
|
+
};
|
|
791
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
|
+
switch (errorCode) {
|
|
793
|
+
case "InvalidArgsException":
|
|
794
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
795
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
796
|
+
case "InvalidPolicyException":
|
|
797
|
+
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
798
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
799
|
+
case "InvalidTagException":
|
|
800
|
+
case "com.amazonaws.acmpca#InvalidTagException":
|
|
801
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
802
|
+
case "LimitExceededException":
|
|
803
|
+
case "com.amazonaws.acmpca#LimitExceededException":
|
|
804
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
805
|
+
default:
|
|
806
|
+
const parsedBody = parsedOutput.body;
|
|
807
|
+
return throwDefaultError({
|
|
808
|
+
output,
|
|
809
|
+
parsedBody,
|
|
810
|
+
errorCode
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
}, "de_CreateCertificateAuthorityCommandError");
|
|
814
|
+
var de_CreateCertificateAuthorityAuditReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
815
|
+
if (output.statusCode >= 300) {
|
|
816
|
+
return de_CreateCertificateAuthorityAuditReportCommandError(output, context);
|
|
817
|
+
}
|
|
818
|
+
const data = await parseBody(output.body, context);
|
|
819
|
+
let contents = {};
|
|
820
|
+
contents = (0, import_smithy_client._json)(data);
|
|
821
|
+
const response = {
|
|
822
|
+
$metadata: deserializeMetadata(output),
|
|
823
|
+
...contents
|
|
824
|
+
};
|
|
825
|
+
return response;
|
|
826
|
+
}, "de_CreateCertificateAuthorityAuditReportCommand");
|
|
827
|
+
var de_CreateCertificateAuthorityAuditReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
828
|
+
const parsedOutput = {
|
|
829
|
+
...output,
|
|
830
|
+
body: await parseErrorBody(output.body, context)
|
|
831
|
+
};
|
|
832
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
+
switch (errorCode) {
|
|
834
|
+
case "InvalidArgsException":
|
|
835
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
836
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
837
|
+
case "InvalidArnException":
|
|
838
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
839
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
840
|
+
case "InvalidStateException":
|
|
841
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
842
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
843
|
+
case "RequestFailedException":
|
|
844
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
845
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
846
|
+
case "RequestInProgressException":
|
|
847
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
848
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
849
|
+
case "ResourceNotFoundException":
|
|
850
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
851
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
852
|
+
default:
|
|
853
|
+
const parsedBody = parsedOutput.body;
|
|
854
|
+
return throwDefaultError({
|
|
855
|
+
output,
|
|
856
|
+
parsedBody,
|
|
857
|
+
errorCode
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
}, "de_CreateCertificateAuthorityAuditReportCommandError");
|
|
861
|
+
var de_CreatePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
862
|
+
if (output.statusCode >= 300) {
|
|
863
|
+
return de_CreatePermissionCommandError(output, context);
|
|
864
|
+
}
|
|
865
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
866
|
+
const response = {
|
|
867
|
+
$metadata: deserializeMetadata(output)
|
|
868
|
+
};
|
|
869
|
+
return response;
|
|
870
|
+
}, "de_CreatePermissionCommand");
|
|
871
|
+
var de_CreatePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
|
+
const parsedOutput = {
|
|
873
|
+
...output,
|
|
874
|
+
body: await parseErrorBody(output.body, context)
|
|
875
|
+
};
|
|
876
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
+
switch (errorCode) {
|
|
878
|
+
case "InvalidArnException":
|
|
879
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
880
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
881
|
+
case "InvalidStateException":
|
|
882
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
883
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
884
|
+
case "LimitExceededException":
|
|
885
|
+
case "com.amazonaws.acmpca#LimitExceededException":
|
|
886
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
887
|
+
case "PermissionAlreadyExistsException":
|
|
888
|
+
case "com.amazonaws.acmpca#PermissionAlreadyExistsException":
|
|
889
|
+
throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
890
|
+
case "RequestFailedException":
|
|
891
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
892
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
893
|
+
case "ResourceNotFoundException":
|
|
894
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
895
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
896
|
+
default:
|
|
897
|
+
const parsedBody = parsedOutput.body;
|
|
898
|
+
return throwDefaultError({
|
|
899
|
+
output,
|
|
900
|
+
parsedBody,
|
|
901
|
+
errorCode
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
}, "de_CreatePermissionCommandError");
|
|
905
|
+
var de_DeleteCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
906
|
+
if (output.statusCode >= 300) {
|
|
907
|
+
return de_DeleteCertificateAuthorityCommandError(output, context);
|
|
908
|
+
}
|
|
909
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
910
|
+
const response = {
|
|
911
|
+
$metadata: deserializeMetadata(output)
|
|
912
|
+
};
|
|
913
|
+
return response;
|
|
914
|
+
}, "de_DeleteCertificateAuthorityCommand");
|
|
915
|
+
var de_DeleteCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
916
|
+
const parsedOutput = {
|
|
917
|
+
...output,
|
|
918
|
+
body: await parseErrorBody(output.body, context)
|
|
919
|
+
};
|
|
920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
+
switch (errorCode) {
|
|
922
|
+
case "ConcurrentModificationException":
|
|
923
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
924
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
925
|
+
case "InvalidArnException":
|
|
926
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
927
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
928
|
+
case "InvalidStateException":
|
|
929
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
930
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
931
|
+
case "ResourceNotFoundException":
|
|
932
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
933
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
+
default:
|
|
935
|
+
const parsedBody = parsedOutput.body;
|
|
936
|
+
return throwDefaultError({
|
|
937
|
+
output,
|
|
938
|
+
parsedBody,
|
|
939
|
+
errorCode
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
}, "de_DeleteCertificateAuthorityCommandError");
|
|
943
|
+
var de_DeletePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
|
+
if (output.statusCode >= 300) {
|
|
945
|
+
return de_DeletePermissionCommandError(output, context);
|
|
946
|
+
}
|
|
947
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
948
|
+
const response = {
|
|
949
|
+
$metadata: deserializeMetadata(output)
|
|
950
|
+
};
|
|
951
|
+
return response;
|
|
952
|
+
}, "de_DeletePermissionCommand");
|
|
953
|
+
var de_DeletePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
954
|
+
const parsedOutput = {
|
|
955
|
+
...output,
|
|
956
|
+
body: await parseErrorBody(output.body, context)
|
|
957
|
+
};
|
|
958
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
+
switch (errorCode) {
|
|
960
|
+
case "InvalidArnException":
|
|
961
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
962
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
963
|
+
case "InvalidStateException":
|
|
964
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
965
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
966
|
+
case "RequestFailedException":
|
|
967
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
968
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
969
|
+
case "ResourceNotFoundException":
|
|
970
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
971
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
972
|
+
default:
|
|
973
|
+
const parsedBody = parsedOutput.body;
|
|
974
|
+
return throwDefaultError({
|
|
975
|
+
output,
|
|
976
|
+
parsedBody,
|
|
977
|
+
errorCode
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
}, "de_DeletePermissionCommandError");
|
|
981
|
+
var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
982
|
+
if (output.statusCode >= 300) {
|
|
983
|
+
return de_DeletePolicyCommandError(output, context);
|
|
984
|
+
}
|
|
985
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
986
|
+
const response = {
|
|
987
|
+
$metadata: deserializeMetadata(output)
|
|
988
|
+
};
|
|
989
|
+
return response;
|
|
990
|
+
}, "de_DeletePolicyCommand");
|
|
991
|
+
var de_DeletePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
992
|
+
const parsedOutput = {
|
|
993
|
+
...output,
|
|
994
|
+
body: await parseErrorBody(output.body, context)
|
|
995
|
+
};
|
|
996
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
|
+
switch (errorCode) {
|
|
998
|
+
case "ConcurrentModificationException":
|
|
999
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1000
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1001
|
+
case "InvalidArnException":
|
|
1002
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1003
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1004
|
+
case "InvalidStateException":
|
|
1005
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1006
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1007
|
+
case "LockoutPreventedException":
|
|
1008
|
+
case "com.amazonaws.acmpca#LockoutPreventedException":
|
|
1009
|
+
throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
|
|
1010
|
+
case "RequestFailedException":
|
|
1011
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1012
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1013
|
+
case "ResourceNotFoundException":
|
|
1014
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1015
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1016
|
+
default:
|
|
1017
|
+
const parsedBody = parsedOutput.body;
|
|
1018
|
+
return throwDefaultError({
|
|
1019
|
+
output,
|
|
1020
|
+
parsedBody,
|
|
1021
|
+
errorCode
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
}, "de_DeletePolicyCommandError");
|
|
1025
|
+
var de_DescribeCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1026
|
+
if (output.statusCode >= 300) {
|
|
1027
|
+
return de_DescribeCertificateAuthorityCommandError(output, context);
|
|
1028
|
+
}
|
|
1029
|
+
const data = await parseBody(output.body, context);
|
|
1030
|
+
let contents = {};
|
|
1031
|
+
contents = de_DescribeCertificateAuthorityResponse(data, context);
|
|
1032
|
+
const response = {
|
|
1033
|
+
$metadata: deserializeMetadata(output),
|
|
1034
|
+
...contents
|
|
1035
|
+
};
|
|
1036
|
+
return response;
|
|
1037
|
+
}, "de_DescribeCertificateAuthorityCommand");
|
|
1038
|
+
var de_DescribeCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1039
|
+
const parsedOutput = {
|
|
1040
|
+
...output,
|
|
1041
|
+
body: await parseErrorBody(output.body, context)
|
|
1042
|
+
};
|
|
1043
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
|
+
switch (errorCode) {
|
|
1045
|
+
case "InvalidArnException":
|
|
1046
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1047
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1048
|
+
case "ResourceNotFoundException":
|
|
1049
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1050
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1051
|
+
default:
|
|
1052
|
+
const parsedBody = parsedOutput.body;
|
|
1053
|
+
return throwDefaultError({
|
|
1054
|
+
output,
|
|
1055
|
+
parsedBody,
|
|
1056
|
+
errorCode
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
}, "de_DescribeCertificateAuthorityCommandError");
|
|
1060
|
+
var de_DescribeCertificateAuthorityAuditReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1061
|
+
if (output.statusCode >= 300) {
|
|
1062
|
+
return de_DescribeCertificateAuthorityAuditReportCommandError(output, context);
|
|
1063
|
+
}
|
|
1064
|
+
const data = await parseBody(output.body, context);
|
|
1065
|
+
let contents = {};
|
|
1066
|
+
contents = de_DescribeCertificateAuthorityAuditReportResponse(data, context);
|
|
1067
|
+
const response = {
|
|
1068
|
+
$metadata: deserializeMetadata(output),
|
|
1069
|
+
...contents
|
|
1070
|
+
};
|
|
1071
|
+
return response;
|
|
1072
|
+
}, "de_DescribeCertificateAuthorityAuditReportCommand");
|
|
1073
|
+
var de_DescribeCertificateAuthorityAuditReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1074
|
+
const parsedOutput = {
|
|
1075
|
+
...output,
|
|
1076
|
+
body: await parseErrorBody(output.body, context)
|
|
1077
|
+
};
|
|
1078
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
|
+
switch (errorCode) {
|
|
1080
|
+
case "InvalidArgsException":
|
|
1081
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
1082
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
1083
|
+
case "InvalidArnException":
|
|
1084
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1085
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1086
|
+
case "ResourceNotFoundException":
|
|
1087
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1088
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1089
|
+
default:
|
|
1090
|
+
const parsedBody = parsedOutput.body;
|
|
1091
|
+
return throwDefaultError({
|
|
1092
|
+
output,
|
|
1093
|
+
parsedBody,
|
|
1094
|
+
errorCode
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
}, "de_DescribeCertificateAuthorityAuditReportCommandError");
|
|
1098
|
+
var de_GetCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1099
|
+
if (output.statusCode >= 300) {
|
|
1100
|
+
return de_GetCertificateCommandError(output, context);
|
|
1101
|
+
}
|
|
1102
|
+
const data = await parseBody(output.body, context);
|
|
1103
|
+
let contents = {};
|
|
1104
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1105
|
+
const response = {
|
|
1106
|
+
$metadata: deserializeMetadata(output),
|
|
1107
|
+
...contents
|
|
1108
|
+
};
|
|
1109
|
+
return response;
|
|
1110
|
+
}, "de_GetCertificateCommand");
|
|
1111
|
+
var de_GetCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1112
|
+
const parsedOutput = {
|
|
1113
|
+
...output,
|
|
1114
|
+
body: await parseErrorBody(output.body, context)
|
|
1115
|
+
};
|
|
1116
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
+
switch (errorCode) {
|
|
1118
|
+
case "InvalidArnException":
|
|
1119
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1120
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1121
|
+
case "InvalidStateException":
|
|
1122
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1123
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "RequestFailedException":
|
|
1125
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1126
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "RequestInProgressException":
|
|
1128
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
1129
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "ResourceNotFoundException":
|
|
1131
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1132
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1133
|
+
default:
|
|
1134
|
+
const parsedBody = parsedOutput.body;
|
|
1135
|
+
return throwDefaultError({
|
|
1136
|
+
output,
|
|
1137
|
+
parsedBody,
|
|
1138
|
+
errorCode
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
}, "de_GetCertificateCommandError");
|
|
1142
|
+
var de_GetCertificateAuthorityCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
|
+
if (output.statusCode >= 300) {
|
|
1144
|
+
return de_GetCertificateAuthorityCertificateCommandError(output, context);
|
|
1145
|
+
}
|
|
1146
|
+
const data = await parseBody(output.body, context);
|
|
1147
|
+
let contents = {};
|
|
1148
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1149
|
+
const response = {
|
|
1150
|
+
$metadata: deserializeMetadata(output),
|
|
1151
|
+
...contents
|
|
1152
|
+
};
|
|
1153
|
+
return response;
|
|
1154
|
+
}, "de_GetCertificateAuthorityCertificateCommand");
|
|
1155
|
+
var de_GetCertificateAuthorityCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1156
|
+
const parsedOutput = {
|
|
1157
|
+
...output,
|
|
1158
|
+
body: await parseErrorBody(output.body, context)
|
|
1159
|
+
};
|
|
1160
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
+
switch (errorCode) {
|
|
1162
|
+
case "InvalidArnException":
|
|
1163
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1164
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1165
|
+
case "InvalidStateException":
|
|
1166
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1167
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1168
|
+
case "ResourceNotFoundException":
|
|
1169
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1170
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1171
|
+
default:
|
|
1172
|
+
const parsedBody = parsedOutput.body;
|
|
1173
|
+
return throwDefaultError({
|
|
1174
|
+
output,
|
|
1175
|
+
parsedBody,
|
|
1176
|
+
errorCode
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
}, "de_GetCertificateAuthorityCertificateCommandError");
|
|
1180
|
+
var de_GetCertificateAuthorityCsrCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1181
|
+
if (output.statusCode >= 300) {
|
|
1182
|
+
return de_GetCertificateAuthorityCsrCommandError(output, context);
|
|
1183
|
+
}
|
|
1184
|
+
const data = await parseBody(output.body, context);
|
|
1185
|
+
let contents = {};
|
|
1186
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1187
|
+
const response = {
|
|
1188
|
+
$metadata: deserializeMetadata(output),
|
|
1189
|
+
...contents
|
|
1190
|
+
};
|
|
1191
|
+
return response;
|
|
1192
|
+
}, "de_GetCertificateAuthorityCsrCommand");
|
|
1193
|
+
var de_GetCertificateAuthorityCsrCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1194
|
+
const parsedOutput = {
|
|
1195
|
+
...output,
|
|
1196
|
+
body: await parseErrorBody(output.body, context)
|
|
1197
|
+
};
|
|
1198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
+
switch (errorCode) {
|
|
1200
|
+
case "InvalidArnException":
|
|
1201
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1202
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1203
|
+
case "InvalidStateException":
|
|
1204
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1205
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1206
|
+
case "RequestFailedException":
|
|
1207
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1208
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1209
|
+
case "RequestInProgressException":
|
|
1210
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
1211
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
1212
|
+
case "ResourceNotFoundException":
|
|
1213
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1214
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1215
|
+
default:
|
|
1216
|
+
const parsedBody = parsedOutput.body;
|
|
1217
|
+
return throwDefaultError({
|
|
1218
|
+
output,
|
|
1219
|
+
parsedBody,
|
|
1220
|
+
errorCode
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
}, "de_GetCertificateAuthorityCsrCommandError");
|
|
1224
|
+
var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1225
|
+
if (output.statusCode >= 300) {
|
|
1226
|
+
return de_GetPolicyCommandError(output, context);
|
|
1227
|
+
}
|
|
1228
|
+
const data = await parseBody(output.body, context);
|
|
1229
|
+
let contents = {};
|
|
1230
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1231
|
+
const response = {
|
|
1232
|
+
$metadata: deserializeMetadata(output),
|
|
1233
|
+
...contents
|
|
1234
|
+
};
|
|
1235
|
+
return response;
|
|
1236
|
+
}, "de_GetPolicyCommand");
|
|
1237
|
+
var de_GetPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1238
|
+
const parsedOutput = {
|
|
1239
|
+
...output,
|
|
1240
|
+
body: await parseErrorBody(output.body, context)
|
|
1241
|
+
};
|
|
1242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
|
+
switch (errorCode) {
|
|
1244
|
+
case "InvalidArnException":
|
|
1245
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1246
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1247
|
+
case "InvalidStateException":
|
|
1248
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1249
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1250
|
+
case "RequestFailedException":
|
|
1251
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1252
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1253
|
+
case "ResourceNotFoundException":
|
|
1254
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1255
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
+
default:
|
|
1257
|
+
const parsedBody = parsedOutput.body;
|
|
1258
|
+
return throwDefaultError({
|
|
1259
|
+
output,
|
|
1260
|
+
parsedBody,
|
|
1261
|
+
errorCode
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
}, "de_GetPolicyCommandError");
|
|
1265
|
+
var de_ImportCertificateAuthorityCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1266
|
+
if (output.statusCode >= 300) {
|
|
1267
|
+
return de_ImportCertificateAuthorityCertificateCommandError(output, context);
|
|
1268
|
+
}
|
|
1269
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1270
|
+
const response = {
|
|
1271
|
+
$metadata: deserializeMetadata(output)
|
|
1272
|
+
};
|
|
1273
|
+
return response;
|
|
1274
|
+
}, "de_ImportCertificateAuthorityCertificateCommand");
|
|
1275
|
+
var de_ImportCertificateAuthorityCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1276
|
+
const parsedOutput = {
|
|
1277
|
+
...output,
|
|
1278
|
+
body: await parseErrorBody(output.body, context)
|
|
1279
|
+
};
|
|
1280
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
+
switch (errorCode) {
|
|
1282
|
+
case "CertificateMismatchException":
|
|
1283
|
+
case "com.amazonaws.acmpca#CertificateMismatchException":
|
|
1284
|
+
throw await de_CertificateMismatchExceptionRes(parsedOutput, context);
|
|
1285
|
+
case "ConcurrentModificationException":
|
|
1286
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1287
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1288
|
+
case "InvalidArnException":
|
|
1289
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1290
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1291
|
+
case "InvalidRequestException":
|
|
1292
|
+
case "com.amazonaws.acmpca#InvalidRequestException":
|
|
1293
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1294
|
+
case "InvalidStateException":
|
|
1295
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1296
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1297
|
+
case "MalformedCertificateException":
|
|
1298
|
+
case "com.amazonaws.acmpca#MalformedCertificateException":
|
|
1299
|
+
throw await de_MalformedCertificateExceptionRes(parsedOutput, context);
|
|
1300
|
+
case "RequestFailedException":
|
|
1301
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1302
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1303
|
+
case "RequestInProgressException":
|
|
1304
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
1305
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
1306
|
+
case "ResourceNotFoundException":
|
|
1307
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1308
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1309
|
+
default:
|
|
1310
|
+
const parsedBody = parsedOutput.body;
|
|
1311
|
+
return throwDefaultError({
|
|
1312
|
+
output,
|
|
1313
|
+
parsedBody,
|
|
1314
|
+
errorCode
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
}, "de_ImportCertificateAuthorityCertificateCommandError");
|
|
1318
|
+
var de_IssueCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
|
+
if (output.statusCode >= 300) {
|
|
1320
|
+
return de_IssueCertificateCommandError(output, context);
|
|
1321
|
+
}
|
|
1322
|
+
const data = await parseBody(output.body, context);
|
|
1323
|
+
let contents = {};
|
|
1324
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1325
|
+
const response = {
|
|
1326
|
+
$metadata: deserializeMetadata(output),
|
|
1327
|
+
...contents
|
|
1328
|
+
};
|
|
1329
|
+
return response;
|
|
1330
|
+
}, "de_IssueCertificateCommand");
|
|
1331
|
+
var de_IssueCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1332
|
+
const parsedOutput = {
|
|
1333
|
+
...output,
|
|
1334
|
+
body: await parseErrorBody(output.body, context)
|
|
1335
|
+
};
|
|
1336
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1337
|
+
switch (errorCode) {
|
|
1338
|
+
case "InvalidArgsException":
|
|
1339
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
1340
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
1341
|
+
case "InvalidArnException":
|
|
1342
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1343
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1344
|
+
case "InvalidStateException":
|
|
1345
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1346
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1347
|
+
case "LimitExceededException":
|
|
1348
|
+
case "com.amazonaws.acmpca#LimitExceededException":
|
|
1349
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1350
|
+
case "MalformedCSRException":
|
|
1351
|
+
case "com.amazonaws.acmpca#MalformedCSRException":
|
|
1352
|
+
throw await de_MalformedCSRExceptionRes(parsedOutput, context);
|
|
1353
|
+
case "ResourceNotFoundException":
|
|
1354
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1355
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1356
|
+
default:
|
|
1357
|
+
const parsedBody = parsedOutput.body;
|
|
1358
|
+
return throwDefaultError({
|
|
1359
|
+
output,
|
|
1360
|
+
parsedBody,
|
|
1361
|
+
errorCode
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
}, "de_IssueCertificateCommandError");
|
|
1365
|
+
var de_ListCertificateAuthoritiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1366
|
+
if (output.statusCode >= 300) {
|
|
1367
|
+
return de_ListCertificateAuthoritiesCommandError(output, context);
|
|
1368
|
+
}
|
|
1369
|
+
const data = await parseBody(output.body, context);
|
|
1370
|
+
let contents = {};
|
|
1371
|
+
contents = de_ListCertificateAuthoritiesResponse(data, context);
|
|
1372
|
+
const response = {
|
|
1373
|
+
$metadata: deserializeMetadata(output),
|
|
1374
|
+
...contents
|
|
1375
|
+
};
|
|
1376
|
+
return response;
|
|
1377
|
+
}, "de_ListCertificateAuthoritiesCommand");
|
|
1378
|
+
var de_ListCertificateAuthoritiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1379
|
+
const parsedOutput = {
|
|
1380
|
+
...output,
|
|
1381
|
+
body: await parseErrorBody(output.body, context)
|
|
1382
|
+
};
|
|
1383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
|
+
switch (errorCode) {
|
|
1385
|
+
case "InvalidNextTokenException":
|
|
1386
|
+
case "com.amazonaws.acmpca#InvalidNextTokenException":
|
|
1387
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1388
|
+
default:
|
|
1389
|
+
const parsedBody = parsedOutput.body;
|
|
1390
|
+
return throwDefaultError({
|
|
1391
|
+
output,
|
|
1392
|
+
parsedBody,
|
|
1393
|
+
errorCode
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
}, "de_ListCertificateAuthoritiesCommandError");
|
|
1397
|
+
var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1398
|
+
if (output.statusCode >= 300) {
|
|
1399
|
+
return de_ListPermissionsCommandError(output, context);
|
|
1400
|
+
}
|
|
1401
|
+
const data = await parseBody(output.body, context);
|
|
1402
|
+
let contents = {};
|
|
1403
|
+
contents = de_ListPermissionsResponse(data, context);
|
|
1404
|
+
const response = {
|
|
1405
|
+
$metadata: deserializeMetadata(output),
|
|
1406
|
+
...contents
|
|
1407
|
+
};
|
|
1408
|
+
return response;
|
|
1409
|
+
}, "de_ListPermissionsCommand");
|
|
1410
|
+
var de_ListPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1411
|
+
const parsedOutput = {
|
|
1412
|
+
...output,
|
|
1413
|
+
body: await parseErrorBody(output.body, context)
|
|
1414
|
+
};
|
|
1415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
+
switch (errorCode) {
|
|
1417
|
+
case "InvalidArnException":
|
|
1418
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1419
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "InvalidNextTokenException":
|
|
1421
|
+
case "com.amazonaws.acmpca#InvalidNextTokenException":
|
|
1422
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "InvalidStateException":
|
|
1424
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1425
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1426
|
+
case "RequestFailedException":
|
|
1427
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1428
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1429
|
+
case "ResourceNotFoundException":
|
|
1430
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1431
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1432
|
+
default:
|
|
1433
|
+
const parsedBody = parsedOutput.body;
|
|
1434
|
+
return throwDefaultError({
|
|
1435
|
+
output,
|
|
1436
|
+
parsedBody,
|
|
1437
|
+
errorCode
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
}, "de_ListPermissionsCommandError");
|
|
1441
|
+
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1442
|
+
if (output.statusCode >= 300) {
|
|
1443
|
+
return de_ListTagsCommandError(output, context);
|
|
1444
|
+
}
|
|
1445
|
+
const data = await parseBody(output.body, context);
|
|
1446
|
+
let contents = {};
|
|
1447
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1448
|
+
const response = {
|
|
1449
|
+
$metadata: deserializeMetadata(output),
|
|
1450
|
+
...contents
|
|
1451
|
+
};
|
|
1452
|
+
return response;
|
|
1453
|
+
}, "de_ListTagsCommand");
|
|
1454
|
+
var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
|
+
const parsedOutput = {
|
|
1456
|
+
...output,
|
|
1457
|
+
body: await parseErrorBody(output.body, context)
|
|
1458
|
+
};
|
|
1459
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
|
+
switch (errorCode) {
|
|
1461
|
+
case "InvalidArnException":
|
|
1462
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1463
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1464
|
+
case "InvalidStateException":
|
|
1465
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1466
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1467
|
+
case "ResourceNotFoundException":
|
|
1468
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1469
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1470
|
+
default:
|
|
1471
|
+
const parsedBody = parsedOutput.body;
|
|
1472
|
+
return throwDefaultError({
|
|
1473
|
+
output,
|
|
1474
|
+
parsedBody,
|
|
1475
|
+
errorCode
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
}, "de_ListTagsCommandError");
|
|
1479
|
+
var de_PutPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
|
+
if (output.statusCode >= 300) {
|
|
1481
|
+
return de_PutPolicyCommandError(output, context);
|
|
1482
|
+
}
|
|
1483
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1484
|
+
const response = {
|
|
1485
|
+
$metadata: deserializeMetadata(output)
|
|
1486
|
+
};
|
|
1487
|
+
return response;
|
|
1488
|
+
}, "de_PutPolicyCommand");
|
|
1489
|
+
var de_PutPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1490
|
+
const parsedOutput = {
|
|
1491
|
+
...output,
|
|
1492
|
+
body: await parseErrorBody(output.body, context)
|
|
1493
|
+
};
|
|
1494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
|
+
switch (errorCode) {
|
|
1496
|
+
case "ConcurrentModificationException":
|
|
1497
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1498
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1499
|
+
case "InvalidArnException":
|
|
1500
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1501
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1502
|
+
case "InvalidPolicyException":
|
|
1503
|
+
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
1504
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1505
|
+
case "InvalidStateException":
|
|
1506
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1507
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1508
|
+
case "LockoutPreventedException":
|
|
1509
|
+
case "com.amazonaws.acmpca#LockoutPreventedException":
|
|
1510
|
+
throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
|
|
1511
|
+
case "RequestFailedException":
|
|
1512
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1513
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1514
|
+
case "ResourceNotFoundException":
|
|
1515
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1516
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1517
|
+
default:
|
|
1518
|
+
const parsedBody = parsedOutput.body;
|
|
1519
|
+
return throwDefaultError({
|
|
1520
|
+
output,
|
|
1521
|
+
parsedBody,
|
|
1522
|
+
errorCode
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
}, "de_PutPolicyCommandError");
|
|
1526
|
+
var de_RestoreCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1527
|
+
if (output.statusCode >= 300) {
|
|
1528
|
+
return de_RestoreCertificateAuthorityCommandError(output, context);
|
|
1529
|
+
}
|
|
1530
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1531
|
+
const response = {
|
|
1532
|
+
$metadata: deserializeMetadata(output)
|
|
1533
|
+
};
|
|
1534
|
+
return response;
|
|
1535
|
+
}, "de_RestoreCertificateAuthorityCommand");
|
|
1536
|
+
var de_RestoreCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1537
|
+
const parsedOutput = {
|
|
1538
|
+
...output,
|
|
1539
|
+
body: await parseErrorBody(output.body, context)
|
|
1540
|
+
};
|
|
1541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1542
|
+
switch (errorCode) {
|
|
1543
|
+
case "InvalidArnException":
|
|
1544
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1545
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1546
|
+
case "InvalidStateException":
|
|
1547
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1548
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1549
|
+
case "ResourceNotFoundException":
|
|
1550
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1551
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
+
default:
|
|
1553
|
+
const parsedBody = parsedOutput.body;
|
|
1554
|
+
return throwDefaultError({
|
|
1555
|
+
output,
|
|
1556
|
+
parsedBody,
|
|
1557
|
+
errorCode
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
}, "de_RestoreCertificateAuthorityCommandError");
|
|
1561
|
+
var de_RevokeCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
|
+
if (output.statusCode >= 300) {
|
|
1563
|
+
return de_RevokeCertificateCommandError(output, context);
|
|
1564
|
+
}
|
|
1565
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1566
|
+
const response = {
|
|
1567
|
+
$metadata: deserializeMetadata(output)
|
|
1568
|
+
};
|
|
1569
|
+
return response;
|
|
1570
|
+
}, "de_RevokeCertificateCommand");
|
|
1571
|
+
var de_RevokeCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
|
+
const parsedOutput = {
|
|
1573
|
+
...output,
|
|
1574
|
+
body: await parseErrorBody(output.body, context)
|
|
1575
|
+
};
|
|
1576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
|
+
switch (errorCode) {
|
|
1578
|
+
case "ConcurrentModificationException":
|
|
1579
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1580
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1581
|
+
case "InvalidArnException":
|
|
1582
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1583
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1584
|
+
case "InvalidRequestException":
|
|
1585
|
+
case "com.amazonaws.acmpca#InvalidRequestException":
|
|
1586
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1587
|
+
case "InvalidStateException":
|
|
1588
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1589
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1590
|
+
case "LimitExceededException":
|
|
1591
|
+
case "com.amazonaws.acmpca#LimitExceededException":
|
|
1592
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1593
|
+
case "RequestAlreadyProcessedException":
|
|
1594
|
+
case "com.amazonaws.acmpca#RequestAlreadyProcessedException":
|
|
1595
|
+
throw await de_RequestAlreadyProcessedExceptionRes(parsedOutput, context);
|
|
1596
|
+
case "RequestFailedException":
|
|
1597
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1598
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1599
|
+
case "RequestInProgressException":
|
|
1600
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
1601
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
1602
|
+
case "ResourceNotFoundException":
|
|
1603
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1604
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1605
|
+
default:
|
|
1606
|
+
const parsedBody = parsedOutput.body;
|
|
1607
|
+
return throwDefaultError({
|
|
1608
|
+
output,
|
|
1609
|
+
parsedBody,
|
|
1610
|
+
errorCode
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
}, "de_RevokeCertificateCommandError");
|
|
1614
|
+
var de_TagCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1615
|
+
if (output.statusCode >= 300) {
|
|
1616
|
+
return de_TagCertificateAuthorityCommandError(output, context);
|
|
1617
|
+
}
|
|
1618
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1619
|
+
const response = {
|
|
1620
|
+
$metadata: deserializeMetadata(output)
|
|
1621
|
+
};
|
|
1622
|
+
return response;
|
|
1623
|
+
}, "de_TagCertificateAuthorityCommand");
|
|
1624
|
+
var de_TagCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1625
|
+
const parsedOutput = {
|
|
1626
|
+
...output,
|
|
1627
|
+
body: await parseErrorBody(output.body, context)
|
|
1628
|
+
};
|
|
1629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
|
+
switch (errorCode) {
|
|
1631
|
+
case "InvalidArnException":
|
|
1632
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1633
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1634
|
+
case "InvalidStateException":
|
|
1635
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1636
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1637
|
+
case "InvalidTagException":
|
|
1638
|
+
case "com.amazonaws.acmpca#InvalidTagException":
|
|
1639
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1640
|
+
case "ResourceNotFoundException":
|
|
1641
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1642
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1643
|
+
case "TooManyTagsException":
|
|
1644
|
+
case "com.amazonaws.acmpca#TooManyTagsException":
|
|
1645
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1646
|
+
default:
|
|
1647
|
+
const parsedBody = parsedOutput.body;
|
|
1648
|
+
return throwDefaultError({
|
|
1649
|
+
output,
|
|
1650
|
+
parsedBody,
|
|
1651
|
+
errorCode
|
|
1652
|
+
});
|
|
1653
|
+
}
|
|
1654
|
+
}, "de_TagCertificateAuthorityCommandError");
|
|
1655
|
+
var de_UntagCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1656
|
+
if (output.statusCode >= 300) {
|
|
1657
|
+
return de_UntagCertificateAuthorityCommandError(output, context);
|
|
1658
|
+
}
|
|
1659
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1660
|
+
const response = {
|
|
1661
|
+
$metadata: deserializeMetadata(output)
|
|
1662
|
+
};
|
|
1663
|
+
return response;
|
|
1664
|
+
}, "de_UntagCertificateAuthorityCommand");
|
|
1665
|
+
var de_UntagCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1666
|
+
const parsedOutput = {
|
|
1667
|
+
...output,
|
|
1668
|
+
body: await parseErrorBody(output.body, context)
|
|
1669
|
+
};
|
|
1670
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
|
+
switch (errorCode) {
|
|
1672
|
+
case "InvalidArnException":
|
|
1673
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1674
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1675
|
+
case "InvalidStateException":
|
|
1676
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1677
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1678
|
+
case "InvalidTagException":
|
|
1679
|
+
case "com.amazonaws.acmpca#InvalidTagException":
|
|
1680
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1681
|
+
case "ResourceNotFoundException":
|
|
1682
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1683
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1684
|
+
default:
|
|
1685
|
+
const parsedBody = parsedOutput.body;
|
|
1686
|
+
return throwDefaultError({
|
|
1687
|
+
output,
|
|
1688
|
+
parsedBody,
|
|
1689
|
+
errorCode
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
}, "de_UntagCertificateAuthorityCommandError");
|
|
1693
|
+
var de_UpdateCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1694
|
+
if (output.statusCode >= 300) {
|
|
1695
|
+
return de_UpdateCertificateAuthorityCommandError(output, context);
|
|
1696
|
+
}
|
|
1697
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1698
|
+
const response = {
|
|
1699
|
+
$metadata: deserializeMetadata(output)
|
|
1700
|
+
};
|
|
1701
|
+
return response;
|
|
1702
|
+
}, "de_UpdateCertificateAuthorityCommand");
|
|
1703
|
+
var de_UpdateCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
|
+
const parsedOutput = {
|
|
1705
|
+
...output,
|
|
1706
|
+
body: await parseErrorBody(output.body, context)
|
|
1707
|
+
};
|
|
1708
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
|
+
switch (errorCode) {
|
|
1710
|
+
case "ConcurrentModificationException":
|
|
1711
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1712
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1713
|
+
case "InvalidArgsException":
|
|
1714
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
1715
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
1716
|
+
case "InvalidArnException":
|
|
1717
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1718
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1719
|
+
case "InvalidPolicyException":
|
|
1720
|
+
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
1721
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1722
|
+
case "InvalidStateException":
|
|
1723
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1724
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1725
|
+
case "ResourceNotFoundException":
|
|
1726
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1727
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1728
|
+
default:
|
|
1729
|
+
const parsedBody = parsedOutput.body;
|
|
1730
|
+
return throwDefaultError({
|
|
1731
|
+
output,
|
|
1732
|
+
parsedBody,
|
|
1733
|
+
errorCode
|
|
1734
|
+
});
|
|
1735
|
+
}
|
|
1736
|
+
}, "de_UpdateCertificateAuthorityCommandError");
|
|
1737
|
+
var de_CertificateMismatchExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1738
|
+
const body = parsedOutput.body;
|
|
1739
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1740
|
+
const exception = new CertificateMismatchException({
|
|
1741
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1742
|
+
...deserialized
|
|
1743
|
+
});
|
|
1744
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1745
|
+
}, "de_CertificateMismatchExceptionRes");
|
|
1746
|
+
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1747
|
+
const body = parsedOutput.body;
|
|
1748
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1749
|
+
const exception = new ConcurrentModificationException({
|
|
1750
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1751
|
+
...deserialized
|
|
1752
|
+
});
|
|
1753
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1754
|
+
}, "de_ConcurrentModificationExceptionRes");
|
|
1755
|
+
var de_InvalidArgsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1756
|
+
const body = parsedOutput.body;
|
|
1757
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1758
|
+
const exception = new InvalidArgsException({
|
|
1759
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1760
|
+
...deserialized
|
|
1761
|
+
});
|
|
1762
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1763
|
+
}, "de_InvalidArgsExceptionRes");
|
|
1764
|
+
var de_InvalidArnExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1765
|
+
const body = parsedOutput.body;
|
|
1766
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1767
|
+
const exception = new InvalidArnException({
|
|
1768
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1769
|
+
...deserialized
|
|
1770
|
+
});
|
|
1771
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1772
|
+
}, "de_InvalidArnExceptionRes");
|
|
1773
|
+
var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1774
|
+
const body = parsedOutput.body;
|
|
1775
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1776
|
+
const exception = new InvalidNextTokenException({
|
|
1777
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1778
|
+
...deserialized
|
|
1779
|
+
});
|
|
1780
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1781
|
+
}, "de_InvalidNextTokenExceptionRes");
|
|
1782
|
+
var de_InvalidPolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1783
|
+
const body = parsedOutput.body;
|
|
1784
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1785
|
+
const exception = new InvalidPolicyException({
|
|
1786
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1787
|
+
...deserialized
|
|
1788
|
+
});
|
|
1789
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1790
|
+
}, "de_InvalidPolicyExceptionRes");
|
|
1791
|
+
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1792
|
+
const body = parsedOutput.body;
|
|
1793
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1794
|
+
const exception = new InvalidRequestException({
|
|
1795
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1796
|
+
...deserialized
|
|
1797
|
+
});
|
|
1798
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1799
|
+
}, "de_InvalidRequestExceptionRes");
|
|
1800
|
+
var de_InvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1801
|
+
const body = parsedOutput.body;
|
|
1802
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1803
|
+
const exception = new InvalidStateException({
|
|
1804
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1805
|
+
...deserialized
|
|
1806
|
+
});
|
|
1807
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1808
|
+
}, "de_InvalidStateExceptionRes");
|
|
1809
|
+
var de_InvalidTagExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1810
|
+
const body = parsedOutput.body;
|
|
1811
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1812
|
+
const exception = new InvalidTagException({
|
|
1813
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1814
|
+
...deserialized
|
|
1815
|
+
});
|
|
1816
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1817
|
+
}, "de_InvalidTagExceptionRes");
|
|
1818
|
+
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1819
|
+
const body = parsedOutput.body;
|
|
1820
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1821
|
+
const exception = new LimitExceededException({
|
|
1822
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1823
|
+
...deserialized
|
|
1824
|
+
});
|
|
1825
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1826
|
+
}, "de_LimitExceededExceptionRes");
|
|
1827
|
+
var de_LockoutPreventedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1828
|
+
const body = parsedOutput.body;
|
|
1829
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1830
|
+
const exception = new LockoutPreventedException({
|
|
1831
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1832
|
+
...deserialized
|
|
1833
|
+
});
|
|
1834
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1835
|
+
}, "de_LockoutPreventedExceptionRes");
|
|
1836
|
+
var de_MalformedCertificateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1837
|
+
const body = parsedOutput.body;
|
|
1838
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1839
|
+
const exception = new MalformedCertificateException({
|
|
1840
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1841
|
+
...deserialized
|
|
1842
|
+
});
|
|
1843
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1844
|
+
}, "de_MalformedCertificateExceptionRes");
|
|
1845
|
+
var de_MalformedCSRExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1846
|
+
const body = parsedOutput.body;
|
|
1847
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1848
|
+
const exception = new MalformedCSRException({
|
|
1849
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1850
|
+
...deserialized
|
|
1851
|
+
});
|
|
1852
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1853
|
+
}, "de_MalformedCSRExceptionRes");
|
|
1854
|
+
var de_PermissionAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1855
|
+
const body = parsedOutput.body;
|
|
1856
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1857
|
+
const exception = new PermissionAlreadyExistsException({
|
|
1858
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1859
|
+
...deserialized
|
|
1860
|
+
});
|
|
1861
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1862
|
+
}, "de_PermissionAlreadyExistsExceptionRes");
|
|
1863
|
+
var de_RequestAlreadyProcessedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1864
|
+
const body = parsedOutput.body;
|
|
1865
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1866
|
+
const exception = new RequestAlreadyProcessedException({
|
|
1867
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1868
|
+
...deserialized
|
|
1869
|
+
});
|
|
1870
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1871
|
+
}, "de_RequestAlreadyProcessedExceptionRes");
|
|
1872
|
+
var de_RequestFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1873
|
+
const body = parsedOutput.body;
|
|
1874
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1875
|
+
const exception = new RequestFailedException({
|
|
1876
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1877
|
+
...deserialized
|
|
1878
|
+
});
|
|
1879
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1880
|
+
}, "de_RequestFailedExceptionRes");
|
|
1881
|
+
var de_RequestInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1882
|
+
const body = parsedOutput.body;
|
|
1883
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1884
|
+
const exception = new RequestInProgressException({
|
|
1885
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1886
|
+
...deserialized
|
|
1887
|
+
});
|
|
1888
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1889
|
+
}, "de_RequestInProgressExceptionRes");
|
|
1890
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1891
|
+
const body = parsedOutput.body;
|
|
1892
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1893
|
+
const exception = new ResourceNotFoundException({
|
|
1894
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1895
|
+
...deserialized
|
|
1896
|
+
});
|
|
1897
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1898
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1899
|
+
var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1900
|
+
const body = parsedOutput.body;
|
|
1901
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1902
|
+
const exception = new TooManyTagsException({
|
|
1903
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1904
|
+
...deserialized
|
|
1905
|
+
});
|
|
1906
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1907
|
+
}, "de_TooManyTagsExceptionRes");
|
|
1908
|
+
var se_ImportCertificateAuthorityCertificateRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1909
|
+
return (0, import_smithy_client.take)(input, {
|
|
1910
|
+
Certificate: context.base64Encoder,
|
|
1911
|
+
CertificateAuthorityArn: [],
|
|
1912
|
+
CertificateChain: context.base64Encoder
|
|
1913
|
+
});
|
|
1914
|
+
}, "se_ImportCertificateAuthorityCertificateRequest");
|
|
1915
|
+
var se_IssueCertificateRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1916
|
+
return (0, import_smithy_client.take)(input, {
|
|
1917
|
+
ApiPassthrough: import_smithy_client._json,
|
|
1918
|
+
CertificateAuthorityArn: [],
|
|
1919
|
+
Csr: context.base64Encoder,
|
|
1920
|
+
IdempotencyToken: [],
|
|
1921
|
+
SigningAlgorithm: [],
|
|
1922
|
+
TemplateArn: [],
|
|
1923
|
+
Validity: import_smithy_client._json,
|
|
1924
|
+
ValidityNotBefore: import_smithy_client._json
|
|
1925
|
+
});
|
|
1926
|
+
}, "se_IssueCertificateRequest");
|
|
1927
|
+
var de_CertificateAuthorities = /* @__PURE__ */ __name((output, context) => {
|
|
1928
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1929
|
+
return de_CertificateAuthority(entry, context);
|
|
1930
|
+
});
|
|
1931
|
+
return retVal;
|
|
1932
|
+
}, "de_CertificateAuthorities");
|
|
1933
|
+
var de_CertificateAuthority = /* @__PURE__ */ __name((output, context) => {
|
|
1934
|
+
return (0, import_smithy_client.take)(output, {
|
|
1935
|
+
Arn: import_smithy_client.expectString,
|
|
1936
|
+
CertificateAuthorityConfiguration: import_smithy_client._json,
|
|
1937
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1938
|
+
FailureReason: import_smithy_client.expectString,
|
|
1939
|
+
KeyStorageSecurityStandard: import_smithy_client.expectString,
|
|
1940
|
+
LastStateChangeAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1941
|
+
NotAfter: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1942
|
+
NotBefore: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1943
|
+
OwnerAccount: import_smithy_client.expectString,
|
|
1944
|
+
RestorableUntil: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1945
|
+
RevocationConfiguration: import_smithy_client._json,
|
|
1946
|
+
Serial: import_smithy_client.expectString,
|
|
1947
|
+
Status: import_smithy_client.expectString,
|
|
1948
|
+
Type: import_smithy_client.expectString,
|
|
1949
|
+
UsageMode: import_smithy_client.expectString
|
|
1950
|
+
});
|
|
1951
|
+
}, "de_CertificateAuthority");
|
|
1952
|
+
var de_DescribeCertificateAuthorityAuditReportResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1953
|
+
return (0, import_smithy_client.take)(output, {
|
|
1954
|
+
AuditReportStatus: import_smithy_client.expectString,
|
|
1955
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1956
|
+
S3BucketName: import_smithy_client.expectString,
|
|
1957
|
+
S3Key: import_smithy_client.expectString
|
|
1958
|
+
});
|
|
1959
|
+
}, "de_DescribeCertificateAuthorityAuditReportResponse");
|
|
1960
|
+
var de_DescribeCertificateAuthorityResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1961
|
+
return (0, import_smithy_client.take)(output, {
|
|
1962
|
+
CertificateAuthority: (_) => de_CertificateAuthority(_, context)
|
|
1963
|
+
});
|
|
1964
|
+
}, "de_DescribeCertificateAuthorityResponse");
|
|
1965
|
+
var de_ListCertificateAuthoritiesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1966
|
+
return (0, import_smithy_client.take)(output, {
|
|
1967
|
+
CertificateAuthorities: (_) => de_CertificateAuthorities(_, context),
|
|
1968
|
+
NextToken: import_smithy_client.expectString
|
|
1969
|
+
});
|
|
1970
|
+
}, "de_ListCertificateAuthoritiesResponse");
|
|
1971
|
+
var de_ListPermissionsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1972
|
+
return (0, import_smithy_client.take)(output, {
|
|
1973
|
+
NextToken: import_smithy_client.expectString,
|
|
1974
|
+
Permissions: (_) => de_PermissionList(_, context)
|
|
1975
|
+
});
|
|
1976
|
+
}, "de_ListPermissionsResponse");
|
|
1977
|
+
var de_Permission = /* @__PURE__ */ __name((output, context) => {
|
|
1978
|
+
return (0, import_smithy_client.take)(output, {
|
|
1979
|
+
Actions: import_smithy_client._json,
|
|
1980
|
+
CertificateAuthorityArn: import_smithy_client.expectString,
|
|
1981
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1982
|
+
Policy: import_smithy_client.expectString,
|
|
1983
|
+
Principal: import_smithy_client.expectString,
|
|
1984
|
+
SourceAccount: import_smithy_client.expectString
|
|
1985
|
+
});
|
|
1986
|
+
}, "de_Permission");
|
|
1987
|
+
var de_PermissionList = /* @__PURE__ */ __name((output, context) => {
|
|
1988
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1989
|
+
return de_Permission(entry, context);
|
|
1990
|
+
});
|
|
1991
|
+
return retVal;
|
|
1992
|
+
}, "de_PermissionList");
|
|
1993
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1994
|
+
httpStatusCode: output.statusCode,
|
|
1995
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1996
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1997
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1998
|
+
}), "deserializeMetadata");
|
|
1999
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2000
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(ACMPCAServiceException);
|
|
2001
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2002
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2003
|
+
const contents = {
|
|
2004
|
+
protocol,
|
|
2005
|
+
hostname,
|
|
2006
|
+
port,
|
|
2007
|
+
method: "POST",
|
|
2008
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2009
|
+
headers
|
|
2010
|
+
};
|
|
2011
|
+
if (resolvedHostname !== void 0) {
|
|
2012
|
+
contents.hostname = resolvedHostname;
|
|
2013
|
+
}
|
|
2014
|
+
if (body !== void 0) {
|
|
2015
|
+
contents.body = body;
|
|
2016
|
+
}
|
|
2017
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
2018
|
+
}, "buildHttpRpcRequest");
|
|
2019
|
+
function sharedHeaders(operation) {
|
|
2020
|
+
return {
|
|
2021
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2022
|
+
"x-amz-target": `ACMPrivateCA.${operation}`
|
|
2023
|
+
};
|
|
2024
|
+
}
|
|
2025
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
2026
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2027
|
+
if (encoded.length) {
|
|
2028
|
+
return JSON.parse(encoded);
|
|
2029
|
+
}
|
|
2030
|
+
return {};
|
|
2031
|
+
}), "parseBody");
|
|
2032
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2033
|
+
const value = await parseBody(errorBody, context);
|
|
2034
|
+
value.message = value.message ?? value.Message;
|
|
2035
|
+
return value;
|
|
2036
|
+
}, "parseErrorBody");
|
|
2037
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2038
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2039
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2040
|
+
let cleanValue = rawValue;
|
|
2041
|
+
if (typeof cleanValue === "number") {
|
|
2042
|
+
cleanValue = cleanValue.toString();
|
|
2043
|
+
}
|
|
2044
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2045
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2046
|
+
}
|
|
2047
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2048
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2049
|
+
}
|
|
2050
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2051
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2052
|
+
}
|
|
2053
|
+
return cleanValue;
|
|
2054
|
+
}, "sanitizeErrorCode");
|
|
2055
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2056
|
+
if (headerKey !== void 0) {
|
|
2057
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2058
|
+
}
|
|
2059
|
+
if (data.code !== void 0) {
|
|
2060
|
+
return sanitizeErrorCode(data.code);
|
|
2061
|
+
}
|
|
2062
|
+
if (data["__type"] !== void 0) {
|
|
2063
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2064
|
+
}
|
|
2065
|
+
}, "loadRestJsonErrorCode");
|
|
2066
|
+
|
|
2067
|
+
// src/commands/CreateCertificateAuthorityAuditReportCommand.ts
|
|
2068
|
+
var _CreateCertificateAuthorityAuditReportCommand = class _CreateCertificateAuthorityAuditReportCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2069
|
+
...commonParams
|
|
2070
|
+
}).m(function(Command, cs, config, o) {
|
|
2071
|
+
return [
|
|
2072
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2073
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2074
|
+
];
|
|
2075
|
+
}).s("ACMPrivateCA", "CreateCertificateAuthorityAuditReport", {}).n("ACMPCAClient", "CreateCertificateAuthorityAuditReportCommand").f(void 0, void 0).ser(se_CreateCertificateAuthorityAuditReportCommand).de(de_CreateCertificateAuthorityAuditReportCommand).build() {
|
|
2076
|
+
};
|
|
2077
|
+
__name(_CreateCertificateAuthorityAuditReportCommand, "CreateCertificateAuthorityAuditReportCommand");
|
|
2078
|
+
var CreateCertificateAuthorityAuditReportCommand = _CreateCertificateAuthorityAuditReportCommand;
|
|
2079
|
+
|
|
2080
|
+
// src/commands/CreateCertificateAuthorityCommand.ts
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
var _CreateCertificateAuthorityCommand = class _CreateCertificateAuthorityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2086
|
+
...commonParams
|
|
2087
|
+
}).m(function(Command, cs, config, o) {
|
|
2088
|
+
return [
|
|
2089
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2090
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2091
|
+
];
|
|
2092
|
+
}).s("ACMPrivateCA", "CreateCertificateAuthority", {}).n("ACMPCAClient", "CreateCertificateAuthorityCommand").f(void 0, void 0).ser(se_CreateCertificateAuthorityCommand).de(de_CreateCertificateAuthorityCommand).build() {
|
|
2093
|
+
};
|
|
2094
|
+
__name(_CreateCertificateAuthorityCommand, "CreateCertificateAuthorityCommand");
|
|
2095
|
+
var CreateCertificateAuthorityCommand = _CreateCertificateAuthorityCommand;
|
|
2096
|
+
|
|
2097
|
+
// src/commands/CreatePermissionCommand.ts
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
|
|
2102
|
+
var _CreatePermissionCommand = class _CreatePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2103
|
+
...commonParams
|
|
2104
|
+
}).m(function(Command, cs, config, o) {
|
|
2105
|
+
return [
|
|
2106
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2107
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2108
|
+
];
|
|
2109
|
+
}).s("ACMPrivateCA", "CreatePermission", {}).n("ACMPCAClient", "CreatePermissionCommand").f(void 0, void 0).ser(se_CreatePermissionCommand).de(de_CreatePermissionCommand).build() {
|
|
2110
|
+
};
|
|
2111
|
+
__name(_CreatePermissionCommand, "CreatePermissionCommand");
|
|
2112
|
+
var CreatePermissionCommand = _CreatePermissionCommand;
|
|
2113
|
+
|
|
2114
|
+
// src/commands/DeleteCertificateAuthorityCommand.ts
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
var _DeleteCertificateAuthorityCommand = class _DeleteCertificateAuthorityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2120
|
+
...commonParams
|
|
2121
|
+
}).m(function(Command, cs, config, o) {
|
|
2122
|
+
return [
|
|
2123
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2124
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2125
|
+
];
|
|
2126
|
+
}).s("ACMPrivateCA", "DeleteCertificateAuthority", {}).n("ACMPCAClient", "DeleteCertificateAuthorityCommand").f(void 0, void 0).ser(se_DeleteCertificateAuthorityCommand).de(de_DeleteCertificateAuthorityCommand).build() {
|
|
2127
|
+
};
|
|
2128
|
+
__name(_DeleteCertificateAuthorityCommand, "DeleteCertificateAuthorityCommand");
|
|
2129
|
+
var DeleteCertificateAuthorityCommand = _DeleteCertificateAuthorityCommand;
|
|
2130
|
+
|
|
2131
|
+
// src/commands/DeletePermissionCommand.ts
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
|
|
2136
|
+
var _DeletePermissionCommand = class _DeletePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2137
|
+
...commonParams
|
|
2138
|
+
}).m(function(Command, cs, config, o) {
|
|
2139
|
+
return [
|
|
2140
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2141
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2142
|
+
];
|
|
2143
|
+
}).s("ACMPrivateCA", "DeletePermission", {}).n("ACMPCAClient", "DeletePermissionCommand").f(void 0, void 0).ser(se_DeletePermissionCommand).de(de_DeletePermissionCommand).build() {
|
|
2144
|
+
};
|
|
2145
|
+
__name(_DeletePermissionCommand, "DeletePermissionCommand");
|
|
2146
|
+
var DeletePermissionCommand = _DeletePermissionCommand;
|
|
2147
|
+
|
|
2148
|
+
// src/commands/DeletePolicyCommand.ts
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
|
|
2153
|
+
var _DeletePolicyCommand = class _DeletePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2154
|
+
...commonParams
|
|
2155
|
+
}).m(function(Command, cs, config, o) {
|
|
2156
|
+
return [
|
|
2157
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2158
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2159
|
+
];
|
|
2160
|
+
}).s("ACMPrivateCA", "DeletePolicy", {}).n("ACMPCAClient", "DeletePolicyCommand").f(void 0, void 0).ser(se_DeletePolicyCommand).de(de_DeletePolicyCommand).build() {
|
|
2161
|
+
};
|
|
2162
|
+
__name(_DeletePolicyCommand, "DeletePolicyCommand");
|
|
2163
|
+
var DeletePolicyCommand = _DeletePolicyCommand;
|
|
2164
|
+
|
|
2165
|
+
// src/commands/DescribeCertificateAuthorityAuditReportCommand.ts
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
var _DescribeCertificateAuthorityAuditReportCommand = class _DescribeCertificateAuthorityAuditReportCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2171
|
+
...commonParams
|
|
2172
|
+
}).m(function(Command, cs, config, o) {
|
|
2173
|
+
return [
|
|
2174
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2175
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2176
|
+
];
|
|
2177
|
+
}).s("ACMPrivateCA", "DescribeCertificateAuthorityAuditReport", {}).n("ACMPCAClient", "DescribeCertificateAuthorityAuditReportCommand").f(void 0, void 0).ser(se_DescribeCertificateAuthorityAuditReportCommand).de(de_DescribeCertificateAuthorityAuditReportCommand).build() {
|
|
2178
|
+
};
|
|
2179
|
+
__name(_DescribeCertificateAuthorityAuditReportCommand, "DescribeCertificateAuthorityAuditReportCommand");
|
|
2180
|
+
var DescribeCertificateAuthorityAuditReportCommand = _DescribeCertificateAuthorityAuditReportCommand;
|
|
2181
|
+
|
|
2182
|
+
// src/commands/DescribeCertificateAuthorityCommand.ts
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
var _DescribeCertificateAuthorityCommand = class _DescribeCertificateAuthorityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2188
|
+
...commonParams
|
|
2189
|
+
}).m(function(Command, cs, config, o) {
|
|
2190
|
+
return [
|
|
2191
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2192
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2193
|
+
];
|
|
2194
|
+
}).s("ACMPrivateCA", "DescribeCertificateAuthority", {}).n("ACMPCAClient", "DescribeCertificateAuthorityCommand").f(void 0, void 0).ser(se_DescribeCertificateAuthorityCommand).de(de_DescribeCertificateAuthorityCommand).build() {
|
|
2195
|
+
};
|
|
2196
|
+
__name(_DescribeCertificateAuthorityCommand, "DescribeCertificateAuthorityCommand");
|
|
2197
|
+
var DescribeCertificateAuthorityCommand = _DescribeCertificateAuthorityCommand;
|
|
2198
|
+
|
|
2199
|
+
// src/commands/GetCertificateAuthorityCertificateCommand.ts
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
var _GetCertificateAuthorityCertificateCommand = class _GetCertificateAuthorityCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2205
|
+
...commonParams
|
|
2206
|
+
}).m(function(Command, cs, config, o) {
|
|
2207
|
+
return [
|
|
2208
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2209
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2210
|
+
];
|
|
2211
|
+
}).s("ACMPrivateCA", "GetCertificateAuthorityCertificate", {}).n("ACMPCAClient", "GetCertificateAuthorityCertificateCommand").f(void 0, void 0).ser(se_GetCertificateAuthorityCertificateCommand).de(de_GetCertificateAuthorityCertificateCommand).build() {
|
|
2212
|
+
};
|
|
2213
|
+
__name(_GetCertificateAuthorityCertificateCommand, "GetCertificateAuthorityCertificateCommand");
|
|
2214
|
+
var GetCertificateAuthorityCertificateCommand = _GetCertificateAuthorityCertificateCommand;
|
|
2215
|
+
|
|
2216
|
+
// src/commands/GetCertificateAuthorityCsrCommand.ts
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
var _GetCertificateAuthorityCsrCommand = class _GetCertificateAuthorityCsrCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2222
|
+
...commonParams
|
|
2223
|
+
}).m(function(Command, cs, config, o) {
|
|
2224
|
+
return [
|
|
2225
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2226
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2227
|
+
];
|
|
2228
|
+
}).s("ACMPrivateCA", "GetCertificateAuthorityCsr", {}).n("ACMPCAClient", "GetCertificateAuthorityCsrCommand").f(void 0, void 0).ser(se_GetCertificateAuthorityCsrCommand).de(de_GetCertificateAuthorityCsrCommand).build() {
|
|
2229
|
+
};
|
|
2230
|
+
__name(_GetCertificateAuthorityCsrCommand, "GetCertificateAuthorityCsrCommand");
|
|
2231
|
+
var GetCertificateAuthorityCsrCommand = _GetCertificateAuthorityCsrCommand;
|
|
2232
|
+
|
|
2233
|
+
// src/commands/GetCertificateCommand.ts
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
var _GetCertificateCommand = class _GetCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2239
|
+
...commonParams
|
|
2240
|
+
}).m(function(Command, cs, config, o) {
|
|
2241
|
+
return [
|
|
2242
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2243
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2244
|
+
];
|
|
2245
|
+
}).s("ACMPrivateCA", "GetCertificate", {}).n("ACMPCAClient", "GetCertificateCommand").f(void 0, void 0).ser(se_GetCertificateCommand).de(de_GetCertificateCommand).build() {
|
|
2246
|
+
};
|
|
2247
|
+
__name(_GetCertificateCommand, "GetCertificateCommand");
|
|
2248
|
+
var GetCertificateCommand = _GetCertificateCommand;
|
|
2249
|
+
|
|
2250
|
+
// src/commands/GetPolicyCommand.ts
|
|
2251
|
+
|
|
2252
|
+
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
var _GetPolicyCommand = class _GetPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2256
|
+
...commonParams
|
|
2257
|
+
}).m(function(Command, cs, config, o) {
|
|
2258
|
+
return [
|
|
2259
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2260
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2261
|
+
];
|
|
2262
|
+
}).s("ACMPrivateCA", "GetPolicy", {}).n("ACMPCAClient", "GetPolicyCommand").f(void 0, void 0).ser(se_GetPolicyCommand).de(de_GetPolicyCommand).build() {
|
|
2263
|
+
};
|
|
2264
|
+
__name(_GetPolicyCommand, "GetPolicyCommand");
|
|
2265
|
+
var GetPolicyCommand = _GetPolicyCommand;
|
|
2266
|
+
|
|
2267
|
+
// src/commands/ImportCertificateAuthorityCertificateCommand.ts
|
|
2268
|
+
|
|
2269
|
+
|
|
2270
|
+
|
|
2271
|
+
|
|
2272
|
+
var _ImportCertificateAuthorityCertificateCommand = class _ImportCertificateAuthorityCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2273
|
+
...commonParams
|
|
2274
|
+
}).m(function(Command, cs, config, o) {
|
|
2275
|
+
return [
|
|
2276
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2277
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2278
|
+
];
|
|
2279
|
+
}).s("ACMPrivateCA", "ImportCertificateAuthorityCertificate", {}).n("ACMPCAClient", "ImportCertificateAuthorityCertificateCommand").f(void 0, void 0).ser(se_ImportCertificateAuthorityCertificateCommand).de(de_ImportCertificateAuthorityCertificateCommand).build() {
|
|
2280
|
+
};
|
|
2281
|
+
__name(_ImportCertificateAuthorityCertificateCommand, "ImportCertificateAuthorityCertificateCommand");
|
|
2282
|
+
var ImportCertificateAuthorityCertificateCommand = _ImportCertificateAuthorityCertificateCommand;
|
|
2283
|
+
|
|
2284
|
+
// src/commands/IssueCertificateCommand.ts
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
var _IssueCertificateCommand = class _IssueCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2290
|
+
...commonParams
|
|
2291
|
+
}).m(function(Command, cs, config, o) {
|
|
2292
|
+
return [
|
|
2293
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2294
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2295
|
+
];
|
|
2296
|
+
}).s("ACMPrivateCA", "IssueCertificate", {}).n("ACMPCAClient", "IssueCertificateCommand").f(void 0, void 0).ser(se_IssueCertificateCommand).de(de_IssueCertificateCommand).build() {
|
|
2297
|
+
};
|
|
2298
|
+
__name(_IssueCertificateCommand, "IssueCertificateCommand");
|
|
2299
|
+
var IssueCertificateCommand = _IssueCertificateCommand;
|
|
2300
|
+
|
|
2301
|
+
// src/commands/ListCertificateAuthoritiesCommand.ts
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
|
|
2305
|
+
|
|
2306
|
+
var _ListCertificateAuthoritiesCommand = class _ListCertificateAuthoritiesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2307
|
+
...commonParams
|
|
2308
|
+
}).m(function(Command, cs, config, o) {
|
|
2309
|
+
return [
|
|
2310
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2311
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2312
|
+
];
|
|
2313
|
+
}).s("ACMPrivateCA", "ListCertificateAuthorities", {}).n("ACMPCAClient", "ListCertificateAuthoritiesCommand").f(void 0, void 0).ser(se_ListCertificateAuthoritiesCommand).de(de_ListCertificateAuthoritiesCommand).build() {
|
|
2314
|
+
};
|
|
2315
|
+
__name(_ListCertificateAuthoritiesCommand, "ListCertificateAuthoritiesCommand");
|
|
2316
|
+
var ListCertificateAuthoritiesCommand = _ListCertificateAuthoritiesCommand;
|
|
2317
|
+
|
|
2318
|
+
// src/commands/ListPermissionsCommand.ts
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
|
|
2322
|
+
|
|
2323
|
+
var _ListPermissionsCommand = class _ListPermissionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2324
|
+
...commonParams
|
|
2325
|
+
}).m(function(Command, cs, config, o) {
|
|
2326
|
+
return [
|
|
2327
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2328
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2329
|
+
];
|
|
2330
|
+
}).s("ACMPrivateCA", "ListPermissions", {}).n("ACMPCAClient", "ListPermissionsCommand").f(void 0, void 0).ser(se_ListPermissionsCommand).de(de_ListPermissionsCommand).build() {
|
|
2331
|
+
};
|
|
2332
|
+
__name(_ListPermissionsCommand, "ListPermissionsCommand");
|
|
2333
|
+
var ListPermissionsCommand = _ListPermissionsCommand;
|
|
2334
|
+
|
|
2335
|
+
// src/commands/ListTagsCommand.ts
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
|
|
2339
|
+
|
|
2340
|
+
var _ListTagsCommand = class _ListTagsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2341
|
+
...commonParams
|
|
2342
|
+
}).m(function(Command, cs, config, o) {
|
|
2343
|
+
return [
|
|
2344
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2345
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2346
|
+
];
|
|
2347
|
+
}).s("ACMPrivateCA", "ListTags", {}).n("ACMPCAClient", "ListTagsCommand").f(void 0, void 0).ser(se_ListTagsCommand).de(de_ListTagsCommand).build() {
|
|
2348
|
+
};
|
|
2349
|
+
__name(_ListTagsCommand, "ListTagsCommand");
|
|
2350
|
+
var ListTagsCommand = _ListTagsCommand;
|
|
2351
|
+
|
|
2352
|
+
// src/commands/PutPolicyCommand.ts
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
|
|
2356
|
+
|
|
2357
|
+
var _PutPolicyCommand = class _PutPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2358
|
+
...commonParams
|
|
2359
|
+
}).m(function(Command, cs, config, o) {
|
|
2360
|
+
return [
|
|
2361
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2362
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2363
|
+
];
|
|
2364
|
+
}).s("ACMPrivateCA", "PutPolicy", {}).n("ACMPCAClient", "PutPolicyCommand").f(void 0, void 0).ser(se_PutPolicyCommand).de(de_PutPolicyCommand).build() {
|
|
2365
|
+
};
|
|
2366
|
+
__name(_PutPolicyCommand, "PutPolicyCommand");
|
|
2367
|
+
var PutPolicyCommand = _PutPolicyCommand;
|
|
2368
|
+
|
|
2369
|
+
// src/commands/RestoreCertificateAuthorityCommand.ts
|
|
2370
|
+
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
|
|
2374
|
+
var _RestoreCertificateAuthorityCommand = class _RestoreCertificateAuthorityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2375
|
+
...commonParams
|
|
2376
|
+
}).m(function(Command, cs, config, o) {
|
|
2377
|
+
return [
|
|
2378
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2379
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2380
|
+
];
|
|
2381
|
+
}).s("ACMPrivateCA", "RestoreCertificateAuthority", {}).n("ACMPCAClient", "RestoreCertificateAuthorityCommand").f(void 0, void 0).ser(se_RestoreCertificateAuthorityCommand).de(de_RestoreCertificateAuthorityCommand).build() {
|
|
2382
|
+
};
|
|
2383
|
+
__name(_RestoreCertificateAuthorityCommand, "RestoreCertificateAuthorityCommand");
|
|
2384
|
+
var RestoreCertificateAuthorityCommand = _RestoreCertificateAuthorityCommand;
|
|
2385
|
+
|
|
2386
|
+
// src/commands/RevokeCertificateCommand.ts
|
|
2387
|
+
|
|
2388
|
+
|
|
2389
|
+
|
|
2390
|
+
|
|
2391
|
+
var _RevokeCertificateCommand = class _RevokeCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2392
|
+
...commonParams
|
|
2393
|
+
}).m(function(Command, cs, config, o) {
|
|
2394
|
+
return [
|
|
2395
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2396
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2397
|
+
];
|
|
2398
|
+
}).s("ACMPrivateCA", "RevokeCertificate", {}).n("ACMPCAClient", "RevokeCertificateCommand").f(void 0, void 0).ser(se_RevokeCertificateCommand).de(de_RevokeCertificateCommand).build() {
|
|
2399
|
+
};
|
|
2400
|
+
__name(_RevokeCertificateCommand, "RevokeCertificateCommand");
|
|
2401
|
+
var RevokeCertificateCommand = _RevokeCertificateCommand;
|
|
2402
|
+
|
|
2403
|
+
// src/commands/TagCertificateAuthorityCommand.ts
|
|
2404
|
+
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
var _TagCertificateAuthorityCommand = class _TagCertificateAuthorityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2409
|
+
...commonParams
|
|
2410
|
+
}).m(function(Command, cs, config, o) {
|
|
2411
|
+
return [
|
|
2412
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2413
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2414
|
+
];
|
|
2415
|
+
}).s("ACMPrivateCA", "TagCertificateAuthority", {}).n("ACMPCAClient", "TagCertificateAuthorityCommand").f(void 0, void 0).ser(se_TagCertificateAuthorityCommand).de(de_TagCertificateAuthorityCommand).build() {
|
|
2416
|
+
};
|
|
2417
|
+
__name(_TagCertificateAuthorityCommand, "TagCertificateAuthorityCommand");
|
|
2418
|
+
var TagCertificateAuthorityCommand = _TagCertificateAuthorityCommand;
|
|
2419
|
+
|
|
2420
|
+
// src/commands/UntagCertificateAuthorityCommand.ts
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
var _UntagCertificateAuthorityCommand = class _UntagCertificateAuthorityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2426
|
+
...commonParams
|
|
2427
|
+
}).m(function(Command, cs, config, o) {
|
|
2428
|
+
return [
|
|
2429
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2430
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2431
|
+
];
|
|
2432
|
+
}).s("ACMPrivateCA", "UntagCertificateAuthority", {}).n("ACMPCAClient", "UntagCertificateAuthorityCommand").f(void 0, void 0).ser(se_UntagCertificateAuthorityCommand).de(de_UntagCertificateAuthorityCommand).build() {
|
|
2433
|
+
};
|
|
2434
|
+
__name(_UntagCertificateAuthorityCommand, "UntagCertificateAuthorityCommand");
|
|
2435
|
+
var UntagCertificateAuthorityCommand = _UntagCertificateAuthorityCommand;
|
|
2436
|
+
|
|
2437
|
+
// src/commands/UpdateCertificateAuthorityCommand.ts
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
var _UpdateCertificateAuthorityCommand = class _UpdateCertificateAuthorityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2443
|
+
...commonParams
|
|
2444
|
+
}).m(function(Command, cs, config, o) {
|
|
2445
|
+
return [
|
|
2446
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2447
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2448
|
+
];
|
|
2449
|
+
}).s("ACMPrivateCA", "UpdateCertificateAuthority", {}).n("ACMPCAClient", "UpdateCertificateAuthorityCommand").f(void 0, void 0).ser(se_UpdateCertificateAuthorityCommand).de(de_UpdateCertificateAuthorityCommand).build() {
|
|
2450
|
+
};
|
|
2451
|
+
__name(_UpdateCertificateAuthorityCommand, "UpdateCertificateAuthorityCommand");
|
|
2452
|
+
var UpdateCertificateAuthorityCommand = _UpdateCertificateAuthorityCommand;
|
|
2453
|
+
|
|
2454
|
+
// src/ACMPCA.ts
|
|
2455
|
+
var commands = {
|
|
2456
|
+
CreateCertificateAuthorityCommand,
|
|
2457
|
+
CreateCertificateAuthorityAuditReportCommand,
|
|
2458
|
+
CreatePermissionCommand,
|
|
2459
|
+
DeleteCertificateAuthorityCommand,
|
|
2460
|
+
DeletePermissionCommand,
|
|
2461
|
+
DeletePolicyCommand,
|
|
2462
|
+
DescribeCertificateAuthorityCommand,
|
|
2463
|
+
DescribeCertificateAuthorityAuditReportCommand,
|
|
2464
|
+
GetCertificateCommand,
|
|
2465
|
+
GetCertificateAuthorityCertificateCommand,
|
|
2466
|
+
GetCertificateAuthorityCsrCommand,
|
|
2467
|
+
GetPolicyCommand,
|
|
2468
|
+
ImportCertificateAuthorityCertificateCommand,
|
|
2469
|
+
IssueCertificateCommand,
|
|
2470
|
+
ListCertificateAuthoritiesCommand,
|
|
2471
|
+
ListPermissionsCommand,
|
|
2472
|
+
ListTagsCommand,
|
|
2473
|
+
PutPolicyCommand,
|
|
2474
|
+
RestoreCertificateAuthorityCommand,
|
|
2475
|
+
RevokeCertificateCommand,
|
|
2476
|
+
TagCertificateAuthorityCommand,
|
|
2477
|
+
UntagCertificateAuthorityCommand,
|
|
2478
|
+
UpdateCertificateAuthorityCommand
|
|
2479
|
+
};
|
|
2480
|
+
var _ACMPCA = class _ACMPCA extends ACMPCAClient {
|
|
2481
|
+
};
|
|
2482
|
+
__name(_ACMPCA, "ACMPCA");
|
|
2483
|
+
var ACMPCA = _ACMPCA;
|
|
2484
|
+
(0, import_smithy_client.createAggregatedClient)(commands, ACMPCA);
|
|
2485
|
+
|
|
2486
|
+
// src/pagination/ListCertificateAuthoritiesPaginator.ts
|
|
2487
|
+
var import_core = require("@smithy/core");
|
|
2488
|
+
var paginateListCertificateAuthorities = (0, import_core.createPaginator)(ACMPCAClient, ListCertificateAuthoritiesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2489
|
+
|
|
2490
|
+
// src/pagination/ListPermissionsPaginator.ts
|
|
2491
|
+
|
|
2492
|
+
var paginateListPermissions = (0, import_core.createPaginator)(ACMPCAClient, ListPermissionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2493
|
+
|
|
2494
|
+
// src/pagination/ListTagsPaginator.ts
|
|
2495
|
+
|
|
2496
|
+
var paginateListTags = (0, import_core.createPaginator)(ACMPCAClient, ListTagsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2497
|
+
|
|
2498
|
+
// src/waiters/waitForAuditReportCreated.ts
|
|
2499
|
+
var import_util_waiter = require("@smithy/util-waiter");
|
|
2500
|
+
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
2501
|
+
let reason;
|
|
2502
|
+
try {
|
|
2503
|
+
const result = await client.send(new DescribeCertificateAuthorityAuditReportCommand(input));
|
|
2504
|
+
reason = result;
|
|
2505
|
+
try {
|
|
2506
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2507
|
+
return result.AuditReportStatus;
|
|
2508
|
+
}, "returnComparator");
|
|
2509
|
+
if (returnComparator() === "SUCCESS") {
|
|
2510
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2511
|
+
}
|
|
2512
|
+
} catch (e) {
|
|
2513
|
+
}
|
|
2514
|
+
try {
|
|
2515
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2516
|
+
return result.AuditReportStatus;
|
|
2517
|
+
}, "returnComparator");
|
|
2518
|
+
if (returnComparator() === "FAILED") {
|
|
2519
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2520
|
+
}
|
|
2521
|
+
} catch (e) {
|
|
2522
|
+
}
|
|
2523
|
+
} catch (exception) {
|
|
2524
|
+
reason = exception;
|
|
2525
|
+
}
|
|
2526
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2527
|
+
}, "checkState");
|
|
2528
|
+
var waitForAuditReportCreated = /* @__PURE__ */ __name(async (params, input) => {
|
|
2529
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
2530
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2531
|
+
}, "waitForAuditReportCreated");
|
|
2532
|
+
var waitUntilAuditReportCreated = /* @__PURE__ */ __name(async (params, input) => {
|
|
2533
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
2534
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2535
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2536
|
+
}, "waitUntilAuditReportCreated");
|
|
2537
|
+
|
|
2538
|
+
// src/waiters/waitForCertificateAuthorityCSRCreated.ts
|
|
2539
|
+
|
|
2540
|
+
var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2541
|
+
let reason;
|
|
2542
|
+
try {
|
|
2543
|
+
const result = await client.send(new GetCertificateAuthorityCsrCommand(input));
|
|
2544
|
+
reason = result;
|
|
2545
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2546
|
+
} catch (exception) {
|
|
2547
|
+
reason = exception;
|
|
2548
|
+
if (exception.name && exception.name == "RequestInProgressException") {
|
|
2549
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2553
|
+
}, "checkState");
|
|
2554
|
+
var waitForCertificateAuthorityCSRCreated = /* @__PURE__ */ __name(async (params, input) => {
|
|
2555
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
2556
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
2557
|
+
}, "waitForCertificateAuthorityCSRCreated");
|
|
2558
|
+
var waitUntilCertificateAuthorityCSRCreated = /* @__PURE__ */ __name(async (params, input) => {
|
|
2559
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
2560
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
2561
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2562
|
+
}, "waitUntilCertificateAuthorityCSRCreated");
|
|
2563
|
+
|
|
2564
|
+
// src/waiters/waitForCertificateIssued.ts
|
|
2565
|
+
|
|
2566
|
+
var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2567
|
+
let reason;
|
|
2568
|
+
try {
|
|
2569
|
+
const result = await client.send(new GetCertificateCommand(input));
|
|
2570
|
+
reason = result;
|
|
2571
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2572
|
+
} catch (exception) {
|
|
2573
|
+
reason = exception;
|
|
2574
|
+
if (exception.name && exception.name == "RequestInProgressException") {
|
|
2575
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2579
|
+
}, "checkState");
|
|
2580
|
+
var waitForCertificateIssued = /* @__PURE__ */ __name(async (params, input) => {
|
|
2581
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
2582
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
2583
|
+
}, "waitForCertificateIssued");
|
|
2584
|
+
var waitUntilCertificateIssued = /* @__PURE__ */ __name(async (params, input) => {
|
|
2585
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
2586
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
2587
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2588
|
+
}, "waitUntilCertificateIssued");
|
|
2589
|
+
|
|
2590
|
+
// src/index.ts
|
|
2591
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2592
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2593
|
+
0 && (module.exports = {
|
|
2594
|
+
ACMPCA,
|
|
2595
|
+
ACMPCAClient,
|
|
2596
|
+
ACMPCAServiceException,
|
|
2597
|
+
AccessMethodType,
|
|
2598
|
+
ActionType,
|
|
2599
|
+
AuditReportResponseFormat,
|
|
2600
|
+
AuditReportStatus,
|
|
2601
|
+
CertificateAuthorityStatus,
|
|
2602
|
+
CertificateAuthorityType,
|
|
2603
|
+
CertificateAuthorityUsageMode,
|
|
2604
|
+
CertificateMismatchException,
|
|
2605
|
+
ConcurrentModificationException,
|
|
2606
|
+
CreateCertificateAuthorityAuditReportCommand,
|
|
2607
|
+
CreateCertificateAuthorityCommand,
|
|
2608
|
+
CreatePermissionCommand,
|
|
2609
|
+
DeleteCertificateAuthorityCommand,
|
|
2610
|
+
DeletePermissionCommand,
|
|
2611
|
+
DeletePolicyCommand,
|
|
2612
|
+
DescribeCertificateAuthorityAuditReportCommand,
|
|
2613
|
+
DescribeCertificateAuthorityCommand,
|
|
2614
|
+
ExtendedKeyUsageType,
|
|
2615
|
+
FailureReason,
|
|
2616
|
+
GetCertificateAuthorityCertificateCommand,
|
|
2617
|
+
GetCertificateAuthorityCsrCommand,
|
|
2618
|
+
GetCertificateCommand,
|
|
2619
|
+
GetPolicyCommand,
|
|
2620
|
+
ImportCertificateAuthorityCertificateCommand,
|
|
2621
|
+
InvalidArgsException,
|
|
2622
|
+
InvalidArnException,
|
|
2623
|
+
InvalidNextTokenException,
|
|
2624
|
+
InvalidPolicyException,
|
|
2625
|
+
InvalidRequestException,
|
|
2626
|
+
InvalidStateException,
|
|
2627
|
+
InvalidTagException,
|
|
2628
|
+
IssueCertificateCommand,
|
|
2629
|
+
KeyAlgorithm,
|
|
2630
|
+
KeyStorageSecurityStandard,
|
|
2631
|
+
LimitExceededException,
|
|
2632
|
+
ListCertificateAuthoritiesCommand,
|
|
2633
|
+
ListPermissionsCommand,
|
|
2634
|
+
ListTagsCommand,
|
|
2635
|
+
LockoutPreventedException,
|
|
2636
|
+
MalformedCSRException,
|
|
2637
|
+
MalformedCertificateException,
|
|
2638
|
+
PermissionAlreadyExistsException,
|
|
2639
|
+
PolicyQualifierId,
|
|
2640
|
+
PutPolicyCommand,
|
|
2641
|
+
RequestAlreadyProcessedException,
|
|
2642
|
+
RequestFailedException,
|
|
2643
|
+
RequestInProgressException,
|
|
2644
|
+
ResourceNotFoundException,
|
|
2645
|
+
ResourceOwner,
|
|
2646
|
+
RestoreCertificateAuthorityCommand,
|
|
2647
|
+
RevocationReason,
|
|
2648
|
+
RevokeCertificateCommand,
|
|
2649
|
+
S3ObjectAcl,
|
|
2650
|
+
SigningAlgorithm,
|
|
2651
|
+
TagCertificateAuthorityCommand,
|
|
2652
|
+
TooManyTagsException,
|
|
2653
|
+
UntagCertificateAuthorityCommand,
|
|
2654
|
+
UpdateCertificateAuthorityCommand,
|
|
2655
|
+
ValidityPeriodType,
|
|
2656
|
+
__Client,
|
|
2657
|
+
paginateListCertificateAuthorities,
|
|
2658
|
+
paginateListPermissions,
|
|
2659
|
+
paginateListTags,
|
|
2660
|
+
waitForAuditReportCreated,
|
|
2661
|
+
waitForCertificateAuthorityCSRCreated,
|
|
2662
|
+
waitForCertificateIssued,
|
|
2663
|
+
waitUntilAuditReportCreated,
|
|
2664
|
+
waitUntilCertificateAuthorityCSRCreated,
|
|
2665
|
+
waitUntilCertificateIssued
|
|
2666
|
+
});
|