@aws-sdk/client-pca-connector-ad 3.490.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/PcaConnectorAd.js +1 -61
- package/dist-cjs/PcaConnectorAdClient.js +1 -43
- package/dist-cjs/commands/CreateConnectorCommand.js +1 -28
- package/dist-cjs/commands/CreateDirectoryRegistrationCommand.js +1 -28
- package/dist-cjs/commands/CreateServicePrincipalNameCommand.js +1 -28
- package/dist-cjs/commands/CreateTemplateCommand.js +1 -28
- package/dist-cjs/commands/CreateTemplateGroupAccessControlEntryCommand.js +1 -28
- package/dist-cjs/commands/DeleteConnectorCommand.js +1 -28
- package/dist-cjs/commands/DeleteDirectoryRegistrationCommand.js +1 -28
- package/dist-cjs/commands/DeleteServicePrincipalNameCommand.js +1 -28
- package/dist-cjs/commands/DeleteTemplateCommand.js +1 -28
- package/dist-cjs/commands/DeleteTemplateGroupAccessControlEntryCommand.js +1 -28
- package/dist-cjs/commands/GetConnectorCommand.js +1 -28
- package/dist-cjs/commands/GetDirectoryRegistrationCommand.js +1 -28
- package/dist-cjs/commands/GetServicePrincipalNameCommand.js +1 -28
- package/dist-cjs/commands/GetTemplateCommand.js +1 -28
- package/dist-cjs/commands/GetTemplateGroupAccessControlEntryCommand.js +1 -28
- package/dist-cjs/commands/ListConnectorsCommand.js +1 -28
- package/dist-cjs/commands/ListDirectoryRegistrationsCommand.js +1 -28
- package/dist-cjs/commands/ListServicePrincipalNamesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTemplateGroupAccessControlEntriesCommand.js +1 -28
- package/dist-cjs/commands/ListTemplatesCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateTemplateCommand.js +1 -28
- package/dist-cjs/commands/UpdateTemplateGroupAccessControlEntryCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -28
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2836 -11
- package/dist-cjs/models/PcaConnectorAdServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -324
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListConnectorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDirectoryRegistrationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListServicePrincipalNamesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTemplateGroupAccessControlEntriesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTemplatesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -9
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1799
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1799 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateTemplateGroupAccessControlEntryCommand = exports.de_UpdateTemplateCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTemplatesCommand = exports.de_ListTemplateGroupAccessControlEntriesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicePrincipalNamesCommand = exports.de_ListDirectoryRegistrationsCommand = exports.de_ListConnectorsCommand = exports.de_GetTemplateGroupAccessControlEntryCommand = exports.de_GetTemplateCommand = exports.de_GetServicePrincipalNameCommand = exports.de_GetDirectoryRegistrationCommand = exports.de_GetConnectorCommand = exports.de_DeleteTemplateGroupAccessControlEntryCommand = exports.de_DeleteTemplateCommand = exports.de_DeleteServicePrincipalNameCommand = exports.de_DeleteDirectoryRegistrationCommand = exports.de_DeleteConnectorCommand = exports.de_CreateTemplateGroupAccessControlEntryCommand = exports.de_CreateTemplateCommand = exports.de_CreateServicePrincipalNameCommand = exports.de_CreateDirectoryRegistrationCommand = exports.de_CreateConnectorCommand = exports.se_UpdateTemplateGroupAccessControlEntryCommand = exports.se_UpdateTemplateCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTemplatesCommand = exports.se_ListTemplateGroupAccessControlEntriesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicePrincipalNamesCommand = exports.se_ListDirectoryRegistrationsCommand = exports.se_ListConnectorsCommand = exports.se_GetTemplateGroupAccessControlEntryCommand = exports.se_GetTemplateCommand = exports.se_GetServicePrincipalNameCommand = exports.se_GetDirectoryRegistrationCommand = exports.se_GetConnectorCommand = exports.se_DeleteTemplateGroupAccessControlEntryCommand = exports.se_DeleteTemplateCommand = exports.se_DeleteServicePrincipalNameCommand = exports.se_DeleteDirectoryRegistrationCommand = exports.se_DeleteConnectorCommand = exports.se_CreateTemplateGroupAccessControlEntryCommand = exports.se_CreateTemplateCommand = exports.se_CreateServicePrincipalNameCommand = exports.se_CreateDirectoryRegistrationCommand = exports.se_CreateConnectorCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const core_2 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const PcaConnectorAdServiceException_1 = require("../models/PcaConnectorAdServiceException");
|
|
10
|
-
const se_CreateConnectorCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/connectors");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
CertificateAuthorityArn: [],
|
|
19
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
20
|
-
DirectoryId: [],
|
|
21
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
-
VpcInformation: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
-
}));
|
|
24
|
-
b.m("POST").h(headers).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
exports.se_CreateConnectorCommand = se_CreateConnectorCommand;
|
|
28
|
-
const se_CreateDirectoryRegistrationCommand = async (input, context) => {
|
|
29
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
30
|
-
const headers = {
|
|
31
|
-
"content-type": "application/json",
|
|
32
|
-
};
|
|
33
|
-
b.bp("/directoryRegistrations");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
37
|
-
DirectoryId: [],
|
|
38
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
39
|
-
}));
|
|
40
|
-
b.m("POST").h(headers).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
exports.se_CreateDirectoryRegistrationCommand = se_CreateDirectoryRegistrationCommand;
|
|
44
|
-
const se_CreateServicePrincipalNameCommand = async (input, context) => {
|
|
45
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
46
|
-
const headers = {
|
|
47
|
-
"content-type": "application/json",
|
|
48
|
-
};
|
|
49
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
|
|
50
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
51
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
54
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
55
|
-
}));
|
|
56
|
-
b.m("POST").h(headers).b(body);
|
|
57
|
-
return b.build();
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateServicePrincipalNameCommand = se_CreateServicePrincipalNameCommand;
|
|
60
|
-
const se_CreateTemplateCommand = async (input, context) => {
|
|
61
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
62
|
-
const headers = {
|
|
63
|
-
"content-type": "application/json",
|
|
64
|
-
};
|
|
65
|
-
b.bp("/templates");
|
|
66
|
-
let body;
|
|
67
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
68
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
69
|
-
ConnectorArn: [],
|
|
70
|
-
Definition: (_) => (0, smithy_client_1._json)(_),
|
|
71
|
-
Name: [],
|
|
72
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
73
|
-
}));
|
|
74
|
-
b.m("POST").h(headers).b(body);
|
|
75
|
-
return b.build();
|
|
76
|
-
};
|
|
77
|
-
exports.se_CreateTemplateCommand = se_CreateTemplateCommand;
|
|
78
|
-
const se_CreateTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
79
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
80
|
-
const headers = {
|
|
81
|
-
"content-type": "application/json",
|
|
82
|
-
};
|
|
83
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries");
|
|
84
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
85
|
-
let body;
|
|
86
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
87
|
-
AccessRights: (_) => (0, smithy_client_1._json)(_),
|
|
88
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
89
|
-
GroupDisplayName: [],
|
|
90
|
-
GroupSecurityIdentifier: [],
|
|
91
|
-
}));
|
|
92
|
-
b.m("POST").h(headers).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
exports.se_CreateTemplateGroupAccessControlEntryCommand = se_CreateTemplateGroupAccessControlEntryCommand;
|
|
96
|
-
const se_DeleteConnectorCommand = async (input, context) => {
|
|
97
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
98
|
-
const headers = {};
|
|
99
|
-
b.bp("/connectors/{ConnectorArn}");
|
|
100
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
101
|
-
let body;
|
|
102
|
-
b.m("DELETE").h(headers).b(body);
|
|
103
|
-
return b.build();
|
|
104
|
-
};
|
|
105
|
-
exports.se_DeleteConnectorCommand = se_DeleteConnectorCommand;
|
|
106
|
-
const se_DeleteDirectoryRegistrationCommand = async (input, context) => {
|
|
107
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
108
|
-
const headers = {};
|
|
109
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}");
|
|
110
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
111
|
-
let body;
|
|
112
|
-
b.m("DELETE").h(headers).b(body);
|
|
113
|
-
return b.build();
|
|
114
|
-
};
|
|
115
|
-
exports.se_DeleteDirectoryRegistrationCommand = se_DeleteDirectoryRegistrationCommand;
|
|
116
|
-
const se_DeleteServicePrincipalNameCommand = async (input, context) => {
|
|
117
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
118
|
-
const headers = {};
|
|
119
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
|
|
120
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
121
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
122
|
-
let body;
|
|
123
|
-
b.m("DELETE").h(headers).b(body);
|
|
124
|
-
return b.build();
|
|
125
|
-
};
|
|
126
|
-
exports.se_DeleteServicePrincipalNameCommand = se_DeleteServicePrincipalNameCommand;
|
|
127
|
-
const se_DeleteTemplateCommand = async (input, context) => {
|
|
128
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
129
|
-
const headers = {};
|
|
130
|
-
b.bp("/templates/{TemplateArn}");
|
|
131
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
132
|
-
let body;
|
|
133
|
-
b.m("DELETE").h(headers).b(body);
|
|
134
|
-
return b.build();
|
|
135
|
-
};
|
|
136
|
-
exports.se_DeleteTemplateCommand = se_DeleteTemplateCommand;
|
|
137
|
-
const se_DeleteTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
138
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
139
|
-
const headers = {};
|
|
140
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
|
|
141
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
142
|
-
b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
143
|
-
let body;
|
|
144
|
-
b.m("DELETE").h(headers).b(body);
|
|
145
|
-
return b.build();
|
|
146
|
-
};
|
|
147
|
-
exports.se_DeleteTemplateGroupAccessControlEntryCommand = se_DeleteTemplateGroupAccessControlEntryCommand;
|
|
148
|
-
const se_GetConnectorCommand = async (input, context) => {
|
|
149
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
150
|
-
const headers = {};
|
|
151
|
-
b.bp("/connectors/{ConnectorArn}");
|
|
152
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
153
|
-
let body;
|
|
154
|
-
b.m("GET").h(headers).b(body);
|
|
155
|
-
return b.build();
|
|
156
|
-
};
|
|
157
|
-
exports.se_GetConnectorCommand = se_GetConnectorCommand;
|
|
158
|
-
const se_GetDirectoryRegistrationCommand = async (input, context) => {
|
|
159
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
160
|
-
const headers = {};
|
|
161
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}");
|
|
162
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
163
|
-
let body;
|
|
164
|
-
b.m("GET").h(headers).b(body);
|
|
165
|
-
return b.build();
|
|
166
|
-
};
|
|
167
|
-
exports.se_GetDirectoryRegistrationCommand = se_GetDirectoryRegistrationCommand;
|
|
168
|
-
const se_GetServicePrincipalNameCommand = async (input, context) => {
|
|
169
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
170
|
-
const headers = {};
|
|
171
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
|
|
172
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
173
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
174
|
-
let body;
|
|
175
|
-
b.m("GET").h(headers).b(body);
|
|
176
|
-
return b.build();
|
|
177
|
-
};
|
|
178
|
-
exports.se_GetServicePrincipalNameCommand = se_GetServicePrincipalNameCommand;
|
|
179
|
-
const se_GetTemplateCommand = async (input, context) => {
|
|
180
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
181
|
-
const headers = {};
|
|
182
|
-
b.bp("/templates/{TemplateArn}");
|
|
183
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
184
|
-
let body;
|
|
185
|
-
b.m("GET").h(headers).b(body);
|
|
186
|
-
return b.build();
|
|
187
|
-
};
|
|
188
|
-
exports.se_GetTemplateCommand = se_GetTemplateCommand;
|
|
189
|
-
const se_GetTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
190
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
191
|
-
const headers = {};
|
|
192
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
|
|
193
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
194
|
-
b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
195
|
-
let body;
|
|
196
|
-
b.m("GET").h(headers).b(body);
|
|
197
|
-
return b.build();
|
|
198
|
-
};
|
|
199
|
-
exports.se_GetTemplateGroupAccessControlEntryCommand = se_GetTemplateGroupAccessControlEntryCommand;
|
|
200
|
-
const se_ListConnectorsCommand = async (input, context) => {
|
|
201
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
202
|
-
const headers = {};
|
|
203
|
-
b.bp("/connectors");
|
|
204
|
-
const query = (0, smithy_client_1.map)({
|
|
205
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
206
|
-
[_NT]: [, input[_NT]],
|
|
207
|
-
});
|
|
208
|
-
let body;
|
|
209
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
210
|
-
return b.build();
|
|
211
|
-
};
|
|
212
|
-
exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
|
|
213
|
-
const se_ListDirectoryRegistrationsCommand = async (input, context) => {
|
|
214
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
215
|
-
const headers = {};
|
|
216
|
-
b.bp("/directoryRegistrations");
|
|
217
|
-
const query = (0, smithy_client_1.map)({
|
|
218
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
219
|
-
[_NT]: [, input[_NT]],
|
|
220
|
-
});
|
|
221
|
-
let body;
|
|
222
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
223
|
-
return b.build();
|
|
224
|
-
};
|
|
225
|
-
exports.se_ListDirectoryRegistrationsCommand = se_ListDirectoryRegistrationsCommand;
|
|
226
|
-
const se_ListServicePrincipalNamesCommand = async (input, context) => {
|
|
227
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
228
|
-
const headers = {};
|
|
229
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames");
|
|
230
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
231
|
-
const query = (0, smithy_client_1.map)({
|
|
232
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
233
|
-
[_NT]: [, input[_NT]],
|
|
234
|
-
});
|
|
235
|
-
let body;
|
|
236
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
237
|
-
return b.build();
|
|
238
|
-
};
|
|
239
|
-
exports.se_ListServicePrincipalNamesCommand = se_ListServicePrincipalNamesCommand;
|
|
240
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
241
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
242
|
-
const headers = {};
|
|
243
|
-
b.bp("/tags/{ResourceArn}");
|
|
244
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
245
|
-
let body;
|
|
246
|
-
b.m("GET").h(headers).b(body);
|
|
247
|
-
return b.build();
|
|
248
|
-
};
|
|
249
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
250
|
-
const se_ListTemplateGroupAccessControlEntriesCommand = async (input, context) => {
|
|
251
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
252
|
-
const headers = {};
|
|
253
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries");
|
|
254
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
255
|
-
const query = (0, smithy_client_1.map)({
|
|
256
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
257
|
-
[_NT]: [, input[_NT]],
|
|
258
|
-
});
|
|
259
|
-
let body;
|
|
260
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
261
|
-
return b.build();
|
|
262
|
-
};
|
|
263
|
-
exports.se_ListTemplateGroupAccessControlEntriesCommand = se_ListTemplateGroupAccessControlEntriesCommand;
|
|
264
|
-
const se_ListTemplatesCommand = async (input, context) => {
|
|
265
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
266
|
-
const headers = {};
|
|
267
|
-
b.bp("/templates");
|
|
268
|
-
const query = (0, smithy_client_1.map)({
|
|
269
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
270
|
-
[_NT]: [, input[_NT]],
|
|
271
|
-
[_CA]: [, (0, smithy_client_1.expectNonNull)(input[_CA], `ConnectorArn`)],
|
|
272
|
-
});
|
|
273
|
-
let body;
|
|
274
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
275
|
-
return b.build();
|
|
276
|
-
};
|
|
277
|
-
exports.se_ListTemplatesCommand = se_ListTemplatesCommand;
|
|
278
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
279
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
280
|
-
const headers = {
|
|
281
|
-
"content-type": "application/json",
|
|
282
|
-
};
|
|
283
|
-
b.bp("/tags/{ResourceArn}");
|
|
284
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
287
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
288
|
-
}));
|
|
289
|
-
b.m("POST").h(headers).b(body);
|
|
290
|
-
return b.build();
|
|
291
|
-
};
|
|
292
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
293
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
294
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
295
|
-
const headers = {};
|
|
296
|
-
b.bp("/tags/{ResourceArn}");
|
|
297
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
298
|
-
const query = (0, smithy_client_1.map)({
|
|
299
|
-
[_tK]: [
|
|
300
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
301
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
302
|
-
],
|
|
303
|
-
});
|
|
304
|
-
let body;
|
|
305
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
306
|
-
return b.build();
|
|
307
|
-
};
|
|
308
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
309
|
-
const se_UpdateTemplateCommand = async (input, context) => {
|
|
310
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
311
|
-
const headers = {
|
|
312
|
-
"content-type": "application/json",
|
|
313
|
-
};
|
|
314
|
-
b.bp("/templates/{TemplateArn}");
|
|
315
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
316
|
-
let body;
|
|
317
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
318
|
-
Definition: (_) => (0, smithy_client_1._json)(_),
|
|
319
|
-
ReenrollAllCertificateHolders: [],
|
|
320
|
-
}));
|
|
321
|
-
b.m("PATCH").h(headers).b(body);
|
|
322
|
-
return b.build();
|
|
323
|
-
};
|
|
324
|
-
exports.se_UpdateTemplateCommand = se_UpdateTemplateCommand;
|
|
325
|
-
const se_UpdateTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
326
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
327
|
-
const headers = {
|
|
328
|
-
"content-type": "application/json",
|
|
329
|
-
};
|
|
330
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
|
|
331
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
332
|
-
b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
333
|
-
let body;
|
|
334
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
335
|
-
AccessRights: (_) => (0, smithy_client_1._json)(_),
|
|
336
|
-
GroupDisplayName: [],
|
|
337
|
-
}));
|
|
338
|
-
b.m("PATCH").h(headers).b(body);
|
|
339
|
-
return b.build();
|
|
340
|
-
};
|
|
341
|
-
exports.se_UpdateTemplateGroupAccessControlEntryCommand = se_UpdateTemplateGroupAccessControlEntryCommand;
|
|
342
|
-
const de_CreateConnectorCommand = async (output, context) => {
|
|
343
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
344
|
-
return de_CreateConnectorCommandError(output, context);
|
|
345
|
-
}
|
|
346
|
-
const contents = (0, smithy_client_1.map)({
|
|
347
|
-
$metadata: deserializeMetadata(output),
|
|
348
|
-
});
|
|
349
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
350
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
351
|
-
ConnectorArn: smithy_client_1.expectString,
|
|
352
|
-
});
|
|
353
|
-
Object.assign(contents, doc);
|
|
354
|
-
return contents;
|
|
355
|
-
};
|
|
356
|
-
exports.de_CreateConnectorCommand = de_CreateConnectorCommand;
|
|
357
|
-
const de_CreateConnectorCommandError = async (output, context) => {
|
|
358
|
-
const parsedOutput = {
|
|
359
|
-
...output,
|
|
360
|
-
body: await parseErrorBody(output.body, context),
|
|
361
|
-
};
|
|
362
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
363
|
-
switch (errorCode) {
|
|
364
|
-
case "AccessDeniedException":
|
|
365
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
366
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
367
|
-
case "ConflictException":
|
|
368
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
369
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
370
|
-
case "InternalServerException":
|
|
371
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
372
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
373
|
-
case "ResourceNotFoundException":
|
|
374
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
375
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
376
|
-
case "ServiceQuotaExceededException":
|
|
377
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
378
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
379
|
-
case "ThrottlingException":
|
|
380
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
381
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
382
|
-
case "ValidationException":
|
|
383
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
384
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
385
|
-
default:
|
|
386
|
-
const parsedBody = parsedOutput.body;
|
|
387
|
-
return throwDefaultError({
|
|
388
|
-
output,
|
|
389
|
-
parsedBody,
|
|
390
|
-
errorCode,
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
const de_CreateDirectoryRegistrationCommand = async (output, context) => {
|
|
395
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
396
|
-
return de_CreateDirectoryRegistrationCommandError(output, context);
|
|
397
|
-
}
|
|
398
|
-
const contents = (0, smithy_client_1.map)({
|
|
399
|
-
$metadata: deserializeMetadata(output),
|
|
400
|
-
});
|
|
401
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
402
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
403
|
-
DirectoryRegistrationArn: smithy_client_1.expectString,
|
|
404
|
-
});
|
|
405
|
-
Object.assign(contents, doc);
|
|
406
|
-
return contents;
|
|
407
|
-
};
|
|
408
|
-
exports.de_CreateDirectoryRegistrationCommand = de_CreateDirectoryRegistrationCommand;
|
|
409
|
-
const de_CreateDirectoryRegistrationCommandError = async (output, context) => {
|
|
410
|
-
const parsedOutput = {
|
|
411
|
-
...output,
|
|
412
|
-
body: await parseErrorBody(output.body, context),
|
|
413
|
-
};
|
|
414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
415
|
-
switch (errorCode) {
|
|
416
|
-
case "AccessDeniedException":
|
|
417
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
418
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
419
|
-
case "ConflictException":
|
|
420
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
421
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
422
|
-
case "InternalServerException":
|
|
423
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
424
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
425
|
-
case "ResourceNotFoundException":
|
|
426
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
428
|
-
case "ThrottlingException":
|
|
429
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
430
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
431
|
-
case "ValidationException":
|
|
432
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
434
|
-
default:
|
|
435
|
-
const parsedBody = parsedOutput.body;
|
|
436
|
-
return throwDefaultError({
|
|
437
|
-
output,
|
|
438
|
-
parsedBody,
|
|
439
|
-
errorCode,
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
const de_CreateServicePrincipalNameCommand = async (output, context) => {
|
|
444
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
445
|
-
return de_CreateServicePrincipalNameCommandError(output, context);
|
|
446
|
-
}
|
|
447
|
-
const contents = (0, smithy_client_1.map)({
|
|
448
|
-
$metadata: deserializeMetadata(output),
|
|
449
|
-
});
|
|
450
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
451
|
-
return contents;
|
|
452
|
-
};
|
|
453
|
-
exports.de_CreateServicePrincipalNameCommand = de_CreateServicePrincipalNameCommand;
|
|
454
|
-
const de_CreateServicePrincipalNameCommandError = async (output, context) => {
|
|
455
|
-
const parsedOutput = {
|
|
456
|
-
...output,
|
|
457
|
-
body: await parseErrorBody(output.body, context),
|
|
458
|
-
};
|
|
459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
460
|
-
switch (errorCode) {
|
|
461
|
-
case "AccessDeniedException":
|
|
462
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
463
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
464
|
-
case "ConflictException":
|
|
465
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
466
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
467
|
-
case "InternalServerException":
|
|
468
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
469
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
470
|
-
case "ResourceNotFoundException":
|
|
471
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
473
|
-
case "ThrottlingException":
|
|
474
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
475
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
476
|
-
case "ValidationException":
|
|
477
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
479
|
-
default:
|
|
480
|
-
const parsedBody = parsedOutput.body;
|
|
481
|
-
return throwDefaultError({
|
|
482
|
-
output,
|
|
483
|
-
parsedBody,
|
|
484
|
-
errorCode,
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
const de_CreateTemplateCommand = async (output, context) => {
|
|
489
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
490
|
-
return de_CreateTemplateCommandError(output, context);
|
|
491
|
-
}
|
|
492
|
-
const contents = (0, smithy_client_1.map)({
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
});
|
|
495
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
496
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
497
|
-
TemplateArn: smithy_client_1.expectString,
|
|
498
|
-
});
|
|
499
|
-
Object.assign(contents, doc);
|
|
500
|
-
return contents;
|
|
501
|
-
};
|
|
502
|
-
exports.de_CreateTemplateCommand = de_CreateTemplateCommand;
|
|
503
|
-
const de_CreateTemplateCommandError = async (output, context) => {
|
|
504
|
-
const parsedOutput = {
|
|
505
|
-
...output,
|
|
506
|
-
body: await parseErrorBody(output.body, context),
|
|
507
|
-
};
|
|
508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
|
-
switch (errorCode) {
|
|
510
|
-
case "AccessDeniedException":
|
|
511
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
512
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ConflictException":
|
|
514
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
515
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
516
|
-
case "InternalServerException":
|
|
517
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
518
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
519
|
-
case "ResourceNotFoundException":
|
|
520
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
521
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ServiceQuotaExceededException":
|
|
523
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
524
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ThrottlingException":
|
|
526
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
527
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ValidationException":
|
|
529
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
531
|
-
default:
|
|
532
|
-
const parsedBody = parsedOutput.body;
|
|
533
|
-
return throwDefaultError({
|
|
534
|
-
output,
|
|
535
|
-
parsedBody,
|
|
536
|
-
errorCode,
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
const de_CreateTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
541
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
-
return de_CreateTemplateGroupAccessControlEntryCommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
const contents = (0, smithy_client_1.map)({
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
});
|
|
547
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
548
|
-
return contents;
|
|
549
|
-
};
|
|
550
|
-
exports.de_CreateTemplateGroupAccessControlEntryCommand = de_CreateTemplateGroupAccessControlEntryCommand;
|
|
551
|
-
const de_CreateTemplateGroupAccessControlEntryCommandError = async (output, context) => {
|
|
552
|
-
const parsedOutput = {
|
|
553
|
-
...output,
|
|
554
|
-
body: await parseErrorBody(output.body, context),
|
|
555
|
-
};
|
|
556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
|
-
switch (errorCode) {
|
|
558
|
-
case "AccessDeniedException":
|
|
559
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
560
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ConflictException":
|
|
562
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
563
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
564
|
-
case "InternalServerException":
|
|
565
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
566
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
567
|
-
case "ResourceNotFoundException":
|
|
568
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
569
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
570
|
-
case "ServiceQuotaExceededException":
|
|
571
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
572
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ThrottlingException":
|
|
574
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
575
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
576
|
-
case "ValidationException":
|
|
577
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
578
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
579
|
-
default:
|
|
580
|
-
const parsedBody = parsedOutput.body;
|
|
581
|
-
return throwDefaultError({
|
|
582
|
-
output,
|
|
583
|
-
parsedBody,
|
|
584
|
-
errorCode,
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
const de_DeleteConnectorCommand = async (output, context) => {
|
|
589
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
590
|
-
return de_DeleteConnectorCommandError(output, context);
|
|
591
|
-
}
|
|
592
|
-
const contents = (0, smithy_client_1.map)({
|
|
593
|
-
$metadata: deserializeMetadata(output),
|
|
594
|
-
});
|
|
595
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
596
|
-
return contents;
|
|
597
|
-
};
|
|
598
|
-
exports.de_DeleteConnectorCommand = de_DeleteConnectorCommand;
|
|
599
|
-
const de_DeleteConnectorCommandError = async (output, context) => {
|
|
600
|
-
const parsedOutput = {
|
|
601
|
-
...output,
|
|
602
|
-
body: await parseErrorBody(output.body, context),
|
|
603
|
-
};
|
|
604
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
605
|
-
switch (errorCode) {
|
|
606
|
-
case "AccessDeniedException":
|
|
607
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
608
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ConflictException":
|
|
610
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
611
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
612
|
-
case "InternalServerException":
|
|
613
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
614
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ResourceNotFoundException":
|
|
616
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
617
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ThrottlingException":
|
|
619
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
620
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
621
|
-
case "ValidationException":
|
|
622
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
623
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
624
|
-
default:
|
|
625
|
-
const parsedBody = parsedOutput.body;
|
|
626
|
-
return throwDefaultError({
|
|
627
|
-
output,
|
|
628
|
-
parsedBody,
|
|
629
|
-
errorCode,
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
|
-
const de_DeleteDirectoryRegistrationCommand = async (output, context) => {
|
|
634
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
635
|
-
return de_DeleteDirectoryRegistrationCommandError(output, context);
|
|
636
|
-
}
|
|
637
|
-
const contents = (0, smithy_client_1.map)({
|
|
638
|
-
$metadata: deserializeMetadata(output),
|
|
639
|
-
});
|
|
640
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
641
|
-
return contents;
|
|
642
|
-
};
|
|
643
|
-
exports.de_DeleteDirectoryRegistrationCommand = de_DeleteDirectoryRegistrationCommand;
|
|
644
|
-
const de_DeleteDirectoryRegistrationCommandError = async (output, context) => {
|
|
645
|
-
const parsedOutput = {
|
|
646
|
-
...output,
|
|
647
|
-
body: await parseErrorBody(output.body, context),
|
|
648
|
-
};
|
|
649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
|
-
switch (errorCode) {
|
|
651
|
-
case "AccessDeniedException":
|
|
652
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
653
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
654
|
-
case "ConflictException":
|
|
655
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
656
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
657
|
-
case "InternalServerException":
|
|
658
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
659
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ThrottlingException":
|
|
661
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
662
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ValidationException":
|
|
664
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
665
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
666
|
-
default:
|
|
667
|
-
const parsedBody = parsedOutput.body;
|
|
668
|
-
return throwDefaultError({
|
|
669
|
-
output,
|
|
670
|
-
parsedBody,
|
|
671
|
-
errorCode,
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
|
-
const de_DeleteServicePrincipalNameCommand = async (output, context) => {
|
|
676
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
677
|
-
return de_DeleteServicePrincipalNameCommandError(output, context);
|
|
678
|
-
}
|
|
679
|
-
const contents = (0, smithy_client_1.map)({
|
|
680
|
-
$metadata: deserializeMetadata(output),
|
|
681
|
-
});
|
|
682
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
683
|
-
return contents;
|
|
684
|
-
};
|
|
685
|
-
exports.de_DeleteServicePrincipalNameCommand = de_DeleteServicePrincipalNameCommand;
|
|
686
|
-
const de_DeleteServicePrincipalNameCommandError = async (output, context) => {
|
|
687
|
-
const parsedOutput = {
|
|
688
|
-
...output,
|
|
689
|
-
body: await parseErrorBody(output.body, context),
|
|
690
|
-
};
|
|
691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
-
switch (errorCode) {
|
|
693
|
-
case "AccessDeniedException":
|
|
694
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
695
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ConflictException":
|
|
697
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
698
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
699
|
-
case "InternalServerException":
|
|
700
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
701
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
702
|
-
case "ThrottlingException":
|
|
703
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
704
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
705
|
-
case "ValidationException":
|
|
706
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
707
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
708
|
-
default:
|
|
709
|
-
const parsedBody = parsedOutput.body;
|
|
710
|
-
return throwDefaultError({
|
|
711
|
-
output,
|
|
712
|
-
parsedBody,
|
|
713
|
-
errorCode,
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
const de_DeleteTemplateCommand = async (output, context) => {
|
|
718
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
719
|
-
return de_DeleteTemplateCommandError(output, context);
|
|
720
|
-
}
|
|
721
|
-
const contents = (0, smithy_client_1.map)({
|
|
722
|
-
$metadata: deserializeMetadata(output),
|
|
723
|
-
});
|
|
724
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
725
|
-
return contents;
|
|
726
|
-
};
|
|
727
|
-
exports.de_DeleteTemplateCommand = de_DeleteTemplateCommand;
|
|
728
|
-
const de_DeleteTemplateCommandError = async (output, context) => {
|
|
729
|
-
const parsedOutput = {
|
|
730
|
-
...output,
|
|
731
|
-
body: await parseErrorBody(output.body, context),
|
|
732
|
-
};
|
|
733
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
734
|
-
switch (errorCode) {
|
|
735
|
-
case "AccessDeniedException":
|
|
736
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
737
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ConflictException":
|
|
739
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
740
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
741
|
-
case "InternalServerException":
|
|
742
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
743
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ResourceNotFoundException":
|
|
745
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
746
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ThrottlingException":
|
|
748
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
749
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ValidationException":
|
|
751
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
752
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
753
|
-
default:
|
|
754
|
-
const parsedBody = parsedOutput.body;
|
|
755
|
-
return throwDefaultError({
|
|
756
|
-
output,
|
|
757
|
-
parsedBody,
|
|
758
|
-
errorCode,
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
|
-
const de_DeleteTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
763
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
|
-
return de_DeleteTemplateGroupAccessControlEntryCommandError(output, context);
|
|
765
|
-
}
|
|
766
|
-
const contents = (0, smithy_client_1.map)({
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
});
|
|
769
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
770
|
-
return contents;
|
|
771
|
-
};
|
|
772
|
-
exports.de_DeleteTemplateGroupAccessControlEntryCommand = de_DeleteTemplateGroupAccessControlEntryCommand;
|
|
773
|
-
const de_DeleteTemplateGroupAccessControlEntryCommandError = async (output, context) => {
|
|
774
|
-
const parsedOutput = {
|
|
775
|
-
...output,
|
|
776
|
-
body: await parseErrorBody(output.body, context),
|
|
777
|
-
};
|
|
778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
-
switch (errorCode) {
|
|
780
|
-
case "AccessDeniedException":
|
|
781
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
782
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
783
|
-
case "ConflictException":
|
|
784
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
785
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
786
|
-
case "InternalServerException":
|
|
787
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
788
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ResourceNotFoundException":
|
|
790
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
791
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ThrottlingException":
|
|
793
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
794
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ValidationException":
|
|
796
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
797
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
|
-
default:
|
|
799
|
-
const parsedBody = parsedOutput.body;
|
|
800
|
-
return throwDefaultError({
|
|
801
|
-
output,
|
|
802
|
-
parsedBody,
|
|
803
|
-
errorCode,
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
const de_GetConnectorCommand = async (output, context) => {
|
|
808
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
809
|
-
return de_GetConnectorCommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const contents = (0, smithy_client_1.map)({
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
});
|
|
814
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
815
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
816
|
-
Connector: (_) => de_Connector(_, context),
|
|
817
|
-
});
|
|
818
|
-
Object.assign(contents, doc);
|
|
819
|
-
return contents;
|
|
820
|
-
};
|
|
821
|
-
exports.de_GetConnectorCommand = de_GetConnectorCommand;
|
|
822
|
-
const de_GetConnectorCommandError = async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context),
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "AccessDeniedException":
|
|
830
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
831
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
832
|
-
case "InternalServerException":
|
|
833
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
834
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ResourceNotFoundException":
|
|
836
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
837
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
838
|
-
case "ThrottlingException":
|
|
839
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
840
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ValidationException":
|
|
842
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
843
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
844
|
-
default:
|
|
845
|
-
const parsedBody = parsedOutput.body;
|
|
846
|
-
return throwDefaultError({
|
|
847
|
-
output,
|
|
848
|
-
parsedBody,
|
|
849
|
-
errorCode,
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
const de_GetDirectoryRegistrationCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_GetDirectoryRegistrationCommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = (0, smithy_client_1.map)({
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
});
|
|
860
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
861
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
862
|
-
DirectoryRegistration: (_) => de_DirectoryRegistration(_, context),
|
|
863
|
-
});
|
|
864
|
-
Object.assign(contents, doc);
|
|
865
|
-
return contents;
|
|
866
|
-
};
|
|
867
|
-
exports.de_GetDirectoryRegistrationCommand = de_GetDirectoryRegistrationCommand;
|
|
868
|
-
const de_GetDirectoryRegistrationCommandError = async (output, context) => {
|
|
869
|
-
const parsedOutput = {
|
|
870
|
-
...output,
|
|
871
|
-
body: await parseErrorBody(output.body, context),
|
|
872
|
-
};
|
|
873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
-
switch (errorCode) {
|
|
875
|
-
case "AccessDeniedException":
|
|
876
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
877
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
878
|
-
case "InternalServerException":
|
|
879
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
880
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
881
|
-
case "ResourceNotFoundException":
|
|
882
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
883
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
884
|
-
case "ThrottlingException":
|
|
885
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
886
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ValidationException":
|
|
888
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
889
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
890
|
-
default:
|
|
891
|
-
const parsedBody = parsedOutput.body;
|
|
892
|
-
return throwDefaultError({
|
|
893
|
-
output,
|
|
894
|
-
parsedBody,
|
|
895
|
-
errorCode,
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
};
|
|
899
|
-
const de_GetServicePrincipalNameCommand = async (output, context) => {
|
|
900
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
901
|
-
return de_GetServicePrincipalNameCommandError(output, context);
|
|
902
|
-
}
|
|
903
|
-
const contents = (0, smithy_client_1.map)({
|
|
904
|
-
$metadata: deserializeMetadata(output),
|
|
905
|
-
});
|
|
906
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
907
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
908
|
-
ServicePrincipalName: (_) => de_ServicePrincipalName(_, context),
|
|
909
|
-
});
|
|
910
|
-
Object.assign(contents, doc);
|
|
911
|
-
return contents;
|
|
912
|
-
};
|
|
913
|
-
exports.de_GetServicePrincipalNameCommand = de_GetServicePrincipalNameCommand;
|
|
914
|
-
const de_GetServicePrincipalNameCommandError = async (output, context) => {
|
|
915
|
-
const parsedOutput = {
|
|
916
|
-
...output,
|
|
917
|
-
body: await parseErrorBody(output.body, context),
|
|
918
|
-
};
|
|
919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
-
switch (errorCode) {
|
|
921
|
-
case "AccessDeniedException":
|
|
922
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
923
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
924
|
-
case "InternalServerException":
|
|
925
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
926
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
927
|
-
case "ResourceNotFoundException":
|
|
928
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
929
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ThrottlingException":
|
|
931
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
932
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ValidationException":
|
|
934
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
935
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
|
-
default:
|
|
937
|
-
const parsedBody = parsedOutput.body;
|
|
938
|
-
return throwDefaultError({
|
|
939
|
-
output,
|
|
940
|
-
parsedBody,
|
|
941
|
-
errorCode,
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
|
-
const de_GetTemplateCommand = async (output, context) => {
|
|
946
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return de_GetTemplateCommandError(output, context);
|
|
948
|
-
}
|
|
949
|
-
const contents = (0, smithy_client_1.map)({
|
|
950
|
-
$metadata: deserializeMetadata(output),
|
|
951
|
-
});
|
|
952
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
953
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
954
|
-
Template: (_) => de_Template(_, context),
|
|
955
|
-
});
|
|
956
|
-
Object.assign(contents, doc);
|
|
957
|
-
return contents;
|
|
958
|
-
};
|
|
959
|
-
exports.de_GetTemplateCommand = de_GetTemplateCommand;
|
|
960
|
-
const de_GetTemplateCommandError = async (output, context) => {
|
|
961
|
-
const parsedOutput = {
|
|
962
|
-
...output,
|
|
963
|
-
body: await parseErrorBody(output.body, context),
|
|
964
|
-
};
|
|
965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
-
switch (errorCode) {
|
|
967
|
-
case "AccessDeniedException":
|
|
968
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
969
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InternalServerException":
|
|
971
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
972
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ResourceNotFoundException":
|
|
974
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
975
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ThrottlingException":
|
|
977
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
978
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ValidationException":
|
|
980
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
981
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
982
|
-
default:
|
|
983
|
-
const parsedBody = parsedOutput.body;
|
|
984
|
-
return throwDefaultError({
|
|
985
|
-
output,
|
|
986
|
-
parsedBody,
|
|
987
|
-
errorCode,
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
|
-
const de_GetTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
992
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
|
-
return de_GetTemplateGroupAccessControlEntryCommandError(output, context);
|
|
994
|
-
}
|
|
995
|
-
const contents = (0, smithy_client_1.map)({
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
});
|
|
998
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
999
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1000
|
-
AccessControlEntry: (_) => de_AccessControlEntry(_, context),
|
|
1001
|
-
});
|
|
1002
|
-
Object.assign(contents, doc);
|
|
1003
|
-
return contents;
|
|
1004
|
-
};
|
|
1005
|
-
exports.de_GetTemplateGroupAccessControlEntryCommand = de_GetTemplateGroupAccessControlEntryCommand;
|
|
1006
|
-
const de_GetTemplateGroupAccessControlEntryCommandError = async (output, context) => {
|
|
1007
|
-
const parsedOutput = {
|
|
1008
|
-
...output,
|
|
1009
|
-
body: await parseErrorBody(output.body, context),
|
|
1010
|
-
};
|
|
1011
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
-
switch (errorCode) {
|
|
1013
|
-
case "AccessDeniedException":
|
|
1014
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1015
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServerException":
|
|
1017
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ResourceNotFoundException":
|
|
1020
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1021
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ThrottlingException":
|
|
1023
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1024
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ValidationException":
|
|
1026
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1027
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
const de_ListConnectorsCommand = async (output, context) => {
|
|
1038
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return de_ListConnectorsCommandError(output, context);
|
|
1040
|
-
}
|
|
1041
|
-
const contents = (0, smithy_client_1.map)({
|
|
1042
|
-
$metadata: deserializeMetadata(output),
|
|
1043
|
-
});
|
|
1044
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1045
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1046
|
-
Connectors: (_) => de_ConnectorList(_, context),
|
|
1047
|
-
NextToken: smithy_client_1.expectString,
|
|
1048
|
-
});
|
|
1049
|
-
Object.assign(contents, doc);
|
|
1050
|
-
return contents;
|
|
1051
|
-
};
|
|
1052
|
-
exports.de_ListConnectorsCommand = de_ListConnectorsCommand;
|
|
1053
|
-
const de_ListConnectorsCommandError = async (output, context) => {
|
|
1054
|
-
const parsedOutput = {
|
|
1055
|
-
...output,
|
|
1056
|
-
body: await parseErrorBody(output.body, context),
|
|
1057
|
-
};
|
|
1058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
|
-
switch (errorCode) {
|
|
1060
|
-
case "AccessDeniedException":
|
|
1061
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1062
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "InternalServerException":
|
|
1064
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1065
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ThrottlingException":
|
|
1067
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1068
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ValidationException":
|
|
1070
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1071
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1072
|
-
default:
|
|
1073
|
-
const parsedBody = parsedOutput.body;
|
|
1074
|
-
return throwDefaultError({
|
|
1075
|
-
output,
|
|
1076
|
-
parsedBody,
|
|
1077
|
-
errorCode,
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
const de_ListDirectoryRegistrationsCommand = async (output, context) => {
|
|
1082
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1083
|
-
return de_ListDirectoryRegistrationsCommandError(output, context);
|
|
1084
|
-
}
|
|
1085
|
-
const contents = (0, smithy_client_1.map)({
|
|
1086
|
-
$metadata: deserializeMetadata(output),
|
|
1087
|
-
});
|
|
1088
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1089
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1090
|
-
DirectoryRegistrations: (_) => de_DirectoryRegistrationList(_, context),
|
|
1091
|
-
NextToken: smithy_client_1.expectString,
|
|
1092
|
-
});
|
|
1093
|
-
Object.assign(contents, doc);
|
|
1094
|
-
return contents;
|
|
1095
|
-
};
|
|
1096
|
-
exports.de_ListDirectoryRegistrationsCommand = de_ListDirectoryRegistrationsCommand;
|
|
1097
|
-
const de_ListDirectoryRegistrationsCommandError = async (output, context) => {
|
|
1098
|
-
const parsedOutput = {
|
|
1099
|
-
...output,
|
|
1100
|
-
body: await parseErrorBody(output.body, context),
|
|
1101
|
-
};
|
|
1102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1103
|
-
switch (errorCode) {
|
|
1104
|
-
case "AccessDeniedException":
|
|
1105
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1106
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "InternalServerException":
|
|
1108
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1109
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "ThrottlingException":
|
|
1111
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1112
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ValidationException":
|
|
1114
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1116
|
-
default:
|
|
1117
|
-
const parsedBody = parsedOutput.body;
|
|
1118
|
-
return throwDefaultError({
|
|
1119
|
-
output,
|
|
1120
|
-
parsedBody,
|
|
1121
|
-
errorCode,
|
|
1122
|
-
});
|
|
1123
|
-
}
|
|
1124
|
-
};
|
|
1125
|
-
const de_ListServicePrincipalNamesCommand = async (output, context) => {
|
|
1126
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1127
|
-
return de_ListServicePrincipalNamesCommandError(output, context);
|
|
1128
|
-
}
|
|
1129
|
-
const contents = (0, smithy_client_1.map)({
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
});
|
|
1132
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1133
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1134
|
-
NextToken: smithy_client_1.expectString,
|
|
1135
|
-
ServicePrincipalNames: (_) => de_ServicePrincipalNameList(_, context),
|
|
1136
|
-
});
|
|
1137
|
-
Object.assign(contents, doc);
|
|
1138
|
-
return contents;
|
|
1139
|
-
};
|
|
1140
|
-
exports.de_ListServicePrincipalNamesCommand = de_ListServicePrincipalNamesCommand;
|
|
1141
|
-
const de_ListServicePrincipalNamesCommandError = async (output, context) => {
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await parseErrorBody(output.body, context),
|
|
1145
|
-
};
|
|
1146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
-
switch (errorCode) {
|
|
1148
|
-
case "AccessDeniedException":
|
|
1149
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1150
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "InternalServerException":
|
|
1152
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1153
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ResourceNotFoundException":
|
|
1155
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1156
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ThrottlingException":
|
|
1158
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1159
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ValidationException":
|
|
1161
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1162
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1163
|
-
default:
|
|
1164
|
-
const parsedBody = parsedOutput.body;
|
|
1165
|
-
return throwDefaultError({
|
|
1166
|
-
output,
|
|
1167
|
-
parsedBody,
|
|
1168
|
-
errorCode,
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
};
|
|
1172
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1173
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1174
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1175
|
-
}
|
|
1176
|
-
const contents = (0, smithy_client_1.map)({
|
|
1177
|
-
$metadata: deserializeMetadata(output),
|
|
1178
|
-
});
|
|
1179
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1180
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1181
|
-
Tags: smithy_client_1._json,
|
|
1182
|
-
});
|
|
1183
|
-
Object.assign(contents, doc);
|
|
1184
|
-
return contents;
|
|
1185
|
-
};
|
|
1186
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1187
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1188
|
-
const parsedOutput = {
|
|
1189
|
-
...output,
|
|
1190
|
-
body: await parseErrorBody(output.body, context),
|
|
1191
|
-
};
|
|
1192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
|
-
switch (errorCode) {
|
|
1194
|
-
case "AccessDeniedException":
|
|
1195
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1196
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "InternalServerException":
|
|
1198
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1199
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ResourceNotFoundException":
|
|
1201
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ThrottlingException":
|
|
1204
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1205
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ValidationException":
|
|
1207
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1209
|
-
default:
|
|
1210
|
-
const parsedBody = parsedOutput.body;
|
|
1211
|
-
return throwDefaultError({
|
|
1212
|
-
output,
|
|
1213
|
-
parsedBody,
|
|
1214
|
-
errorCode,
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
};
|
|
1218
|
-
const de_ListTemplateGroupAccessControlEntriesCommand = async (output, context) => {
|
|
1219
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
|
-
return de_ListTemplateGroupAccessControlEntriesCommandError(output, context);
|
|
1221
|
-
}
|
|
1222
|
-
const contents = (0, smithy_client_1.map)({
|
|
1223
|
-
$metadata: deserializeMetadata(output),
|
|
1224
|
-
});
|
|
1225
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1226
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1227
|
-
AccessControlEntries: (_) => de_AccessControlEntryList(_, context),
|
|
1228
|
-
NextToken: smithy_client_1.expectString,
|
|
1229
|
-
});
|
|
1230
|
-
Object.assign(contents, doc);
|
|
1231
|
-
return contents;
|
|
1232
|
-
};
|
|
1233
|
-
exports.de_ListTemplateGroupAccessControlEntriesCommand = de_ListTemplateGroupAccessControlEntriesCommand;
|
|
1234
|
-
const de_ListTemplateGroupAccessControlEntriesCommandError = async (output, context) => {
|
|
1235
|
-
const parsedOutput = {
|
|
1236
|
-
...output,
|
|
1237
|
-
body: await parseErrorBody(output.body, context),
|
|
1238
|
-
};
|
|
1239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
-
switch (errorCode) {
|
|
1241
|
-
case "AccessDeniedException":
|
|
1242
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1243
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1244
|
-
case "InternalServerException":
|
|
1245
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1246
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "ResourceNotFoundException":
|
|
1248
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "ThrottlingException":
|
|
1251
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1252
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ValidationException":
|
|
1254
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1255
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1256
|
-
default:
|
|
1257
|
-
const parsedBody = parsedOutput.body;
|
|
1258
|
-
return throwDefaultError({
|
|
1259
|
-
output,
|
|
1260
|
-
parsedBody,
|
|
1261
|
-
errorCode,
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
};
|
|
1265
|
-
const de_ListTemplatesCommand = async (output, context) => {
|
|
1266
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
-
return de_ListTemplatesCommandError(output, context);
|
|
1268
|
-
}
|
|
1269
|
-
const contents = (0, smithy_client_1.map)({
|
|
1270
|
-
$metadata: deserializeMetadata(output),
|
|
1271
|
-
});
|
|
1272
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1273
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1274
|
-
NextToken: smithy_client_1.expectString,
|
|
1275
|
-
Templates: (_) => de_TemplateList(_, context),
|
|
1276
|
-
});
|
|
1277
|
-
Object.assign(contents, doc);
|
|
1278
|
-
return contents;
|
|
1279
|
-
};
|
|
1280
|
-
exports.de_ListTemplatesCommand = de_ListTemplatesCommand;
|
|
1281
|
-
const de_ListTemplatesCommandError = async (output, context) => {
|
|
1282
|
-
const parsedOutput = {
|
|
1283
|
-
...output,
|
|
1284
|
-
body: await parseErrorBody(output.body, context),
|
|
1285
|
-
};
|
|
1286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
-
switch (errorCode) {
|
|
1288
|
-
case "AccessDeniedException":
|
|
1289
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1290
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "InternalServerException":
|
|
1292
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1293
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "ResourceNotFoundException":
|
|
1295
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1296
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "ThrottlingException":
|
|
1298
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1299
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "ValidationException":
|
|
1301
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1302
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1303
|
-
default:
|
|
1304
|
-
const parsedBody = parsedOutput.body;
|
|
1305
|
-
return throwDefaultError({
|
|
1306
|
-
output,
|
|
1307
|
-
parsedBody,
|
|
1308
|
-
errorCode,
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
};
|
|
1312
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1313
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1314
|
-
return de_TagResourceCommandError(output, context);
|
|
1315
|
-
}
|
|
1316
|
-
const contents = (0, smithy_client_1.map)({
|
|
1317
|
-
$metadata: deserializeMetadata(output),
|
|
1318
|
-
});
|
|
1319
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1320
|
-
return contents;
|
|
1321
|
-
};
|
|
1322
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1323
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1324
|
-
const parsedOutput = {
|
|
1325
|
-
...output,
|
|
1326
|
-
body: await parseErrorBody(output.body, context),
|
|
1327
|
-
};
|
|
1328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
|
-
switch (errorCode) {
|
|
1330
|
-
case "AccessDeniedException":
|
|
1331
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1332
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "InternalServerException":
|
|
1334
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1335
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "ResourceNotFoundException":
|
|
1337
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "ThrottlingException":
|
|
1340
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1341
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "ValidationException":
|
|
1343
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1344
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1345
|
-
default:
|
|
1346
|
-
const parsedBody = parsedOutput.body;
|
|
1347
|
-
return throwDefaultError({
|
|
1348
|
-
output,
|
|
1349
|
-
parsedBody,
|
|
1350
|
-
errorCode,
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
|
-
};
|
|
1354
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1355
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1356
|
-
return de_UntagResourceCommandError(output, context);
|
|
1357
|
-
}
|
|
1358
|
-
const contents = (0, smithy_client_1.map)({
|
|
1359
|
-
$metadata: deserializeMetadata(output),
|
|
1360
|
-
});
|
|
1361
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1362
|
-
return contents;
|
|
1363
|
-
};
|
|
1364
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1365
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1366
|
-
const parsedOutput = {
|
|
1367
|
-
...output,
|
|
1368
|
-
body: await parseErrorBody(output.body, context),
|
|
1369
|
-
};
|
|
1370
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1371
|
-
switch (errorCode) {
|
|
1372
|
-
case "AccessDeniedException":
|
|
1373
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1374
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "InternalServerException":
|
|
1376
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1377
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ResourceNotFoundException":
|
|
1379
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1380
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "ThrottlingException":
|
|
1382
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1383
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ValidationException":
|
|
1385
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1387
|
-
default:
|
|
1388
|
-
const parsedBody = parsedOutput.body;
|
|
1389
|
-
return throwDefaultError({
|
|
1390
|
-
output,
|
|
1391
|
-
parsedBody,
|
|
1392
|
-
errorCode,
|
|
1393
|
-
});
|
|
1394
|
-
}
|
|
1395
|
-
};
|
|
1396
|
-
const de_UpdateTemplateCommand = async (output, context) => {
|
|
1397
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
|
-
return de_UpdateTemplateCommandError(output, context);
|
|
1399
|
-
}
|
|
1400
|
-
const contents = (0, smithy_client_1.map)({
|
|
1401
|
-
$metadata: deserializeMetadata(output),
|
|
1402
|
-
});
|
|
1403
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1404
|
-
return contents;
|
|
1405
|
-
};
|
|
1406
|
-
exports.de_UpdateTemplateCommand = de_UpdateTemplateCommand;
|
|
1407
|
-
const de_UpdateTemplateCommandError = async (output, context) => {
|
|
1408
|
-
const parsedOutput = {
|
|
1409
|
-
...output,
|
|
1410
|
-
body: await parseErrorBody(output.body, context),
|
|
1411
|
-
};
|
|
1412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
|
-
switch (errorCode) {
|
|
1414
|
-
case "AccessDeniedException":
|
|
1415
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1416
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ConflictException":
|
|
1418
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1419
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "InternalServerException":
|
|
1421
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1422
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ResourceNotFoundException":
|
|
1424
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1425
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ThrottlingException":
|
|
1427
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1428
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ValidationException":
|
|
1430
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1431
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1432
|
-
default:
|
|
1433
|
-
const parsedBody = parsedOutput.body;
|
|
1434
|
-
return throwDefaultError({
|
|
1435
|
-
output,
|
|
1436
|
-
parsedBody,
|
|
1437
|
-
errorCode,
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
};
|
|
1441
|
-
const de_UpdateTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
1442
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1443
|
-
return de_UpdateTemplateGroupAccessControlEntryCommandError(output, context);
|
|
1444
|
-
}
|
|
1445
|
-
const contents = (0, smithy_client_1.map)({
|
|
1446
|
-
$metadata: deserializeMetadata(output),
|
|
1447
|
-
});
|
|
1448
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1449
|
-
return contents;
|
|
1450
|
-
};
|
|
1451
|
-
exports.de_UpdateTemplateGroupAccessControlEntryCommand = de_UpdateTemplateGroupAccessControlEntryCommand;
|
|
1452
|
-
const de_UpdateTemplateGroupAccessControlEntryCommandError = async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context),
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "AccessDeniedException":
|
|
1460
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
1461
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ConflictException":
|
|
1463
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
1464
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "InternalServerException":
|
|
1466
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
1467
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ResourceNotFoundException":
|
|
1469
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
1470
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "ThrottlingException":
|
|
1472
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
1473
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "ValidationException":
|
|
1475
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
1476
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1477
|
-
default:
|
|
1478
|
-
const parsedBody = parsedOutput.body;
|
|
1479
|
-
return throwDefaultError({
|
|
1480
|
-
output,
|
|
1481
|
-
parsedBody,
|
|
1482
|
-
errorCode,
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(PcaConnectorAdServiceException_1.PcaConnectorAdServiceException);
|
|
1487
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1488
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1489
|
-
const data = parsedOutput.body;
|
|
1490
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1491
|
-
Message: smithy_client_1.expectString,
|
|
1492
|
-
});
|
|
1493
|
-
Object.assign(contents, doc);
|
|
1494
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1495
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1496
|
-
...contents,
|
|
1497
|
-
});
|
|
1498
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1499
|
-
};
|
|
1500
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1501
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1502
|
-
const data = parsedOutput.body;
|
|
1503
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1504
|
-
Message: smithy_client_1.expectString,
|
|
1505
|
-
ResourceId: smithy_client_1.expectString,
|
|
1506
|
-
ResourceType: smithy_client_1.expectString,
|
|
1507
|
-
});
|
|
1508
|
-
Object.assign(contents, doc);
|
|
1509
|
-
const exception = new models_0_1.ConflictException({
|
|
1510
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1511
|
-
...contents,
|
|
1512
|
-
});
|
|
1513
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1514
|
-
};
|
|
1515
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1516
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1517
|
-
const data = parsedOutput.body;
|
|
1518
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1519
|
-
Message: smithy_client_1.expectString,
|
|
1520
|
-
});
|
|
1521
|
-
Object.assign(contents, doc);
|
|
1522
|
-
const exception = new models_0_1.InternalServerException({
|
|
1523
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1524
|
-
...contents,
|
|
1525
|
-
});
|
|
1526
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1527
|
-
};
|
|
1528
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1529
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1530
|
-
const data = parsedOutput.body;
|
|
1531
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1532
|
-
Message: smithy_client_1.expectString,
|
|
1533
|
-
ResourceId: smithy_client_1.expectString,
|
|
1534
|
-
ResourceType: smithy_client_1.expectString,
|
|
1535
|
-
});
|
|
1536
|
-
Object.assign(contents, doc);
|
|
1537
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1538
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1539
|
-
...contents,
|
|
1540
|
-
});
|
|
1541
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1542
|
-
};
|
|
1543
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1544
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1545
|
-
const data = parsedOutput.body;
|
|
1546
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1547
|
-
Message: smithy_client_1.expectString,
|
|
1548
|
-
QuotaCode: smithy_client_1.expectString,
|
|
1549
|
-
ResourceId: smithy_client_1.expectString,
|
|
1550
|
-
ResourceType: smithy_client_1.expectString,
|
|
1551
|
-
ServiceCode: smithy_client_1.expectString,
|
|
1552
|
-
});
|
|
1553
|
-
Object.assign(contents, doc);
|
|
1554
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1555
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1556
|
-
...contents,
|
|
1557
|
-
});
|
|
1558
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1559
|
-
};
|
|
1560
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1561
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1562
|
-
const data = parsedOutput.body;
|
|
1563
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1564
|
-
Message: smithy_client_1.expectString,
|
|
1565
|
-
QuotaCode: smithy_client_1.expectString,
|
|
1566
|
-
ServiceCode: smithy_client_1.expectString,
|
|
1567
|
-
});
|
|
1568
|
-
Object.assign(contents, doc);
|
|
1569
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1570
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1571
|
-
...contents,
|
|
1572
|
-
});
|
|
1573
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1574
|
-
};
|
|
1575
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1576
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1577
|
-
const data = parsedOutput.body;
|
|
1578
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1579
|
-
Message: smithy_client_1.expectString,
|
|
1580
|
-
Reason: smithy_client_1.expectString,
|
|
1581
|
-
});
|
|
1582
|
-
Object.assign(contents, doc);
|
|
1583
|
-
const exception = new models_0_1.ValidationException({
|
|
1584
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1585
|
-
...contents,
|
|
1586
|
-
});
|
|
1587
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1588
|
-
};
|
|
1589
|
-
const de_AccessControlEntry = (output, context) => {
|
|
1590
|
-
return (0, smithy_client_1.take)(output, {
|
|
1591
|
-
AccessRights: smithy_client_1._json,
|
|
1592
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1593
|
-
GroupDisplayName: smithy_client_1.expectString,
|
|
1594
|
-
GroupSecurityIdentifier: smithy_client_1.expectString,
|
|
1595
|
-
TemplateArn: smithy_client_1.expectString,
|
|
1596
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1597
|
-
});
|
|
1598
|
-
};
|
|
1599
|
-
const de_AccessControlEntryList = (output, context) => {
|
|
1600
|
-
const retVal = (output || [])
|
|
1601
|
-
.filter((e) => e != null)
|
|
1602
|
-
.map((entry) => {
|
|
1603
|
-
return de_AccessControlEntrySummary(entry, context);
|
|
1604
|
-
});
|
|
1605
|
-
return retVal;
|
|
1606
|
-
};
|
|
1607
|
-
const de_AccessControlEntrySummary = (output, context) => {
|
|
1608
|
-
return (0, smithy_client_1.take)(output, {
|
|
1609
|
-
AccessRights: smithy_client_1._json,
|
|
1610
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1611
|
-
GroupDisplayName: smithy_client_1.expectString,
|
|
1612
|
-
GroupSecurityIdentifier: smithy_client_1.expectString,
|
|
1613
|
-
TemplateArn: smithy_client_1.expectString,
|
|
1614
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1615
|
-
});
|
|
1616
|
-
};
|
|
1617
|
-
const de_Connector = (output, context) => {
|
|
1618
|
-
return (0, smithy_client_1.take)(output, {
|
|
1619
|
-
Arn: smithy_client_1.expectString,
|
|
1620
|
-
CertificateAuthorityArn: smithy_client_1.expectString,
|
|
1621
|
-
CertificateEnrollmentPolicyServerEndpoint: smithy_client_1.expectString,
|
|
1622
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1623
|
-
DirectoryId: smithy_client_1.expectString,
|
|
1624
|
-
Status: smithy_client_1.expectString,
|
|
1625
|
-
StatusReason: smithy_client_1.expectString,
|
|
1626
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1627
|
-
VpcInformation: smithy_client_1._json,
|
|
1628
|
-
});
|
|
1629
|
-
};
|
|
1630
|
-
const de_ConnectorList = (output, context) => {
|
|
1631
|
-
const retVal = (output || [])
|
|
1632
|
-
.filter((e) => e != null)
|
|
1633
|
-
.map((entry) => {
|
|
1634
|
-
return de_ConnectorSummary(entry, context);
|
|
1635
|
-
});
|
|
1636
|
-
return retVal;
|
|
1637
|
-
};
|
|
1638
|
-
const de_ConnectorSummary = (output, context) => {
|
|
1639
|
-
return (0, smithy_client_1.take)(output, {
|
|
1640
|
-
Arn: smithy_client_1.expectString,
|
|
1641
|
-
CertificateAuthorityArn: smithy_client_1.expectString,
|
|
1642
|
-
CertificateEnrollmentPolicyServerEndpoint: smithy_client_1.expectString,
|
|
1643
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1644
|
-
DirectoryId: smithy_client_1.expectString,
|
|
1645
|
-
Status: smithy_client_1.expectString,
|
|
1646
|
-
StatusReason: smithy_client_1.expectString,
|
|
1647
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1648
|
-
VpcInformation: smithy_client_1._json,
|
|
1649
|
-
});
|
|
1650
|
-
};
|
|
1651
|
-
const de_DirectoryRegistration = (output, context) => {
|
|
1652
|
-
return (0, smithy_client_1.take)(output, {
|
|
1653
|
-
Arn: smithy_client_1.expectString,
|
|
1654
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1655
|
-
DirectoryId: smithy_client_1.expectString,
|
|
1656
|
-
Status: smithy_client_1.expectString,
|
|
1657
|
-
StatusReason: smithy_client_1.expectString,
|
|
1658
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1659
|
-
});
|
|
1660
|
-
};
|
|
1661
|
-
const de_DirectoryRegistrationList = (output, context) => {
|
|
1662
|
-
const retVal = (output || [])
|
|
1663
|
-
.filter((e) => e != null)
|
|
1664
|
-
.map((entry) => {
|
|
1665
|
-
return de_DirectoryRegistrationSummary(entry, context);
|
|
1666
|
-
});
|
|
1667
|
-
return retVal;
|
|
1668
|
-
};
|
|
1669
|
-
const de_DirectoryRegistrationSummary = (output, context) => {
|
|
1670
|
-
return (0, smithy_client_1.take)(output, {
|
|
1671
|
-
Arn: smithy_client_1.expectString,
|
|
1672
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1673
|
-
DirectoryId: smithy_client_1.expectString,
|
|
1674
|
-
Status: smithy_client_1.expectString,
|
|
1675
|
-
StatusReason: smithy_client_1.expectString,
|
|
1676
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1677
|
-
});
|
|
1678
|
-
};
|
|
1679
|
-
const de_ServicePrincipalName = (output, context) => {
|
|
1680
|
-
return (0, smithy_client_1.take)(output, {
|
|
1681
|
-
ConnectorArn: smithy_client_1.expectString,
|
|
1682
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1683
|
-
DirectoryRegistrationArn: smithy_client_1.expectString,
|
|
1684
|
-
Status: smithy_client_1.expectString,
|
|
1685
|
-
StatusReason: smithy_client_1.expectString,
|
|
1686
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1687
|
-
});
|
|
1688
|
-
};
|
|
1689
|
-
const de_ServicePrincipalNameList = (output, context) => {
|
|
1690
|
-
const retVal = (output || [])
|
|
1691
|
-
.filter((e) => e != null)
|
|
1692
|
-
.map((entry) => {
|
|
1693
|
-
return de_ServicePrincipalNameSummary(entry, context);
|
|
1694
|
-
});
|
|
1695
|
-
return retVal;
|
|
1696
|
-
};
|
|
1697
|
-
const de_ServicePrincipalNameSummary = (output, context) => {
|
|
1698
|
-
return (0, smithy_client_1.take)(output, {
|
|
1699
|
-
ConnectorArn: smithy_client_1.expectString,
|
|
1700
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1701
|
-
DirectoryRegistrationArn: smithy_client_1.expectString,
|
|
1702
|
-
Status: smithy_client_1.expectString,
|
|
1703
|
-
StatusReason: smithy_client_1.expectString,
|
|
1704
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1705
|
-
});
|
|
1706
|
-
};
|
|
1707
|
-
const de_Template = (output, context) => {
|
|
1708
|
-
return (0, smithy_client_1.take)(output, {
|
|
1709
|
-
Arn: smithy_client_1.expectString,
|
|
1710
|
-
ConnectorArn: smithy_client_1.expectString,
|
|
1711
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1712
|
-
Definition: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1713
|
-
Name: smithy_client_1.expectString,
|
|
1714
|
-
ObjectIdentifier: smithy_client_1.expectString,
|
|
1715
|
-
PolicySchema: smithy_client_1.expectInt32,
|
|
1716
|
-
Revision: smithy_client_1._json,
|
|
1717
|
-
Status: smithy_client_1.expectString,
|
|
1718
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1719
|
-
});
|
|
1720
|
-
};
|
|
1721
|
-
const de_TemplateList = (output, context) => {
|
|
1722
|
-
const retVal = (output || [])
|
|
1723
|
-
.filter((e) => e != null)
|
|
1724
|
-
.map((entry) => {
|
|
1725
|
-
return de_TemplateSummary(entry, context);
|
|
1726
|
-
});
|
|
1727
|
-
return retVal;
|
|
1728
|
-
};
|
|
1729
|
-
const de_TemplateSummary = (output, context) => {
|
|
1730
|
-
return (0, smithy_client_1.take)(output, {
|
|
1731
|
-
Arn: smithy_client_1.expectString,
|
|
1732
|
-
ConnectorArn: smithy_client_1.expectString,
|
|
1733
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1734
|
-
Definition: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1735
|
-
Name: smithy_client_1.expectString,
|
|
1736
|
-
ObjectIdentifier: smithy_client_1.expectString,
|
|
1737
|
-
PolicySchema: smithy_client_1.expectInt32,
|
|
1738
|
-
Revision: smithy_client_1._json,
|
|
1739
|
-
Status: smithy_client_1.expectString,
|
|
1740
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1741
|
-
});
|
|
1742
|
-
};
|
|
1743
|
-
const deserializeMetadata = (output) => ({
|
|
1744
|
-
httpStatusCode: output.statusCode,
|
|
1745
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1746
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1747
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1748
|
-
});
|
|
1749
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1750
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1751
|
-
value !== null &&
|
|
1752
|
-
value !== "" &&
|
|
1753
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1754
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1755
|
-
const _CA = "ConnectorArn";
|
|
1756
|
-
const _MR = "MaxResults";
|
|
1757
|
-
const _NT = "NextToken";
|
|
1758
|
-
const _TK = "TagKeys";
|
|
1759
|
-
const _tK = "tagKeys";
|
|
1760
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1761
|
-
if (encoded.length) {
|
|
1762
|
-
return JSON.parse(encoded);
|
|
1763
|
-
}
|
|
1764
|
-
return {};
|
|
1765
|
-
});
|
|
1766
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1767
|
-
const value = await parseBody(errorBody, context);
|
|
1768
|
-
value.message = value.message ?? value.Message;
|
|
1769
|
-
return value;
|
|
1770
|
-
};
|
|
1771
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1772
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1773
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1774
|
-
let cleanValue = rawValue;
|
|
1775
|
-
if (typeof cleanValue === "number") {
|
|
1776
|
-
cleanValue = cleanValue.toString();
|
|
1777
|
-
}
|
|
1778
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1779
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1780
|
-
}
|
|
1781
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1782
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1783
|
-
}
|
|
1784
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1785
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1786
|
-
}
|
|
1787
|
-
return cleanValue;
|
|
1788
|
-
};
|
|
1789
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1790
|
-
if (headerKey !== undefined) {
|
|
1791
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1792
|
-
}
|
|
1793
|
-
if (data.code !== undefined) {
|
|
1794
|
-
return sanitizeErrorCode(data.code);
|
|
1795
|
-
}
|
|
1796
|
-
if (data["__type"] !== undefined) {
|
|
1797
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1798
|
-
}
|
|
1799
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|