@aws-sdk/client-ram 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 +1907 -2013
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/RAMClient.js +2 -0
- package/dist-es/commands/AcceptResourceShareInvitationCommand.js +3 -9
- package/dist-es/commands/AssociateResourceShareCommand.js +3 -9
- package/dist-es/commands/AssociateResourceSharePermissionCommand.js +3 -9
- package/dist-es/commands/CreatePermissionCommand.js +3 -9
- package/dist-es/commands/CreatePermissionVersionCommand.js +3 -9
- package/dist-es/commands/CreateResourceShareCommand.js +3 -9
- package/dist-es/commands/DeletePermissionCommand.js +3 -9
- package/dist-es/commands/DeletePermissionVersionCommand.js +3 -9
- package/dist-es/commands/DeleteResourceShareCommand.js +3 -9
- package/dist-es/commands/DisassociateResourceShareCommand.js +3 -9
- package/dist-es/commands/DisassociateResourceSharePermissionCommand.js +3 -9
- package/dist-es/commands/EnableSharingWithAwsOrganizationCommand.js +3 -9
- package/dist-es/commands/GetPermissionCommand.js +3 -9
- package/dist-es/commands/GetResourcePoliciesCommand.js +3 -9
- package/dist-es/commands/GetResourceShareAssociationsCommand.js +3 -9
- package/dist-es/commands/GetResourceShareInvitationsCommand.js +3 -9
- package/dist-es/commands/GetResourceSharesCommand.js +3 -9
- package/dist-es/commands/ListPendingInvitationResourcesCommand.js +3 -9
- package/dist-es/commands/ListPermissionAssociationsCommand.js +3 -9
- package/dist-es/commands/ListPermissionVersionsCommand.js +3 -9
- package/dist-es/commands/ListPermissionsCommand.js +3 -9
- package/dist-es/commands/ListPrincipalsCommand.js +3 -9
- package/dist-es/commands/ListReplacePermissionAssociationsWorkCommand.js +3 -9
- package/dist-es/commands/ListResourceSharePermissionsCommand.js +3 -9
- package/dist-es/commands/ListResourceTypesCommand.js +3 -9
- package/dist-es/commands/ListResourcesCommand.js +3 -9
- package/dist-es/commands/PromotePermissionCreatedFromPolicyCommand.js +3 -9
- package/dist-es/commands/PromoteResourceShareCreatedFromPolicyCommand.js +3 -9
- package/dist-es/commands/RejectResourceShareInvitationCommand.js +3 -9
- package/dist-es/commands/ReplacePermissionAssociationsCommand.js +3 -9
- package/dist-es/commands/SetDefaultPermissionVersionCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateResourceShareCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1760 -0
- package/dist-types/RAMClient.d.ts +10 -1
- 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 +166 -0
- package/dist-types/ts3.4/RAMClient.d.ts +4 -0
- 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 +171 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -1696
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -308
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -413
|
@@ -1,1696 +0,0 @@
|
|
|
1
|
-
import { 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, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { IdempotentParameterMismatchException, InvalidClientTokenException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterException, InvalidPolicyException, InvalidResourceTypeException, InvalidStateTransitionException, MalformedArnException, MalformedPolicyTemplateException, MissingRequiredParameterException, OperationNotPermittedException, PermissionAlreadyExistsException, PermissionLimitExceededException, PermissionVersionsLimitExceededException, ResourceArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationExpiredException, ResourceShareLimitExceededException, ServerInternalException, ServiceUnavailableException, TagLimitExceededException, TagPolicyViolationException, ThrottlingException, UnknownResourceException, UnmatchedPolicyPermissionException, } from "../models/models_0";
|
|
5
|
-
import { RAMServiceException as __BaseException } from "../models/RAMServiceException";
|
|
6
|
-
export const se_AcceptResourceShareInvitationCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/acceptresourceshareinvitation");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
clientToken: [],
|
|
15
|
-
resourceShareInvitationArn: [],
|
|
16
|
-
}));
|
|
17
|
-
b.m("POST").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_AssociateResourceShareCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = {
|
|
23
|
-
"content-type": "application/json",
|
|
24
|
-
};
|
|
25
|
-
b.bp("/associateresourceshare");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(take(input, {
|
|
28
|
-
clientToken: [],
|
|
29
|
-
principals: (_) => _json(_),
|
|
30
|
-
resourceArns: (_) => _json(_),
|
|
31
|
-
resourceShareArn: [],
|
|
32
|
-
sources: (_) => _json(_),
|
|
33
|
-
}));
|
|
34
|
-
b.m("POST").h(headers).b(body);
|
|
35
|
-
return b.build();
|
|
36
|
-
};
|
|
37
|
-
export const se_AssociateResourceSharePermissionCommand = async (input, context) => {
|
|
38
|
-
const b = rb(input, context);
|
|
39
|
-
const headers = {
|
|
40
|
-
"content-type": "application/json",
|
|
41
|
-
};
|
|
42
|
-
b.bp("/associateresourcesharepermission");
|
|
43
|
-
let body;
|
|
44
|
-
body = JSON.stringify(take(input, {
|
|
45
|
-
clientToken: [],
|
|
46
|
-
permissionArn: [],
|
|
47
|
-
permissionVersion: [],
|
|
48
|
-
replace: [],
|
|
49
|
-
resourceShareArn: [],
|
|
50
|
-
}));
|
|
51
|
-
b.m("POST").h(headers).b(body);
|
|
52
|
-
return b.build();
|
|
53
|
-
};
|
|
54
|
-
export const se_CreatePermissionCommand = async (input, context) => {
|
|
55
|
-
const b = rb(input, context);
|
|
56
|
-
const headers = {
|
|
57
|
-
"content-type": "application/json",
|
|
58
|
-
};
|
|
59
|
-
b.bp("/createpermission");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify(take(input, {
|
|
62
|
-
clientToken: [],
|
|
63
|
-
name: [],
|
|
64
|
-
policyTemplate: [],
|
|
65
|
-
resourceType: [],
|
|
66
|
-
tags: (_) => _json(_),
|
|
67
|
-
}));
|
|
68
|
-
b.m("POST").h(headers).b(body);
|
|
69
|
-
return b.build();
|
|
70
|
-
};
|
|
71
|
-
export const se_CreatePermissionVersionCommand = async (input, context) => {
|
|
72
|
-
const b = rb(input, context);
|
|
73
|
-
const headers = {
|
|
74
|
-
"content-type": "application/json",
|
|
75
|
-
};
|
|
76
|
-
b.bp("/createpermissionversion");
|
|
77
|
-
let body;
|
|
78
|
-
body = JSON.stringify(take(input, {
|
|
79
|
-
clientToken: [],
|
|
80
|
-
permissionArn: [],
|
|
81
|
-
policyTemplate: [],
|
|
82
|
-
}));
|
|
83
|
-
b.m("POST").h(headers).b(body);
|
|
84
|
-
return b.build();
|
|
85
|
-
};
|
|
86
|
-
export const se_CreateResourceShareCommand = async (input, context) => {
|
|
87
|
-
const b = rb(input, context);
|
|
88
|
-
const headers = {
|
|
89
|
-
"content-type": "application/json",
|
|
90
|
-
};
|
|
91
|
-
b.bp("/createresourceshare");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(take(input, {
|
|
94
|
-
allowExternalPrincipals: [],
|
|
95
|
-
clientToken: [],
|
|
96
|
-
name: [],
|
|
97
|
-
permissionArns: (_) => _json(_),
|
|
98
|
-
principals: (_) => _json(_),
|
|
99
|
-
resourceArns: (_) => _json(_),
|
|
100
|
-
sources: (_) => _json(_),
|
|
101
|
-
tags: (_) => _json(_),
|
|
102
|
-
}));
|
|
103
|
-
b.m("POST").h(headers).b(body);
|
|
104
|
-
return b.build();
|
|
105
|
-
};
|
|
106
|
-
export const se_DeletePermissionCommand = async (input, context) => {
|
|
107
|
-
const b = rb(input, context);
|
|
108
|
-
const headers = {};
|
|
109
|
-
b.bp("/deletepermission");
|
|
110
|
-
const query = map({
|
|
111
|
-
[_pA]: [, __expectNonNull(input[_pA], `permissionArn`)],
|
|
112
|
-
[_cT]: [, input[_cT]],
|
|
113
|
-
});
|
|
114
|
-
let body;
|
|
115
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
116
|
-
return b.build();
|
|
117
|
-
};
|
|
118
|
-
export const se_DeletePermissionVersionCommand = async (input, context) => {
|
|
119
|
-
const b = rb(input, context);
|
|
120
|
-
const headers = {};
|
|
121
|
-
b.bp("/deletepermissionversion");
|
|
122
|
-
const query = map({
|
|
123
|
-
[_pA]: [, __expectNonNull(input[_pA], `permissionArn`)],
|
|
124
|
-
[_pV]: [__expectNonNull(input.permissionVersion, `permissionVersion`) != null, () => input[_pV].toString()],
|
|
125
|
-
[_cT]: [, input[_cT]],
|
|
126
|
-
});
|
|
127
|
-
let body;
|
|
128
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
129
|
-
return b.build();
|
|
130
|
-
};
|
|
131
|
-
export const se_DeleteResourceShareCommand = async (input, context) => {
|
|
132
|
-
const b = rb(input, context);
|
|
133
|
-
const headers = {};
|
|
134
|
-
b.bp("/deleteresourceshare");
|
|
135
|
-
const query = map({
|
|
136
|
-
[_rSA]: [, __expectNonNull(input[_rSA], `resourceShareArn`)],
|
|
137
|
-
[_cT]: [, input[_cT]],
|
|
138
|
-
});
|
|
139
|
-
let body;
|
|
140
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
141
|
-
return b.build();
|
|
142
|
-
};
|
|
143
|
-
export const se_DisassociateResourceShareCommand = async (input, context) => {
|
|
144
|
-
const b = rb(input, context);
|
|
145
|
-
const headers = {
|
|
146
|
-
"content-type": "application/json",
|
|
147
|
-
};
|
|
148
|
-
b.bp("/disassociateresourceshare");
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify(take(input, {
|
|
151
|
-
clientToken: [],
|
|
152
|
-
principals: (_) => _json(_),
|
|
153
|
-
resourceArns: (_) => _json(_),
|
|
154
|
-
resourceShareArn: [],
|
|
155
|
-
sources: (_) => _json(_),
|
|
156
|
-
}));
|
|
157
|
-
b.m("POST").h(headers).b(body);
|
|
158
|
-
return b.build();
|
|
159
|
-
};
|
|
160
|
-
export const se_DisassociateResourceSharePermissionCommand = async (input, context) => {
|
|
161
|
-
const b = rb(input, context);
|
|
162
|
-
const headers = {
|
|
163
|
-
"content-type": "application/json",
|
|
164
|
-
};
|
|
165
|
-
b.bp("/disassociateresourcesharepermission");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify(take(input, {
|
|
168
|
-
clientToken: [],
|
|
169
|
-
permissionArn: [],
|
|
170
|
-
resourceShareArn: [],
|
|
171
|
-
}));
|
|
172
|
-
b.m("POST").h(headers).b(body);
|
|
173
|
-
return b.build();
|
|
174
|
-
};
|
|
175
|
-
export const se_EnableSharingWithAwsOrganizationCommand = async (input, context) => {
|
|
176
|
-
const b = rb(input, context);
|
|
177
|
-
const headers = {};
|
|
178
|
-
b.bp("/enablesharingwithawsorganization");
|
|
179
|
-
let body;
|
|
180
|
-
b.m("POST").h(headers).b(body);
|
|
181
|
-
return b.build();
|
|
182
|
-
};
|
|
183
|
-
export const se_GetPermissionCommand = async (input, context) => {
|
|
184
|
-
const b = rb(input, context);
|
|
185
|
-
const headers = {
|
|
186
|
-
"content-type": "application/json",
|
|
187
|
-
};
|
|
188
|
-
b.bp("/getpermission");
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify(take(input, {
|
|
191
|
-
permissionArn: [],
|
|
192
|
-
permissionVersion: [],
|
|
193
|
-
}));
|
|
194
|
-
b.m("POST").h(headers).b(body);
|
|
195
|
-
return b.build();
|
|
196
|
-
};
|
|
197
|
-
export const se_GetResourcePoliciesCommand = async (input, context) => {
|
|
198
|
-
const b = rb(input, context);
|
|
199
|
-
const headers = {
|
|
200
|
-
"content-type": "application/json",
|
|
201
|
-
};
|
|
202
|
-
b.bp("/getresourcepolicies");
|
|
203
|
-
let body;
|
|
204
|
-
body = JSON.stringify(take(input, {
|
|
205
|
-
maxResults: [],
|
|
206
|
-
nextToken: [],
|
|
207
|
-
principal: [],
|
|
208
|
-
resourceArns: (_) => _json(_),
|
|
209
|
-
}));
|
|
210
|
-
b.m("POST").h(headers).b(body);
|
|
211
|
-
return b.build();
|
|
212
|
-
};
|
|
213
|
-
export const se_GetResourceShareAssociationsCommand = async (input, context) => {
|
|
214
|
-
const b = rb(input, context);
|
|
215
|
-
const headers = {
|
|
216
|
-
"content-type": "application/json",
|
|
217
|
-
};
|
|
218
|
-
b.bp("/getresourceshareassociations");
|
|
219
|
-
let body;
|
|
220
|
-
body = JSON.stringify(take(input, {
|
|
221
|
-
associationStatus: [],
|
|
222
|
-
associationType: [],
|
|
223
|
-
maxResults: [],
|
|
224
|
-
nextToken: [],
|
|
225
|
-
principal: [],
|
|
226
|
-
resourceArn: [],
|
|
227
|
-
resourceShareArns: (_) => _json(_),
|
|
228
|
-
}));
|
|
229
|
-
b.m("POST").h(headers).b(body);
|
|
230
|
-
return b.build();
|
|
231
|
-
};
|
|
232
|
-
export const se_GetResourceShareInvitationsCommand = async (input, context) => {
|
|
233
|
-
const b = rb(input, context);
|
|
234
|
-
const headers = {
|
|
235
|
-
"content-type": "application/json",
|
|
236
|
-
};
|
|
237
|
-
b.bp("/getresourceshareinvitations");
|
|
238
|
-
let body;
|
|
239
|
-
body = JSON.stringify(take(input, {
|
|
240
|
-
maxResults: [],
|
|
241
|
-
nextToken: [],
|
|
242
|
-
resourceShareArns: (_) => _json(_),
|
|
243
|
-
resourceShareInvitationArns: (_) => _json(_),
|
|
244
|
-
}));
|
|
245
|
-
b.m("POST").h(headers).b(body);
|
|
246
|
-
return b.build();
|
|
247
|
-
};
|
|
248
|
-
export const se_GetResourceSharesCommand = async (input, context) => {
|
|
249
|
-
const b = rb(input, context);
|
|
250
|
-
const headers = {
|
|
251
|
-
"content-type": "application/json",
|
|
252
|
-
};
|
|
253
|
-
b.bp("/getresourceshares");
|
|
254
|
-
let body;
|
|
255
|
-
body = JSON.stringify(take(input, {
|
|
256
|
-
maxResults: [],
|
|
257
|
-
name: [],
|
|
258
|
-
nextToken: [],
|
|
259
|
-
permissionArn: [],
|
|
260
|
-
permissionVersion: [],
|
|
261
|
-
resourceOwner: [],
|
|
262
|
-
resourceShareArns: (_) => _json(_),
|
|
263
|
-
resourceShareStatus: [],
|
|
264
|
-
tagFilters: (_) => _json(_),
|
|
265
|
-
}));
|
|
266
|
-
b.m("POST").h(headers).b(body);
|
|
267
|
-
return b.build();
|
|
268
|
-
};
|
|
269
|
-
export const se_ListPendingInvitationResourcesCommand = async (input, context) => {
|
|
270
|
-
const b = rb(input, context);
|
|
271
|
-
const headers = {
|
|
272
|
-
"content-type": "application/json",
|
|
273
|
-
};
|
|
274
|
-
b.bp("/listpendinginvitationresources");
|
|
275
|
-
let body;
|
|
276
|
-
body = JSON.stringify(take(input, {
|
|
277
|
-
maxResults: [],
|
|
278
|
-
nextToken: [],
|
|
279
|
-
resourceRegionScope: [],
|
|
280
|
-
resourceShareInvitationArn: [],
|
|
281
|
-
}));
|
|
282
|
-
b.m("POST").h(headers).b(body);
|
|
283
|
-
return b.build();
|
|
284
|
-
};
|
|
285
|
-
export const se_ListPermissionAssociationsCommand = async (input, context) => {
|
|
286
|
-
const b = rb(input, context);
|
|
287
|
-
const headers = {
|
|
288
|
-
"content-type": "application/json",
|
|
289
|
-
};
|
|
290
|
-
b.bp("/listpermissionassociations");
|
|
291
|
-
let body;
|
|
292
|
-
body = JSON.stringify(take(input, {
|
|
293
|
-
associationStatus: [],
|
|
294
|
-
defaultVersion: [],
|
|
295
|
-
featureSet: [],
|
|
296
|
-
maxResults: [],
|
|
297
|
-
nextToken: [],
|
|
298
|
-
permissionArn: [],
|
|
299
|
-
permissionVersion: [],
|
|
300
|
-
resourceType: [],
|
|
301
|
-
}));
|
|
302
|
-
b.m("POST").h(headers).b(body);
|
|
303
|
-
return b.build();
|
|
304
|
-
};
|
|
305
|
-
export const se_ListPermissionsCommand = async (input, context) => {
|
|
306
|
-
const b = rb(input, context);
|
|
307
|
-
const headers = {
|
|
308
|
-
"content-type": "application/json",
|
|
309
|
-
};
|
|
310
|
-
b.bp("/listpermissions");
|
|
311
|
-
let body;
|
|
312
|
-
body = JSON.stringify(take(input, {
|
|
313
|
-
maxResults: [],
|
|
314
|
-
nextToken: [],
|
|
315
|
-
permissionType: [],
|
|
316
|
-
resourceType: [],
|
|
317
|
-
}));
|
|
318
|
-
b.m("POST").h(headers).b(body);
|
|
319
|
-
return b.build();
|
|
320
|
-
};
|
|
321
|
-
export const se_ListPermissionVersionsCommand = async (input, context) => {
|
|
322
|
-
const b = rb(input, context);
|
|
323
|
-
const headers = {
|
|
324
|
-
"content-type": "application/json",
|
|
325
|
-
};
|
|
326
|
-
b.bp("/listpermissionversions");
|
|
327
|
-
let body;
|
|
328
|
-
body = JSON.stringify(take(input, {
|
|
329
|
-
maxResults: [],
|
|
330
|
-
nextToken: [],
|
|
331
|
-
permissionArn: [],
|
|
332
|
-
}));
|
|
333
|
-
b.m("POST").h(headers).b(body);
|
|
334
|
-
return b.build();
|
|
335
|
-
};
|
|
336
|
-
export const se_ListPrincipalsCommand = async (input, context) => {
|
|
337
|
-
const b = rb(input, context);
|
|
338
|
-
const headers = {
|
|
339
|
-
"content-type": "application/json",
|
|
340
|
-
};
|
|
341
|
-
b.bp("/listprincipals");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify(take(input, {
|
|
344
|
-
maxResults: [],
|
|
345
|
-
nextToken: [],
|
|
346
|
-
principals: (_) => _json(_),
|
|
347
|
-
resourceArn: [],
|
|
348
|
-
resourceOwner: [],
|
|
349
|
-
resourceShareArns: (_) => _json(_),
|
|
350
|
-
resourceType: [],
|
|
351
|
-
}));
|
|
352
|
-
b.m("POST").h(headers).b(body);
|
|
353
|
-
return b.build();
|
|
354
|
-
};
|
|
355
|
-
export const se_ListReplacePermissionAssociationsWorkCommand = async (input, context) => {
|
|
356
|
-
const b = rb(input, context);
|
|
357
|
-
const headers = {
|
|
358
|
-
"content-type": "application/json",
|
|
359
|
-
};
|
|
360
|
-
b.bp("/listreplacepermissionassociationswork");
|
|
361
|
-
let body;
|
|
362
|
-
body = JSON.stringify(take(input, {
|
|
363
|
-
maxResults: [],
|
|
364
|
-
nextToken: [],
|
|
365
|
-
status: [],
|
|
366
|
-
workIds: (_) => _json(_),
|
|
367
|
-
}));
|
|
368
|
-
b.m("POST").h(headers).b(body);
|
|
369
|
-
return b.build();
|
|
370
|
-
};
|
|
371
|
-
export const se_ListResourcesCommand = async (input, context) => {
|
|
372
|
-
const b = rb(input, context);
|
|
373
|
-
const headers = {
|
|
374
|
-
"content-type": "application/json",
|
|
375
|
-
};
|
|
376
|
-
b.bp("/listresources");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify(take(input, {
|
|
379
|
-
maxResults: [],
|
|
380
|
-
nextToken: [],
|
|
381
|
-
principal: [],
|
|
382
|
-
resourceArns: (_) => _json(_),
|
|
383
|
-
resourceOwner: [],
|
|
384
|
-
resourceRegionScope: [],
|
|
385
|
-
resourceShareArns: (_) => _json(_),
|
|
386
|
-
resourceType: [],
|
|
387
|
-
}));
|
|
388
|
-
b.m("POST").h(headers).b(body);
|
|
389
|
-
return b.build();
|
|
390
|
-
};
|
|
391
|
-
export const se_ListResourceSharePermissionsCommand = async (input, context) => {
|
|
392
|
-
const b = rb(input, context);
|
|
393
|
-
const headers = {
|
|
394
|
-
"content-type": "application/json",
|
|
395
|
-
};
|
|
396
|
-
b.bp("/listresourcesharepermissions");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify(take(input, {
|
|
399
|
-
maxResults: [],
|
|
400
|
-
nextToken: [],
|
|
401
|
-
resourceShareArn: [],
|
|
402
|
-
}));
|
|
403
|
-
b.m("POST").h(headers).b(body);
|
|
404
|
-
return b.build();
|
|
405
|
-
};
|
|
406
|
-
export const se_ListResourceTypesCommand = async (input, context) => {
|
|
407
|
-
const b = rb(input, context);
|
|
408
|
-
const headers = {
|
|
409
|
-
"content-type": "application/json",
|
|
410
|
-
};
|
|
411
|
-
b.bp("/listresourcetypes");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify(take(input, {
|
|
414
|
-
maxResults: [],
|
|
415
|
-
nextToken: [],
|
|
416
|
-
resourceRegionScope: [],
|
|
417
|
-
}));
|
|
418
|
-
b.m("POST").h(headers).b(body);
|
|
419
|
-
return b.build();
|
|
420
|
-
};
|
|
421
|
-
export const se_PromotePermissionCreatedFromPolicyCommand = async (input, context) => {
|
|
422
|
-
const b = rb(input, context);
|
|
423
|
-
const headers = {
|
|
424
|
-
"content-type": "application/json",
|
|
425
|
-
};
|
|
426
|
-
b.bp("/promotepermissioncreatedfrompolicy");
|
|
427
|
-
let body;
|
|
428
|
-
body = JSON.stringify(take(input, {
|
|
429
|
-
clientToken: [],
|
|
430
|
-
name: [],
|
|
431
|
-
permissionArn: [],
|
|
432
|
-
}));
|
|
433
|
-
b.m("POST").h(headers).b(body);
|
|
434
|
-
return b.build();
|
|
435
|
-
};
|
|
436
|
-
export const se_PromoteResourceShareCreatedFromPolicyCommand = async (input, context) => {
|
|
437
|
-
const b = rb(input, context);
|
|
438
|
-
const headers = {};
|
|
439
|
-
b.bp("/promoteresourcesharecreatedfrompolicy");
|
|
440
|
-
const query = map({
|
|
441
|
-
[_rSA]: [, __expectNonNull(input[_rSA], `resourceShareArn`)],
|
|
442
|
-
});
|
|
443
|
-
let body;
|
|
444
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
445
|
-
return b.build();
|
|
446
|
-
};
|
|
447
|
-
export const se_RejectResourceShareInvitationCommand = async (input, context) => {
|
|
448
|
-
const b = rb(input, context);
|
|
449
|
-
const headers = {
|
|
450
|
-
"content-type": "application/json",
|
|
451
|
-
};
|
|
452
|
-
b.bp("/rejectresourceshareinvitation");
|
|
453
|
-
let body;
|
|
454
|
-
body = JSON.stringify(take(input, {
|
|
455
|
-
clientToken: [],
|
|
456
|
-
resourceShareInvitationArn: [],
|
|
457
|
-
}));
|
|
458
|
-
b.m("POST").h(headers).b(body);
|
|
459
|
-
return b.build();
|
|
460
|
-
};
|
|
461
|
-
export const se_ReplacePermissionAssociationsCommand = async (input, context) => {
|
|
462
|
-
const b = rb(input, context);
|
|
463
|
-
const headers = {
|
|
464
|
-
"content-type": "application/json",
|
|
465
|
-
};
|
|
466
|
-
b.bp("/replacepermissionassociations");
|
|
467
|
-
let body;
|
|
468
|
-
body = JSON.stringify(take(input, {
|
|
469
|
-
clientToken: [],
|
|
470
|
-
fromPermissionArn: [],
|
|
471
|
-
fromPermissionVersion: [],
|
|
472
|
-
toPermissionArn: [],
|
|
473
|
-
}));
|
|
474
|
-
b.m("POST").h(headers).b(body);
|
|
475
|
-
return b.build();
|
|
476
|
-
};
|
|
477
|
-
export const se_SetDefaultPermissionVersionCommand = async (input, context) => {
|
|
478
|
-
const b = rb(input, context);
|
|
479
|
-
const headers = {
|
|
480
|
-
"content-type": "application/json",
|
|
481
|
-
};
|
|
482
|
-
b.bp("/setdefaultpermissionversion");
|
|
483
|
-
let body;
|
|
484
|
-
body = JSON.stringify(take(input, {
|
|
485
|
-
clientToken: [],
|
|
486
|
-
permissionArn: [],
|
|
487
|
-
permissionVersion: [],
|
|
488
|
-
}));
|
|
489
|
-
b.m("POST").h(headers).b(body);
|
|
490
|
-
return b.build();
|
|
491
|
-
};
|
|
492
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
493
|
-
const b = rb(input, context);
|
|
494
|
-
const headers = {
|
|
495
|
-
"content-type": "application/json",
|
|
496
|
-
};
|
|
497
|
-
b.bp("/tagresource");
|
|
498
|
-
let body;
|
|
499
|
-
body = JSON.stringify(take(input, {
|
|
500
|
-
resourceArn: [],
|
|
501
|
-
resourceShareArn: [],
|
|
502
|
-
tags: (_) => _json(_),
|
|
503
|
-
}));
|
|
504
|
-
b.m("POST").h(headers).b(body);
|
|
505
|
-
return b.build();
|
|
506
|
-
};
|
|
507
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
508
|
-
const b = rb(input, context);
|
|
509
|
-
const headers = {
|
|
510
|
-
"content-type": "application/json",
|
|
511
|
-
};
|
|
512
|
-
b.bp("/untagresource");
|
|
513
|
-
let body;
|
|
514
|
-
body = JSON.stringify(take(input, {
|
|
515
|
-
resourceArn: [],
|
|
516
|
-
resourceShareArn: [],
|
|
517
|
-
tagKeys: (_) => _json(_),
|
|
518
|
-
}));
|
|
519
|
-
b.m("POST").h(headers).b(body);
|
|
520
|
-
return b.build();
|
|
521
|
-
};
|
|
522
|
-
export const se_UpdateResourceShareCommand = async (input, context) => {
|
|
523
|
-
const b = rb(input, context);
|
|
524
|
-
const headers = {
|
|
525
|
-
"content-type": "application/json",
|
|
526
|
-
};
|
|
527
|
-
b.bp("/updateresourceshare");
|
|
528
|
-
let body;
|
|
529
|
-
body = JSON.stringify(take(input, {
|
|
530
|
-
allowExternalPrincipals: [],
|
|
531
|
-
clientToken: [],
|
|
532
|
-
name: [],
|
|
533
|
-
resourceShareArn: [],
|
|
534
|
-
}));
|
|
535
|
-
b.m("POST").h(headers).b(body);
|
|
536
|
-
return b.build();
|
|
537
|
-
};
|
|
538
|
-
export const de_AcceptResourceShareInvitationCommand = async (output, context) => {
|
|
539
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
540
|
-
return de_CommandError(output, context);
|
|
541
|
-
}
|
|
542
|
-
const contents = map({
|
|
543
|
-
$metadata: deserializeMetadata(output),
|
|
544
|
-
});
|
|
545
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
546
|
-
const doc = take(data, {
|
|
547
|
-
clientToken: __expectString,
|
|
548
|
-
resourceShareInvitation: (_) => de_ResourceShareInvitation(_, context),
|
|
549
|
-
});
|
|
550
|
-
Object.assign(contents, doc);
|
|
551
|
-
return contents;
|
|
552
|
-
};
|
|
553
|
-
export const de_AssociateResourceShareCommand = async (output, context) => {
|
|
554
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
555
|
-
return de_CommandError(output, context);
|
|
556
|
-
}
|
|
557
|
-
const contents = map({
|
|
558
|
-
$metadata: deserializeMetadata(output),
|
|
559
|
-
});
|
|
560
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
561
|
-
const doc = take(data, {
|
|
562
|
-
clientToken: __expectString,
|
|
563
|
-
resourceShareAssociations: (_) => de_ResourceShareAssociationList(_, context),
|
|
564
|
-
});
|
|
565
|
-
Object.assign(contents, doc);
|
|
566
|
-
return contents;
|
|
567
|
-
};
|
|
568
|
-
export const de_AssociateResourceSharePermissionCommand = async (output, context) => {
|
|
569
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
570
|
-
return de_CommandError(output, context);
|
|
571
|
-
}
|
|
572
|
-
const contents = map({
|
|
573
|
-
$metadata: deserializeMetadata(output),
|
|
574
|
-
});
|
|
575
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
576
|
-
const doc = take(data, {
|
|
577
|
-
clientToken: __expectString,
|
|
578
|
-
returnValue: __expectBoolean,
|
|
579
|
-
});
|
|
580
|
-
Object.assign(contents, doc);
|
|
581
|
-
return contents;
|
|
582
|
-
};
|
|
583
|
-
export const de_CreatePermissionCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
585
|
-
return de_CommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const contents = map({
|
|
588
|
-
$metadata: deserializeMetadata(output),
|
|
589
|
-
});
|
|
590
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
591
|
-
const doc = take(data, {
|
|
592
|
-
clientToken: __expectString,
|
|
593
|
-
permission: (_) => de_ResourceSharePermissionSummary(_, context),
|
|
594
|
-
});
|
|
595
|
-
Object.assign(contents, doc);
|
|
596
|
-
return contents;
|
|
597
|
-
};
|
|
598
|
-
export const de_CreatePermissionVersionCommand = async (output, context) => {
|
|
599
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
-
return de_CommandError(output, context);
|
|
601
|
-
}
|
|
602
|
-
const contents = map({
|
|
603
|
-
$metadata: deserializeMetadata(output),
|
|
604
|
-
});
|
|
605
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
606
|
-
const doc = take(data, {
|
|
607
|
-
clientToken: __expectString,
|
|
608
|
-
permission: (_) => de_ResourceSharePermissionDetail(_, context),
|
|
609
|
-
});
|
|
610
|
-
Object.assign(contents, doc);
|
|
611
|
-
return contents;
|
|
612
|
-
};
|
|
613
|
-
export const de_CreateResourceShareCommand = async (output, context) => {
|
|
614
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
615
|
-
return de_CommandError(output, context);
|
|
616
|
-
}
|
|
617
|
-
const contents = map({
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
619
|
-
});
|
|
620
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
621
|
-
const doc = take(data, {
|
|
622
|
-
clientToken: __expectString,
|
|
623
|
-
resourceShare: (_) => de_ResourceShare(_, context),
|
|
624
|
-
});
|
|
625
|
-
Object.assign(contents, doc);
|
|
626
|
-
return contents;
|
|
627
|
-
};
|
|
628
|
-
export const de_DeletePermissionCommand = async (output, context) => {
|
|
629
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
-
return de_CommandError(output, context);
|
|
631
|
-
}
|
|
632
|
-
const contents = map({
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
});
|
|
635
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
636
|
-
const doc = take(data, {
|
|
637
|
-
clientToken: __expectString,
|
|
638
|
-
permissionStatus: __expectString,
|
|
639
|
-
returnValue: __expectBoolean,
|
|
640
|
-
});
|
|
641
|
-
Object.assign(contents, doc);
|
|
642
|
-
return contents;
|
|
643
|
-
};
|
|
644
|
-
export const de_DeletePermissionVersionCommand = async (output, context) => {
|
|
645
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
646
|
-
return de_CommandError(output, context);
|
|
647
|
-
}
|
|
648
|
-
const contents = map({
|
|
649
|
-
$metadata: deserializeMetadata(output),
|
|
650
|
-
});
|
|
651
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
652
|
-
const doc = take(data, {
|
|
653
|
-
clientToken: __expectString,
|
|
654
|
-
permissionStatus: __expectString,
|
|
655
|
-
returnValue: __expectBoolean,
|
|
656
|
-
});
|
|
657
|
-
Object.assign(contents, doc);
|
|
658
|
-
return contents;
|
|
659
|
-
};
|
|
660
|
-
export const de_DeleteResourceShareCommand = async (output, context) => {
|
|
661
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
-
return de_CommandError(output, context);
|
|
663
|
-
}
|
|
664
|
-
const contents = map({
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
});
|
|
667
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
668
|
-
const doc = take(data, {
|
|
669
|
-
clientToken: __expectString,
|
|
670
|
-
returnValue: __expectBoolean,
|
|
671
|
-
});
|
|
672
|
-
Object.assign(contents, doc);
|
|
673
|
-
return contents;
|
|
674
|
-
};
|
|
675
|
-
export const de_DisassociateResourceShareCommand = async (output, context) => {
|
|
676
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
677
|
-
return de_CommandError(output, context);
|
|
678
|
-
}
|
|
679
|
-
const contents = map({
|
|
680
|
-
$metadata: deserializeMetadata(output),
|
|
681
|
-
});
|
|
682
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
683
|
-
const doc = take(data, {
|
|
684
|
-
clientToken: __expectString,
|
|
685
|
-
resourceShareAssociations: (_) => de_ResourceShareAssociationList(_, context),
|
|
686
|
-
});
|
|
687
|
-
Object.assign(contents, doc);
|
|
688
|
-
return contents;
|
|
689
|
-
};
|
|
690
|
-
export const de_DisassociateResourceSharePermissionCommand = async (output, context) => {
|
|
691
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
-
return de_CommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const contents = map({
|
|
695
|
-
$metadata: deserializeMetadata(output),
|
|
696
|
-
});
|
|
697
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
698
|
-
const doc = take(data, {
|
|
699
|
-
clientToken: __expectString,
|
|
700
|
-
returnValue: __expectBoolean,
|
|
701
|
-
});
|
|
702
|
-
Object.assign(contents, doc);
|
|
703
|
-
return contents;
|
|
704
|
-
};
|
|
705
|
-
export const de_EnableSharingWithAwsOrganizationCommand = async (output, context) => {
|
|
706
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
-
return de_CommandError(output, context);
|
|
708
|
-
}
|
|
709
|
-
const contents = map({
|
|
710
|
-
$metadata: deserializeMetadata(output),
|
|
711
|
-
});
|
|
712
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
713
|
-
const doc = take(data, {
|
|
714
|
-
returnValue: __expectBoolean,
|
|
715
|
-
});
|
|
716
|
-
Object.assign(contents, doc);
|
|
717
|
-
return contents;
|
|
718
|
-
};
|
|
719
|
-
export const de_GetPermissionCommand = async (output, context) => {
|
|
720
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
|
-
return de_CommandError(output, context);
|
|
722
|
-
}
|
|
723
|
-
const contents = map({
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
});
|
|
726
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
727
|
-
const doc = take(data, {
|
|
728
|
-
permission: (_) => de_ResourceSharePermissionDetail(_, context),
|
|
729
|
-
});
|
|
730
|
-
Object.assign(contents, doc);
|
|
731
|
-
return contents;
|
|
732
|
-
};
|
|
733
|
-
export const de_GetResourcePoliciesCommand = async (output, context) => {
|
|
734
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
|
-
return de_CommandError(output, context);
|
|
736
|
-
}
|
|
737
|
-
const contents = map({
|
|
738
|
-
$metadata: deserializeMetadata(output),
|
|
739
|
-
});
|
|
740
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
741
|
-
const doc = take(data, {
|
|
742
|
-
nextToken: __expectString,
|
|
743
|
-
policies: _json,
|
|
744
|
-
});
|
|
745
|
-
Object.assign(contents, doc);
|
|
746
|
-
return contents;
|
|
747
|
-
};
|
|
748
|
-
export const de_GetResourceShareAssociationsCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return de_CommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const contents = map({
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
});
|
|
755
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
756
|
-
const doc = take(data, {
|
|
757
|
-
nextToken: __expectString,
|
|
758
|
-
resourceShareAssociations: (_) => de_ResourceShareAssociationList(_, context),
|
|
759
|
-
});
|
|
760
|
-
Object.assign(contents, doc);
|
|
761
|
-
return contents;
|
|
762
|
-
};
|
|
763
|
-
export const de_GetResourceShareInvitationsCommand = async (output, context) => {
|
|
764
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
765
|
-
return de_CommandError(output, context);
|
|
766
|
-
}
|
|
767
|
-
const contents = map({
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
});
|
|
770
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
771
|
-
const doc = take(data, {
|
|
772
|
-
nextToken: __expectString,
|
|
773
|
-
resourceShareInvitations: (_) => de_ResourceShareInvitationList(_, context),
|
|
774
|
-
});
|
|
775
|
-
Object.assign(contents, doc);
|
|
776
|
-
return contents;
|
|
777
|
-
};
|
|
778
|
-
export const de_GetResourceSharesCommand = async (output, context) => {
|
|
779
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
-
return de_CommandError(output, context);
|
|
781
|
-
}
|
|
782
|
-
const contents = map({
|
|
783
|
-
$metadata: deserializeMetadata(output),
|
|
784
|
-
});
|
|
785
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
786
|
-
const doc = take(data, {
|
|
787
|
-
nextToken: __expectString,
|
|
788
|
-
resourceShares: (_) => de_ResourceShareList(_, context),
|
|
789
|
-
});
|
|
790
|
-
Object.assign(contents, doc);
|
|
791
|
-
return contents;
|
|
792
|
-
};
|
|
793
|
-
export const de_ListPendingInvitationResourcesCommand = async (output, context) => {
|
|
794
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
-
return de_CommandError(output, context);
|
|
796
|
-
}
|
|
797
|
-
const contents = map({
|
|
798
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
-
});
|
|
800
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
801
|
-
const doc = take(data, {
|
|
802
|
-
nextToken: __expectString,
|
|
803
|
-
resources: (_) => de_ResourceList(_, context),
|
|
804
|
-
});
|
|
805
|
-
Object.assign(contents, doc);
|
|
806
|
-
return contents;
|
|
807
|
-
};
|
|
808
|
-
export const de_ListPermissionAssociationsCommand = async (output, context) => {
|
|
809
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
810
|
-
return de_CommandError(output, context);
|
|
811
|
-
}
|
|
812
|
-
const contents = map({
|
|
813
|
-
$metadata: deserializeMetadata(output),
|
|
814
|
-
});
|
|
815
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
816
|
-
const doc = take(data, {
|
|
817
|
-
nextToken: __expectString,
|
|
818
|
-
permissions: (_) => de_AssociatedPermissionList(_, context),
|
|
819
|
-
});
|
|
820
|
-
Object.assign(contents, doc);
|
|
821
|
-
return contents;
|
|
822
|
-
};
|
|
823
|
-
export const de_ListPermissionsCommand = async (output, context) => {
|
|
824
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
825
|
-
return de_CommandError(output, context);
|
|
826
|
-
}
|
|
827
|
-
const contents = map({
|
|
828
|
-
$metadata: deserializeMetadata(output),
|
|
829
|
-
});
|
|
830
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
831
|
-
const doc = take(data, {
|
|
832
|
-
nextToken: __expectString,
|
|
833
|
-
permissions: (_) => de_ResourceSharePermissionList(_, context),
|
|
834
|
-
});
|
|
835
|
-
Object.assign(contents, doc);
|
|
836
|
-
return contents;
|
|
837
|
-
};
|
|
838
|
-
export const de_ListPermissionVersionsCommand = async (output, context) => {
|
|
839
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
840
|
-
return de_CommandError(output, context);
|
|
841
|
-
}
|
|
842
|
-
const contents = map({
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
});
|
|
845
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
846
|
-
const doc = take(data, {
|
|
847
|
-
nextToken: __expectString,
|
|
848
|
-
permissions: (_) => de_ResourceSharePermissionList(_, context),
|
|
849
|
-
});
|
|
850
|
-
Object.assign(contents, doc);
|
|
851
|
-
return contents;
|
|
852
|
-
};
|
|
853
|
-
export const de_ListPrincipalsCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_CommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = map({
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
});
|
|
860
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
861
|
-
const doc = take(data, {
|
|
862
|
-
nextToken: __expectString,
|
|
863
|
-
principals: (_) => de_PrincipalList(_, context),
|
|
864
|
-
});
|
|
865
|
-
Object.assign(contents, doc);
|
|
866
|
-
return contents;
|
|
867
|
-
};
|
|
868
|
-
export const de_ListReplacePermissionAssociationsWorkCommand = async (output, context) => {
|
|
869
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
870
|
-
return de_CommandError(output, context);
|
|
871
|
-
}
|
|
872
|
-
const contents = map({
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
});
|
|
875
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
876
|
-
const doc = take(data, {
|
|
877
|
-
nextToken: __expectString,
|
|
878
|
-
replacePermissionAssociationsWorks: (_) => de_ReplacePermissionAssociationsWorkList(_, context),
|
|
879
|
-
});
|
|
880
|
-
Object.assign(contents, doc);
|
|
881
|
-
return contents;
|
|
882
|
-
};
|
|
883
|
-
export const de_ListResourcesCommand = async (output, context) => {
|
|
884
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
885
|
-
return de_CommandError(output, context);
|
|
886
|
-
}
|
|
887
|
-
const contents = map({
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
});
|
|
890
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
891
|
-
const doc = take(data, {
|
|
892
|
-
nextToken: __expectString,
|
|
893
|
-
resources: (_) => de_ResourceList(_, context),
|
|
894
|
-
});
|
|
895
|
-
Object.assign(contents, doc);
|
|
896
|
-
return contents;
|
|
897
|
-
};
|
|
898
|
-
export const de_ListResourceSharePermissionsCommand = async (output, context) => {
|
|
899
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
900
|
-
return de_CommandError(output, context);
|
|
901
|
-
}
|
|
902
|
-
const contents = map({
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
});
|
|
905
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
906
|
-
const doc = take(data, {
|
|
907
|
-
nextToken: __expectString,
|
|
908
|
-
permissions: (_) => de_ResourceSharePermissionList(_, context),
|
|
909
|
-
});
|
|
910
|
-
Object.assign(contents, doc);
|
|
911
|
-
return contents;
|
|
912
|
-
};
|
|
913
|
-
export const de_ListResourceTypesCommand = async (output, context) => {
|
|
914
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
915
|
-
return de_CommandError(output, context);
|
|
916
|
-
}
|
|
917
|
-
const contents = map({
|
|
918
|
-
$metadata: deserializeMetadata(output),
|
|
919
|
-
});
|
|
920
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
921
|
-
const doc = take(data, {
|
|
922
|
-
nextToken: __expectString,
|
|
923
|
-
resourceTypes: _json,
|
|
924
|
-
});
|
|
925
|
-
Object.assign(contents, doc);
|
|
926
|
-
return contents;
|
|
927
|
-
};
|
|
928
|
-
export const de_PromotePermissionCreatedFromPolicyCommand = async (output, context) => {
|
|
929
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
930
|
-
return de_CommandError(output, context);
|
|
931
|
-
}
|
|
932
|
-
const contents = map({
|
|
933
|
-
$metadata: deserializeMetadata(output),
|
|
934
|
-
});
|
|
935
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
936
|
-
const doc = take(data, {
|
|
937
|
-
clientToken: __expectString,
|
|
938
|
-
permission: (_) => de_ResourceSharePermissionSummary(_, context),
|
|
939
|
-
});
|
|
940
|
-
Object.assign(contents, doc);
|
|
941
|
-
return contents;
|
|
942
|
-
};
|
|
943
|
-
export const de_PromoteResourceShareCreatedFromPolicyCommand = async (output, context) => {
|
|
944
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
945
|
-
return de_CommandError(output, context);
|
|
946
|
-
}
|
|
947
|
-
const contents = map({
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
});
|
|
950
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
951
|
-
const doc = take(data, {
|
|
952
|
-
returnValue: __expectBoolean,
|
|
953
|
-
});
|
|
954
|
-
Object.assign(contents, doc);
|
|
955
|
-
return contents;
|
|
956
|
-
};
|
|
957
|
-
export const de_RejectResourceShareInvitationCommand = async (output, context) => {
|
|
958
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
959
|
-
return de_CommandError(output, context);
|
|
960
|
-
}
|
|
961
|
-
const contents = map({
|
|
962
|
-
$metadata: deserializeMetadata(output),
|
|
963
|
-
});
|
|
964
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
965
|
-
const doc = take(data, {
|
|
966
|
-
clientToken: __expectString,
|
|
967
|
-
resourceShareInvitation: (_) => de_ResourceShareInvitation(_, context),
|
|
968
|
-
});
|
|
969
|
-
Object.assign(contents, doc);
|
|
970
|
-
return contents;
|
|
971
|
-
};
|
|
972
|
-
export const de_ReplacePermissionAssociationsCommand = async (output, context) => {
|
|
973
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
-
return de_CommandError(output, context);
|
|
975
|
-
}
|
|
976
|
-
const contents = map({
|
|
977
|
-
$metadata: deserializeMetadata(output),
|
|
978
|
-
});
|
|
979
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
980
|
-
const doc = take(data, {
|
|
981
|
-
clientToken: __expectString,
|
|
982
|
-
replacePermissionAssociationsWork: (_) => de_ReplacePermissionAssociationsWork(_, context),
|
|
983
|
-
});
|
|
984
|
-
Object.assign(contents, doc);
|
|
985
|
-
return contents;
|
|
986
|
-
};
|
|
987
|
-
export const de_SetDefaultPermissionVersionCommand = async (output, context) => {
|
|
988
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
989
|
-
return de_CommandError(output, context);
|
|
990
|
-
}
|
|
991
|
-
const contents = map({
|
|
992
|
-
$metadata: deserializeMetadata(output),
|
|
993
|
-
});
|
|
994
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
995
|
-
const doc = take(data, {
|
|
996
|
-
clientToken: __expectString,
|
|
997
|
-
returnValue: __expectBoolean,
|
|
998
|
-
});
|
|
999
|
-
Object.assign(contents, doc);
|
|
1000
|
-
return contents;
|
|
1001
|
-
};
|
|
1002
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1003
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1004
|
-
return de_CommandError(output, context);
|
|
1005
|
-
}
|
|
1006
|
-
const contents = map({
|
|
1007
|
-
$metadata: deserializeMetadata(output),
|
|
1008
|
-
});
|
|
1009
|
-
await collectBody(output.body, context);
|
|
1010
|
-
return contents;
|
|
1011
|
-
};
|
|
1012
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1013
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1014
|
-
return de_CommandError(output, context);
|
|
1015
|
-
}
|
|
1016
|
-
const contents = map({
|
|
1017
|
-
$metadata: deserializeMetadata(output),
|
|
1018
|
-
});
|
|
1019
|
-
await collectBody(output.body, context);
|
|
1020
|
-
return contents;
|
|
1021
|
-
};
|
|
1022
|
-
export const de_UpdateResourceShareCommand = async (output, context) => {
|
|
1023
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1024
|
-
return de_CommandError(output, context);
|
|
1025
|
-
}
|
|
1026
|
-
const contents = map({
|
|
1027
|
-
$metadata: deserializeMetadata(output),
|
|
1028
|
-
});
|
|
1029
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1030
|
-
const doc = take(data, {
|
|
1031
|
-
clientToken: __expectString,
|
|
1032
|
-
resourceShare: (_) => de_ResourceShare(_, context),
|
|
1033
|
-
});
|
|
1034
|
-
Object.assign(contents, doc);
|
|
1035
|
-
return contents;
|
|
1036
|
-
};
|
|
1037
|
-
const de_CommandError = async (output, context) => {
|
|
1038
|
-
const parsedOutput = {
|
|
1039
|
-
...output,
|
|
1040
|
-
body: await parseErrorBody(output.body, context),
|
|
1041
|
-
};
|
|
1042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
-
switch (errorCode) {
|
|
1044
|
-
case "IdempotentParameterMismatchException":
|
|
1045
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1046
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "InvalidClientTokenException":
|
|
1048
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1049
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "MalformedArnException":
|
|
1051
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1052
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "OperationNotPermittedException":
|
|
1054
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1055
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ResourceShareInvitationAlreadyAcceptedException":
|
|
1057
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
|
|
1058
|
-
throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ResourceShareInvitationAlreadyRejectedException":
|
|
1060
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
1061
|
-
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ResourceShareInvitationArnNotFoundException":
|
|
1063
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
1064
|
-
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ResourceShareInvitationExpiredException":
|
|
1066
|
-
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
1067
|
-
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ServerInternalException":
|
|
1069
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1070
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ServiceUnavailableException":
|
|
1072
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1073
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "InvalidParameterException":
|
|
1075
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1076
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "InvalidStateTransitionException":
|
|
1078
|
-
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1079
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "ResourceShareLimitExceededException":
|
|
1081
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
1082
|
-
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "ThrottlingException":
|
|
1084
|
-
case "com.amazonaws.ram#ThrottlingException":
|
|
1085
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "UnknownResourceException":
|
|
1087
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1088
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "InvalidPolicyException":
|
|
1090
|
-
case "com.amazonaws.ram#InvalidPolicyException":
|
|
1091
|
-
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "MalformedPolicyTemplateException":
|
|
1093
|
-
case "com.amazonaws.ram#MalformedPolicyTemplateException":
|
|
1094
|
-
throw await de_MalformedPolicyTemplateExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "PermissionAlreadyExistsException":
|
|
1096
|
-
case "com.amazonaws.ram#PermissionAlreadyExistsException":
|
|
1097
|
-
throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "PermissionLimitExceededException":
|
|
1099
|
-
case "com.amazonaws.ram#PermissionLimitExceededException":
|
|
1100
|
-
throw await de_PermissionLimitExceededExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "PermissionVersionsLimitExceededException":
|
|
1102
|
-
case "com.amazonaws.ram#PermissionVersionsLimitExceededException":
|
|
1103
|
-
throw await de_PermissionVersionsLimitExceededExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "TagLimitExceededException":
|
|
1105
|
-
case "com.amazonaws.ram#TagLimitExceededException":
|
|
1106
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "TagPolicyViolationException":
|
|
1108
|
-
case "com.amazonaws.ram#TagPolicyViolationException":
|
|
1109
|
-
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "InvalidNextTokenException":
|
|
1111
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1112
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ResourceArnNotFoundException":
|
|
1114
|
-
case "com.amazonaws.ram#ResourceArnNotFoundException":
|
|
1115
|
-
throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "InvalidMaxResultsException":
|
|
1117
|
-
case "com.amazonaws.ram#InvalidMaxResultsException":
|
|
1118
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "MissingRequiredParameterException":
|
|
1120
|
-
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
1121
|
-
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "InvalidResourceTypeException":
|
|
1123
|
-
case "com.amazonaws.ram#InvalidResourceTypeException":
|
|
1124
|
-
throw await de_InvalidResourceTypeExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "UnmatchedPolicyPermissionException":
|
|
1126
|
-
case "com.amazonaws.ram#UnmatchedPolicyPermissionException":
|
|
1127
|
-
throw await de_UnmatchedPolicyPermissionExceptionRes(parsedOutput, context);
|
|
1128
|
-
default:
|
|
1129
|
-
const parsedBody = parsedOutput.body;
|
|
1130
|
-
return throwDefaultError({
|
|
1131
|
-
output,
|
|
1132
|
-
parsedBody,
|
|
1133
|
-
errorCode,
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
|
-
};
|
|
1137
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1138
|
-
const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
|
|
1139
|
-
const contents = map({});
|
|
1140
|
-
const data = parsedOutput.body;
|
|
1141
|
-
const doc = take(data, {
|
|
1142
|
-
message: __expectString,
|
|
1143
|
-
});
|
|
1144
|
-
Object.assign(contents, doc);
|
|
1145
|
-
const exception = new IdempotentParameterMismatchException({
|
|
1146
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1147
|
-
...contents,
|
|
1148
|
-
});
|
|
1149
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1150
|
-
};
|
|
1151
|
-
const de_InvalidClientTokenExceptionRes = async (parsedOutput, context) => {
|
|
1152
|
-
const contents = map({});
|
|
1153
|
-
const data = parsedOutput.body;
|
|
1154
|
-
const doc = take(data, {
|
|
1155
|
-
message: __expectString,
|
|
1156
|
-
});
|
|
1157
|
-
Object.assign(contents, doc);
|
|
1158
|
-
const exception = new InvalidClientTokenException({
|
|
1159
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1160
|
-
...contents,
|
|
1161
|
-
});
|
|
1162
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1163
|
-
};
|
|
1164
|
-
const de_InvalidMaxResultsExceptionRes = async (parsedOutput, context) => {
|
|
1165
|
-
const contents = map({});
|
|
1166
|
-
const data = parsedOutput.body;
|
|
1167
|
-
const doc = take(data, {
|
|
1168
|
-
message: __expectString,
|
|
1169
|
-
});
|
|
1170
|
-
Object.assign(contents, doc);
|
|
1171
|
-
const exception = new InvalidMaxResultsException({
|
|
1172
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1173
|
-
...contents,
|
|
1174
|
-
});
|
|
1175
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1176
|
-
};
|
|
1177
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1178
|
-
const contents = map({});
|
|
1179
|
-
const data = parsedOutput.body;
|
|
1180
|
-
const doc = take(data, {
|
|
1181
|
-
message: __expectString,
|
|
1182
|
-
});
|
|
1183
|
-
Object.assign(contents, doc);
|
|
1184
|
-
const exception = new InvalidNextTokenException({
|
|
1185
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1186
|
-
...contents,
|
|
1187
|
-
});
|
|
1188
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1189
|
-
};
|
|
1190
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1191
|
-
const contents = map({});
|
|
1192
|
-
const data = parsedOutput.body;
|
|
1193
|
-
const doc = take(data, {
|
|
1194
|
-
message: __expectString,
|
|
1195
|
-
});
|
|
1196
|
-
Object.assign(contents, doc);
|
|
1197
|
-
const exception = new InvalidParameterException({
|
|
1198
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1199
|
-
...contents,
|
|
1200
|
-
});
|
|
1201
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1202
|
-
};
|
|
1203
|
-
const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
1204
|
-
const contents = map({});
|
|
1205
|
-
const data = parsedOutput.body;
|
|
1206
|
-
const doc = take(data, {
|
|
1207
|
-
message: __expectString,
|
|
1208
|
-
});
|
|
1209
|
-
Object.assign(contents, doc);
|
|
1210
|
-
const exception = new InvalidPolicyException({
|
|
1211
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1212
|
-
...contents,
|
|
1213
|
-
});
|
|
1214
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1215
|
-
};
|
|
1216
|
-
const de_InvalidResourceTypeExceptionRes = async (parsedOutput, context) => {
|
|
1217
|
-
const contents = map({});
|
|
1218
|
-
const data = parsedOutput.body;
|
|
1219
|
-
const doc = take(data, {
|
|
1220
|
-
message: __expectString,
|
|
1221
|
-
});
|
|
1222
|
-
Object.assign(contents, doc);
|
|
1223
|
-
const exception = new InvalidResourceTypeException({
|
|
1224
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1225
|
-
...contents,
|
|
1226
|
-
});
|
|
1227
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1228
|
-
};
|
|
1229
|
-
const de_InvalidStateTransitionExceptionRes = async (parsedOutput, context) => {
|
|
1230
|
-
const contents = map({});
|
|
1231
|
-
const data = parsedOutput.body;
|
|
1232
|
-
const doc = take(data, {
|
|
1233
|
-
message: __expectString,
|
|
1234
|
-
});
|
|
1235
|
-
Object.assign(contents, doc);
|
|
1236
|
-
const exception = new InvalidStateTransitionException({
|
|
1237
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1238
|
-
...contents,
|
|
1239
|
-
});
|
|
1240
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1241
|
-
};
|
|
1242
|
-
const de_MalformedArnExceptionRes = async (parsedOutput, context) => {
|
|
1243
|
-
const contents = map({});
|
|
1244
|
-
const data = parsedOutput.body;
|
|
1245
|
-
const doc = take(data, {
|
|
1246
|
-
message: __expectString,
|
|
1247
|
-
});
|
|
1248
|
-
Object.assign(contents, doc);
|
|
1249
|
-
const exception = new MalformedArnException({
|
|
1250
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1251
|
-
...contents,
|
|
1252
|
-
});
|
|
1253
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1254
|
-
};
|
|
1255
|
-
const de_MalformedPolicyTemplateExceptionRes = async (parsedOutput, context) => {
|
|
1256
|
-
const contents = map({});
|
|
1257
|
-
const data = parsedOutput.body;
|
|
1258
|
-
const doc = take(data, {
|
|
1259
|
-
message: __expectString,
|
|
1260
|
-
});
|
|
1261
|
-
Object.assign(contents, doc);
|
|
1262
|
-
const exception = new MalformedPolicyTemplateException({
|
|
1263
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1264
|
-
...contents,
|
|
1265
|
-
});
|
|
1266
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1267
|
-
};
|
|
1268
|
-
const de_MissingRequiredParameterExceptionRes = async (parsedOutput, context) => {
|
|
1269
|
-
const contents = map({});
|
|
1270
|
-
const data = parsedOutput.body;
|
|
1271
|
-
const doc = take(data, {
|
|
1272
|
-
message: __expectString,
|
|
1273
|
-
});
|
|
1274
|
-
Object.assign(contents, doc);
|
|
1275
|
-
const exception = new MissingRequiredParameterException({
|
|
1276
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1277
|
-
...contents,
|
|
1278
|
-
});
|
|
1279
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1280
|
-
};
|
|
1281
|
-
const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
|
|
1282
|
-
const contents = map({});
|
|
1283
|
-
const data = parsedOutput.body;
|
|
1284
|
-
const doc = take(data, {
|
|
1285
|
-
message: __expectString,
|
|
1286
|
-
});
|
|
1287
|
-
Object.assign(contents, doc);
|
|
1288
|
-
const exception = new OperationNotPermittedException({
|
|
1289
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1290
|
-
...contents,
|
|
1291
|
-
});
|
|
1292
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1293
|
-
};
|
|
1294
|
-
const de_PermissionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1295
|
-
const contents = map({});
|
|
1296
|
-
const data = parsedOutput.body;
|
|
1297
|
-
const doc = take(data, {
|
|
1298
|
-
message: __expectString,
|
|
1299
|
-
});
|
|
1300
|
-
Object.assign(contents, doc);
|
|
1301
|
-
const exception = new PermissionAlreadyExistsException({
|
|
1302
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1303
|
-
...contents,
|
|
1304
|
-
});
|
|
1305
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1306
|
-
};
|
|
1307
|
-
const de_PermissionLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1308
|
-
const contents = map({});
|
|
1309
|
-
const data = parsedOutput.body;
|
|
1310
|
-
const doc = take(data, {
|
|
1311
|
-
message: __expectString,
|
|
1312
|
-
});
|
|
1313
|
-
Object.assign(contents, doc);
|
|
1314
|
-
const exception = new PermissionLimitExceededException({
|
|
1315
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1316
|
-
...contents,
|
|
1317
|
-
});
|
|
1318
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1319
|
-
};
|
|
1320
|
-
const de_PermissionVersionsLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1321
|
-
const contents = map({});
|
|
1322
|
-
const data = parsedOutput.body;
|
|
1323
|
-
const doc = take(data, {
|
|
1324
|
-
message: __expectString,
|
|
1325
|
-
});
|
|
1326
|
-
Object.assign(contents, doc);
|
|
1327
|
-
const exception = new PermissionVersionsLimitExceededException({
|
|
1328
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1329
|
-
...contents,
|
|
1330
|
-
});
|
|
1331
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1332
|
-
};
|
|
1333
|
-
const de_ResourceArnNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1334
|
-
const contents = map({});
|
|
1335
|
-
const data = parsedOutput.body;
|
|
1336
|
-
const doc = take(data, {
|
|
1337
|
-
message: __expectString,
|
|
1338
|
-
});
|
|
1339
|
-
Object.assign(contents, doc);
|
|
1340
|
-
const exception = new ResourceArnNotFoundException({
|
|
1341
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1342
|
-
...contents,
|
|
1343
|
-
});
|
|
1344
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1345
|
-
};
|
|
1346
|
-
const de_ResourceShareInvitationAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
|
|
1347
|
-
const contents = map({});
|
|
1348
|
-
const data = parsedOutput.body;
|
|
1349
|
-
const doc = take(data, {
|
|
1350
|
-
message: __expectString,
|
|
1351
|
-
});
|
|
1352
|
-
Object.assign(contents, doc);
|
|
1353
|
-
const exception = new ResourceShareInvitationAlreadyAcceptedException({
|
|
1354
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1355
|
-
...contents,
|
|
1356
|
-
});
|
|
1357
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1358
|
-
};
|
|
1359
|
-
const de_ResourceShareInvitationAlreadyRejectedExceptionRes = async (parsedOutput, context) => {
|
|
1360
|
-
const contents = map({});
|
|
1361
|
-
const data = parsedOutput.body;
|
|
1362
|
-
const doc = take(data, {
|
|
1363
|
-
message: __expectString,
|
|
1364
|
-
});
|
|
1365
|
-
Object.assign(contents, doc);
|
|
1366
|
-
const exception = new ResourceShareInvitationAlreadyRejectedException({
|
|
1367
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1368
|
-
...contents,
|
|
1369
|
-
});
|
|
1370
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1371
|
-
};
|
|
1372
|
-
const de_ResourceShareInvitationArnNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1373
|
-
const contents = map({});
|
|
1374
|
-
const data = parsedOutput.body;
|
|
1375
|
-
const doc = take(data, {
|
|
1376
|
-
message: __expectString,
|
|
1377
|
-
});
|
|
1378
|
-
Object.assign(contents, doc);
|
|
1379
|
-
const exception = new ResourceShareInvitationArnNotFoundException({
|
|
1380
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1381
|
-
...contents,
|
|
1382
|
-
});
|
|
1383
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1384
|
-
};
|
|
1385
|
-
const de_ResourceShareInvitationExpiredExceptionRes = async (parsedOutput, context) => {
|
|
1386
|
-
const contents = map({});
|
|
1387
|
-
const data = parsedOutput.body;
|
|
1388
|
-
const doc = take(data, {
|
|
1389
|
-
message: __expectString,
|
|
1390
|
-
});
|
|
1391
|
-
Object.assign(contents, doc);
|
|
1392
|
-
const exception = new ResourceShareInvitationExpiredException({
|
|
1393
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1394
|
-
...contents,
|
|
1395
|
-
});
|
|
1396
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1397
|
-
};
|
|
1398
|
-
const de_ResourceShareLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1399
|
-
const contents = map({});
|
|
1400
|
-
const data = parsedOutput.body;
|
|
1401
|
-
const doc = take(data, {
|
|
1402
|
-
message: __expectString,
|
|
1403
|
-
});
|
|
1404
|
-
Object.assign(contents, doc);
|
|
1405
|
-
const exception = new ResourceShareLimitExceededException({
|
|
1406
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1407
|
-
...contents,
|
|
1408
|
-
});
|
|
1409
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1410
|
-
};
|
|
1411
|
-
const de_ServerInternalExceptionRes = async (parsedOutput, context) => {
|
|
1412
|
-
const contents = map({});
|
|
1413
|
-
const data = parsedOutput.body;
|
|
1414
|
-
const doc = take(data, {
|
|
1415
|
-
message: __expectString,
|
|
1416
|
-
});
|
|
1417
|
-
Object.assign(contents, doc);
|
|
1418
|
-
const exception = new ServerInternalException({
|
|
1419
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1420
|
-
...contents,
|
|
1421
|
-
});
|
|
1422
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1423
|
-
};
|
|
1424
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1425
|
-
const contents = map({});
|
|
1426
|
-
const data = parsedOutput.body;
|
|
1427
|
-
const doc = take(data, {
|
|
1428
|
-
message: __expectString,
|
|
1429
|
-
});
|
|
1430
|
-
Object.assign(contents, doc);
|
|
1431
|
-
const exception = new ServiceUnavailableException({
|
|
1432
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1433
|
-
...contents,
|
|
1434
|
-
});
|
|
1435
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1436
|
-
};
|
|
1437
|
-
const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1438
|
-
const contents = map({});
|
|
1439
|
-
const data = parsedOutput.body;
|
|
1440
|
-
const doc = take(data, {
|
|
1441
|
-
message: __expectString,
|
|
1442
|
-
});
|
|
1443
|
-
Object.assign(contents, doc);
|
|
1444
|
-
const exception = new TagLimitExceededException({
|
|
1445
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1446
|
-
...contents,
|
|
1447
|
-
});
|
|
1448
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1449
|
-
};
|
|
1450
|
-
const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
|
|
1451
|
-
const contents = map({});
|
|
1452
|
-
const data = parsedOutput.body;
|
|
1453
|
-
const doc = take(data, {
|
|
1454
|
-
message: __expectString,
|
|
1455
|
-
});
|
|
1456
|
-
Object.assign(contents, doc);
|
|
1457
|
-
const exception = new TagPolicyViolationException({
|
|
1458
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1459
|
-
...contents,
|
|
1460
|
-
});
|
|
1461
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1462
|
-
};
|
|
1463
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1464
|
-
const contents = map({});
|
|
1465
|
-
const data = parsedOutput.body;
|
|
1466
|
-
const doc = take(data, {
|
|
1467
|
-
message: __expectString,
|
|
1468
|
-
});
|
|
1469
|
-
Object.assign(contents, doc);
|
|
1470
|
-
const exception = new ThrottlingException({
|
|
1471
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1472
|
-
...contents,
|
|
1473
|
-
});
|
|
1474
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1475
|
-
};
|
|
1476
|
-
const de_UnknownResourceExceptionRes = async (parsedOutput, context) => {
|
|
1477
|
-
const contents = map({});
|
|
1478
|
-
const data = parsedOutput.body;
|
|
1479
|
-
const doc = take(data, {
|
|
1480
|
-
message: __expectString,
|
|
1481
|
-
});
|
|
1482
|
-
Object.assign(contents, doc);
|
|
1483
|
-
const exception = new UnknownResourceException({
|
|
1484
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1485
|
-
...contents,
|
|
1486
|
-
});
|
|
1487
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1488
|
-
};
|
|
1489
|
-
const de_UnmatchedPolicyPermissionExceptionRes = async (parsedOutput, context) => {
|
|
1490
|
-
const contents = map({});
|
|
1491
|
-
const data = parsedOutput.body;
|
|
1492
|
-
const doc = take(data, {
|
|
1493
|
-
message: __expectString,
|
|
1494
|
-
});
|
|
1495
|
-
Object.assign(contents, doc);
|
|
1496
|
-
const exception = new UnmatchedPolicyPermissionException({
|
|
1497
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1498
|
-
...contents,
|
|
1499
|
-
});
|
|
1500
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1501
|
-
};
|
|
1502
|
-
const de_AssociatedPermission = (output, context) => {
|
|
1503
|
-
return take(output, {
|
|
1504
|
-
arn: __expectString,
|
|
1505
|
-
defaultVersion: __expectBoolean,
|
|
1506
|
-
featureSet: __expectString,
|
|
1507
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1508
|
-
permissionVersion: __expectString,
|
|
1509
|
-
resourceShareArn: __expectString,
|
|
1510
|
-
resourceType: __expectString,
|
|
1511
|
-
status: __expectString,
|
|
1512
|
-
});
|
|
1513
|
-
};
|
|
1514
|
-
const de_AssociatedPermissionList = (output, context) => {
|
|
1515
|
-
const retVal = (output || [])
|
|
1516
|
-
.filter((e) => e != null)
|
|
1517
|
-
.map((entry) => {
|
|
1518
|
-
return de_AssociatedPermission(entry, context);
|
|
1519
|
-
});
|
|
1520
|
-
return retVal;
|
|
1521
|
-
};
|
|
1522
|
-
const de_Principal = (output, context) => {
|
|
1523
|
-
return take(output, {
|
|
1524
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1525
|
-
external: __expectBoolean,
|
|
1526
|
-
id: __expectString,
|
|
1527
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1528
|
-
resourceShareArn: __expectString,
|
|
1529
|
-
});
|
|
1530
|
-
};
|
|
1531
|
-
const de_PrincipalList = (output, context) => {
|
|
1532
|
-
const retVal = (output || [])
|
|
1533
|
-
.filter((e) => e != null)
|
|
1534
|
-
.map((entry) => {
|
|
1535
|
-
return de_Principal(entry, context);
|
|
1536
|
-
});
|
|
1537
|
-
return retVal;
|
|
1538
|
-
};
|
|
1539
|
-
const de_ReplacePermissionAssociationsWork = (output, context) => {
|
|
1540
|
-
return take(output, {
|
|
1541
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1542
|
-
fromPermissionArn: __expectString,
|
|
1543
|
-
fromPermissionVersion: __expectString,
|
|
1544
|
-
id: __expectString,
|
|
1545
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1546
|
-
status: __expectString,
|
|
1547
|
-
statusMessage: __expectString,
|
|
1548
|
-
toPermissionArn: __expectString,
|
|
1549
|
-
toPermissionVersion: __expectString,
|
|
1550
|
-
});
|
|
1551
|
-
};
|
|
1552
|
-
const de_ReplacePermissionAssociationsWorkList = (output, context) => {
|
|
1553
|
-
const retVal = (output || [])
|
|
1554
|
-
.filter((e) => e != null)
|
|
1555
|
-
.map((entry) => {
|
|
1556
|
-
return de_ReplacePermissionAssociationsWork(entry, context);
|
|
1557
|
-
});
|
|
1558
|
-
return retVal;
|
|
1559
|
-
};
|
|
1560
|
-
const de_Resource = (output, context) => {
|
|
1561
|
-
return take(output, {
|
|
1562
|
-
arn: __expectString,
|
|
1563
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1564
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1565
|
-
resourceGroupArn: __expectString,
|
|
1566
|
-
resourceRegionScope: __expectString,
|
|
1567
|
-
resourceShareArn: __expectString,
|
|
1568
|
-
status: __expectString,
|
|
1569
|
-
statusMessage: __expectString,
|
|
1570
|
-
type: __expectString,
|
|
1571
|
-
});
|
|
1572
|
-
};
|
|
1573
|
-
const de_ResourceList = (output, context) => {
|
|
1574
|
-
const retVal = (output || [])
|
|
1575
|
-
.filter((e) => e != null)
|
|
1576
|
-
.map((entry) => {
|
|
1577
|
-
return de_Resource(entry, context);
|
|
1578
|
-
});
|
|
1579
|
-
return retVal;
|
|
1580
|
-
};
|
|
1581
|
-
const de_ResourceShare = (output, context) => {
|
|
1582
|
-
return take(output, {
|
|
1583
|
-
allowExternalPrincipals: __expectBoolean,
|
|
1584
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1585
|
-
featureSet: __expectString,
|
|
1586
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1587
|
-
name: __expectString,
|
|
1588
|
-
owningAccountId: __expectString,
|
|
1589
|
-
resourceShareArn: __expectString,
|
|
1590
|
-
status: __expectString,
|
|
1591
|
-
statusMessage: __expectString,
|
|
1592
|
-
tags: _json,
|
|
1593
|
-
});
|
|
1594
|
-
};
|
|
1595
|
-
const de_ResourceShareAssociation = (output, context) => {
|
|
1596
|
-
return take(output, {
|
|
1597
|
-
associatedEntity: __expectString,
|
|
1598
|
-
associationType: __expectString,
|
|
1599
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1600
|
-
external: __expectBoolean,
|
|
1601
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1602
|
-
resourceShareArn: __expectString,
|
|
1603
|
-
resourceShareName: __expectString,
|
|
1604
|
-
status: __expectString,
|
|
1605
|
-
statusMessage: __expectString,
|
|
1606
|
-
});
|
|
1607
|
-
};
|
|
1608
|
-
const de_ResourceShareAssociationList = (output, context) => {
|
|
1609
|
-
const retVal = (output || [])
|
|
1610
|
-
.filter((e) => e != null)
|
|
1611
|
-
.map((entry) => {
|
|
1612
|
-
return de_ResourceShareAssociation(entry, context);
|
|
1613
|
-
});
|
|
1614
|
-
return retVal;
|
|
1615
|
-
};
|
|
1616
|
-
const de_ResourceShareInvitation = (output, context) => {
|
|
1617
|
-
return take(output, {
|
|
1618
|
-
invitationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1619
|
-
receiverAccountId: __expectString,
|
|
1620
|
-
receiverArn: __expectString,
|
|
1621
|
-
resourceShareArn: __expectString,
|
|
1622
|
-
resourceShareAssociations: (_) => de_ResourceShareAssociationList(_, context),
|
|
1623
|
-
resourceShareInvitationArn: __expectString,
|
|
1624
|
-
resourceShareName: __expectString,
|
|
1625
|
-
senderAccountId: __expectString,
|
|
1626
|
-
status: __expectString,
|
|
1627
|
-
});
|
|
1628
|
-
};
|
|
1629
|
-
const de_ResourceShareInvitationList = (output, context) => {
|
|
1630
|
-
const retVal = (output || [])
|
|
1631
|
-
.filter((e) => e != null)
|
|
1632
|
-
.map((entry) => {
|
|
1633
|
-
return de_ResourceShareInvitation(entry, context);
|
|
1634
|
-
});
|
|
1635
|
-
return retVal;
|
|
1636
|
-
};
|
|
1637
|
-
const de_ResourceShareList = (output, context) => {
|
|
1638
|
-
const retVal = (output || [])
|
|
1639
|
-
.filter((e) => e != null)
|
|
1640
|
-
.map((entry) => {
|
|
1641
|
-
return de_ResourceShare(entry, context);
|
|
1642
|
-
});
|
|
1643
|
-
return retVal;
|
|
1644
|
-
};
|
|
1645
|
-
const de_ResourceSharePermissionDetail = (output, context) => {
|
|
1646
|
-
return take(output, {
|
|
1647
|
-
arn: __expectString,
|
|
1648
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1649
|
-
defaultVersion: __expectBoolean,
|
|
1650
|
-
featureSet: __expectString,
|
|
1651
|
-
isResourceTypeDefault: __expectBoolean,
|
|
1652
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1653
|
-
name: __expectString,
|
|
1654
|
-
permission: __expectString,
|
|
1655
|
-
permissionType: __expectString,
|
|
1656
|
-
resourceType: __expectString,
|
|
1657
|
-
status: __expectString,
|
|
1658
|
-
tags: _json,
|
|
1659
|
-
version: __expectString,
|
|
1660
|
-
});
|
|
1661
|
-
};
|
|
1662
|
-
const de_ResourceSharePermissionList = (output, context) => {
|
|
1663
|
-
const retVal = (output || [])
|
|
1664
|
-
.filter((e) => e != null)
|
|
1665
|
-
.map((entry) => {
|
|
1666
|
-
return de_ResourceSharePermissionSummary(entry, context);
|
|
1667
|
-
});
|
|
1668
|
-
return retVal;
|
|
1669
|
-
};
|
|
1670
|
-
const de_ResourceSharePermissionSummary = (output, context) => {
|
|
1671
|
-
return take(output, {
|
|
1672
|
-
arn: __expectString,
|
|
1673
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1674
|
-
defaultVersion: __expectBoolean,
|
|
1675
|
-
featureSet: __expectString,
|
|
1676
|
-
isResourceTypeDefault: __expectBoolean,
|
|
1677
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1678
|
-
name: __expectString,
|
|
1679
|
-
permissionType: __expectString,
|
|
1680
|
-
resourceType: __expectString,
|
|
1681
|
-
status: __expectString,
|
|
1682
|
-
tags: _json,
|
|
1683
|
-
version: __expectString,
|
|
1684
|
-
});
|
|
1685
|
-
};
|
|
1686
|
-
const deserializeMetadata = (output) => ({
|
|
1687
|
-
httpStatusCode: output.statusCode,
|
|
1688
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1689
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1690
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1691
|
-
});
|
|
1692
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1693
|
-
const _cT = "clientToken";
|
|
1694
|
-
const _pA = "permissionArn";
|
|
1695
|
-
const _pV = "permissionVersion";
|
|
1696
|
-
const _rSA = "resourceShareArn";
|