@aws-sdk/client-acm-pca 3.306.0 → 3.310.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/commands/CreateCertificateAuthorityAuditReportCommand.js +2 -2
- package/dist-cjs/commands/CreateCertificateAuthorityCommand.js +2 -2
- package/dist-cjs/commands/CreatePermissionCommand.js +2 -2
- package/dist-cjs/commands/DeleteCertificateAuthorityCommand.js +2 -2
- package/dist-cjs/commands/DeletePermissionCommand.js +2 -2
- package/dist-cjs/commands/DeletePolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeCertificateAuthorityAuditReportCommand.js +2 -2
- package/dist-cjs/commands/DescribeCertificateAuthorityCommand.js +2 -2
- package/dist-cjs/commands/GetCertificateAuthorityCertificateCommand.js +2 -2
- package/dist-cjs/commands/GetCertificateAuthorityCsrCommand.js +2 -2
- package/dist-cjs/commands/GetCertificateCommand.js +2 -2
- package/dist-cjs/commands/GetPolicyCommand.js +2 -2
- package/dist-cjs/commands/ImportCertificateAuthorityCertificateCommand.js +2 -2
- package/dist-cjs/commands/IssueCertificateCommand.js +2 -2
- package/dist-cjs/commands/ListCertificateAuthoritiesCommand.js +2 -2
- package/dist-cjs/commands/ListPermissionsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsCommand.js +2 -2
- package/dist-cjs/commands/PutPolicyCommand.js +2 -2
- package/dist-cjs/commands/RestoreCertificateAuthorityCommand.js +2 -2
- package/dist-cjs/commands/RevokeCertificateCommand.js +2 -2
- package/dist-cjs/commands/TagCertificateAuthorityCommand.js +2 -2
- package/dist-cjs/commands/UntagCertificateAuthorityCommand.js +2 -2
- package/dist-cjs/commands/UpdateCertificateAuthorityCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +492 -512
- package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +3 -3
- package/dist-es/commands/CreateCertificateAuthorityCommand.js +3 -3
- package/dist-es/commands/CreatePermissionCommand.js +3 -3
- package/dist-es/commands/DeleteCertificateAuthorityCommand.js +3 -3
- package/dist-es/commands/DeletePermissionCommand.js +3 -3
- package/dist-es/commands/DeletePolicyCommand.js +3 -3
- package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js +3 -3
- package/dist-es/commands/DescribeCertificateAuthorityCommand.js +3 -3
- package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js +3 -3
- package/dist-es/commands/GetCertificateAuthorityCsrCommand.js +3 -3
- package/dist-es/commands/GetCertificateCommand.js +3 -3
- package/dist-es/commands/GetPolicyCommand.js +3 -3
- package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +3 -3
- package/dist-es/commands/IssueCertificateCommand.js +3 -3
- package/dist-es/commands/ListCertificateAuthoritiesCommand.js +3 -3
- package/dist-es/commands/ListPermissionsCommand.js +3 -3
- package/dist-es/commands/ListTagsCommand.js +3 -3
- package/dist-es/commands/PutPolicyCommand.js +3 -3
- package/dist-es/commands/RestoreCertificateAuthorityCommand.js +3 -3
- package/dist-es/commands/RevokeCertificateCommand.js +3 -3
- package/dist-es/commands/TagCertificateAuthorityCommand.js +3 -3
- package/dist-es/commands/UntagCertificateAuthorityCommand.js +3 -3
- package/dist-es/commands/UpdateCertificateAuthorityCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +445 -465
- package/dist-types/protocols/Aws_json1_1.d.ts +184 -46
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +46 -46
- package/package.json +36 -36
|
@@ -1,255 +1,255 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateCertificateAuthorityCommand = exports.de_UntagCertificateAuthorityCommand = exports.de_TagCertificateAuthorityCommand = exports.de_RevokeCertificateCommand = exports.de_RestoreCertificateAuthorityCommand = exports.de_PutPolicyCommand = exports.de_ListTagsCommand = exports.de_ListPermissionsCommand = exports.de_ListCertificateAuthoritiesCommand = exports.de_IssueCertificateCommand = exports.de_ImportCertificateAuthorityCertificateCommand = exports.de_GetPolicyCommand = exports.de_GetCertificateAuthorityCsrCommand = exports.de_GetCertificateAuthorityCertificateCommand = exports.de_GetCertificateCommand = exports.de_DescribeCertificateAuthorityAuditReportCommand = exports.de_DescribeCertificateAuthorityCommand = exports.de_DeletePolicyCommand = exports.de_DeletePermissionCommand = exports.de_DeleteCertificateAuthorityCommand = exports.de_CreatePermissionCommand = exports.de_CreateCertificateAuthorityAuditReportCommand = exports.de_CreateCertificateAuthorityCommand = exports.se_UpdateCertificateAuthorityCommand = exports.se_UntagCertificateAuthorityCommand = exports.se_TagCertificateAuthorityCommand = exports.se_RevokeCertificateCommand = exports.se_RestoreCertificateAuthorityCommand = exports.se_PutPolicyCommand = exports.se_ListTagsCommand = exports.se_ListPermissionsCommand = exports.se_ListCertificateAuthoritiesCommand = exports.se_IssueCertificateCommand = exports.se_ImportCertificateAuthorityCertificateCommand = exports.se_GetPolicyCommand = exports.se_GetCertificateAuthorityCsrCommand = exports.se_GetCertificateAuthorityCertificateCommand = exports.se_GetCertificateCommand = exports.se_DescribeCertificateAuthorityAuditReportCommand = exports.se_DescribeCertificateAuthorityCommand = exports.se_DeletePolicyCommand = exports.se_DeletePermissionCommand = exports.se_DeleteCertificateAuthorityCommand = exports.se_CreatePermissionCommand = exports.se_CreateCertificateAuthorityAuditReportCommand = exports.se_CreateCertificateAuthorityCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
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
|
-
const
|
|
8
|
+
const se_CreateCertificateAuthorityCommand = async (input, context) => {
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/x-amz-json-1.1",
|
|
11
11
|
"x-amz-target": "ACMPrivateCA.CreateCertificateAuthority",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_CreateCertificateAuthorityRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.se_CreateCertificateAuthorityCommand = se_CreateCertificateAuthorityCommand;
|
|
18
|
+
const se_CreateCertificateAuthorityAuditReportCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-amz-json-1.1",
|
|
21
21
|
"x-amz-target": "ACMPrivateCA.CreateCertificateAuthorityAuditReport",
|
|
22
22
|
};
|
|
23
23
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
24
|
+
body = JSON.stringify(se_CreateCertificateAuthorityAuditReportRequest(input, context));
|
|
25
25
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_CreateCertificateAuthorityAuditReportCommand = se_CreateCertificateAuthorityAuditReportCommand;
|
|
28
|
+
const se_CreatePermissionCommand = async (input, context) => {
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/x-amz-json-1.1",
|
|
31
31
|
"x-amz-target": "ACMPrivateCA.CreatePermission",
|
|
32
32
|
};
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify(se_CreatePermissionRequest(input, context));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.se_CreatePermissionCommand = se_CreatePermissionCommand;
|
|
38
|
+
const se_DeleteCertificateAuthorityCommand = async (input, context) => {
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/x-amz-json-1.1",
|
|
41
41
|
"x-amz-target": "ACMPrivateCA.DeleteCertificateAuthority",
|
|
42
42
|
};
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(se_DeleteCertificateAuthorityRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_DeleteCertificateAuthorityCommand = se_DeleteCertificateAuthorityCommand;
|
|
48
|
+
const se_DeletePermissionCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-amz-json-1.1",
|
|
51
51
|
"x-amz-target": "ACMPrivateCA.DeletePermission",
|
|
52
52
|
};
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify(se_DeletePermissionRequest(input, context));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_DeletePermissionCommand = se_DeletePermissionCommand;
|
|
58
|
+
const se_DeletePolicyCommand = async (input, context) => {
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/x-amz-json-1.1",
|
|
61
61
|
"x-amz-target": "ACMPrivateCA.DeletePolicy",
|
|
62
62
|
};
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(se_DeletePolicyRequest(input, context));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
67
|
+
exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
|
|
68
|
+
const se_DescribeCertificateAuthorityCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "ACMPrivateCA.DescribeCertificateAuthority",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DescribeCertificateAuthorityRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_DescribeCertificateAuthorityCommand = se_DescribeCertificateAuthorityCommand;
|
|
78
|
+
const se_DescribeCertificateAuthorityAuditReportCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "ACMPrivateCA.DescribeCertificateAuthorityAuditReport",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_DescribeCertificateAuthorityAuditReportRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_DescribeCertificateAuthorityAuditReportCommand = se_DescribeCertificateAuthorityAuditReportCommand;
|
|
88
|
+
const se_GetCertificateCommand = async (input, context) => {
|
|
89
89
|
const headers = {
|
|
90
90
|
"content-type": "application/x-amz-json-1.1",
|
|
91
91
|
"x-amz-target": "ACMPrivateCA.GetCertificate",
|
|
92
92
|
};
|
|
93
93
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify(se_GetCertificateRequest(input, context));
|
|
95
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
97
|
+
exports.se_GetCertificateCommand = se_GetCertificateCommand;
|
|
98
|
+
const se_GetCertificateAuthorityCertificateCommand = async (input, context) => {
|
|
99
99
|
const headers = {
|
|
100
100
|
"content-type": "application/x-amz-json-1.1",
|
|
101
101
|
"x-amz-target": "ACMPrivateCA.GetCertificateAuthorityCertificate",
|
|
102
102
|
};
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(se_GetCertificateAuthorityCertificateRequest(input, context));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.se_GetCertificateAuthorityCertificateCommand = se_GetCertificateAuthorityCertificateCommand;
|
|
108
|
+
const se_GetCertificateAuthorityCsrCommand = async (input, context) => {
|
|
109
109
|
const headers = {
|
|
110
110
|
"content-type": "application/x-amz-json-1.1",
|
|
111
111
|
"x-amz-target": "ACMPrivateCA.GetCertificateAuthorityCsr",
|
|
112
112
|
};
|
|
113
113
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
114
|
+
body = JSON.stringify(se_GetCertificateAuthorityCsrRequest(input, context));
|
|
115
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_GetCertificateAuthorityCsrCommand = se_GetCertificateAuthorityCsrCommand;
|
|
118
|
+
const se_GetPolicyCommand = async (input, context) => {
|
|
119
119
|
const headers = {
|
|
120
120
|
"content-type": "application/x-amz-json-1.1",
|
|
121
121
|
"x-amz-target": "ACMPrivateCA.GetPolicy",
|
|
122
122
|
};
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify(se_GetPolicyRequest(input, context));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
127
|
+
exports.se_GetPolicyCommand = se_GetPolicyCommand;
|
|
128
|
+
const se_ImportCertificateAuthorityCertificateCommand = async (input, context) => {
|
|
129
129
|
const headers = {
|
|
130
130
|
"content-type": "application/x-amz-json-1.1",
|
|
131
131
|
"x-amz-target": "ACMPrivateCA.ImportCertificateAuthorityCertificate",
|
|
132
132
|
};
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(se_ImportCertificateAuthorityCertificateRequest(input, context));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
137
|
+
exports.se_ImportCertificateAuthorityCertificateCommand = se_ImportCertificateAuthorityCertificateCommand;
|
|
138
|
+
const se_IssueCertificateCommand = async (input, context) => {
|
|
139
139
|
const headers = {
|
|
140
140
|
"content-type": "application/x-amz-json-1.1",
|
|
141
141
|
"x-amz-target": "ACMPrivateCA.IssueCertificate",
|
|
142
142
|
};
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify(se_IssueCertificateRequest(input, context));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
|
-
exports.
|
|
148
|
-
const
|
|
147
|
+
exports.se_IssueCertificateCommand = se_IssueCertificateCommand;
|
|
148
|
+
const se_ListCertificateAuthoritiesCommand = async (input, context) => {
|
|
149
149
|
const headers = {
|
|
150
150
|
"content-type": "application/x-amz-json-1.1",
|
|
151
151
|
"x-amz-target": "ACMPrivateCA.ListCertificateAuthorities",
|
|
152
152
|
};
|
|
153
153
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
154
|
+
body = JSON.stringify(se_ListCertificateAuthoritiesRequest(input, context));
|
|
155
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
156
|
};
|
|
157
|
-
exports.
|
|
158
|
-
const
|
|
157
|
+
exports.se_ListCertificateAuthoritiesCommand = se_ListCertificateAuthoritiesCommand;
|
|
158
|
+
const se_ListPermissionsCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.1",
|
|
161
161
|
"x-amz-target": "ACMPrivateCA.ListPermissions",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_ListPermissionsRequest(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
exports.
|
|
168
|
-
const
|
|
167
|
+
exports.se_ListPermissionsCommand = se_ListPermissionsCommand;
|
|
168
|
+
const se_ListTagsCommand = async (input, context) => {
|
|
169
169
|
const headers = {
|
|
170
170
|
"content-type": "application/x-amz-json-1.1",
|
|
171
171
|
"x-amz-target": "ACMPrivateCA.ListTags",
|
|
172
172
|
};
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify(se_ListTagsRequest(input, context));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
-
exports.
|
|
178
|
-
const
|
|
177
|
+
exports.se_ListTagsCommand = se_ListTagsCommand;
|
|
178
|
+
const se_PutPolicyCommand = async (input, context) => {
|
|
179
179
|
const headers = {
|
|
180
180
|
"content-type": "application/x-amz-json-1.1",
|
|
181
181
|
"x-amz-target": "ACMPrivateCA.PutPolicy",
|
|
182
182
|
};
|
|
183
183
|
let body;
|
|
184
|
-
body = JSON.stringify(
|
|
184
|
+
body = JSON.stringify(se_PutPolicyRequest(input, context));
|
|
185
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
186
|
};
|
|
187
|
-
exports.
|
|
188
|
-
const
|
|
187
|
+
exports.se_PutPolicyCommand = se_PutPolicyCommand;
|
|
188
|
+
const se_RestoreCertificateAuthorityCommand = async (input, context) => {
|
|
189
189
|
const headers = {
|
|
190
190
|
"content-type": "application/x-amz-json-1.1",
|
|
191
191
|
"x-amz-target": "ACMPrivateCA.RestoreCertificateAuthority",
|
|
192
192
|
};
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(se_RestoreCertificateAuthorityRequest(input, context));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
|
-
exports.
|
|
198
|
-
const
|
|
197
|
+
exports.se_RestoreCertificateAuthorityCommand = se_RestoreCertificateAuthorityCommand;
|
|
198
|
+
const se_RevokeCertificateCommand = async (input, context) => {
|
|
199
199
|
const headers = {
|
|
200
200
|
"content-type": "application/x-amz-json-1.1",
|
|
201
201
|
"x-amz-target": "ACMPrivateCA.RevokeCertificate",
|
|
202
202
|
};
|
|
203
203
|
let body;
|
|
204
|
-
body = JSON.stringify(
|
|
204
|
+
body = JSON.stringify(se_RevokeCertificateRequest(input, context));
|
|
205
205
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
206
|
};
|
|
207
|
-
exports.
|
|
208
|
-
const
|
|
207
|
+
exports.se_RevokeCertificateCommand = se_RevokeCertificateCommand;
|
|
208
|
+
const se_TagCertificateAuthorityCommand = async (input, context) => {
|
|
209
209
|
const headers = {
|
|
210
210
|
"content-type": "application/x-amz-json-1.1",
|
|
211
211
|
"x-amz-target": "ACMPrivateCA.TagCertificateAuthority",
|
|
212
212
|
};
|
|
213
213
|
let body;
|
|
214
|
-
body = JSON.stringify(
|
|
214
|
+
body = JSON.stringify(se_TagCertificateAuthorityRequest(input, context));
|
|
215
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
216
|
};
|
|
217
|
-
exports.
|
|
218
|
-
const
|
|
217
|
+
exports.se_TagCertificateAuthorityCommand = se_TagCertificateAuthorityCommand;
|
|
218
|
+
const se_UntagCertificateAuthorityCommand = async (input, context) => {
|
|
219
219
|
const headers = {
|
|
220
220
|
"content-type": "application/x-amz-json-1.1",
|
|
221
221
|
"x-amz-target": "ACMPrivateCA.UntagCertificateAuthority",
|
|
222
222
|
};
|
|
223
223
|
let body;
|
|
224
|
-
body = JSON.stringify(
|
|
224
|
+
body = JSON.stringify(se_UntagCertificateAuthorityRequest(input, context));
|
|
225
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
226
|
};
|
|
227
|
-
exports.
|
|
228
|
-
const
|
|
227
|
+
exports.se_UntagCertificateAuthorityCommand = se_UntagCertificateAuthorityCommand;
|
|
228
|
+
const se_UpdateCertificateAuthorityCommand = async (input, context) => {
|
|
229
229
|
const headers = {
|
|
230
230
|
"content-type": "application/x-amz-json-1.1",
|
|
231
231
|
"x-amz-target": "ACMPrivateCA.UpdateCertificateAuthority",
|
|
232
232
|
};
|
|
233
233
|
let body;
|
|
234
|
-
body = JSON.stringify(
|
|
234
|
+
body = JSON.stringify(se_UpdateCertificateAuthorityRequest(input, context));
|
|
235
235
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
236
|
};
|
|
237
|
-
exports.
|
|
238
|
-
const
|
|
237
|
+
exports.se_UpdateCertificateAuthorityCommand = se_UpdateCertificateAuthorityCommand;
|
|
238
|
+
const de_CreateCertificateAuthorityCommand = async (output, context) => {
|
|
239
239
|
if (output.statusCode >= 300) {
|
|
240
|
-
return
|
|
240
|
+
return de_CreateCertificateAuthorityCommandError(output, context);
|
|
241
241
|
}
|
|
242
242
|
const data = await parseBody(output.body, context);
|
|
243
243
|
let contents = {};
|
|
244
|
-
contents =
|
|
244
|
+
contents = de_CreateCertificateAuthorityResponse(data, context);
|
|
245
245
|
const response = {
|
|
246
246
|
$metadata: deserializeMetadata(output),
|
|
247
247
|
...contents,
|
|
248
248
|
};
|
|
249
249
|
return Promise.resolve(response);
|
|
250
250
|
};
|
|
251
|
-
exports.
|
|
252
|
-
const
|
|
251
|
+
exports.de_CreateCertificateAuthorityCommand = de_CreateCertificateAuthorityCommand;
|
|
252
|
+
const de_CreateCertificateAuthorityCommandError = async (output, context) => {
|
|
253
253
|
const parsedOutput = {
|
|
254
254
|
...output,
|
|
255
255
|
body: await parseErrorBody(output.body, context),
|
|
@@ -258,16 +258,16 @@ const deserializeAws_json1_1CreateCertificateAuthorityCommandError = async (outp
|
|
|
258
258
|
switch (errorCode) {
|
|
259
259
|
case "InvalidArgsException":
|
|
260
260
|
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
262
262
|
case "InvalidPolicyException":
|
|
263
263
|
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
264
|
-
throw await
|
|
264
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
265
265
|
case "InvalidTagException":
|
|
266
266
|
case "com.amazonaws.acmpca#InvalidTagException":
|
|
267
|
-
throw await
|
|
267
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
268
268
|
case "LimitExceededException":
|
|
269
269
|
case "com.amazonaws.acmpca#LimitExceededException":
|
|
270
|
-
throw await
|
|
270
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
271
271
|
default:
|
|
272
272
|
const parsedBody = parsedOutput.body;
|
|
273
273
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -278,21 +278,21 @@ const deserializeAws_json1_1CreateCertificateAuthorityCommandError = async (outp
|
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
const
|
|
281
|
+
const de_CreateCertificateAuthorityAuditReportCommand = async (output, context) => {
|
|
282
282
|
if (output.statusCode >= 300) {
|
|
283
|
-
return
|
|
283
|
+
return de_CreateCertificateAuthorityAuditReportCommandError(output, context);
|
|
284
284
|
}
|
|
285
285
|
const data = await parseBody(output.body, context);
|
|
286
286
|
let contents = {};
|
|
287
|
-
contents =
|
|
287
|
+
contents = de_CreateCertificateAuthorityAuditReportResponse(data, context);
|
|
288
288
|
const response = {
|
|
289
289
|
$metadata: deserializeMetadata(output),
|
|
290
290
|
...contents,
|
|
291
291
|
};
|
|
292
292
|
return Promise.resolve(response);
|
|
293
293
|
};
|
|
294
|
-
exports.
|
|
295
|
-
const
|
|
294
|
+
exports.de_CreateCertificateAuthorityAuditReportCommand = de_CreateCertificateAuthorityAuditReportCommand;
|
|
295
|
+
const de_CreateCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
296
296
|
const parsedOutput = {
|
|
297
297
|
...output,
|
|
298
298
|
body: await parseErrorBody(output.body, context),
|
|
@@ -301,22 +301,22 @@ const deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError =
|
|
|
301
301
|
switch (errorCode) {
|
|
302
302
|
case "InvalidArgsException":
|
|
303
303
|
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
304
|
-
throw await
|
|
304
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
305
305
|
case "InvalidArnException":
|
|
306
306
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
307
|
-
throw await
|
|
307
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
308
308
|
case "InvalidStateException":
|
|
309
309
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
310
|
-
throw await
|
|
310
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
311
311
|
case "RequestFailedException":
|
|
312
312
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
313
|
-
throw await
|
|
313
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
314
314
|
case "RequestInProgressException":
|
|
315
315
|
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
316
|
-
throw await
|
|
316
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
317
317
|
case "ResourceNotFoundException":
|
|
318
318
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
319
|
-
throw await
|
|
319
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
320
320
|
default:
|
|
321
321
|
const parsedBody = parsedOutput.body;
|
|
322
322
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -327,9 +327,9 @@ const deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError =
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
const
|
|
330
|
+
const de_CreatePermissionCommand = async (output, context) => {
|
|
331
331
|
if (output.statusCode >= 300) {
|
|
332
|
-
return
|
|
332
|
+
return de_CreatePermissionCommandError(output, context);
|
|
333
333
|
}
|
|
334
334
|
await collectBody(output.body, context);
|
|
335
335
|
const response = {
|
|
@@ -337,8 +337,8 @@ const deserializeAws_json1_1CreatePermissionCommand = async (output, context) =>
|
|
|
337
337
|
};
|
|
338
338
|
return Promise.resolve(response);
|
|
339
339
|
};
|
|
340
|
-
exports.
|
|
341
|
-
const
|
|
340
|
+
exports.de_CreatePermissionCommand = de_CreatePermissionCommand;
|
|
341
|
+
const de_CreatePermissionCommandError = async (output, context) => {
|
|
342
342
|
const parsedOutput = {
|
|
343
343
|
...output,
|
|
344
344
|
body: await parseErrorBody(output.body, context),
|
|
@@ -347,22 +347,22 @@ const deserializeAws_json1_1CreatePermissionCommandError = async (output, contex
|
|
|
347
347
|
switch (errorCode) {
|
|
348
348
|
case "InvalidArnException":
|
|
349
349
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
350
|
-
throw await
|
|
350
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
351
351
|
case "InvalidStateException":
|
|
352
352
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
353
|
-
throw await
|
|
353
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
354
354
|
case "LimitExceededException":
|
|
355
355
|
case "com.amazonaws.acmpca#LimitExceededException":
|
|
356
|
-
throw await
|
|
356
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
357
357
|
case "PermissionAlreadyExistsException":
|
|
358
358
|
case "com.amazonaws.acmpca#PermissionAlreadyExistsException":
|
|
359
|
-
throw await
|
|
359
|
+
throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
360
360
|
case "RequestFailedException":
|
|
361
361
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
362
|
-
throw await
|
|
362
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
363
363
|
case "ResourceNotFoundException":
|
|
364
364
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
365
|
-
throw await
|
|
365
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
366
366
|
default:
|
|
367
367
|
const parsedBody = parsedOutput.body;
|
|
368
368
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -373,9 +373,9 @@ const deserializeAws_json1_1CreatePermissionCommandError = async (output, contex
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
|
-
const
|
|
376
|
+
const de_DeleteCertificateAuthorityCommand = async (output, context) => {
|
|
377
377
|
if (output.statusCode >= 300) {
|
|
378
|
-
return
|
|
378
|
+
return de_DeleteCertificateAuthorityCommandError(output, context);
|
|
379
379
|
}
|
|
380
380
|
await collectBody(output.body, context);
|
|
381
381
|
const response = {
|
|
@@ -383,8 +383,8 @@ const deserializeAws_json1_1DeleteCertificateAuthorityCommand = async (output, c
|
|
|
383
383
|
};
|
|
384
384
|
return Promise.resolve(response);
|
|
385
385
|
};
|
|
386
|
-
exports.
|
|
387
|
-
const
|
|
386
|
+
exports.de_DeleteCertificateAuthorityCommand = de_DeleteCertificateAuthorityCommand;
|
|
387
|
+
const de_DeleteCertificateAuthorityCommandError = async (output, context) => {
|
|
388
388
|
const parsedOutput = {
|
|
389
389
|
...output,
|
|
390
390
|
body: await parseErrorBody(output.body, context),
|
|
@@ -393,16 +393,16 @@ const deserializeAws_json1_1DeleteCertificateAuthorityCommandError = async (outp
|
|
|
393
393
|
switch (errorCode) {
|
|
394
394
|
case "ConcurrentModificationException":
|
|
395
395
|
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
396
|
-
throw await
|
|
396
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
397
397
|
case "InvalidArnException":
|
|
398
398
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
399
|
-
throw await
|
|
399
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
400
400
|
case "InvalidStateException":
|
|
401
401
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
402
|
-
throw await
|
|
402
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
403
403
|
case "ResourceNotFoundException":
|
|
404
404
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
405
|
-
throw await
|
|
405
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
406
406
|
default:
|
|
407
407
|
const parsedBody = parsedOutput.body;
|
|
408
408
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -413,9 +413,9 @@ const deserializeAws_json1_1DeleteCertificateAuthorityCommandError = async (outp
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
|
-
const
|
|
416
|
+
const de_DeletePermissionCommand = async (output, context) => {
|
|
417
417
|
if (output.statusCode >= 300) {
|
|
418
|
-
return
|
|
418
|
+
return de_DeletePermissionCommandError(output, context);
|
|
419
419
|
}
|
|
420
420
|
await collectBody(output.body, context);
|
|
421
421
|
const response = {
|
|
@@ -423,8 +423,8 @@ const deserializeAws_json1_1DeletePermissionCommand = async (output, context) =>
|
|
|
423
423
|
};
|
|
424
424
|
return Promise.resolve(response);
|
|
425
425
|
};
|
|
426
|
-
exports.
|
|
427
|
-
const
|
|
426
|
+
exports.de_DeletePermissionCommand = de_DeletePermissionCommand;
|
|
427
|
+
const de_DeletePermissionCommandError = async (output, context) => {
|
|
428
428
|
const parsedOutput = {
|
|
429
429
|
...output,
|
|
430
430
|
body: await parseErrorBody(output.body, context),
|
|
@@ -433,16 +433,16 @@ const deserializeAws_json1_1DeletePermissionCommandError = async (output, contex
|
|
|
433
433
|
switch (errorCode) {
|
|
434
434
|
case "InvalidArnException":
|
|
435
435
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
436
|
-
throw await
|
|
436
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
437
437
|
case "InvalidStateException":
|
|
438
438
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
439
|
-
throw await
|
|
439
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
440
440
|
case "RequestFailedException":
|
|
441
441
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
442
|
-
throw await
|
|
442
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
443
443
|
case "ResourceNotFoundException":
|
|
444
444
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
445
|
-
throw await
|
|
445
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
446
446
|
default:
|
|
447
447
|
const parsedBody = parsedOutput.body;
|
|
448
448
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -453,9 +453,9 @@ const deserializeAws_json1_1DeletePermissionCommandError = async (output, contex
|
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
|
-
const
|
|
456
|
+
const de_DeletePolicyCommand = async (output, context) => {
|
|
457
457
|
if (output.statusCode >= 300) {
|
|
458
|
-
return
|
|
458
|
+
return de_DeletePolicyCommandError(output, context);
|
|
459
459
|
}
|
|
460
460
|
await collectBody(output.body, context);
|
|
461
461
|
const response = {
|
|
@@ -463,8 +463,8 @@ const deserializeAws_json1_1DeletePolicyCommand = async (output, context) => {
|
|
|
463
463
|
};
|
|
464
464
|
return Promise.resolve(response);
|
|
465
465
|
};
|
|
466
|
-
exports.
|
|
467
|
-
const
|
|
466
|
+
exports.de_DeletePolicyCommand = de_DeletePolicyCommand;
|
|
467
|
+
const de_DeletePolicyCommandError = async (output, context) => {
|
|
468
468
|
const parsedOutput = {
|
|
469
469
|
...output,
|
|
470
470
|
body: await parseErrorBody(output.body, context),
|
|
@@ -473,22 +473,22 @@ const deserializeAws_json1_1DeletePolicyCommandError = async (output, context) =
|
|
|
473
473
|
switch (errorCode) {
|
|
474
474
|
case "ConcurrentModificationException":
|
|
475
475
|
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
476
|
-
throw await
|
|
476
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
477
477
|
case "InvalidArnException":
|
|
478
478
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
479
|
-
throw await
|
|
479
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
480
480
|
case "InvalidStateException":
|
|
481
481
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
482
|
-
throw await
|
|
482
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
483
483
|
case "LockoutPreventedException":
|
|
484
484
|
case "com.amazonaws.acmpca#LockoutPreventedException":
|
|
485
|
-
throw await
|
|
485
|
+
throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
|
|
486
486
|
case "RequestFailedException":
|
|
487
487
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
488
|
-
throw await
|
|
488
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
489
489
|
case "ResourceNotFoundException":
|
|
490
490
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
491
|
-
throw await
|
|
491
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
492
492
|
default:
|
|
493
493
|
const parsedBody = parsedOutput.body;
|
|
494
494
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -499,21 +499,21 @@ const deserializeAws_json1_1DeletePolicyCommandError = async (output, context) =
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
|
-
const
|
|
502
|
+
const de_DescribeCertificateAuthorityCommand = async (output, context) => {
|
|
503
503
|
if (output.statusCode >= 300) {
|
|
504
|
-
return
|
|
504
|
+
return de_DescribeCertificateAuthorityCommandError(output, context);
|
|
505
505
|
}
|
|
506
506
|
const data = await parseBody(output.body, context);
|
|
507
507
|
let contents = {};
|
|
508
|
-
contents =
|
|
508
|
+
contents = de_DescribeCertificateAuthorityResponse(data, context);
|
|
509
509
|
const response = {
|
|
510
510
|
$metadata: deserializeMetadata(output),
|
|
511
511
|
...contents,
|
|
512
512
|
};
|
|
513
513
|
return Promise.resolve(response);
|
|
514
514
|
};
|
|
515
|
-
exports.
|
|
516
|
-
const
|
|
515
|
+
exports.de_DescribeCertificateAuthorityCommand = de_DescribeCertificateAuthorityCommand;
|
|
516
|
+
const de_DescribeCertificateAuthorityCommandError = async (output, context) => {
|
|
517
517
|
const parsedOutput = {
|
|
518
518
|
...output,
|
|
519
519
|
body: await parseErrorBody(output.body, context),
|
|
@@ -522,10 +522,10 @@ const deserializeAws_json1_1DescribeCertificateAuthorityCommandError = async (ou
|
|
|
522
522
|
switch (errorCode) {
|
|
523
523
|
case "InvalidArnException":
|
|
524
524
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
525
|
-
throw await
|
|
525
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
526
526
|
case "ResourceNotFoundException":
|
|
527
527
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
528
|
-
throw await
|
|
528
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
529
529
|
default:
|
|
530
530
|
const parsedBody = parsedOutput.body;
|
|
531
531
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -536,21 +536,21 @@ const deserializeAws_json1_1DescribeCertificateAuthorityCommandError = async (ou
|
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
538
|
};
|
|
539
|
-
const
|
|
539
|
+
const de_DescribeCertificateAuthorityAuditReportCommand = async (output, context) => {
|
|
540
540
|
if (output.statusCode >= 300) {
|
|
541
|
-
return
|
|
541
|
+
return de_DescribeCertificateAuthorityAuditReportCommandError(output, context);
|
|
542
542
|
}
|
|
543
543
|
const data = await parseBody(output.body, context);
|
|
544
544
|
let contents = {};
|
|
545
|
-
contents =
|
|
545
|
+
contents = de_DescribeCertificateAuthorityAuditReportResponse(data, context);
|
|
546
546
|
const response = {
|
|
547
547
|
$metadata: deserializeMetadata(output),
|
|
548
548
|
...contents,
|
|
549
549
|
};
|
|
550
550
|
return Promise.resolve(response);
|
|
551
551
|
};
|
|
552
|
-
exports.
|
|
553
|
-
const
|
|
552
|
+
exports.de_DescribeCertificateAuthorityAuditReportCommand = de_DescribeCertificateAuthorityAuditReportCommand;
|
|
553
|
+
const de_DescribeCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
554
554
|
const parsedOutput = {
|
|
555
555
|
...output,
|
|
556
556
|
body: await parseErrorBody(output.body, context),
|
|
@@ -559,13 +559,13 @@ const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError
|
|
|
559
559
|
switch (errorCode) {
|
|
560
560
|
case "InvalidArgsException":
|
|
561
561
|
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
562
|
-
throw await
|
|
562
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
563
563
|
case "InvalidArnException":
|
|
564
564
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
565
|
-
throw await
|
|
565
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
566
566
|
case "ResourceNotFoundException":
|
|
567
567
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
568
|
-
throw await
|
|
568
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
569
|
default:
|
|
570
570
|
const parsedBody = parsedOutput.body;
|
|
571
571
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -576,21 +576,21 @@ const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError
|
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
};
|
|
579
|
-
const
|
|
579
|
+
const de_GetCertificateCommand = async (output, context) => {
|
|
580
580
|
if (output.statusCode >= 300) {
|
|
581
|
-
return
|
|
581
|
+
return de_GetCertificateCommandError(output, context);
|
|
582
582
|
}
|
|
583
583
|
const data = await parseBody(output.body, context);
|
|
584
584
|
let contents = {};
|
|
585
|
-
contents =
|
|
585
|
+
contents = de_GetCertificateResponse(data, context);
|
|
586
586
|
const response = {
|
|
587
587
|
$metadata: deserializeMetadata(output),
|
|
588
588
|
...contents,
|
|
589
589
|
};
|
|
590
590
|
return Promise.resolve(response);
|
|
591
591
|
};
|
|
592
|
-
exports.
|
|
593
|
-
const
|
|
592
|
+
exports.de_GetCertificateCommand = de_GetCertificateCommand;
|
|
593
|
+
const de_GetCertificateCommandError = async (output, context) => {
|
|
594
594
|
const parsedOutput = {
|
|
595
595
|
...output,
|
|
596
596
|
body: await parseErrorBody(output.body, context),
|
|
@@ -599,19 +599,19 @@ const deserializeAws_json1_1GetCertificateCommandError = async (output, context)
|
|
|
599
599
|
switch (errorCode) {
|
|
600
600
|
case "InvalidArnException":
|
|
601
601
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
602
|
-
throw await
|
|
602
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
603
603
|
case "InvalidStateException":
|
|
604
604
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
605
|
-
throw await
|
|
605
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
606
606
|
case "RequestFailedException":
|
|
607
607
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
608
|
-
throw await
|
|
608
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
609
609
|
case "RequestInProgressException":
|
|
610
610
|
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
611
|
-
throw await
|
|
611
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
612
612
|
case "ResourceNotFoundException":
|
|
613
613
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
614
|
-
throw await
|
|
614
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
615
615
|
default:
|
|
616
616
|
const parsedBody = parsedOutput.body;
|
|
617
617
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -622,21 +622,21 @@ const deserializeAws_json1_1GetCertificateCommandError = async (output, context)
|
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
|
-
const
|
|
625
|
+
const de_GetCertificateAuthorityCertificateCommand = async (output, context) => {
|
|
626
626
|
if (output.statusCode >= 300) {
|
|
627
|
-
return
|
|
627
|
+
return de_GetCertificateAuthorityCertificateCommandError(output, context);
|
|
628
628
|
}
|
|
629
629
|
const data = await parseBody(output.body, context);
|
|
630
630
|
let contents = {};
|
|
631
|
-
contents =
|
|
631
|
+
contents = de_GetCertificateAuthorityCertificateResponse(data, context);
|
|
632
632
|
const response = {
|
|
633
633
|
$metadata: deserializeMetadata(output),
|
|
634
634
|
...contents,
|
|
635
635
|
};
|
|
636
636
|
return Promise.resolve(response);
|
|
637
637
|
};
|
|
638
|
-
exports.
|
|
639
|
-
const
|
|
638
|
+
exports.de_GetCertificateAuthorityCertificateCommand = de_GetCertificateAuthorityCertificateCommand;
|
|
639
|
+
const de_GetCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
640
640
|
const parsedOutput = {
|
|
641
641
|
...output,
|
|
642
642
|
body: await parseErrorBody(output.body, context),
|
|
@@ -645,13 +645,13 @@ const deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError = asy
|
|
|
645
645
|
switch (errorCode) {
|
|
646
646
|
case "InvalidArnException":
|
|
647
647
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
648
|
-
throw await
|
|
648
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
649
649
|
case "InvalidStateException":
|
|
650
650
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
651
|
-
throw await
|
|
651
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
652
652
|
case "ResourceNotFoundException":
|
|
653
653
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
654
|
-
throw await
|
|
654
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
655
655
|
default:
|
|
656
656
|
const parsedBody = parsedOutput.body;
|
|
657
657
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -662,21 +662,21 @@ const deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError = asy
|
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
664
|
};
|
|
665
|
-
const
|
|
665
|
+
const de_GetCertificateAuthorityCsrCommand = async (output, context) => {
|
|
666
666
|
if (output.statusCode >= 300) {
|
|
667
|
-
return
|
|
667
|
+
return de_GetCertificateAuthorityCsrCommandError(output, context);
|
|
668
668
|
}
|
|
669
669
|
const data = await parseBody(output.body, context);
|
|
670
670
|
let contents = {};
|
|
671
|
-
contents =
|
|
671
|
+
contents = de_GetCertificateAuthorityCsrResponse(data, context);
|
|
672
672
|
const response = {
|
|
673
673
|
$metadata: deserializeMetadata(output),
|
|
674
674
|
...contents,
|
|
675
675
|
};
|
|
676
676
|
return Promise.resolve(response);
|
|
677
677
|
};
|
|
678
|
-
exports.
|
|
679
|
-
const
|
|
678
|
+
exports.de_GetCertificateAuthorityCsrCommand = de_GetCertificateAuthorityCsrCommand;
|
|
679
|
+
const de_GetCertificateAuthorityCsrCommandError = async (output, context) => {
|
|
680
680
|
const parsedOutput = {
|
|
681
681
|
...output,
|
|
682
682
|
body: await parseErrorBody(output.body, context),
|
|
@@ -685,19 +685,19 @@ const deserializeAws_json1_1GetCertificateAuthorityCsrCommandError = async (outp
|
|
|
685
685
|
switch (errorCode) {
|
|
686
686
|
case "InvalidArnException":
|
|
687
687
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
688
|
-
throw await
|
|
688
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
689
689
|
case "InvalidStateException":
|
|
690
690
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
691
|
-
throw await
|
|
691
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
692
692
|
case "RequestFailedException":
|
|
693
693
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
694
|
-
throw await
|
|
694
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
695
695
|
case "RequestInProgressException":
|
|
696
696
|
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
697
|
-
throw await
|
|
697
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
698
698
|
case "ResourceNotFoundException":
|
|
699
699
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
700
|
-
throw await
|
|
700
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
701
701
|
default:
|
|
702
702
|
const parsedBody = parsedOutput.body;
|
|
703
703
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -708,21 +708,21 @@ const deserializeAws_json1_1GetCertificateAuthorityCsrCommandError = async (outp
|
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
710
|
};
|
|
711
|
-
const
|
|
711
|
+
const de_GetPolicyCommand = async (output, context) => {
|
|
712
712
|
if (output.statusCode >= 300) {
|
|
713
|
-
return
|
|
713
|
+
return de_GetPolicyCommandError(output, context);
|
|
714
714
|
}
|
|
715
715
|
const data = await parseBody(output.body, context);
|
|
716
716
|
let contents = {};
|
|
717
|
-
contents =
|
|
717
|
+
contents = de_GetPolicyResponse(data, context);
|
|
718
718
|
const response = {
|
|
719
719
|
$metadata: deserializeMetadata(output),
|
|
720
720
|
...contents,
|
|
721
721
|
};
|
|
722
722
|
return Promise.resolve(response);
|
|
723
723
|
};
|
|
724
|
-
exports.
|
|
725
|
-
const
|
|
724
|
+
exports.de_GetPolicyCommand = de_GetPolicyCommand;
|
|
725
|
+
const de_GetPolicyCommandError = async (output, context) => {
|
|
726
726
|
const parsedOutput = {
|
|
727
727
|
...output,
|
|
728
728
|
body: await parseErrorBody(output.body, context),
|
|
@@ -731,16 +731,16 @@ const deserializeAws_json1_1GetPolicyCommandError = async (output, context) => {
|
|
|
731
731
|
switch (errorCode) {
|
|
732
732
|
case "InvalidArnException":
|
|
733
733
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
734
|
-
throw await
|
|
734
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
735
735
|
case "InvalidStateException":
|
|
736
736
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
737
|
-
throw await
|
|
737
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
738
738
|
case "RequestFailedException":
|
|
739
739
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
740
|
-
throw await
|
|
740
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
741
741
|
case "ResourceNotFoundException":
|
|
742
742
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
743
|
-
throw await
|
|
743
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
744
744
|
default:
|
|
745
745
|
const parsedBody = parsedOutput.body;
|
|
746
746
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -751,9 +751,9 @@ const deserializeAws_json1_1GetPolicyCommandError = async (output, context) => {
|
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
|
-
const
|
|
754
|
+
const de_ImportCertificateAuthorityCertificateCommand = async (output, context) => {
|
|
755
755
|
if (output.statusCode >= 300) {
|
|
756
|
-
return
|
|
756
|
+
return de_ImportCertificateAuthorityCertificateCommandError(output, context);
|
|
757
757
|
}
|
|
758
758
|
await collectBody(output.body, context);
|
|
759
759
|
const response = {
|
|
@@ -761,8 +761,8 @@ const deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand = async
|
|
|
761
761
|
};
|
|
762
762
|
return Promise.resolve(response);
|
|
763
763
|
};
|
|
764
|
-
exports.
|
|
765
|
-
const
|
|
764
|
+
exports.de_ImportCertificateAuthorityCertificateCommand = de_ImportCertificateAuthorityCertificateCommand;
|
|
765
|
+
const de_ImportCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
766
766
|
const parsedOutput = {
|
|
767
767
|
...output,
|
|
768
768
|
body: await parseErrorBody(output.body, context),
|
|
@@ -771,31 +771,31 @@ const deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError =
|
|
|
771
771
|
switch (errorCode) {
|
|
772
772
|
case "CertificateMismatchException":
|
|
773
773
|
case "com.amazonaws.acmpca#CertificateMismatchException":
|
|
774
|
-
throw await
|
|
774
|
+
throw await de_CertificateMismatchExceptionRes(parsedOutput, context);
|
|
775
775
|
case "ConcurrentModificationException":
|
|
776
776
|
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
777
|
-
throw await
|
|
777
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
778
778
|
case "InvalidArnException":
|
|
779
779
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
780
|
-
throw await
|
|
780
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
781
781
|
case "InvalidRequestException":
|
|
782
782
|
case "com.amazonaws.acmpca#InvalidRequestException":
|
|
783
|
-
throw await
|
|
783
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
784
784
|
case "InvalidStateException":
|
|
785
785
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
786
|
-
throw await
|
|
786
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
787
787
|
case "MalformedCertificateException":
|
|
788
788
|
case "com.amazonaws.acmpca#MalformedCertificateException":
|
|
789
|
-
throw await
|
|
789
|
+
throw await de_MalformedCertificateExceptionRes(parsedOutput, context);
|
|
790
790
|
case "RequestFailedException":
|
|
791
791
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
792
|
-
throw await
|
|
792
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
793
793
|
case "RequestInProgressException":
|
|
794
794
|
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
795
|
-
throw await
|
|
795
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
796
796
|
case "ResourceNotFoundException":
|
|
797
797
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
798
|
-
throw await
|
|
798
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
799
799
|
default:
|
|
800
800
|
const parsedBody = parsedOutput.body;
|
|
801
801
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -806,21 +806,21 @@ const deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError =
|
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
808
|
};
|
|
809
|
-
const
|
|
809
|
+
const de_IssueCertificateCommand = async (output, context) => {
|
|
810
810
|
if (output.statusCode >= 300) {
|
|
811
|
-
return
|
|
811
|
+
return de_IssueCertificateCommandError(output, context);
|
|
812
812
|
}
|
|
813
813
|
const data = await parseBody(output.body, context);
|
|
814
814
|
let contents = {};
|
|
815
|
-
contents =
|
|
815
|
+
contents = de_IssueCertificateResponse(data, context);
|
|
816
816
|
const response = {
|
|
817
817
|
$metadata: deserializeMetadata(output),
|
|
818
818
|
...contents,
|
|
819
819
|
};
|
|
820
820
|
return Promise.resolve(response);
|
|
821
821
|
};
|
|
822
|
-
exports.
|
|
823
|
-
const
|
|
822
|
+
exports.de_IssueCertificateCommand = de_IssueCertificateCommand;
|
|
823
|
+
const de_IssueCertificateCommandError = async (output, context) => {
|
|
824
824
|
const parsedOutput = {
|
|
825
825
|
...output,
|
|
826
826
|
body: await parseErrorBody(output.body, context),
|
|
@@ -829,22 +829,22 @@ const deserializeAws_json1_1IssueCertificateCommandError = async (output, contex
|
|
|
829
829
|
switch (errorCode) {
|
|
830
830
|
case "InvalidArgsException":
|
|
831
831
|
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
832
|
-
throw await
|
|
832
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
833
833
|
case "InvalidArnException":
|
|
834
834
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
835
|
-
throw await
|
|
835
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
836
836
|
case "InvalidStateException":
|
|
837
837
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
838
|
-
throw await
|
|
838
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
839
839
|
case "LimitExceededException":
|
|
840
840
|
case "com.amazonaws.acmpca#LimitExceededException":
|
|
841
|
-
throw await
|
|
841
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
842
842
|
case "MalformedCSRException":
|
|
843
843
|
case "com.amazonaws.acmpca#MalformedCSRException":
|
|
844
|
-
throw await
|
|
844
|
+
throw await de_MalformedCSRExceptionRes(parsedOutput, context);
|
|
845
845
|
case "ResourceNotFoundException":
|
|
846
846
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
847
|
-
throw await
|
|
847
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
848
848
|
default:
|
|
849
849
|
const parsedBody = parsedOutput.body;
|
|
850
850
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -855,21 +855,21 @@ const deserializeAws_json1_1IssueCertificateCommandError = async (output, contex
|
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
|
-
const
|
|
858
|
+
const de_ListCertificateAuthoritiesCommand = async (output, context) => {
|
|
859
859
|
if (output.statusCode >= 300) {
|
|
860
|
-
return
|
|
860
|
+
return de_ListCertificateAuthoritiesCommandError(output, context);
|
|
861
861
|
}
|
|
862
862
|
const data = await parseBody(output.body, context);
|
|
863
863
|
let contents = {};
|
|
864
|
-
contents =
|
|
864
|
+
contents = de_ListCertificateAuthoritiesResponse(data, context);
|
|
865
865
|
const response = {
|
|
866
866
|
$metadata: deserializeMetadata(output),
|
|
867
867
|
...contents,
|
|
868
868
|
};
|
|
869
869
|
return Promise.resolve(response);
|
|
870
870
|
};
|
|
871
|
-
exports.
|
|
872
|
-
const
|
|
871
|
+
exports.de_ListCertificateAuthoritiesCommand = de_ListCertificateAuthoritiesCommand;
|
|
872
|
+
const de_ListCertificateAuthoritiesCommandError = async (output, context) => {
|
|
873
873
|
const parsedOutput = {
|
|
874
874
|
...output,
|
|
875
875
|
body: await parseErrorBody(output.body, context),
|
|
@@ -878,7 +878,7 @@ const deserializeAws_json1_1ListCertificateAuthoritiesCommandError = async (outp
|
|
|
878
878
|
switch (errorCode) {
|
|
879
879
|
case "InvalidNextTokenException":
|
|
880
880
|
case "com.amazonaws.acmpca#InvalidNextTokenException":
|
|
881
|
-
throw await
|
|
881
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
882
882
|
default:
|
|
883
883
|
const parsedBody = parsedOutput.body;
|
|
884
884
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -889,21 +889,21 @@ const deserializeAws_json1_1ListCertificateAuthoritiesCommandError = async (outp
|
|
|
889
889
|
});
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
|
-
const
|
|
892
|
+
const de_ListPermissionsCommand = async (output, context) => {
|
|
893
893
|
if (output.statusCode >= 300) {
|
|
894
|
-
return
|
|
894
|
+
return de_ListPermissionsCommandError(output, context);
|
|
895
895
|
}
|
|
896
896
|
const data = await parseBody(output.body, context);
|
|
897
897
|
let contents = {};
|
|
898
|
-
contents =
|
|
898
|
+
contents = de_ListPermissionsResponse(data, context);
|
|
899
899
|
const response = {
|
|
900
900
|
$metadata: deserializeMetadata(output),
|
|
901
901
|
...contents,
|
|
902
902
|
};
|
|
903
903
|
return Promise.resolve(response);
|
|
904
904
|
};
|
|
905
|
-
exports.
|
|
906
|
-
const
|
|
905
|
+
exports.de_ListPermissionsCommand = de_ListPermissionsCommand;
|
|
906
|
+
const de_ListPermissionsCommandError = async (output, context) => {
|
|
907
907
|
const parsedOutput = {
|
|
908
908
|
...output,
|
|
909
909
|
body: await parseErrorBody(output.body, context),
|
|
@@ -912,19 +912,19 @@ const deserializeAws_json1_1ListPermissionsCommandError = async (output, context
|
|
|
912
912
|
switch (errorCode) {
|
|
913
913
|
case "InvalidArnException":
|
|
914
914
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
915
|
-
throw await
|
|
915
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
916
916
|
case "InvalidNextTokenException":
|
|
917
917
|
case "com.amazonaws.acmpca#InvalidNextTokenException":
|
|
918
|
-
throw await
|
|
918
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
919
919
|
case "InvalidStateException":
|
|
920
920
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
921
|
-
throw await
|
|
921
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
922
922
|
case "RequestFailedException":
|
|
923
923
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
924
|
-
throw await
|
|
924
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
925
925
|
case "ResourceNotFoundException":
|
|
926
926
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
927
|
-
throw await
|
|
927
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
928
928
|
default:
|
|
929
929
|
const parsedBody = parsedOutput.body;
|
|
930
930
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -935,21 +935,21 @@ const deserializeAws_json1_1ListPermissionsCommandError = async (output, context
|
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
|
-
const
|
|
938
|
+
const de_ListTagsCommand = async (output, context) => {
|
|
939
939
|
if (output.statusCode >= 300) {
|
|
940
|
-
return
|
|
940
|
+
return de_ListTagsCommandError(output, context);
|
|
941
941
|
}
|
|
942
942
|
const data = await parseBody(output.body, context);
|
|
943
943
|
let contents = {};
|
|
944
|
-
contents =
|
|
944
|
+
contents = de_ListTagsResponse(data, context);
|
|
945
945
|
const response = {
|
|
946
946
|
$metadata: deserializeMetadata(output),
|
|
947
947
|
...contents,
|
|
948
948
|
};
|
|
949
949
|
return Promise.resolve(response);
|
|
950
950
|
};
|
|
951
|
-
exports.
|
|
952
|
-
const
|
|
951
|
+
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
952
|
+
const de_ListTagsCommandError = async (output, context) => {
|
|
953
953
|
const parsedOutput = {
|
|
954
954
|
...output,
|
|
955
955
|
body: await parseErrorBody(output.body, context),
|
|
@@ -958,13 +958,13 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
958
958
|
switch (errorCode) {
|
|
959
959
|
case "InvalidArnException":
|
|
960
960
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
961
|
-
throw await
|
|
961
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
962
962
|
case "InvalidStateException":
|
|
963
963
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
964
|
-
throw await
|
|
964
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
965
965
|
case "ResourceNotFoundException":
|
|
966
966
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
967
|
-
throw await
|
|
967
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
968
968
|
default:
|
|
969
969
|
const parsedBody = parsedOutput.body;
|
|
970
970
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -975,9 +975,9 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
977
|
};
|
|
978
|
-
const
|
|
978
|
+
const de_PutPolicyCommand = async (output, context) => {
|
|
979
979
|
if (output.statusCode >= 300) {
|
|
980
|
-
return
|
|
980
|
+
return de_PutPolicyCommandError(output, context);
|
|
981
981
|
}
|
|
982
982
|
await collectBody(output.body, context);
|
|
983
983
|
const response = {
|
|
@@ -985,8 +985,8 @@ const deserializeAws_json1_1PutPolicyCommand = async (output, context) => {
|
|
|
985
985
|
};
|
|
986
986
|
return Promise.resolve(response);
|
|
987
987
|
};
|
|
988
|
-
exports.
|
|
989
|
-
const
|
|
988
|
+
exports.de_PutPolicyCommand = de_PutPolicyCommand;
|
|
989
|
+
const de_PutPolicyCommandError = async (output, context) => {
|
|
990
990
|
const parsedOutput = {
|
|
991
991
|
...output,
|
|
992
992
|
body: await parseErrorBody(output.body, context),
|
|
@@ -995,25 +995,25 @@ const deserializeAws_json1_1PutPolicyCommandError = async (output, context) => {
|
|
|
995
995
|
switch (errorCode) {
|
|
996
996
|
case "ConcurrentModificationException":
|
|
997
997
|
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
998
|
-
throw await
|
|
998
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
999
999
|
case "InvalidArnException":
|
|
1000
1000
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1001
|
-
throw await
|
|
1001
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1002
1002
|
case "InvalidPolicyException":
|
|
1003
1003
|
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
1004
|
-
throw await
|
|
1004
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1005
1005
|
case "InvalidStateException":
|
|
1006
1006
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1007
|
-
throw await
|
|
1007
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1008
1008
|
case "LockoutPreventedException":
|
|
1009
1009
|
case "com.amazonaws.acmpca#LockoutPreventedException":
|
|
1010
|
-
throw await
|
|
1010
|
+
throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
|
|
1011
1011
|
case "RequestFailedException":
|
|
1012
1012
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1013
|
-
throw await
|
|
1013
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1014
1014
|
case "ResourceNotFoundException":
|
|
1015
1015
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1016
|
-
throw await
|
|
1016
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1017
1017
|
default:
|
|
1018
1018
|
const parsedBody = parsedOutput.body;
|
|
1019
1019
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1024,9 +1024,9 @@ const deserializeAws_json1_1PutPolicyCommandError = async (output, context) => {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
1027
|
-
const
|
|
1027
|
+
const de_RestoreCertificateAuthorityCommand = async (output, context) => {
|
|
1028
1028
|
if (output.statusCode >= 300) {
|
|
1029
|
-
return
|
|
1029
|
+
return de_RestoreCertificateAuthorityCommandError(output, context);
|
|
1030
1030
|
}
|
|
1031
1031
|
await collectBody(output.body, context);
|
|
1032
1032
|
const response = {
|
|
@@ -1034,8 +1034,8 @@ const deserializeAws_json1_1RestoreCertificateAuthorityCommand = async (output,
|
|
|
1034
1034
|
};
|
|
1035
1035
|
return Promise.resolve(response);
|
|
1036
1036
|
};
|
|
1037
|
-
exports.
|
|
1038
|
-
const
|
|
1037
|
+
exports.de_RestoreCertificateAuthorityCommand = de_RestoreCertificateAuthorityCommand;
|
|
1038
|
+
const de_RestoreCertificateAuthorityCommandError = async (output, context) => {
|
|
1039
1039
|
const parsedOutput = {
|
|
1040
1040
|
...output,
|
|
1041
1041
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1044,13 +1044,13 @@ const deserializeAws_json1_1RestoreCertificateAuthorityCommandError = async (out
|
|
|
1044
1044
|
switch (errorCode) {
|
|
1045
1045
|
case "InvalidArnException":
|
|
1046
1046
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1047
|
-
throw await
|
|
1047
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1048
1048
|
case "InvalidStateException":
|
|
1049
1049
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1050
|
-
throw await
|
|
1050
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1051
1051
|
case "ResourceNotFoundException":
|
|
1052
1052
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1053
|
-
throw await
|
|
1053
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1054
1054
|
default:
|
|
1055
1055
|
const parsedBody = parsedOutput.body;
|
|
1056
1056
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1061,9 +1061,9 @@ const deserializeAws_json1_1RestoreCertificateAuthorityCommandError = async (out
|
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
1064
|
-
const
|
|
1064
|
+
const de_RevokeCertificateCommand = async (output, context) => {
|
|
1065
1065
|
if (output.statusCode >= 300) {
|
|
1066
|
-
return
|
|
1066
|
+
return de_RevokeCertificateCommandError(output, context);
|
|
1067
1067
|
}
|
|
1068
1068
|
await collectBody(output.body, context);
|
|
1069
1069
|
const response = {
|
|
@@ -1071,8 +1071,8 @@ const deserializeAws_json1_1RevokeCertificateCommand = async (output, context) =
|
|
|
1071
1071
|
};
|
|
1072
1072
|
return Promise.resolve(response);
|
|
1073
1073
|
};
|
|
1074
|
-
exports.
|
|
1075
|
-
const
|
|
1074
|
+
exports.de_RevokeCertificateCommand = de_RevokeCertificateCommand;
|
|
1075
|
+
const de_RevokeCertificateCommandError = async (output, context) => {
|
|
1076
1076
|
const parsedOutput = {
|
|
1077
1077
|
...output,
|
|
1078
1078
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1081,31 +1081,31 @@ const deserializeAws_json1_1RevokeCertificateCommandError = async (output, conte
|
|
|
1081
1081
|
switch (errorCode) {
|
|
1082
1082
|
case "ConcurrentModificationException":
|
|
1083
1083
|
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1084
|
-
throw await
|
|
1084
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1085
1085
|
case "InvalidArnException":
|
|
1086
1086
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1087
|
-
throw await
|
|
1087
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1088
1088
|
case "InvalidRequestException":
|
|
1089
1089
|
case "com.amazonaws.acmpca#InvalidRequestException":
|
|
1090
|
-
throw await
|
|
1090
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1091
1091
|
case "InvalidStateException":
|
|
1092
1092
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1093
|
-
throw await
|
|
1093
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1094
1094
|
case "LimitExceededException":
|
|
1095
1095
|
case "com.amazonaws.acmpca#LimitExceededException":
|
|
1096
|
-
throw await
|
|
1096
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1097
1097
|
case "RequestAlreadyProcessedException":
|
|
1098
1098
|
case "com.amazonaws.acmpca#RequestAlreadyProcessedException":
|
|
1099
|
-
throw await
|
|
1099
|
+
throw await de_RequestAlreadyProcessedExceptionRes(parsedOutput, context);
|
|
1100
1100
|
case "RequestFailedException":
|
|
1101
1101
|
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1102
|
-
throw await
|
|
1102
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1103
1103
|
case "RequestInProgressException":
|
|
1104
1104
|
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
1105
|
-
throw await
|
|
1105
|
+
throw await de_RequestInProgressExceptionRes(parsedOutput, context);
|
|
1106
1106
|
case "ResourceNotFoundException":
|
|
1107
1107
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1108
|
-
throw await
|
|
1108
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1109
1109
|
default:
|
|
1110
1110
|
const parsedBody = parsedOutput.body;
|
|
1111
1111
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1116,9 +1116,9 @@ const deserializeAws_json1_1RevokeCertificateCommandError = async (output, conte
|
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
1118
|
};
|
|
1119
|
-
const
|
|
1119
|
+
const de_TagCertificateAuthorityCommand = async (output, context) => {
|
|
1120
1120
|
if (output.statusCode >= 300) {
|
|
1121
|
-
return
|
|
1121
|
+
return de_TagCertificateAuthorityCommandError(output, context);
|
|
1122
1122
|
}
|
|
1123
1123
|
await collectBody(output.body, context);
|
|
1124
1124
|
const response = {
|
|
@@ -1126,8 +1126,8 @@ const deserializeAws_json1_1TagCertificateAuthorityCommand = async (output, cont
|
|
|
1126
1126
|
};
|
|
1127
1127
|
return Promise.resolve(response);
|
|
1128
1128
|
};
|
|
1129
|
-
exports.
|
|
1130
|
-
const
|
|
1129
|
+
exports.de_TagCertificateAuthorityCommand = de_TagCertificateAuthorityCommand;
|
|
1130
|
+
const de_TagCertificateAuthorityCommandError = async (output, context) => {
|
|
1131
1131
|
const parsedOutput = {
|
|
1132
1132
|
...output,
|
|
1133
1133
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1136,19 +1136,19 @@ const deserializeAws_json1_1TagCertificateAuthorityCommandError = async (output,
|
|
|
1136
1136
|
switch (errorCode) {
|
|
1137
1137
|
case "InvalidArnException":
|
|
1138
1138
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1139
|
-
throw await
|
|
1139
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1140
1140
|
case "InvalidStateException":
|
|
1141
1141
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1142
|
-
throw await
|
|
1142
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1143
1143
|
case "InvalidTagException":
|
|
1144
1144
|
case "com.amazonaws.acmpca#InvalidTagException":
|
|
1145
|
-
throw await
|
|
1145
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1146
1146
|
case "ResourceNotFoundException":
|
|
1147
1147
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1148
|
-
throw await
|
|
1148
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1149
1149
|
case "TooManyTagsException":
|
|
1150
1150
|
case "com.amazonaws.acmpca#TooManyTagsException":
|
|
1151
|
-
throw await
|
|
1151
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1152
1152
|
default:
|
|
1153
1153
|
const parsedBody = parsedOutput.body;
|
|
1154
1154
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1159,9 +1159,9 @@ const deserializeAws_json1_1TagCertificateAuthorityCommandError = async (output,
|
|
|
1159
1159
|
});
|
|
1160
1160
|
}
|
|
1161
1161
|
};
|
|
1162
|
-
const
|
|
1162
|
+
const de_UntagCertificateAuthorityCommand = async (output, context) => {
|
|
1163
1163
|
if (output.statusCode >= 300) {
|
|
1164
|
-
return
|
|
1164
|
+
return de_UntagCertificateAuthorityCommandError(output, context);
|
|
1165
1165
|
}
|
|
1166
1166
|
await collectBody(output.body, context);
|
|
1167
1167
|
const response = {
|
|
@@ -1169,8 +1169,8 @@ const deserializeAws_json1_1UntagCertificateAuthorityCommand = async (output, co
|
|
|
1169
1169
|
};
|
|
1170
1170
|
return Promise.resolve(response);
|
|
1171
1171
|
};
|
|
1172
|
-
exports.
|
|
1173
|
-
const
|
|
1172
|
+
exports.de_UntagCertificateAuthorityCommand = de_UntagCertificateAuthorityCommand;
|
|
1173
|
+
const de_UntagCertificateAuthorityCommandError = async (output, context) => {
|
|
1174
1174
|
const parsedOutput = {
|
|
1175
1175
|
...output,
|
|
1176
1176
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1179,16 +1179,16 @@ const deserializeAws_json1_1UntagCertificateAuthorityCommandError = async (outpu
|
|
|
1179
1179
|
switch (errorCode) {
|
|
1180
1180
|
case "InvalidArnException":
|
|
1181
1181
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1182
|
-
throw await
|
|
1182
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1183
1183
|
case "InvalidStateException":
|
|
1184
1184
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1185
|
-
throw await
|
|
1185
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1186
1186
|
case "InvalidTagException":
|
|
1187
1187
|
case "com.amazonaws.acmpca#InvalidTagException":
|
|
1188
|
-
throw await
|
|
1188
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1189
1189
|
case "ResourceNotFoundException":
|
|
1190
1190
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1191
|
-
throw await
|
|
1191
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1192
1192
|
default:
|
|
1193
1193
|
const parsedBody = parsedOutput.body;
|
|
1194
1194
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1199,9 +1199,9 @@ const deserializeAws_json1_1UntagCertificateAuthorityCommandError = async (outpu
|
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
1201
1201
|
};
|
|
1202
|
-
const
|
|
1202
|
+
const de_UpdateCertificateAuthorityCommand = async (output, context) => {
|
|
1203
1203
|
if (output.statusCode >= 300) {
|
|
1204
|
-
return
|
|
1204
|
+
return de_UpdateCertificateAuthorityCommandError(output, context);
|
|
1205
1205
|
}
|
|
1206
1206
|
await collectBody(output.body, context);
|
|
1207
1207
|
const response = {
|
|
@@ -1209,8 +1209,8 @@ const deserializeAws_json1_1UpdateCertificateAuthorityCommand = async (output, c
|
|
|
1209
1209
|
};
|
|
1210
1210
|
return Promise.resolve(response);
|
|
1211
1211
|
};
|
|
1212
|
-
exports.
|
|
1213
|
-
const
|
|
1212
|
+
exports.de_UpdateCertificateAuthorityCommand = de_UpdateCertificateAuthorityCommand;
|
|
1213
|
+
const de_UpdateCertificateAuthorityCommandError = async (output, context) => {
|
|
1214
1214
|
const parsedOutput = {
|
|
1215
1215
|
...output,
|
|
1216
1216
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1219,22 +1219,22 @@ const deserializeAws_json1_1UpdateCertificateAuthorityCommandError = async (outp
|
|
|
1219
1219
|
switch (errorCode) {
|
|
1220
1220
|
case "ConcurrentModificationException":
|
|
1221
1221
|
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1222
|
-
throw await
|
|
1222
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1223
1223
|
case "InvalidArgsException":
|
|
1224
1224
|
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
1225
|
-
throw await
|
|
1225
|
+
throw await de_InvalidArgsExceptionRes(parsedOutput, context);
|
|
1226
1226
|
case "InvalidArnException":
|
|
1227
1227
|
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1228
|
-
throw await
|
|
1228
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1229
1229
|
case "InvalidPolicyException":
|
|
1230
1230
|
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
1231
|
-
throw await
|
|
1231
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1232
1232
|
case "InvalidStateException":
|
|
1233
1233
|
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1234
|
-
throw await
|
|
1234
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
1235
1235
|
case "ResourceNotFoundException":
|
|
1236
1236
|
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1237
|
-
throw await
|
|
1237
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1238
1238
|
default:
|
|
1239
1239
|
const parsedBody = parsedOutput.body;
|
|
1240
1240
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1245,217 +1245,215 @@ const deserializeAws_json1_1UpdateCertificateAuthorityCommandError = async (outp
|
|
|
1245
1245
|
});
|
|
1246
1246
|
}
|
|
1247
1247
|
};
|
|
1248
|
-
const
|
|
1248
|
+
const de_CertificateMismatchExceptionRes = async (parsedOutput, context) => {
|
|
1249
1249
|
const body = parsedOutput.body;
|
|
1250
|
-
const deserialized =
|
|
1250
|
+
const deserialized = de_CertificateMismatchException(body, context);
|
|
1251
1251
|
const exception = new models_0_1.CertificateMismatchException({
|
|
1252
1252
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1253
1253
|
...deserialized,
|
|
1254
1254
|
});
|
|
1255
1255
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1256
1256
|
};
|
|
1257
|
-
const
|
|
1257
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
1258
1258
|
const body = parsedOutput.body;
|
|
1259
|
-
const deserialized =
|
|
1259
|
+
const deserialized = de_ConcurrentModificationException(body, context);
|
|
1260
1260
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
1261
1261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1262
1262
|
...deserialized,
|
|
1263
1263
|
});
|
|
1264
1264
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1265
1265
|
};
|
|
1266
|
-
const
|
|
1266
|
+
const de_InvalidArgsExceptionRes = async (parsedOutput, context) => {
|
|
1267
1267
|
const body = parsedOutput.body;
|
|
1268
|
-
const deserialized =
|
|
1268
|
+
const deserialized = de_InvalidArgsException(body, context);
|
|
1269
1269
|
const exception = new models_0_1.InvalidArgsException({
|
|
1270
1270
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1271
1271
|
...deserialized,
|
|
1272
1272
|
});
|
|
1273
1273
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1274
1274
|
};
|
|
1275
|
-
const
|
|
1275
|
+
const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
1276
1276
|
const body = parsedOutput.body;
|
|
1277
|
-
const deserialized =
|
|
1277
|
+
const deserialized = de_InvalidArnException(body, context);
|
|
1278
1278
|
const exception = new models_0_1.InvalidArnException({
|
|
1279
1279
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1280
1280
|
...deserialized,
|
|
1281
1281
|
});
|
|
1282
1282
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1283
1283
|
};
|
|
1284
|
-
const
|
|
1284
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1285
1285
|
const body = parsedOutput.body;
|
|
1286
|
-
const deserialized =
|
|
1286
|
+
const deserialized = de_InvalidNextTokenException(body, context);
|
|
1287
1287
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
1288
1288
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1289
1289
|
...deserialized,
|
|
1290
1290
|
});
|
|
1291
1291
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1292
1292
|
};
|
|
1293
|
-
const
|
|
1293
|
+
const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
1294
1294
|
const body = parsedOutput.body;
|
|
1295
|
-
const deserialized =
|
|
1295
|
+
const deserialized = de_InvalidPolicyException(body, context);
|
|
1296
1296
|
const exception = new models_0_1.InvalidPolicyException({
|
|
1297
1297
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1298
1298
|
...deserialized,
|
|
1299
1299
|
});
|
|
1300
1300
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1301
1301
|
};
|
|
1302
|
-
const
|
|
1302
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1303
1303
|
const body = parsedOutput.body;
|
|
1304
|
-
const deserialized =
|
|
1304
|
+
const deserialized = de_InvalidRequestException(body, context);
|
|
1305
1305
|
const exception = new models_0_1.InvalidRequestException({
|
|
1306
1306
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1307
1307
|
...deserialized,
|
|
1308
1308
|
});
|
|
1309
1309
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1310
1310
|
};
|
|
1311
|
-
const
|
|
1311
|
+
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
1312
1312
|
const body = parsedOutput.body;
|
|
1313
|
-
const deserialized =
|
|
1313
|
+
const deserialized = de_InvalidStateException(body, context);
|
|
1314
1314
|
const exception = new models_0_1.InvalidStateException({
|
|
1315
1315
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1316
1316
|
...deserialized,
|
|
1317
1317
|
});
|
|
1318
1318
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1319
1319
|
};
|
|
1320
|
-
const
|
|
1320
|
+
const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
1321
1321
|
const body = parsedOutput.body;
|
|
1322
|
-
const deserialized =
|
|
1322
|
+
const deserialized = de_InvalidTagException(body, context);
|
|
1323
1323
|
const exception = new models_0_1.InvalidTagException({
|
|
1324
1324
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1325
1325
|
...deserialized,
|
|
1326
1326
|
});
|
|
1327
1327
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1328
1328
|
};
|
|
1329
|
-
const
|
|
1329
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1330
1330
|
const body = parsedOutput.body;
|
|
1331
|
-
const deserialized =
|
|
1331
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1332
1332
|
const exception = new models_0_1.LimitExceededException({
|
|
1333
1333
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1334
1334
|
...deserialized,
|
|
1335
1335
|
});
|
|
1336
1336
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1337
1337
|
};
|
|
1338
|
-
const
|
|
1338
|
+
const de_LockoutPreventedExceptionRes = async (parsedOutput, context) => {
|
|
1339
1339
|
const body = parsedOutput.body;
|
|
1340
|
-
const deserialized =
|
|
1340
|
+
const deserialized = de_LockoutPreventedException(body, context);
|
|
1341
1341
|
const exception = new models_0_1.LockoutPreventedException({
|
|
1342
1342
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1343
1343
|
...deserialized,
|
|
1344
1344
|
});
|
|
1345
1345
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1346
1346
|
};
|
|
1347
|
-
const
|
|
1347
|
+
const de_MalformedCertificateExceptionRes = async (parsedOutput, context) => {
|
|
1348
1348
|
const body = parsedOutput.body;
|
|
1349
|
-
const deserialized =
|
|
1349
|
+
const deserialized = de_MalformedCertificateException(body, context);
|
|
1350
1350
|
const exception = new models_0_1.MalformedCertificateException({
|
|
1351
1351
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1352
1352
|
...deserialized,
|
|
1353
1353
|
});
|
|
1354
1354
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1355
1355
|
};
|
|
1356
|
-
const
|
|
1356
|
+
const de_MalformedCSRExceptionRes = async (parsedOutput, context) => {
|
|
1357
1357
|
const body = parsedOutput.body;
|
|
1358
|
-
const deserialized =
|
|
1358
|
+
const deserialized = de_MalformedCSRException(body, context);
|
|
1359
1359
|
const exception = new models_0_1.MalformedCSRException({
|
|
1360
1360
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1361
1361
|
...deserialized,
|
|
1362
1362
|
});
|
|
1363
1363
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1365
|
+
const de_PermissionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1366
1366
|
const body = parsedOutput.body;
|
|
1367
|
-
const deserialized =
|
|
1367
|
+
const deserialized = de_PermissionAlreadyExistsException(body, context);
|
|
1368
1368
|
const exception = new models_0_1.PermissionAlreadyExistsException({
|
|
1369
1369
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1370
1370
|
...deserialized,
|
|
1371
1371
|
});
|
|
1372
1372
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1373
1373
|
};
|
|
1374
|
-
const
|
|
1374
|
+
const de_RequestAlreadyProcessedExceptionRes = async (parsedOutput, context) => {
|
|
1375
1375
|
const body = parsedOutput.body;
|
|
1376
|
-
const deserialized =
|
|
1376
|
+
const deserialized = de_RequestAlreadyProcessedException(body, context);
|
|
1377
1377
|
const exception = new models_0_1.RequestAlreadyProcessedException({
|
|
1378
1378
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1379
1379
|
...deserialized,
|
|
1380
1380
|
});
|
|
1381
1381
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1382
1382
|
};
|
|
1383
|
-
const
|
|
1383
|
+
const de_RequestFailedExceptionRes = async (parsedOutput, context) => {
|
|
1384
1384
|
const body = parsedOutput.body;
|
|
1385
|
-
const deserialized =
|
|
1385
|
+
const deserialized = de_RequestFailedException(body, context);
|
|
1386
1386
|
const exception = new models_0_1.RequestFailedException({
|
|
1387
1387
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1388
1388
|
...deserialized,
|
|
1389
1389
|
});
|
|
1390
1390
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1391
1391
|
};
|
|
1392
|
-
const
|
|
1392
|
+
const de_RequestInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1393
1393
|
const body = parsedOutput.body;
|
|
1394
|
-
const deserialized =
|
|
1394
|
+
const deserialized = de_RequestInProgressException(body, context);
|
|
1395
1395
|
const exception = new models_0_1.RequestInProgressException({
|
|
1396
1396
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1397
1397
|
...deserialized,
|
|
1398
1398
|
});
|
|
1399
1399
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1400
1400
|
};
|
|
1401
|
-
const
|
|
1401
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1402
1402
|
const body = parsedOutput.body;
|
|
1403
|
-
const deserialized =
|
|
1403
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1404
1404
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1405
1405
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1406
1406
|
...deserialized,
|
|
1407
1407
|
});
|
|
1408
1408
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1409
1409
|
};
|
|
1410
|
-
const
|
|
1410
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1411
1411
|
const body = parsedOutput.body;
|
|
1412
|
-
const deserialized =
|
|
1412
|
+
const deserialized = de_TooManyTagsException(body, context);
|
|
1413
1413
|
const exception = new models_0_1.TooManyTagsException({
|
|
1414
1414
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1415
1415
|
...deserialized,
|
|
1416
1416
|
});
|
|
1417
1417
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1418
1418
|
};
|
|
1419
|
-
const
|
|
1419
|
+
const se_AccessDescription = (input, context) => {
|
|
1420
1420
|
return {
|
|
1421
|
-
...(input.AccessLocation != null && {
|
|
1422
|
-
|
|
1423
|
-
}),
|
|
1424
|
-
...(input.AccessMethod != null && { AccessMethod: serializeAws_json1_1AccessMethod(input.AccessMethod, context) }),
|
|
1421
|
+
...(input.AccessLocation != null && { AccessLocation: se_GeneralName(input.AccessLocation, context) }),
|
|
1422
|
+
...(input.AccessMethod != null && { AccessMethod: se_AccessMethod(input.AccessMethod, context) }),
|
|
1425
1423
|
};
|
|
1426
1424
|
};
|
|
1427
|
-
const
|
|
1425
|
+
const se_AccessDescriptionList = (input, context) => {
|
|
1428
1426
|
return input
|
|
1429
1427
|
.filter((e) => e != null)
|
|
1430
1428
|
.map((entry) => {
|
|
1431
|
-
return
|
|
1429
|
+
return se_AccessDescription(entry, context);
|
|
1432
1430
|
});
|
|
1433
1431
|
};
|
|
1434
|
-
const
|
|
1432
|
+
const se_AccessMethod = (input, context) => {
|
|
1435
1433
|
return {
|
|
1436
1434
|
...(input.AccessMethodType != null && { AccessMethodType: input.AccessMethodType }),
|
|
1437
1435
|
...(input.CustomObjectIdentifier != null && { CustomObjectIdentifier: input.CustomObjectIdentifier }),
|
|
1438
1436
|
};
|
|
1439
1437
|
};
|
|
1440
|
-
const
|
|
1438
|
+
const se_ActionList = (input, context) => {
|
|
1441
1439
|
return input
|
|
1442
1440
|
.filter((e) => e != null)
|
|
1443
1441
|
.map((entry) => {
|
|
1444
1442
|
return entry;
|
|
1445
1443
|
});
|
|
1446
1444
|
};
|
|
1447
|
-
const
|
|
1445
|
+
const se_ApiPassthrough = (input, context) => {
|
|
1448
1446
|
return {
|
|
1449
|
-
...(input.Extensions != null && { Extensions:
|
|
1450
|
-
...(input.Subject != null && { Subject:
|
|
1447
|
+
...(input.Extensions != null && { Extensions: se_Extensions(input.Extensions, context) }),
|
|
1448
|
+
...(input.Subject != null && { Subject: se_ASN1Subject(input.Subject, context) }),
|
|
1451
1449
|
};
|
|
1452
1450
|
};
|
|
1453
|
-
const
|
|
1451
|
+
const se_ASN1Subject = (input, context) => {
|
|
1454
1452
|
return {
|
|
1455
1453
|
...(input.CommonName != null && { CommonName: input.CommonName }),
|
|
1456
1454
|
...(input.Country != null && { Country: input.Country }),
|
|
1457
1455
|
...(input.CustomAttributes != null && {
|
|
1458
|
-
CustomAttributes:
|
|
1456
|
+
CustomAttributes: se_CustomAttributeList(input.CustomAttributes, context),
|
|
1459
1457
|
}),
|
|
1460
1458
|
...(input.DistinguishedNameQualifier != null && { DistinguishedNameQualifier: input.DistinguishedNameQualifier }),
|
|
1461
1459
|
...(input.GenerationQualifier != null && { GenerationQualifier: input.GenerationQualifier }),
|
|
@@ -1471,54 +1469,52 @@ const serializeAws_json1_1ASN1Subject = (input, context) => {
|
|
|
1471
1469
|
...(input.Title != null && { Title: input.Title }),
|
|
1472
1470
|
};
|
|
1473
1471
|
};
|
|
1474
|
-
const
|
|
1472
|
+
const se_CertificateAuthorityConfiguration = (input, context) => {
|
|
1475
1473
|
return {
|
|
1476
|
-
...(input.CsrExtensions != null && {
|
|
1477
|
-
CsrExtensions: serializeAws_json1_1CsrExtensions(input.CsrExtensions, context),
|
|
1478
|
-
}),
|
|
1474
|
+
...(input.CsrExtensions != null && { CsrExtensions: se_CsrExtensions(input.CsrExtensions, context) }),
|
|
1479
1475
|
...(input.KeyAlgorithm != null && { KeyAlgorithm: input.KeyAlgorithm }),
|
|
1480
1476
|
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
1481
|
-
...(input.Subject != null && { Subject:
|
|
1477
|
+
...(input.Subject != null && { Subject: se_ASN1Subject(input.Subject, context) }),
|
|
1482
1478
|
};
|
|
1483
1479
|
};
|
|
1484
|
-
const
|
|
1480
|
+
const se_CertificatePolicyList = (input, context) => {
|
|
1485
1481
|
return input
|
|
1486
1482
|
.filter((e) => e != null)
|
|
1487
1483
|
.map((entry) => {
|
|
1488
|
-
return
|
|
1484
|
+
return se_PolicyInformation(entry, context);
|
|
1489
1485
|
});
|
|
1490
1486
|
};
|
|
1491
|
-
const
|
|
1487
|
+
const se_CreateCertificateAuthorityAuditReportRequest = (input, context) => {
|
|
1492
1488
|
return {
|
|
1493
1489
|
...(input.AuditReportResponseFormat != null && { AuditReportResponseFormat: input.AuditReportResponseFormat }),
|
|
1494
1490
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1495
1491
|
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
1496
1492
|
};
|
|
1497
1493
|
};
|
|
1498
|
-
const
|
|
1494
|
+
const se_CreateCertificateAuthorityRequest = (input, context) => {
|
|
1499
1495
|
return {
|
|
1500
1496
|
...(input.CertificateAuthorityConfiguration != null && {
|
|
1501
|
-
CertificateAuthorityConfiguration:
|
|
1497
|
+
CertificateAuthorityConfiguration: se_CertificateAuthorityConfiguration(input.CertificateAuthorityConfiguration, context),
|
|
1502
1498
|
}),
|
|
1503
1499
|
...(input.CertificateAuthorityType != null && { CertificateAuthorityType: input.CertificateAuthorityType }),
|
|
1504
1500
|
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1505
1501
|
...(input.KeyStorageSecurityStandard != null && { KeyStorageSecurityStandard: input.KeyStorageSecurityStandard }),
|
|
1506
1502
|
...(input.RevocationConfiguration != null && {
|
|
1507
|
-
RevocationConfiguration:
|
|
1503
|
+
RevocationConfiguration: se_RevocationConfiguration(input.RevocationConfiguration, context),
|
|
1508
1504
|
}),
|
|
1509
|
-
...(input.Tags != null && { Tags:
|
|
1505
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1510
1506
|
...(input.UsageMode != null && { UsageMode: input.UsageMode }),
|
|
1511
1507
|
};
|
|
1512
1508
|
};
|
|
1513
|
-
const
|
|
1509
|
+
const se_CreatePermissionRequest = (input, context) => {
|
|
1514
1510
|
return {
|
|
1515
|
-
...(input.Actions != null && { Actions:
|
|
1511
|
+
...(input.Actions != null && { Actions: se_ActionList(input.Actions, context) }),
|
|
1516
1512
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1517
1513
|
...(input.Principal != null && { Principal: input.Principal }),
|
|
1518
1514
|
...(input.SourceAccount != null && { SourceAccount: input.SourceAccount }),
|
|
1519
1515
|
};
|
|
1520
1516
|
};
|
|
1521
|
-
const
|
|
1517
|
+
const se_CrlConfiguration = (input, context) => {
|
|
1522
1518
|
return {
|
|
1523
1519
|
...(input.CustomCname != null && { CustomCname: input.CustomCname }),
|
|
1524
1520
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
@@ -1527,42 +1523,42 @@ const serializeAws_json1_1CrlConfiguration = (input, context) => {
|
|
|
1527
1523
|
...(input.S3ObjectAcl != null && { S3ObjectAcl: input.S3ObjectAcl }),
|
|
1528
1524
|
};
|
|
1529
1525
|
};
|
|
1530
|
-
const
|
|
1526
|
+
const se_CsrExtensions = (input, context) => {
|
|
1531
1527
|
return {
|
|
1532
|
-
...(input.KeyUsage != null && { KeyUsage:
|
|
1528
|
+
...(input.KeyUsage != null && { KeyUsage: se_KeyUsage(input.KeyUsage, context) }),
|
|
1533
1529
|
...(input.SubjectInformationAccess != null && {
|
|
1534
|
-
SubjectInformationAccess:
|
|
1530
|
+
SubjectInformationAccess: se_AccessDescriptionList(input.SubjectInformationAccess, context),
|
|
1535
1531
|
}),
|
|
1536
1532
|
};
|
|
1537
1533
|
};
|
|
1538
|
-
const
|
|
1534
|
+
const se_CustomAttribute = (input, context) => {
|
|
1539
1535
|
return {
|
|
1540
1536
|
...(input.ObjectIdentifier != null && { ObjectIdentifier: input.ObjectIdentifier }),
|
|
1541
1537
|
...(input.Value != null && { Value: input.Value }),
|
|
1542
1538
|
};
|
|
1543
1539
|
};
|
|
1544
|
-
const
|
|
1540
|
+
const se_CustomAttributeList = (input, context) => {
|
|
1545
1541
|
return input
|
|
1546
1542
|
.filter((e) => e != null)
|
|
1547
1543
|
.map((entry) => {
|
|
1548
|
-
return
|
|
1544
|
+
return se_CustomAttribute(entry, context);
|
|
1549
1545
|
});
|
|
1550
1546
|
};
|
|
1551
|
-
const
|
|
1547
|
+
const se_CustomExtension = (input, context) => {
|
|
1552
1548
|
return {
|
|
1553
1549
|
...(input.Critical != null && { Critical: input.Critical }),
|
|
1554
1550
|
...(input.ObjectIdentifier != null && { ObjectIdentifier: input.ObjectIdentifier }),
|
|
1555
1551
|
...(input.Value != null && { Value: input.Value }),
|
|
1556
1552
|
};
|
|
1557
1553
|
};
|
|
1558
|
-
const
|
|
1554
|
+
const se_CustomExtensionList = (input, context) => {
|
|
1559
1555
|
return input
|
|
1560
1556
|
.filter((e) => e != null)
|
|
1561
1557
|
.map((entry) => {
|
|
1562
|
-
return
|
|
1558
|
+
return se_CustomExtension(entry, context);
|
|
1563
1559
|
});
|
|
1564
1560
|
};
|
|
1565
|
-
const
|
|
1561
|
+
const se_DeleteCertificateAuthorityRequest = (input, context) => {
|
|
1566
1562
|
return {
|
|
1567
1563
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1568
1564
|
...(input.PermanentDeletionTimeInDays != null && {
|
|
@@ -1570,36 +1566,36 @@ const serializeAws_json1_1DeleteCertificateAuthorityRequest = (input, context) =
|
|
|
1570
1566
|
}),
|
|
1571
1567
|
};
|
|
1572
1568
|
};
|
|
1573
|
-
const
|
|
1569
|
+
const se_DeletePermissionRequest = (input, context) => {
|
|
1574
1570
|
return {
|
|
1575
1571
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1576
1572
|
...(input.Principal != null && { Principal: input.Principal }),
|
|
1577
1573
|
...(input.SourceAccount != null && { SourceAccount: input.SourceAccount }),
|
|
1578
1574
|
};
|
|
1579
1575
|
};
|
|
1580
|
-
const
|
|
1576
|
+
const se_DeletePolicyRequest = (input, context) => {
|
|
1581
1577
|
return {
|
|
1582
1578
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1583
1579
|
};
|
|
1584
1580
|
};
|
|
1585
|
-
const
|
|
1581
|
+
const se_DescribeCertificateAuthorityAuditReportRequest = (input, context) => {
|
|
1586
1582
|
return {
|
|
1587
1583
|
...(input.AuditReportId != null && { AuditReportId: input.AuditReportId }),
|
|
1588
1584
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1589
1585
|
};
|
|
1590
1586
|
};
|
|
1591
|
-
const
|
|
1587
|
+
const se_DescribeCertificateAuthorityRequest = (input, context) => {
|
|
1592
1588
|
return {
|
|
1593
1589
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1594
1590
|
};
|
|
1595
1591
|
};
|
|
1596
|
-
const
|
|
1592
|
+
const se_EdiPartyName = (input, context) => {
|
|
1597
1593
|
return {
|
|
1598
1594
|
...(input.NameAssigner != null && { NameAssigner: input.NameAssigner }),
|
|
1599
1595
|
...(input.PartyName != null && { PartyName: input.PartyName }),
|
|
1600
1596
|
};
|
|
1601
1597
|
};
|
|
1602
|
-
const
|
|
1598
|
+
const se_ExtendedKeyUsage = (input, context) => {
|
|
1603
1599
|
return {
|
|
1604
1600
|
...(input.ExtendedKeyUsageObjectIdentifier != null && {
|
|
1605
1601
|
ExtendedKeyUsageObjectIdentifier: input.ExtendedKeyUsageObjectIdentifier,
|
|
@@ -1607,96 +1603,90 @@ const serializeAws_json1_1ExtendedKeyUsage = (input, context) => {
|
|
|
1607
1603
|
...(input.ExtendedKeyUsageType != null && { ExtendedKeyUsageType: input.ExtendedKeyUsageType }),
|
|
1608
1604
|
};
|
|
1609
1605
|
};
|
|
1610
|
-
const
|
|
1606
|
+
const se_ExtendedKeyUsageList = (input, context) => {
|
|
1611
1607
|
return input
|
|
1612
1608
|
.filter((e) => e != null)
|
|
1613
1609
|
.map((entry) => {
|
|
1614
|
-
return
|
|
1610
|
+
return se_ExtendedKeyUsage(entry, context);
|
|
1615
1611
|
});
|
|
1616
1612
|
};
|
|
1617
|
-
const
|
|
1613
|
+
const se_Extensions = (input, context) => {
|
|
1618
1614
|
return {
|
|
1619
1615
|
...(input.CertificatePolicies != null && {
|
|
1620
|
-
CertificatePolicies:
|
|
1616
|
+
CertificatePolicies: se_CertificatePolicyList(input.CertificatePolicies, context),
|
|
1621
1617
|
}),
|
|
1622
1618
|
...(input.CustomExtensions != null && {
|
|
1623
|
-
CustomExtensions:
|
|
1619
|
+
CustomExtensions: se_CustomExtensionList(input.CustomExtensions, context),
|
|
1624
1620
|
}),
|
|
1625
1621
|
...(input.ExtendedKeyUsage != null && {
|
|
1626
|
-
ExtendedKeyUsage:
|
|
1622
|
+
ExtendedKeyUsage: se_ExtendedKeyUsageList(input.ExtendedKeyUsage, context),
|
|
1627
1623
|
}),
|
|
1628
|
-
...(input.KeyUsage != null && { KeyUsage:
|
|
1624
|
+
...(input.KeyUsage != null && { KeyUsage: se_KeyUsage(input.KeyUsage, context) }),
|
|
1629
1625
|
...(input.SubjectAlternativeNames != null && {
|
|
1630
|
-
SubjectAlternativeNames:
|
|
1626
|
+
SubjectAlternativeNames: se_GeneralNameList(input.SubjectAlternativeNames, context),
|
|
1631
1627
|
}),
|
|
1632
1628
|
};
|
|
1633
1629
|
};
|
|
1634
|
-
const
|
|
1630
|
+
const se_GeneralName = (input, context) => {
|
|
1635
1631
|
return {
|
|
1636
|
-
...(input.DirectoryName != null && {
|
|
1637
|
-
DirectoryName: serializeAws_json1_1ASN1Subject(input.DirectoryName, context),
|
|
1638
|
-
}),
|
|
1632
|
+
...(input.DirectoryName != null && { DirectoryName: se_ASN1Subject(input.DirectoryName, context) }),
|
|
1639
1633
|
...(input.DnsName != null && { DnsName: input.DnsName }),
|
|
1640
|
-
...(input.EdiPartyName != null && { EdiPartyName:
|
|
1634
|
+
...(input.EdiPartyName != null && { EdiPartyName: se_EdiPartyName(input.EdiPartyName, context) }),
|
|
1641
1635
|
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
1642
|
-
...(input.OtherName != null && { OtherName:
|
|
1636
|
+
...(input.OtherName != null && { OtherName: se_OtherName(input.OtherName, context) }),
|
|
1643
1637
|
...(input.RegisteredId != null && { RegisteredId: input.RegisteredId }),
|
|
1644
1638
|
...(input.Rfc822Name != null && { Rfc822Name: input.Rfc822Name }),
|
|
1645
1639
|
...(input.UniformResourceIdentifier != null && { UniformResourceIdentifier: input.UniformResourceIdentifier }),
|
|
1646
1640
|
};
|
|
1647
1641
|
};
|
|
1648
|
-
const
|
|
1642
|
+
const se_GeneralNameList = (input, context) => {
|
|
1649
1643
|
return input
|
|
1650
1644
|
.filter((e) => e != null)
|
|
1651
1645
|
.map((entry) => {
|
|
1652
|
-
return
|
|
1646
|
+
return se_GeneralName(entry, context);
|
|
1653
1647
|
});
|
|
1654
1648
|
};
|
|
1655
|
-
const
|
|
1649
|
+
const se_GetCertificateAuthorityCertificateRequest = (input, context) => {
|
|
1656
1650
|
return {
|
|
1657
1651
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1658
1652
|
};
|
|
1659
1653
|
};
|
|
1660
|
-
const
|
|
1654
|
+
const se_GetCertificateAuthorityCsrRequest = (input, context) => {
|
|
1661
1655
|
return {
|
|
1662
1656
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1663
1657
|
};
|
|
1664
1658
|
};
|
|
1665
|
-
const
|
|
1659
|
+
const se_GetCertificateRequest = (input, context) => {
|
|
1666
1660
|
return {
|
|
1667
1661
|
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1668
1662
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1669
1663
|
};
|
|
1670
1664
|
};
|
|
1671
|
-
const
|
|
1665
|
+
const se_GetPolicyRequest = (input, context) => {
|
|
1672
1666
|
return {
|
|
1673
1667
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1674
1668
|
};
|
|
1675
1669
|
};
|
|
1676
|
-
const
|
|
1670
|
+
const se_ImportCertificateAuthorityCertificateRequest = (input, context) => {
|
|
1677
1671
|
return {
|
|
1678
1672
|
...(input.Certificate != null && { Certificate: context.base64Encoder(input.Certificate) }),
|
|
1679
1673
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1680
1674
|
...(input.CertificateChain != null && { CertificateChain: context.base64Encoder(input.CertificateChain) }),
|
|
1681
1675
|
};
|
|
1682
1676
|
};
|
|
1683
|
-
const
|
|
1677
|
+
const se_IssueCertificateRequest = (input, context) => {
|
|
1684
1678
|
return {
|
|
1685
|
-
...(input.ApiPassthrough != null && {
|
|
1686
|
-
ApiPassthrough: serializeAws_json1_1ApiPassthrough(input.ApiPassthrough, context),
|
|
1687
|
-
}),
|
|
1679
|
+
...(input.ApiPassthrough != null && { ApiPassthrough: se_ApiPassthrough(input.ApiPassthrough, context) }),
|
|
1688
1680
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1689
1681
|
...(input.Csr != null && { Csr: context.base64Encoder(input.Csr) }),
|
|
1690
1682
|
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1691
1683
|
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
1692
1684
|
...(input.TemplateArn != null && { TemplateArn: input.TemplateArn }),
|
|
1693
|
-
...(input.Validity != null && { Validity:
|
|
1694
|
-
...(input.ValidityNotBefore != null && {
|
|
1695
|
-
ValidityNotBefore: serializeAws_json1_1Validity(input.ValidityNotBefore, context),
|
|
1696
|
-
}),
|
|
1685
|
+
...(input.Validity != null && { Validity: se_Validity(input.Validity, context) }),
|
|
1686
|
+
...(input.ValidityNotBefore != null && { ValidityNotBefore: se_Validity(input.ValidityNotBefore, context) }),
|
|
1697
1687
|
};
|
|
1698
1688
|
};
|
|
1699
|
-
const
|
|
1689
|
+
const se_KeyUsage = (input, context) => {
|
|
1700
1690
|
return {
|
|
1701
1691
|
...(input.CRLSign != null && { CRLSign: input.CRLSign }),
|
|
1702
1692
|
...(input.DataEncipherment != null && { DataEncipherment: input.DataEncipherment }),
|
|
@@ -1709,157 +1699,155 @@ const serializeAws_json1_1KeyUsage = (input, context) => {
|
|
|
1709
1699
|
...(input.NonRepudiation != null && { NonRepudiation: input.NonRepudiation }),
|
|
1710
1700
|
};
|
|
1711
1701
|
};
|
|
1712
|
-
const
|
|
1702
|
+
const se_ListCertificateAuthoritiesRequest = (input, context) => {
|
|
1713
1703
|
return {
|
|
1714
1704
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1715
1705
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1716
1706
|
...(input.ResourceOwner != null && { ResourceOwner: input.ResourceOwner }),
|
|
1717
1707
|
};
|
|
1718
1708
|
};
|
|
1719
|
-
const
|
|
1709
|
+
const se_ListPermissionsRequest = (input, context) => {
|
|
1720
1710
|
return {
|
|
1721
1711
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1722
1712
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1723
1713
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1724
1714
|
};
|
|
1725
1715
|
};
|
|
1726
|
-
const
|
|
1716
|
+
const se_ListTagsRequest = (input, context) => {
|
|
1727
1717
|
return {
|
|
1728
1718
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1729
1719
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1730
1720
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1731
1721
|
};
|
|
1732
1722
|
};
|
|
1733
|
-
const
|
|
1723
|
+
const se_OcspConfiguration = (input, context) => {
|
|
1734
1724
|
return {
|
|
1735
1725
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1736
1726
|
...(input.OcspCustomCname != null && { OcspCustomCname: input.OcspCustomCname }),
|
|
1737
1727
|
};
|
|
1738
1728
|
};
|
|
1739
|
-
const
|
|
1729
|
+
const se_OtherName = (input, context) => {
|
|
1740
1730
|
return {
|
|
1741
1731
|
...(input.TypeId != null && { TypeId: input.TypeId }),
|
|
1742
1732
|
...(input.Value != null && { Value: input.Value }),
|
|
1743
1733
|
};
|
|
1744
1734
|
};
|
|
1745
|
-
const
|
|
1735
|
+
const se_PolicyInformation = (input, context) => {
|
|
1746
1736
|
return {
|
|
1747
1737
|
...(input.CertPolicyId != null && { CertPolicyId: input.CertPolicyId }),
|
|
1748
1738
|
...(input.PolicyQualifiers != null && {
|
|
1749
|
-
PolicyQualifiers:
|
|
1739
|
+
PolicyQualifiers: se_PolicyQualifierInfoList(input.PolicyQualifiers, context),
|
|
1750
1740
|
}),
|
|
1751
1741
|
};
|
|
1752
1742
|
};
|
|
1753
|
-
const
|
|
1743
|
+
const se_PolicyQualifierInfo = (input, context) => {
|
|
1754
1744
|
return {
|
|
1755
1745
|
...(input.PolicyQualifierId != null && { PolicyQualifierId: input.PolicyQualifierId }),
|
|
1756
|
-
...(input.Qualifier != null && { Qualifier:
|
|
1746
|
+
...(input.Qualifier != null && { Qualifier: se_Qualifier(input.Qualifier, context) }),
|
|
1757
1747
|
};
|
|
1758
1748
|
};
|
|
1759
|
-
const
|
|
1749
|
+
const se_PolicyQualifierInfoList = (input, context) => {
|
|
1760
1750
|
return input
|
|
1761
1751
|
.filter((e) => e != null)
|
|
1762
1752
|
.map((entry) => {
|
|
1763
|
-
return
|
|
1753
|
+
return se_PolicyQualifierInfo(entry, context);
|
|
1764
1754
|
});
|
|
1765
1755
|
};
|
|
1766
|
-
const
|
|
1756
|
+
const se_PutPolicyRequest = (input, context) => {
|
|
1767
1757
|
return {
|
|
1768
1758
|
...(input.Policy != null && { Policy: input.Policy }),
|
|
1769
1759
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1770
1760
|
};
|
|
1771
1761
|
};
|
|
1772
|
-
const
|
|
1762
|
+
const se_Qualifier = (input, context) => {
|
|
1773
1763
|
return {
|
|
1774
1764
|
...(input.CpsUri != null && { CpsUri: input.CpsUri }),
|
|
1775
1765
|
};
|
|
1776
1766
|
};
|
|
1777
|
-
const
|
|
1767
|
+
const se_RestoreCertificateAuthorityRequest = (input, context) => {
|
|
1778
1768
|
return {
|
|
1779
1769
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1780
1770
|
};
|
|
1781
1771
|
};
|
|
1782
|
-
const
|
|
1772
|
+
const se_RevocationConfiguration = (input, context) => {
|
|
1783
1773
|
return {
|
|
1784
|
-
...(input.CrlConfiguration != null && {
|
|
1785
|
-
CrlConfiguration: serializeAws_json1_1CrlConfiguration(input.CrlConfiguration, context),
|
|
1786
|
-
}),
|
|
1774
|
+
...(input.CrlConfiguration != null && { CrlConfiguration: se_CrlConfiguration(input.CrlConfiguration, context) }),
|
|
1787
1775
|
...(input.OcspConfiguration != null && {
|
|
1788
|
-
OcspConfiguration:
|
|
1776
|
+
OcspConfiguration: se_OcspConfiguration(input.OcspConfiguration, context),
|
|
1789
1777
|
}),
|
|
1790
1778
|
};
|
|
1791
1779
|
};
|
|
1792
|
-
const
|
|
1780
|
+
const se_RevokeCertificateRequest = (input, context) => {
|
|
1793
1781
|
return {
|
|
1794
1782
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1795
1783
|
...(input.CertificateSerial != null && { CertificateSerial: input.CertificateSerial }),
|
|
1796
1784
|
...(input.RevocationReason != null && { RevocationReason: input.RevocationReason }),
|
|
1797
1785
|
};
|
|
1798
1786
|
};
|
|
1799
|
-
const
|
|
1787
|
+
const se_Tag = (input, context) => {
|
|
1800
1788
|
return {
|
|
1801
1789
|
...(input.Key != null && { Key: input.Key }),
|
|
1802
1790
|
...(input.Value != null && { Value: input.Value }),
|
|
1803
1791
|
};
|
|
1804
1792
|
};
|
|
1805
|
-
const
|
|
1793
|
+
const se_TagCertificateAuthorityRequest = (input, context) => {
|
|
1806
1794
|
return {
|
|
1807
1795
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1808
|
-
...(input.Tags != null && { Tags:
|
|
1796
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1809
1797
|
};
|
|
1810
1798
|
};
|
|
1811
|
-
const
|
|
1799
|
+
const se_TagList = (input, context) => {
|
|
1812
1800
|
return input
|
|
1813
1801
|
.filter((e) => e != null)
|
|
1814
1802
|
.map((entry) => {
|
|
1815
|
-
return
|
|
1803
|
+
return se_Tag(entry, context);
|
|
1816
1804
|
});
|
|
1817
1805
|
};
|
|
1818
|
-
const
|
|
1806
|
+
const se_UntagCertificateAuthorityRequest = (input, context) => {
|
|
1819
1807
|
return {
|
|
1820
1808
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1821
|
-
...(input.Tags != null && { Tags:
|
|
1809
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1822
1810
|
};
|
|
1823
1811
|
};
|
|
1824
|
-
const
|
|
1812
|
+
const se_UpdateCertificateAuthorityRequest = (input, context) => {
|
|
1825
1813
|
return {
|
|
1826
1814
|
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1827
1815
|
...(input.RevocationConfiguration != null && {
|
|
1828
|
-
RevocationConfiguration:
|
|
1816
|
+
RevocationConfiguration: se_RevocationConfiguration(input.RevocationConfiguration, context),
|
|
1829
1817
|
}),
|
|
1830
1818
|
...(input.Status != null && { Status: input.Status }),
|
|
1831
1819
|
};
|
|
1832
1820
|
};
|
|
1833
|
-
const
|
|
1821
|
+
const se_Validity = (input, context) => {
|
|
1834
1822
|
return {
|
|
1835
1823
|
...(input.Type != null && { Type: input.Type }),
|
|
1836
1824
|
...(input.Value != null && { Value: input.Value }),
|
|
1837
1825
|
};
|
|
1838
1826
|
};
|
|
1839
|
-
const
|
|
1827
|
+
const de_AccessDescription = (output, context) => {
|
|
1840
1828
|
return {
|
|
1841
|
-
AccessLocation: output.AccessLocation != null ?
|
|
1842
|
-
AccessMethod: output.AccessMethod != null ?
|
|
1829
|
+
AccessLocation: output.AccessLocation != null ? de_GeneralName(output.AccessLocation, context) : undefined,
|
|
1830
|
+
AccessMethod: output.AccessMethod != null ? de_AccessMethod(output.AccessMethod, context) : undefined,
|
|
1843
1831
|
};
|
|
1844
1832
|
};
|
|
1845
|
-
const
|
|
1833
|
+
const de_AccessDescriptionList = (output, context) => {
|
|
1846
1834
|
const retVal = (output || [])
|
|
1847
1835
|
.filter((e) => e != null)
|
|
1848
1836
|
.map((entry) => {
|
|
1849
1837
|
if (entry === null) {
|
|
1850
1838
|
return null;
|
|
1851
1839
|
}
|
|
1852
|
-
return
|
|
1840
|
+
return de_AccessDescription(entry, context);
|
|
1853
1841
|
});
|
|
1854
1842
|
return retVal;
|
|
1855
1843
|
};
|
|
1856
|
-
const
|
|
1844
|
+
const de_AccessMethod = (output, context) => {
|
|
1857
1845
|
return {
|
|
1858
1846
|
AccessMethodType: (0, smithy_client_1.expectString)(output.AccessMethodType),
|
|
1859
1847
|
CustomObjectIdentifier: (0, smithy_client_1.expectString)(output.CustomObjectIdentifier),
|
|
1860
1848
|
};
|
|
1861
1849
|
};
|
|
1862
|
-
const
|
|
1850
|
+
const de_ActionList = (output, context) => {
|
|
1863
1851
|
const retVal = (output || [])
|
|
1864
1852
|
.filter((e) => e != null)
|
|
1865
1853
|
.map((entry) => {
|
|
@@ -1870,13 +1858,11 @@ const deserializeAws_json1_1ActionList = (output, context) => {
|
|
|
1870
1858
|
});
|
|
1871
1859
|
return retVal;
|
|
1872
1860
|
};
|
|
1873
|
-
const
|
|
1861
|
+
const de_ASN1Subject = (output, context) => {
|
|
1874
1862
|
return {
|
|
1875
1863
|
CommonName: (0, smithy_client_1.expectString)(output.CommonName),
|
|
1876
1864
|
Country: (0, smithy_client_1.expectString)(output.Country),
|
|
1877
|
-
CustomAttributes: output.CustomAttributes != null
|
|
1878
|
-
? deserializeAws_json1_1CustomAttributeList(output.CustomAttributes, context)
|
|
1879
|
-
: undefined,
|
|
1865
|
+
CustomAttributes: output.CustomAttributes != null ? de_CustomAttributeList(output.CustomAttributes, context) : undefined,
|
|
1880
1866
|
DistinguishedNameQualifier: (0, smithy_client_1.expectString)(output.DistinguishedNameQualifier),
|
|
1881
1867
|
GenerationQualifier: (0, smithy_client_1.expectString)(output.GenerationQualifier),
|
|
1882
1868
|
GivenName: (0, smithy_client_1.expectString)(output.GivenName),
|
|
@@ -1891,22 +1877,22 @@ const deserializeAws_json1_1ASN1Subject = (output, context) => {
|
|
|
1891
1877
|
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
1892
1878
|
};
|
|
1893
1879
|
};
|
|
1894
|
-
const
|
|
1880
|
+
const de_CertificateAuthorities = (output, context) => {
|
|
1895
1881
|
const retVal = (output || [])
|
|
1896
1882
|
.filter((e) => e != null)
|
|
1897
1883
|
.map((entry) => {
|
|
1898
1884
|
if (entry === null) {
|
|
1899
1885
|
return null;
|
|
1900
1886
|
}
|
|
1901
|
-
return
|
|
1887
|
+
return de_CertificateAuthority(entry, context);
|
|
1902
1888
|
});
|
|
1903
1889
|
return retVal;
|
|
1904
1890
|
};
|
|
1905
|
-
const
|
|
1891
|
+
const de_CertificateAuthority = (output, context) => {
|
|
1906
1892
|
return {
|
|
1907
1893
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1908
1894
|
CertificateAuthorityConfiguration: output.CertificateAuthorityConfiguration != null
|
|
1909
|
-
?
|
|
1895
|
+
? de_CertificateAuthorityConfiguration(output.CertificateAuthorityConfiguration, context)
|
|
1910
1896
|
: undefined,
|
|
1911
1897
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
1912
1898
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
@@ -1921,7 +1907,7 @@ const deserializeAws_json1_1CertificateAuthority = (output, context) => {
|
|
|
1921
1907
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RestorableUntil)))
|
|
1922
1908
|
: undefined,
|
|
1923
1909
|
RevocationConfiguration: output.RevocationConfiguration != null
|
|
1924
|
-
?
|
|
1910
|
+
? de_RevocationConfiguration(output.RevocationConfiguration, context)
|
|
1925
1911
|
: undefined,
|
|
1926
1912
|
Serial: (0, smithy_client_1.expectString)(output.Serial),
|
|
1927
1913
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -1929,36 +1915,36 @@ const deserializeAws_json1_1CertificateAuthority = (output, context) => {
|
|
|
1929
1915
|
UsageMode: (0, smithy_client_1.expectString)(output.UsageMode),
|
|
1930
1916
|
};
|
|
1931
1917
|
};
|
|
1932
|
-
const
|
|
1918
|
+
const de_CertificateAuthorityConfiguration = (output, context) => {
|
|
1933
1919
|
return {
|
|
1934
|
-
CsrExtensions: output.CsrExtensions != null ?
|
|
1920
|
+
CsrExtensions: output.CsrExtensions != null ? de_CsrExtensions(output.CsrExtensions, context) : undefined,
|
|
1935
1921
|
KeyAlgorithm: (0, smithy_client_1.expectString)(output.KeyAlgorithm),
|
|
1936
1922
|
SigningAlgorithm: (0, smithy_client_1.expectString)(output.SigningAlgorithm),
|
|
1937
|
-
Subject: output.Subject != null ?
|
|
1923
|
+
Subject: output.Subject != null ? de_ASN1Subject(output.Subject, context) : undefined,
|
|
1938
1924
|
};
|
|
1939
1925
|
};
|
|
1940
|
-
const
|
|
1926
|
+
const de_CertificateMismatchException = (output, context) => {
|
|
1941
1927
|
return {
|
|
1942
1928
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1943
1929
|
};
|
|
1944
1930
|
};
|
|
1945
|
-
const
|
|
1931
|
+
const de_ConcurrentModificationException = (output, context) => {
|
|
1946
1932
|
return {
|
|
1947
1933
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1948
1934
|
};
|
|
1949
1935
|
};
|
|
1950
|
-
const
|
|
1936
|
+
const de_CreateCertificateAuthorityAuditReportResponse = (output, context) => {
|
|
1951
1937
|
return {
|
|
1952
1938
|
AuditReportId: (0, smithy_client_1.expectString)(output.AuditReportId),
|
|
1953
1939
|
S3Key: (0, smithy_client_1.expectString)(output.S3Key),
|
|
1954
1940
|
};
|
|
1955
1941
|
};
|
|
1956
|
-
const
|
|
1942
|
+
const de_CreateCertificateAuthorityResponse = (output, context) => {
|
|
1957
1943
|
return {
|
|
1958
1944
|
CertificateAuthorityArn: (0, smithy_client_1.expectString)(output.CertificateAuthorityArn),
|
|
1959
1945
|
};
|
|
1960
1946
|
};
|
|
1961
|
-
const
|
|
1947
|
+
const de_CrlConfiguration = (output, context) => {
|
|
1962
1948
|
return {
|
|
1963
1949
|
CustomCname: (0, smithy_client_1.expectString)(output.CustomCname),
|
|
1964
1950
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
@@ -1967,32 +1953,32 @@ const deserializeAws_json1_1CrlConfiguration = (output, context) => {
|
|
|
1967
1953
|
S3ObjectAcl: (0, smithy_client_1.expectString)(output.S3ObjectAcl),
|
|
1968
1954
|
};
|
|
1969
1955
|
};
|
|
1970
|
-
const
|
|
1956
|
+
const de_CsrExtensions = (output, context) => {
|
|
1971
1957
|
return {
|
|
1972
|
-
KeyUsage: output.KeyUsage != null ?
|
|
1958
|
+
KeyUsage: output.KeyUsage != null ? de_KeyUsage(output.KeyUsage, context) : undefined,
|
|
1973
1959
|
SubjectInformationAccess: output.SubjectInformationAccess != null
|
|
1974
|
-
?
|
|
1960
|
+
? de_AccessDescriptionList(output.SubjectInformationAccess, context)
|
|
1975
1961
|
: undefined,
|
|
1976
1962
|
};
|
|
1977
1963
|
};
|
|
1978
|
-
const
|
|
1964
|
+
const de_CustomAttribute = (output, context) => {
|
|
1979
1965
|
return {
|
|
1980
1966
|
ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
|
|
1981
1967
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1982
1968
|
};
|
|
1983
1969
|
};
|
|
1984
|
-
const
|
|
1970
|
+
const de_CustomAttributeList = (output, context) => {
|
|
1985
1971
|
const retVal = (output || [])
|
|
1986
1972
|
.filter((e) => e != null)
|
|
1987
1973
|
.map((entry) => {
|
|
1988
1974
|
if (entry === null) {
|
|
1989
1975
|
return null;
|
|
1990
1976
|
}
|
|
1991
|
-
return
|
|
1977
|
+
return de_CustomAttribute(entry, context);
|
|
1992
1978
|
});
|
|
1993
1979
|
return retVal;
|
|
1994
1980
|
};
|
|
1995
|
-
const
|
|
1981
|
+
const de_DescribeCertificateAuthorityAuditReportResponse = (output, context) => {
|
|
1996
1982
|
return {
|
|
1997
1983
|
AuditReportStatus: (0, smithy_client_1.expectString)(output.AuditReportStatus),
|
|
1998
1984
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
@@ -2000,94 +1986,92 @@ const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportResponse = (o
|
|
|
2000
1986
|
S3Key: (0, smithy_client_1.expectString)(output.S3Key),
|
|
2001
1987
|
};
|
|
2002
1988
|
};
|
|
2003
|
-
const
|
|
1989
|
+
const de_DescribeCertificateAuthorityResponse = (output, context) => {
|
|
2004
1990
|
return {
|
|
2005
|
-
CertificateAuthority: output.CertificateAuthority != null
|
|
2006
|
-
? deserializeAws_json1_1CertificateAuthority(output.CertificateAuthority, context)
|
|
2007
|
-
: undefined,
|
|
1991
|
+
CertificateAuthority: output.CertificateAuthority != null ? de_CertificateAuthority(output.CertificateAuthority, context) : undefined,
|
|
2008
1992
|
};
|
|
2009
1993
|
};
|
|
2010
|
-
const
|
|
1994
|
+
const de_EdiPartyName = (output, context) => {
|
|
2011
1995
|
return {
|
|
2012
1996
|
NameAssigner: (0, smithy_client_1.expectString)(output.NameAssigner),
|
|
2013
1997
|
PartyName: (0, smithy_client_1.expectString)(output.PartyName),
|
|
2014
1998
|
};
|
|
2015
1999
|
};
|
|
2016
|
-
const
|
|
2000
|
+
const de_GeneralName = (output, context) => {
|
|
2017
2001
|
return {
|
|
2018
|
-
DirectoryName: output.DirectoryName != null ?
|
|
2002
|
+
DirectoryName: output.DirectoryName != null ? de_ASN1Subject(output.DirectoryName, context) : undefined,
|
|
2019
2003
|
DnsName: (0, smithy_client_1.expectString)(output.DnsName),
|
|
2020
|
-
EdiPartyName: output.EdiPartyName != null ?
|
|
2004
|
+
EdiPartyName: output.EdiPartyName != null ? de_EdiPartyName(output.EdiPartyName, context) : undefined,
|
|
2021
2005
|
IpAddress: (0, smithy_client_1.expectString)(output.IpAddress),
|
|
2022
|
-
OtherName: output.OtherName != null ?
|
|
2006
|
+
OtherName: output.OtherName != null ? de_OtherName(output.OtherName, context) : undefined,
|
|
2023
2007
|
RegisteredId: (0, smithy_client_1.expectString)(output.RegisteredId),
|
|
2024
2008
|
Rfc822Name: (0, smithy_client_1.expectString)(output.Rfc822Name),
|
|
2025
2009
|
UniformResourceIdentifier: (0, smithy_client_1.expectString)(output.UniformResourceIdentifier),
|
|
2026
2010
|
};
|
|
2027
2011
|
};
|
|
2028
|
-
const
|
|
2012
|
+
const de_GetCertificateAuthorityCertificateResponse = (output, context) => {
|
|
2029
2013
|
return {
|
|
2030
2014
|
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
2031
2015
|
CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
|
|
2032
2016
|
};
|
|
2033
2017
|
};
|
|
2034
|
-
const
|
|
2018
|
+
const de_GetCertificateAuthorityCsrResponse = (output, context) => {
|
|
2035
2019
|
return {
|
|
2036
2020
|
Csr: (0, smithy_client_1.expectString)(output.Csr),
|
|
2037
2021
|
};
|
|
2038
2022
|
};
|
|
2039
|
-
const
|
|
2023
|
+
const de_GetCertificateResponse = (output, context) => {
|
|
2040
2024
|
return {
|
|
2041
2025
|
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
2042
2026
|
CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
|
|
2043
2027
|
};
|
|
2044
2028
|
};
|
|
2045
|
-
const
|
|
2029
|
+
const de_GetPolicyResponse = (output, context) => {
|
|
2046
2030
|
return {
|
|
2047
2031
|
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
2048
2032
|
};
|
|
2049
2033
|
};
|
|
2050
|
-
const
|
|
2034
|
+
const de_InvalidArgsException = (output, context) => {
|
|
2051
2035
|
return {
|
|
2052
2036
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2053
2037
|
};
|
|
2054
2038
|
};
|
|
2055
|
-
const
|
|
2039
|
+
const de_InvalidArnException = (output, context) => {
|
|
2056
2040
|
return {
|
|
2057
2041
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2058
2042
|
};
|
|
2059
2043
|
};
|
|
2060
|
-
const
|
|
2044
|
+
const de_InvalidNextTokenException = (output, context) => {
|
|
2061
2045
|
return {
|
|
2062
2046
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2063
2047
|
};
|
|
2064
2048
|
};
|
|
2065
|
-
const
|
|
2049
|
+
const de_InvalidPolicyException = (output, context) => {
|
|
2066
2050
|
return {
|
|
2067
2051
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2068
2052
|
};
|
|
2069
2053
|
};
|
|
2070
|
-
const
|
|
2054
|
+
const de_InvalidRequestException = (output, context) => {
|
|
2071
2055
|
return {
|
|
2072
2056
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2073
2057
|
};
|
|
2074
2058
|
};
|
|
2075
|
-
const
|
|
2059
|
+
const de_InvalidStateException = (output, context) => {
|
|
2076
2060
|
return {
|
|
2077
2061
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2078
2062
|
};
|
|
2079
2063
|
};
|
|
2080
|
-
const
|
|
2064
|
+
const de_InvalidTagException = (output, context) => {
|
|
2081
2065
|
return {
|
|
2082
2066
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2083
2067
|
};
|
|
2084
2068
|
};
|
|
2085
|
-
const
|
|
2069
|
+
const de_IssueCertificateResponse = (output, context) => {
|
|
2086
2070
|
return {
|
|
2087
2071
|
CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
|
|
2088
2072
|
};
|
|
2089
2073
|
};
|
|
2090
|
-
const
|
|
2074
|
+
const de_KeyUsage = (output, context) => {
|
|
2091
2075
|
return {
|
|
2092
2076
|
CRLSign: (0, smithy_client_1.expectBoolean)(output.CRLSign),
|
|
2093
2077
|
DataEncipherment: (0, smithy_client_1.expectBoolean)(output.DataEncipherment),
|
|
@@ -2100,61 +2084,61 @@ const deserializeAws_json1_1KeyUsage = (output, context) => {
|
|
|
2100
2084
|
NonRepudiation: (0, smithy_client_1.expectBoolean)(output.NonRepudiation),
|
|
2101
2085
|
};
|
|
2102
2086
|
};
|
|
2103
|
-
const
|
|
2087
|
+
const de_LimitExceededException = (output, context) => {
|
|
2104
2088
|
return {
|
|
2105
2089
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2106
2090
|
};
|
|
2107
2091
|
};
|
|
2108
|
-
const
|
|
2092
|
+
const de_ListCertificateAuthoritiesResponse = (output, context) => {
|
|
2109
2093
|
return {
|
|
2110
2094
|
CertificateAuthorities: output.CertificateAuthorities != null
|
|
2111
|
-
?
|
|
2095
|
+
? de_CertificateAuthorities(output.CertificateAuthorities, context)
|
|
2112
2096
|
: undefined,
|
|
2113
2097
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2114
2098
|
};
|
|
2115
2099
|
};
|
|
2116
|
-
const
|
|
2100
|
+
const de_ListPermissionsResponse = (output, context) => {
|
|
2117
2101
|
return {
|
|
2118
2102
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2119
|
-
Permissions: output.Permissions != null ?
|
|
2103
|
+
Permissions: output.Permissions != null ? de_PermissionList(output.Permissions, context) : undefined,
|
|
2120
2104
|
};
|
|
2121
2105
|
};
|
|
2122
|
-
const
|
|
2106
|
+
const de_ListTagsResponse = (output, context) => {
|
|
2123
2107
|
return {
|
|
2124
2108
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2125
|
-
Tags: output.Tags != null ?
|
|
2109
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2126
2110
|
};
|
|
2127
2111
|
};
|
|
2128
|
-
const
|
|
2112
|
+
const de_LockoutPreventedException = (output, context) => {
|
|
2129
2113
|
return {
|
|
2130
2114
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2131
2115
|
};
|
|
2132
2116
|
};
|
|
2133
|
-
const
|
|
2117
|
+
const de_MalformedCertificateException = (output, context) => {
|
|
2134
2118
|
return {
|
|
2135
2119
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2136
2120
|
};
|
|
2137
2121
|
};
|
|
2138
|
-
const
|
|
2122
|
+
const de_MalformedCSRException = (output, context) => {
|
|
2139
2123
|
return {
|
|
2140
2124
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2141
2125
|
};
|
|
2142
2126
|
};
|
|
2143
|
-
const
|
|
2127
|
+
const de_OcspConfiguration = (output, context) => {
|
|
2144
2128
|
return {
|
|
2145
2129
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
2146
2130
|
OcspCustomCname: (0, smithy_client_1.expectString)(output.OcspCustomCname),
|
|
2147
2131
|
};
|
|
2148
2132
|
};
|
|
2149
|
-
const
|
|
2133
|
+
const de_OtherName = (output, context) => {
|
|
2150
2134
|
return {
|
|
2151
2135
|
TypeId: (0, smithy_client_1.expectString)(output.TypeId),
|
|
2152
2136
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2153
2137
|
};
|
|
2154
2138
|
};
|
|
2155
|
-
const
|
|
2139
|
+
const de_Permission = (output, context) => {
|
|
2156
2140
|
return {
|
|
2157
|
-
Actions: output.Actions != null ?
|
|
2141
|
+
Actions: output.Actions != null ? de_ActionList(output.Actions, context) : undefined,
|
|
2158
2142
|
CertificateAuthorityArn: (0, smithy_client_1.expectString)(output.CertificateAuthorityArn),
|
|
2159
2143
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2160
2144
|
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
@@ -2162,70 +2146,66 @@ const deserializeAws_json1_1Permission = (output, context) => {
|
|
|
2162
2146
|
SourceAccount: (0, smithy_client_1.expectString)(output.SourceAccount),
|
|
2163
2147
|
};
|
|
2164
2148
|
};
|
|
2165
|
-
const
|
|
2149
|
+
const de_PermissionAlreadyExistsException = (output, context) => {
|
|
2166
2150
|
return {
|
|
2167
2151
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2168
2152
|
};
|
|
2169
2153
|
};
|
|
2170
|
-
const
|
|
2154
|
+
const de_PermissionList = (output, context) => {
|
|
2171
2155
|
const retVal = (output || [])
|
|
2172
2156
|
.filter((e) => e != null)
|
|
2173
2157
|
.map((entry) => {
|
|
2174
2158
|
if (entry === null) {
|
|
2175
2159
|
return null;
|
|
2176
2160
|
}
|
|
2177
|
-
return
|
|
2161
|
+
return de_Permission(entry, context);
|
|
2178
2162
|
});
|
|
2179
2163
|
return retVal;
|
|
2180
2164
|
};
|
|
2181
|
-
const
|
|
2165
|
+
const de_RequestAlreadyProcessedException = (output, context) => {
|
|
2182
2166
|
return {
|
|
2183
2167
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2184
2168
|
};
|
|
2185
2169
|
};
|
|
2186
|
-
const
|
|
2170
|
+
const de_RequestFailedException = (output, context) => {
|
|
2187
2171
|
return {
|
|
2188
2172
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2189
2173
|
};
|
|
2190
2174
|
};
|
|
2191
|
-
const
|
|
2175
|
+
const de_RequestInProgressException = (output, context) => {
|
|
2192
2176
|
return {
|
|
2193
2177
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2194
2178
|
};
|
|
2195
2179
|
};
|
|
2196
|
-
const
|
|
2180
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
2197
2181
|
return {
|
|
2198
2182
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2199
2183
|
};
|
|
2200
2184
|
};
|
|
2201
|
-
const
|
|
2185
|
+
const de_RevocationConfiguration = (output, context) => {
|
|
2202
2186
|
return {
|
|
2203
|
-
CrlConfiguration: output.CrlConfiguration != null
|
|
2204
|
-
|
|
2205
|
-
: undefined,
|
|
2206
|
-
OcspConfiguration: output.OcspConfiguration != null
|
|
2207
|
-
? deserializeAws_json1_1OcspConfiguration(output.OcspConfiguration, context)
|
|
2208
|
-
: undefined,
|
|
2187
|
+
CrlConfiguration: output.CrlConfiguration != null ? de_CrlConfiguration(output.CrlConfiguration, context) : undefined,
|
|
2188
|
+
OcspConfiguration: output.OcspConfiguration != null ? de_OcspConfiguration(output.OcspConfiguration, context) : undefined,
|
|
2209
2189
|
};
|
|
2210
2190
|
};
|
|
2211
|
-
const
|
|
2191
|
+
const de_Tag = (output, context) => {
|
|
2212
2192
|
return {
|
|
2213
2193
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2214
2194
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2215
2195
|
};
|
|
2216
2196
|
};
|
|
2217
|
-
const
|
|
2197
|
+
const de_TagList = (output, context) => {
|
|
2218
2198
|
const retVal = (output || [])
|
|
2219
2199
|
.filter((e) => e != null)
|
|
2220
2200
|
.map((entry) => {
|
|
2221
2201
|
if (entry === null) {
|
|
2222
2202
|
return null;
|
|
2223
2203
|
}
|
|
2224
|
-
return
|
|
2204
|
+
return de_Tag(entry, context);
|
|
2225
2205
|
});
|
|
2226
2206
|
return retVal;
|
|
2227
2207
|
};
|
|
2228
|
-
const
|
|
2208
|
+
const de_TooManyTagsException = (output, context) => {
|
|
2229
2209
|
return {
|
|
2230
2210
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2231
2211
|
};
|