@aws-sdk/client-verifiedpermissions 3.927.0 → 3.929.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 +1739 -2225
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/VerifiedPermissionsClient.js +2 -0
- package/dist-es/commands/BatchGetPolicyCommand.js +3 -10
- package/dist-es/commands/BatchIsAuthorizedCommand.js +3 -10
- package/dist-es/commands/BatchIsAuthorizedWithTokenCommand.js +3 -10
- package/dist-es/commands/CreateIdentitySourceCommand.js +3 -10
- package/dist-es/commands/CreatePolicyCommand.js +3 -10
- package/dist-es/commands/CreatePolicyStoreCommand.js +3 -10
- package/dist-es/commands/CreatePolicyTemplateCommand.js +3 -10
- package/dist-es/commands/DeleteIdentitySourceCommand.js +3 -9
- package/dist-es/commands/DeletePolicyCommand.js +3 -9
- package/dist-es/commands/DeletePolicyStoreCommand.js +3 -9
- package/dist-es/commands/DeletePolicyTemplateCommand.js +3 -9
- package/dist-es/commands/GetIdentitySourceCommand.js +3 -10
- package/dist-es/commands/GetPolicyCommand.js +3 -10
- package/dist-es/commands/GetPolicyStoreCommand.js +3 -10
- package/dist-es/commands/GetPolicyTemplateCommand.js +3 -10
- package/dist-es/commands/GetSchemaCommand.js +3 -10
- package/dist-es/commands/IsAuthorizedCommand.js +3 -10
- package/dist-es/commands/IsAuthorizedWithTokenCommand.js +3 -10
- package/dist-es/commands/ListIdentitySourcesCommand.js +3 -10
- package/dist-es/commands/ListPoliciesCommand.js +3 -10
- package/dist-es/commands/ListPolicyStoresCommand.js +3 -10
- package/dist-es/commands/ListPolicyTemplatesCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutSchemaCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateIdentitySourceCommand.js +3 -10
- package/dist-es/commands/UpdatePolicyCommand.js +3 -10
- package/dist-es/commands/UpdatePolicyStoreCommand.js +3 -10
- package/dist-es/commands/UpdatePolicyTemplateCommand.js +3 -10
- package/dist-es/models/models_0.js +26 -593
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1628 -0
- package/dist-types/VerifiedPermissionsClient.d.ts +10 -1
- package/dist-types/commands/BatchIsAuthorizedCommand.d.ts +33 -0
- package/dist-types/commands/BatchIsAuthorizedWithTokenCommand.d.ts +33 -0
- package/dist-types/commands/IsAuthorizedCommand.d.ts +33 -0
- package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +33 -0
- package/dist-types/models/models_0.d.ts +268 -441
- 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 +229 -0
- package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +184 -297
- 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 +236 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_0.js +0 -1303
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -272
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -365
|
@@ -1,1303 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectString as __expectString, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, AttributeValue, ConflictException, ContextDefinition, EntitiesDefinition, InternalServerException, InvalidStateException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { VerifiedPermissionsServiceException as __BaseException } from "../models/VerifiedPermissionsServiceException";
|
|
7
|
-
export const se_BatchGetPolicyCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("BatchGetPolicy");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(_json(input));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_BatchIsAuthorizedCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("BatchIsAuthorized");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(se_BatchIsAuthorizedInput(input, context));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_BatchIsAuthorizedWithTokenCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("BatchIsAuthorizedWithToken");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(se_BatchIsAuthorizedWithTokenInput(input, context));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_CreateIdentitySourceCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateIdentitySource");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(se_CreateIdentitySourceInput(input, context));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_CreatePolicyCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreatePolicy");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(se_CreatePolicyInput(input, context));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_CreatePolicyStoreCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("CreatePolicyStore");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(se_CreatePolicyStoreInput(input, context));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_CreatePolicyTemplateCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("CreatePolicyTemplate");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(se_CreatePolicyTemplateInput(input, context));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_DeleteIdentitySourceCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("DeleteIdentitySource");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(_json(input));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_DeletePolicyCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("DeletePolicy");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_DeletePolicyStoreCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("DeletePolicyStore");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(_json(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_DeletePolicyTemplateCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("DeletePolicyTemplate");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(_json(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_GetIdentitySourceCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("GetIdentitySource");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_GetPolicyCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("GetPolicy");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const se_GetPolicyStoreCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("GetPolicyStore");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify(_json(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
export const se_GetPolicyTemplateCommand = async (input, context) => {
|
|
92
|
-
const headers = sharedHeaders("GetPolicyTemplate");
|
|
93
|
-
let body;
|
|
94
|
-
body = JSON.stringify(_json(input));
|
|
95
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
-
};
|
|
97
|
-
export const se_GetSchemaCommand = async (input, context) => {
|
|
98
|
-
const headers = sharedHeaders("GetSchema");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify(_json(input));
|
|
101
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
-
};
|
|
103
|
-
export const se_IsAuthorizedCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("IsAuthorized");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(se_IsAuthorizedInput(input, context));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
export const se_IsAuthorizedWithTokenCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("IsAuthorizedWithToken");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify(se_IsAuthorizedWithTokenInput(input, context));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
export const se_ListIdentitySourcesCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("ListIdentitySources");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify(_json(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
export const se_ListPoliciesCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("ListPolicies");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(_json(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
export const se_ListPolicyStoresCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("ListPolicyStores");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(_json(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
export const se_ListPolicyTemplatesCommand = async (input, context) => {
|
|
134
|
-
const headers = sharedHeaders("ListPolicyTemplates");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify(_json(input));
|
|
137
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
-
};
|
|
139
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
140
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(_json(input));
|
|
143
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
-
};
|
|
145
|
-
export const se_PutSchemaCommand = async (input, context) => {
|
|
146
|
-
const headers = sharedHeaders("PutSchema");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify(_json(input));
|
|
149
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
-
};
|
|
151
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("TagResource");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify(_json(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("UntagResource");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify(_json(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
export const se_UpdateIdentitySourceCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("UpdateIdentitySource");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify(_json(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
export const se_UpdatePolicyCommand = async (input, context) => {
|
|
170
|
-
const headers = sharedHeaders("UpdatePolicy");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(_json(input));
|
|
173
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
|
-
};
|
|
175
|
-
export const se_UpdatePolicyStoreCommand = async (input, context) => {
|
|
176
|
-
const headers = sharedHeaders("UpdatePolicyStore");
|
|
177
|
-
let body;
|
|
178
|
-
body = JSON.stringify(_json(input));
|
|
179
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
|
-
};
|
|
181
|
-
export const se_UpdatePolicyTemplateCommand = async (input, context) => {
|
|
182
|
-
const headers = sharedHeaders("UpdatePolicyTemplate");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify(_json(input));
|
|
185
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
-
};
|
|
187
|
-
export const de_BatchGetPolicyCommand = async (output, context) => {
|
|
188
|
-
if (output.statusCode >= 300) {
|
|
189
|
-
return de_CommandError(output, context);
|
|
190
|
-
}
|
|
191
|
-
const data = await parseBody(output.body, context);
|
|
192
|
-
let contents = {};
|
|
193
|
-
contents = de_BatchGetPolicyOutput(data, context);
|
|
194
|
-
const response = {
|
|
195
|
-
$metadata: deserializeMetadata(output),
|
|
196
|
-
...contents,
|
|
197
|
-
};
|
|
198
|
-
return response;
|
|
199
|
-
};
|
|
200
|
-
export const de_BatchIsAuthorizedCommand = async (output, context) => {
|
|
201
|
-
if (output.statusCode >= 300) {
|
|
202
|
-
return de_CommandError(output, context);
|
|
203
|
-
}
|
|
204
|
-
const data = await parseBody(output.body, context);
|
|
205
|
-
let contents = {};
|
|
206
|
-
contents = de_BatchIsAuthorizedOutput(data, context);
|
|
207
|
-
const response = {
|
|
208
|
-
$metadata: deserializeMetadata(output),
|
|
209
|
-
...contents,
|
|
210
|
-
};
|
|
211
|
-
return response;
|
|
212
|
-
};
|
|
213
|
-
export const de_BatchIsAuthorizedWithTokenCommand = async (output, context) => {
|
|
214
|
-
if (output.statusCode >= 300) {
|
|
215
|
-
return de_CommandError(output, context);
|
|
216
|
-
}
|
|
217
|
-
const data = await parseBody(output.body, context);
|
|
218
|
-
let contents = {};
|
|
219
|
-
contents = de_BatchIsAuthorizedWithTokenOutput(data, context);
|
|
220
|
-
const response = {
|
|
221
|
-
$metadata: deserializeMetadata(output),
|
|
222
|
-
...contents,
|
|
223
|
-
};
|
|
224
|
-
return response;
|
|
225
|
-
};
|
|
226
|
-
export const de_CreateIdentitySourceCommand = async (output, context) => {
|
|
227
|
-
if (output.statusCode >= 300) {
|
|
228
|
-
return de_CommandError(output, context);
|
|
229
|
-
}
|
|
230
|
-
const data = await parseBody(output.body, context);
|
|
231
|
-
let contents = {};
|
|
232
|
-
contents = de_CreateIdentitySourceOutput(data, context);
|
|
233
|
-
const response = {
|
|
234
|
-
$metadata: deserializeMetadata(output),
|
|
235
|
-
...contents,
|
|
236
|
-
};
|
|
237
|
-
return response;
|
|
238
|
-
};
|
|
239
|
-
export const de_CreatePolicyCommand = async (output, context) => {
|
|
240
|
-
if (output.statusCode >= 300) {
|
|
241
|
-
return de_CommandError(output, context);
|
|
242
|
-
}
|
|
243
|
-
const data = await parseBody(output.body, context);
|
|
244
|
-
let contents = {};
|
|
245
|
-
contents = de_CreatePolicyOutput(data, context);
|
|
246
|
-
const response = {
|
|
247
|
-
$metadata: deserializeMetadata(output),
|
|
248
|
-
...contents,
|
|
249
|
-
};
|
|
250
|
-
return response;
|
|
251
|
-
};
|
|
252
|
-
export const de_CreatePolicyStoreCommand = async (output, context) => {
|
|
253
|
-
if (output.statusCode >= 300) {
|
|
254
|
-
return de_CommandError(output, context);
|
|
255
|
-
}
|
|
256
|
-
const data = await parseBody(output.body, context);
|
|
257
|
-
let contents = {};
|
|
258
|
-
contents = de_CreatePolicyStoreOutput(data, context);
|
|
259
|
-
const response = {
|
|
260
|
-
$metadata: deserializeMetadata(output),
|
|
261
|
-
...contents,
|
|
262
|
-
};
|
|
263
|
-
return response;
|
|
264
|
-
};
|
|
265
|
-
export const de_CreatePolicyTemplateCommand = async (output, context) => {
|
|
266
|
-
if (output.statusCode >= 300) {
|
|
267
|
-
return de_CommandError(output, context);
|
|
268
|
-
}
|
|
269
|
-
const data = await parseBody(output.body, context);
|
|
270
|
-
let contents = {};
|
|
271
|
-
contents = de_CreatePolicyTemplateOutput(data, context);
|
|
272
|
-
const response = {
|
|
273
|
-
$metadata: deserializeMetadata(output),
|
|
274
|
-
...contents,
|
|
275
|
-
};
|
|
276
|
-
return response;
|
|
277
|
-
};
|
|
278
|
-
export const de_DeleteIdentitySourceCommand = async (output, context) => {
|
|
279
|
-
if (output.statusCode >= 300) {
|
|
280
|
-
return de_CommandError(output, context);
|
|
281
|
-
}
|
|
282
|
-
const data = await parseBody(output.body, context);
|
|
283
|
-
let contents = {};
|
|
284
|
-
contents = _json(data);
|
|
285
|
-
const response = {
|
|
286
|
-
$metadata: deserializeMetadata(output),
|
|
287
|
-
...contents,
|
|
288
|
-
};
|
|
289
|
-
return response;
|
|
290
|
-
};
|
|
291
|
-
export const de_DeletePolicyCommand = async (output, context) => {
|
|
292
|
-
if (output.statusCode >= 300) {
|
|
293
|
-
return de_CommandError(output, context);
|
|
294
|
-
}
|
|
295
|
-
const data = await parseBody(output.body, context);
|
|
296
|
-
let contents = {};
|
|
297
|
-
contents = _json(data);
|
|
298
|
-
const response = {
|
|
299
|
-
$metadata: deserializeMetadata(output),
|
|
300
|
-
...contents,
|
|
301
|
-
};
|
|
302
|
-
return response;
|
|
303
|
-
};
|
|
304
|
-
export const de_DeletePolicyStoreCommand = async (output, context) => {
|
|
305
|
-
if (output.statusCode >= 300) {
|
|
306
|
-
return de_CommandError(output, context);
|
|
307
|
-
}
|
|
308
|
-
const data = await parseBody(output.body, context);
|
|
309
|
-
let contents = {};
|
|
310
|
-
contents = _json(data);
|
|
311
|
-
const response = {
|
|
312
|
-
$metadata: deserializeMetadata(output),
|
|
313
|
-
...contents,
|
|
314
|
-
};
|
|
315
|
-
return response;
|
|
316
|
-
};
|
|
317
|
-
export const de_DeletePolicyTemplateCommand = async (output, context) => {
|
|
318
|
-
if (output.statusCode >= 300) {
|
|
319
|
-
return de_CommandError(output, context);
|
|
320
|
-
}
|
|
321
|
-
const data = await parseBody(output.body, context);
|
|
322
|
-
let contents = {};
|
|
323
|
-
contents = _json(data);
|
|
324
|
-
const response = {
|
|
325
|
-
$metadata: deserializeMetadata(output),
|
|
326
|
-
...contents,
|
|
327
|
-
};
|
|
328
|
-
return response;
|
|
329
|
-
};
|
|
330
|
-
export const de_GetIdentitySourceCommand = async (output, context) => {
|
|
331
|
-
if (output.statusCode >= 300) {
|
|
332
|
-
return de_CommandError(output, context);
|
|
333
|
-
}
|
|
334
|
-
const data = await parseBody(output.body, context);
|
|
335
|
-
let contents = {};
|
|
336
|
-
contents = de_GetIdentitySourceOutput(data, context);
|
|
337
|
-
const response = {
|
|
338
|
-
$metadata: deserializeMetadata(output),
|
|
339
|
-
...contents,
|
|
340
|
-
};
|
|
341
|
-
return response;
|
|
342
|
-
};
|
|
343
|
-
export const de_GetPolicyCommand = async (output, context) => {
|
|
344
|
-
if (output.statusCode >= 300) {
|
|
345
|
-
return de_CommandError(output, context);
|
|
346
|
-
}
|
|
347
|
-
const data = await parseBody(output.body, context);
|
|
348
|
-
let contents = {};
|
|
349
|
-
contents = de_GetPolicyOutput(data, context);
|
|
350
|
-
const response = {
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
...contents,
|
|
353
|
-
};
|
|
354
|
-
return response;
|
|
355
|
-
};
|
|
356
|
-
export const de_GetPolicyStoreCommand = async (output, context) => {
|
|
357
|
-
if (output.statusCode >= 300) {
|
|
358
|
-
return de_CommandError(output, context);
|
|
359
|
-
}
|
|
360
|
-
const data = await parseBody(output.body, context);
|
|
361
|
-
let contents = {};
|
|
362
|
-
contents = de_GetPolicyStoreOutput(data, context);
|
|
363
|
-
const response = {
|
|
364
|
-
$metadata: deserializeMetadata(output),
|
|
365
|
-
...contents,
|
|
366
|
-
};
|
|
367
|
-
return response;
|
|
368
|
-
};
|
|
369
|
-
export const de_GetPolicyTemplateCommand = async (output, context) => {
|
|
370
|
-
if (output.statusCode >= 300) {
|
|
371
|
-
return de_CommandError(output, context);
|
|
372
|
-
}
|
|
373
|
-
const data = await parseBody(output.body, context);
|
|
374
|
-
let contents = {};
|
|
375
|
-
contents = de_GetPolicyTemplateOutput(data, context);
|
|
376
|
-
const response = {
|
|
377
|
-
$metadata: deserializeMetadata(output),
|
|
378
|
-
...contents,
|
|
379
|
-
};
|
|
380
|
-
return response;
|
|
381
|
-
};
|
|
382
|
-
export const de_GetSchemaCommand = async (output, context) => {
|
|
383
|
-
if (output.statusCode >= 300) {
|
|
384
|
-
return de_CommandError(output, context);
|
|
385
|
-
}
|
|
386
|
-
const data = await parseBody(output.body, context);
|
|
387
|
-
let contents = {};
|
|
388
|
-
contents = de_GetSchemaOutput(data, context);
|
|
389
|
-
const response = {
|
|
390
|
-
$metadata: deserializeMetadata(output),
|
|
391
|
-
...contents,
|
|
392
|
-
};
|
|
393
|
-
return response;
|
|
394
|
-
};
|
|
395
|
-
export const de_IsAuthorizedCommand = async (output, context) => {
|
|
396
|
-
if (output.statusCode >= 300) {
|
|
397
|
-
return de_CommandError(output, context);
|
|
398
|
-
}
|
|
399
|
-
const data = await parseBody(output.body, context);
|
|
400
|
-
let contents = {};
|
|
401
|
-
contents = _json(data);
|
|
402
|
-
const response = {
|
|
403
|
-
$metadata: deserializeMetadata(output),
|
|
404
|
-
...contents,
|
|
405
|
-
};
|
|
406
|
-
return response;
|
|
407
|
-
};
|
|
408
|
-
export const de_IsAuthorizedWithTokenCommand = async (output, context) => {
|
|
409
|
-
if (output.statusCode >= 300) {
|
|
410
|
-
return de_CommandError(output, context);
|
|
411
|
-
}
|
|
412
|
-
const data = await parseBody(output.body, context);
|
|
413
|
-
let contents = {};
|
|
414
|
-
contents = _json(data);
|
|
415
|
-
const response = {
|
|
416
|
-
$metadata: deserializeMetadata(output),
|
|
417
|
-
...contents,
|
|
418
|
-
};
|
|
419
|
-
return response;
|
|
420
|
-
};
|
|
421
|
-
export const de_ListIdentitySourcesCommand = async (output, context) => {
|
|
422
|
-
if (output.statusCode >= 300) {
|
|
423
|
-
return de_CommandError(output, context);
|
|
424
|
-
}
|
|
425
|
-
const data = await parseBody(output.body, context);
|
|
426
|
-
let contents = {};
|
|
427
|
-
contents = de_ListIdentitySourcesOutput(data, context);
|
|
428
|
-
const response = {
|
|
429
|
-
$metadata: deserializeMetadata(output),
|
|
430
|
-
...contents,
|
|
431
|
-
};
|
|
432
|
-
return response;
|
|
433
|
-
};
|
|
434
|
-
export const de_ListPoliciesCommand = async (output, context) => {
|
|
435
|
-
if (output.statusCode >= 300) {
|
|
436
|
-
return de_CommandError(output, context);
|
|
437
|
-
}
|
|
438
|
-
const data = await parseBody(output.body, context);
|
|
439
|
-
let contents = {};
|
|
440
|
-
contents = de_ListPoliciesOutput(data, context);
|
|
441
|
-
const response = {
|
|
442
|
-
$metadata: deserializeMetadata(output),
|
|
443
|
-
...contents,
|
|
444
|
-
};
|
|
445
|
-
return response;
|
|
446
|
-
};
|
|
447
|
-
export const de_ListPolicyStoresCommand = async (output, context) => {
|
|
448
|
-
if (output.statusCode >= 300) {
|
|
449
|
-
return de_CommandError(output, context);
|
|
450
|
-
}
|
|
451
|
-
const data = await parseBody(output.body, context);
|
|
452
|
-
let contents = {};
|
|
453
|
-
contents = de_ListPolicyStoresOutput(data, context);
|
|
454
|
-
const response = {
|
|
455
|
-
$metadata: deserializeMetadata(output),
|
|
456
|
-
...contents,
|
|
457
|
-
};
|
|
458
|
-
return response;
|
|
459
|
-
};
|
|
460
|
-
export const de_ListPolicyTemplatesCommand = async (output, context) => {
|
|
461
|
-
if (output.statusCode >= 300) {
|
|
462
|
-
return de_CommandError(output, context);
|
|
463
|
-
}
|
|
464
|
-
const data = await parseBody(output.body, context);
|
|
465
|
-
let contents = {};
|
|
466
|
-
contents = de_ListPolicyTemplatesOutput(data, context);
|
|
467
|
-
const response = {
|
|
468
|
-
$metadata: deserializeMetadata(output),
|
|
469
|
-
...contents,
|
|
470
|
-
};
|
|
471
|
-
return response;
|
|
472
|
-
};
|
|
473
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
474
|
-
if (output.statusCode >= 300) {
|
|
475
|
-
return de_CommandError(output, context);
|
|
476
|
-
}
|
|
477
|
-
const data = await parseBody(output.body, context);
|
|
478
|
-
let contents = {};
|
|
479
|
-
contents = _json(data);
|
|
480
|
-
const response = {
|
|
481
|
-
$metadata: deserializeMetadata(output),
|
|
482
|
-
...contents,
|
|
483
|
-
};
|
|
484
|
-
return response;
|
|
485
|
-
};
|
|
486
|
-
export const de_PutSchemaCommand = async (output, context) => {
|
|
487
|
-
if (output.statusCode >= 300) {
|
|
488
|
-
return de_CommandError(output, context);
|
|
489
|
-
}
|
|
490
|
-
const data = await parseBody(output.body, context);
|
|
491
|
-
let contents = {};
|
|
492
|
-
contents = de_PutSchemaOutput(data, context);
|
|
493
|
-
const response = {
|
|
494
|
-
$metadata: deserializeMetadata(output),
|
|
495
|
-
...contents,
|
|
496
|
-
};
|
|
497
|
-
return response;
|
|
498
|
-
};
|
|
499
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
500
|
-
if (output.statusCode >= 300) {
|
|
501
|
-
return de_CommandError(output, context);
|
|
502
|
-
}
|
|
503
|
-
const data = await parseBody(output.body, context);
|
|
504
|
-
let contents = {};
|
|
505
|
-
contents = _json(data);
|
|
506
|
-
const response = {
|
|
507
|
-
$metadata: deserializeMetadata(output),
|
|
508
|
-
...contents,
|
|
509
|
-
};
|
|
510
|
-
return response;
|
|
511
|
-
};
|
|
512
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
513
|
-
if (output.statusCode >= 300) {
|
|
514
|
-
return de_CommandError(output, context);
|
|
515
|
-
}
|
|
516
|
-
const data = await parseBody(output.body, context);
|
|
517
|
-
let contents = {};
|
|
518
|
-
contents = _json(data);
|
|
519
|
-
const response = {
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
...contents,
|
|
522
|
-
};
|
|
523
|
-
return response;
|
|
524
|
-
};
|
|
525
|
-
export const de_UpdateIdentitySourceCommand = async (output, context) => {
|
|
526
|
-
if (output.statusCode >= 300) {
|
|
527
|
-
return de_CommandError(output, context);
|
|
528
|
-
}
|
|
529
|
-
const data = await parseBody(output.body, context);
|
|
530
|
-
let contents = {};
|
|
531
|
-
contents = de_UpdateIdentitySourceOutput(data, context);
|
|
532
|
-
const response = {
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
...contents,
|
|
535
|
-
};
|
|
536
|
-
return response;
|
|
537
|
-
};
|
|
538
|
-
export const de_UpdatePolicyCommand = async (output, context) => {
|
|
539
|
-
if (output.statusCode >= 300) {
|
|
540
|
-
return de_CommandError(output, context);
|
|
541
|
-
}
|
|
542
|
-
const data = await parseBody(output.body, context);
|
|
543
|
-
let contents = {};
|
|
544
|
-
contents = de_UpdatePolicyOutput(data, context);
|
|
545
|
-
const response = {
|
|
546
|
-
$metadata: deserializeMetadata(output),
|
|
547
|
-
...contents,
|
|
548
|
-
};
|
|
549
|
-
return response;
|
|
550
|
-
};
|
|
551
|
-
export const de_UpdatePolicyStoreCommand = async (output, context) => {
|
|
552
|
-
if (output.statusCode >= 300) {
|
|
553
|
-
return de_CommandError(output, context);
|
|
554
|
-
}
|
|
555
|
-
const data = await parseBody(output.body, context);
|
|
556
|
-
let contents = {};
|
|
557
|
-
contents = de_UpdatePolicyStoreOutput(data, context);
|
|
558
|
-
const response = {
|
|
559
|
-
$metadata: deserializeMetadata(output),
|
|
560
|
-
...contents,
|
|
561
|
-
};
|
|
562
|
-
return response;
|
|
563
|
-
};
|
|
564
|
-
export const de_UpdatePolicyTemplateCommand = async (output, context) => {
|
|
565
|
-
if (output.statusCode >= 300) {
|
|
566
|
-
return de_CommandError(output, context);
|
|
567
|
-
}
|
|
568
|
-
const data = await parseBody(output.body, context);
|
|
569
|
-
let contents = {};
|
|
570
|
-
contents = de_UpdatePolicyTemplateOutput(data, context);
|
|
571
|
-
const response = {
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
...contents,
|
|
574
|
-
};
|
|
575
|
-
return response;
|
|
576
|
-
};
|
|
577
|
-
const de_CommandError = async (output, context) => {
|
|
578
|
-
const parsedOutput = {
|
|
579
|
-
...output,
|
|
580
|
-
body: await parseErrorBody(output.body, context),
|
|
581
|
-
};
|
|
582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
|
-
switch (errorCode) {
|
|
584
|
-
case "AccessDeniedException":
|
|
585
|
-
case "com.amazonaws.verifiedpermissions#AccessDeniedException":
|
|
586
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
587
|
-
case "InternalServerException":
|
|
588
|
-
case "com.amazonaws.verifiedpermissions#InternalServerException":
|
|
589
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
590
|
-
case "ThrottlingException":
|
|
591
|
-
case "com.amazonaws.verifiedpermissions#ThrottlingException":
|
|
592
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
593
|
-
case "ValidationException":
|
|
594
|
-
case "com.amazonaws.verifiedpermissions#ValidationException":
|
|
595
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
596
|
-
case "ResourceNotFoundException":
|
|
597
|
-
case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
|
|
598
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
599
|
-
case "ConflictException":
|
|
600
|
-
case "com.amazonaws.verifiedpermissions#ConflictException":
|
|
601
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
602
|
-
case "ServiceQuotaExceededException":
|
|
603
|
-
case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
|
|
604
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
605
|
-
case "InvalidStateException":
|
|
606
|
-
case "com.amazonaws.verifiedpermissions#InvalidStateException":
|
|
607
|
-
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
608
|
-
case "TooManyTagsException":
|
|
609
|
-
case "com.amazonaws.verifiedpermissions#TooManyTagsException":
|
|
610
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
611
|
-
default:
|
|
612
|
-
const parsedBody = parsedOutput.body;
|
|
613
|
-
return throwDefaultError({
|
|
614
|
-
output,
|
|
615
|
-
parsedBody,
|
|
616
|
-
errorCode,
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
621
|
-
const body = parsedOutput.body;
|
|
622
|
-
const deserialized = _json(body);
|
|
623
|
-
const exception = new AccessDeniedException({
|
|
624
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
625
|
-
...deserialized,
|
|
626
|
-
});
|
|
627
|
-
return __decorateServiceException(exception, body);
|
|
628
|
-
};
|
|
629
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
630
|
-
const body = parsedOutput.body;
|
|
631
|
-
const deserialized = _json(body);
|
|
632
|
-
const exception = new ConflictException({
|
|
633
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
634
|
-
...deserialized,
|
|
635
|
-
});
|
|
636
|
-
return __decorateServiceException(exception, body);
|
|
637
|
-
};
|
|
638
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
639
|
-
const body = parsedOutput.body;
|
|
640
|
-
const deserialized = _json(body);
|
|
641
|
-
const exception = new InternalServerException({
|
|
642
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
643
|
-
...deserialized,
|
|
644
|
-
});
|
|
645
|
-
return __decorateServiceException(exception, body);
|
|
646
|
-
};
|
|
647
|
-
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
648
|
-
const body = parsedOutput.body;
|
|
649
|
-
const deserialized = _json(body);
|
|
650
|
-
const exception = new InvalidStateException({
|
|
651
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
652
|
-
...deserialized,
|
|
653
|
-
});
|
|
654
|
-
return __decorateServiceException(exception, body);
|
|
655
|
-
};
|
|
656
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
657
|
-
const body = parsedOutput.body;
|
|
658
|
-
const deserialized = _json(body);
|
|
659
|
-
const exception = new ResourceNotFoundException({
|
|
660
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
661
|
-
...deserialized,
|
|
662
|
-
});
|
|
663
|
-
return __decorateServiceException(exception, body);
|
|
664
|
-
};
|
|
665
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
666
|
-
const body = parsedOutput.body;
|
|
667
|
-
const deserialized = _json(body);
|
|
668
|
-
const exception = new ServiceQuotaExceededException({
|
|
669
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
670
|
-
...deserialized,
|
|
671
|
-
});
|
|
672
|
-
return __decorateServiceException(exception, body);
|
|
673
|
-
};
|
|
674
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
675
|
-
const body = parsedOutput.body;
|
|
676
|
-
const deserialized = _json(body);
|
|
677
|
-
const exception = new ThrottlingException({
|
|
678
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
679
|
-
...deserialized,
|
|
680
|
-
});
|
|
681
|
-
return __decorateServiceException(exception, body);
|
|
682
|
-
};
|
|
683
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
684
|
-
const body = parsedOutput.body;
|
|
685
|
-
const deserialized = _json(body);
|
|
686
|
-
const exception = new TooManyTagsException({
|
|
687
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
688
|
-
...deserialized,
|
|
689
|
-
});
|
|
690
|
-
return __decorateServiceException(exception, body);
|
|
691
|
-
};
|
|
692
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
693
|
-
const body = parsedOutput.body;
|
|
694
|
-
const deserialized = _json(body);
|
|
695
|
-
const exception = new ValidationException({
|
|
696
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
697
|
-
...deserialized,
|
|
698
|
-
});
|
|
699
|
-
return __decorateServiceException(exception, body);
|
|
700
|
-
};
|
|
701
|
-
const se_AttributeValue = (input, context) => {
|
|
702
|
-
return AttributeValue.visit(input, {
|
|
703
|
-
boolean: (value) => ({ boolean: value }),
|
|
704
|
-
datetime: (value) => ({ datetime: value }),
|
|
705
|
-
decimal: (value) => ({ decimal: value }),
|
|
706
|
-
duration: (value) => ({ duration: value }),
|
|
707
|
-
entityIdentifier: (value) => ({ entityIdentifier: _json(value) }),
|
|
708
|
-
ipaddr: (value) => ({ ipaddr: value }),
|
|
709
|
-
long: (value) => ({ long: value }),
|
|
710
|
-
record: (value) => ({ record: se_RecordAttribute(value, context) }),
|
|
711
|
-
set: (value) => ({ set: se_SetAttribute(value, context) }),
|
|
712
|
-
string: (value) => ({ string: value }),
|
|
713
|
-
_: (name, value) => ({ [name]: value }),
|
|
714
|
-
});
|
|
715
|
-
};
|
|
716
|
-
const se_BatchIsAuthorizedInput = (input, context) => {
|
|
717
|
-
return take(input, {
|
|
718
|
-
entities: (_) => se_EntitiesDefinition(_, context),
|
|
719
|
-
policyStoreId: [],
|
|
720
|
-
requests: (_) => se_BatchIsAuthorizedInputList(_, context),
|
|
721
|
-
});
|
|
722
|
-
};
|
|
723
|
-
const se_BatchIsAuthorizedInputItem = (input, context) => {
|
|
724
|
-
return take(input, {
|
|
725
|
-
action: _json,
|
|
726
|
-
context: (_) => se_ContextDefinition(_, context),
|
|
727
|
-
principal: _json,
|
|
728
|
-
resource: _json,
|
|
729
|
-
});
|
|
730
|
-
};
|
|
731
|
-
const se_BatchIsAuthorizedInputList = (input, context) => {
|
|
732
|
-
return input
|
|
733
|
-
.filter((e) => e != null)
|
|
734
|
-
.map((entry) => {
|
|
735
|
-
return se_BatchIsAuthorizedInputItem(entry, context);
|
|
736
|
-
});
|
|
737
|
-
};
|
|
738
|
-
const se_BatchIsAuthorizedWithTokenInput = (input, context) => {
|
|
739
|
-
return take(input, {
|
|
740
|
-
accessToken: [],
|
|
741
|
-
entities: (_) => se_EntitiesDefinition(_, context),
|
|
742
|
-
identityToken: [],
|
|
743
|
-
policyStoreId: [],
|
|
744
|
-
requests: (_) => se_BatchIsAuthorizedWithTokenInputList(_, context),
|
|
745
|
-
});
|
|
746
|
-
};
|
|
747
|
-
const se_BatchIsAuthorizedWithTokenInputItem = (input, context) => {
|
|
748
|
-
return take(input, {
|
|
749
|
-
action: _json,
|
|
750
|
-
context: (_) => se_ContextDefinition(_, context),
|
|
751
|
-
resource: _json,
|
|
752
|
-
});
|
|
753
|
-
};
|
|
754
|
-
const se_BatchIsAuthorizedWithTokenInputList = (input, context) => {
|
|
755
|
-
return input
|
|
756
|
-
.filter((e) => e != null)
|
|
757
|
-
.map((entry) => {
|
|
758
|
-
return se_BatchIsAuthorizedWithTokenInputItem(entry, context);
|
|
759
|
-
});
|
|
760
|
-
};
|
|
761
|
-
const se_ContextDefinition = (input, context) => {
|
|
762
|
-
return ContextDefinition.visit(input, {
|
|
763
|
-
cedarJson: (value) => ({ cedarJson: value }),
|
|
764
|
-
contextMap: (value) => ({ contextMap: se_ContextMap(value, context) }),
|
|
765
|
-
_: (name, value) => ({ [name]: value }),
|
|
766
|
-
});
|
|
767
|
-
};
|
|
768
|
-
const se_ContextMap = (input, context) => {
|
|
769
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
770
|
-
if (value === null) {
|
|
771
|
-
return acc;
|
|
772
|
-
}
|
|
773
|
-
acc[key] = se_AttributeValue(value, context);
|
|
774
|
-
return acc;
|
|
775
|
-
}, {});
|
|
776
|
-
};
|
|
777
|
-
const se_CreateIdentitySourceInput = (input, context) => {
|
|
778
|
-
return take(input, {
|
|
779
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
780
|
-
configuration: _json,
|
|
781
|
-
policyStoreId: [],
|
|
782
|
-
principalEntityType: [],
|
|
783
|
-
});
|
|
784
|
-
};
|
|
785
|
-
const se_CreatePolicyInput = (input, context) => {
|
|
786
|
-
return take(input, {
|
|
787
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
788
|
-
definition: _json,
|
|
789
|
-
policyStoreId: [],
|
|
790
|
-
});
|
|
791
|
-
};
|
|
792
|
-
const se_CreatePolicyStoreInput = (input, context) => {
|
|
793
|
-
return take(input, {
|
|
794
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
795
|
-
deletionProtection: [],
|
|
796
|
-
description: [],
|
|
797
|
-
tags: _json,
|
|
798
|
-
validationSettings: _json,
|
|
799
|
-
});
|
|
800
|
-
};
|
|
801
|
-
const se_CreatePolicyTemplateInput = (input, context) => {
|
|
802
|
-
return take(input, {
|
|
803
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
804
|
-
description: [],
|
|
805
|
-
policyStoreId: [],
|
|
806
|
-
statement: [],
|
|
807
|
-
});
|
|
808
|
-
};
|
|
809
|
-
const se_EntitiesDefinition = (input, context) => {
|
|
810
|
-
return EntitiesDefinition.visit(input, {
|
|
811
|
-
cedarJson: (value) => ({ cedarJson: value }),
|
|
812
|
-
entityList: (value) => ({ entityList: se_EntityList(value, context) }),
|
|
813
|
-
_: (name, value) => ({ [name]: value }),
|
|
814
|
-
});
|
|
815
|
-
};
|
|
816
|
-
const se_EntityAttributes = (input, context) => {
|
|
817
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
818
|
-
if (value === null) {
|
|
819
|
-
return acc;
|
|
820
|
-
}
|
|
821
|
-
acc[key] = se_AttributeValue(value, context);
|
|
822
|
-
return acc;
|
|
823
|
-
}, {});
|
|
824
|
-
};
|
|
825
|
-
const se_EntityItem = (input, context) => {
|
|
826
|
-
return take(input, {
|
|
827
|
-
attributes: (_) => se_EntityAttributes(_, context),
|
|
828
|
-
identifier: _json,
|
|
829
|
-
parents: _json,
|
|
830
|
-
});
|
|
831
|
-
};
|
|
832
|
-
const se_EntityList = (input, context) => {
|
|
833
|
-
return input
|
|
834
|
-
.filter((e) => e != null)
|
|
835
|
-
.map((entry) => {
|
|
836
|
-
return se_EntityItem(entry, context);
|
|
837
|
-
});
|
|
838
|
-
};
|
|
839
|
-
const se_IsAuthorizedInput = (input, context) => {
|
|
840
|
-
return take(input, {
|
|
841
|
-
action: _json,
|
|
842
|
-
context: (_) => se_ContextDefinition(_, context),
|
|
843
|
-
entities: (_) => se_EntitiesDefinition(_, context),
|
|
844
|
-
policyStoreId: [],
|
|
845
|
-
principal: _json,
|
|
846
|
-
resource: _json,
|
|
847
|
-
});
|
|
848
|
-
};
|
|
849
|
-
const se_IsAuthorizedWithTokenInput = (input, context) => {
|
|
850
|
-
return take(input, {
|
|
851
|
-
accessToken: [],
|
|
852
|
-
action: _json,
|
|
853
|
-
context: (_) => se_ContextDefinition(_, context),
|
|
854
|
-
entities: (_) => se_EntitiesDefinition(_, context),
|
|
855
|
-
identityToken: [],
|
|
856
|
-
policyStoreId: [],
|
|
857
|
-
resource: _json,
|
|
858
|
-
});
|
|
859
|
-
};
|
|
860
|
-
const se_RecordAttribute = (input, context) => {
|
|
861
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
862
|
-
if (value === null) {
|
|
863
|
-
return acc;
|
|
864
|
-
}
|
|
865
|
-
acc[key] = se_AttributeValue(value, context);
|
|
866
|
-
return acc;
|
|
867
|
-
}, {});
|
|
868
|
-
};
|
|
869
|
-
const se_SetAttribute = (input, context) => {
|
|
870
|
-
return input
|
|
871
|
-
.filter((e) => e != null)
|
|
872
|
-
.map((entry) => {
|
|
873
|
-
return se_AttributeValue(entry, context);
|
|
874
|
-
});
|
|
875
|
-
};
|
|
876
|
-
const de_AttributeValue = (output, context) => {
|
|
877
|
-
if (__expectBoolean(output.boolean) !== undefined) {
|
|
878
|
-
return { boolean: __expectBoolean(output.boolean) };
|
|
879
|
-
}
|
|
880
|
-
if (__expectString(output.datetime) !== undefined) {
|
|
881
|
-
return { datetime: __expectString(output.datetime) };
|
|
882
|
-
}
|
|
883
|
-
if (__expectString(output.decimal) !== undefined) {
|
|
884
|
-
return { decimal: __expectString(output.decimal) };
|
|
885
|
-
}
|
|
886
|
-
if (__expectString(output.duration) !== undefined) {
|
|
887
|
-
return { duration: __expectString(output.duration) };
|
|
888
|
-
}
|
|
889
|
-
if (output.entityIdentifier != null) {
|
|
890
|
-
return {
|
|
891
|
-
entityIdentifier: _json(output.entityIdentifier),
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
|
-
if (__expectString(output.ipaddr) !== undefined) {
|
|
895
|
-
return { ipaddr: __expectString(output.ipaddr) };
|
|
896
|
-
}
|
|
897
|
-
if (__expectLong(output.long) !== undefined) {
|
|
898
|
-
return { long: __expectLong(output.long) };
|
|
899
|
-
}
|
|
900
|
-
if (output.record != null) {
|
|
901
|
-
return {
|
|
902
|
-
record: de_RecordAttribute(output.record, context),
|
|
903
|
-
};
|
|
904
|
-
}
|
|
905
|
-
if (output.set != null) {
|
|
906
|
-
return {
|
|
907
|
-
set: de_SetAttribute(output.set, context),
|
|
908
|
-
};
|
|
909
|
-
}
|
|
910
|
-
if (__expectString(output.string) !== undefined) {
|
|
911
|
-
return { string: __expectString(output.string) };
|
|
912
|
-
}
|
|
913
|
-
return { $unknown: Object.entries(output)[0] };
|
|
914
|
-
};
|
|
915
|
-
const de_BatchGetPolicyOutput = (output, context) => {
|
|
916
|
-
return take(output, {
|
|
917
|
-
errors: _json,
|
|
918
|
-
results: (_) => de_BatchGetPolicyOutputList(_, context),
|
|
919
|
-
});
|
|
920
|
-
};
|
|
921
|
-
const de_BatchGetPolicyOutputItem = (output, context) => {
|
|
922
|
-
return take(output, {
|
|
923
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
924
|
-
definition: (_) => _json(__expectUnion(_)),
|
|
925
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
926
|
-
policyId: __expectString,
|
|
927
|
-
policyStoreId: __expectString,
|
|
928
|
-
policyType: __expectString,
|
|
929
|
-
});
|
|
930
|
-
};
|
|
931
|
-
const de_BatchGetPolicyOutputList = (output, context) => {
|
|
932
|
-
const retVal = (output || [])
|
|
933
|
-
.filter((e) => e != null)
|
|
934
|
-
.map((entry) => {
|
|
935
|
-
return de_BatchGetPolicyOutputItem(entry, context);
|
|
936
|
-
});
|
|
937
|
-
return retVal;
|
|
938
|
-
};
|
|
939
|
-
const de_BatchIsAuthorizedInputItem = (output, context) => {
|
|
940
|
-
return take(output, {
|
|
941
|
-
action: _json,
|
|
942
|
-
context: (_) => de_ContextDefinition(__expectUnion(_), context),
|
|
943
|
-
principal: _json,
|
|
944
|
-
resource: _json,
|
|
945
|
-
});
|
|
946
|
-
};
|
|
947
|
-
const de_BatchIsAuthorizedOutput = (output, context) => {
|
|
948
|
-
return take(output, {
|
|
949
|
-
results: (_) => de_BatchIsAuthorizedOutputList(_, context),
|
|
950
|
-
});
|
|
951
|
-
};
|
|
952
|
-
const de_BatchIsAuthorizedOutputItem = (output, context) => {
|
|
953
|
-
return take(output, {
|
|
954
|
-
decision: __expectString,
|
|
955
|
-
determiningPolicies: _json,
|
|
956
|
-
errors: _json,
|
|
957
|
-
request: (_) => de_BatchIsAuthorizedInputItem(_, context),
|
|
958
|
-
});
|
|
959
|
-
};
|
|
960
|
-
const de_BatchIsAuthorizedOutputList = (output, context) => {
|
|
961
|
-
const retVal = (output || [])
|
|
962
|
-
.filter((e) => e != null)
|
|
963
|
-
.map((entry) => {
|
|
964
|
-
return de_BatchIsAuthorizedOutputItem(entry, context);
|
|
965
|
-
});
|
|
966
|
-
return retVal;
|
|
967
|
-
};
|
|
968
|
-
const de_BatchIsAuthorizedWithTokenInputItem = (output, context) => {
|
|
969
|
-
return take(output, {
|
|
970
|
-
action: _json,
|
|
971
|
-
context: (_) => de_ContextDefinition(__expectUnion(_), context),
|
|
972
|
-
resource: _json,
|
|
973
|
-
});
|
|
974
|
-
};
|
|
975
|
-
const de_BatchIsAuthorizedWithTokenOutput = (output, context) => {
|
|
976
|
-
return take(output, {
|
|
977
|
-
principal: _json,
|
|
978
|
-
results: (_) => de_BatchIsAuthorizedWithTokenOutputList(_, context),
|
|
979
|
-
});
|
|
980
|
-
};
|
|
981
|
-
const de_BatchIsAuthorizedWithTokenOutputItem = (output, context) => {
|
|
982
|
-
return take(output, {
|
|
983
|
-
decision: __expectString,
|
|
984
|
-
determiningPolicies: _json,
|
|
985
|
-
errors: _json,
|
|
986
|
-
request: (_) => de_BatchIsAuthorizedWithTokenInputItem(_, context),
|
|
987
|
-
});
|
|
988
|
-
};
|
|
989
|
-
const de_BatchIsAuthorizedWithTokenOutputList = (output, context) => {
|
|
990
|
-
const retVal = (output || [])
|
|
991
|
-
.filter((e) => e != null)
|
|
992
|
-
.map((entry) => {
|
|
993
|
-
return de_BatchIsAuthorizedWithTokenOutputItem(entry, context);
|
|
994
|
-
});
|
|
995
|
-
return retVal;
|
|
996
|
-
};
|
|
997
|
-
const de_ContextDefinition = (output, context) => {
|
|
998
|
-
if (__expectString(output.cedarJson) !== undefined) {
|
|
999
|
-
return { cedarJson: __expectString(output.cedarJson) };
|
|
1000
|
-
}
|
|
1001
|
-
if (output.contextMap != null) {
|
|
1002
|
-
return {
|
|
1003
|
-
contextMap: de_ContextMap(output.contextMap, context),
|
|
1004
|
-
};
|
|
1005
|
-
}
|
|
1006
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1007
|
-
};
|
|
1008
|
-
const de_ContextMap = (output, context) => {
|
|
1009
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1010
|
-
if (value === null) {
|
|
1011
|
-
return acc;
|
|
1012
|
-
}
|
|
1013
|
-
acc[key] = de_AttributeValue(__expectUnion(value), context);
|
|
1014
|
-
return acc;
|
|
1015
|
-
}, {});
|
|
1016
|
-
};
|
|
1017
|
-
const de_CreateIdentitySourceOutput = (output, context) => {
|
|
1018
|
-
return take(output, {
|
|
1019
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1020
|
-
identitySourceId: __expectString,
|
|
1021
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1022
|
-
policyStoreId: __expectString,
|
|
1023
|
-
});
|
|
1024
|
-
};
|
|
1025
|
-
const de_CreatePolicyOutput = (output, context) => {
|
|
1026
|
-
return take(output, {
|
|
1027
|
-
actions: _json,
|
|
1028
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1029
|
-
effect: __expectString,
|
|
1030
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1031
|
-
policyId: __expectString,
|
|
1032
|
-
policyStoreId: __expectString,
|
|
1033
|
-
policyType: __expectString,
|
|
1034
|
-
principal: _json,
|
|
1035
|
-
resource: _json,
|
|
1036
|
-
});
|
|
1037
|
-
};
|
|
1038
|
-
const de_CreatePolicyStoreOutput = (output, context) => {
|
|
1039
|
-
return take(output, {
|
|
1040
|
-
arn: __expectString,
|
|
1041
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1042
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1043
|
-
policyStoreId: __expectString,
|
|
1044
|
-
});
|
|
1045
|
-
};
|
|
1046
|
-
const de_CreatePolicyTemplateOutput = (output, context) => {
|
|
1047
|
-
return take(output, {
|
|
1048
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1049
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1050
|
-
policyStoreId: __expectString,
|
|
1051
|
-
policyTemplateId: __expectString,
|
|
1052
|
-
});
|
|
1053
|
-
};
|
|
1054
|
-
const de_GetIdentitySourceOutput = (output, context) => {
|
|
1055
|
-
return take(output, {
|
|
1056
|
-
configuration: (_) => _json(__expectUnion(_)),
|
|
1057
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1058
|
-
details: _json,
|
|
1059
|
-
identitySourceId: __expectString,
|
|
1060
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1061
|
-
policyStoreId: __expectString,
|
|
1062
|
-
principalEntityType: __expectString,
|
|
1063
|
-
});
|
|
1064
|
-
};
|
|
1065
|
-
const de_GetPolicyOutput = (output, context) => {
|
|
1066
|
-
return take(output, {
|
|
1067
|
-
actions: _json,
|
|
1068
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1069
|
-
definition: (_) => _json(__expectUnion(_)),
|
|
1070
|
-
effect: __expectString,
|
|
1071
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1072
|
-
policyId: __expectString,
|
|
1073
|
-
policyStoreId: __expectString,
|
|
1074
|
-
policyType: __expectString,
|
|
1075
|
-
principal: _json,
|
|
1076
|
-
resource: _json,
|
|
1077
|
-
});
|
|
1078
|
-
};
|
|
1079
|
-
const de_GetPolicyStoreOutput = (output, context) => {
|
|
1080
|
-
return take(output, {
|
|
1081
|
-
arn: __expectString,
|
|
1082
|
-
cedarVersion: __expectString,
|
|
1083
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1084
|
-
deletionProtection: __expectString,
|
|
1085
|
-
description: __expectString,
|
|
1086
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1087
|
-
policyStoreId: __expectString,
|
|
1088
|
-
tags: _json,
|
|
1089
|
-
validationSettings: _json,
|
|
1090
|
-
});
|
|
1091
|
-
};
|
|
1092
|
-
const de_GetPolicyTemplateOutput = (output, context) => {
|
|
1093
|
-
return take(output, {
|
|
1094
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1095
|
-
description: __expectString,
|
|
1096
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1097
|
-
policyStoreId: __expectString,
|
|
1098
|
-
policyTemplateId: __expectString,
|
|
1099
|
-
statement: __expectString,
|
|
1100
|
-
});
|
|
1101
|
-
};
|
|
1102
|
-
const de_GetSchemaOutput = (output, context) => {
|
|
1103
|
-
return take(output, {
|
|
1104
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1105
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1106
|
-
namespaces: _json,
|
|
1107
|
-
policyStoreId: __expectString,
|
|
1108
|
-
schema: __expectString,
|
|
1109
|
-
});
|
|
1110
|
-
};
|
|
1111
|
-
const de_IdentitySourceItem = (output, context) => {
|
|
1112
|
-
return take(output, {
|
|
1113
|
-
configuration: (_) => _json(__expectUnion(_)),
|
|
1114
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1115
|
-
details: _json,
|
|
1116
|
-
identitySourceId: __expectString,
|
|
1117
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1118
|
-
policyStoreId: __expectString,
|
|
1119
|
-
principalEntityType: __expectString,
|
|
1120
|
-
});
|
|
1121
|
-
};
|
|
1122
|
-
const de_IdentitySources = (output, context) => {
|
|
1123
|
-
const retVal = (output || [])
|
|
1124
|
-
.filter((e) => e != null)
|
|
1125
|
-
.map((entry) => {
|
|
1126
|
-
return de_IdentitySourceItem(entry, context);
|
|
1127
|
-
});
|
|
1128
|
-
return retVal;
|
|
1129
|
-
};
|
|
1130
|
-
const de_ListIdentitySourcesOutput = (output, context) => {
|
|
1131
|
-
return take(output, {
|
|
1132
|
-
identitySources: (_) => de_IdentitySources(_, context),
|
|
1133
|
-
nextToken: __expectString,
|
|
1134
|
-
});
|
|
1135
|
-
};
|
|
1136
|
-
const de_ListPoliciesOutput = (output, context) => {
|
|
1137
|
-
return take(output, {
|
|
1138
|
-
nextToken: __expectString,
|
|
1139
|
-
policies: (_) => de_PolicyList(_, context),
|
|
1140
|
-
});
|
|
1141
|
-
};
|
|
1142
|
-
const de_ListPolicyStoresOutput = (output, context) => {
|
|
1143
|
-
return take(output, {
|
|
1144
|
-
nextToken: __expectString,
|
|
1145
|
-
policyStores: (_) => de_PolicyStoreList(_, context),
|
|
1146
|
-
});
|
|
1147
|
-
};
|
|
1148
|
-
const de_ListPolicyTemplatesOutput = (output, context) => {
|
|
1149
|
-
return take(output, {
|
|
1150
|
-
nextToken: __expectString,
|
|
1151
|
-
policyTemplates: (_) => de_PolicyTemplatesList(_, context),
|
|
1152
|
-
});
|
|
1153
|
-
};
|
|
1154
|
-
const de_PolicyItem = (output, context) => {
|
|
1155
|
-
return take(output, {
|
|
1156
|
-
actions: _json,
|
|
1157
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1158
|
-
definition: (_) => _json(__expectUnion(_)),
|
|
1159
|
-
effect: __expectString,
|
|
1160
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1161
|
-
policyId: __expectString,
|
|
1162
|
-
policyStoreId: __expectString,
|
|
1163
|
-
policyType: __expectString,
|
|
1164
|
-
principal: _json,
|
|
1165
|
-
resource: _json,
|
|
1166
|
-
});
|
|
1167
|
-
};
|
|
1168
|
-
const de_PolicyList = (output, context) => {
|
|
1169
|
-
const retVal = (output || [])
|
|
1170
|
-
.filter((e) => e != null)
|
|
1171
|
-
.map((entry) => {
|
|
1172
|
-
return de_PolicyItem(entry, context);
|
|
1173
|
-
});
|
|
1174
|
-
return retVal;
|
|
1175
|
-
};
|
|
1176
|
-
const de_PolicyStoreItem = (output, context) => {
|
|
1177
|
-
return take(output, {
|
|
1178
|
-
arn: __expectString,
|
|
1179
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1180
|
-
description: __expectString,
|
|
1181
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1182
|
-
policyStoreId: __expectString,
|
|
1183
|
-
});
|
|
1184
|
-
};
|
|
1185
|
-
const de_PolicyStoreList = (output, context) => {
|
|
1186
|
-
const retVal = (output || [])
|
|
1187
|
-
.filter((e) => e != null)
|
|
1188
|
-
.map((entry) => {
|
|
1189
|
-
return de_PolicyStoreItem(entry, context);
|
|
1190
|
-
});
|
|
1191
|
-
return retVal;
|
|
1192
|
-
};
|
|
1193
|
-
const de_PolicyTemplateItem = (output, context) => {
|
|
1194
|
-
return take(output, {
|
|
1195
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1196
|
-
description: __expectString,
|
|
1197
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1198
|
-
policyStoreId: __expectString,
|
|
1199
|
-
policyTemplateId: __expectString,
|
|
1200
|
-
});
|
|
1201
|
-
};
|
|
1202
|
-
const de_PolicyTemplatesList = (output, context) => {
|
|
1203
|
-
const retVal = (output || [])
|
|
1204
|
-
.filter((e) => e != null)
|
|
1205
|
-
.map((entry) => {
|
|
1206
|
-
return de_PolicyTemplateItem(entry, context);
|
|
1207
|
-
});
|
|
1208
|
-
return retVal;
|
|
1209
|
-
};
|
|
1210
|
-
const de_PutSchemaOutput = (output, context) => {
|
|
1211
|
-
return take(output, {
|
|
1212
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1213
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1214
|
-
namespaces: _json,
|
|
1215
|
-
policyStoreId: __expectString,
|
|
1216
|
-
});
|
|
1217
|
-
};
|
|
1218
|
-
const de_RecordAttribute = (output, context) => {
|
|
1219
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1220
|
-
if (value === null) {
|
|
1221
|
-
return acc;
|
|
1222
|
-
}
|
|
1223
|
-
acc[key] = de_AttributeValue(__expectUnion(value), context);
|
|
1224
|
-
return acc;
|
|
1225
|
-
}, {});
|
|
1226
|
-
};
|
|
1227
|
-
const de_SetAttribute = (output, context) => {
|
|
1228
|
-
const retVal = (output || [])
|
|
1229
|
-
.filter((e) => e != null)
|
|
1230
|
-
.map((entry) => {
|
|
1231
|
-
return de_AttributeValue(__expectUnion(entry), context);
|
|
1232
|
-
});
|
|
1233
|
-
return retVal;
|
|
1234
|
-
};
|
|
1235
|
-
const de_UpdateIdentitySourceOutput = (output, context) => {
|
|
1236
|
-
return take(output, {
|
|
1237
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1238
|
-
identitySourceId: __expectString,
|
|
1239
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1240
|
-
policyStoreId: __expectString,
|
|
1241
|
-
});
|
|
1242
|
-
};
|
|
1243
|
-
const de_UpdatePolicyOutput = (output, context) => {
|
|
1244
|
-
return take(output, {
|
|
1245
|
-
actions: _json,
|
|
1246
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1247
|
-
effect: __expectString,
|
|
1248
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1249
|
-
policyId: __expectString,
|
|
1250
|
-
policyStoreId: __expectString,
|
|
1251
|
-
policyType: __expectString,
|
|
1252
|
-
principal: _json,
|
|
1253
|
-
resource: _json,
|
|
1254
|
-
});
|
|
1255
|
-
};
|
|
1256
|
-
const de_UpdatePolicyStoreOutput = (output, context) => {
|
|
1257
|
-
return take(output, {
|
|
1258
|
-
arn: __expectString,
|
|
1259
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1260
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1261
|
-
policyStoreId: __expectString,
|
|
1262
|
-
});
|
|
1263
|
-
};
|
|
1264
|
-
const de_UpdatePolicyTemplateOutput = (output, context) => {
|
|
1265
|
-
return take(output, {
|
|
1266
|
-
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1267
|
-
lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1268
|
-
policyStoreId: __expectString,
|
|
1269
|
-
policyTemplateId: __expectString,
|
|
1270
|
-
});
|
|
1271
|
-
};
|
|
1272
|
-
const deserializeMetadata = (output) => ({
|
|
1273
|
-
httpStatusCode: output.statusCode,
|
|
1274
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1275
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1276
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1277
|
-
});
|
|
1278
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1279
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1280
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1281
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1282
|
-
const contents = {
|
|
1283
|
-
protocol,
|
|
1284
|
-
hostname,
|
|
1285
|
-
port,
|
|
1286
|
-
method: "POST",
|
|
1287
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1288
|
-
headers,
|
|
1289
|
-
};
|
|
1290
|
-
if (resolvedHostname !== undefined) {
|
|
1291
|
-
contents.hostname = resolvedHostname;
|
|
1292
|
-
}
|
|
1293
|
-
if (body !== undefined) {
|
|
1294
|
-
contents.body = body;
|
|
1295
|
-
}
|
|
1296
|
-
return new __HttpRequest(contents);
|
|
1297
|
-
};
|
|
1298
|
-
function sharedHeaders(operation) {
|
|
1299
|
-
return {
|
|
1300
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1301
|
-
"x-amz-target": `VerifiedPermissions.${operation}`,
|
|
1302
|
-
};
|
|
1303
|
-
}
|