@aws-sdk/client-pca-connector-ad 3.928.0 → 3.930.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/index.js +1196 -1150
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/PcaConnectorAdClient.js +2 -0
- package/dist-es/commands/CreateConnectorCommand.js +3 -9
- package/dist-es/commands/CreateDirectoryRegistrationCommand.js +3 -9
- package/dist-es/commands/CreateServicePrincipalNameCommand.js +3 -9
- package/dist-es/commands/CreateTemplateCommand.js +3 -9
- package/dist-es/commands/CreateTemplateGroupAccessControlEntryCommand.js +3 -9
- package/dist-es/commands/DeleteConnectorCommand.js +3 -9
- package/dist-es/commands/DeleteDirectoryRegistrationCommand.js +3 -9
- package/dist-es/commands/DeleteServicePrincipalNameCommand.js +3 -9
- package/dist-es/commands/DeleteTemplateCommand.js +3 -9
- package/dist-es/commands/DeleteTemplateGroupAccessControlEntryCommand.js +3 -9
- package/dist-es/commands/GetConnectorCommand.js +3 -9
- package/dist-es/commands/GetDirectoryRegistrationCommand.js +3 -9
- package/dist-es/commands/GetServicePrincipalNameCommand.js +3 -9
- package/dist-es/commands/GetTemplateCommand.js +3 -9
- package/dist-es/commands/GetTemplateGroupAccessControlEntryCommand.js +3 -9
- package/dist-es/commands/ListConnectorsCommand.js +3 -9
- package/dist-es/commands/ListDirectoryRegistrationsCommand.js +3 -9
- package/dist-es/commands/ListServicePrincipalNamesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTemplateGroupAccessControlEntriesCommand.js +3 -9
- package/dist-es/commands/ListTemplatesCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateTemplateCommand.js +3 -9
- package/dist-es/commands/UpdateTemplateGroupAccessControlEntryCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -32
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1132 -0
- package/dist-types/PcaConnectorAdClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +12 -3
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +128 -0
- package/dist-types/ts3.4/PcaConnectorAdClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +133 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -927
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -227
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -305
|
@@ -1,927 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { PcaConnectorAdServiceException as __BaseException } from "../models/PcaConnectorAdServiceException";
|
|
7
|
-
export const se_CreateConnectorCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/connectors");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
CertificateAuthorityArn: [],
|
|
16
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
17
|
-
DirectoryId: [],
|
|
18
|
-
Tags: (_) => _json(_),
|
|
19
|
-
VpcInformation: (_) => _json(_),
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateDirectoryRegistrationCommand = async (input, context) => {
|
|
25
|
-
const b = rb(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/json",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/directoryRegistrations");
|
|
30
|
-
let body;
|
|
31
|
-
body = JSON.stringify(take(input, {
|
|
32
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
33
|
-
DirectoryId: [],
|
|
34
|
-
Tags: (_) => _json(_),
|
|
35
|
-
}));
|
|
36
|
-
b.m("POST").h(headers).b(body);
|
|
37
|
-
return b.build();
|
|
38
|
-
};
|
|
39
|
-
export const se_CreateServicePrincipalNameCommand = async (input, context) => {
|
|
40
|
-
const b = rb(input, context);
|
|
41
|
-
const headers = {
|
|
42
|
-
"content-type": "application/json",
|
|
43
|
-
};
|
|
44
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
|
|
45
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
46
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify(take(input, {
|
|
49
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
50
|
-
}));
|
|
51
|
-
b.m("POST").h(headers).b(body);
|
|
52
|
-
return b.build();
|
|
53
|
-
};
|
|
54
|
-
export const se_CreateTemplateCommand = async (input, context) => {
|
|
55
|
-
const b = rb(input, context);
|
|
56
|
-
const headers = {
|
|
57
|
-
"content-type": "application/json",
|
|
58
|
-
};
|
|
59
|
-
b.bp("/templates");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify(take(input, {
|
|
62
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
63
|
-
ConnectorArn: [],
|
|
64
|
-
Definition: (_) => _json(_),
|
|
65
|
-
Name: [],
|
|
66
|
-
Tags: (_) => _json(_),
|
|
67
|
-
}));
|
|
68
|
-
b.m("POST").h(headers).b(body);
|
|
69
|
-
return b.build();
|
|
70
|
-
};
|
|
71
|
-
export const se_CreateTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
72
|
-
const b = rb(input, context);
|
|
73
|
-
const headers = {
|
|
74
|
-
"content-type": "application/json",
|
|
75
|
-
};
|
|
76
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries");
|
|
77
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
78
|
-
let body;
|
|
79
|
-
body = JSON.stringify(take(input, {
|
|
80
|
-
AccessRights: (_) => _json(_),
|
|
81
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
82
|
-
GroupDisplayName: [],
|
|
83
|
-
GroupSecurityIdentifier: [],
|
|
84
|
-
}));
|
|
85
|
-
b.m("POST").h(headers).b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
export const se_DeleteConnectorCommand = async (input, context) => {
|
|
89
|
-
const b = rb(input, context);
|
|
90
|
-
const headers = {};
|
|
91
|
-
b.bp("/connectors/{ConnectorArn}");
|
|
92
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
93
|
-
let body;
|
|
94
|
-
b.m("DELETE").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
export const se_DeleteDirectoryRegistrationCommand = async (input, context) => {
|
|
98
|
-
const b = rb(input, context);
|
|
99
|
-
const headers = {};
|
|
100
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}");
|
|
101
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
102
|
-
let body;
|
|
103
|
-
b.m("DELETE").h(headers).b(body);
|
|
104
|
-
return b.build();
|
|
105
|
-
};
|
|
106
|
-
export const se_DeleteServicePrincipalNameCommand = async (input, context) => {
|
|
107
|
-
const b = rb(input, context);
|
|
108
|
-
const headers = {};
|
|
109
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
|
|
110
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
111
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
112
|
-
let body;
|
|
113
|
-
b.m("DELETE").h(headers).b(body);
|
|
114
|
-
return b.build();
|
|
115
|
-
};
|
|
116
|
-
export const se_DeleteTemplateCommand = async (input, context) => {
|
|
117
|
-
const b = rb(input, context);
|
|
118
|
-
const headers = {};
|
|
119
|
-
b.bp("/templates/{TemplateArn}");
|
|
120
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
121
|
-
let body;
|
|
122
|
-
b.m("DELETE").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
export const se_DeleteTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
126
|
-
const b = rb(input, context);
|
|
127
|
-
const headers = {};
|
|
128
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
|
|
129
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
130
|
-
b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
131
|
-
let body;
|
|
132
|
-
b.m("DELETE").h(headers).b(body);
|
|
133
|
-
return b.build();
|
|
134
|
-
};
|
|
135
|
-
export const se_GetConnectorCommand = async (input, context) => {
|
|
136
|
-
const b = rb(input, context);
|
|
137
|
-
const headers = {};
|
|
138
|
-
b.bp("/connectors/{ConnectorArn}");
|
|
139
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
140
|
-
let body;
|
|
141
|
-
b.m("GET").h(headers).b(body);
|
|
142
|
-
return b.build();
|
|
143
|
-
};
|
|
144
|
-
export const se_GetDirectoryRegistrationCommand = async (input, context) => {
|
|
145
|
-
const b = rb(input, context);
|
|
146
|
-
const headers = {};
|
|
147
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}");
|
|
148
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
149
|
-
let body;
|
|
150
|
-
b.m("GET").h(headers).b(body);
|
|
151
|
-
return b.build();
|
|
152
|
-
};
|
|
153
|
-
export const se_GetServicePrincipalNameCommand = async (input, context) => {
|
|
154
|
-
const b = rb(input, context);
|
|
155
|
-
const headers = {};
|
|
156
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
|
|
157
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
158
|
-
b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
|
|
159
|
-
let body;
|
|
160
|
-
b.m("GET").h(headers).b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
export const se_GetTemplateCommand = async (input, context) => {
|
|
164
|
-
const b = rb(input, context);
|
|
165
|
-
const headers = {};
|
|
166
|
-
b.bp("/templates/{TemplateArn}");
|
|
167
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
168
|
-
let body;
|
|
169
|
-
b.m("GET").h(headers).b(body);
|
|
170
|
-
return b.build();
|
|
171
|
-
};
|
|
172
|
-
export const se_GetTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
173
|
-
const b = rb(input, context);
|
|
174
|
-
const headers = {};
|
|
175
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
|
|
176
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
177
|
-
b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
178
|
-
let body;
|
|
179
|
-
b.m("GET").h(headers).b(body);
|
|
180
|
-
return b.build();
|
|
181
|
-
};
|
|
182
|
-
export const se_ListConnectorsCommand = async (input, context) => {
|
|
183
|
-
const b = rb(input, context);
|
|
184
|
-
const headers = {};
|
|
185
|
-
b.bp("/connectors");
|
|
186
|
-
const query = map({
|
|
187
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
188
|
-
[_NT]: [, input[_NT]],
|
|
189
|
-
});
|
|
190
|
-
let body;
|
|
191
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
192
|
-
return b.build();
|
|
193
|
-
};
|
|
194
|
-
export const se_ListDirectoryRegistrationsCommand = async (input, context) => {
|
|
195
|
-
const b = rb(input, context);
|
|
196
|
-
const headers = {};
|
|
197
|
-
b.bp("/directoryRegistrations");
|
|
198
|
-
const query = map({
|
|
199
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
200
|
-
[_NT]: [, input[_NT]],
|
|
201
|
-
});
|
|
202
|
-
let body;
|
|
203
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
204
|
-
return b.build();
|
|
205
|
-
};
|
|
206
|
-
export const se_ListServicePrincipalNamesCommand = async (input, context) => {
|
|
207
|
-
const b = rb(input, context);
|
|
208
|
-
const headers = {};
|
|
209
|
-
b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames");
|
|
210
|
-
b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
|
|
211
|
-
const query = map({
|
|
212
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
213
|
-
[_NT]: [, input[_NT]],
|
|
214
|
-
});
|
|
215
|
-
let body;
|
|
216
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
217
|
-
return b.build();
|
|
218
|
-
};
|
|
219
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
220
|
-
const b = rb(input, context);
|
|
221
|
-
const headers = {};
|
|
222
|
-
b.bp("/tags/{ResourceArn}");
|
|
223
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
224
|
-
let body;
|
|
225
|
-
b.m("GET").h(headers).b(body);
|
|
226
|
-
return b.build();
|
|
227
|
-
};
|
|
228
|
-
export const se_ListTemplateGroupAccessControlEntriesCommand = async (input, context) => {
|
|
229
|
-
const b = rb(input, context);
|
|
230
|
-
const headers = {};
|
|
231
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries");
|
|
232
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
233
|
-
const query = map({
|
|
234
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
235
|
-
[_NT]: [, input[_NT]],
|
|
236
|
-
});
|
|
237
|
-
let body;
|
|
238
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
239
|
-
return b.build();
|
|
240
|
-
};
|
|
241
|
-
export const se_ListTemplatesCommand = async (input, context) => {
|
|
242
|
-
const b = rb(input, context);
|
|
243
|
-
const headers = {};
|
|
244
|
-
b.bp("/templates");
|
|
245
|
-
const query = map({
|
|
246
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
247
|
-
[_NT]: [, input[_NT]],
|
|
248
|
-
[_CA]: [, __expectNonNull(input[_CA], `ConnectorArn`)],
|
|
249
|
-
});
|
|
250
|
-
let body;
|
|
251
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
252
|
-
return b.build();
|
|
253
|
-
};
|
|
254
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
255
|
-
const b = rb(input, context);
|
|
256
|
-
const headers = {
|
|
257
|
-
"content-type": "application/json",
|
|
258
|
-
};
|
|
259
|
-
b.bp("/tags/{ResourceArn}");
|
|
260
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
261
|
-
let body;
|
|
262
|
-
body = JSON.stringify(take(input, {
|
|
263
|
-
Tags: (_) => _json(_),
|
|
264
|
-
}));
|
|
265
|
-
b.m("POST").h(headers).b(body);
|
|
266
|
-
return b.build();
|
|
267
|
-
};
|
|
268
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
269
|
-
const b = rb(input, context);
|
|
270
|
-
const headers = {};
|
|
271
|
-
b.bp("/tags/{ResourceArn}");
|
|
272
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
273
|
-
const query = map({
|
|
274
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
275
|
-
});
|
|
276
|
-
let body;
|
|
277
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
278
|
-
return b.build();
|
|
279
|
-
};
|
|
280
|
-
export const se_UpdateTemplateCommand = async (input, context) => {
|
|
281
|
-
const b = rb(input, context);
|
|
282
|
-
const headers = {
|
|
283
|
-
"content-type": "application/json",
|
|
284
|
-
};
|
|
285
|
-
b.bp("/templates/{TemplateArn}");
|
|
286
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
287
|
-
let body;
|
|
288
|
-
body = JSON.stringify(take(input, {
|
|
289
|
-
Definition: (_) => _json(_),
|
|
290
|
-
ReenrollAllCertificateHolders: [],
|
|
291
|
-
}));
|
|
292
|
-
b.m("PATCH").h(headers).b(body);
|
|
293
|
-
return b.build();
|
|
294
|
-
};
|
|
295
|
-
export const se_UpdateTemplateGroupAccessControlEntryCommand = async (input, context) => {
|
|
296
|
-
const b = rb(input, context);
|
|
297
|
-
const headers = {
|
|
298
|
-
"content-type": "application/json",
|
|
299
|
-
};
|
|
300
|
-
b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
|
|
301
|
-
b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
|
|
302
|
-
b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
|
|
303
|
-
let body;
|
|
304
|
-
body = JSON.stringify(take(input, {
|
|
305
|
-
AccessRights: (_) => _json(_),
|
|
306
|
-
GroupDisplayName: [],
|
|
307
|
-
}));
|
|
308
|
-
b.m("PATCH").h(headers).b(body);
|
|
309
|
-
return b.build();
|
|
310
|
-
};
|
|
311
|
-
export const de_CreateConnectorCommand = async (output, context) => {
|
|
312
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
313
|
-
return de_CommandError(output, context);
|
|
314
|
-
}
|
|
315
|
-
const contents = map({
|
|
316
|
-
$metadata: deserializeMetadata(output),
|
|
317
|
-
});
|
|
318
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
319
|
-
const doc = take(data, {
|
|
320
|
-
ConnectorArn: __expectString,
|
|
321
|
-
});
|
|
322
|
-
Object.assign(contents, doc);
|
|
323
|
-
return contents;
|
|
324
|
-
};
|
|
325
|
-
export const de_CreateDirectoryRegistrationCommand = async (output, context) => {
|
|
326
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
327
|
-
return de_CommandError(output, context);
|
|
328
|
-
}
|
|
329
|
-
const contents = map({
|
|
330
|
-
$metadata: deserializeMetadata(output),
|
|
331
|
-
});
|
|
332
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
333
|
-
const doc = take(data, {
|
|
334
|
-
DirectoryRegistrationArn: __expectString,
|
|
335
|
-
});
|
|
336
|
-
Object.assign(contents, doc);
|
|
337
|
-
return contents;
|
|
338
|
-
};
|
|
339
|
-
export const de_CreateServicePrincipalNameCommand = async (output, context) => {
|
|
340
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
341
|
-
return de_CommandError(output, context);
|
|
342
|
-
}
|
|
343
|
-
const contents = map({
|
|
344
|
-
$metadata: deserializeMetadata(output),
|
|
345
|
-
});
|
|
346
|
-
await collectBody(output.body, context);
|
|
347
|
-
return contents;
|
|
348
|
-
};
|
|
349
|
-
export const de_CreateTemplateCommand = async (output, context) => {
|
|
350
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
351
|
-
return de_CommandError(output, context);
|
|
352
|
-
}
|
|
353
|
-
const contents = map({
|
|
354
|
-
$metadata: deserializeMetadata(output),
|
|
355
|
-
});
|
|
356
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
357
|
-
const doc = take(data, {
|
|
358
|
-
TemplateArn: __expectString,
|
|
359
|
-
});
|
|
360
|
-
Object.assign(contents, doc);
|
|
361
|
-
return contents;
|
|
362
|
-
};
|
|
363
|
-
export const de_CreateTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
364
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
|
-
return de_CommandError(output, context);
|
|
366
|
-
}
|
|
367
|
-
const contents = map({
|
|
368
|
-
$metadata: deserializeMetadata(output),
|
|
369
|
-
});
|
|
370
|
-
await collectBody(output.body, context);
|
|
371
|
-
return contents;
|
|
372
|
-
};
|
|
373
|
-
export const de_DeleteConnectorCommand = async (output, context) => {
|
|
374
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
375
|
-
return de_CommandError(output, context);
|
|
376
|
-
}
|
|
377
|
-
const contents = map({
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
});
|
|
380
|
-
await collectBody(output.body, context);
|
|
381
|
-
return contents;
|
|
382
|
-
};
|
|
383
|
-
export const de_DeleteDirectoryRegistrationCommand = async (output, context) => {
|
|
384
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
385
|
-
return de_CommandError(output, context);
|
|
386
|
-
}
|
|
387
|
-
const contents = map({
|
|
388
|
-
$metadata: deserializeMetadata(output),
|
|
389
|
-
});
|
|
390
|
-
await collectBody(output.body, context);
|
|
391
|
-
return contents;
|
|
392
|
-
};
|
|
393
|
-
export const de_DeleteServicePrincipalNameCommand = async (output, context) => {
|
|
394
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
395
|
-
return de_CommandError(output, context);
|
|
396
|
-
}
|
|
397
|
-
const contents = map({
|
|
398
|
-
$metadata: deserializeMetadata(output),
|
|
399
|
-
});
|
|
400
|
-
await collectBody(output.body, context);
|
|
401
|
-
return contents;
|
|
402
|
-
};
|
|
403
|
-
export const de_DeleteTemplateCommand = async (output, context) => {
|
|
404
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
405
|
-
return de_CommandError(output, context);
|
|
406
|
-
}
|
|
407
|
-
const contents = map({
|
|
408
|
-
$metadata: deserializeMetadata(output),
|
|
409
|
-
});
|
|
410
|
-
await collectBody(output.body, context);
|
|
411
|
-
return contents;
|
|
412
|
-
};
|
|
413
|
-
export const de_DeleteTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
414
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
415
|
-
return de_CommandError(output, context);
|
|
416
|
-
}
|
|
417
|
-
const contents = map({
|
|
418
|
-
$metadata: deserializeMetadata(output),
|
|
419
|
-
});
|
|
420
|
-
await collectBody(output.body, context);
|
|
421
|
-
return contents;
|
|
422
|
-
};
|
|
423
|
-
export const de_GetConnectorCommand = async (output, context) => {
|
|
424
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
425
|
-
return de_CommandError(output, context);
|
|
426
|
-
}
|
|
427
|
-
const contents = map({
|
|
428
|
-
$metadata: deserializeMetadata(output),
|
|
429
|
-
});
|
|
430
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
431
|
-
const doc = take(data, {
|
|
432
|
-
Connector: (_) => de_Connector(_, context),
|
|
433
|
-
});
|
|
434
|
-
Object.assign(contents, doc);
|
|
435
|
-
return contents;
|
|
436
|
-
};
|
|
437
|
-
export const de_GetDirectoryRegistrationCommand = async (output, context) => {
|
|
438
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
439
|
-
return de_CommandError(output, context);
|
|
440
|
-
}
|
|
441
|
-
const contents = map({
|
|
442
|
-
$metadata: deserializeMetadata(output),
|
|
443
|
-
});
|
|
444
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
445
|
-
const doc = take(data, {
|
|
446
|
-
DirectoryRegistration: (_) => de_DirectoryRegistration(_, context),
|
|
447
|
-
});
|
|
448
|
-
Object.assign(contents, doc);
|
|
449
|
-
return contents;
|
|
450
|
-
};
|
|
451
|
-
export const de_GetServicePrincipalNameCommand = async (output, context) => {
|
|
452
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
453
|
-
return de_CommandError(output, context);
|
|
454
|
-
}
|
|
455
|
-
const contents = map({
|
|
456
|
-
$metadata: deserializeMetadata(output),
|
|
457
|
-
});
|
|
458
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
459
|
-
const doc = take(data, {
|
|
460
|
-
ServicePrincipalName: (_) => de_ServicePrincipalName(_, context),
|
|
461
|
-
});
|
|
462
|
-
Object.assign(contents, doc);
|
|
463
|
-
return contents;
|
|
464
|
-
};
|
|
465
|
-
export const de_GetTemplateCommand = async (output, context) => {
|
|
466
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
467
|
-
return de_CommandError(output, context);
|
|
468
|
-
}
|
|
469
|
-
const contents = map({
|
|
470
|
-
$metadata: deserializeMetadata(output),
|
|
471
|
-
});
|
|
472
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
473
|
-
const doc = take(data, {
|
|
474
|
-
Template: (_) => de_Template(_, context),
|
|
475
|
-
});
|
|
476
|
-
Object.assign(contents, doc);
|
|
477
|
-
return contents;
|
|
478
|
-
};
|
|
479
|
-
export const de_GetTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
480
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
481
|
-
return de_CommandError(output, context);
|
|
482
|
-
}
|
|
483
|
-
const contents = map({
|
|
484
|
-
$metadata: deserializeMetadata(output),
|
|
485
|
-
});
|
|
486
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
487
|
-
const doc = take(data, {
|
|
488
|
-
AccessControlEntry: (_) => de_AccessControlEntry(_, context),
|
|
489
|
-
});
|
|
490
|
-
Object.assign(contents, doc);
|
|
491
|
-
return contents;
|
|
492
|
-
};
|
|
493
|
-
export const de_ListConnectorsCommand = async (output, context) => {
|
|
494
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
495
|
-
return de_CommandError(output, context);
|
|
496
|
-
}
|
|
497
|
-
const contents = map({
|
|
498
|
-
$metadata: deserializeMetadata(output),
|
|
499
|
-
});
|
|
500
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
501
|
-
const doc = take(data, {
|
|
502
|
-
Connectors: (_) => de_ConnectorList(_, context),
|
|
503
|
-
NextToken: __expectString,
|
|
504
|
-
});
|
|
505
|
-
Object.assign(contents, doc);
|
|
506
|
-
return contents;
|
|
507
|
-
};
|
|
508
|
-
export const de_ListDirectoryRegistrationsCommand = async (output, context) => {
|
|
509
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
510
|
-
return de_CommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const contents = map({
|
|
513
|
-
$metadata: deserializeMetadata(output),
|
|
514
|
-
});
|
|
515
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
516
|
-
const doc = take(data, {
|
|
517
|
-
DirectoryRegistrations: (_) => de_DirectoryRegistrationList(_, context),
|
|
518
|
-
NextToken: __expectString,
|
|
519
|
-
});
|
|
520
|
-
Object.assign(contents, doc);
|
|
521
|
-
return contents;
|
|
522
|
-
};
|
|
523
|
-
export const de_ListServicePrincipalNamesCommand = async (output, context) => {
|
|
524
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
525
|
-
return de_CommandError(output, context);
|
|
526
|
-
}
|
|
527
|
-
const contents = map({
|
|
528
|
-
$metadata: deserializeMetadata(output),
|
|
529
|
-
});
|
|
530
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
531
|
-
const doc = take(data, {
|
|
532
|
-
NextToken: __expectString,
|
|
533
|
-
ServicePrincipalNames: (_) => de_ServicePrincipalNameList(_, context),
|
|
534
|
-
});
|
|
535
|
-
Object.assign(contents, doc);
|
|
536
|
-
return contents;
|
|
537
|
-
};
|
|
538
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
539
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
540
|
-
return de_CommandError(output, context);
|
|
541
|
-
}
|
|
542
|
-
const contents = map({
|
|
543
|
-
$metadata: deserializeMetadata(output),
|
|
544
|
-
});
|
|
545
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
546
|
-
const doc = take(data, {
|
|
547
|
-
Tags: _json,
|
|
548
|
-
});
|
|
549
|
-
Object.assign(contents, doc);
|
|
550
|
-
return contents;
|
|
551
|
-
};
|
|
552
|
-
export const de_ListTemplateGroupAccessControlEntriesCommand = async (output, context) => {
|
|
553
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
554
|
-
return de_CommandError(output, context);
|
|
555
|
-
}
|
|
556
|
-
const contents = map({
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
});
|
|
559
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
560
|
-
const doc = take(data, {
|
|
561
|
-
AccessControlEntries: (_) => de_AccessControlEntryList(_, context),
|
|
562
|
-
NextToken: __expectString,
|
|
563
|
-
});
|
|
564
|
-
Object.assign(contents, doc);
|
|
565
|
-
return contents;
|
|
566
|
-
};
|
|
567
|
-
export const de_ListTemplatesCommand = async (output, context) => {
|
|
568
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
569
|
-
return de_CommandError(output, context);
|
|
570
|
-
}
|
|
571
|
-
const contents = map({
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
});
|
|
574
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
575
|
-
const doc = take(data, {
|
|
576
|
-
NextToken: __expectString,
|
|
577
|
-
Templates: (_) => de_TemplateList(_, context),
|
|
578
|
-
});
|
|
579
|
-
Object.assign(contents, doc);
|
|
580
|
-
return contents;
|
|
581
|
-
};
|
|
582
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
583
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
584
|
-
return de_CommandError(output, context);
|
|
585
|
-
}
|
|
586
|
-
const contents = map({
|
|
587
|
-
$metadata: deserializeMetadata(output),
|
|
588
|
-
});
|
|
589
|
-
await collectBody(output.body, context);
|
|
590
|
-
return contents;
|
|
591
|
-
};
|
|
592
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
593
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
594
|
-
return de_CommandError(output, context);
|
|
595
|
-
}
|
|
596
|
-
const contents = map({
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
});
|
|
599
|
-
await collectBody(output.body, context);
|
|
600
|
-
return contents;
|
|
601
|
-
};
|
|
602
|
-
export const de_UpdateTemplateCommand = async (output, context) => {
|
|
603
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
-
return de_CommandError(output, context);
|
|
605
|
-
}
|
|
606
|
-
const contents = map({
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
});
|
|
609
|
-
await collectBody(output.body, context);
|
|
610
|
-
return contents;
|
|
611
|
-
};
|
|
612
|
-
export const de_UpdateTemplateGroupAccessControlEntryCommand = async (output, context) => {
|
|
613
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
|
-
return de_CommandError(output, context);
|
|
615
|
-
}
|
|
616
|
-
const contents = map({
|
|
617
|
-
$metadata: deserializeMetadata(output),
|
|
618
|
-
});
|
|
619
|
-
await collectBody(output.body, context);
|
|
620
|
-
return contents;
|
|
621
|
-
};
|
|
622
|
-
const de_CommandError = async (output, context) => {
|
|
623
|
-
const parsedOutput = {
|
|
624
|
-
...output,
|
|
625
|
-
body: await parseErrorBody(output.body, context),
|
|
626
|
-
};
|
|
627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
628
|
-
switch (errorCode) {
|
|
629
|
-
case "AccessDeniedException":
|
|
630
|
-
case "com.amazonaws.pcaconnectorad#AccessDeniedException":
|
|
631
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
632
|
-
case "ConflictException":
|
|
633
|
-
case "com.amazonaws.pcaconnectorad#ConflictException":
|
|
634
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
635
|
-
case "InternalServerException":
|
|
636
|
-
case "com.amazonaws.pcaconnectorad#InternalServerException":
|
|
637
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
638
|
-
case "ResourceNotFoundException":
|
|
639
|
-
case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
|
|
640
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ServiceQuotaExceededException":
|
|
642
|
-
case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
|
|
643
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
644
|
-
case "ThrottlingException":
|
|
645
|
-
case "com.amazonaws.pcaconnectorad#ThrottlingException":
|
|
646
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
647
|
-
case "ValidationException":
|
|
648
|
-
case "com.amazonaws.pcaconnectorad#ValidationException":
|
|
649
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
650
|
-
default:
|
|
651
|
-
const parsedBody = parsedOutput.body;
|
|
652
|
-
return throwDefaultError({
|
|
653
|
-
output,
|
|
654
|
-
parsedBody,
|
|
655
|
-
errorCode,
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
};
|
|
659
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
660
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
661
|
-
const contents = map({});
|
|
662
|
-
const data = parsedOutput.body;
|
|
663
|
-
const doc = take(data, {
|
|
664
|
-
Message: __expectString,
|
|
665
|
-
});
|
|
666
|
-
Object.assign(contents, doc);
|
|
667
|
-
const exception = new AccessDeniedException({
|
|
668
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
669
|
-
...contents,
|
|
670
|
-
});
|
|
671
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
672
|
-
};
|
|
673
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
674
|
-
const contents = map({});
|
|
675
|
-
const data = parsedOutput.body;
|
|
676
|
-
const doc = take(data, {
|
|
677
|
-
Message: __expectString,
|
|
678
|
-
ResourceId: __expectString,
|
|
679
|
-
ResourceType: __expectString,
|
|
680
|
-
});
|
|
681
|
-
Object.assign(contents, doc);
|
|
682
|
-
const exception = new ConflictException({
|
|
683
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
684
|
-
...contents,
|
|
685
|
-
});
|
|
686
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
687
|
-
};
|
|
688
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
689
|
-
const contents = map({});
|
|
690
|
-
const data = parsedOutput.body;
|
|
691
|
-
const doc = take(data, {
|
|
692
|
-
Message: __expectString,
|
|
693
|
-
});
|
|
694
|
-
Object.assign(contents, doc);
|
|
695
|
-
const exception = new InternalServerException({
|
|
696
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
697
|
-
...contents,
|
|
698
|
-
});
|
|
699
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
700
|
-
};
|
|
701
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
702
|
-
const contents = map({});
|
|
703
|
-
const data = parsedOutput.body;
|
|
704
|
-
const doc = take(data, {
|
|
705
|
-
Message: __expectString,
|
|
706
|
-
ResourceId: __expectString,
|
|
707
|
-
ResourceType: __expectString,
|
|
708
|
-
});
|
|
709
|
-
Object.assign(contents, doc);
|
|
710
|
-
const exception = new ResourceNotFoundException({
|
|
711
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
712
|
-
...contents,
|
|
713
|
-
});
|
|
714
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
715
|
-
};
|
|
716
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
717
|
-
const contents = map({});
|
|
718
|
-
const data = parsedOutput.body;
|
|
719
|
-
const doc = take(data, {
|
|
720
|
-
Message: __expectString,
|
|
721
|
-
QuotaCode: __expectString,
|
|
722
|
-
ResourceId: __expectString,
|
|
723
|
-
ResourceType: __expectString,
|
|
724
|
-
ServiceCode: __expectString,
|
|
725
|
-
});
|
|
726
|
-
Object.assign(contents, doc);
|
|
727
|
-
const exception = new ServiceQuotaExceededException({
|
|
728
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
729
|
-
...contents,
|
|
730
|
-
});
|
|
731
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
732
|
-
};
|
|
733
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
734
|
-
const contents = map({});
|
|
735
|
-
const data = parsedOutput.body;
|
|
736
|
-
const doc = take(data, {
|
|
737
|
-
Message: __expectString,
|
|
738
|
-
QuotaCode: __expectString,
|
|
739
|
-
ServiceCode: __expectString,
|
|
740
|
-
});
|
|
741
|
-
Object.assign(contents, doc);
|
|
742
|
-
const exception = new ThrottlingException({
|
|
743
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
744
|
-
...contents,
|
|
745
|
-
});
|
|
746
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
747
|
-
};
|
|
748
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
749
|
-
const contents = map({});
|
|
750
|
-
const data = parsedOutput.body;
|
|
751
|
-
const doc = take(data, {
|
|
752
|
-
Message: __expectString,
|
|
753
|
-
Reason: __expectString,
|
|
754
|
-
});
|
|
755
|
-
Object.assign(contents, doc);
|
|
756
|
-
const exception = new ValidationException({
|
|
757
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
758
|
-
...contents,
|
|
759
|
-
});
|
|
760
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
761
|
-
};
|
|
762
|
-
const de_AccessControlEntry = (output, context) => {
|
|
763
|
-
return take(output, {
|
|
764
|
-
AccessRights: _json,
|
|
765
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
766
|
-
GroupDisplayName: __expectString,
|
|
767
|
-
GroupSecurityIdentifier: __expectString,
|
|
768
|
-
TemplateArn: __expectString,
|
|
769
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
770
|
-
});
|
|
771
|
-
};
|
|
772
|
-
const de_AccessControlEntryList = (output, context) => {
|
|
773
|
-
const retVal = (output || [])
|
|
774
|
-
.filter((e) => e != null)
|
|
775
|
-
.map((entry) => {
|
|
776
|
-
return de_AccessControlEntrySummary(entry, context);
|
|
777
|
-
});
|
|
778
|
-
return retVal;
|
|
779
|
-
};
|
|
780
|
-
const de_AccessControlEntrySummary = (output, context) => {
|
|
781
|
-
return take(output, {
|
|
782
|
-
AccessRights: _json,
|
|
783
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
784
|
-
GroupDisplayName: __expectString,
|
|
785
|
-
GroupSecurityIdentifier: __expectString,
|
|
786
|
-
TemplateArn: __expectString,
|
|
787
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
788
|
-
});
|
|
789
|
-
};
|
|
790
|
-
const de_Connector = (output, context) => {
|
|
791
|
-
return take(output, {
|
|
792
|
-
Arn: __expectString,
|
|
793
|
-
CertificateAuthorityArn: __expectString,
|
|
794
|
-
CertificateEnrollmentPolicyServerEndpoint: __expectString,
|
|
795
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
796
|
-
DirectoryId: __expectString,
|
|
797
|
-
Status: __expectString,
|
|
798
|
-
StatusReason: __expectString,
|
|
799
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
800
|
-
VpcInformation: _json,
|
|
801
|
-
});
|
|
802
|
-
};
|
|
803
|
-
const de_ConnectorList = (output, context) => {
|
|
804
|
-
const retVal = (output || [])
|
|
805
|
-
.filter((e) => e != null)
|
|
806
|
-
.map((entry) => {
|
|
807
|
-
return de_ConnectorSummary(entry, context);
|
|
808
|
-
});
|
|
809
|
-
return retVal;
|
|
810
|
-
};
|
|
811
|
-
const de_ConnectorSummary = (output, context) => {
|
|
812
|
-
return take(output, {
|
|
813
|
-
Arn: __expectString,
|
|
814
|
-
CertificateAuthorityArn: __expectString,
|
|
815
|
-
CertificateEnrollmentPolicyServerEndpoint: __expectString,
|
|
816
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
817
|
-
DirectoryId: __expectString,
|
|
818
|
-
Status: __expectString,
|
|
819
|
-
StatusReason: __expectString,
|
|
820
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
821
|
-
VpcInformation: _json,
|
|
822
|
-
});
|
|
823
|
-
};
|
|
824
|
-
const de_DirectoryRegistration = (output, context) => {
|
|
825
|
-
return take(output, {
|
|
826
|
-
Arn: __expectString,
|
|
827
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
828
|
-
DirectoryId: __expectString,
|
|
829
|
-
Status: __expectString,
|
|
830
|
-
StatusReason: __expectString,
|
|
831
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
832
|
-
});
|
|
833
|
-
};
|
|
834
|
-
const de_DirectoryRegistrationList = (output, context) => {
|
|
835
|
-
const retVal = (output || [])
|
|
836
|
-
.filter((e) => e != null)
|
|
837
|
-
.map((entry) => {
|
|
838
|
-
return de_DirectoryRegistrationSummary(entry, context);
|
|
839
|
-
});
|
|
840
|
-
return retVal;
|
|
841
|
-
};
|
|
842
|
-
const de_DirectoryRegistrationSummary = (output, context) => {
|
|
843
|
-
return take(output, {
|
|
844
|
-
Arn: __expectString,
|
|
845
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
846
|
-
DirectoryId: __expectString,
|
|
847
|
-
Status: __expectString,
|
|
848
|
-
StatusReason: __expectString,
|
|
849
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
850
|
-
});
|
|
851
|
-
};
|
|
852
|
-
const de_ServicePrincipalName = (output, context) => {
|
|
853
|
-
return take(output, {
|
|
854
|
-
ConnectorArn: __expectString,
|
|
855
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
856
|
-
DirectoryRegistrationArn: __expectString,
|
|
857
|
-
Status: __expectString,
|
|
858
|
-
StatusReason: __expectString,
|
|
859
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
860
|
-
});
|
|
861
|
-
};
|
|
862
|
-
const de_ServicePrincipalNameList = (output, context) => {
|
|
863
|
-
const retVal = (output || [])
|
|
864
|
-
.filter((e) => e != null)
|
|
865
|
-
.map((entry) => {
|
|
866
|
-
return de_ServicePrincipalNameSummary(entry, context);
|
|
867
|
-
});
|
|
868
|
-
return retVal;
|
|
869
|
-
};
|
|
870
|
-
const de_ServicePrincipalNameSummary = (output, context) => {
|
|
871
|
-
return take(output, {
|
|
872
|
-
ConnectorArn: __expectString,
|
|
873
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
874
|
-
DirectoryRegistrationArn: __expectString,
|
|
875
|
-
Status: __expectString,
|
|
876
|
-
StatusReason: __expectString,
|
|
877
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
878
|
-
});
|
|
879
|
-
};
|
|
880
|
-
const de_Template = (output, context) => {
|
|
881
|
-
return take(output, {
|
|
882
|
-
Arn: __expectString,
|
|
883
|
-
ConnectorArn: __expectString,
|
|
884
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
885
|
-
Definition: (_) => _json(__expectUnion(_)),
|
|
886
|
-
Name: __expectString,
|
|
887
|
-
ObjectIdentifier: __expectString,
|
|
888
|
-
PolicySchema: __expectInt32,
|
|
889
|
-
Revision: _json,
|
|
890
|
-
Status: __expectString,
|
|
891
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
892
|
-
});
|
|
893
|
-
};
|
|
894
|
-
const de_TemplateList = (output, context) => {
|
|
895
|
-
const retVal = (output || [])
|
|
896
|
-
.filter((e) => e != null)
|
|
897
|
-
.map((entry) => {
|
|
898
|
-
return de_TemplateSummary(entry, context);
|
|
899
|
-
});
|
|
900
|
-
return retVal;
|
|
901
|
-
};
|
|
902
|
-
const de_TemplateSummary = (output, context) => {
|
|
903
|
-
return take(output, {
|
|
904
|
-
Arn: __expectString,
|
|
905
|
-
ConnectorArn: __expectString,
|
|
906
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
907
|
-
Definition: (_) => _json(__expectUnion(_)),
|
|
908
|
-
Name: __expectString,
|
|
909
|
-
ObjectIdentifier: __expectString,
|
|
910
|
-
PolicySchema: __expectInt32,
|
|
911
|
-
Revision: _json,
|
|
912
|
-
Status: __expectString,
|
|
913
|
-
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
914
|
-
});
|
|
915
|
-
};
|
|
916
|
-
const deserializeMetadata = (output) => ({
|
|
917
|
-
httpStatusCode: output.statusCode,
|
|
918
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
919
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
920
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
921
|
-
});
|
|
922
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
923
|
-
const _CA = "ConnectorArn";
|
|
924
|
-
const _MR = "MaxResults";
|
|
925
|
-
const _NT = "NextToken";
|
|
926
|
-
const _TK = "TagKeys";
|
|
927
|
-
const _tK = "tagKeys";
|