@aws-sdk/client-sso-admin 3.131.0 → 3.132.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/CHANGELOG.md +11 -0
- package/README.md +11 -15
- package/dist-cjs/SSOAdmin.js +90 -0
- package/dist-cjs/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/DeletePermissionsBoundaryFromPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/GetPermissionsBoundaryForPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/PutPermissionsBoundaryToPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +99 -17
- package/dist-cjs/pagination/ListCustomerManagedPolicyReferencesInPermissionSetPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +481 -2
- package/dist-es/SSOAdmin.js +90 -0
- package/dist-es/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.js +39 -0
- package/dist-es/commands/DeletePermissionsBoundaryFromPermissionSetCommand.js +39 -0
- package/dist-es/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.js +39 -0
- package/dist-es/commands/GetPermissionsBoundaryForPermissionSetCommand.js +39 -0
- package/dist-es/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.js +39 -0
- package/dist-es/commands/PutPermissionsBoundaryToPermissionSetCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +70 -15
- package/dist-es/pagination/ListCustomerManagedPolicyReferencesInPermissionSetPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +568 -0
- package/dist-types/SSOAdmin.d.ts +46 -11
- package/dist-types/SSOAdminClient.d.ts +9 -10
- package/dist-types/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/AttachManagedPolicyToPermissionSetCommand.d.ts +1 -1
- package/dist-types/commands/DeletePermissionsBoundaryFromPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/DetachManagedPolicyFromPermissionSetCommand.d.ts +1 -1
- package/dist-types/commands/GetPermissionsBoundaryForPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/ListManagedPoliciesInPermissionSetCommand.d.ts +1 -1
- package/dist-types/commands/PutPermissionsBoundaryToPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +244 -25
- package/dist-types/pagination/ListCustomerManagedPolicyReferencesInPermissionSetPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/SSOAdmin.d.ts +30 -0
- package/dist-types/ts3.4/SSOAdminClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePermissionsBoundaryFromPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPermissionsBoundaryForPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutPermissionsBoundaryToPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +148 -14
- package/dist-types/ts3.4/pagination/ListCustomerManagedPolicyReferencesInPermissionSetPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +18 -0
- package/package.json +1 -1
|
@@ -3,6 +3,17 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { SSOAdminServiceException as __BaseException } from "../models/SSOAdminServiceException";
|
|
6
|
+
export var serializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "SWBExternalService.AttachCustomerManagedPolicyReferenceToPermissionSet",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetRequest(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
6
17
|
export var serializeAws_json1_1AttachManagedPolicyToPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
18
|
var headers, body;
|
|
8
19
|
return __generator(this, function (_a) {
|
|
@@ -80,6 +91,17 @@ export var serializeAws_json1_1DeleteInstanceAccessControlAttributeConfiguration
|
|
|
80
91
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
92
|
});
|
|
82
93
|
}); };
|
|
94
|
+
export var serializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "SWBExternalService.DeletePermissionsBoundaryFromPermissionSet",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
83
105
|
export var serializeAws_json1_1DeletePermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
106
|
var headers, body;
|
|
85
107
|
return __generator(this, function (_a) {
|
|
@@ -146,6 +168,17 @@ export var serializeAws_json1_1DescribePermissionSetProvisioningStatusCommand =
|
|
|
146
168
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
169
|
});
|
|
148
170
|
}); };
|
|
171
|
+
export var serializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
+
var headers, body;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
headers = {
|
|
175
|
+
"content-type": "application/x-amz-json-1.1",
|
|
176
|
+
"x-amz-target": "SWBExternalService.DetachCustomerManagedPolicyReferenceFromPermissionSet",
|
|
177
|
+
};
|
|
178
|
+
body = JSON.stringify(serializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetRequest(input, context));
|
|
179
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
180
|
+
});
|
|
181
|
+
}); };
|
|
149
182
|
export var serializeAws_json1_1DetachManagedPolicyFromPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
183
|
var headers, body;
|
|
151
184
|
return __generator(this, function (_a) {
|
|
@@ -168,6 +201,17 @@ export var serializeAws_json1_1GetInlinePolicyForPermissionSetCommand = function
|
|
|
168
201
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
202
|
});
|
|
170
203
|
}); };
|
|
204
|
+
export var serializeAws_json1_1GetPermissionsBoundaryForPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
+
var headers, body;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
headers = {
|
|
208
|
+
"content-type": "application/x-amz-json-1.1",
|
|
209
|
+
"x-amz-target": "SWBExternalService.GetPermissionsBoundaryForPermissionSet",
|
|
210
|
+
};
|
|
211
|
+
body = JSON.stringify(serializeAws_json1_1GetPermissionsBoundaryForPermissionSetRequest(input, context));
|
|
212
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
213
|
+
});
|
|
214
|
+
}); };
|
|
171
215
|
export var serializeAws_json1_1ListAccountAssignmentCreationStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
216
|
var headers, body;
|
|
173
217
|
return __generator(this, function (_a) {
|
|
@@ -212,6 +256,17 @@ export var serializeAws_json1_1ListAccountsForProvisionedPermissionSetCommand =
|
|
|
212
256
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
213
257
|
});
|
|
214
258
|
}); };
|
|
259
|
+
export var serializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
+
var headers, body;
|
|
261
|
+
return __generator(this, function (_a) {
|
|
262
|
+
headers = {
|
|
263
|
+
"content-type": "application/x-amz-json-1.1",
|
|
264
|
+
"x-amz-target": "SWBExternalService.ListCustomerManagedPolicyReferencesInPermissionSet",
|
|
265
|
+
};
|
|
266
|
+
body = JSON.stringify(serializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetRequest(input, context));
|
|
267
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
268
|
+
});
|
|
269
|
+
}); };
|
|
215
270
|
export var serializeAws_json1_1ListInstancesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
216
271
|
var headers, body;
|
|
217
272
|
return __generator(this, function (_a) {
|
|
@@ -300,6 +355,17 @@ export var serializeAws_json1_1PutInlinePolicyToPermissionSetCommand = function
|
|
|
300
355
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
301
356
|
});
|
|
302
357
|
}); };
|
|
358
|
+
export var serializeAws_json1_1PutPermissionsBoundaryToPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
359
|
+
var headers, body;
|
|
360
|
+
return __generator(this, function (_a) {
|
|
361
|
+
headers = {
|
|
362
|
+
"content-type": "application/x-amz-json-1.1",
|
|
363
|
+
"x-amz-target": "SWBExternalService.PutPermissionsBoundaryToPermissionSet",
|
|
364
|
+
};
|
|
365
|
+
body = JSON.stringify(serializeAws_json1_1PutPermissionsBoundaryToPermissionSetRequest(input, context));
|
|
366
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
367
|
+
});
|
|
368
|
+
}); };
|
|
303
369
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
304
370
|
var headers, body;
|
|
305
371
|
return __generator(this, function (_a) {
|
|
@@ -344,6 +410,81 @@ export var serializeAws_json1_1UpdatePermissionSetCommand = function (input, con
|
|
|
344
410
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
345
411
|
});
|
|
346
412
|
}); };
|
|
413
|
+
export var deserializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
414
|
+
var data, contents, response;
|
|
415
|
+
return __generator(this, function (_a) {
|
|
416
|
+
switch (_a.label) {
|
|
417
|
+
case 0:
|
|
418
|
+
if (output.statusCode >= 300) {
|
|
419
|
+
return [2, deserializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetCommandError(output, context)];
|
|
420
|
+
}
|
|
421
|
+
return [4, parseBody(output.body, context)];
|
|
422
|
+
case 1:
|
|
423
|
+
data = _a.sent();
|
|
424
|
+
contents = {};
|
|
425
|
+
contents = deserializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetResponse(data, context);
|
|
426
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
427
|
+
return [2, Promise.resolve(response)];
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}); };
|
|
431
|
+
var deserializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
432
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
433
|
+
var _c;
|
|
434
|
+
return __generator(this, function (_d) {
|
|
435
|
+
switch (_d.label) {
|
|
436
|
+
case 0:
|
|
437
|
+
_a = [__assign({}, output)];
|
|
438
|
+
_c = {};
|
|
439
|
+
return [4, parseBody(output.body, context)];
|
|
440
|
+
case 1:
|
|
441
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
442
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
|
+
_b = errorCode;
|
|
444
|
+
switch (_b) {
|
|
445
|
+
case "AccessDeniedException": return [3, 2];
|
|
446
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
447
|
+
case "ConflictException": return [3, 4];
|
|
448
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
449
|
+
case "InternalServerException": return [3, 6];
|
|
450
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
451
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
452
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
453
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
454
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3, 10];
|
|
455
|
+
case "ThrottlingException": return [3, 12];
|
|
456
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 12];
|
|
457
|
+
case "ValidationException": return [3, 14];
|
|
458
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 14];
|
|
459
|
+
}
|
|
460
|
+
return [3, 16];
|
|
461
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
462
|
+
case 3: throw _d.sent();
|
|
463
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
464
|
+
case 5: throw _d.sent();
|
|
465
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
466
|
+
case 7: throw _d.sent();
|
|
467
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
468
|
+
case 9: throw _d.sent();
|
|
469
|
+
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
470
|
+
case 11: throw _d.sent();
|
|
471
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
472
|
+
case 13: throw _d.sent();
|
|
473
|
+
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
474
|
+
case 15: throw _d.sent();
|
|
475
|
+
case 16:
|
|
476
|
+
parsedBody = parsedOutput.body;
|
|
477
|
+
$metadata = deserializeMetadata(output);
|
|
478
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
479
|
+
response = new __BaseException({
|
|
480
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
481
|
+
$fault: "client",
|
|
482
|
+
$metadata: $metadata,
|
|
483
|
+
});
|
|
484
|
+
throw __decorateServiceException(response, parsedBody);
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
}); };
|
|
347
488
|
export var deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
348
489
|
var data, contents, response;
|
|
349
490
|
return __generator(this, function (_a) {
|
|
@@ -853,6 +994,73 @@ var deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationComma
|
|
|
853
994
|
}
|
|
854
995
|
});
|
|
855
996
|
}); };
|
|
997
|
+
export var deserializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
998
|
+
var data, contents, response;
|
|
999
|
+
return __generator(this, function (_a) {
|
|
1000
|
+
switch (_a.label) {
|
|
1001
|
+
case 0:
|
|
1002
|
+
if (output.statusCode >= 300) {
|
|
1003
|
+
return [2, deserializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetCommandError(output, context)];
|
|
1004
|
+
}
|
|
1005
|
+
return [4, parseBody(output.body, context)];
|
|
1006
|
+
case 1:
|
|
1007
|
+
data = _a.sent();
|
|
1008
|
+
contents = {};
|
|
1009
|
+
contents = deserializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetResponse(data, context);
|
|
1010
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1011
|
+
return [2, Promise.resolve(response)];
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
}); };
|
|
1015
|
+
var deserializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1016
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1017
|
+
var _c;
|
|
1018
|
+
return __generator(this, function (_d) {
|
|
1019
|
+
switch (_d.label) {
|
|
1020
|
+
case 0:
|
|
1021
|
+
_a = [__assign({}, output)];
|
|
1022
|
+
_c = {};
|
|
1023
|
+
return [4, parseBody(output.body, context)];
|
|
1024
|
+
case 1:
|
|
1025
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1026
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
|
+
_b = errorCode;
|
|
1028
|
+
switch (_b) {
|
|
1029
|
+
case "AccessDeniedException": return [3, 2];
|
|
1030
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1031
|
+
case "InternalServerException": return [3, 4];
|
|
1032
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1033
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1034
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1035
|
+
case "ThrottlingException": return [3, 8];
|
|
1036
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1037
|
+
case "ValidationException": return [3, 10];
|
|
1038
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1039
|
+
}
|
|
1040
|
+
return [3, 12];
|
|
1041
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1042
|
+
case 3: throw _d.sent();
|
|
1043
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1044
|
+
case 5: throw _d.sent();
|
|
1045
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1046
|
+
case 7: throw _d.sent();
|
|
1047
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1048
|
+
case 9: throw _d.sent();
|
|
1049
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1050
|
+
case 11: throw _d.sent();
|
|
1051
|
+
case 12:
|
|
1052
|
+
parsedBody = parsedOutput.body;
|
|
1053
|
+
$metadata = deserializeMetadata(output);
|
|
1054
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1055
|
+
response = new __BaseException({
|
|
1056
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1057
|
+
$fault: "client",
|
|
1058
|
+
$metadata: $metadata,
|
|
1059
|
+
});
|
|
1060
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1061
|
+
}
|
|
1062
|
+
});
|
|
1063
|
+
}); };
|
|
856
1064
|
export var deserializeAws_json1_1DeletePermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
857
1065
|
var data, contents, response;
|
|
858
1066
|
return __generator(this, function (_a) {
|
|
@@ -1259,6 +1467,77 @@ var deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommandError =
|
|
|
1259
1467
|
}
|
|
1260
1468
|
});
|
|
1261
1469
|
}); };
|
|
1470
|
+
export var deserializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1471
|
+
var data, contents, response;
|
|
1472
|
+
return __generator(this, function (_a) {
|
|
1473
|
+
switch (_a.label) {
|
|
1474
|
+
case 0:
|
|
1475
|
+
if (output.statusCode >= 300) {
|
|
1476
|
+
return [2, deserializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetCommandError(output, context)];
|
|
1477
|
+
}
|
|
1478
|
+
return [4, parseBody(output.body, context)];
|
|
1479
|
+
case 1:
|
|
1480
|
+
data = _a.sent();
|
|
1481
|
+
contents = {};
|
|
1482
|
+
contents = deserializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetResponse(data, context);
|
|
1483
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1484
|
+
return [2, Promise.resolve(response)];
|
|
1485
|
+
}
|
|
1486
|
+
});
|
|
1487
|
+
}); };
|
|
1488
|
+
var deserializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1489
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1490
|
+
var _c;
|
|
1491
|
+
return __generator(this, function (_d) {
|
|
1492
|
+
switch (_d.label) {
|
|
1493
|
+
case 0:
|
|
1494
|
+
_a = [__assign({}, output)];
|
|
1495
|
+
_c = {};
|
|
1496
|
+
return [4, parseBody(output.body, context)];
|
|
1497
|
+
case 1:
|
|
1498
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1499
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
|
+
_b = errorCode;
|
|
1501
|
+
switch (_b) {
|
|
1502
|
+
case "AccessDeniedException": return [3, 2];
|
|
1503
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1504
|
+
case "ConflictException": return [3, 4];
|
|
1505
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
1506
|
+
case "InternalServerException": return [3, 6];
|
|
1507
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
1508
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1509
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
1510
|
+
case "ThrottlingException": return [3, 10];
|
|
1511
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
1512
|
+
case "ValidationException": return [3, 12];
|
|
1513
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
1514
|
+
}
|
|
1515
|
+
return [3, 14];
|
|
1516
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1517
|
+
case 3: throw _d.sent();
|
|
1518
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1519
|
+
case 5: throw _d.sent();
|
|
1520
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1521
|
+
case 7: throw _d.sent();
|
|
1522
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1523
|
+
case 9: throw _d.sent();
|
|
1524
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1525
|
+
case 11: throw _d.sent();
|
|
1526
|
+
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1527
|
+
case 13: throw _d.sent();
|
|
1528
|
+
case 14:
|
|
1529
|
+
parsedBody = parsedOutput.body;
|
|
1530
|
+
$metadata = deserializeMetadata(output);
|
|
1531
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1532
|
+
response = new __BaseException({
|
|
1533
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1534
|
+
$fault: "client",
|
|
1535
|
+
$metadata: $metadata,
|
|
1536
|
+
});
|
|
1537
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1538
|
+
}
|
|
1539
|
+
});
|
|
1540
|
+
}); };
|
|
1262
1541
|
export var deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1263
1542
|
var data, contents, response;
|
|
1264
1543
|
return __generator(this, function (_a) {
|
|
@@ -1397,6 +1676,73 @@ var deserializeAws_json1_1GetInlinePolicyForPermissionSetCommandError = function
|
|
|
1397
1676
|
}
|
|
1398
1677
|
});
|
|
1399
1678
|
}); };
|
|
1679
|
+
export var deserializeAws_json1_1GetPermissionsBoundaryForPermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1680
|
+
var data, contents, response;
|
|
1681
|
+
return __generator(this, function (_a) {
|
|
1682
|
+
switch (_a.label) {
|
|
1683
|
+
case 0:
|
|
1684
|
+
if (output.statusCode >= 300) {
|
|
1685
|
+
return [2, deserializeAws_json1_1GetPermissionsBoundaryForPermissionSetCommandError(output, context)];
|
|
1686
|
+
}
|
|
1687
|
+
return [4, parseBody(output.body, context)];
|
|
1688
|
+
case 1:
|
|
1689
|
+
data = _a.sent();
|
|
1690
|
+
contents = {};
|
|
1691
|
+
contents = deserializeAws_json1_1GetPermissionsBoundaryForPermissionSetResponse(data, context);
|
|
1692
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1693
|
+
return [2, Promise.resolve(response)];
|
|
1694
|
+
}
|
|
1695
|
+
});
|
|
1696
|
+
}); };
|
|
1697
|
+
var deserializeAws_json1_1GetPermissionsBoundaryForPermissionSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1698
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1699
|
+
var _c;
|
|
1700
|
+
return __generator(this, function (_d) {
|
|
1701
|
+
switch (_d.label) {
|
|
1702
|
+
case 0:
|
|
1703
|
+
_a = [__assign({}, output)];
|
|
1704
|
+
_c = {};
|
|
1705
|
+
return [4, parseBody(output.body, context)];
|
|
1706
|
+
case 1:
|
|
1707
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1708
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
|
+
_b = errorCode;
|
|
1710
|
+
switch (_b) {
|
|
1711
|
+
case "AccessDeniedException": return [3, 2];
|
|
1712
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1713
|
+
case "InternalServerException": return [3, 4];
|
|
1714
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1715
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1716
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1717
|
+
case "ThrottlingException": return [3, 8];
|
|
1718
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1719
|
+
case "ValidationException": return [3, 10];
|
|
1720
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1721
|
+
}
|
|
1722
|
+
return [3, 12];
|
|
1723
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1724
|
+
case 3: throw _d.sent();
|
|
1725
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1726
|
+
case 5: throw _d.sent();
|
|
1727
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1728
|
+
case 7: throw _d.sent();
|
|
1729
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1730
|
+
case 9: throw _d.sent();
|
|
1731
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1732
|
+
case 11: throw _d.sent();
|
|
1733
|
+
case 12:
|
|
1734
|
+
parsedBody = parsedOutput.body;
|
|
1735
|
+
$metadata = deserializeMetadata(output);
|
|
1736
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1737
|
+
response = new __BaseException({
|
|
1738
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1739
|
+
$fault: "client",
|
|
1740
|
+
$metadata: $metadata,
|
|
1741
|
+
});
|
|
1742
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1743
|
+
}
|
|
1744
|
+
});
|
|
1745
|
+
}); };
|
|
1400
1746
|
export var deserializeAws_json1_1ListAccountAssignmentCreationStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1401
1747
|
var data, contents, response;
|
|
1402
1748
|
return __generator(this, function (_a) {
|
|
@@ -1665,6 +2011,73 @@ var deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommandError =
|
|
|
1665
2011
|
}
|
|
1666
2012
|
});
|
|
1667
2013
|
}); };
|
|
2014
|
+
export var deserializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2015
|
+
var data, contents, response;
|
|
2016
|
+
return __generator(this, function (_a) {
|
|
2017
|
+
switch (_a.label) {
|
|
2018
|
+
case 0:
|
|
2019
|
+
if (output.statusCode >= 300) {
|
|
2020
|
+
return [2, deserializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetCommandError(output, context)];
|
|
2021
|
+
}
|
|
2022
|
+
return [4, parseBody(output.body, context)];
|
|
2023
|
+
case 1:
|
|
2024
|
+
data = _a.sent();
|
|
2025
|
+
contents = {};
|
|
2026
|
+
contents = deserializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetResponse(data, context);
|
|
2027
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2028
|
+
return [2, Promise.resolve(response)];
|
|
2029
|
+
}
|
|
2030
|
+
});
|
|
2031
|
+
}); };
|
|
2032
|
+
var deserializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2033
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2034
|
+
var _c;
|
|
2035
|
+
return __generator(this, function (_d) {
|
|
2036
|
+
switch (_d.label) {
|
|
2037
|
+
case 0:
|
|
2038
|
+
_a = [__assign({}, output)];
|
|
2039
|
+
_c = {};
|
|
2040
|
+
return [4, parseBody(output.body, context)];
|
|
2041
|
+
case 1:
|
|
2042
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2043
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
|
+
_b = errorCode;
|
|
2045
|
+
switch (_b) {
|
|
2046
|
+
case "AccessDeniedException": return [3, 2];
|
|
2047
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2048
|
+
case "InternalServerException": return [3, 4];
|
|
2049
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
2050
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2051
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
2052
|
+
case "ThrottlingException": return [3, 8];
|
|
2053
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
2054
|
+
case "ValidationException": return [3, 10];
|
|
2055
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
2056
|
+
}
|
|
2057
|
+
return [3, 12];
|
|
2058
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2059
|
+
case 3: throw _d.sent();
|
|
2060
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2061
|
+
case 5: throw _d.sent();
|
|
2062
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2063
|
+
case 7: throw _d.sent();
|
|
2064
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2065
|
+
case 9: throw _d.sent();
|
|
2066
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2067
|
+
case 11: throw _d.sent();
|
|
2068
|
+
case 12:
|
|
2069
|
+
parsedBody = parsedOutput.body;
|
|
2070
|
+
$metadata = deserializeMetadata(output);
|
|
2071
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2072
|
+
response = new __BaseException({
|
|
2073
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2074
|
+
$fault: "client",
|
|
2075
|
+
$metadata: $metadata,
|
|
2076
|
+
});
|
|
2077
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2078
|
+
}
|
|
2079
|
+
});
|
|
2080
|
+
}); };
|
|
1668
2081
|
export var deserializeAws_json1_1ListInstancesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1669
2082
|
var data, contents, response;
|
|
1670
2083
|
return __generator(this, function (_a) {
|
|
@@ -2209,6 +2622,77 @@ var deserializeAws_json1_1PutInlinePolicyToPermissionSetCommandError = function
|
|
|
2209
2622
|
}
|
|
2210
2623
|
});
|
|
2211
2624
|
}); };
|
|
2625
|
+
export var deserializeAws_json1_1PutPermissionsBoundaryToPermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2626
|
+
var data, contents, response;
|
|
2627
|
+
return __generator(this, function (_a) {
|
|
2628
|
+
switch (_a.label) {
|
|
2629
|
+
case 0:
|
|
2630
|
+
if (output.statusCode >= 300) {
|
|
2631
|
+
return [2, deserializeAws_json1_1PutPermissionsBoundaryToPermissionSetCommandError(output, context)];
|
|
2632
|
+
}
|
|
2633
|
+
return [4, parseBody(output.body, context)];
|
|
2634
|
+
case 1:
|
|
2635
|
+
data = _a.sent();
|
|
2636
|
+
contents = {};
|
|
2637
|
+
contents = deserializeAws_json1_1PutPermissionsBoundaryToPermissionSetResponse(data, context);
|
|
2638
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2639
|
+
return [2, Promise.resolve(response)];
|
|
2640
|
+
}
|
|
2641
|
+
});
|
|
2642
|
+
}); };
|
|
2643
|
+
var deserializeAws_json1_1PutPermissionsBoundaryToPermissionSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2644
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2645
|
+
var _c;
|
|
2646
|
+
return __generator(this, function (_d) {
|
|
2647
|
+
switch (_d.label) {
|
|
2648
|
+
case 0:
|
|
2649
|
+
_a = [__assign({}, output)];
|
|
2650
|
+
_c = {};
|
|
2651
|
+
return [4, parseBody(output.body, context)];
|
|
2652
|
+
case 1:
|
|
2653
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2654
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2655
|
+
_b = errorCode;
|
|
2656
|
+
switch (_b) {
|
|
2657
|
+
case "AccessDeniedException": return [3, 2];
|
|
2658
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2659
|
+
case "ConflictException": return [3, 4];
|
|
2660
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
2661
|
+
case "InternalServerException": return [3, 6];
|
|
2662
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
2663
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2664
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
2665
|
+
case "ThrottlingException": return [3, 10];
|
|
2666
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
2667
|
+
case "ValidationException": return [3, 12];
|
|
2668
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
2669
|
+
}
|
|
2670
|
+
return [3, 14];
|
|
2671
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2672
|
+
case 3: throw _d.sent();
|
|
2673
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2674
|
+
case 5: throw _d.sent();
|
|
2675
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2676
|
+
case 7: throw _d.sent();
|
|
2677
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2678
|
+
case 9: throw _d.sent();
|
|
2679
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2680
|
+
case 11: throw _d.sent();
|
|
2681
|
+
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2682
|
+
case 13: throw _d.sent();
|
|
2683
|
+
case 14:
|
|
2684
|
+
parsedBody = parsedOutput.body;
|
|
2685
|
+
$metadata = deserializeMetadata(output);
|
|
2686
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2687
|
+
response = new __BaseException({
|
|
2688
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2689
|
+
$fault: "client",
|
|
2690
|
+
$metadata: $metadata,
|
|
2691
|
+
});
|
|
2692
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2693
|
+
}
|
|
2694
|
+
});
|
|
2695
|
+
}); };
|
|
2212
2696
|
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2213
2697
|
var data, contents, response;
|
|
2214
2698
|
return __generator(this, function (_a) {
|
|
@@ -2588,6 +3072,11 @@ var serializeAws_json1_1AccessControlAttributeValueSourceList = function (input,
|
|
|
2588
3072
|
return entry;
|
|
2589
3073
|
});
|
|
2590
3074
|
};
|
|
3075
|
+
var serializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetRequest = function (input, context) {
|
|
3076
|
+
return __assign(__assign(__assign({}, (input.CustomerManagedPolicyReference != null && {
|
|
3077
|
+
CustomerManagedPolicyReference: serializeAws_json1_1CustomerManagedPolicyReference(input.CustomerManagedPolicyReference, context),
|
|
3078
|
+
})), (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
3079
|
+
};
|
|
2591
3080
|
var serializeAws_json1_1AttachManagedPolicyToPermissionSetRequest = function (input, context) {
|
|
2592
3081
|
return __assign(__assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.ManagedPolicyArn != null && { ManagedPolicyArn: input.ManagedPolicyArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
2593
3082
|
};
|
|
@@ -2602,6 +3091,9 @@ var serializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationRequest
|
|
|
2602
3091
|
var serializeAws_json1_1CreatePermissionSetRequest = function (input, context) {
|
|
2603
3092
|
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.Name != null && { Name: input.Name })), (input.RelayState != null && { RelayState: input.RelayState })), (input.SessionDuration != null && { SessionDuration: input.SessionDuration })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
2604
3093
|
};
|
|
3094
|
+
var serializeAws_json1_1CustomerManagedPolicyReference = function (input, context) {
|
|
3095
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Path != null && { Path: input.Path }));
|
|
3096
|
+
};
|
|
2605
3097
|
var serializeAws_json1_1DeleteAccountAssignmentRequest = function (input, context) {
|
|
2606
3098
|
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn })), (input.PrincipalId != null && { PrincipalId: input.PrincipalId })), (input.PrincipalType != null && { PrincipalType: input.PrincipalType })), (input.TargetId != null && { TargetId: input.TargetId })), (input.TargetType != null && { TargetType: input.TargetType }));
|
|
2607
3099
|
};
|
|
@@ -2611,6 +3103,9 @@ var serializeAws_json1_1DeleteInlinePolicyFromPermissionSetRequest = function (i
|
|
|
2611
3103
|
var serializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationRequest = function (input, context) {
|
|
2612
3104
|
return __assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn }));
|
|
2613
3105
|
};
|
|
3106
|
+
var serializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetRequest = function (input, context) {
|
|
3107
|
+
return __assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
3108
|
+
};
|
|
2614
3109
|
var serializeAws_json1_1DeletePermissionSetRequest = function (input, context) {
|
|
2615
3110
|
return __assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
2616
3111
|
};
|
|
@@ -2635,12 +3130,20 @@ var serializeAws_json1_1DescribePermissionSetProvisioningStatusRequest = functio
|
|
|
2635
3130
|
var serializeAws_json1_1DescribePermissionSetRequest = function (input, context) {
|
|
2636
3131
|
return __assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
2637
3132
|
};
|
|
3133
|
+
var serializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetRequest = function (input, context) {
|
|
3134
|
+
return __assign(__assign(__assign({}, (input.CustomerManagedPolicyReference != null && {
|
|
3135
|
+
CustomerManagedPolicyReference: serializeAws_json1_1CustomerManagedPolicyReference(input.CustomerManagedPolicyReference, context),
|
|
3136
|
+
})), (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
3137
|
+
};
|
|
2638
3138
|
var serializeAws_json1_1DetachManagedPolicyFromPermissionSetRequest = function (input, context) {
|
|
2639
3139
|
return __assign(__assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.ManagedPolicyArn != null && { ManagedPolicyArn: input.ManagedPolicyArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
2640
3140
|
};
|
|
2641
3141
|
var serializeAws_json1_1GetInlinePolicyForPermissionSetRequest = function (input, context) {
|
|
2642
3142
|
return __assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
2643
3143
|
};
|
|
3144
|
+
var serializeAws_json1_1GetPermissionsBoundaryForPermissionSetRequest = function (input, context) {
|
|
3145
|
+
return __assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
3146
|
+
};
|
|
2644
3147
|
var serializeAws_json1_1InstanceAccessControlAttributeConfiguration = function (input, context) {
|
|
2645
3148
|
return __assign({}, (input.AccessControlAttributes != null && {
|
|
2646
3149
|
AccessControlAttributes: serializeAws_json1_1AccessControlAttributeList(input.AccessControlAttributes, context),
|
|
@@ -2658,6 +3161,9 @@ var serializeAws_json1_1ListAccountAssignmentsRequest = function (input, context
|
|
|
2658
3161
|
var serializeAws_json1_1ListAccountsForProvisionedPermissionSetRequest = function (input, context) {
|
|
2659
3162
|
return __assign(__assign(__assign(__assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn })), (input.ProvisioningStatus != null && { ProvisioningStatus: input.ProvisioningStatus }));
|
|
2660
3163
|
};
|
|
3164
|
+
var serializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetRequest = function (input, context) {
|
|
3165
|
+
return __assign(__assign(__assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
3166
|
+
};
|
|
2661
3167
|
var serializeAws_json1_1ListInstancesRequest = function (input, context) {
|
|
2662
3168
|
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2663
3169
|
};
|
|
@@ -2679,12 +3185,22 @@ var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
|
2679
3185
|
var serializeAws_json1_1OperationStatusFilter = function (input, context) {
|
|
2680
3186
|
return __assign({}, (input.Status != null && { Status: input.Status }));
|
|
2681
3187
|
};
|
|
3188
|
+
var serializeAws_json1_1PermissionsBoundary = function (input, context) {
|
|
3189
|
+
return __assign(__assign({}, (input.CustomerManagedPolicyReference != null && {
|
|
3190
|
+
CustomerManagedPolicyReference: serializeAws_json1_1CustomerManagedPolicyReference(input.CustomerManagedPolicyReference, context),
|
|
3191
|
+
})), (input.ManagedPolicyArn != null && { ManagedPolicyArn: input.ManagedPolicyArn }));
|
|
3192
|
+
};
|
|
2682
3193
|
var serializeAws_json1_1ProvisionPermissionSetRequest = function (input, context) {
|
|
2683
3194
|
return __assign(__assign(__assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn })), (input.TargetId != null && { TargetId: input.TargetId })), (input.TargetType != null && { TargetType: input.TargetType }));
|
|
2684
3195
|
};
|
|
2685
3196
|
var serializeAws_json1_1PutInlinePolicyToPermissionSetRequest = function (input, context) {
|
|
2686
3197
|
return __assign(__assign(__assign({}, (input.InlinePolicy != null && { InlinePolicy: input.InlinePolicy })), (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }));
|
|
2687
3198
|
};
|
|
3199
|
+
var serializeAws_json1_1PutPermissionsBoundaryToPermissionSetRequest = function (input, context) {
|
|
3200
|
+
return __assign(__assign(__assign({}, (input.InstanceArn != null && { InstanceArn: input.InstanceArn })), (input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn })), (input.PermissionsBoundary != null && {
|
|
3201
|
+
PermissionsBoundary: serializeAws_json1_1PermissionsBoundary(input.PermissionsBoundary, context),
|
|
3202
|
+
}));
|
|
3203
|
+
};
|
|
2688
3204
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
2689
3205
|
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
2690
3206
|
};
|
|
@@ -2827,6 +3343,9 @@ var deserializeAws_json1_1AccountList = function (output, context) {
|
|
|
2827
3343
|
});
|
|
2828
3344
|
return retVal;
|
|
2829
3345
|
};
|
|
3346
|
+
var deserializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetResponse = function (output, context) {
|
|
3347
|
+
return {};
|
|
3348
|
+
};
|
|
2830
3349
|
var deserializeAws_json1_1AttachedManagedPolicy = function (output, context) {
|
|
2831
3350
|
return {
|
|
2832
3351
|
Arn: __expectString(output.Arn),
|
|
@@ -2867,6 +3386,23 @@ var deserializeAws_json1_1CreatePermissionSetResponse = function (output, contex
|
|
|
2867
3386
|
PermissionSet: output.PermissionSet != null ? deserializeAws_json1_1PermissionSet(output.PermissionSet, context) : undefined,
|
|
2868
3387
|
};
|
|
2869
3388
|
};
|
|
3389
|
+
var deserializeAws_json1_1CustomerManagedPolicyReference = function (output, context) {
|
|
3390
|
+
return {
|
|
3391
|
+
Name: __expectString(output.Name),
|
|
3392
|
+
Path: __expectString(output.Path),
|
|
3393
|
+
};
|
|
3394
|
+
};
|
|
3395
|
+
var deserializeAws_json1_1CustomerManagedPolicyReferenceList = function (output, context) {
|
|
3396
|
+
var retVal = (output || [])
|
|
3397
|
+
.filter(function (e) { return e != null; })
|
|
3398
|
+
.map(function (entry) {
|
|
3399
|
+
if (entry === null) {
|
|
3400
|
+
return null;
|
|
3401
|
+
}
|
|
3402
|
+
return deserializeAws_json1_1CustomerManagedPolicyReference(entry, context);
|
|
3403
|
+
});
|
|
3404
|
+
return retVal;
|
|
3405
|
+
};
|
|
2870
3406
|
var deserializeAws_json1_1DeleteAccountAssignmentResponse = function (output, context) {
|
|
2871
3407
|
return {
|
|
2872
3408
|
AccountAssignmentDeletionStatus: output.AccountAssignmentDeletionStatus != null
|
|
@@ -2880,6 +3416,9 @@ var deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetResponse = function
|
|
|
2880
3416
|
var deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationResponse = function (output, context) {
|
|
2881
3417
|
return {};
|
|
2882
3418
|
};
|
|
3419
|
+
var deserializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetResponse = function (output, context) {
|
|
3420
|
+
return {};
|
|
3421
|
+
};
|
|
2883
3422
|
var deserializeAws_json1_1DeletePermissionSetResponse = function (output, context) {
|
|
2884
3423
|
return {};
|
|
2885
3424
|
};
|
|
@@ -2918,6 +3457,9 @@ var deserializeAws_json1_1DescribePermissionSetResponse = function (output, cont
|
|
|
2918
3457
|
PermissionSet: output.PermissionSet != null ? deserializeAws_json1_1PermissionSet(output.PermissionSet, context) : undefined,
|
|
2919
3458
|
};
|
|
2920
3459
|
};
|
|
3460
|
+
var deserializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetResponse = function (output, context) {
|
|
3461
|
+
return {};
|
|
3462
|
+
};
|
|
2921
3463
|
var deserializeAws_json1_1DetachManagedPolicyFromPermissionSetResponse = function (output, context) {
|
|
2922
3464
|
return {};
|
|
2923
3465
|
};
|
|
@@ -2926,6 +3468,13 @@ var deserializeAws_json1_1GetInlinePolicyForPermissionSetResponse = function (ou
|
|
|
2926
3468
|
InlinePolicy: __expectString(output.InlinePolicy),
|
|
2927
3469
|
};
|
|
2928
3470
|
};
|
|
3471
|
+
var deserializeAws_json1_1GetPermissionsBoundaryForPermissionSetResponse = function (output, context) {
|
|
3472
|
+
return {
|
|
3473
|
+
PermissionsBoundary: output.PermissionsBoundary != null
|
|
3474
|
+
? deserializeAws_json1_1PermissionsBoundary(output.PermissionsBoundary, context)
|
|
3475
|
+
: undefined,
|
|
3476
|
+
};
|
|
3477
|
+
};
|
|
2929
3478
|
var deserializeAws_json1_1InstanceAccessControlAttributeConfiguration = function (output, context) {
|
|
2930
3479
|
return {
|
|
2931
3480
|
AccessControlAttributes: output.AccessControlAttributes != null
|
|
@@ -2985,6 +3534,14 @@ var deserializeAws_json1_1ListAccountsForProvisionedPermissionSetResponse = func
|
|
|
2985
3534
|
NextToken: __expectString(output.NextToken),
|
|
2986
3535
|
};
|
|
2987
3536
|
};
|
|
3537
|
+
var deserializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetResponse = function (output, context) {
|
|
3538
|
+
return {
|
|
3539
|
+
CustomerManagedPolicyReferences: output.CustomerManagedPolicyReferences != null
|
|
3540
|
+
? deserializeAws_json1_1CustomerManagedPolicyReferenceList(output.CustomerManagedPolicyReferences, context)
|
|
3541
|
+
: undefined,
|
|
3542
|
+
NextToken: __expectString(output.NextToken),
|
|
3543
|
+
};
|
|
3544
|
+
};
|
|
2988
3545
|
var deserializeAws_json1_1ListInstancesResponse = function (output, context) {
|
|
2989
3546
|
return {
|
|
2990
3547
|
Instances: output.Instances != null ? deserializeAws_json1_1InstanceList(output.Instances, context) : undefined,
|
|
@@ -3029,6 +3586,14 @@ var deserializeAws_json1_1ListTagsForResourceResponse = function (output, contex
|
|
|
3029
3586
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
3030
3587
|
};
|
|
3031
3588
|
};
|
|
3589
|
+
var deserializeAws_json1_1PermissionsBoundary = function (output, context) {
|
|
3590
|
+
return {
|
|
3591
|
+
CustomerManagedPolicyReference: output.CustomerManagedPolicyReference != null
|
|
3592
|
+
? deserializeAws_json1_1CustomerManagedPolicyReference(output.CustomerManagedPolicyReference, context)
|
|
3593
|
+
: undefined,
|
|
3594
|
+
ManagedPolicyArn: __expectString(output.ManagedPolicyArn),
|
|
3595
|
+
};
|
|
3596
|
+
};
|
|
3032
3597
|
var deserializeAws_json1_1PermissionSet = function (output, context) {
|
|
3033
3598
|
return {
|
|
3034
3599
|
CreatedDate: output.CreatedDate != null
|
|
@@ -3094,6 +3659,9 @@ var deserializeAws_json1_1ProvisionPermissionSetResponse = function (output, con
|
|
|
3094
3659
|
var deserializeAws_json1_1PutInlinePolicyToPermissionSetResponse = function (output, context) {
|
|
3095
3660
|
return {};
|
|
3096
3661
|
};
|
|
3662
|
+
var deserializeAws_json1_1PutPermissionsBoundaryToPermissionSetResponse = function (output, context) {
|
|
3663
|
+
return {};
|
|
3664
|
+
};
|
|
3097
3665
|
var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
|
|
3098
3666
|
return {
|
|
3099
3667
|
Message: __expectString(output.Message),
|