@aws-sdk/client-mpa 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 +1068 -1220
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/MPAClient.js +2 -0
- package/dist-es/commands/CancelSessionCommand.js +3 -9
- package/dist-es/commands/CreateApprovalTeamCommand.js +3 -10
- package/dist-es/commands/CreateIdentitySourceCommand.js +3 -10
- package/dist-es/commands/DeleteIdentitySourceCommand.js +3 -9
- package/dist-es/commands/DeleteInactiveApprovalTeamVersionCommand.js +3 -9
- package/dist-es/commands/GetApprovalTeamCommand.js +3 -10
- package/dist-es/commands/GetIdentitySourceCommand.js +3 -9
- package/dist-es/commands/GetPolicyVersionCommand.js +3 -10
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -10
- package/dist-es/commands/GetSessionCommand.js +3 -10
- package/dist-es/commands/ListApprovalTeamsCommand.js +3 -10
- package/dist-es/commands/ListIdentitySourcesCommand.js +3 -9
- package/dist-es/commands/ListPoliciesCommand.js +3 -9
- package/dist-es/commands/ListPolicyVersionsCommand.js +3 -9
- package/dist-es/commands/ListResourcePoliciesCommand.js +3 -9
- package/dist-es/commands/ListSessionsCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/StartActiveApprovalTeamDeletionCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -10
- package/dist-es/commands/UpdateApprovalTeamCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -104
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +999 -0
- package/dist-types/MPAClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +16 -64
- 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 +117 -0
- package/dist-types/ts3.4/MPAClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -55
- 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 +124 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -931
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -191
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -257
|
@@ -1,931 +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, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, InvalidParameterException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { MPAServiceException as __BaseException } from "../models/MPAServiceException";
|
|
7
|
-
export const se_CancelSessionCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {};
|
|
10
|
-
b.bp("/sessions/{SessionArn}");
|
|
11
|
-
b.p("SessionArn", () => input.SessionArn, "{SessionArn}", false);
|
|
12
|
-
let body;
|
|
13
|
-
b.m("PUT").h(headers).b(body);
|
|
14
|
-
return b.build();
|
|
15
|
-
};
|
|
16
|
-
export const se_CreateApprovalTeamCommand = async (input, context) => {
|
|
17
|
-
const b = rb(input, context);
|
|
18
|
-
const headers = {
|
|
19
|
-
"content-type": "application/json",
|
|
20
|
-
};
|
|
21
|
-
b.bp("/approval-teams");
|
|
22
|
-
let body;
|
|
23
|
-
body = JSON.stringify(take(input, {
|
|
24
|
-
ApprovalStrategy: (_) => _json(_),
|
|
25
|
-
Approvers: (_) => _json(_),
|
|
26
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
27
|
-
Description: [],
|
|
28
|
-
Name: [],
|
|
29
|
-
Policies: (_) => _json(_),
|
|
30
|
-
Tags: (_) => _json(_),
|
|
31
|
-
}));
|
|
32
|
-
b.m("POST").h(headers).b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
|
-
export const se_CreateIdentitySourceCommand = async (input, context) => {
|
|
36
|
-
const b = rb(input, context);
|
|
37
|
-
const headers = {
|
|
38
|
-
"content-type": "application/json",
|
|
39
|
-
};
|
|
40
|
-
b.bp("/identity-sources");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(take(input, {
|
|
43
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
44
|
-
IdentitySourceParameters: (_) => _json(_),
|
|
45
|
-
Tags: (_) => _json(_),
|
|
46
|
-
}));
|
|
47
|
-
b.m("POST").h(headers).b(body);
|
|
48
|
-
return b.build();
|
|
49
|
-
};
|
|
50
|
-
export const se_DeleteIdentitySourceCommand = async (input, context) => {
|
|
51
|
-
const b = rb(input, context);
|
|
52
|
-
const headers = {};
|
|
53
|
-
b.bp("/identity-sources/{IdentitySourceArn}");
|
|
54
|
-
b.p("IdentitySourceArn", () => input.IdentitySourceArn, "{IdentitySourceArn}", false);
|
|
55
|
-
let body;
|
|
56
|
-
b.m("DELETE").h(headers).b(body);
|
|
57
|
-
return b.build();
|
|
58
|
-
};
|
|
59
|
-
export const se_DeleteInactiveApprovalTeamVersionCommand = async (input, context) => {
|
|
60
|
-
const b = rb(input, context);
|
|
61
|
-
const headers = {};
|
|
62
|
-
b.bp("/approval-teams/{Arn}/{VersionId}");
|
|
63
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
64
|
-
b.p("VersionId", () => input.VersionId, "{VersionId}", false);
|
|
65
|
-
let body;
|
|
66
|
-
b.m("DELETE").h(headers).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
export const se_GetApprovalTeamCommand = async (input, context) => {
|
|
70
|
-
const b = rb(input, context);
|
|
71
|
-
const headers = {};
|
|
72
|
-
b.bp("/approval-teams/{Arn}");
|
|
73
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
74
|
-
let body;
|
|
75
|
-
b.m("GET").h(headers).b(body);
|
|
76
|
-
return b.build();
|
|
77
|
-
};
|
|
78
|
-
export const se_GetIdentitySourceCommand = async (input, context) => {
|
|
79
|
-
const b = rb(input, context);
|
|
80
|
-
const headers = {};
|
|
81
|
-
b.bp("/identity-sources/{IdentitySourceArn}");
|
|
82
|
-
b.p("IdentitySourceArn", () => input.IdentitySourceArn, "{IdentitySourceArn}", false);
|
|
83
|
-
let body;
|
|
84
|
-
b.m("GET").h(headers).b(body);
|
|
85
|
-
return b.build();
|
|
86
|
-
};
|
|
87
|
-
export const se_GetPolicyVersionCommand = async (input, context) => {
|
|
88
|
-
const b = rb(input, context);
|
|
89
|
-
const headers = {};
|
|
90
|
-
b.bp("/policy-versions/{PolicyVersionArn}");
|
|
91
|
-
b.p("PolicyVersionArn", () => input.PolicyVersionArn, "{PolicyVersionArn}", false);
|
|
92
|
-
let body;
|
|
93
|
-
b.m("GET").h(headers).b(body);
|
|
94
|
-
return b.build();
|
|
95
|
-
};
|
|
96
|
-
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
97
|
-
const b = rb(input, context);
|
|
98
|
-
const headers = {
|
|
99
|
-
"content-type": "application/json",
|
|
100
|
-
};
|
|
101
|
-
b.bp("/GetResourcePolicy");
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify(take(input, {
|
|
104
|
-
PolicyName: [],
|
|
105
|
-
PolicyType: [],
|
|
106
|
-
ResourceArn: [],
|
|
107
|
-
}));
|
|
108
|
-
b.m("POST").h(headers).b(body);
|
|
109
|
-
return b.build();
|
|
110
|
-
};
|
|
111
|
-
export const se_GetSessionCommand = async (input, context) => {
|
|
112
|
-
const b = rb(input, context);
|
|
113
|
-
const headers = {};
|
|
114
|
-
b.bp("/sessions/{SessionArn}");
|
|
115
|
-
b.p("SessionArn", () => input.SessionArn, "{SessionArn}", false);
|
|
116
|
-
let body;
|
|
117
|
-
b.m("GET").h(headers).b(body);
|
|
118
|
-
return b.build();
|
|
119
|
-
};
|
|
120
|
-
export const se_ListApprovalTeamsCommand = async (input, context) => {
|
|
121
|
-
const b = rb(input, context);
|
|
122
|
-
const headers = {};
|
|
123
|
-
b.bp("/approval-teams");
|
|
124
|
-
const query = map({
|
|
125
|
-
[_L]: [, ""],
|
|
126
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
127
|
-
[_NT]: [, input[_NT]],
|
|
128
|
-
});
|
|
129
|
-
let body;
|
|
130
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
131
|
-
return b.build();
|
|
132
|
-
};
|
|
133
|
-
export const se_ListIdentitySourcesCommand = async (input, context) => {
|
|
134
|
-
const b = rb(input, context);
|
|
135
|
-
const headers = {};
|
|
136
|
-
b.bp("/identity-sources");
|
|
137
|
-
const query = map({
|
|
138
|
-
[_L]: [, ""],
|
|
139
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
140
|
-
[_NT]: [, input[_NT]],
|
|
141
|
-
});
|
|
142
|
-
let body;
|
|
143
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
144
|
-
return b.build();
|
|
145
|
-
};
|
|
146
|
-
export const se_ListPoliciesCommand = async (input, context) => {
|
|
147
|
-
const b = rb(input, context);
|
|
148
|
-
const headers = {};
|
|
149
|
-
b.bp("/policies");
|
|
150
|
-
const query = map({
|
|
151
|
-
[_L]: [, ""],
|
|
152
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
153
|
-
[_NT]: [, input[_NT]],
|
|
154
|
-
});
|
|
155
|
-
let body;
|
|
156
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
export const se_ListPolicyVersionsCommand = async (input, context) => {
|
|
160
|
-
const b = rb(input, context);
|
|
161
|
-
const headers = {};
|
|
162
|
-
b.bp("/policies/{PolicyArn}");
|
|
163
|
-
b.p("PolicyArn", () => input.PolicyArn, "{PolicyArn}", false);
|
|
164
|
-
const query = map({
|
|
165
|
-
[_L]: [, ""],
|
|
166
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
167
|
-
[_NT]: [, input[_NT]],
|
|
168
|
-
});
|
|
169
|
-
let body;
|
|
170
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
171
|
-
return b.build();
|
|
172
|
-
};
|
|
173
|
-
export const se_ListResourcePoliciesCommand = async (input, context) => {
|
|
174
|
-
const b = rb(input, context);
|
|
175
|
-
const headers = {};
|
|
176
|
-
b.bp("/resource-policies/{ResourceArn}");
|
|
177
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
178
|
-
const query = map({
|
|
179
|
-
[_L]: [, ""],
|
|
180
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
181
|
-
[_NT]: [, input[_NT]],
|
|
182
|
-
});
|
|
183
|
-
let body;
|
|
184
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
185
|
-
return b.build();
|
|
186
|
-
};
|
|
187
|
-
export const se_ListSessionsCommand = async (input, context) => {
|
|
188
|
-
const b = rb(input, context);
|
|
189
|
-
const headers = {
|
|
190
|
-
"content-type": "application/json",
|
|
191
|
-
};
|
|
192
|
-
b.bp("/approval-teams/{ApprovalTeamArn}/sessions");
|
|
193
|
-
b.p("ApprovalTeamArn", () => input.ApprovalTeamArn, "{ApprovalTeamArn}", false);
|
|
194
|
-
const query = map({
|
|
195
|
-
[_L]: [, ""],
|
|
196
|
-
});
|
|
197
|
-
let body;
|
|
198
|
-
body = JSON.stringify(take(input, {
|
|
199
|
-
Filters: (_) => _json(_),
|
|
200
|
-
MaxResults: [],
|
|
201
|
-
NextToken: [],
|
|
202
|
-
}));
|
|
203
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
204
|
-
return b.build();
|
|
205
|
-
};
|
|
206
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
207
|
-
const b = rb(input, context);
|
|
208
|
-
const headers = {};
|
|
209
|
-
b.bp("/tags/{ResourceArn}");
|
|
210
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
211
|
-
let body;
|
|
212
|
-
b.m("GET").h(headers).b(body);
|
|
213
|
-
return b.build();
|
|
214
|
-
};
|
|
215
|
-
export const se_StartActiveApprovalTeamDeletionCommand = async (input, context) => {
|
|
216
|
-
const b = rb(input, context);
|
|
217
|
-
const headers = {
|
|
218
|
-
"content-type": "application/json",
|
|
219
|
-
};
|
|
220
|
-
b.bp("/approval-teams/{Arn}");
|
|
221
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
222
|
-
const query = map({
|
|
223
|
-
[_D]: [, ""],
|
|
224
|
-
});
|
|
225
|
-
let body;
|
|
226
|
-
body = JSON.stringify(take(input, {
|
|
227
|
-
PendingWindowDays: [],
|
|
228
|
-
}));
|
|
229
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
230
|
-
return b.build();
|
|
231
|
-
};
|
|
232
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
233
|
-
const b = rb(input, context);
|
|
234
|
-
const headers = {
|
|
235
|
-
"content-type": "application/json",
|
|
236
|
-
};
|
|
237
|
-
b.bp("/tags/{ResourceArn}");
|
|
238
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
239
|
-
let body;
|
|
240
|
-
body = JSON.stringify(take(input, {
|
|
241
|
-
Tags: (_) => _json(_),
|
|
242
|
-
}));
|
|
243
|
-
b.m("PUT").h(headers).b(body);
|
|
244
|
-
return b.build();
|
|
245
|
-
};
|
|
246
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
247
|
-
const b = rb(input, context);
|
|
248
|
-
const headers = {
|
|
249
|
-
"content-type": "application/json",
|
|
250
|
-
};
|
|
251
|
-
b.bp("/tags/{ResourceArn}");
|
|
252
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
253
|
-
let body;
|
|
254
|
-
body = JSON.stringify(take(input, {
|
|
255
|
-
TagKeys: (_) => _json(_),
|
|
256
|
-
}));
|
|
257
|
-
b.m("POST").h(headers).b(body);
|
|
258
|
-
return b.build();
|
|
259
|
-
};
|
|
260
|
-
export const se_UpdateApprovalTeamCommand = async (input, context) => {
|
|
261
|
-
const b = rb(input, context);
|
|
262
|
-
const headers = {
|
|
263
|
-
"content-type": "application/json",
|
|
264
|
-
};
|
|
265
|
-
b.bp("/approval-teams/{Arn}");
|
|
266
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
267
|
-
let body;
|
|
268
|
-
body = JSON.stringify(take(input, {
|
|
269
|
-
ApprovalStrategy: (_) => _json(_),
|
|
270
|
-
Approvers: (_) => _json(_),
|
|
271
|
-
Description: [],
|
|
272
|
-
}));
|
|
273
|
-
b.m("PATCH").h(headers).b(body);
|
|
274
|
-
return b.build();
|
|
275
|
-
};
|
|
276
|
-
export const de_CancelSessionCommand = async (output, context) => {
|
|
277
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
278
|
-
return de_CommandError(output, context);
|
|
279
|
-
}
|
|
280
|
-
const contents = map({
|
|
281
|
-
$metadata: deserializeMetadata(output),
|
|
282
|
-
});
|
|
283
|
-
await collectBody(output.body, context);
|
|
284
|
-
return contents;
|
|
285
|
-
};
|
|
286
|
-
export const de_CreateApprovalTeamCommand = async (output, context) => {
|
|
287
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
288
|
-
return de_CommandError(output, context);
|
|
289
|
-
}
|
|
290
|
-
const contents = map({
|
|
291
|
-
$metadata: deserializeMetadata(output),
|
|
292
|
-
});
|
|
293
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
294
|
-
const doc = take(data, {
|
|
295
|
-
Arn: __expectString,
|
|
296
|
-
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
297
|
-
Name: __expectString,
|
|
298
|
-
VersionId: __expectString,
|
|
299
|
-
});
|
|
300
|
-
Object.assign(contents, doc);
|
|
301
|
-
return contents;
|
|
302
|
-
};
|
|
303
|
-
export const de_CreateIdentitySourceCommand = async (output, context) => {
|
|
304
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
305
|
-
return de_CommandError(output, context);
|
|
306
|
-
}
|
|
307
|
-
const contents = map({
|
|
308
|
-
$metadata: deserializeMetadata(output),
|
|
309
|
-
});
|
|
310
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
311
|
-
const doc = take(data, {
|
|
312
|
-
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
313
|
-
IdentitySourceArn: __expectString,
|
|
314
|
-
IdentitySourceType: __expectString,
|
|
315
|
-
});
|
|
316
|
-
Object.assign(contents, doc);
|
|
317
|
-
return contents;
|
|
318
|
-
};
|
|
319
|
-
export const de_DeleteIdentitySourceCommand = async (output, context) => {
|
|
320
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
321
|
-
return de_CommandError(output, context);
|
|
322
|
-
}
|
|
323
|
-
const contents = map({
|
|
324
|
-
$metadata: deserializeMetadata(output),
|
|
325
|
-
});
|
|
326
|
-
await collectBody(output.body, context);
|
|
327
|
-
return contents;
|
|
328
|
-
};
|
|
329
|
-
export const de_DeleteInactiveApprovalTeamVersionCommand = async (output, context) => {
|
|
330
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
331
|
-
return de_CommandError(output, context);
|
|
332
|
-
}
|
|
333
|
-
const contents = map({
|
|
334
|
-
$metadata: deserializeMetadata(output),
|
|
335
|
-
});
|
|
336
|
-
await collectBody(output.body, context);
|
|
337
|
-
return contents;
|
|
338
|
-
};
|
|
339
|
-
export const de_GetApprovalTeamCommand = async (output, context) => {
|
|
340
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
341
|
-
return de_CommandError(output, context);
|
|
342
|
-
}
|
|
343
|
-
const contents = map({
|
|
344
|
-
$metadata: deserializeMetadata(output),
|
|
345
|
-
});
|
|
346
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
347
|
-
const doc = take(data, {
|
|
348
|
-
ApprovalStrategy: (_) => _json(__expectUnion(_)),
|
|
349
|
-
Approvers: (_) => de_GetApprovalTeamResponseApprovers(_, context),
|
|
350
|
-
Arn: __expectString,
|
|
351
|
-
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
352
|
-
Description: __expectString,
|
|
353
|
-
LastUpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
354
|
-
Name: __expectString,
|
|
355
|
-
NumberOfApprovers: __expectInt32,
|
|
356
|
-
PendingUpdate: (_) => de_PendingUpdate(_, context),
|
|
357
|
-
Policies: _json,
|
|
358
|
-
Status: __expectString,
|
|
359
|
-
StatusCode: __expectString,
|
|
360
|
-
StatusMessage: __expectString,
|
|
361
|
-
UpdateSessionArn: __expectString,
|
|
362
|
-
VersionId: __expectString,
|
|
363
|
-
});
|
|
364
|
-
Object.assign(contents, doc);
|
|
365
|
-
return contents;
|
|
366
|
-
};
|
|
367
|
-
export const de_GetIdentitySourceCommand = async (output, context) => {
|
|
368
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
369
|
-
return de_CommandError(output, context);
|
|
370
|
-
}
|
|
371
|
-
const contents = map({
|
|
372
|
-
$metadata: deserializeMetadata(output),
|
|
373
|
-
});
|
|
374
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
375
|
-
const doc = take(data, {
|
|
376
|
-
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
377
|
-
IdentitySourceArn: __expectString,
|
|
378
|
-
IdentitySourceParameters: (_) => _json(__expectUnion(_)),
|
|
379
|
-
IdentitySourceType: __expectString,
|
|
380
|
-
Status: __expectString,
|
|
381
|
-
StatusCode: __expectString,
|
|
382
|
-
StatusMessage: __expectString,
|
|
383
|
-
});
|
|
384
|
-
Object.assign(contents, doc);
|
|
385
|
-
return contents;
|
|
386
|
-
};
|
|
387
|
-
export const de_GetPolicyVersionCommand = async (output, context) => {
|
|
388
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
389
|
-
return de_CommandError(output, context);
|
|
390
|
-
}
|
|
391
|
-
const contents = map({
|
|
392
|
-
$metadata: deserializeMetadata(output),
|
|
393
|
-
});
|
|
394
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
395
|
-
const doc = take(data, {
|
|
396
|
-
PolicyVersion: (_) => de_PolicyVersion(_, context),
|
|
397
|
-
});
|
|
398
|
-
Object.assign(contents, doc);
|
|
399
|
-
return contents;
|
|
400
|
-
};
|
|
401
|
-
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
402
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
403
|
-
return de_CommandError(output, context);
|
|
404
|
-
}
|
|
405
|
-
const contents = map({
|
|
406
|
-
$metadata: deserializeMetadata(output),
|
|
407
|
-
});
|
|
408
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
409
|
-
const doc = take(data, {
|
|
410
|
-
PolicyDocument: __expectString,
|
|
411
|
-
PolicyName: __expectString,
|
|
412
|
-
PolicyType: __expectString,
|
|
413
|
-
PolicyVersionArn: __expectString,
|
|
414
|
-
ResourceArn: __expectString,
|
|
415
|
-
});
|
|
416
|
-
Object.assign(contents, doc);
|
|
417
|
-
return contents;
|
|
418
|
-
};
|
|
419
|
-
export const de_GetSessionCommand = async (output, context) => {
|
|
420
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
421
|
-
return de_CommandError(output, context);
|
|
422
|
-
}
|
|
423
|
-
const contents = map({
|
|
424
|
-
$metadata: deserializeMetadata(output),
|
|
425
|
-
});
|
|
426
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
427
|
-
const doc = take(data, {
|
|
428
|
-
ActionCompletionStrategy: __expectString,
|
|
429
|
-
ActionName: __expectString,
|
|
430
|
-
ApprovalStrategy: (_) => _json(__expectUnion(_)),
|
|
431
|
-
ApprovalTeamArn: __expectString,
|
|
432
|
-
ApprovalTeamName: __expectString,
|
|
433
|
-
ApproverResponses: (_) => de_GetSessionResponseApproverResponses(_, context),
|
|
434
|
-
CompletionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
435
|
-
Description: __expectString,
|
|
436
|
-
ExecutionStatus: __expectString,
|
|
437
|
-
ExpirationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
438
|
-
InitiationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
439
|
-
Metadata: _json,
|
|
440
|
-
NumberOfApprovers: __expectInt32,
|
|
441
|
-
ProtectedResourceArn: __expectString,
|
|
442
|
-
RequesterAccountId: __expectString,
|
|
443
|
-
RequesterComment: __expectString,
|
|
444
|
-
RequesterPrincipalArn: __expectString,
|
|
445
|
-
RequesterRegion: __expectString,
|
|
446
|
-
RequesterServicePrincipal: __expectString,
|
|
447
|
-
SessionArn: __expectString,
|
|
448
|
-
Status: __expectString,
|
|
449
|
-
StatusCode: __expectString,
|
|
450
|
-
StatusMessage: __expectString,
|
|
451
|
-
});
|
|
452
|
-
Object.assign(contents, doc);
|
|
453
|
-
return contents;
|
|
454
|
-
};
|
|
455
|
-
export const de_ListApprovalTeamsCommand = async (output, context) => {
|
|
456
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
457
|
-
return de_CommandError(output, context);
|
|
458
|
-
}
|
|
459
|
-
const contents = map({
|
|
460
|
-
$metadata: deserializeMetadata(output),
|
|
461
|
-
});
|
|
462
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
463
|
-
const doc = take(data, {
|
|
464
|
-
ApprovalTeams: (_) => de_ListApprovalTeamsResponseApprovalTeams(_, context),
|
|
465
|
-
NextToken: __expectString,
|
|
466
|
-
});
|
|
467
|
-
Object.assign(contents, doc);
|
|
468
|
-
return contents;
|
|
469
|
-
};
|
|
470
|
-
export const de_ListIdentitySourcesCommand = async (output, context) => {
|
|
471
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
|
-
return de_CommandError(output, context);
|
|
473
|
-
}
|
|
474
|
-
const contents = map({
|
|
475
|
-
$metadata: deserializeMetadata(output),
|
|
476
|
-
});
|
|
477
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
478
|
-
const doc = take(data, {
|
|
479
|
-
IdentitySources: (_) => de_IdentitySources(_, context),
|
|
480
|
-
NextToken: __expectString,
|
|
481
|
-
});
|
|
482
|
-
Object.assign(contents, doc);
|
|
483
|
-
return contents;
|
|
484
|
-
};
|
|
485
|
-
export const de_ListPoliciesCommand = async (output, context) => {
|
|
486
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
|
-
return de_CommandError(output, context);
|
|
488
|
-
}
|
|
489
|
-
const contents = map({
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
});
|
|
492
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
493
|
-
const doc = take(data, {
|
|
494
|
-
NextToken: __expectString,
|
|
495
|
-
Policies: _json,
|
|
496
|
-
});
|
|
497
|
-
Object.assign(contents, doc);
|
|
498
|
-
return contents;
|
|
499
|
-
};
|
|
500
|
-
export const de_ListPolicyVersionsCommand = async (output, context) => {
|
|
501
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
502
|
-
return de_CommandError(output, context);
|
|
503
|
-
}
|
|
504
|
-
const contents = map({
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
});
|
|
507
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
508
|
-
const doc = take(data, {
|
|
509
|
-
NextToken: __expectString,
|
|
510
|
-
PolicyVersions: (_) => de_PolicyVersions(_, context),
|
|
511
|
-
});
|
|
512
|
-
Object.assign(contents, doc);
|
|
513
|
-
return contents;
|
|
514
|
-
};
|
|
515
|
-
export const de_ListResourcePoliciesCommand = async (output, context) => {
|
|
516
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
517
|
-
return de_CommandError(output, context);
|
|
518
|
-
}
|
|
519
|
-
const contents = map({
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
});
|
|
522
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
523
|
-
const doc = take(data, {
|
|
524
|
-
NextToken: __expectString,
|
|
525
|
-
ResourcePolicies: _json,
|
|
526
|
-
});
|
|
527
|
-
Object.assign(contents, doc);
|
|
528
|
-
return contents;
|
|
529
|
-
};
|
|
530
|
-
export const de_ListSessionsCommand = async (output, context) => {
|
|
531
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
532
|
-
return de_CommandError(output, context);
|
|
533
|
-
}
|
|
534
|
-
const contents = map({
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
});
|
|
537
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
538
|
-
const doc = take(data, {
|
|
539
|
-
NextToken: __expectString,
|
|
540
|
-
Sessions: (_) => de_ListSessionsResponseSessions(_, context),
|
|
541
|
-
});
|
|
542
|
-
Object.assign(contents, doc);
|
|
543
|
-
return contents;
|
|
544
|
-
};
|
|
545
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
546
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
547
|
-
return de_CommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const contents = map({
|
|
550
|
-
$metadata: deserializeMetadata(output),
|
|
551
|
-
});
|
|
552
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
553
|
-
const doc = take(data, {
|
|
554
|
-
Tags: _json,
|
|
555
|
-
});
|
|
556
|
-
Object.assign(contents, doc);
|
|
557
|
-
return contents;
|
|
558
|
-
};
|
|
559
|
-
export const de_StartActiveApprovalTeamDeletionCommand = async (output, context) => {
|
|
560
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
561
|
-
return de_CommandError(output, context);
|
|
562
|
-
}
|
|
563
|
-
const contents = map({
|
|
564
|
-
$metadata: deserializeMetadata(output),
|
|
565
|
-
});
|
|
566
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
567
|
-
const doc = take(data, {
|
|
568
|
-
DeletionCompletionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
569
|
-
DeletionStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
570
|
-
});
|
|
571
|
-
Object.assign(contents, doc);
|
|
572
|
-
return contents;
|
|
573
|
-
};
|
|
574
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
575
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
576
|
-
return de_CommandError(output, context);
|
|
577
|
-
}
|
|
578
|
-
const contents = map({
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
});
|
|
581
|
-
await collectBody(output.body, context);
|
|
582
|
-
return contents;
|
|
583
|
-
};
|
|
584
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
585
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
586
|
-
return de_CommandError(output, context);
|
|
587
|
-
}
|
|
588
|
-
const contents = map({
|
|
589
|
-
$metadata: deserializeMetadata(output),
|
|
590
|
-
});
|
|
591
|
-
await collectBody(output.body, context);
|
|
592
|
-
return contents;
|
|
593
|
-
};
|
|
594
|
-
export const de_UpdateApprovalTeamCommand = async (output, context) => {
|
|
595
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
|
-
return de_CommandError(output, context);
|
|
597
|
-
}
|
|
598
|
-
const contents = map({
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
});
|
|
601
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
602
|
-
const doc = take(data, {
|
|
603
|
-
VersionId: __expectString,
|
|
604
|
-
});
|
|
605
|
-
Object.assign(contents, doc);
|
|
606
|
-
return contents;
|
|
607
|
-
};
|
|
608
|
-
const de_CommandError = async (output, context) => {
|
|
609
|
-
const parsedOutput = {
|
|
610
|
-
...output,
|
|
611
|
-
body: await parseErrorBody(output.body, context),
|
|
612
|
-
};
|
|
613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
-
switch (errorCode) {
|
|
615
|
-
case "AccessDeniedException":
|
|
616
|
-
case "com.amazonaws.mpa#AccessDeniedException":
|
|
617
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ConflictException":
|
|
619
|
-
case "com.amazonaws.mpa#ConflictException":
|
|
620
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
621
|
-
case "InternalServerException":
|
|
622
|
-
case "com.amazonaws.mpa#InternalServerException":
|
|
623
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ResourceNotFoundException":
|
|
625
|
-
case "com.amazonaws.mpa#ResourceNotFoundException":
|
|
626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
627
|
-
case "ThrottlingException":
|
|
628
|
-
case "com.amazonaws.mpa#ThrottlingException":
|
|
629
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
630
|
-
case "ValidationException":
|
|
631
|
-
case "com.amazonaws.mpa#ValidationException":
|
|
632
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
633
|
-
case "ServiceQuotaExceededException":
|
|
634
|
-
case "com.amazonaws.mpa#ServiceQuotaExceededException":
|
|
635
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
636
|
-
case "InvalidParameterException":
|
|
637
|
-
case "com.amazonaws.mpa#InvalidParameterException":
|
|
638
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
639
|
-
case "TooManyTagsException":
|
|
640
|
-
case "com.amazonaws.mpa#TooManyTagsException":
|
|
641
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
642
|
-
default:
|
|
643
|
-
const parsedBody = parsedOutput.body;
|
|
644
|
-
return throwDefaultError({
|
|
645
|
-
output,
|
|
646
|
-
parsedBody,
|
|
647
|
-
errorCode,
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
652
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
653
|
-
const contents = map({});
|
|
654
|
-
const data = parsedOutput.body;
|
|
655
|
-
const doc = take(data, {
|
|
656
|
-
Message: __expectString,
|
|
657
|
-
});
|
|
658
|
-
Object.assign(contents, doc);
|
|
659
|
-
const exception = new AccessDeniedException({
|
|
660
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
661
|
-
...contents,
|
|
662
|
-
});
|
|
663
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
664
|
-
};
|
|
665
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
666
|
-
const contents = map({});
|
|
667
|
-
const data = parsedOutput.body;
|
|
668
|
-
const doc = take(data, {
|
|
669
|
-
Message: __expectString,
|
|
670
|
-
});
|
|
671
|
-
Object.assign(contents, doc);
|
|
672
|
-
const exception = new ConflictException({
|
|
673
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
674
|
-
...contents,
|
|
675
|
-
});
|
|
676
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
677
|
-
};
|
|
678
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
679
|
-
const contents = map({});
|
|
680
|
-
const data = parsedOutput.body;
|
|
681
|
-
const doc = take(data, {
|
|
682
|
-
Message: __expectString,
|
|
683
|
-
});
|
|
684
|
-
Object.assign(contents, doc);
|
|
685
|
-
const exception = new InternalServerException({
|
|
686
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
687
|
-
...contents,
|
|
688
|
-
});
|
|
689
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
690
|
-
};
|
|
691
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
692
|
-
const contents = map({});
|
|
693
|
-
const data = parsedOutput.body;
|
|
694
|
-
const doc = take(data, {
|
|
695
|
-
Message: __expectString,
|
|
696
|
-
});
|
|
697
|
-
Object.assign(contents, doc);
|
|
698
|
-
const exception = new InvalidParameterException({
|
|
699
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
700
|
-
...contents,
|
|
701
|
-
});
|
|
702
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
703
|
-
};
|
|
704
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
705
|
-
const contents = map({});
|
|
706
|
-
const data = parsedOutput.body;
|
|
707
|
-
const doc = take(data, {
|
|
708
|
-
Message: __expectString,
|
|
709
|
-
});
|
|
710
|
-
Object.assign(contents, doc);
|
|
711
|
-
const exception = new ResourceNotFoundException({
|
|
712
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
713
|
-
...contents,
|
|
714
|
-
});
|
|
715
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
716
|
-
};
|
|
717
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
718
|
-
const contents = map({});
|
|
719
|
-
const data = parsedOutput.body;
|
|
720
|
-
const doc = take(data, {
|
|
721
|
-
Message: __expectString,
|
|
722
|
-
});
|
|
723
|
-
Object.assign(contents, doc);
|
|
724
|
-
const exception = new ServiceQuotaExceededException({
|
|
725
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
726
|
-
...contents,
|
|
727
|
-
});
|
|
728
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
729
|
-
};
|
|
730
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
731
|
-
const contents = map({});
|
|
732
|
-
const data = parsedOutput.body;
|
|
733
|
-
const doc = take(data, {
|
|
734
|
-
Message: __expectString,
|
|
735
|
-
});
|
|
736
|
-
Object.assign(contents, doc);
|
|
737
|
-
const exception = new ThrottlingException({
|
|
738
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
739
|
-
...contents,
|
|
740
|
-
});
|
|
741
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
742
|
-
};
|
|
743
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
744
|
-
const contents = map({});
|
|
745
|
-
const data = parsedOutput.body;
|
|
746
|
-
const doc = take(data, {
|
|
747
|
-
Message: __expectString,
|
|
748
|
-
ResourceName: __expectString,
|
|
749
|
-
});
|
|
750
|
-
Object.assign(contents, doc);
|
|
751
|
-
const exception = new TooManyTagsException({
|
|
752
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
753
|
-
...contents,
|
|
754
|
-
});
|
|
755
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
756
|
-
};
|
|
757
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
758
|
-
const contents = map({});
|
|
759
|
-
const data = parsedOutput.body;
|
|
760
|
-
const doc = take(data, {
|
|
761
|
-
Message: __expectString,
|
|
762
|
-
});
|
|
763
|
-
Object.assign(contents, doc);
|
|
764
|
-
const exception = new ValidationException({
|
|
765
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
766
|
-
...contents,
|
|
767
|
-
});
|
|
768
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
769
|
-
};
|
|
770
|
-
const de_GetApprovalTeamResponseApprover = (output, context) => {
|
|
771
|
-
return take(output, {
|
|
772
|
-
ApproverId: __expectString,
|
|
773
|
-
PrimaryIdentityId: __expectString,
|
|
774
|
-
PrimaryIdentitySourceArn: __expectString,
|
|
775
|
-
PrimaryIdentityStatus: __expectString,
|
|
776
|
-
ResponseTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
777
|
-
});
|
|
778
|
-
};
|
|
779
|
-
const de_GetApprovalTeamResponseApprovers = (output, context) => {
|
|
780
|
-
const retVal = (output || [])
|
|
781
|
-
.filter((e) => e != null)
|
|
782
|
-
.map((entry) => {
|
|
783
|
-
return de_GetApprovalTeamResponseApprover(entry, context);
|
|
784
|
-
});
|
|
785
|
-
return retVal;
|
|
786
|
-
};
|
|
787
|
-
const de_GetSessionResponseApproverResponse = (output, context) => {
|
|
788
|
-
return take(output, {
|
|
789
|
-
ApproverId: __expectString,
|
|
790
|
-
IdentityId: __expectString,
|
|
791
|
-
IdentitySourceArn: __expectString,
|
|
792
|
-
Response: __expectString,
|
|
793
|
-
ResponseTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
794
|
-
});
|
|
795
|
-
};
|
|
796
|
-
const de_GetSessionResponseApproverResponses = (output, context) => {
|
|
797
|
-
const retVal = (output || [])
|
|
798
|
-
.filter((e) => e != null)
|
|
799
|
-
.map((entry) => {
|
|
800
|
-
return de_GetSessionResponseApproverResponse(entry, context);
|
|
801
|
-
});
|
|
802
|
-
return retVal;
|
|
803
|
-
};
|
|
804
|
-
const de_IdentitySourceForList = (output, context) => {
|
|
805
|
-
return take(output, {
|
|
806
|
-
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
807
|
-
IdentitySourceArn: __expectString,
|
|
808
|
-
IdentitySourceParameters: (_) => _json(__expectUnion(_)),
|
|
809
|
-
IdentitySourceType: __expectString,
|
|
810
|
-
Status: __expectString,
|
|
811
|
-
StatusCode: __expectString,
|
|
812
|
-
StatusMessage: __expectString,
|
|
813
|
-
});
|
|
814
|
-
};
|
|
815
|
-
const de_IdentitySources = (output, context) => {
|
|
816
|
-
const retVal = (output || [])
|
|
817
|
-
.filter((e) => e != null)
|
|
818
|
-
.map((entry) => {
|
|
819
|
-
return de_IdentitySourceForList(entry, context);
|
|
820
|
-
});
|
|
821
|
-
return retVal;
|
|
822
|
-
};
|
|
823
|
-
const de_ListApprovalTeamsResponseApprovalTeam = (output, context) => {
|
|
824
|
-
return take(output, {
|
|
825
|
-
ApprovalStrategy: (_) => _json(__expectUnion(_)),
|
|
826
|
-
Arn: __expectString,
|
|
827
|
-
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
828
|
-
Description: __expectString,
|
|
829
|
-
Name: __expectString,
|
|
830
|
-
NumberOfApprovers: __expectInt32,
|
|
831
|
-
Status: __expectString,
|
|
832
|
-
StatusCode: __expectString,
|
|
833
|
-
StatusMessage: __expectString,
|
|
834
|
-
});
|
|
835
|
-
};
|
|
836
|
-
const de_ListApprovalTeamsResponseApprovalTeams = (output, context) => {
|
|
837
|
-
const retVal = (output || [])
|
|
838
|
-
.filter((e) => e != null)
|
|
839
|
-
.map((entry) => {
|
|
840
|
-
return de_ListApprovalTeamsResponseApprovalTeam(entry, context);
|
|
841
|
-
});
|
|
842
|
-
return retVal;
|
|
843
|
-
};
|
|
844
|
-
const de_ListSessionsResponseSession = (output, context) => {
|
|
845
|
-
return take(output, {
|
|
846
|
-
ActionCompletionStrategy: __expectString,
|
|
847
|
-
ActionName: __expectString,
|
|
848
|
-
ApprovalTeamArn: __expectString,
|
|
849
|
-
ApprovalTeamName: __expectString,
|
|
850
|
-
CompletionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
851
|
-
Description: __expectString,
|
|
852
|
-
ExpirationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
853
|
-
InitiationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
854
|
-
ProtectedResourceArn: __expectString,
|
|
855
|
-
RequesterAccountId: __expectString,
|
|
856
|
-
RequesterPrincipalArn: __expectString,
|
|
857
|
-
RequesterRegion: __expectString,
|
|
858
|
-
RequesterServicePrincipal: __expectString,
|
|
859
|
-
SessionArn: __expectString,
|
|
860
|
-
Status: __expectString,
|
|
861
|
-
StatusCode: __expectString,
|
|
862
|
-
StatusMessage: __expectString,
|
|
863
|
-
});
|
|
864
|
-
};
|
|
865
|
-
const de_ListSessionsResponseSessions = (output, context) => {
|
|
866
|
-
const retVal = (output || [])
|
|
867
|
-
.filter((e) => e != null)
|
|
868
|
-
.map((entry) => {
|
|
869
|
-
return de_ListSessionsResponseSession(entry, context);
|
|
870
|
-
});
|
|
871
|
-
return retVal;
|
|
872
|
-
};
|
|
873
|
-
const de_PendingUpdate = (output, context) => {
|
|
874
|
-
return take(output, {
|
|
875
|
-
ApprovalStrategy: (_) => _json(__expectUnion(_)),
|
|
876
|
-
Approvers: (_) => de_GetApprovalTeamResponseApprovers(_, context),
|
|
877
|
-
Description: __expectString,
|
|
878
|
-
NumberOfApprovers: __expectInt32,
|
|
879
|
-
Status: __expectString,
|
|
880
|
-
StatusCode: __expectString,
|
|
881
|
-
StatusMessage: __expectString,
|
|
882
|
-
UpdateInitiationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
883
|
-
VersionId: __expectString,
|
|
884
|
-
});
|
|
885
|
-
};
|
|
886
|
-
const de_PolicyVersion = (output, context) => {
|
|
887
|
-
return take(output, {
|
|
888
|
-
Arn: __expectString,
|
|
889
|
-
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
890
|
-
Document: __expectString,
|
|
891
|
-
IsDefault: __expectBoolean,
|
|
892
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
893
|
-
Name: __expectString,
|
|
894
|
-
PolicyArn: __expectString,
|
|
895
|
-
PolicyType: __expectString,
|
|
896
|
-
Status: __expectString,
|
|
897
|
-
VersionId: __expectInt32,
|
|
898
|
-
});
|
|
899
|
-
};
|
|
900
|
-
const de_PolicyVersions = (output, context) => {
|
|
901
|
-
const retVal = (output || [])
|
|
902
|
-
.filter((e) => e != null)
|
|
903
|
-
.map((entry) => {
|
|
904
|
-
return de_PolicyVersionSummary(entry, context);
|
|
905
|
-
});
|
|
906
|
-
return retVal;
|
|
907
|
-
};
|
|
908
|
-
const de_PolicyVersionSummary = (output, context) => {
|
|
909
|
-
return take(output, {
|
|
910
|
-
Arn: __expectString,
|
|
911
|
-
CreationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
912
|
-
IsDefault: __expectBoolean,
|
|
913
|
-
LastUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
914
|
-
Name: __expectString,
|
|
915
|
-
PolicyArn: __expectString,
|
|
916
|
-
PolicyType: __expectString,
|
|
917
|
-
Status: __expectString,
|
|
918
|
-
VersionId: __expectInt32,
|
|
919
|
-
});
|
|
920
|
-
};
|
|
921
|
-
const deserializeMetadata = (output) => ({
|
|
922
|
-
httpStatusCode: output.statusCode,
|
|
923
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
924
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
925
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
926
|
-
});
|
|
927
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
928
|
-
const _D = "Delete";
|
|
929
|
-
const _L = "List";
|
|
930
|
-
const _MR = "MaxResults";
|
|
931
|
-
const _NT = "NextToken";
|