@aws-sdk/client-acm-pca 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +179 -969
- package/dist-es/protocols/Aws_json1_1.js +180 -970
- package/package.json +6 -6
|
@@ -6,232 +6,163 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const ACMPCAServiceException_1 = require("../models/ACMPCAServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_CreateCertificateAuthorityCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "ACMPrivateCA.CreateCertificateAuthority",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("CreateCertificateAuthority");
|
|
13
10
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_CreateCertificateAuthorityCommand = se_CreateCertificateAuthorityCommand;
|
|
18
15
|
const se_CreateCertificateAuthorityAuditReportCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "ACMPrivateCA.CreateCertificateAuthorityAuditReport",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("CreateCertificateAuthorityAuditReport");
|
|
23
17
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_CreateCertificateAuthorityAuditReportCommand = se_CreateCertificateAuthorityAuditReportCommand;
|
|
28
22
|
const se_CreatePermissionCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "ACMPrivateCA.CreatePermission",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("CreatePermission");
|
|
33
24
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_CreatePermissionCommand = se_CreatePermissionCommand;
|
|
38
29
|
const se_DeleteCertificateAuthorityCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "ACMPrivateCA.DeleteCertificateAuthority",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteCertificateAuthority");
|
|
43
31
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_DeleteCertificateAuthorityCommand = se_DeleteCertificateAuthorityCommand;
|
|
48
36
|
const se_DeletePermissionCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "ACMPrivateCA.DeletePermission",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DeletePermission");
|
|
53
38
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_DeletePermissionCommand = se_DeletePermissionCommand;
|
|
58
43
|
const se_DeletePolicyCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "ACMPrivateCA.DeletePolicy",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("DeletePolicy");
|
|
63
45
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
|
|
68
50
|
const se_DescribeCertificateAuthorityCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "ACMPrivateCA.DescribeCertificateAuthority",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("DescribeCertificateAuthority");
|
|
73
52
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_DescribeCertificateAuthorityCommand = se_DescribeCertificateAuthorityCommand;
|
|
78
57
|
const se_DescribeCertificateAuthorityAuditReportCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "ACMPrivateCA.DescribeCertificateAuthorityAuditReport",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("DescribeCertificateAuthorityAuditReport");
|
|
83
59
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_DescribeCertificateAuthorityAuditReportCommand = se_DescribeCertificateAuthorityAuditReportCommand;
|
|
88
64
|
const se_GetCertificateCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "ACMPrivateCA.GetCertificate",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("GetCertificate");
|
|
93
66
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_GetCertificateCommand = se_GetCertificateCommand;
|
|
98
71
|
const se_GetCertificateAuthorityCertificateCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.1",
|
|
101
|
-
"x-amz-target": "ACMPrivateCA.GetCertificateAuthorityCertificate",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("GetCertificateAuthorityCertificate");
|
|
103
73
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_GetCertificateAuthorityCertificateCommand = se_GetCertificateAuthorityCertificateCommand;
|
|
108
78
|
const se_GetCertificateAuthorityCsrCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.1",
|
|
111
|
-
"x-amz-target": "ACMPrivateCA.GetCertificateAuthorityCsr",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("GetCertificateAuthorityCsr");
|
|
113
80
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_GetCertificateAuthorityCsrCommand = se_GetCertificateAuthorityCsrCommand;
|
|
118
85
|
const se_GetPolicyCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.1",
|
|
121
|
-
"x-amz-target": "ACMPrivateCA.GetPolicy",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("GetPolicy");
|
|
123
87
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_GetPolicyCommand = se_GetPolicyCommand;
|
|
128
92
|
const se_ImportCertificateAuthorityCertificateCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.1",
|
|
131
|
-
"x-amz-target": "ACMPrivateCA.ImportCertificateAuthorityCertificate",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("ImportCertificateAuthorityCertificate");
|
|
133
94
|
let body;
|
|
134
95
|
body = JSON.stringify(se_ImportCertificateAuthorityCertificateRequest(input, context));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_ImportCertificateAuthorityCertificateCommand = se_ImportCertificateAuthorityCertificateCommand;
|
|
138
99
|
const se_IssueCertificateCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-amz-json-1.1",
|
|
141
|
-
"x-amz-target": "ACMPrivateCA.IssueCertificate",
|
|
142
|
-
};
|
|
100
|
+
const headers = sharedHeaders("IssueCertificate");
|
|
143
101
|
let body;
|
|
144
102
|
body = JSON.stringify(se_IssueCertificateRequest(input, context));
|
|
145
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
104
|
};
|
|
147
105
|
exports.se_IssueCertificateCommand = se_IssueCertificateCommand;
|
|
148
106
|
const se_ListCertificateAuthoritiesCommand = async (input, context) => {
|
|
149
|
-
const headers =
|
|
150
|
-
"content-type": "application/x-amz-json-1.1",
|
|
151
|
-
"x-amz-target": "ACMPrivateCA.ListCertificateAuthorities",
|
|
152
|
-
};
|
|
107
|
+
const headers = sharedHeaders("ListCertificateAuthorities");
|
|
153
108
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_ListCertificateAuthoritiesCommand = se_ListCertificateAuthoritiesCommand;
|
|
158
113
|
const se_ListPermissionsCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "ACMPrivateCA.ListPermissions",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("ListPermissions");
|
|
163
115
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_ListPermissionsCommand = se_ListPermissionsCommand;
|
|
168
120
|
const se_ListTagsCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "ACMPrivateCA.ListTags",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("ListTags");
|
|
173
122
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_ListTagsCommand = se_ListTagsCommand;
|
|
178
127
|
const se_PutPolicyCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "ACMPrivateCA.PutPolicy",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("PutPolicy");
|
|
183
129
|
let body;
|
|
184
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_PutPolicyCommand = se_PutPolicyCommand;
|
|
188
134
|
const se_RestoreCertificateAuthorityCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.1",
|
|
191
|
-
"x-amz-target": "ACMPrivateCA.RestoreCertificateAuthority",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("RestoreCertificateAuthority");
|
|
193
136
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
139
|
};
|
|
197
140
|
exports.se_RestoreCertificateAuthorityCommand = se_RestoreCertificateAuthorityCommand;
|
|
198
141
|
const se_RevokeCertificateCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-amz-json-1.1",
|
|
201
|
-
"x-amz-target": "ACMPrivateCA.RevokeCertificate",
|
|
202
|
-
};
|
|
142
|
+
const headers = sharedHeaders("RevokeCertificate");
|
|
203
143
|
let body;
|
|
204
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
205
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
146
|
};
|
|
207
147
|
exports.se_RevokeCertificateCommand = se_RevokeCertificateCommand;
|
|
208
148
|
const se_TagCertificateAuthorityCommand = async (input, context) => {
|
|
209
|
-
const headers =
|
|
210
|
-
"content-type": "application/x-amz-json-1.1",
|
|
211
|
-
"x-amz-target": "ACMPrivateCA.TagCertificateAuthority",
|
|
212
|
-
};
|
|
149
|
+
const headers = sharedHeaders("TagCertificateAuthority");
|
|
213
150
|
let body;
|
|
214
|
-
body = JSON.stringify(
|
|
151
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
215
152
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
153
|
};
|
|
217
154
|
exports.se_TagCertificateAuthorityCommand = se_TagCertificateAuthorityCommand;
|
|
218
155
|
const se_UntagCertificateAuthorityCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-amz-json-1.1",
|
|
221
|
-
"x-amz-target": "ACMPrivateCA.UntagCertificateAuthority",
|
|
222
|
-
};
|
|
156
|
+
const headers = sharedHeaders("UntagCertificateAuthority");
|
|
223
157
|
let body;
|
|
224
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
160
|
};
|
|
227
161
|
exports.se_UntagCertificateAuthorityCommand = se_UntagCertificateAuthorityCommand;
|
|
228
162
|
const se_UpdateCertificateAuthorityCommand = async (input, context) => {
|
|
229
|
-
const headers =
|
|
230
|
-
"content-type": "application/x-amz-json-1.1",
|
|
231
|
-
"x-amz-target": "ACMPrivateCA.UpdateCertificateAuthority",
|
|
232
|
-
};
|
|
163
|
+
const headers = sharedHeaders("UpdateCertificateAuthority");
|
|
233
164
|
let body;
|
|
234
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
235
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
167
|
};
|
|
237
168
|
exports.se_UpdateCertificateAuthorityCommand = se_UpdateCertificateAuthorityCommand;
|
|
@@ -241,12 +172,12 @@ const de_CreateCertificateAuthorityCommand = async (output, context) => {
|
|
|
241
172
|
}
|
|
242
173
|
const data = await parseBody(output.body, context);
|
|
243
174
|
let contents = {};
|
|
244
|
-
contents =
|
|
175
|
+
contents = (0, smithy_client_1._json)(data);
|
|
245
176
|
const response = {
|
|
246
177
|
$metadata: deserializeMetadata(output),
|
|
247
178
|
...contents,
|
|
248
179
|
};
|
|
249
|
-
return
|
|
180
|
+
return response;
|
|
250
181
|
};
|
|
251
182
|
exports.de_CreateCertificateAuthorityCommand = de_CreateCertificateAuthorityCommand;
|
|
252
183
|
const de_CreateCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -270,10 +201,9 @@ const de_CreateCertificateAuthorityCommandError = async (output, context) => {
|
|
|
270
201
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
271
202
|
default:
|
|
272
203
|
const parsedBody = parsedOutput.body;
|
|
273
|
-
|
|
204
|
+
return throwDefaultError({
|
|
274
205
|
output,
|
|
275
206
|
parsedBody,
|
|
276
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
277
207
|
errorCode,
|
|
278
208
|
});
|
|
279
209
|
}
|
|
@@ -284,12 +214,12 @@ const de_CreateCertificateAuthorityAuditReportCommand = async (output, context)
|
|
|
284
214
|
}
|
|
285
215
|
const data = await parseBody(output.body, context);
|
|
286
216
|
let contents = {};
|
|
287
|
-
contents =
|
|
217
|
+
contents = (0, smithy_client_1._json)(data);
|
|
288
218
|
const response = {
|
|
289
219
|
$metadata: deserializeMetadata(output),
|
|
290
220
|
...contents,
|
|
291
221
|
};
|
|
292
|
-
return
|
|
222
|
+
return response;
|
|
293
223
|
};
|
|
294
224
|
exports.de_CreateCertificateAuthorityAuditReportCommand = de_CreateCertificateAuthorityAuditReportCommand;
|
|
295
225
|
const de_CreateCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
@@ -319,10 +249,9 @@ const de_CreateCertificateAuthorityAuditReportCommandError = async (output, cont
|
|
|
319
249
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
320
250
|
default:
|
|
321
251
|
const parsedBody = parsedOutput.body;
|
|
322
|
-
|
|
252
|
+
return throwDefaultError({
|
|
323
253
|
output,
|
|
324
254
|
parsedBody,
|
|
325
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
326
255
|
errorCode,
|
|
327
256
|
});
|
|
328
257
|
}
|
|
@@ -335,7 +264,7 @@ const de_CreatePermissionCommand = async (output, context) => {
|
|
|
335
264
|
const response = {
|
|
336
265
|
$metadata: deserializeMetadata(output),
|
|
337
266
|
};
|
|
338
|
-
return
|
|
267
|
+
return response;
|
|
339
268
|
};
|
|
340
269
|
exports.de_CreatePermissionCommand = de_CreatePermissionCommand;
|
|
341
270
|
const de_CreatePermissionCommandError = async (output, context) => {
|
|
@@ -365,10 +294,9 @@ const de_CreatePermissionCommandError = async (output, context) => {
|
|
|
365
294
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
366
295
|
default:
|
|
367
296
|
const parsedBody = parsedOutput.body;
|
|
368
|
-
|
|
297
|
+
return throwDefaultError({
|
|
369
298
|
output,
|
|
370
299
|
parsedBody,
|
|
371
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
372
300
|
errorCode,
|
|
373
301
|
});
|
|
374
302
|
}
|
|
@@ -381,7 +309,7 @@ const de_DeleteCertificateAuthorityCommand = async (output, context) => {
|
|
|
381
309
|
const response = {
|
|
382
310
|
$metadata: deserializeMetadata(output),
|
|
383
311
|
};
|
|
384
|
-
return
|
|
312
|
+
return response;
|
|
385
313
|
};
|
|
386
314
|
exports.de_DeleteCertificateAuthorityCommand = de_DeleteCertificateAuthorityCommand;
|
|
387
315
|
const de_DeleteCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -405,10 +333,9 @@ const de_DeleteCertificateAuthorityCommandError = async (output, context) => {
|
|
|
405
333
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
406
334
|
default:
|
|
407
335
|
const parsedBody = parsedOutput.body;
|
|
408
|
-
|
|
336
|
+
return throwDefaultError({
|
|
409
337
|
output,
|
|
410
338
|
parsedBody,
|
|
411
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
412
339
|
errorCode,
|
|
413
340
|
});
|
|
414
341
|
}
|
|
@@ -421,7 +348,7 @@ const de_DeletePermissionCommand = async (output, context) => {
|
|
|
421
348
|
const response = {
|
|
422
349
|
$metadata: deserializeMetadata(output),
|
|
423
350
|
};
|
|
424
|
-
return
|
|
351
|
+
return response;
|
|
425
352
|
};
|
|
426
353
|
exports.de_DeletePermissionCommand = de_DeletePermissionCommand;
|
|
427
354
|
const de_DeletePermissionCommandError = async (output, context) => {
|
|
@@ -445,10 +372,9 @@ const de_DeletePermissionCommandError = async (output, context) => {
|
|
|
445
372
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
446
373
|
default:
|
|
447
374
|
const parsedBody = parsedOutput.body;
|
|
448
|
-
|
|
375
|
+
return throwDefaultError({
|
|
449
376
|
output,
|
|
450
377
|
parsedBody,
|
|
451
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
452
378
|
errorCode,
|
|
453
379
|
});
|
|
454
380
|
}
|
|
@@ -461,7 +387,7 @@ const de_DeletePolicyCommand = async (output, context) => {
|
|
|
461
387
|
const response = {
|
|
462
388
|
$metadata: deserializeMetadata(output),
|
|
463
389
|
};
|
|
464
|
-
return
|
|
390
|
+
return response;
|
|
465
391
|
};
|
|
466
392
|
exports.de_DeletePolicyCommand = de_DeletePolicyCommand;
|
|
467
393
|
const de_DeletePolicyCommandError = async (output, context) => {
|
|
@@ -491,10 +417,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
|
|
|
491
417
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
492
418
|
default:
|
|
493
419
|
const parsedBody = parsedOutput.body;
|
|
494
|
-
|
|
420
|
+
return throwDefaultError({
|
|
495
421
|
output,
|
|
496
422
|
parsedBody,
|
|
497
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
498
423
|
errorCode,
|
|
499
424
|
});
|
|
500
425
|
}
|
|
@@ -510,7 +435,7 @@ const de_DescribeCertificateAuthorityCommand = async (output, context) => {
|
|
|
510
435
|
$metadata: deserializeMetadata(output),
|
|
511
436
|
...contents,
|
|
512
437
|
};
|
|
513
|
-
return
|
|
438
|
+
return response;
|
|
514
439
|
};
|
|
515
440
|
exports.de_DescribeCertificateAuthorityCommand = de_DescribeCertificateAuthorityCommand;
|
|
516
441
|
const de_DescribeCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -528,10 +453,9 @@ const de_DescribeCertificateAuthorityCommandError = async (output, context) => {
|
|
|
528
453
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
529
454
|
default:
|
|
530
455
|
const parsedBody = parsedOutput.body;
|
|
531
|
-
|
|
456
|
+
return throwDefaultError({
|
|
532
457
|
output,
|
|
533
458
|
parsedBody,
|
|
534
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
535
459
|
errorCode,
|
|
536
460
|
});
|
|
537
461
|
}
|
|
@@ -547,7 +471,7 @@ const de_DescribeCertificateAuthorityAuditReportCommand = async (output, context
|
|
|
547
471
|
$metadata: deserializeMetadata(output),
|
|
548
472
|
...contents,
|
|
549
473
|
};
|
|
550
|
-
return
|
|
474
|
+
return response;
|
|
551
475
|
};
|
|
552
476
|
exports.de_DescribeCertificateAuthorityAuditReportCommand = de_DescribeCertificateAuthorityAuditReportCommand;
|
|
553
477
|
const de_DescribeCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
@@ -568,10 +492,9 @@ const de_DescribeCertificateAuthorityAuditReportCommandError = async (output, co
|
|
|
568
492
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
493
|
default:
|
|
570
494
|
const parsedBody = parsedOutput.body;
|
|
571
|
-
|
|
495
|
+
return throwDefaultError({
|
|
572
496
|
output,
|
|
573
497
|
parsedBody,
|
|
574
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
575
498
|
errorCode,
|
|
576
499
|
});
|
|
577
500
|
}
|
|
@@ -582,12 +505,12 @@ const de_GetCertificateCommand = async (output, context) => {
|
|
|
582
505
|
}
|
|
583
506
|
const data = await parseBody(output.body, context);
|
|
584
507
|
let contents = {};
|
|
585
|
-
contents =
|
|
508
|
+
contents = (0, smithy_client_1._json)(data);
|
|
586
509
|
const response = {
|
|
587
510
|
$metadata: deserializeMetadata(output),
|
|
588
511
|
...contents,
|
|
589
512
|
};
|
|
590
|
-
return
|
|
513
|
+
return response;
|
|
591
514
|
};
|
|
592
515
|
exports.de_GetCertificateCommand = de_GetCertificateCommand;
|
|
593
516
|
const de_GetCertificateCommandError = async (output, context) => {
|
|
@@ -614,10 +537,9 @@ const de_GetCertificateCommandError = async (output, context) => {
|
|
|
614
537
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
615
538
|
default:
|
|
616
539
|
const parsedBody = parsedOutput.body;
|
|
617
|
-
|
|
540
|
+
return throwDefaultError({
|
|
618
541
|
output,
|
|
619
542
|
parsedBody,
|
|
620
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
621
543
|
errorCode,
|
|
622
544
|
});
|
|
623
545
|
}
|
|
@@ -628,12 +550,12 @@ const de_GetCertificateAuthorityCertificateCommand = async (output, context) =>
|
|
|
628
550
|
}
|
|
629
551
|
const data = await parseBody(output.body, context);
|
|
630
552
|
let contents = {};
|
|
631
|
-
contents =
|
|
553
|
+
contents = (0, smithy_client_1._json)(data);
|
|
632
554
|
const response = {
|
|
633
555
|
$metadata: deserializeMetadata(output),
|
|
634
556
|
...contents,
|
|
635
557
|
};
|
|
636
|
-
return
|
|
558
|
+
return response;
|
|
637
559
|
};
|
|
638
560
|
exports.de_GetCertificateAuthorityCertificateCommand = de_GetCertificateAuthorityCertificateCommand;
|
|
639
561
|
const de_GetCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
@@ -654,10 +576,9 @@ const de_GetCertificateAuthorityCertificateCommandError = async (output, context
|
|
|
654
576
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
655
577
|
default:
|
|
656
578
|
const parsedBody = parsedOutput.body;
|
|
657
|
-
|
|
579
|
+
return throwDefaultError({
|
|
658
580
|
output,
|
|
659
581
|
parsedBody,
|
|
660
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
661
582
|
errorCode,
|
|
662
583
|
});
|
|
663
584
|
}
|
|
@@ -668,12 +589,12 @@ const de_GetCertificateAuthorityCsrCommand = async (output, context) => {
|
|
|
668
589
|
}
|
|
669
590
|
const data = await parseBody(output.body, context);
|
|
670
591
|
let contents = {};
|
|
671
|
-
contents =
|
|
592
|
+
contents = (0, smithy_client_1._json)(data);
|
|
672
593
|
const response = {
|
|
673
594
|
$metadata: deserializeMetadata(output),
|
|
674
595
|
...contents,
|
|
675
596
|
};
|
|
676
|
-
return
|
|
597
|
+
return response;
|
|
677
598
|
};
|
|
678
599
|
exports.de_GetCertificateAuthorityCsrCommand = de_GetCertificateAuthorityCsrCommand;
|
|
679
600
|
const de_GetCertificateAuthorityCsrCommandError = async (output, context) => {
|
|
@@ -700,10 +621,9 @@ const de_GetCertificateAuthorityCsrCommandError = async (output, context) => {
|
|
|
700
621
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
701
622
|
default:
|
|
702
623
|
const parsedBody = parsedOutput.body;
|
|
703
|
-
|
|
624
|
+
return throwDefaultError({
|
|
704
625
|
output,
|
|
705
626
|
parsedBody,
|
|
706
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
707
627
|
errorCode,
|
|
708
628
|
});
|
|
709
629
|
}
|
|
@@ -714,12 +634,12 @@ const de_GetPolicyCommand = async (output, context) => {
|
|
|
714
634
|
}
|
|
715
635
|
const data = await parseBody(output.body, context);
|
|
716
636
|
let contents = {};
|
|
717
|
-
contents =
|
|
637
|
+
contents = (0, smithy_client_1._json)(data);
|
|
718
638
|
const response = {
|
|
719
639
|
$metadata: deserializeMetadata(output),
|
|
720
640
|
...contents,
|
|
721
641
|
};
|
|
722
|
-
return
|
|
642
|
+
return response;
|
|
723
643
|
};
|
|
724
644
|
exports.de_GetPolicyCommand = de_GetPolicyCommand;
|
|
725
645
|
const de_GetPolicyCommandError = async (output, context) => {
|
|
@@ -743,10 +663,9 @@ const de_GetPolicyCommandError = async (output, context) => {
|
|
|
743
663
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
744
664
|
default:
|
|
745
665
|
const parsedBody = parsedOutput.body;
|
|
746
|
-
|
|
666
|
+
return throwDefaultError({
|
|
747
667
|
output,
|
|
748
668
|
parsedBody,
|
|
749
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
750
669
|
errorCode,
|
|
751
670
|
});
|
|
752
671
|
}
|
|
@@ -759,7 +678,7 @@ const de_ImportCertificateAuthorityCertificateCommand = async (output, context)
|
|
|
759
678
|
const response = {
|
|
760
679
|
$metadata: deserializeMetadata(output),
|
|
761
680
|
};
|
|
762
|
-
return
|
|
681
|
+
return response;
|
|
763
682
|
};
|
|
764
683
|
exports.de_ImportCertificateAuthorityCertificateCommand = de_ImportCertificateAuthorityCertificateCommand;
|
|
765
684
|
const de_ImportCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
@@ -798,10 +717,9 @@ const de_ImportCertificateAuthorityCertificateCommandError = async (output, cont
|
|
|
798
717
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
799
718
|
default:
|
|
800
719
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
|
|
720
|
+
return throwDefaultError({
|
|
802
721
|
output,
|
|
803
722
|
parsedBody,
|
|
804
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
805
723
|
errorCode,
|
|
806
724
|
});
|
|
807
725
|
}
|
|
@@ -812,12 +730,12 @@ const de_IssueCertificateCommand = async (output, context) => {
|
|
|
812
730
|
}
|
|
813
731
|
const data = await parseBody(output.body, context);
|
|
814
732
|
let contents = {};
|
|
815
|
-
contents =
|
|
733
|
+
contents = (0, smithy_client_1._json)(data);
|
|
816
734
|
const response = {
|
|
817
735
|
$metadata: deserializeMetadata(output),
|
|
818
736
|
...contents,
|
|
819
737
|
};
|
|
820
|
-
return
|
|
738
|
+
return response;
|
|
821
739
|
};
|
|
822
740
|
exports.de_IssueCertificateCommand = de_IssueCertificateCommand;
|
|
823
741
|
const de_IssueCertificateCommandError = async (output, context) => {
|
|
@@ -847,10 +765,9 @@ const de_IssueCertificateCommandError = async (output, context) => {
|
|
|
847
765
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
848
766
|
default:
|
|
849
767
|
const parsedBody = parsedOutput.body;
|
|
850
|
-
|
|
768
|
+
return throwDefaultError({
|
|
851
769
|
output,
|
|
852
770
|
parsedBody,
|
|
853
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
854
771
|
errorCode,
|
|
855
772
|
});
|
|
856
773
|
}
|
|
@@ -866,7 +783,7 @@ const de_ListCertificateAuthoritiesCommand = async (output, context) => {
|
|
|
866
783
|
$metadata: deserializeMetadata(output),
|
|
867
784
|
...contents,
|
|
868
785
|
};
|
|
869
|
-
return
|
|
786
|
+
return response;
|
|
870
787
|
};
|
|
871
788
|
exports.de_ListCertificateAuthoritiesCommand = de_ListCertificateAuthoritiesCommand;
|
|
872
789
|
const de_ListCertificateAuthoritiesCommandError = async (output, context) => {
|
|
@@ -881,10 +798,9 @@ const de_ListCertificateAuthoritiesCommandError = async (output, context) => {
|
|
|
881
798
|
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
882
799
|
default:
|
|
883
800
|
const parsedBody = parsedOutput.body;
|
|
884
|
-
|
|
801
|
+
return throwDefaultError({
|
|
885
802
|
output,
|
|
886
803
|
parsedBody,
|
|
887
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
888
804
|
errorCode,
|
|
889
805
|
});
|
|
890
806
|
}
|
|
@@ -900,7 +816,7 @@ const de_ListPermissionsCommand = async (output, context) => {
|
|
|
900
816
|
$metadata: deserializeMetadata(output),
|
|
901
817
|
...contents,
|
|
902
818
|
};
|
|
903
|
-
return
|
|
819
|
+
return response;
|
|
904
820
|
};
|
|
905
821
|
exports.de_ListPermissionsCommand = de_ListPermissionsCommand;
|
|
906
822
|
const de_ListPermissionsCommandError = async (output, context) => {
|
|
@@ -927,10 +843,9 @@ const de_ListPermissionsCommandError = async (output, context) => {
|
|
|
927
843
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
928
844
|
default:
|
|
929
845
|
const parsedBody = parsedOutput.body;
|
|
930
|
-
|
|
846
|
+
return throwDefaultError({
|
|
931
847
|
output,
|
|
932
848
|
parsedBody,
|
|
933
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
934
849
|
errorCode,
|
|
935
850
|
});
|
|
936
851
|
}
|
|
@@ -941,12 +856,12 @@ const de_ListTagsCommand = async (output, context) => {
|
|
|
941
856
|
}
|
|
942
857
|
const data = await parseBody(output.body, context);
|
|
943
858
|
let contents = {};
|
|
944
|
-
contents =
|
|
859
|
+
contents = (0, smithy_client_1._json)(data);
|
|
945
860
|
const response = {
|
|
946
861
|
$metadata: deserializeMetadata(output),
|
|
947
862
|
...contents,
|
|
948
863
|
};
|
|
949
|
-
return
|
|
864
|
+
return response;
|
|
950
865
|
};
|
|
951
866
|
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
952
867
|
const de_ListTagsCommandError = async (output, context) => {
|
|
@@ -967,10 +882,9 @@ const de_ListTagsCommandError = async (output, context) => {
|
|
|
967
882
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
968
883
|
default:
|
|
969
884
|
const parsedBody = parsedOutput.body;
|
|
970
|
-
|
|
885
|
+
return throwDefaultError({
|
|
971
886
|
output,
|
|
972
887
|
parsedBody,
|
|
973
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
974
888
|
errorCode,
|
|
975
889
|
});
|
|
976
890
|
}
|
|
@@ -983,7 +897,7 @@ const de_PutPolicyCommand = async (output, context) => {
|
|
|
983
897
|
const response = {
|
|
984
898
|
$metadata: deserializeMetadata(output),
|
|
985
899
|
};
|
|
986
|
-
return
|
|
900
|
+
return response;
|
|
987
901
|
};
|
|
988
902
|
exports.de_PutPolicyCommand = de_PutPolicyCommand;
|
|
989
903
|
const de_PutPolicyCommandError = async (output, context) => {
|
|
@@ -1016,10 +930,9 @@ const de_PutPolicyCommandError = async (output, context) => {
|
|
|
1016
930
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1017
931
|
default:
|
|
1018
932
|
const parsedBody = parsedOutput.body;
|
|
1019
|
-
|
|
933
|
+
return throwDefaultError({
|
|
1020
934
|
output,
|
|
1021
935
|
parsedBody,
|
|
1022
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1023
936
|
errorCode,
|
|
1024
937
|
});
|
|
1025
938
|
}
|
|
@@ -1032,7 +945,7 @@ const de_RestoreCertificateAuthorityCommand = async (output, context) => {
|
|
|
1032
945
|
const response = {
|
|
1033
946
|
$metadata: deserializeMetadata(output),
|
|
1034
947
|
};
|
|
1035
|
-
return
|
|
948
|
+
return response;
|
|
1036
949
|
};
|
|
1037
950
|
exports.de_RestoreCertificateAuthorityCommand = de_RestoreCertificateAuthorityCommand;
|
|
1038
951
|
const de_RestoreCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -1053,10 +966,9 @@ const de_RestoreCertificateAuthorityCommandError = async (output, context) => {
|
|
|
1053
966
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1054
967
|
default:
|
|
1055
968
|
const parsedBody = parsedOutput.body;
|
|
1056
|
-
|
|
969
|
+
return throwDefaultError({
|
|
1057
970
|
output,
|
|
1058
971
|
parsedBody,
|
|
1059
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1060
972
|
errorCode,
|
|
1061
973
|
});
|
|
1062
974
|
}
|
|
@@ -1069,7 +981,7 @@ const de_RevokeCertificateCommand = async (output, context) => {
|
|
|
1069
981
|
const response = {
|
|
1070
982
|
$metadata: deserializeMetadata(output),
|
|
1071
983
|
};
|
|
1072
|
-
return
|
|
984
|
+
return response;
|
|
1073
985
|
};
|
|
1074
986
|
exports.de_RevokeCertificateCommand = de_RevokeCertificateCommand;
|
|
1075
987
|
const de_RevokeCertificateCommandError = async (output, context) => {
|
|
@@ -1108,10 +1020,9 @@ const de_RevokeCertificateCommandError = async (output, context) => {
|
|
|
1108
1020
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1109
1021
|
default:
|
|
1110
1022
|
const parsedBody = parsedOutput.body;
|
|
1111
|
-
|
|
1023
|
+
return throwDefaultError({
|
|
1112
1024
|
output,
|
|
1113
1025
|
parsedBody,
|
|
1114
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1115
1026
|
errorCode,
|
|
1116
1027
|
});
|
|
1117
1028
|
}
|
|
@@ -1124,7 +1035,7 @@ const de_TagCertificateAuthorityCommand = async (output, context) => {
|
|
|
1124
1035
|
const response = {
|
|
1125
1036
|
$metadata: deserializeMetadata(output),
|
|
1126
1037
|
};
|
|
1127
|
-
return
|
|
1038
|
+
return response;
|
|
1128
1039
|
};
|
|
1129
1040
|
exports.de_TagCertificateAuthorityCommand = de_TagCertificateAuthorityCommand;
|
|
1130
1041
|
const de_TagCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -1151,10 +1062,9 @@ const de_TagCertificateAuthorityCommandError = async (output, context) => {
|
|
|
1151
1062
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1152
1063
|
default:
|
|
1153
1064
|
const parsedBody = parsedOutput.body;
|
|
1154
|
-
|
|
1065
|
+
return throwDefaultError({
|
|
1155
1066
|
output,
|
|
1156
1067
|
parsedBody,
|
|
1157
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1158
1068
|
errorCode,
|
|
1159
1069
|
});
|
|
1160
1070
|
}
|
|
@@ -1167,7 +1077,7 @@ const de_UntagCertificateAuthorityCommand = async (output, context) => {
|
|
|
1167
1077
|
const response = {
|
|
1168
1078
|
$metadata: deserializeMetadata(output),
|
|
1169
1079
|
};
|
|
1170
|
-
return
|
|
1080
|
+
return response;
|
|
1171
1081
|
};
|
|
1172
1082
|
exports.de_UntagCertificateAuthorityCommand = de_UntagCertificateAuthorityCommand;
|
|
1173
1083
|
const de_UntagCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -1191,10 +1101,9 @@ const de_UntagCertificateAuthorityCommandError = async (output, context) => {
|
|
|
1191
1101
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1192
1102
|
default:
|
|
1193
1103
|
const parsedBody = parsedOutput.body;
|
|
1194
|
-
|
|
1104
|
+
return throwDefaultError({
|
|
1195
1105
|
output,
|
|
1196
1106
|
parsedBody,
|
|
1197
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1198
1107
|
errorCode,
|
|
1199
1108
|
});
|
|
1200
1109
|
}
|
|
@@ -1207,7 +1116,7 @@ const de_UpdateCertificateAuthorityCommand = async (output, context) => {
|
|
|
1207
1116
|
const response = {
|
|
1208
1117
|
$metadata: deserializeMetadata(output),
|
|
1209
1118
|
};
|
|
1210
|
-
return
|
|
1119
|
+
return response;
|
|
1211
1120
|
};
|
|
1212
1121
|
exports.de_UpdateCertificateAuthorityCommand = de_UpdateCertificateAuthorityCommand;
|
|
1213
1122
|
const de_UpdateCertificateAuthorityCommandError = async (output, context) => {
|
|
@@ -1237,17 +1146,16 @@ const de_UpdateCertificateAuthorityCommandError = async (output, context) => {
|
|
|
1237
1146
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1238
1147
|
default:
|
|
1239
1148
|
const parsedBody = parsedOutput.body;
|
|
1240
|
-
|
|
1149
|
+
return throwDefaultError({
|
|
1241
1150
|
output,
|
|
1242
1151
|
parsedBody,
|
|
1243
|
-
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1244
1152
|
errorCode,
|
|
1245
1153
|
});
|
|
1246
1154
|
}
|
|
1247
1155
|
};
|
|
1248
1156
|
const de_CertificateMismatchExceptionRes = async (parsedOutput, context) => {
|
|
1249
1157
|
const body = parsedOutput.body;
|
|
1250
|
-
const deserialized =
|
|
1158
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1251
1159
|
const exception = new models_0_1.CertificateMismatchException({
|
|
1252
1160
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1253
1161
|
...deserialized,
|
|
@@ -1256,7 +1164,7 @@ const de_CertificateMismatchExceptionRes = async (parsedOutput, context) => {
|
|
|
1256
1164
|
};
|
|
1257
1165
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
1258
1166
|
const body = parsedOutput.body;
|
|
1259
|
-
const deserialized =
|
|
1167
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1260
1168
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
1261
1169
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1262
1170
|
...deserialized,
|
|
@@ -1265,7 +1173,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
1265
1173
|
};
|
|
1266
1174
|
const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
|
|
1267
1175
|
const body = parsedOutput.body;
|
|
1268
|
-
const deserialized =
|
|
1176
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1269
1177
|
const exception = new models_0_1.InvalidArgsException({
|
|
1270
1178
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1271
1179
|
...deserialized,
|
|
@@ -1274,7 +1182,7 @@ const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
|
|
|
1274
1182
|
};
|
|
1275
1183
|
const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
1276
1184
|
const body = parsedOutput.body;
|
|
1277
|
-
const deserialized =
|
|
1185
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1278
1186
|
const exception = new models_0_1.InvalidArnException({
|
|
1279
1187
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1280
1188
|
...deserialized,
|
|
@@ -1283,7 +1191,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
|
1283
1191
|
};
|
|
1284
1192
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1285
1193
|
const body = parsedOutput.body;
|
|
1286
|
-
const deserialized =
|
|
1194
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1287
1195
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
1288
1196
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1289
1197
|
...deserialized,
|
|
@@ -1292,7 +1200,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1292
1200
|
};
|
|
1293
1201
|
const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
1294
1202
|
const body = parsedOutput.body;
|
|
1295
|
-
const deserialized =
|
|
1203
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1296
1204
|
const exception = new models_0_1.InvalidPolicyException({
|
|
1297
1205
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1298
1206
|
...deserialized,
|
|
@@ -1301,7 +1209,7 @@ const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
1301
1209
|
};
|
|
1302
1210
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1303
1211
|
const body = parsedOutput.body;
|
|
1304
|
-
const deserialized =
|
|
1212
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1305
1213
|
const exception = new models_0_1.InvalidRequestException({
|
|
1306
1214
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1307
1215
|
...deserialized,
|
|
@@ -1310,7 +1218,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1310
1218
|
};
|
|
1311
1219
|
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1312
1220
|
const body = parsedOutput.body;
|
|
1313
|
-
const deserialized =
|
|
1221
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1314
1222
|
const exception = new models_0_1.InvalidStateException({
|
|
1315
1223
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1316
1224
|
...deserialized,
|
|
@@ -1319,7 +1227,7 @@ const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
|
1319
1227
|
};
|
|
1320
1228
|
const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
1321
1229
|
const body = parsedOutput.body;
|
|
1322
|
-
const deserialized =
|
|
1230
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1323
1231
|
const exception = new models_0_1.InvalidTagException({
|
|
1324
1232
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1325
1233
|
...deserialized,
|
|
@@ -1328,7 +1236,7 @@ const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
|
1328
1236
|
};
|
|
1329
1237
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1330
1238
|
const body = parsedOutput.body;
|
|
1331
|
-
const deserialized =
|
|
1239
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1332
1240
|
const exception = new models_0_1.LimitExceededException({
|
|
1333
1241
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1334
1242
|
...deserialized,
|
|
@@ -1337,7 +1245,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1337
1245
|
};
|
|
1338
1246
|
const de_LockoutPreventedExceptionRes = async (parsedOutput, context) => {
|
|
1339
1247
|
const body = parsedOutput.body;
|
|
1340
|
-
const deserialized =
|
|
1248
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1341
1249
|
const exception = new models_0_1.LockoutPreventedException({
|
|
1342
1250
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1343
1251
|
...deserialized,
|
|
@@ -1346,7 +1254,7 @@ const de_LockoutPreventedExceptionRes = async (parsedOutput, context) => {
|
|
|
1346
1254
|
};
|
|
1347
1255
|
const de_MalformedCertificateExceptionRes = async (parsedOutput, context) => {
|
|
1348
1256
|
const body = parsedOutput.body;
|
|
1349
|
-
const deserialized =
|
|
1257
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1350
1258
|
const exception = new models_0_1.MalformedCertificateException({
|
|
1351
1259
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1352
1260
|
...deserialized,
|
|
@@ -1355,7 +1263,7 @@ const de_MalformedCertificateExceptionRes = async (parsedOutput, context) => {
|
|
|
1355
1263
|
};
|
|
1356
1264
|
const de_MalformedCSRExceptionRes = async (parsedOutput, context) => {
|
|
1357
1265
|
const body = parsedOutput.body;
|
|
1358
|
-
const deserialized =
|
|
1266
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1359
1267
|
const exception = new models_0_1.MalformedCSRException({
|
|
1360
1268
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1361
1269
|
...deserialized,
|
|
@@ -1364,7 +1272,7 @@ const de_MalformedCSRExceptionRes = async (parsedOutput, context) => {
|
|
|
1364
1272
|
};
|
|
1365
1273
|
const de_PermissionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1366
1274
|
const body = parsedOutput.body;
|
|
1367
|
-
const deserialized =
|
|
1275
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1368
1276
|
const exception = new models_0_1.PermissionAlreadyExistsException({
|
|
1369
1277
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1370
1278
|
...deserialized,
|
|
@@ -1373,7 +1281,7 @@ const de_PermissionAlreadyExistsExceptionRes = async (parsedOutput, context) =>
|
|
|
1373
1281
|
};
|
|
1374
1282
|
const de_RequestAlreadyProcessedExceptionRes = async (parsedOutput, context) => {
|
|
1375
1283
|
const body = parsedOutput.body;
|
|
1376
|
-
const deserialized =
|
|
1284
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1377
1285
|
const exception = new models_0_1.RequestAlreadyProcessedException({
|
|
1378
1286
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1379
1287
|
...deserialized,
|
|
@@ -1382,7 +1290,7 @@ const de_RequestAlreadyProcessedExceptionRes = async (parsedOutput, context) =>
|
|
|
1382
1290
|
};
|
|
1383
1291
|
const de_RequestFailedExceptionRes = async (parsedOutput, context) => {
|
|
1384
1292
|
const body = parsedOutput.body;
|
|
1385
|
-
const deserialized =
|
|
1293
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1386
1294
|
const exception = new models_0_1.RequestFailedException({
|
|
1387
1295
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1388
1296
|
...deserialized,
|
|
@@ -1391,7 +1299,7 @@ const de_RequestFailedExceptionRes = async (parsedOutput, context) => {
|
|
|
1391
1299
|
};
|
|
1392
1300
|
const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1393
1301
|
const body = parsedOutput.body;
|
|
1394
|
-
const deserialized =
|
|
1302
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1395
1303
|
const exception = new models_0_1.RequestInProgressException({
|
|
1396
1304
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1397
1305
|
...deserialized,
|
|
@@ -1400,7 +1308,7 @@ const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
|
|
|
1400
1308
|
};
|
|
1401
1309
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1402
1310
|
const body = parsedOutput.body;
|
|
1403
|
-
const deserialized =
|
|
1311
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1404
1312
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1405
1313
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1406
1314
|
...deserialized,
|
|
@@ -1409,807 +1317,102 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1409
1317
|
};
|
|
1410
1318
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1411
1319
|
const body = parsedOutput.body;
|
|
1412
|
-
const deserialized =
|
|
1320
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1413
1321
|
const exception = new models_0_1.TooManyTagsException({
|
|
1414
1322
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1415
1323
|
...deserialized,
|
|
1416
1324
|
});
|
|
1417
1325
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1418
1326
|
};
|
|
1419
|
-
const se_AccessDescription = (input, context) => {
|
|
1420
|
-
return {
|
|
1421
|
-
...(input.AccessLocation != null && { AccessLocation: se_GeneralName(input.AccessLocation, context) }),
|
|
1422
|
-
...(input.AccessMethod != null && { AccessMethod: se_AccessMethod(input.AccessMethod, context) }),
|
|
1423
|
-
};
|
|
1424
|
-
};
|
|
1425
|
-
const se_AccessDescriptionList = (input, context) => {
|
|
1426
|
-
return input
|
|
1427
|
-
.filter((e) => e != null)
|
|
1428
|
-
.map((entry) => {
|
|
1429
|
-
return se_AccessDescription(entry, context);
|
|
1430
|
-
});
|
|
1431
|
-
};
|
|
1432
|
-
const se_AccessMethod = (input, context) => {
|
|
1433
|
-
return {
|
|
1434
|
-
...(input.AccessMethodType != null && { AccessMethodType: input.AccessMethodType }),
|
|
1435
|
-
...(input.CustomObjectIdentifier != null && { CustomObjectIdentifier: input.CustomObjectIdentifier }),
|
|
1436
|
-
};
|
|
1437
|
-
};
|
|
1438
|
-
const se_ActionList = (input, context) => {
|
|
1439
|
-
return input
|
|
1440
|
-
.filter((e) => e != null)
|
|
1441
|
-
.map((entry) => {
|
|
1442
|
-
return entry;
|
|
1443
|
-
});
|
|
1444
|
-
};
|
|
1445
|
-
const se_ApiPassthrough = (input, context) => {
|
|
1446
|
-
return {
|
|
1447
|
-
...(input.Extensions != null && { Extensions: se_Extensions(input.Extensions, context) }),
|
|
1448
|
-
...(input.Subject != null && { Subject: se_ASN1Subject(input.Subject, context) }),
|
|
1449
|
-
};
|
|
1450
|
-
};
|
|
1451
|
-
const se_ASN1Subject = (input, context) => {
|
|
1452
|
-
return {
|
|
1453
|
-
...(input.CommonName != null && { CommonName: input.CommonName }),
|
|
1454
|
-
...(input.Country != null && { Country: input.Country }),
|
|
1455
|
-
...(input.CustomAttributes != null && {
|
|
1456
|
-
CustomAttributes: se_CustomAttributeList(input.CustomAttributes, context),
|
|
1457
|
-
}),
|
|
1458
|
-
...(input.DistinguishedNameQualifier != null && { DistinguishedNameQualifier: input.DistinguishedNameQualifier }),
|
|
1459
|
-
...(input.GenerationQualifier != null && { GenerationQualifier: input.GenerationQualifier }),
|
|
1460
|
-
...(input.GivenName != null && { GivenName: input.GivenName }),
|
|
1461
|
-
...(input.Initials != null && { Initials: input.Initials }),
|
|
1462
|
-
...(input.Locality != null && { Locality: input.Locality }),
|
|
1463
|
-
...(input.Organization != null && { Organization: input.Organization }),
|
|
1464
|
-
...(input.OrganizationalUnit != null && { OrganizationalUnit: input.OrganizationalUnit }),
|
|
1465
|
-
...(input.Pseudonym != null && { Pseudonym: input.Pseudonym }),
|
|
1466
|
-
...(input.SerialNumber != null && { SerialNumber: input.SerialNumber }),
|
|
1467
|
-
...(input.State != null && { State: input.State }),
|
|
1468
|
-
...(input.Surname != null && { Surname: input.Surname }),
|
|
1469
|
-
...(input.Title != null && { Title: input.Title }),
|
|
1470
|
-
};
|
|
1471
|
-
};
|
|
1472
|
-
const se_CertificateAuthorityConfiguration = (input, context) => {
|
|
1473
|
-
return {
|
|
1474
|
-
...(input.CsrExtensions != null && { CsrExtensions: se_CsrExtensions(input.CsrExtensions, context) }),
|
|
1475
|
-
...(input.KeyAlgorithm != null && { KeyAlgorithm: input.KeyAlgorithm }),
|
|
1476
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
1477
|
-
...(input.Subject != null && { Subject: se_ASN1Subject(input.Subject, context) }),
|
|
1478
|
-
};
|
|
1479
|
-
};
|
|
1480
|
-
const se_CertificatePolicyList = (input, context) => {
|
|
1481
|
-
return input
|
|
1482
|
-
.filter((e) => e != null)
|
|
1483
|
-
.map((entry) => {
|
|
1484
|
-
return se_PolicyInformation(entry, context);
|
|
1485
|
-
});
|
|
1486
|
-
};
|
|
1487
|
-
const se_CreateCertificateAuthorityAuditReportRequest = (input, context) => {
|
|
1488
|
-
return {
|
|
1489
|
-
...(input.AuditReportResponseFormat != null && { AuditReportResponseFormat: input.AuditReportResponseFormat }),
|
|
1490
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1491
|
-
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
1492
|
-
};
|
|
1493
|
-
};
|
|
1494
|
-
const se_CreateCertificateAuthorityRequest = (input, context) => {
|
|
1495
|
-
return {
|
|
1496
|
-
...(input.CertificateAuthorityConfiguration != null && {
|
|
1497
|
-
CertificateAuthorityConfiguration: se_CertificateAuthorityConfiguration(input.CertificateAuthorityConfiguration, context),
|
|
1498
|
-
}),
|
|
1499
|
-
...(input.CertificateAuthorityType != null && { CertificateAuthorityType: input.CertificateAuthorityType }),
|
|
1500
|
-
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1501
|
-
...(input.KeyStorageSecurityStandard != null && { KeyStorageSecurityStandard: input.KeyStorageSecurityStandard }),
|
|
1502
|
-
...(input.RevocationConfiguration != null && {
|
|
1503
|
-
RevocationConfiguration: se_RevocationConfiguration(input.RevocationConfiguration, context),
|
|
1504
|
-
}),
|
|
1505
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1506
|
-
...(input.UsageMode != null && { UsageMode: input.UsageMode }),
|
|
1507
|
-
};
|
|
1508
|
-
};
|
|
1509
|
-
const se_CreatePermissionRequest = (input, context) => {
|
|
1510
|
-
return {
|
|
1511
|
-
...(input.Actions != null && { Actions: se_ActionList(input.Actions, context) }),
|
|
1512
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1513
|
-
...(input.Principal != null && { Principal: input.Principal }),
|
|
1514
|
-
...(input.SourceAccount != null && { SourceAccount: input.SourceAccount }),
|
|
1515
|
-
};
|
|
1516
|
-
};
|
|
1517
|
-
const se_CrlConfiguration = (input, context) => {
|
|
1518
|
-
return {
|
|
1519
|
-
...(input.CustomCname != null && { CustomCname: input.CustomCname }),
|
|
1520
|
-
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1521
|
-
...(input.ExpirationInDays != null && { ExpirationInDays: input.ExpirationInDays }),
|
|
1522
|
-
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
1523
|
-
...(input.S3ObjectAcl != null && { S3ObjectAcl: input.S3ObjectAcl }),
|
|
1524
|
-
};
|
|
1525
|
-
};
|
|
1526
|
-
const se_CsrExtensions = (input, context) => {
|
|
1527
|
-
return {
|
|
1528
|
-
...(input.KeyUsage != null && { KeyUsage: se_KeyUsage(input.KeyUsage, context) }),
|
|
1529
|
-
...(input.SubjectInformationAccess != null && {
|
|
1530
|
-
SubjectInformationAccess: se_AccessDescriptionList(input.SubjectInformationAccess, context),
|
|
1531
|
-
}),
|
|
1532
|
-
};
|
|
1533
|
-
};
|
|
1534
|
-
const se_CustomAttribute = (input, context) => {
|
|
1535
|
-
return {
|
|
1536
|
-
...(input.ObjectIdentifier != null && { ObjectIdentifier: input.ObjectIdentifier }),
|
|
1537
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1538
|
-
};
|
|
1539
|
-
};
|
|
1540
|
-
const se_CustomAttributeList = (input, context) => {
|
|
1541
|
-
return input
|
|
1542
|
-
.filter((e) => e != null)
|
|
1543
|
-
.map((entry) => {
|
|
1544
|
-
return se_CustomAttribute(entry, context);
|
|
1545
|
-
});
|
|
1546
|
-
};
|
|
1547
|
-
const se_CustomExtension = (input, context) => {
|
|
1548
|
-
return {
|
|
1549
|
-
...(input.Critical != null && { Critical: input.Critical }),
|
|
1550
|
-
...(input.ObjectIdentifier != null && { ObjectIdentifier: input.ObjectIdentifier }),
|
|
1551
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1552
|
-
};
|
|
1553
|
-
};
|
|
1554
|
-
const se_CustomExtensionList = (input, context) => {
|
|
1555
|
-
return input
|
|
1556
|
-
.filter((e) => e != null)
|
|
1557
|
-
.map((entry) => {
|
|
1558
|
-
return se_CustomExtension(entry, context);
|
|
1559
|
-
});
|
|
1560
|
-
};
|
|
1561
|
-
const se_DeleteCertificateAuthorityRequest = (input, context) => {
|
|
1562
|
-
return {
|
|
1563
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1564
|
-
...(input.PermanentDeletionTimeInDays != null && {
|
|
1565
|
-
PermanentDeletionTimeInDays: input.PermanentDeletionTimeInDays,
|
|
1566
|
-
}),
|
|
1567
|
-
};
|
|
1568
|
-
};
|
|
1569
|
-
const se_DeletePermissionRequest = (input, context) => {
|
|
1570
|
-
return {
|
|
1571
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1572
|
-
...(input.Principal != null && { Principal: input.Principal }),
|
|
1573
|
-
...(input.SourceAccount != null && { SourceAccount: input.SourceAccount }),
|
|
1574
|
-
};
|
|
1575
|
-
};
|
|
1576
|
-
const se_DeletePolicyRequest = (input, context) => {
|
|
1577
|
-
return {
|
|
1578
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1579
|
-
};
|
|
1580
|
-
};
|
|
1581
|
-
const se_DescribeCertificateAuthorityAuditReportRequest = (input, context) => {
|
|
1582
|
-
return {
|
|
1583
|
-
...(input.AuditReportId != null && { AuditReportId: input.AuditReportId }),
|
|
1584
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1585
|
-
};
|
|
1586
|
-
};
|
|
1587
|
-
const se_DescribeCertificateAuthorityRequest = (input, context) => {
|
|
1588
|
-
return {
|
|
1589
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1590
|
-
};
|
|
1591
|
-
};
|
|
1592
|
-
const se_EdiPartyName = (input, context) => {
|
|
1593
|
-
return {
|
|
1594
|
-
...(input.NameAssigner != null && { NameAssigner: input.NameAssigner }),
|
|
1595
|
-
...(input.PartyName != null && { PartyName: input.PartyName }),
|
|
1596
|
-
};
|
|
1597
|
-
};
|
|
1598
|
-
const se_ExtendedKeyUsage = (input, context) => {
|
|
1599
|
-
return {
|
|
1600
|
-
...(input.ExtendedKeyUsageObjectIdentifier != null && {
|
|
1601
|
-
ExtendedKeyUsageObjectIdentifier: input.ExtendedKeyUsageObjectIdentifier,
|
|
1602
|
-
}),
|
|
1603
|
-
...(input.ExtendedKeyUsageType != null && { ExtendedKeyUsageType: input.ExtendedKeyUsageType }),
|
|
1604
|
-
};
|
|
1605
|
-
};
|
|
1606
|
-
const se_ExtendedKeyUsageList = (input, context) => {
|
|
1607
|
-
return input
|
|
1608
|
-
.filter((e) => e != null)
|
|
1609
|
-
.map((entry) => {
|
|
1610
|
-
return se_ExtendedKeyUsage(entry, context);
|
|
1611
|
-
});
|
|
1612
|
-
};
|
|
1613
|
-
const se_Extensions = (input, context) => {
|
|
1614
|
-
return {
|
|
1615
|
-
...(input.CertificatePolicies != null && {
|
|
1616
|
-
CertificatePolicies: se_CertificatePolicyList(input.CertificatePolicies, context),
|
|
1617
|
-
}),
|
|
1618
|
-
...(input.CustomExtensions != null && {
|
|
1619
|
-
CustomExtensions: se_CustomExtensionList(input.CustomExtensions, context),
|
|
1620
|
-
}),
|
|
1621
|
-
...(input.ExtendedKeyUsage != null && {
|
|
1622
|
-
ExtendedKeyUsage: se_ExtendedKeyUsageList(input.ExtendedKeyUsage, context),
|
|
1623
|
-
}),
|
|
1624
|
-
...(input.KeyUsage != null && { KeyUsage: se_KeyUsage(input.KeyUsage, context) }),
|
|
1625
|
-
...(input.SubjectAlternativeNames != null && {
|
|
1626
|
-
SubjectAlternativeNames: se_GeneralNameList(input.SubjectAlternativeNames, context),
|
|
1627
|
-
}),
|
|
1628
|
-
};
|
|
1629
|
-
};
|
|
1630
|
-
const se_GeneralName = (input, context) => {
|
|
1631
|
-
return {
|
|
1632
|
-
...(input.DirectoryName != null && { DirectoryName: se_ASN1Subject(input.DirectoryName, context) }),
|
|
1633
|
-
...(input.DnsName != null && { DnsName: input.DnsName }),
|
|
1634
|
-
...(input.EdiPartyName != null && { EdiPartyName: se_EdiPartyName(input.EdiPartyName, context) }),
|
|
1635
|
-
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
1636
|
-
...(input.OtherName != null && { OtherName: se_OtherName(input.OtherName, context) }),
|
|
1637
|
-
...(input.RegisteredId != null && { RegisteredId: input.RegisteredId }),
|
|
1638
|
-
...(input.Rfc822Name != null && { Rfc822Name: input.Rfc822Name }),
|
|
1639
|
-
...(input.UniformResourceIdentifier != null && { UniformResourceIdentifier: input.UniformResourceIdentifier }),
|
|
1640
|
-
};
|
|
1641
|
-
};
|
|
1642
|
-
const se_GeneralNameList = (input, context) => {
|
|
1643
|
-
return input
|
|
1644
|
-
.filter((e) => e != null)
|
|
1645
|
-
.map((entry) => {
|
|
1646
|
-
return se_GeneralName(entry, context);
|
|
1647
|
-
});
|
|
1648
|
-
};
|
|
1649
|
-
const se_GetCertificateAuthorityCertificateRequest = (input, context) => {
|
|
1650
|
-
return {
|
|
1651
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
const se_GetCertificateAuthorityCsrRequest = (input, context) => {
|
|
1655
|
-
return {
|
|
1656
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1657
|
-
};
|
|
1658
|
-
};
|
|
1659
|
-
const se_GetCertificateRequest = (input, context) => {
|
|
1660
|
-
return {
|
|
1661
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1662
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1663
|
-
};
|
|
1664
|
-
};
|
|
1665
|
-
const se_GetPolicyRequest = (input, context) => {
|
|
1666
|
-
return {
|
|
1667
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1668
|
-
};
|
|
1669
|
-
};
|
|
1670
1327
|
const se_ImportCertificateAuthorityCertificateRequest = (input, context) => {
|
|
1671
|
-
return {
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
};
|
|
1676
|
-
};
|
|
1677
|
-
const se_IssueCertificateRequest = (input, context) => {
|
|
1678
|
-
return {
|
|
1679
|
-
...(input.ApiPassthrough != null && { ApiPassthrough: se_ApiPassthrough(input.ApiPassthrough, context) }),
|
|
1680
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1681
|
-
...(input.Csr != null && { Csr: context.base64Encoder(input.Csr) }),
|
|
1682
|
-
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1683
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
1684
|
-
...(input.TemplateArn != null && { TemplateArn: input.TemplateArn }),
|
|
1685
|
-
...(input.Validity != null && { Validity: se_Validity(input.Validity, context) }),
|
|
1686
|
-
...(input.ValidityNotBefore != null && { ValidityNotBefore: se_Validity(input.ValidityNotBefore, context) }),
|
|
1687
|
-
};
|
|
1688
|
-
};
|
|
1689
|
-
const se_KeyUsage = (input, context) => {
|
|
1690
|
-
return {
|
|
1691
|
-
...(input.CRLSign != null && { CRLSign: input.CRLSign }),
|
|
1692
|
-
...(input.DataEncipherment != null && { DataEncipherment: input.DataEncipherment }),
|
|
1693
|
-
...(input.DecipherOnly != null && { DecipherOnly: input.DecipherOnly }),
|
|
1694
|
-
...(input.DigitalSignature != null && { DigitalSignature: input.DigitalSignature }),
|
|
1695
|
-
...(input.EncipherOnly != null && { EncipherOnly: input.EncipherOnly }),
|
|
1696
|
-
...(input.KeyAgreement != null && { KeyAgreement: input.KeyAgreement }),
|
|
1697
|
-
...(input.KeyCertSign != null && { KeyCertSign: input.KeyCertSign }),
|
|
1698
|
-
...(input.KeyEncipherment != null && { KeyEncipherment: input.KeyEncipherment }),
|
|
1699
|
-
...(input.NonRepudiation != null && { NonRepudiation: input.NonRepudiation }),
|
|
1700
|
-
};
|
|
1701
|
-
};
|
|
1702
|
-
const se_ListCertificateAuthoritiesRequest = (input, context) => {
|
|
1703
|
-
return {
|
|
1704
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1705
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1706
|
-
...(input.ResourceOwner != null && { ResourceOwner: input.ResourceOwner }),
|
|
1707
|
-
};
|
|
1708
|
-
};
|
|
1709
|
-
const se_ListPermissionsRequest = (input, context) => {
|
|
1710
|
-
return {
|
|
1711
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1712
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1713
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1714
|
-
};
|
|
1715
|
-
};
|
|
1716
|
-
const se_ListTagsRequest = (input, context) => {
|
|
1717
|
-
return {
|
|
1718
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1719
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1720
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1721
|
-
};
|
|
1722
|
-
};
|
|
1723
|
-
const se_OcspConfiguration = (input, context) => {
|
|
1724
|
-
return {
|
|
1725
|
-
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1726
|
-
...(input.OcspCustomCname != null && { OcspCustomCname: input.OcspCustomCname }),
|
|
1727
|
-
};
|
|
1728
|
-
};
|
|
1729
|
-
const se_OtherName = (input, context) => {
|
|
1730
|
-
return {
|
|
1731
|
-
...(input.TypeId != null && { TypeId: input.TypeId }),
|
|
1732
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1733
|
-
};
|
|
1734
|
-
};
|
|
1735
|
-
const se_PolicyInformation = (input, context) => {
|
|
1736
|
-
return {
|
|
1737
|
-
...(input.CertPolicyId != null && { CertPolicyId: input.CertPolicyId }),
|
|
1738
|
-
...(input.PolicyQualifiers != null && {
|
|
1739
|
-
PolicyQualifiers: se_PolicyQualifierInfoList(input.PolicyQualifiers, context),
|
|
1740
|
-
}),
|
|
1741
|
-
};
|
|
1742
|
-
};
|
|
1743
|
-
const se_PolicyQualifierInfo = (input, context) => {
|
|
1744
|
-
return {
|
|
1745
|
-
...(input.PolicyQualifierId != null && { PolicyQualifierId: input.PolicyQualifierId }),
|
|
1746
|
-
...(input.Qualifier != null && { Qualifier: se_Qualifier(input.Qualifier, context) }),
|
|
1747
|
-
};
|
|
1748
|
-
};
|
|
1749
|
-
const se_PolicyQualifierInfoList = (input, context) => {
|
|
1750
|
-
return input
|
|
1751
|
-
.filter((e) => e != null)
|
|
1752
|
-
.map((entry) => {
|
|
1753
|
-
return se_PolicyQualifierInfo(entry, context);
|
|
1328
|
+
return (0, smithy_client_1.take)(input, {
|
|
1329
|
+
Certificate: context.base64Encoder,
|
|
1330
|
+
CertificateAuthorityArn: [],
|
|
1331
|
+
CertificateChain: context.base64Encoder,
|
|
1754
1332
|
});
|
|
1755
1333
|
};
|
|
1756
|
-
const
|
|
1757
|
-
return {
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
};
|
|
1767
|
-
const se_RestoreCertificateAuthorityRequest = (input, context) => {
|
|
1768
|
-
return {
|
|
1769
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1770
|
-
};
|
|
1771
|
-
};
|
|
1772
|
-
const se_RevocationConfiguration = (input, context) => {
|
|
1773
|
-
return {
|
|
1774
|
-
...(input.CrlConfiguration != null && { CrlConfiguration: se_CrlConfiguration(input.CrlConfiguration, context) }),
|
|
1775
|
-
...(input.OcspConfiguration != null && {
|
|
1776
|
-
OcspConfiguration: se_OcspConfiguration(input.OcspConfiguration, context),
|
|
1777
|
-
}),
|
|
1778
|
-
};
|
|
1779
|
-
};
|
|
1780
|
-
const se_RevokeCertificateRequest = (input, context) => {
|
|
1781
|
-
return {
|
|
1782
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1783
|
-
...(input.CertificateSerial != null && { CertificateSerial: input.CertificateSerial }),
|
|
1784
|
-
...(input.RevocationReason != null && { RevocationReason: input.RevocationReason }),
|
|
1785
|
-
};
|
|
1786
|
-
};
|
|
1787
|
-
const se_Tag = (input, context) => {
|
|
1788
|
-
return {
|
|
1789
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1790
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1791
|
-
};
|
|
1792
|
-
};
|
|
1793
|
-
const se_TagCertificateAuthorityRequest = (input, context) => {
|
|
1794
|
-
return {
|
|
1795
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1796
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1797
|
-
};
|
|
1798
|
-
};
|
|
1799
|
-
const se_TagList = (input, context) => {
|
|
1800
|
-
return input
|
|
1801
|
-
.filter((e) => e != null)
|
|
1802
|
-
.map((entry) => {
|
|
1803
|
-
return se_Tag(entry, context);
|
|
1804
|
-
});
|
|
1805
|
-
};
|
|
1806
|
-
const se_UntagCertificateAuthorityRequest = (input, context) => {
|
|
1807
|
-
return {
|
|
1808
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1809
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1810
|
-
};
|
|
1811
|
-
};
|
|
1812
|
-
const se_UpdateCertificateAuthorityRequest = (input, context) => {
|
|
1813
|
-
return {
|
|
1814
|
-
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1815
|
-
...(input.RevocationConfiguration != null && {
|
|
1816
|
-
RevocationConfiguration: se_RevocationConfiguration(input.RevocationConfiguration, context),
|
|
1817
|
-
}),
|
|
1818
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1819
|
-
};
|
|
1820
|
-
};
|
|
1821
|
-
const se_Validity = (input, context) => {
|
|
1822
|
-
return {
|
|
1823
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1824
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1825
|
-
};
|
|
1826
|
-
};
|
|
1827
|
-
const de_AccessDescription = (output, context) => {
|
|
1828
|
-
return {
|
|
1829
|
-
AccessLocation: output.AccessLocation != null ? de_GeneralName(output.AccessLocation, context) : undefined,
|
|
1830
|
-
AccessMethod: output.AccessMethod != null ? de_AccessMethod(output.AccessMethod, context) : undefined,
|
|
1831
|
-
};
|
|
1832
|
-
};
|
|
1833
|
-
const de_AccessDescriptionList = (output, context) => {
|
|
1834
|
-
const retVal = (output || [])
|
|
1835
|
-
.filter((e) => e != null)
|
|
1836
|
-
.map((entry) => {
|
|
1837
|
-
if (entry === null) {
|
|
1838
|
-
return null;
|
|
1839
|
-
}
|
|
1840
|
-
return de_AccessDescription(entry, context);
|
|
1841
|
-
});
|
|
1842
|
-
return retVal;
|
|
1843
|
-
};
|
|
1844
|
-
const de_AccessMethod = (output, context) => {
|
|
1845
|
-
return {
|
|
1846
|
-
AccessMethodType: (0, smithy_client_1.expectString)(output.AccessMethodType),
|
|
1847
|
-
CustomObjectIdentifier: (0, smithy_client_1.expectString)(output.CustomObjectIdentifier),
|
|
1848
|
-
};
|
|
1849
|
-
};
|
|
1850
|
-
const de_ActionList = (output, context) => {
|
|
1851
|
-
const retVal = (output || [])
|
|
1852
|
-
.filter((e) => e != null)
|
|
1853
|
-
.map((entry) => {
|
|
1854
|
-
if (entry === null) {
|
|
1855
|
-
return null;
|
|
1856
|
-
}
|
|
1857
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1334
|
+
const se_IssueCertificateRequest = (input, context) => {
|
|
1335
|
+
return (0, smithy_client_1.take)(input, {
|
|
1336
|
+
ApiPassthrough: smithy_client_1._json,
|
|
1337
|
+
CertificateAuthorityArn: [],
|
|
1338
|
+
Csr: context.base64Encoder,
|
|
1339
|
+
IdempotencyToken: [],
|
|
1340
|
+
SigningAlgorithm: [],
|
|
1341
|
+
TemplateArn: [],
|
|
1342
|
+
Validity: smithy_client_1._json,
|
|
1343
|
+
ValidityNotBefore: smithy_client_1._json,
|
|
1858
1344
|
});
|
|
1859
|
-
return retVal;
|
|
1860
|
-
};
|
|
1861
|
-
const de_ASN1Subject = (output, context) => {
|
|
1862
|
-
return {
|
|
1863
|
-
CommonName: (0, smithy_client_1.expectString)(output.CommonName),
|
|
1864
|
-
Country: (0, smithy_client_1.expectString)(output.Country),
|
|
1865
|
-
CustomAttributes: output.CustomAttributes != null ? de_CustomAttributeList(output.CustomAttributes, context) : undefined,
|
|
1866
|
-
DistinguishedNameQualifier: (0, smithy_client_1.expectString)(output.DistinguishedNameQualifier),
|
|
1867
|
-
GenerationQualifier: (0, smithy_client_1.expectString)(output.GenerationQualifier),
|
|
1868
|
-
GivenName: (0, smithy_client_1.expectString)(output.GivenName),
|
|
1869
|
-
Initials: (0, smithy_client_1.expectString)(output.Initials),
|
|
1870
|
-
Locality: (0, smithy_client_1.expectString)(output.Locality),
|
|
1871
|
-
Organization: (0, smithy_client_1.expectString)(output.Organization),
|
|
1872
|
-
OrganizationalUnit: (0, smithy_client_1.expectString)(output.OrganizationalUnit),
|
|
1873
|
-
Pseudonym: (0, smithy_client_1.expectString)(output.Pseudonym),
|
|
1874
|
-
SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
|
|
1875
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1876
|
-
Surname: (0, smithy_client_1.expectString)(output.Surname),
|
|
1877
|
-
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
1878
|
-
};
|
|
1879
1345
|
};
|
|
1880
1346
|
const de_CertificateAuthorities = (output, context) => {
|
|
1881
1347
|
const retVal = (output || [])
|
|
1882
1348
|
.filter((e) => e != null)
|
|
1883
1349
|
.map((entry) => {
|
|
1884
|
-
if (entry === null) {
|
|
1885
|
-
return null;
|
|
1886
|
-
}
|
|
1887
1350
|
return de_CertificateAuthority(entry, context);
|
|
1888
1351
|
});
|
|
1889
1352
|
return retVal;
|
|
1890
1353
|
};
|
|
1891
1354
|
const de_CertificateAuthority = (output, context) => {
|
|
1892
|
-
return {
|
|
1893
|
-
Arn:
|
|
1894
|
-
CertificateAuthorityConfiguration:
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
: undefined,
|
|
1909
|
-
RevocationConfiguration: output.RevocationConfiguration != null
|
|
1910
|
-
? de_RevocationConfiguration(output.RevocationConfiguration, context)
|
|
1911
|
-
: undefined,
|
|
1912
|
-
Serial: (0, smithy_client_1.expectString)(output.Serial),
|
|
1913
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1914
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1915
|
-
UsageMode: (0, smithy_client_1.expectString)(output.UsageMode),
|
|
1916
|
-
};
|
|
1917
|
-
};
|
|
1918
|
-
const de_CertificateAuthorityConfiguration = (output, context) => {
|
|
1919
|
-
return {
|
|
1920
|
-
CsrExtensions: output.CsrExtensions != null ? de_CsrExtensions(output.CsrExtensions, context) : undefined,
|
|
1921
|
-
KeyAlgorithm: (0, smithy_client_1.expectString)(output.KeyAlgorithm),
|
|
1922
|
-
SigningAlgorithm: (0, smithy_client_1.expectString)(output.SigningAlgorithm),
|
|
1923
|
-
Subject: output.Subject != null ? de_ASN1Subject(output.Subject, context) : undefined,
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
const de_CertificateMismatchException = (output, context) => {
|
|
1927
|
-
return {
|
|
1928
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1929
|
-
};
|
|
1930
|
-
};
|
|
1931
|
-
const de_ConcurrentModificationException = (output, context) => {
|
|
1932
|
-
return {
|
|
1933
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1934
|
-
};
|
|
1935
|
-
};
|
|
1936
|
-
const de_CreateCertificateAuthorityAuditReportResponse = (output, context) => {
|
|
1937
|
-
return {
|
|
1938
|
-
AuditReportId: (0, smithy_client_1.expectString)(output.AuditReportId),
|
|
1939
|
-
S3Key: (0, smithy_client_1.expectString)(output.S3Key),
|
|
1940
|
-
};
|
|
1941
|
-
};
|
|
1942
|
-
const de_CreateCertificateAuthorityResponse = (output, context) => {
|
|
1943
|
-
return {
|
|
1944
|
-
CertificateAuthorityArn: (0, smithy_client_1.expectString)(output.CertificateAuthorityArn),
|
|
1945
|
-
};
|
|
1946
|
-
};
|
|
1947
|
-
const de_CrlConfiguration = (output, context) => {
|
|
1948
|
-
return {
|
|
1949
|
-
CustomCname: (0, smithy_client_1.expectString)(output.CustomCname),
|
|
1950
|
-
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
1951
|
-
ExpirationInDays: (0, smithy_client_1.expectInt32)(output.ExpirationInDays),
|
|
1952
|
-
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
1953
|
-
S3ObjectAcl: (0, smithy_client_1.expectString)(output.S3ObjectAcl),
|
|
1954
|
-
};
|
|
1955
|
-
};
|
|
1956
|
-
const de_CsrExtensions = (output, context) => {
|
|
1957
|
-
return {
|
|
1958
|
-
KeyUsage: output.KeyUsage != null ? de_KeyUsage(output.KeyUsage, context) : undefined,
|
|
1959
|
-
SubjectInformationAccess: output.SubjectInformationAccess != null
|
|
1960
|
-
? de_AccessDescriptionList(output.SubjectInformationAccess, context)
|
|
1961
|
-
: undefined,
|
|
1962
|
-
};
|
|
1963
|
-
};
|
|
1964
|
-
const de_CustomAttribute = (output, context) => {
|
|
1965
|
-
return {
|
|
1966
|
-
ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
|
|
1967
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
const de_CustomAttributeList = (output, context) => {
|
|
1971
|
-
const retVal = (output || [])
|
|
1972
|
-
.filter((e) => e != null)
|
|
1973
|
-
.map((entry) => {
|
|
1974
|
-
if (entry === null) {
|
|
1975
|
-
return null;
|
|
1976
|
-
}
|
|
1977
|
-
return de_CustomAttribute(entry, context);
|
|
1355
|
+
return (0, smithy_client_1.take)(output, {
|
|
1356
|
+
Arn: smithy_client_1.expectString,
|
|
1357
|
+
CertificateAuthorityConfiguration: smithy_client_1._json,
|
|
1358
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1359
|
+
FailureReason: smithy_client_1.expectString,
|
|
1360
|
+
KeyStorageSecurityStandard: smithy_client_1.expectString,
|
|
1361
|
+
LastStateChangeAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1362
|
+
NotAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1363
|
+
NotBefore: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1364
|
+
OwnerAccount: smithy_client_1.expectString,
|
|
1365
|
+
RestorableUntil: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1366
|
+
RevocationConfiguration: smithy_client_1._json,
|
|
1367
|
+
Serial: smithy_client_1.expectString,
|
|
1368
|
+
Status: smithy_client_1.expectString,
|
|
1369
|
+
Type: smithy_client_1.expectString,
|
|
1370
|
+
UsageMode: smithy_client_1.expectString,
|
|
1978
1371
|
});
|
|
1979
|
-
return retVal;
|
|
1980
1372
|
};
|
|
1981
1373
|
const de_DescribeCertificateAuthorityAuditReportResponse = (output, context) => {
|
|
1982
|
-
return {
|
|
1983
|
-
AuditReportStatus:
|
|
1984
|
-
CreatedAt:
|
|
1985
|
-
S3BucketName:
|
|
1986
|
-
S3Key:
|
|
1987
|
-
};
|
|
1374
|
+
return (0, smithy_client_1.take)(output, {
|
|
1375
|
+
AuditReportStatus: smithy_client_1.expectString,
|
|
1376
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1377
|
+
S3BucketName: smithy_client_1.expectString,
|
|
1378
|
+
S3Key: smithy_client_1.expectString,
|
|
1379
|
+
});
|
|
1988
1380
|
};
|
|
1989
1381
|
const de_DescribeCertificateAuthorityResponse = (output, context) => {
|
|
1990
|
-
return {
|
|
1991
|
-
CertificateAuthority:
|
|
1992
|
-
};
|
|
1993
|
-
};
|
|
1994
|
-
const de_EdiPartyName = (output, context) => {
|
|
1995
|
-
return {
|
|
1996
|
-
NameAssigner: (0, smithy_client_1.expectString)(output.NameAssigner),
|
|
1997
|
-
PartyName: (0, smithy_client_1.expectString)(output.PartyName),
|
|
1998
|
-
};
|
|
1999
|
-
};
|
|
2000
|
-
const de_GeneralName = (output, context) => {
|
|
2001
|
-
return {
|
|
2002
|
-
DirectoryName: output.DirectoryName != null ? de_ASN1Subject(output.DirectoryName, context) : undefined,
|
|
2003
|
-
DnsName: (0, smithy_client_1.expectString)(output.DnsName),
|
|
2004
|
-
EdiPartyName: output.EdiPartyName != null ? de_EdiPartyName(output.EdiPartyName, context) : undefined,
|
|
2005
|
-
IpAddress: (0, smithy_client_1.expectString)(output.IpAddress),
|
|
2006
|
-
OtherName: output.OtherName != null ? de_OtherName(output.OtherName, context) : undefined,
|
|
2007
|
-
RegisteredId: (0, smithy_client_1.expectString)(output.RegisteredId),
|
|
2008
|
-
Rfc822Name: (0, smithy_client_1.expectString)(output.Rfc822Name),
|
|
2009
|
-
UniformResourceIdentifier: (0, smithy_client_1.expectString)(output.UniformResourceIdentifier),
|
|
2010
|
-
};
|
|
2011
|
-
};
|
|
2012
|
-
const de_GetCertificateAuthorityCertificateResponse = (output, context) => {
|
|
2013
|
-
return {
|
|
2014
|
-
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
2015
|
-
CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
|
|
2016
|
-
};
|
|
2017
|
-
};
|
|
2018
|
-
const de_GetCertificateAuthorityCsrResponse = (output, context) => {
|
|
2019
|
-
return {
|
|
2020
|
-
Csr: (0, smithy_client_1.expectString)(output.Csr),
|
|
2021
|
-
};
|
|
2022
|
-
};
|
|
2023
|
-
const de_GetCertificateResponse = (output, context) => {
|
|
2024
|
-
return {
|
|
2025
|
-
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
2026
|
-
CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
|
|
2027
|
-
};
|
|
2028
|
-
};
|
|
2029
|
-
const de_GetPolicyResponse = (output, context) => {
|
|
2030
|
-
return {
|
|
2031
|
-
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
2032
|
-
};
|
|
2033
|
-
};
|
|
2034
|
-
const de_InvalidArgsException = (output, context) => {
|
|
2035
|
-
return {
|
|
2036
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2037
|
-
};
|
|
2038
|
-
};
|
|
2039
|
-
const de_InvalidArnException = (output, context) => {
|
|
2040
|
-
return {
|
|
2041
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2042
|
-
};
|
|
2043
|
-
};
|
|
2044
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
2045
|
-
return {
|
|
2046
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2047
|
-
};
|
|
2048
|
-
};
|
|
2049
|
-
const de_InvalidPolicyException = (output, context) => {
|
|
2050
|
-
return {
|
|
2051
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2052
|
-
};
|
|
2053
|
-
};
|
|
2054
|
-
const de_InvalidRequestException = (output, context) => {
|
|
2055
|
-
return {
|
|
2056
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2057
|
-
};
|
|
2058
|
-
};
|
|
2059
|
-
const de_InvalidStateException = (output, context) => {
|
|
2060
|
-
return {
|
|
2061
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2062
|
-
};
|
|
2063
|
-
};
|
|
2064
|
-
const de_InvalidTagException = (output, context) => {
|
|
2065
|
-
return {
|
|
2066
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2067
|
-
};
|
|
2068
|
-
};
|
|
2069
|
-
const de_IssueCertificateResponse = (output, context) => {
|
|
2070
|
-
return {
|
|
2071
|
-
CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
|
|
2072
|
-
};
|
|
2073
|
-
};
|
|
2074
|
-
const de_KeyUsage = (output, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
CRLSign: (0, smithy_client_1.expectBoolean)(output.CRLSign),
|
|
2077
|
-
DataEncipherment: (0, smithy_client_1.expectBoolean)(output.DataEncipherment),
|
|
2078
|
-
DecipherOnly: (0, smithy_client_1.expectBoolean)(output.DecipherOnly),
|
|
2079
|
-
DigitalSignature: (0, smithy_client_1.expectBoolean)(output.DigitalSignature),
|
|
2080
|
-
EncipherOnly: (0, smithy_client_1.expectBoolean)(output.EncipherOnly),
|
|
2081
|
-
KeyAgreement: (0, smithy_client_1.expectBoolean)(output.KeyAgreement),
|
|
2082
|
-
KeyCertSign: (0, smithy_client_1.expectBoolean)(output.KeyCertSign),
|
|
2083
|
-
KeyEncipherment: (0, smithy_client_1.expectBoolean)(output.KeyEncipherment),
|
|
2084
|
-
NonRepudiation: (0, smithy_client_1.expectBoolean)(output.NonRepudiation),
|
|
2085
|
-
};
|
|
2086
|
-
};
|
|
2087
|
-
const de_LimitExceededException = (output, context) => {
|
|
2088
|
-
return {
|
|
2089
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2090
|
-
};
|
|
1382
|
+
return (0, smithy_client_1.take)(output, {
|
|
1383
|
+
CertificateAuthority: (_) => de_CertificateAuthority(_, context),
|
|
1384
|
+
});
|
|
2091
1385
|
};
|
|
2092
1386
|
const de_ListCertificateAuthoritiesResponse = (output, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
CertificateAuthorities:
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2098
|
-
};
|
|
1387
|
+
return (0, smithy_client_1.take)(output, {
|
|
1388
|
+
CertificateAuthorities: (_) => de_CertificateAuthorities(_, context),
|
|
1389
|
+
NextToken: smithy_client_1.expectString,
|
|
1390
|
+
});
|
|
2099
1391
|
};
|
|
2100
1392
|
const de_ListPermissionsResponse = (output, context) => {
|
|
2101
|
-
return {
|
|
2102
|
-
NextToken:
|
|
2103
|
-
Permissions:
|
|
2104
|
-
};
|
|
2105
|
-
};
|
|
2106
|
-
const de_ListTagsResponse = (output, context) => {
|
|
2107
|
-
return {
|
|
2108
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2109
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2110
|
-
};
|
|
2111
|
-
};
|
|
2112
|
-
const de_LockoutPreventedException = (output, context) => {
|
|
2113
|
-
return {
|
|
2114
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2115
|
-
};
|
|
2116
|
-
};
|
|
2117
|
-
const de_MalformedCertificateException = (output, context) => {
|
|
2118
|
-
return {
|
|
2119
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2120
|
-
};
|
|
2121
|
-
};
|
|
2122
|
-
const de_MalformedCSRException = (output, context) => {
|
|
2123
|
-
return {
|
|
2124
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2125
|
-
};
|
|
2126
|
-
};
|
|
2127
|
-
const de_OcspConfiguration = (output, context) => {
|
|
2128
|
-
return {
|
|
2129
|
-
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
2130
|
-
OcspCustomCname: (0, smithy_client_1.expectString)(output.OcspCustomCname),
|
|
2131
|
-
};
|
|
2132
|
-
};
|
|
2133
|
-
const de_OtherName = (output, context) => {
|
|
2134
|
-
return {
|
|
2135
|
-
TypeId: (0, smithy_client_1.expectString)(output.TypeId),
|
|
2136
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2137
|
-
};
|
|
1393
|
+
return (0, smithy_client_1.take)(output, {
|
|
1394
|
+
NextToken: smithy_client_1.expectString,
|
|
1395
|
+
Permissions: (_) => de_PermissionList(_, context),
|
|
1396
|
+
});
|
|
2138
1397
|
};
|
|
2139
1398
|
const de_Permission = (output, context) => {
|
|
2140
|
-
return {
|
|
2141
|
-
Actions:
|
|
2142
|
-
CertificateAuthorityArn:
|
|
2143
|
-
CreatedAt:
|
|
2144
|
-
Policy:
|
|
2145
|
-
Principal:
|
|
2146
|
-
SourceAccount:
|
|
2147
|
-
};
|
|
2148
|
-
};
|
|
2149
|
-
const de_PermissionAlreadyExistsException = (output, context) => {
|
|
2150
|
-
return {
|
|
2151
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2152
|
-
};
|
|
1399
|
+
return (0, smithy_client_1.take)(output, {
|
|
1400
|
+
Actions: smithy_client_1._json,
|
|
1401
|
+
CertificateAuthorityArn: smithy_client_1.expectString,
|
|
1402
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1403
|
+
Policy: smithy_client_1.expectString,
|
|
1404
|
+
Principal: smithy_client_1.expectString,
|
|
1405
|
+
SourceAccount: smithy_client_1.expectString,
|
|
1406
|
+
});
|
|
2153
1407
|
};
|
|
2154
1408
|
const de_PermissionList = (output, context) => {
|
|
2155
1409
|
const retVal = (output || [])
|
|
2156
1410
|
.filter((e) => e != null)
|
|
2157
1411
|
.map((entry) => {
|
|
2158
|
-
if (entry === null) {
|
|
2159
|
-
return null;
|
|
2160
|
-
}
|
|
2161
1412
|
return de_Permission(entry, context);
|
|
2162
1413
|
});
|
|
2163
1414
|
return retVal;
|
|
2164
1415
|
};
|
|
2165
|
-
const de_RequestAlreadyProcessedException = (output, context) => {
|
|
2166
|
-
return {
|
|
2167
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2168
|
-
};
|
|
2169
|
-
};
|
|
2170
|
-
const de_RequestFailedException = (output, context) => {
|
|
2171
|
-
return {
|
|
2172
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2173
|
-
};
|
|
2174
|
-
};
|
|
2175
|
-
const de_RequestInProgressException = (output, context) => {
|
|
2176
|
-
return {
|
|
2177
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2178
|
-
};
|
|
2179
|
-
};
|
|
2180
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2181
|
-
return {
|
|
2182
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2183
|
-
};
|
|
2184
|
-
};
|
|
2185
|
-
const de_RevocationConfiguration = (output, context) => {
|
|
2186
|
-
return {
|
|
2187
|
-
CrlConfiguration: output.CrlConfiguration != null ? de_CrlConfiguration(output.CrlConfiguration, context) : undefined,
|
|
2188
|
-
OcspConfiguration: output.OcspConfiguration != null ? de_OcspConfiguration(output.OcspConfiguration, context) : undefined,
|
|
2189
|
-
};
|
|
2190
|
-
};
|
|
2191
|
-
const de_Tag = (output, context) => {
|
|
2192
|
-
return {
|
|
2193
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2194
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2195
|
-
};
|
|
2196
|
-
};
|
|
2197
|
-
const de_TagList = (output, context) => {
|
|
2198
|
-
const retVal = (output || [])
|
|
2199
|
-
.filter((e) => e != null)
|
|
2200
|
-
.map((entry) => {
|
|
2201
|
-
if (entry === null) {
|
|
2202
|
-
return null;
|
|
2203
|
-
}
|
|
2204
|
-
return de_Tag(entry, context);
|
|
2205
|
-
});
|
|
2206
|
-
return retVal;
|
|
2207
|
-
};
|
|
2208
|
-
const de_TooManyTagsException = (output, context) => {
|
|
2209
|
-
return {
|
|
2210
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2211
|
-
};
|
|
2212
|
-
};
|
|
2213
1416
|
const deserializeMetadata = (output) => ({
|
|
2214
1417
|
httpStatusCode: output.statusCode,
|
|
2215
1418
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2223,6 +1426,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2223
1426
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2224
1427
|
};
|
|
2225
1428
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1429
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ACMPCAServiceException_1.ACMPCAServiceException);
|
|
2226
1430
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2227
1431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2228
1432
|
const contents = {
|
|
@@ -2241,6 +1445,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2241
1445
|
}
|
|
2242
1446
|
return new protocol_http_1.HttpRequest(contents);
|
|
2243
1447
|
};
|
|
1448
|
+
function sharedHeaders(operation) {
|
|
1449
|
+
return {
|
|
1450
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1451
|
+
"x-amz-target": `ACMPrivateCA.${operation}`,
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
2244
1454
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2245
1455
|
if (encoded.length) {
|
|
2246
1456
|
return JSON.parse(encoded);
|