@aws-sdk/client-sso-admin 3.33.0 → 3.34.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/dist/cjs/package.json +38 -38
- package/dist/es/SSOAdmin.js +1 -11
- package/dist/es/SSOAdmin.js.map +1 -1
- package/dist/es/SSOAdminClient.js +1 -16
- package/dist/es/SSOAdminClient.js.map +1 -1
- package/dist/es/commands/AttachManagedPolicyToPermissionSetCommand.js +2 -35
- package/dist/es/commands/AttachManagedPolicyToPermissionSetCommand.js.map +1 -1
- package/dist/es/commands/CreateAccountAssignmentCommand.js +2 -41
- package/dist/es/commands/CreateAccountAssignmentCommand.js.map +1 -1
- package/dist/es/commands/CreateInstanceAccessControlAttributeConfigurationCommand.js +2 -29
- package/dist/es/commands/CreateInstanceAccessControlAttributeConfigurationCommand.js.map +1 -1
- package/dist/es/commands/CreatePermissionSetCommand.js +2 -32
- package/dist/es/commands/CreatePermissionSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteAccountAssignmentCommand.js +2 -28
- package/dist/es/commands/DeleteAccountAssignmentCommand.js.map +1 -1
- package/dist/es/commands/DeleteInlinePolicyFromPermissionSetCommand.js +2 -27
- package/dist/es/commands/DeleteInlinePolicyFromPermissionSetCommand.js.map +1 -1
- package/dist/es/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.js +2 -30
- package/dist/es/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.js.map +1 -1
- package/dist/es/commands/DeletePermissionSetCommand.js +2 -27
- package/dist/es/commands/DeletePermissionSetCommand.js.map +1 -1
- package/dist/es/commands/DescribeAccountAssignmentCreationStatusCommand.js +2 -27
- package/dist/es/commands/DescribeAccountAssignmentCreationStatusCommand.js.map +1 -1
- package/dist/es/commands/DescribeAccountAssignmentDeletionStatusCommand.js +2 -27
- package/dist/es/commands/DescribeAccountAssignmentDeletionStatusCommand.js.map +1 -1
- package/dist/es/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.js +2 -30
- package/dist/es/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.js.map +1 -1
- package/dist/es/commands/DescribePermissionSetCommand.js +2 -27
- package/dist/es/commands/DescribePermissionSetCommand.js.map +1 -1
- package/dist/es/commands/DescribePermissionSetProvisioningStatusCommand.js +2 -27
- package/dist/es/commands/DescribePermissionSetProvisioningStatusCommand.js.map +1 -1
- package/dist/es/commands/DetachManagedPolicyFromPermissionSetCommand.js +2 -27
- package/dist/es/commands/DetachManagedPolicyFromPermissionSetCommand.js.map +1 -1
- package/dist/es/commands/GetInlinePolicyForPermissionSetCommand.js +2 -27
- package/dist/es/commands/GetInlinePolicyForPermissionSetCommand.js.map +1 -1
- package/dist/es/commands/ListAccountAssignmentCreationStatusCommand.js +2 -28
- package/dist/es/commands/ListAccountAssignmentCreationStatusCommand.js.map +1 -1
- package/dist/es/commands/ListAccountAssignmentDeletionStatusCommand.js +2 -28
- package/dist/es/commands/ListAccountAssignmentDeletionStatusCommand.js.map +1 -1
- package/dist/es/commands/ListAccountAssignmentsCommand.js +2 -28
- package/dist/es/commands/ListAccountAssignmentsCommand.js.map +1 -1
- package/dist/es/commands/ListAccountsForProvisionedPermissionSetCommand.js +2 -27
- package/dist/es/commands/ListAccountsForProvisionedPermissionSetCommand.js.map +1 -1
- package/dist/es/commands/ListInstancesCommand.js +2 -27
- package/dist/es/commands/ListInstancesCommand.js.map +1 -1
- package/dist/es/commands/ListManagedPoliciesInPermissionSetCommand.js +2 -27
- package/dist/es/commands/ListManagedPoliciesInPermissionSetCommand.js.map +1 -1
- package/dist/es/commands/ListPermissionSetProvisioningStatusCommand.js +2 -28
- package/dist/es/commands/ListPermissionSetProvisioningStatusCommand.js.map +1 -1
- package/dist/es/commands/ListPermissionSetsCommand.js +2 -27
- package/dist/es/commands/ListPermissionSetsCommand.js.map +1 -1
- package/dist/es/commands/ListPermissionSetsProvisionedToAccountCommand.js +2 -27
- package/dist/es/commands/ListPermissionSetsProvisionedToAccountCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/ProvisionPermissionSetCommand.js +2 -28
- package/dist/es/commands/ProvisionPermissionSetCommand.js.map +1 -1
- package/dist/es/commands/PutInlinePolicyToPermissionSetCommand.js +2 -34
- package/dist/es/commands/PutInlinePolicyToPermissionSetCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -27
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.js +2 -32
- package/dist/es/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.js.map +1 -1
- package/dist/es/commands/UpdatePermissionSetCommand.js +2 -27
- package/dist/es/commands/UpdatePermissionSetCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -246
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +38 -38
- package/dist/es/pagination/ListAccountAssignmentCreationStatusPaginator.js +16 -28
- package/dist/es/pagination/ListAccountAssignmentCreationStatusPaginator.js.map +1 -1
- package/dist/es/pagination/ListAccountAssignmentDeletionStatusPaginator.js +16 -28
- package/dist/es/pagination/ListAccountAssignmentDeletionStatusPaginator.js.map +1 -1
- package/dist/es/pagination/ListAccountAssignmentsPaginator.js +16 -28
- package/dist/es/pagination/ListAccountAssignmentsPaginator.js.map +1 -1
- package/dist/es/pagination/ListAccountsForProvisionedPermissionSetPaginator.js +16 -28
- package/dist/es/pagination/ListAccountsForProvisionedPermissionSetPaginator.js.map +1 -1
- package/dist/es/pagination/ListInstancesPaginator.js +16 -28
- package/dist/es/pagination/ListInstancesPaginator.js.map +1 -1
- package/dist/es/pagination/ListManagedPoliciesInPermissionSetPaginator.js +16 -28
- package/dist/es/pagination/ListManagedPoliciesInPermissionSetPaginator.js.map +1 -1
- package/dist/es/pagination/ListPermissionSetProvisioningStatusPaginator.js +16 -28
- package/dist/es/pagination/ListPermissionSetProvisioningStatusPaginator.js.map +1 -1
- package/dist/es/pagination/ListPermissionSetsPaginator.js +16 -28
- package/dist/es/pagination/ListPermissionSetsPaginator.js.map +1 -1
- package/dist/es/pagination/ListPermissionSetsProvisionedToAccountPaginator.js +16 -28
- package/dist/es/pagination/ListPermissionSetsProvisionedToAccountPaginator.js.map +1 -1
- package/dist/es/pagination/ListTagsForResourcePaginator.js +16 -28
- package/dist/es/pagination/ListTagsForResourcePaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +953 -958
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/package.json +38 -38
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1AttachManagedPolicyToPermissionSetCommand = funct
|
|
|
9
9
|
"x-amz-target": "SWBExternalService.AttachManagedPolicyToPermissionSet",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1AttachManagedPolicyToPermissionSetRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateAccountAssignmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateAccountAssignmentCommand = function (input,
|
|
|
20
20
|
"x-amz-target": "SWBExternalService.CreateAccountAssignment",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateAccountAssignmentRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateInstanceAccessControlAttributeConfiguration
|
|
|
31
31
|
"x-amz-target": "SWBExternalService.CreateInstanceAccessControlAttributeConfiguration",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1CreatePermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CreatePermissionSetCommand = function (input, con
|
|
|
42
42
|
"x-amz-target": "SWBExternalService.CreatePermissionSet",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1CreatePermissionSetRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DeleteAccountAssignmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeleteAccountAssignmentCommand = function (input,
|
|
|
53
53
|
"x-amz-target": "SWBExternalService.DeleteAccountAssignment",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DeleteAccountAssignmentRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommand = func
|
|
|
64
64
|
"x-amz-target": "SWBExternalService.DeleteInlinePolicyFromPermissionSet",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DeleteInlinePolicyFromPermissionSetRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DeleteInstanceAccessControlAttributeConfiguration
|
|
|
75
75
|
"x-amz-target": "SWBExternalService.DeleteInstanceAccessControlAttributeConfiguration",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DeletePermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DeletePermissionSetCommand = function (input, con
|
|
|
86
86
|
"x-amz-target": "SWBExternalService.DeletePermissionSet",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DeletePermissionSetRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DescribeAccountAssignmentCreationStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DescribeAccountAssignmentCreationStatusCommand =
|
|
|
97
97
|
"x-amz-target": "SWBExternalService.DescribeAccountAssignmentCreationStatus",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DescribeAccountAssignmentCreationStatusRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommand =
|
|
|
108
108
|
"x-amz-target": "SWBExternalService.DescribeAccountAssignmentDeletionStatus",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DescribeAccountAssignmentDeletionStatusRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurati
|
|
|
119
119
|
"x-amz-target": "SWBExternalService.DescribeInstanceAccessControlAttributeConfiguration",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1DescribePermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1DescribePermissionSetCommand = function (input, c
|
|
|
130
130
|
"x-amz-target": "SWBExternalService.DescribePermissionSet",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1DescribePermissionSetRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1DescribePermissionSetProvisioningStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1DescribePermissionSetProvisioningStatusCommand =
|
|
|
141
141
|
"x-amz-target": "SWBExternalService.DescribePermissionSetProvisioningStatus",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1DescribePermissionSetProvisioningStatusRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1DetachManagedPolicyFromPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1DetachManagedPolicyFromPermissionSetCommand = fun
|
|
|
152
152
|
"x-amz-target": "SWBExternalService.DetachManagedPolicyFromPermissionSet",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1DetachManagedPolicyFromPermissionSetRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1GetInlinePolicyForPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1GetInlinePolicyForPermissionSetCommand = function
|
|
|
163
163
|
"x-amz-target": "SWBExternalService.GetInlinePolicyForPermissionSet",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1GetInlinePolicyForPermissionSetRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1ListAccountAssignmentCreationStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1ListAccountAssignmentCreationStatusCommand = func
|
|
|
174
174
|
"x-amz-target": "SWBExternalService.ListAccountAssignmentCreationStatus",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1ListAccountAssignmentCreationStatusRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1ListAccountAssignmentDeletionStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1ListAccountAssignmentDeletionStatusCommand = func
|
|
|
185
185
|
"x-amz-target": "SWBExternalService.ListAccountAssignmentDeletionStatus",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1ListAccountAssignmentDeletionStatusRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1ListAccountAssignmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1ListAccountAssignmentsCommand = function (input,
|
|
|
196
196
|
"x-amz-target": "SWBExternalService.ListAccountAssignments",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1ListAccountAssignmentsRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1ListAccountsForProvisionedPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1ListAccountsForProvisionedPermissionSetCommand =
|
|
|
207
207
|
"x-amz-target": "SWBExternalService.ListAccountsForProvisionedPermissionSet",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1ListAccountsForProvisionedPermissionSetRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1ListInstancesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1ListInstancesCommand = function (input, context)
|
|
|
218
218
|
"x-amz-target": "SWBExternalService.ListInstances",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1ListInstancesRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1ListManagedPoliciesInPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1ListManagedPoliciesInPermissionSetCommand = funct
|
|
|
229
229
|
"x-amz-target": "SWBExternalService.ListManagedPoliciesInPermissionSet",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1ListManagedPoliciesInPermissionSetRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1ListPermissionSetProvisioningStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1ListPermissionSetProvisioningStatusCommand = func
|
|
|
240
240
|
"x-amz-target": "SWBExternalService.ListPermissionSetProvisioningStatus",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1ListPermissionSetProvisioningStatusRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1ListPermissionSetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1ListPermissionSetsCommand = function (input, cont
|
|
|
251
251
|
"x-amz-target": "SWBExternalService.ListPermissionSets",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1ListPermissionSetsRequest(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var serializeAws_json1_1ListPermissionSetsProvisionedToAccountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +262,7 @@ export var serializeAws_json1_1ListPermissionSetsProvisionedToAccountCommand = f
|
|
|
262
262
|
"x-amz-target": "SWBExternalService.ListPermissionSetsProvisionedToAccount",
|
|
263
263
|
};
|
|
264
264
|
body = JSON.stringify(serializeAws_json1_1ListPermissionSetsProvisionedToAccountRequest(input, context));
|
|
265
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
266
|
});
|
|
267
267
|
}); };
|
|
268
268
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +273,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
273
273
|
"x-amz-target": "SWBExternalService.ListTagsForResource",
|
|
274
274
|
};
|
|
275
275
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
276
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
279
279
|
export var serializeAws_json1_1ProvisionPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_json1_1ProvisionPermissionSetCommand = function (input,
|
|
|
284
284
|
"x-amz-target": "SWBExternalService.ProvisionPermissionSet",
|
|
285
285
|
};
|
|
286
286
|
body = JSON.stringify(serializeAws_json1_1ProvisionPermissionSetRequest(input, context));
|
|
287
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
288
|
});
|
|
289
289
|
}); };
|
|
290
290
|
export var serializeAws_json1_1PutInlinePolicyToPermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_json1_1PutInlinePolicyToPermissionSetCommand = function
|
|
|
295
295
|
"x-amz-target": "SWBExternalService.PutInlinePolicyToPermissionSet",
|
|
296
296
|
};
|
|
297
297
|
body = JSON.stringify(serializeAws_json1_1PutInlinePolicyToPermissionSetRequest(input, context));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
299
|
});
|
|
300
300
|
}); };
|
|
301
301
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +306,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
306
306
|
"x-amz-target": "SWBExternalService.TagResource",
|
|
307
307
|
};
|
|
308
308
|
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
309
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
310
|
});
|
|
311
311
|
}); };
|
|
312
312
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -317,7 +317,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
317
317
|
"x-amz-target": "SWBExternalService.UntagResource",
|
|
318
318
|
};
|
|
319
319
|
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
320
|
-
return [2
|
|
320
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
321
|
});
|
|
322
322
|
}); };
|
|
323
323
|
export var serializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -328,7 +328,7 @@ export var serializeAws_json1_1UpdateInstanceAccessControlAttributeConfiguration
|
|
|
328
328
|
"x-amz-target": "SWBExternalService.UpdateInstanceAccessControlAttributeConfiguration",
|
|
329
329
|
};
|
|
330
330
|
body = JSON.stringify(serializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationRequest(input, context));
|
|
331
|
-
return [2
|
|
331
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
332
332
|
});
|
|
333
333
|
}); };
|
|
334
334
|
export var serializeAws_json1_1UpdatePermissionSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -339,7 +339,7 @@ export var serializeAws_json1_1UpdatePermissionSetCommand = function (input, con
|
|
|
339
339
|
"x-amz-target": "SWBExternalService.UpdatePermissionSet",
|
|
340
340
|
};
|
|
341
341
|
body = JSON.stringify(serializeAws_json1_1UpdatePermissionSetRequest(input, context));
|
|
342
|
-
return [2
|
|
342
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
343
343
|
});
|
|
344
344
|
}); };
|
|
345
345
|
export var deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -348,15 +348,15 @@ export var deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommand = fun
|
|
|
348
348
|
switch (_a.label) {
|
|
349
349
|
case 0:
|
|
350
350
|
if (output.statusCode >= 300) {
|
|
351
|
-
return [2
|
|
351
|
+
return [2, deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommandError(output, context)];
|
|
352
352
|
}
|
|
353
|
-
return [4
|
|
353
|
+
return [4, parseBody(output.body, context)];
|
|
354
354
|
case 1:
|
|
355
355
|
data = _a.sent();
|
|
356
356
|
contents = {};
|
|
357
357
|
contents = deserializeAws_json1_1AttachManagedPolicyToPermissionSetResponse(data, context);
|
|
358
358
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
359
|
-
return [2
|
|
359
|
+
return [2, Promise.resolve(response)];
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
362
|
}); };
|
|
@@ -368,71 +368,71 @@ var deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommandError = funct
|
|
|
368
368
|
case 0:
|
|
369
369
|
_a = [__assign({}, output)];
|
|
370
370
|
_k = {};
|
|
371
|
-
return [4
|
|
371
|
+
return [4, parseBody(output.body, context)];
|
|
372
372
|
case 1:
|
|
373
373
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
374
374
|
errorCode = "UnknownError";
|
|
375
375
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
376
|
_b = errorCode;
|
|
377
377
|
switch (_b) {
|
|
378
|
-
case "AccessDeniedException": return [3
|
|
379
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
380
|
-
case "ConflictException": return [3
|
|
381
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
382
|
-
case "InternalServerException": return [3
|
|
383
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
384
|
-
case "ResourceNotFoundException": return [3
|
|
385
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
386
|
-
case "ServiceQuotaExceededException": return [3
|
|
387
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3
|
|
388
|
-
case "ThrottlingException": return [3
|
|
389
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
390
|
-
case "ValidationException": return [3
|
|
391
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
392
|
-
}
|
|
393
|
-
return [3
|
|
378
|
+
case "AccessDeniedException": return [3, 2];
|
|
379
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
380
|
+
case "ConflictException": return [3, 4];
|
|
381
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
382
|
+
case "InternalServerException": return [3, 6];
|
|
383
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
384
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
385
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
386
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
387
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3, 10];
|
|
388
|
+
case "ThrottlingException": return [3, 12];
|
|
389
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 12];
|
|
390
|
+
case "ValidationException": return [3, 14];
|
|
391
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 14];
|
|
392
|
+
}
|
|
393
|
+
return [3, 16];
|
|
394
394
|
case 2:
|
|
395
395
|
_c = [{}];
|
|
396
|
-
return [4
|
|
396
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
397
397
|
case 3:
|
|
398
398
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
399
|
-
return [3
|
|
399
|
+
return [3, 17];
|
|
400
400
|
case 4:
|
|
401
401
|
_d = [{}];
|
|
402
|
-
return [4
|
|
402
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
403
403
|
case 5:
|
|
404
404
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
405
|
-
return [3
|
|
405
|
+
return [3, 17];
|
|
406
406
|
case 6:
|
|
407
407
|
_e = [{}];
|
|
408
|
-
return [4
|
|
408
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
409
409
|
case 7:
|
|
410
410
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
411
|
-
return [3
|
|
411
|
+
return [3, 17];
|
|
412
412
|
case 8:
|
|
413
413
|
_f = [{}];
|
|
414
|
-
return [4
|
|
414
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
415
415
|
case 9:
|
|
416
416
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
417
|
-
return [3
|
|
417
|
+
return [3, 17];
|
|
418
418
|
case 10:
|
|
419
419
|
_g = [{}];
|
|
420
|
-
return [4
|
|
420
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
421
421
|
case 11:
|
|
422
422
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
423
|
-
return [3
|
|
423
|
+
return [3, 17];
|
|
424
424
|
case 12:
|
|
425
425
|
_h = [{}];
|
|
426
|
-
return [4
|
|
426
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
427
427
|
case 13:
|
|
428
428
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
429
|
-
return [3
|
|
429
|
+
return [3, 17];
|
|
430
430
|
case 14:
|
|
431
431
|
_j = [{}];
|
|
432
|
-
return [4
|
|
432
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
433
433
|
case 15:
|
|
434
434
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
435
|
-
return [3
|
|
435
|
+
return [3, 17];
|
|
436
436
|
case 16:
|
|
437
437
|
parsedBody = parsedOutput.body;
|
|
438
438
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -442,7 +442,7 @@ var deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommandError = funct
|
|
|
442
442
|
message = response.message || response.Message || errorCode;
|
|
443
443
|
response.message = message;
|
|
444
444
|
delete response.Message;
|
|
445
|
-
return [2
|
|
445
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}); };
|
|
@@ -452,15 +452,15 @@ export var deserializeAws_json1_1CreateAccountAssignmentCommand = function (outp
|
|
|
452
452
|
switch (_a.label) {
|
|
453
453
|
case 0:
|
|
454
454
|
if (output.statusCode >= 300) {
|
|
455
|
-
return [2
|
|
455
|
+
return [2, deserializeAws_json1_1CreateAccountAssignmentCommandError(output, context)];
|
|
456
456
|
}
|
|
457
|
-
return [4
|
|
457
|
+
return [4, parseBody(output.body, context)];
|
|
458
458
|
case 1:
|
|
459
459
|
data = _a.sent();
|
|
460
460
|
contents = {};
|
|
461
461
|
contents = deserializeAws_json1_1CreateAccountAssignmentResponse(data, context);
|
|
462
462
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
463
|
-
return [2
|
|
463
|
+
return [2, Promise.resolve(response)];
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
}); };
|
|
@@ -472,71 +472,71 @@ var deserializeAws_json1_1CreateAccountAssignmentCommandError = function (output
|
|
|
472
472
|
case 0:
|
|
473
473
|
_a = [__assign({}, output)];
|
|
474
474
|
_k = {};
|
|
475
|
-
return [4
|
|
475
|
+
return [4, parseBody(output.body, context)];
|
|
476
476
|
case 1:
|
|
477
477
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
478
478
|
errorCode = "UnknownError";
|
|
479
479
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
480
480
|
_b = errorCode;
|
|
481
481
|
switch (_b) {
|
|
482
|
-
case "AccessDeniedException": return [3
|
|
483
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
484
|
-
case "ConflictException": return [3
|
|
485
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
486
|
-
case "InternalServerException": return [3
|
|
487
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
488
|
-
case "ResourceNotFoundException": return [3
|
|
489
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
490
|
-
case "ServiceQuotaExceededException": return [3
|
|
491
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3
|
|
492
|
-
case "ThrottlingException": return [3
|
|
493
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
494
|
-
case "ValidationException": return [3
|
|
495
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
496
|
-
}
|
|
497
|
-
return [3
|
|
482
|
+
case "AccessDeniedException": return [3, 2];
|
|
483
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
484
|
+
case "ConflictException": return [3, 4];
|
|
485
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
486
|
+
case "InternalServerException": return [3, 6];
|
|
487
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
488
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
489
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
490
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
491
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3, 10];
|
|
492
|
+
case "ThrottlingException": return [3, 12];
|
|
493
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 12];
|
|
494
|
+
case "ValidationException": return [3, 14];
|
|
495
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 14];
|
|
496
|
+
}
|
|
497
|
+
return [3, 16];
|
|
498
498
|
case 2:
|
|
499
499
|
_c = [{}];
|
|
500
|
-
return [4
|
|
500
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
501
501
|
case 3:
|
|
502
502
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
503
|
-
return [3
|
|
503
|
+
return [3, 17];
|
|
504
504
|
case 4:
|
|
505
505
|
_d = [{}];
|
|
506
|
-
return [4
|
|
506
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
507
507
|
case 5:
|
|
508
508
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
509
|
-
return [3
|
|
509
|
+
return [3, 17];
|
|
510
510
|
case 6:
|
|
511
511
|
_e = [{}];
|
|
512
|
-
return [4
|
|
512
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
513
513
|
case 7:
|
|
514
514
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
515
|
-
return [3
|
|
515
|
+
return [3, 17];
|
|
516
516
|
case 8:
|
|
517
517
|
_f = [{}];
|
|
518
|
-
return [4
|
|
518
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
519
519
|
case 9:
|
|
520
520
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
521
|
-
return [3
|
|
521
|
+
return [3, 17];
|
|
522
522
|
case 10:
|
|
523
523
|
_g = [{}];
|
|
524
|
-
return [4
|
|
524
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
525
525
|
case 11:
|
|
526
526
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
527
|
-
return [3
|
|
527
|
+
return [3, 17];
|
|
528
528
|
case 12:
|
|
529
529
|
_h = [{}];
|
|
530
|
-
return [4
|
|
530
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
531
531
|
case 13:
|
|
532
532
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
533
|
-
return [3
|
|
533
|
+
return [3, 17];
|
|
534
534
|
case 14:
|
|
535
535
|
_j = [{}];
|
|
536
|
-
return [4
|
|
536
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
537
537
|
case 15:
|
|
538
538
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
539
|
-
return [3
|
|
539
|
+
return [3, 17];
|
|
540
540
|
case 16:
|
|
541
541
|
parsedBody = parsedOutput.body;
|
|
542
542
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -546,7 +546,7 @@ var deserializeAws_json1_1CreateAccountAssignmentCommandError = function (output
|
|
|
546
546
|
message = response.message || response.Message || errorCode;
|
|
547
547
|
response.message = message;
|
|
548
548
|
delete response.Message;
|
|
549
|
-
return [2
|
|
549
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
550
550
|
}
|
|
551
551
|
});
|
|
552
552
|
}); };
|
|
@@ -556,15 +556,15 @@ export var deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurati
|
|
|
556
556
|
switch (_a.label) {
|
|
557
557
|
case 0:
|
|
558
558
|
if (output.statusCode >= 300) {
|
|
559
|
-
return [2
|
|
559
|
+
return [2, deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCommandError(output, context)];
|
|
560
560
|
}
|
|
561
|
-
return [4
|
|
561
|
+
return [4, parseBody(output.body, context)];
|
|
562
562
|
case 1:
|
|
563
563
|
data = _a.sent();
|
|
564
564
|
contents = {};
|
|
565
565
|
contents = deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationResponse(data, context);
|
|
566
566
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
567
|
-
return [2
|
|
567
|
+
return [2, Promise.resolve(response)];
|
|
568
568
|
}
|
|
569
569
|
});
|
|
570
570
|
}); };
|
|
@@ -576,63 +576,63 @@ var deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationComma
|
|
|
576
576
|
case 0:
|
|
577
577
|
_a = [__assign({}, output)];
|
|
578
578
|
_j = {};
|
|
579
|
-
return [4
|
|
579
|
+
return [4, parseBody(output.body, context)];
|
|
580
580
|
case 1:
|
|
581
581
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
582
582
|
errorCode = "UnknownError";
|
|
583
583
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
584
584
|
_b = errorCode;
|
|
585
585
|
switch (_b) {
|
|
586
|
-
case "AccessDeniedException": return [3
|
|
587
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
588
|
-
case "ConflictException": return [3
|
|
589
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
590
|
-
case "InternalServerException": return [3
|
|
591
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
592
|
-
case "ResourceNotFoundException": return [3
|
|
593
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
594
|
-
case "ThrottlingException": return [3
|
|
595
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
596
|
-
case "ValidationException": return [3
|
|
597
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
598
|
-
}
|
|
599
|
-
return [3
|
|
586
|
+
case "AccessDeniedException": return [3, 2];
|
|
587
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
588
|
+
case "ConflictException": return [3, 4];
|
|
589
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
590
|
+
case "InternalServerException": return [3, 6];
|
|
591
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
592
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
593
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
594
|
+
case "ThrottlingException": return [3, 10];
|
|
595
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
596
|
+
case "ValidationException": return [3, 12];
|
|
597
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
598
|
+
}
|
|
599
|
+
return [3, 14];
|
|
600
600
|
case 2:
|
|
601
601
|
_c = [{}];
|
|
602
|
-
return [4
|
|
602
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
603
603
|
case 3:
|
|
604
604
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
605
|
-
return [3
|
|
605
|
+
return [3, 15];
|
|
606
606
|
case 4:
|
|
607
607
|
_d = [{}];
|
|
608
|
-
return [4
|
|
608
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
609
609
|
case 5:
|
|
610
610
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
611
|
-
return [3
|
|
611
|
+
return [3, 15];
|
|
612
612
|
case 6:
|
|
613
613
|
_e = [{}];
|
|
614
|
-
return [4
|
|
614
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
615
615
|
case 7:
|
|
616
616
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
617
|
-
return [3
|
|
617
|
+
return [3, 15];
|
|
618
618
|
case 8:
|
|
619
619
|
_f = [{}];
|
|
620
|
-
return [4
|
|
620
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
621
621
|
case 9:
|
|
622
622
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
623
|
-
return [3
|
|
623
|
+
return [3, 15];
|
|
624
624
|
case 10:
|
|
625
625
|
_g = [{}];
|
|
626
|
-
return [4
|
|
626
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
627
627
|
case 11:
|
|
628
628
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
629
|
-
return [3
|
|
629
|
+
return [3, 15];
|
|
630
630
|
case 12:
|
|
631
631
|
_h = [{}];
|
|
632
|
-
return [4
|
|
632
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
633
633
|
case 13:
|
|
634
634
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
635
|
-
return [3
|
|
635
|
+
return [3, 15];
|
|
636
636
|
case 14:
|
|
637
637
|
parsedBody = parsedOutput.body;
|
|
638
638
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -642,7 +642,7 @@ var deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationComma
|
|
|
642
642
|
message = response.message || response.Message || errorCode;
|
|
643
643
|
response.message = message;
|
|
644
644
|
delete response.Message;
|
|
645
|
-
return [2
|
|
645
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
646
646
|
}
|
|
647
647
|
});
|
|
648
648
|
}); };
|
|
@@ -652,15 +652,15 @@ export var deserializeAws_json1_1CreatePermissionSetCommand = function (output,
|
|
|
652
652
|
switch (_a.label) {
|
|
653
653
|
case 0:
|
|
654
654
|
if (output.statusCode >= 300) {
|
|
655
|
-
return [2
|
|
655
|
+
return [2, deserializeAws_json1_1CreatePermissionSetCommandError(output, context)];
|
|
656
656
|
}
|
|
657
|
-
return [4
|
|
657
|
+
return [4, parseBody(output.body, context)];
|
|
658
658
|
case 1:
|
|
659
659
|
data = _a.sent();
|
|
660
660
|
contents = {};
|
|
661
661
|
contents = deserializeAws_json1_1CreatePermissionSetResponse(data, context);
|
|
662
662
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
663
|
-
return [2
|
|
663
|
+
return [2, Promise.resolve(response)];
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
666
|
}); };
|
|
@@ -672,71 +672,71 @@ var deserializeAws_json1_1CreatePermissionSetCommandError = function (output, co
|
|
|
672
672
|
case 0:
|
|
673
673
|
_a = [__assign({}, output)];
|
|
674
674
|
_k = {};
|
|
675
|
-
return [4
|
|
675
|
+
return [4, parseBody(output.body, context)];
|
|
676
676
|
case 1:
|
|
677
677
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
678
678
|
errorCode = "UnknownError";
|
|
679
679
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
680
|
_b = errorCode;
|
|
681
681
|
switch (_b) {
|
|
682
|
-
case "AccessDeniedException": return [3
|
|
683
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
684
|
-
case "ConflictException": return [3
|
|
685
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
686
|
-
case "InternalServerException": return [3
|
|
687
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
688
|
-
case "ResourceNotFoundException": return [3
|
|
689
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
690
|
-
case "ServiceQuotaExceededException": return [3
|
|
691
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3
|
|
692
|
-
case "ThrottlingException": return [3
|
|
693
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
694
|
-
case "ValidationException": return [3
|
|
695
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
696
|
-
}
|
|
697
|
-
return [3
|
|
682
|
+
case "AccessDeniedException": return [3, 2];
|
|
683
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
684
|
+
case "ConflictException": return [3, 4];
|
|
685
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
686
|
+
case "InternalServerException": return [3, 6];
|
|
687
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
688
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
689
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
690
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
691
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3, 10];
|
|
692
|
+
case "ThrottlingException": return [3, 12];
|
|
693
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 12];
|
|
694
|
+
case "ValidationException": return [3, 14];
|
|
695
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 14];
|
|
696
|
+
}
|
|
697
|
+
return [3, 16];
|
|
698
698
|
case 2:
|
|
699
699
|
_c = [{}];
|
|
700
|
-
return [4
|
|
700
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
701
701
|
case 3:
|
|
702
702
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
703
|
-
return [3
|
|
703
|
+
return [3, 17];
|
|
704
704
|
case 4:
|
|
705
705
|
_d = [{}];
|
|
706
|
-
return [4
|
|
706
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
707
707
|
case 5:
|
|
708
708
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
709
|
-
return [3
|
|
709
|
+
return [3, 17];
|
|
710
710
|
case 6:
|
|
711
711
|
_e = [{}];
|
|
712
|
-
return [4
|
|
712
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
713
713
|
case 7:
|
|
714
714
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
715
|
-
return [3
|
|
715
|
+
return [3, 17];
|
|
716
716
|
case 8:
|
|
717
717
|
_f = [{}];
|
|
718
|
-
return [4
|
|
718
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
719
719
|
case 9:
|
|
720
720
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
721
|
-
return [3
|
|
721
|
+
return [3, 17];
|
|
722
722
|
case 10:
|
|
723
723
|
_g = [{}];
|
|
724
|
-
return [4
|
|
724
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
725
725
|
case 11:
|
|
726
726
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
727
|
-
return [3
|
|
727
|
+
return [3, 17];
|
|
728
728
|
case 12:
|
|
729
729
|
_h = [{}];
|
|
730
|
-
return [4
|
|
730
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
731
731
|
case 13:
|
|
732
732
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
733
|
-
return [3
|
|
733
|
+
return [3, 17];
|
|
734
734
|
case 14:
|
|
735
735
|
_j = [{}];
|
|
736
|
-
return [4
|
|
736
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
737
737
|
case 15:
|
|
738
738
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
739
|
-
return [3
|
|
739
|
+
return [3, 17];
|
|
740
740
|
case 16:
|
|
741
741
|
parsedBody = parsedOutput.body;
|
|
742
742
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -746,7 +746,7 @@ var deserializeAws_json1_1CreatePermissionSetCommandError = function (output, co
|
|
|
746
746
|
message = response.message || response.Message || errorCode;
|
|
747
747
|
response.message = message;
|
|
748
748
|
delete response.Message;
|
|
749
|
-
return [2
|
|
749
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
750
750
|
}
|
|
751
751
|
});
|
|
752
752
|
}); };
|
|
@@ -756,15 +756,15 @@ export var deserializeAws_json1_1DeleteAccountAssignmentCommand = function (outp
|
|
|
756
756
|
switch (_a.label) {
|
|
757
757
|
case 0:
|
|
758
758
|
if (output.statusCode >= 300) {
|
|
759
|
-
return [2
|
|
759
|
+
return [2, deserializeAws_json1_1DeleteAccountAssignmentCommandError(output, context)];
|
|
760
760
|
}
|
|
761
|
-
return [4
|
|
761
|
+
return [4, parseBody(output.body, context)];
|
|
762
762
|
case 1:
|
|
763
763
|
data = _a.sent();
|
|
764
764
|
contents = {};
|
|
765
765
|
contents = deserializeAws_json1_1DeleteAccountAssignmentResponse(data, context);
|
|
766
766
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
767
|
-
return [2
|
|
767
|
+
return [2, Promise.resolve(response)];
|
|
768
768
|
}
|
|
769
769
|
});
|
|
770
770
|
}); };
|
|
@@ -776,63 +776,63 @@ var deserializeAws_json1_1DeleteAccountAssignmentCommandError = function (output
|
|
|
776
776
|
case 0:
|
|
777
777
|
_a = [__assign({}, output)];
|
|
778
778
|
_j = {};
|
|
779
|
-
return [4
|
|
779
|
+
return [4, parseBody(output.body, context)];
|
|
780
780
|
case 1:
|
|
781
781
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
782
782
|
errorCode = "UnknownError";
|
|
783
783
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
784
|
_b = errorCode;
|
|
785
785
|
switch (_b) {
|
|
786
|
-
case "AccessDeniedException": return [3
|
|
787
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
788
|
-
case "ConflictException": return [3
|
|
789
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
790
|
-
case "InternalServerException": return [3
|
|
791
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
792
|
-
case "ResourceNotFoundException": return [3
|
|
793
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
794
|
-
case "ThrottlingException": return [3
|
|
795
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
796
|
-
case "ValidationException": return [3
|
|
797
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
798
|
-
}
|
|
799
|
-
return [3
|
|
786
|
+
case "AccessDeniedException": return [3, 2];
|
|
787
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
788
|
+
case "ConflictException": return [3, 4];
|
|
789
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
790
|
+
case "InternalServerException": return [3, 6];
|
|
791
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
792
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
793
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
794
|
+
case "ThrottlingException": return [3, 10];
|
|
795
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
796
|
+
case "ValidationException": return [3, 12];
|
|
797
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
798
|
+
}
|
|
799
|
+
return [3, 14];
|
|
800
800
|
case 2:
|
|
801
801
|
_c = [{}];
|
|
802
|
-
return [4
|
|
802
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
803
803
|
case 3:
|
|
804
804
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
805
|
-
return [3
|
|
805
|
+
return [3, 15];
|
|
806
806
|
case 4:
|
|
807
807
|
_d = [{}];
|
|
808
|
-
return [4
|
|
808
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
809
809
|
case 5:
|
|
810
810
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
811
|
-
return [3
|
|
811
|
+
return [3, 15];
|
|
812
812
|
case 6:
|
|
813
813
|
_e = [{}];
|
|
814
|
-
return [4
|
|
814
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
815
815
|
case 7:
|
|
816
816
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
817
|
-
return [3
|
|
817
|
+
return [3, 15];
|
|
818
818
|
case 8:
|
|
819
819
|
_f = [{}];
|
|
820
|
-
return [4
|
|
820
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
821
821
|
case 9:
|
|
822
822
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
823
|
-
return [3
|
|
823
|
+
return [3, 15];
|
|
824
824
|
case 10:
|
|
825
825
|
_g = [{}];
|
|
826
|
-
return [4
|
|
826
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
827
827
|
case 11:
|
|
828
828
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
829
|
-
return [3
|
|
829
|
+
return [3, 15];
|
|
830
830
|
case 12:
|
|
831
831
|
_h = [{}];
|
|
832
|
-
return [4
|
|
832
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
833
833
|
case 13:
|
|
834
834
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
835
|
-
return [3
|
|
835
|
+
return [3, 15];
|
|
836
836
|
case 14:
|
|
837
837
|
parsedBody = parsedOutput.body;
|
|
838
838
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -842,7 +842,7 @@ var deserializeAws_json1_1DeleteAccountAssignmentCommandError = function (output
|
|
|
842
842
|
message = response.message || response.Message || errorCode;
|
|
843
843
|
response.message = message;
|
|
844
844
|
delete response.Message;
|
|
845
|
-
return [2
|
|
845
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
846
846
|
}
|
|
847
847
|
});
|
|
848
848
|
}); };
|
|
@@ -852,15 +852,15 @@ export var deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommand = fu
|
|
|
852
852
|
switch (_a.label) {
|
|
853
853
|
case 0:
|
|
854
854
|
if (output.statusCode >= 300) {
|
|
855
|
-
return [2
|
|
855
|
+
return [2, deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommandError(output, context)];
|
|
856
856
|
}
|
|
857
|
-
return [4
|
|
857
|
+
return [4, parseBody(output.body, context)];
|
|
858
858
|
case 1:
|
|
859
859
|
data = _a.sent();
|
|
860
860
|
contents = {};
|
|
861
861
|
contents = deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetResponse(data, context);
|
|
862
862
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
863
|
-
return [2
|
|
863
|
+
return [2, Promise.resolve(response)];
|
|
864
864
|
}
|
|
865
865
|
});
|
|
866
866
|
}); };
|
|
@@ -872,63 +872,63 @@ var deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommandError = func
|
|
|
872
872
|
case 0:
|
|
873
873
|
_a = [__assign({}, output)];
|
|
874
874
|
_j = {};
|
|
875
|
-
return [4
|
|
875
|
+
return [4, parseBody(output.body, context)];
|
|
876
876
|
case 1:
|
|
877
877
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
878
878
|
errorCode = "UnknownError";
|
|
879
879
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
880
|
_b = errorCode;
|
|
881
881
|
switch (_b) {
|
|
882
|
-
case "AccessDeniedException": return [3
|
|
883
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
884
|
-
case "ConflictException": return [3
|
|
885
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
886
|
-
case "InternalServerException": return [3
|
|
887
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
888
|
-
case "ResourceNotFoundException": return [3
|
|
889
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
890
|
-
case "ThrottlingException": return [3
|
|
891
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
892
|
-
case "ValidationException": return [3
|
|
893
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
894
|
-
}
|
|
895
|
-
return [3
|
|
882
|
+
case "AccessDeniedException": return [3, 2];
|
|
883
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
884
|
+
case "ConflictException": return [3, 4];
|
|
885
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
886
|
+
case "InternalServerException": return [3, 6];
|
|
887
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
888
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
889
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
890
|
+
case "ThrottlingException": return [3, 10];
|
|
891
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
892
|
+
case "ValidationException": return [3, 12];
|
|
893
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
894
|
+
}
|
|
895
|
+
return [3, 14];
|
|
896
896
|
case 2:
|
|
897
897
|
_c = [{}];
|
|
898
|
-
return [4
|
|
898
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
899
899
|
case 3:
|
|
900
900
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
901
|
-
return [3
|
|
901
|
+
return [3, 15];
|
|
902
902
|
case 4:
|
|
903
903
|
_d = [{}];
|
|
904
|
-
return [4
|
|
904
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
905
905
|
case 5:
|
|
906
906
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
907
|
-
return [3
|
|
907
|
+
return [3, 15];
|
|
908
908
|
case 6:
|
|
909
909
|
_e = [{}];
|
|
910
|
-
return [4
|
|
910
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
911
911
|
case 7:
|
|
912
912
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
913
|
-
return [3
|
|
913
|
+
return [3, 15];
|
|
914
914
|
case 8:
|
|
915
915
|
_f = [{}];
|
|
916
|
-
return [4
|
|
916
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
917
917
|
case 9:
|
|
918
918
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
919
|
-
return [3
|
|
919
|
+
return [3, 15];
|
|
920
920
|
case 10:
|
|
921
921
|
_g = [{}];
|
|
922
|
-
return [4
|
|
922
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
923
923
|
case 11:
|
|
924
924
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
925
|
-
return [3
|
|
925
|
+
return [3, 15];
|
|
926
926
|
case 12:
|
|
927
927
|
_h = [{}];
|
|
928
|
-
return [4
|
|
928
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
929
929
|
case 13:
|
|
930
930
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
931
|
-
return [3
|
|
931
|
+
return [3, 15];
|
|
932
932
|
case 14:
|
|
933
933
|
parsedBody = parsedOutput.body;
|
|
934
934
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -938,7 +938,7 @@ var deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommandError = func
|
|
|
938
938
|
message = response.message || response.Message || errorCode;
|
|
939
939
|
response.message = message;
|
|
940
940
|
delete response.Message;
|
|
941
|
-
return [2
|
|
941
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
944
|
}); };
|
|
@@ -948,15 +948,15 @@ export var deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurati
|
|
|
948
948
|
switch (_a.label) {
|
|
949
949
|
case 0:
|
|
950
950
|
if (output.statusCode >= 300) {
|
|
951
|
-
return [2
|
|
951
|
+
return [2, deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCommandError(output, context)];
|
|
952
952
|
}
|
|
953
|
-
return [4
|
|
953
|
+
return [4, parseBody(output.body, context)];
|
|
954
954
|
case 1:
|
|
955
955
|
data = _a.sent();
|
|
956
956
|
contents = {};
|
|
957
957
|
contents = deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationResponse(data, context);
|
|
958
958
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
959
|
-
return [2
|
|
959
|
+
return [2, Promise.resolve(response)];
|
|
960
960
|
}
|
|
961
961
|
});
|
|
962
962
|
}); };
|
|
@@ -968,63 +968,63 @@ var deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationComma
|
|
|
968
968
|
case 0:
|
|
969
969
|
_a = [__assign({}, output)];
|
|
970
970
|
_j = {};
|
|
971
|
-
return [4
|
|
971
|
+
return [4, parseBody(output.body, context)];
|
|
972
972
|
case 1:
|
|
973
973
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
974
974
|
errorCode = "UnknownError";
|
|
975
975
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
976
|
_b = errorCode;
|
|
977
977
|
switch (_b) {
|
|
978
|
-
case "AccessDeniedException": return [3
|
|
979
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
980
|
-
case "ConflictException": return [3
|
|
981
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
982
|
-
case "InternalServerException": return [3
|
|
983
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
984
|
-
case "ResourceNotFoundException": return [3
|
|
985
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
986
|
-
case "ThrottlingException": return [3
|
|
987
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
988
|
-
case "ValidationException": return [3
|
|
989
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
990
|
-
}
|
|
991
|
-
return [3
|
|
978
|
+
case "AccessDeniedException": return [3, 2];
|
|
979
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
980
|
+
case "ConflictException": return [3, 4];
|
|
981
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
982
|
+
case "InternalServerException": return [3, 6];
|
|
983
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
984
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
985
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
986
|
+
case "ThrottlingException": return [3, 10];
|
|
987
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
988
|
+
case "ValidationException": return [3, 12];
|
|
989
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
990
|
+
}
|
|
991
|
+
return [3, 14];
|
|
992
992
|
case 2:
|
|
993
993
|
_c = [{}];
|
|
994
|
-
return [4
|
|
994
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
995
995
|
case 3:
|
|
996
996
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
997
|
-
return [3
|
|
997
|
+
return [3, 15];
|
|
998
998
|
case 4:
|
|
999
999
|
_d = [{}];
|
|
1000
|
-
return [4
|
|
1000
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1001
1001
|
case 5:
|
|
1002
1002
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1003
|
-
return [3
|
|
1003
|
+
return [3, 15];
|
|
1004
1004
|
case 6:
|
|
1005
1005
|
_e = [{}];
|
|
1006
|
-
return [4
|
|
1006
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1007
1007
|
case 7:
|
|
1008
1008
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1009
|
-
return [3
|
|
1009
|
+
return [3, 15];
|
|
1010
1010
|
case 8:
|
|
1011
1011
|
_f = [{}];
|
|
1012
|
-
return [4
|
|
1012
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1013
1013
|
case 9:
|
|
1014
1014
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1015
|
-
return [3
|
|
1015
|
+
return [3, 15];
|
|
1016
1016
|
case 10:
|
|
1017
1017
|
_g = [{}];
|
|
1018
|
-
return [4
|
|
1018
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1019
1019
|
case 11:
|
|
1020
1020
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1021
|
-
return [3
|
|
1021
|
+
return [3, 15];
|
|
1022
1022
|
case 12:
|
|
1023
1023
|
_h = [{}];
|
|
1024
|
-
return [4
|
|
1024
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1025
1025
|
case 13:
|
|
1026
1026
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1027
|
-
return [3
|
|
1027
|
+
return [3, 15];
|
|
1028
1028
|
case 14:
|
|
1029
1029
|
parsedBody = parsedOutput.body;
|
|
1030
1030
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1034,7 +1034,7 @@ var deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationComma
|
|
|
1034
1034
|
message = response.message || response.Message || errorCode;
|
|
1035
1035
|
response.message = message;
|
|
1036
1036
|
delete response.Message;
|
|
1037
|
-
return [2
|
|
1037
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1038
1038
|
}
|
|
1039
1039
|
});
|
|
1040
1040
|
}); };
|
|
@@ -1044,15 +1044,15 @@ export var deserializeAws_json1_1DeletePermissionSetCommand = function (output,
|
|
|
1044
1044
|
switch (_a.label) {
|
|
1045
1045
|
case 0:
|
|
1046
1046
|
if (output.statusCode >= 300) {
|
|
1047
|
-
return [2
|
|
1047
|
+
return [2, deserializeAws_json1_1DeletePermissionSetCommandError(output, context)];
|
|
1048
1048
|
}
|
|
1049
|
-
return [4
|
|
1049
|
+
return [4, parseBody(output.body, context)];
|
|
1050
1050
|
case 1:
|
|
1051
1051
|
data = _a.sent();
|
|
1052
1052
|
contents = {};
|
|
1053
1053
|
contents = deserializeAws_json1_1DeletePermissionSetResponse(data, context);
|
|
1054
1054
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1055
|
-
return [2
|
|
1055
|
+
return [2, Promise.resolve(response)];
|
|
1056
1056
|
}
|
|
1057
1057
|
});
|
|
1058
1058
|
}); };
|
|
@@ -1064,63 +1064,63 @@ var deserializeAws_json1_1DeletePermissionSetCommandError = function (output, co
|
|
|
1064
1064
|
case 0:
|
|
1065
1065
|
_a = [__assign({}, output)];
|
|
1066
1066
|
_j = {};
|
|
1067
|
-
return [4
|
|
1067
|
+
return [4, parseBody(output.body, context)];
|
|
1068
1068
|
case 1:
|
|
1069
1069
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1070
1070
|
errorCode = "UnknownError";
|
|
1071
1071
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
1072
|
_b = errorCode;
|
|
1073
1073
|
switch (_b) {
|
|
1074
|
-
case "AccessDeniedException": return [3
|
|
1075
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1076
|
-
case "ConflictException": return [3
|
|
1077
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
1078
|
-
case "InternalServerException": return [3
|
|
1079
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1080
|
-
case "ResourceNotFoundException": return [3
|
|
1081
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1082
|
-
case "ThrottlingException": return [3
|
|
1083
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1084
|
-
case "ValidationException": return [3
|
|
1085
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1086
|
-
}
|
|
1087
|
-
return [3
|
|
1074
|
+
case "AccessDeniedException": return [3, 2];
|
|
1075
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1076
|
+
case "ConflictException": return [3, 4];
|
|
1077
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
1078
|
+
case "InternalServerException": return [3, 6];
|
|
1079
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
1080
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1081
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
1082
|
+
case "ThrottlingException": return [3, 10];
|
|
1083
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
1084
|
+
case "ValidationException": return [3, 12];
|
|
1085
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
1086
|
+
}
|
|
1087
|
+
return [3, 14];
|
|
1088
1088
|
case 2:
|
|
1089
1089
|
_c = [{}];
|
|
1090
|
-
return [4
|
|
1090
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1091
1091
|
case 3:
|
|
1092
1092
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1093
|
-
return [3
|
|
1093
|
+
return [3, 15];
|
|
1094
1094
|
case 4:
|
|
1095
1095
|
_d = [{}];
|
|
1096
|
-
return [4
|
|
1096
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1097
1097
|
case 5:
|
|
1098
1098
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1099
|
-
return [3
|
|
1099
|
+
return [3, 15];
|
|
1100
1100
|
case 6:
|
|
1101
1101
|
_e = [{}];
|
|
1102
|
-
return [4
|
|
1102
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1103
1103
|
case 7:
|
|
1104
1104
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1105
|
-
return [3
|
|
1105
|
+
return [3, 15];
|
|
1106
1106
|
case 8:
|
|
1107
1107
|
_f = [{}];
|
|
1108
|
-
return [4
|
|
1108
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1109
1109
|
case 9:
|
|
1110
1110
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1111
|
-
return [3
|
|
1111
|
+
return [3, 15];
|
|
1112
1112
|
case 10:
|
|
1113
1113
|
_g = [{}];
|
|
1114
|
-
return [4
|
|
1114
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1115
1115
|
case 11:
|
|
1116
1116
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1117
|
-
return [3
|
|
1117
|
+
return [3, 15];
|
|
1118
1118
|
case 12:
|
|
1119
1119
|
_h = [{}];
|
|
1120
|
-
return [4
|
|
1120
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1121
1121
|
case 13:
|
|
1122
1122
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1123
|
-
return [3
|
|
1123
|
+
return [3, 15];
|
|
1124
1124
|
case 14:
|
|
1125
1125
|
parsedBody = parsedOutput.body;
|
|
1126
1126
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1130,7 +1130,7 @@ var deserializeAws_json1_1DeletePermissionSetCommandError = function (output, co
|
|
|
1130
1130
|
message = response.message || response.Message || errorCode;
|
|
1131
1131
|
response.message = message;
|
|
1132
1132
|
delete response.Message;
|
|
1133
|
-
return [2
|
|
1133
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1134
1134
|
}
|
|
1135
1135
|
});
|
|
1136
1136
|
}); };
|
|
@@ -1140,15 +1140,15 @@ export var deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommand
|
|
|
1140
1140
|
switch (_a.label) {
|
|
1141
1141
|
case 0:
|
|
1142
1142
|
if (output.statusCode >= 300) {
|
|
1143
|
-
return [2
|
|
1143
|
+
return [2, deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommandError(output, context)];
|
|
1144
1144
|
}
|
|
1145
|
-
return [4
|
|
1145
|
+
return [4, parseBody(output.body, context)];
|
|
1146
1146
|
case 1:
|
|
1147
1147
|
data = _a.sent();
|
|
1148
1148
|
contents = {};
|
|
1149
1149
|
contents = deserializeAws_json1_1DescribeAccountAssignmentCreationStatusResponse(data, context);
|
|
1150
1150
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1151
|
-
return [2
|
|
1151
|
+
return [2, Promise.resolve(response)];
|
|
1152
1152
|
}
|
|
1153
1153
|
});
|
|
1154
1154
|
}); };
|
|
@@ -1160,55 +1160,55 @@ var deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommandError =
|
|
|
1160
1160
|
case 0:
|
|
1161
1161
|
_a = [__assign({}, output)];
|
|
1162
1162
|
_h = {};
|
|
1163
|
-
return [4
|
|
1163
|
+
return [4, parseBody(output.body, context)];
|
|
1164
1164
|
case 1:
|
|
1165
1165
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1166
1166
|
errorCode = "UnknownError";
|
|
1167
1167
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
1168
|
_b = errorCode;
|
|
1169
1169
|
switch (_b) {
|
|
1170
|
-
case "AccessDeniedException": return [3
|
|
1171
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1172
|
-
case "InternalServerException": return [3
|
|
1173
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1174
|
-
case "ResourceNotFoundException": return [3
|
|
1175
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1176
|
-
case "ThrottlingException": return [3
|
|
1177
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1178
|
-
case "ValidationException": return [3
|
|
1179
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1180
|
-
}
|
|
1181
|
-
return [3
|
|
1170
|
+
case "AccessDeniedException": return [3, 2];
|
|
1171
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1172
|
+
case "InternalServerException": return [3, 4];
|
|
1173
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1174
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1175
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1176
|
+
case "ThrottlingException": return [3, 8];
|
|
1177
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1178
|
+
case "ValidationException": return [3, 10];
|
|
1179
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1180
|
+
}
|
|
1181
|
+
return [3, 12];
|
|
1182
1182
|
case 2:
|
|
1183
1183
|
_c = [{}];
|
|
1184
|
-
return [4
|
|
1184
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1185
1185
|
case 3:
|
|
1186
1186
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1187
|
-
return [3
|
|
1187
|
+
return [3, 13];
|
|
1188
1188
|
case 4:
|
|
1189
1189
|
_d = [{}];
|
|
1190
|
-
return [4
|
|
1190
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1191
1191
|
case 5:
|
|
1192
1192
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1193
|
-
return [3
|
|
1193
|
+
return [3, 13];
|
|
1194
1194
|
case 6:
|
|
1195
1195
|
_e = [{}];
|
|
1196
|
-
return [4
|
|
1196
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1197
1197
|
case 7:
|
|
1198
1198
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1199
|
-
return [3
|
|
1199
|
+
return [3, 13];
|
|
1200
1200
|
case 8:
|
|
1201
1201
|
_f = [{}];
|
|
1202
|
-
return [4
|
|
1202
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1203
1203
|
case 9:
|
|
1204
1204
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1205
|
-
return [3
|
|
1205
|
+
return [3, 13];
|
|
1206
1206
|
case 10:
|
|
1207
1207
|
_g = [{}];
|
|
1208
|
-
return [4
|
|
1208
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1209
1209
|
case 11:
|
|
1210
1210
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1211
|
-
return [3
|
|
1211
|
+
return [3, 13];
|
|
1212
1212
|
case 12:
|
|
1213
1213
|
parsedBody = parsedOutput.body;
|
|
1214
1214
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1218,7 +1218,7 @@ var deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommandError =
|
|
|
1218
1218
|
message = response.message || response.Message || errorCode;
|
|
1219
1219
|
response.message = message;
|
|
1220
1220
|
delete response.Message;
|
|
1221
|
-
return [2
|
|
1221
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1222
1222
|
}
|
|
1223
1223
|
});
|
|
1224
1224
|
}); };
|
|
@@ -1228,15 +1228,15 @@ export var deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommand
|
|
|
1228
1228
|
switch (_a.label) {
|
|
1229
1229
|
case 0:
|
|
1230
1230
|
if (output.statusCode >= 300) {
|
|
1231
|
-
return [2
|
|
1231
|
+
return [2, deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommandError(output, context)];
|
|
1232
1232
|
}
|
|
1233
|
-
return [4
|
|
1233
|
+
return [4, parseBody(output.body, context)];
|
|
1234
1234
|
case 1:
|
|
1235
1235
|
data = _a.sent();
|
|
1236
1236
|
contents = {};
|
|
1237
1237
|
contents = deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusResponse(data, context);
|
|
1238
1238
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1239
|
-
return [2
|
|
1239
|
+
return [2, Promise.resolve(response)];
|
|
1240
1240
|
}
|
|
1241
1241
|
});
|
|
1242
1242
|
}); };
|
|
@@ -1248,55 +1248,55 @@ var deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommandError =
|
|
|
1248
1248
|
case 0:
|
|
1249
1249
|
_a = [__assign({}, output)];
|
|
1250
1250
|
_h = {};
|
|
1251
|
-
return [4
|
|
1251
|
+
return [4, parseBody(output.body, context)];
|
|
1252
1252
|
case 1:
|
|
1253
1253
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1254
1254
|
errorCode = "UnknownError";
|
|
1255
1255
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
1256
|
_b = errorCode;
|
|
1257
1257
|
switch (_b) {
|
|
1258
|
-
case "AccessDeniedException": return [3
|
|
1259
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1260
|
-
case "InternalServerException": return [3
|
|
1261
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1262
|
-
case "ResourceNotFoundException": return [3
|
|
1263
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1264
|
-
case "ThrottlingException": return [3
|
|
1265
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1266
|
-
case "ValidationException": return [3
|
|
1267
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1268
|
-
}
|
|
1269
|
-
return [3
|
|
1258
|
+
case "AccessDeniedException": return [3, 2];
|
|
1259
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1260
|
+
case "InternalServerException": return [3, 4];
|
|
1261
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1262
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1263
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1264
|
+
case "ThrottlingException": return [3, 8];
|
|
1265
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1266
|
+
case "ValidationException": return [3, 10];
|
|
1267
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1268
|
+
}
|
|
1269
|
+
return [3, 12];
|
|
1270
1270
|
case 2:
|
|
1271
1271
|
_c = [{}];
|
|
1272
|
-
return [4
|
|
1272
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1273
1273
|
case 3:
|
|
1274
1274
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1275
|
-
return [3
|
|
1275
|
+
return [3, 13];
|
|
1276
1276
|
case 4:
|
|
1277
1277
|
_d = [{}];
|
|
1278
|
-
return [4
|
|
1278
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1279
1279
|
case 5:
|
|
1280
1280
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1281
|
-
return [3
|
|
1281
|
+
return [3, 13];
|
|
1282
1282
|
case 6:
|
|
1283
1283
|
_e = [{}];
|
|
1284
|
-
return [4
|
|
1284
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1285
1285
|
case 7:
|
|
1286
1286
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1287
|
-
return [3
|
|
1287
|
+
return [3, 13];
|
|
1288
1288
|
case 8:
|
|
1289
1289
|
_f = [{}];
|
|
1290
|
-
return [4
|
|
1290
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1291
1291
|
case 9:
|
|
1292
1292
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1293
|
-
return [3
|
|
1293
|
+
return [3, 13];
|
|
1294
1294
|
case 10:
|
|
1295
1295
|
_g = [{}];
|
|
1296
|
-
return [4
|
|
1296
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1297
1297
|
case 11:
|
|
1298
1298
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1299
|
-
return [3
|
|
1299
|
+
return [3, 13];
|
|
1300
1300
|
case 12:
|
|
1301
1301
|
parsedBody = parsedOutput.body;
|
|
1302
1302
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1306,7 +1306,7 @@ var deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommandError =
|
|
|
1306
1306
|
message = response.message || response.Message || errorCode;
|
|
1307
1307
|
response.message = message;
|
|
1308
1308
|
delete response.Message;
|
|
1309
|
-
return [2
|
|
1309
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1310
1310
|
}
|
|
1311
1311
|
});
|
|
1312
1312
|
}); };
|
|
@@ -1316,15 +1316,15 @@ export var deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigura
|
|
|
1316
1316
|
switch (_a.label) {
|
|
1317
1317
|
case 0:
|
|
1318
1318
|
if (output.statusCode >= 300) {
|
|
1319
|
-
return [2
|
|
1319
|
+
return [2, deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCommandError(output, context)];
|
|
1320
1320
|
}
|
|
1321
|
-
return [4
|
|
1321
|
+
return [4, parseBody(output.body, context)];
|
|
1322
1322
|
case 1:
|
|
1323
1323
|
data = _a.sent();
|
|
1324
1324
|
contents = {};
|
|
1325
1325
|
contents = deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationResponse(data, context);
|
|
1326
1326
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1327
|
-
return [2
|
|
1327
|
+
return [2, Promise.resolve(response)];
|
|
1328
1328
|
}
|
|
1329
1329
|
});
|
|
1330
1330
|
}); };
|
|
@@ -1336,55 +1336,55 @@ var deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCom
|
|
|
1336
1336
|
case 0:
|
|
1337
1337
|
_a = [__assign({}, output)];
|
|
1338
1338
|
_h = {};
|
|
1339
|
-
return [4
|
|
1339
|
+
return [4, parseBody(output.body, context)];
|
|
1340
1340
|
case 1:
|
|
1341
1341
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1342
1342
|
errorCode = "UnknownError";
|
|
1343
1343
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
1344
|
_b = errorCode;
|
|
1345
1345
|
switch (_b) {
|
|
1346
|
-
case "AccessDeniedException": return [3
|
|
1347
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1348
|
-
case "InternalServerException": return [3
|
|
1349
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1350
|
-
case "ResourceNotFoundException": return [3
|
|
1351
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1352
|
-
case "ThrottlingException": return [3
|
|
1353
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1354
|
-
case "ValidationException": return [3
|
|
1355
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1356
|
-
}
|
|
1357
|
-
return [3
|
|
1346
|
+
case "AccessDeniedException": return [3, 2];
|
|
1347
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1348
|
+
case "InternalServerException": return [3, 4];
|
|
1349
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1350
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1351
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1352
|
+
case "ThrottlingException": return [3, 8];
|
|
1353
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1354
|
+
case "ValidationException": return [3, 10];
|
|
1355
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1356
|
+
}
|
|
1357
|
+
return [3, 12];
|
|
1358
1358
|
case 2:
|
|
1359
1359
|
_c = [{}];
|
|
1360
|
-
return [4
|
|
1360
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1361
1361
|
case 3:
|
|
1362
1362
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1363
|
-
return [3
|
|
1363
|
+
return [3, 13];
|
|
1364
1364
|
case 4:
|
|
1365
1365
|
_d = [{}];
|
|
1366
|
-
return [4
|
|
1366
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1367
1367
|
case 5:
|
|
1368
1368
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1369
|
-
return [3
|
|
1369
|
+
return [3, 13];
|
|
1370
1370
|
case 6:
|
|
1371
1371
|
_e = [{}];
|
|
1372
|
-
return [4
|
|
1372
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1373
1373
|
case 7:
|
|
1374
1374
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1375
|
-
return [3
|
|
1375
|
+
return [3, 13];
|
|
1376
1376
|
case 8:
|
|
1377
1377
|
_f = [{}];
|
|
1378
|
-
return [4
|
|
1378
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1379
1379
|
case 9:
|
|
1380
1380
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1381
|
-
return [3
|
|
1381
|
+
return [3, 13];
|
|
1382
1382
|
case 10:
|
|
1383
1383
|
_g = [{}];
|
|
1384
|
-
return [4
|
|
1384
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1385
1385
|
case 11:
|
|
1386
1386
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1387
|
-
return [3
|
|
1387
|
+
return [3, 13];
|
|
1388
1388
|
case 12:
|
|
1389
1389
|
parsedBody = parsedOutput.body;
|
|
1390
1390
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1394,7 +1394,7 @@ var deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCom
|
|
|
1394
1394
|
message = response.message || response.Message || errorCode;
|
|
1395
1395
|
response.message = message;
|
|
1396
1396
|
delete response.Message;
|
|
1397
|
-
return [2
|
|
1397
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1398
1398
|
}
|
|
1399
1399
|
});
|
|
1400
1400
|
}); };
|
|
@@ -1404,15 +1404,15 @@ export var deserializeAws_json1_1DescribePermissionSetCommand = function (output
|
|
|
1404
1404
|
switch (_a.label) {
|
|
1405
1405
|
case 0:
|
|
1406
1406
|
if (output.statusCode >= 300) {
|
|
1407
|
-
return [2
|
|
1407
|
+
return [2, deserializeAws_json1_1DescribePermissionSetCommandError(output, context)];
|
|
1408
1408
|
}
|
|
1409
|
-
return [4
|
|
1409
|
+
return [4, parseBody(output.body, context)];
|
|
1410
1410
|
case 1:
|
|
1411
1411
|
data = _a.sent();
|
|
1412
1412
|
contents = {};
|
|
1413
1413
|
contents = deserializeAws_json1_1DescribePermissionSetResponse(data, context);
|
|
1414
1414
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1415
|
-
return [2
|
|
1415
|
+
return [2, Promise.resolve(response)];
|
|
1416
1416
|
}
|
|
1417
1417
|
});
|
|
1418
1418
|
}); };
|
|
@@ -1424,55 +1424,55 @@ var deserializeAws_json1_1DescribePermissionSetCommandError = function (output,
|
|
|
1424
1424
|
case 0:
|
|
1425
1425
|
_a = [__assign({}, output)];
|
|
1426
1426
|
_h = {};
|
|
1427
|
-
return [4
|
|
1427
|
+
return [4, parseBody(output.body, context)];
|
|
1428
1428
|
case 1:
|
|
1429
1429
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1430
1430
|
errorCode = "UnknownError";
|
|
1431
1431
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
1432
|
_b = errorCode;
|
|
1433
1433
|
switch (_b) {
|
|
1434
|
-
case "AccessDeniedException": return [3
|
|
1435
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1436
|
-
case "InternalServerException": return [3
|
|
1437
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1438
|
-
case "ResourceNotFoundException": return [3
|
|
1439
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1440
|
-
case "ThrottlingException": return [3
|
|
1441
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1442
|
-
case "ValidationException": return [3
|
|
1443
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1444
|
-
}
|
|
1445
|
-
return [3
|
|
1434
|
+
case "AccessDeniedException": return [3, 2];
|
|
1435
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1436
|
+
case "InternalServerException": return [3, 4];
|
|
1437
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1438
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1439
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1440
|
+
case "ThrottlingException": return [3, 8];
|
|
1441
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1442
|
+
case "ValidationException": return [3, 10];
|
|
1443
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1444
|
+
}
|
|
1445
|
+
return [3, 12];
|
|
1446
1446
|
case 2:
|
|
1447
1447
|
_c = [{}];
|
|
1448
|
-
return [4
|
|
1448
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1449
1449
|
case 3:
|
|
1450
1450
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1451
|
-
return [3
|
|
1451
|
+
return [3, 13];
|
|
1452
1452
|
case 4:
|
|
1453
1453
|
_d = [{}];
|
|
1454
|
-
return [4
|
|
1454
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1455
1455
|
case 5:
|
|
1456
1456
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1457
|
-
return [3
|
|
1457
|
+
return [3, 13];
|
|
1458
1458
|
case 6:
|
|
1459
1459
|
_e = [{}];
|
|
1460
|
-
return [4
|
|
1460
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1461
1461
|
case 7:
|
|
1462
1462
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1463
|
-
return [3
|
|
1463
|
+
return [3, 13];
|
|
1464
1464
|
case 8:
|
|
1465
1465
|
_f = [{}];
|
|
1466
|
-
return [4
|
|
1466
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1467
1467
|
case 9:
|
|
1468
1468
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1469
|
-
return [3
|
|
1469
|
+
return [3, 13];
|
|
1470
1470
|
case 10:
|
|
1471
1471
|
_g = [{}];
|
|
1472
|
-
return [4
|
|
1472
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1473
1473
|
case 11:
|
|
1474
1474
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1475
|
-
return [3
|
|
1475
|
+
return [3, 13];
|
|
1476
1476
|
case 12:
|
|
1477
1477
|
parsedBody = parsedOutput.body;
|
|
1478
1478
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1482,7 +1482,7 @@ var deserializeAws_json1_1DescribePermissionSetCommandError = function (output,
|
|
|
1482
1482
|
message = response.message || response.Message || errorCode;
|
|
1483
1483
|
response.message = message;
|
|
1484
1484
|
delete response.Message;
|
|
1485
|
-
return [2
|
|
1485
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1486
1486
|
}
|
|
1487
1487
|
});
|
|
1488
1488
|
}); };
|
|
@@ -1492,15 +1492,15 @@ export var deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommand
|
|
|
1492
1492
|
switch (_a.label) {
|
|
1493
1493
|
case 0:
|
|
1494
1494
|
if (output.statusCode >= 300) {
|
|
1495
|
-
return [2
|
|
1495
|
+
return [2, deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommandError(output, context)];
|
|
1496
1496
|
}
|
|
1497
|
-
return [4
|
|
1497
|
+
return [4, parseBody(output.body, context)];
|
|
1498
1498
|
case 1:
|
|
1499
1499
|
data = _a.sent();
|
|
1500
1500
|
contents = {};
|
|
1501
1501
|
contents = deserializeAws_json1_1DescribePermissionSetProvisioningStatusResponse(data, context);
|
|
1502
1502
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1503
|
-
return [2
|
|
1503
|
+
return [2, Promise.resolve(response)];
|
|
1504
1504
|
}
|
|
1505
1505
|
});
|
|
1506
1506
|
}); };
|
|
@@ -1512,55 +1512,55 @@ var deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommandError =
|
|
|
1512
1512
|
case 0:
|
|
1513
1513
|
_a = [__assign({}, output)];
|
|
1514
1514
|
_h = {};
|
|
1515
|
-
return [4
|
|
1515
|
+
return [4, parseBody(output.body, context)];
|
|
1516
1516
|
case 1:
|
|
1517
1517
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1518
1518
|
errorCode = "UnknownError";
|
|
1519
1519
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1520
|
_b = errorCode;
|
|
1521
1521
|
switch (_b) {
|
|
1522
|
-
case "AccessDeniedException": return [3
|
|
1523
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1524
|
-
case "InternalServerException": return [3
|
|
1525
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1526
|
-
case "ResourceNotFoundException": return [3
|
|
1527
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1528
|
-
case "ThrottlingException": return [3
|
|
1529
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1530
|
-
case "ValidationException": return [3
|
|
1531
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1532
|
-
}
|
|
1533
|
-
return [3
|
|
1522
|
+
case "AccessDeniedException": return [3, 2];
|
|
1523
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1524
|
+
case "InternalServerException": return [3, 4];
|
|
1525
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1526
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1527
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1528
|
+
case "ThrottlingException": return [3, 8];
|
|
1529
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1530
|
+
case "ValidationException": return [3, 10];
|
|
1531
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1532
|
+
}
|
|
1533
|
+
return [3, 12];
|
|
1534
1534
|
case 2:
|
|
1535
1535
|
_c = [{}];
|
|
1536
|
-
return [4
|
|
1536
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1537
1537
|
case 3:
|
|
1538
1538
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1539
|
-
return [3
|
|
1539
|
+
return [3, 13];
|
|
1540
1540
|
case 4:
|
|
1541
1541
|
_d = [{}];
|
|
1542
|
-
return [4
|
|
1542
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1543
1543
|
case 5:
|
|
1544
1544
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1545
|
-
return [3
|
|
1545
|
+
return [3, 13];
|
|
1546
1546
|
case 6:
|
|
1547
1547
|
_e = [{}];
|
|
1548
|
-
return [4
|
|
1548
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1549
1549
|
case 7:
|
|
1550
1550
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1551
|
-
return [3
|
|
1551
|
+
return [3, 13];
|
|
1552
1552
|
case 8:
|
|
1553
1553
|
_f = [{}];
|
|
1554
|
-
return [4
|
|
1554
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1555
1555
|
case 9:
|
|
1556
1556
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1557
|
-
return [3
|
|
1557
|
+
return [3, 13];
|
|
1558
1558
|
case 10:
|
|
1559
1559
|
_g = [{}];
|
|
1560
|
-
return [4
|
|
1560
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1561
1561
|
case 11:
|
|
1562
1562
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1563
|
-
return [3
|
|
1563
|
+
return [3, 13];
|
|
1564
1564
|
case 12:
|
|
1565
1565
|
parsedBody = parsedOutput.body;
|
|
1566
1566
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1570,7 +1570,7 @@ var deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommandError =
|
|
|
1570
1570
|
message = response.message || response.Message || errorCode;
|
|
1571
1571
|
response.message = message;
|
|
1572
1572
|
delete response.Message;
|
|
1573
|
-
return [2
|
|
1573
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1574
1574
|
}
|
|
1575
1575
|
});
|
|
1576
1576
|
}); };
|
|
@@ -1580,15 +1580,15 @@ export var deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommand = f
|
|
|
1580
1580
|
switch (_a.label) {
|
|
1581
1581
|
case 0:
|
|
1582
1582
|
if (output.statusCode >= 300) {
|
|
1583
|
-
return [2
|
|
1583
|
+
return [2, deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommandError(output, context)];
|
|
1584
1584
|
}
|
|
1585
|
-
return [4
|
|
1585
|
+
return [4, parseBody(output.body, context)];
|
|
1586
1586
|
case 1:
|
|
1587
1587
|
data = _a.sent();
|
|
1588
1588
|
contents = {};
|
|
1589
1589
|
contents = deserializeAws_json1_1DetachManagedPolicyFromPermissionSetResponse(data, context);
|
|
1590
1590
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1591
|
-
return [2
|
|
1591
|
+
return [2, Promise.resolve(response)];
|
|
1592
1592
|
}
|
|
1593
1593
|
});
|
|
1594
1594
|
}); };
|
|
@@ -1600,63 +1600,63 @@ var deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommandError = fun
|
|
|
1600
1600
|
case 0:
|
|
1601
1601
|
_a = [__assign({}, output)];
|
|
1602
1602
|
_j = {};
|
|
1603
|
-
return [4
|
|
1603
|
+
return [4, parseBody(output.body, context)];
|
|
1604
1604
|
case 1:
|
|
1605
1605
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1606
1606
|
errorCode = "UnknownError";
|
|
1607
1607
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1608
1608
|
_b = errorCode;
|
|
1609
1609
|
switch (_b) {
|
|
1610
|
-
case "AccessDeniedException": return [3
|
|
1611
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1612
|
-
case "ConflictException": return [3
|
|
1613
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
1614
|
-
case "InternalServerException": return [3
|
|
1615
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1616
|
-
case "ResourceNotFoundException": return [3
|
|
1617
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1618
|
-
case "ThrottlingException": return [3
|
|
1619
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1620
|
-
case "ValidationException": return [3
|
|
1621
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1622
|
-
}
|
|
1623
|
-
return [3
|
|
1610
|
+
case "AccessDeniedException": return [3, 2];
|
|
1611
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1612
|
+
case "ConflictException": return [3, 4];
|
|
1613
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
1614
|
+
case "InternalServerException": return [3, 6];
|
|
1615
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
1616
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1617
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
1618
|
+
case "ThrottlingException": return [3, 10];
|
|
1619
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
1620
|
+
case "ValidationException": return [3, 12];
|
|
1621
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
1622
|
+
}
|
|
1623
|
+
return [3, 14];
|
|
1624
1624
|
case 2:
|
|
1625
1625
|
_c = [{}];
|
|
1626
|
-
return [4
|
|
1626
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1627
1627
|
case 3:
|
|
1628
1628
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1629
|
-
return [3
|
|
1629
|
+
return [3, 15];
|
|
1630
1630
|
case 4:
|
|
1631
1631
|
_d = [{}];
|
|
1632
|
-
return [4
|
|
1632
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1633
1633
|
case 5:
|
|
1634
1634
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1635
|
-
return [3
|
|
1635
|
+
return [3, 15];
|
|
1636
1636
|
case 6:
|
|
1637
1637
|
_e = [{}];
|
|
1638
|
-
return [4
|
|
1638
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1639
1639
|
case 7:
|
|
1640
1640
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1641
|
-
return [3
|
|
1641
|
+
return [3, 15];
|
|
1642
1642
|
case 8:
|
|
1643
1643
|
_f = [{}];
|
|
1644
|
-
return [4
|
|
1644
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1645
1645
|
case 9:
|
|
1646
1646
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1647
|
-
return [3
|
|
1647
|
+
return [3, 15];
|
|
1648
1648
|
case 10:
|
|
1649
1649
|
_g = [{}];
|
|
1650
|
-
return [4
|
|
1650
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1651
1651
|
case 11:
|
|
1652
1652
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1653
|
-
return [3
|
|
1653
|
+
return [3, 15];
|
|
1654
1654
|
case 12:
|
|
1655
1655
|
_h = [{}];
|
|
1656
|
-
return [4
|
|
1656
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1657
1657
|
case 13:
|
|
1658
1658
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1659
|
-
return [3
|
|
1659
|
+
return [3, 15];
|
|
1660
1660
|
case 14:
|
|
1661
1661
|
parsedBody = parsedOutput.body;
|
|
1662
1662
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1666,7 +1666,7 @@ var deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommandError = fun
|
|
|
1666
1666
|
message = response.message || response.Message || errorCode;
|
|
1667
1667
|
response.message = message;
|
|
1668
1668
|
delete response.Message;
|
|
1669
|
-
return [2
|
|
1669
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1670
1670
|
}
|
|
1671
1671
|
});
|
|
1672
1672
|
}); };
|
|
@@ -1676,15 +1676,15 @@ export var deserializeAws_json1_1GetInlinePolicyForPermissionSetCommand = functi
|
|
|
1676
1676
|
switch (_a.label) {
|
|
1677
1677
|
case 0:
|
|
1678
1678
|
if (output.statusCode >= 300) {
|
|
1679
|
-
return [2
|
|
1679
|
+
return [2, deserializeAws_json1_1GetInlinePolicyForPermissionSetCommandError(output, context)];
|
|
1680
1680
|
}
|
|
1681
|
-
return [4
|
|
1681
|
+
return [4, parseBody(output.body, context)];
|
|
1682
1682
|
case 1:
|
|
1683
1683
|
data = _a.sent();
|
|
1684
1684
|
contents = {};
|
|
1685
1685
|
contents = deserializeAws_json1_1GetInlinePolicyForPermissionSetResponse(data, context);
|
|
1686
1686
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1687
|
-
return [2
|
|
1687
|
+
return [2, Promise.resolve(response)];
|
|
1688
1688
|
}
|
|
1689
1689
|
});
|
|
1690
1690
|
}); };
|
|
@@ -1696,55 +1696,55 @@ var deserializeAws_json1_1GetInlinePolicyForPermissionSetCommandError = function
|
|
|
1696
1696
|
case 0:
|
|
1697
1697
|
_a = [__assign({}, output)];
|
|
1698
1698
|
_h = {};
|
|
1699
|
-
return [4
|
|
1699
|
+
return [4, parseBody(output.body, context)];
|
|
1700
1700
|
case 1:
|
|
1701
1701
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1702
1702
|
errorCode = "UnknownError";
|
|
1703
1703
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
1704
|
_b = errorCode;
|
|
1705
1705
|
switch (_b) {
|
|
1706
|
-
case "AccessDeniedException": return [3
|
|
1707
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1708
|
-
case "InternalServerException": return [3
|
|
1709
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1710
|
-
case "ResourceNotFoundException": return [3
|
|
1711
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1712
|
-
case "ThrottlingException": return [3
|
|
1713
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1714
|
-
case "ValidationException": return [3
|
|
1715
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1716
|
-
}
|
|
1717
|
-
return [3
|
|
1706
|
+
case "AccessDeniedException": return [3, 2];
|
|
1707
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1708
|
+
case "InternalServerException": return [3, 4];
|
|
1709
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1710
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1711
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1712
|
+
case "ThrottlingException": return [3, 8];
|
|
1713
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1714
|
+
case "ValidationException": return [3, 10];
|
|
1715
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1716
|
+
}
|
|
1717
|
+
return [3, 12];
|
|
1718
1718
|
case 2:
|
|
1719
1719
|
_c = [{}];
|
|
1720
|
-
return [4
|
|
1720
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1721
1721
|
case 3:
|
|
1722
1722
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1723
|
-
return [3
|
|
1723
|
+
return [3, 13];
|
|
1724
1724
|
case 4:
|
|
1725
1725
|
_d = [{}];
|
|
1726
|
-
return [4
|
|
1726
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1727
1727
|
case 5:
|
|
1728
1728
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1729
|
-
return [3
|
|
1729
|
+
return [3, 13];
|
|
1730
1730
|
case 6:
|
|
1731
1731
|
_e = [{}];
|
|
1732
|
-
return [4
|
|
1732
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1733
1733
|
case 7:
|
|
1734
1734
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1735
|
-
return [3
|
|
1735
|
+
return [3, 13];
|
|
1736
1736
|
case 8:
|
|
1737
1737
|
_f = [{}];
|
|
1738
|
-
return [4
|
|
1738
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1739
1739
|
case 9:
|
|
1740
1740
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1741
|
-
return [3
|
|
1741
|
+
return [3, 13];
|
|
1742
1742
|
case 10:
|
|
1743
1743
|
_g = [{}];
|
|
1744
|
-
return [4
|
|
1744
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1745
1745
|
case 11:
|
|
1746
1746
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1747
|
-
return [3
|
|
1747
|
+
return [3, 13];
|
|
1748
1748
|
case 12:
|
|
1749
1749
|
parsedBody = parsedOutput.body;
|
|
1750
1750
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1754,7 +1754,7 @@ var deserializeAws_json1_1GetInlinePolicyForPermissionSetCommandError = function
|
|
|
1754
1754
|
message = response.message || response.Message || errorCode;
|
|
1755
1755
|
response.message = message;
|
|
1756
1756
|
delete response.Message;
|
|
1757
|
-
return [2
|
|
1757
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1758
1758
|
}
|
|
1759
1759
|
});
|
|
1760
1760
|
}); };
|
|
@@ -1764,15 +1764,15 @@ export var deserializeAws_json1_1ListAccountAssignmentCreationStatusCommand = fu
|
|
|
1764
1764
|
switch (_a.label) {
|
|
1765
1765
|
case 0:
|
|
1766
1766
|
if (output.statusCode >= 300) {
|
|
1767
|
-
return [2
|
|
1767
|
+
return [2, deserializeAws_json1_1ListAccountAssignmentCreationStatusCommandError(output, context)];
|
|
1768
1768
|
}
|
|
1769
|
-
return [4
|
|
1769
|
+
return [4, parseBody(output.body, context)];
|
|
1770
1770
|
case 1:
|
|
1771
1771
|
data = _a.sent();
|
|
1772
1772
|
contents = {};
|
|
1773
1773
|
contents = deserializeAws_json1_1ListAccountAssignmentCreationStatusResponse(data, context);
|
|
1774
1774
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1775
|
-
return [2
|
|
1775
|
+
return [2, Promise.resolve(response)];
|
|
1776
1776
|
}
|
|
1777
1777
|
});
|
|
1778
1778
|
}); };
|
|
@@ -1784,55 +1784,55 @@ var deserializeAws_json1_1ListAccountAssignmentCreationStatusCommandError = func
|
|
|
1784
1784
|
case 0:
|
|
1785
1785
|
_a = [__assign({}, output)];
|
|
1786
1786
|
_h = {};
|
|
1787
|
-
return [4
|
|
1787
|
+
return [4, parseBody(output.body, context)];
|
|
1788
1788
|
case 1:
|
|
1789
1789
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1790
1790
|
errorCode = "UnknownError";
|
|
1791
1791
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
1792
|
_b = errorCode;
|
|
1793
1793
|
switch (_b) {
|
|
1794
|
-
case "AccessDeniedException": return [3
|
|
1795
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1796
|
-
case "InternalServerException": return [3
|
|
1797
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1798
|
-
case "ResourceNotFoundException": return [3
|
|
1799
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1800
|
-
case "ThrottlingException": return [3
|
|
1801
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1802
|
-
case "ValidationException": return [3
|
|
1803
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1804
|
-
}
|
|
1805
|
-
return [3
|
|
1794
|
+
case "AccessDeniedException": return [3, 2];
|
|
1795
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1796
|
+
case "InternalServerException": return [3, 4];
|
|
1797
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1798
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1799
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1800
|
+
case "ThrottlingException": return [3, 8];
|
|
1801
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1802
|
+
case "ValidationException": return [3, 10];
|
|
1803
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1804
|
+
}
|
|
1805
|
+
return [3, 12];
|
|
1806
1806
|
case 2:
|
|
1807
1807
|
_c = [{}];
|
|
1808
|
-
return [4
|
|
1808
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1809
1809
|
case 3:
|
|
1810
1810
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1811
|
-
return [3
|
|
1811
|
+
return [3, 13];
|
|
1812
1812
|
case 4:
|
|
1813
1813
|
_d = [{}];
|
|
1814
|
-
return [4
|
|
1814
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1815
1815
|
case 5:
|
|
1816
1816
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1817
|
-
return [3
|
|
1817
|
+
return [3, 13];
|
|
1818
1818
|
case 6:
|
|
1819
1819
|
_e = [{}];
|
|
1820
|
-
return [4
|
|
1820
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1821
1821
|
case 7:
|
|
1822
1822
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1823
|
-
return [3
|
|
1823
|
+
return [3, 13];
|
|
1824
1824
|
case 8:
|
|
1825
1825
|
_f = [{}];
|
|
1826
|
-
return [4
|
|
1826
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1827
1827
|
case 9:
|
|
1828
1828
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1829
|
-
return [3
|
|
1829
|
+
return [3, 13];
|
|
1830
1830
|
case 10:
|
|
1831
1831
|
_g = [{}];
|
|
1832
|
-
return [4
|
|
1832
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1833
1833
|
case 11:
|
|
1834
1834
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1835
|
-
return [3
|
|
1835
|
+
return [3, 13];
|
|
1836
1836
|
case 12:
|
|
1837
1837
|
parsedBody = parsedOutput.body;
|
|
1838
1838
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1842,7 +1842,7 @@ var deserializeAws_json1_1ListAccountAssignmentCreationStatusCommandError = func
|
|
|
1842
1842
|
message = response.message || response.Message || errorCode;
|
|
1843
1843
|
response.message = message;
|
|
1844
1844
|
delete response.Message;
|
|
1845
|
-
return [2
|
|
1845
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1846
1846
|
}
|
|
1847
1847
|
});
|
|
1848
1848
|
}); };
|
|
@@ -1852,15 +1852,15 @@ export var deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommand = fu
|
|
|
1852
1852
|
switch (_a.label) {
|
|
1853
1853
|
case 0:
|
|
1854
1854
|
if (output.statusCode >= 300) {
|
|
1855
|
-
return [2
|
|
1855
|
+
return [2, deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommandError(output, context)];
|
|
1856
1856
|
}
|
|
1857
|
-
return [4
|
|
1857
|
+
return [4, parseBody(output.body, context)];
|
|
1858
1858
|
case 1:
|
|
1859
1859
|
data = _a.sent();
|
|
1860
1860
|
contents = {};
|
|
1861
1861
|
contents = deserializeAws_json1_1ListAccountAssignmentDeletionStatusResponse(data, context);
|
|
1862
1862
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1863
|
-
return [2
|
|
1863
|
+
return [2, Promise.resolve(response)];
|
|
1864
1864
|
}
|
|
1865
1865
|
});
|
|
1866
1866
|
}); };
|
|
@@ -1872,55 +1872,55 @@ var deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommandError = func
|
|
|
1872
1872
|
case 0:
|
|
1873
1873
|
_a = [__assign({}, output)];
|
|
1874
1874
|
_h = {};
|
|
1875
|
-
return [4
|
|
1875
|
+
return [4, parseBody(output.body, context)];
|
|
1876
1876
|
case 1:
|
|
1877
1877
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1878
1878
|
errorCode = "UnknownError";
|
|
1879
1879
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1880
1880
|
_b = errorCode;
|
|
1881
1881
|
switch (_b) {
|
|
1882
|
-
case "AccessDeniedException": return [3
|
|
1883
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1884
|
-
case "InternalServerException": return [3
|
|
1885
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1886
|
-
case "ResourceNotFoundException": return [3
|
|
1887
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1888
|
-
case "ThrottlingException": return [3
|
|
1889
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1890
|
-
case "ValidationException": return [3
|
|
1891
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1892
|
-
}
|
|
1893
|
-
return [3
|
|
1882
|
+
case "AccessDeniedException": return [3, 2];
|
|
1883
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1884
|
+
case "InternalServerException": return [3, 4];
|
|
1885
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1886
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1887
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1888
|
+
case "ThrottlingException": return [3, 8];
|
|
1889
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1890
|
+
case "ValidationException": return [3, 10];
|
|
1891
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1892
|
+
}
|
|
1893
|
+
return [3, 12];
|
|
1894
1894
|
case 2:
|
|
1895
1895
|
_c = [{}];
|
|
1896
|
-
return [4
|
|
1896
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1897
1897
|
case 3:
|
|
1898
1898
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1899
|
-
return [3
|
|
1899
|
+
return [3, 13];
|
|
1900
1900
|
case 4:
|
|
1901
1901
|
_d = [{}];
|
|
1902
|
-
return [4
|
|
1902
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1903
1903
|
case 5:
|
|
1904
1904
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1905
|
-
return [3
|
|
1905
|
+
return [3, 13];
|
|
1906
1906
|
case 6:
|
|
1907
1907
|
_e = [{}];
|
|
1908
|
-
return [4
|
|
1908
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1909
1909
|
case 7:
|
|
1910
1910
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1911
|
-
return [3
|
|
1911
|
+
return [3, 13];
|
|
1912
1912
|
case 8:
|
|
1913
1913
|
_f = [{}];
|
|
1914
|
-
return [4
|
|
1914
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1915
1915
|
case 9:
|
|
1916
1916
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1917
|
-
return [3
|
|
1917
|
+
return [3, 13];
|
|
1918
1918
|
case 10:
|
|
1919
1919
|
_g = [{}];
|
|
1920
|
-
return [4
|
|
1920
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1921
1921
|
case 11:
|
|
1922
1922
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1923
|
-
return [3
|
|
1923
|
+
return [3, 13];
|
|
1924
1924
|
case 12:
|
|
1925
1925
|
parsedBody = parsedOutput.body;
|
|
1926
1926
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1930,7 +1930,7 @@ var deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommandError = func
|
|
|
1930
1930
|
message = response.message || response.Message || errorCode;
|
|
1931
1931
|
response.message = message;
|
|
1932
1932
|
delete response.Message;
|
|
1933
|
-
return [2
|
|
1933
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1934
1934
|
}
|
|
1935
1935
|
});
|
|
1936
1936
|
}); };
|
|
@@ -1940,15 +1940,15 @@ export var deserializeAws_json1_1ListAccountAssignmentsCommand = function (outpu
|
|
|
1940
1940
|
switch (_a.label) {
|
|
1941
1941
|
case 0:
|
|
1942
1942
|
if (output.statusCode >= 300) {
|
|
1943
|
-
return [2
|
|
1943
|
+
return [2, deserializeAws_json1_1ListAccountAssignmentsCommandError(output, context)];
|
|
1944
1944
|
}
|
|
1945
|
-
return [4
|
|
1945
|
+
return [4, parseBody(output.body, context)];
|
|
1946
1946
|
case 1:
|
|
1947
1947
|
data = _a.sent();
|
|
1948
1948
|
contents = {};
|
|
1949
1949
|
contents = deserializeAws_json1_1ListAccountAssignmentsResponse(data, context);
|
|
1950
1950
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1951
|
-
return [2
|
|
1951
|
+
return [2, Promise.resolve(response)];
|
|
1952
1952
|
}
|
|
1953
1953
|
});
|
|
1954
1954
|
}); };
|
|
@@ -1960,55 +1960,55 @@ var deserializeAws_json1_1ListAccountAssignmentsCommandError = function (output,
|
|
|
1960
1960
|
case 0:
|
|
1961
1961
|
_a = [__assign({}, output)];
|
|
1962
1962
|
_h = {};
|
|
1963
|
-
return [4
|
|
1963
|
+
return [4, parseBody(output.body, context)];
|
|
1964
1964
|
case 1:
|
|
1965
1965
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1966
1966
|
errorCode = "UnknownError";
|
|
1967
1967
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
1968
|
_b = errorCode;
|
|
1969
1969
|
switch (_b) {
|
|
1970
|
-
case "AccessDeniedException": return [3
|
|
1971
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
1972
|
-
case "InternalServerException": return [3
|
|
1973
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
1974
|
-
case "ResourceNotFoundException": return [3
|
|
1975
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
1976
|
-
case "ThrottlingException": return [3
|
|
1977
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
1978
|
-
case "ValidationException": return [3
|
|
1979
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
1980
|
-
}
|
|
1981
|
-
return [3
|
|
1970
|
+
case "AccessDeniedException": return [3, 2];
|
|
1971
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
1972
|
+
case "InternalServerException": return [3, 4];
|
|
1973
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
1974
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1975
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
1976
|
+
case "ThrottlingException": return [3, 8];
|
|
1977
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
1978
|
+
case "ValidationException": return [3, 10];
|
|
1979
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
1980
|
+
}
|
|
1981
|
+
return [3, 12];
|
|
1982
1982
|
case 2:
|
|
1983
1983
|
_c = [{}];
|
|
1984
|
-
return [4
|
|
1984
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1985
1985
|
case 3:
|
|
1986
1986
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1987
|
-
return [3
|
|
1987
|
+
return [3, 13];
|
|
1988
1988
|
case 4:
|
|
1989
1989
|
_d = [{}];
|
|
1990
|
-
return [4
|
|
1990
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1991
1991
|
case 5:
|
|
1992
1992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1993
|
-
return [3
|
|
1993
|
+
return [3, 13];
|
|
1994
1994
|
case 6:
|
|
1995
1995
|
_e = [{}];
|
|
1996
|
-
return [4
|
|
1996
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1997
1997
|
case 7:
|
|
1998
1998
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1999
|
-
return [3
|
|
1999
|
+
return [3, 13];
|
|
2000
2000
|
case 8:
|
|
2001
2001
|
_f = [{}];
|
|
2002
|
-
return [4
|
|
2002
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2003
2003
|
case 9:
|
|
2004
2004
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2005
|
-
return [3
|
|
2005
|
+
return [3, 13];
|
|
2006
2006
|
case 10:
|
|
2007
2007
|
_g = [{}];
|
|
2008
|
-
return [4
|
|
2008
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2009
2009
|
case 11:
|
|
2010
2010
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2011
|
-
return [3
|
|
2011
|
+
return [3, 13];
|
|
2012
2012
|
case 12:
|
|
2013
2013
|
parsedBody = parsedOutput.body;
|
|
2014
2014
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2018,7 +2018,7 @@ var deserializeAws_json1_1ListAccountAssignmentsCommandError = function (output,
|
|
|
2018
2018
|
message = response.message || response.Message || errorCode;
|
|
2019
2019
|
response.message = message;
|
|
2020
2020
|
delete response.Message;
|
|
2021
|
-
return [2
|
|
2021
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
2024
2024
|
}); };
|
|
@@ -2028,15 +2028,15 @@ export var deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommand
|
|
|
2028
2028
|
switch (_a.label) {
|
|
2029
2029
|
case 0:
|
|
2030
2030
|
if (output.statusCode >= 300) {
|
|
2031
|
-
return [2
|
|
2031
|
+
return [2, deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommandError(output, context)];
|
|
2032
2032
|
}
|
|
2033
|
-
return [4
|
|
2033
|
+
return [4, parseBody(output.body, context)];
|
|
2034
2034
|
case 1:
|
|
2035
2035
|
data = _a.sent();
|
|
2036
2036
|
contents = {};
|
|
2037
2037
|
contents = deserializeAws_json1_1ListAccountsForProvisionedPermissionSetResponse(data, context);
|
|
2038
2038
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2039
|
-
return [2
|
|
2039
|
+
return [2, Promise.resolve(response)];
|
|
2040
2040
|
}
|
|
2041
2041
|
});
|
|
2042
2042
|
}); };
|
|
@@ -2048,55 +2048,55 @@ var deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommandError =
|
|
|
2048
2048
|
case 0:
|
|
2049
2049
|
_a = [__assign({}, output)];
|
|
2050
2050
|
_h = {};
|
|
2051
|
-
return [4
|
|
2051
|
+
return [4, parseBody(output.body, context)];
|
|
2052
2052
|
case 1:
|
|
2053
2053
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2054
2054
|
errorCode = "UnknownError";
|
|
2055
2055
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
2056
|
_b = errorCode;
|
|
2057
2057
|
switch (_b) {
|
|
2058
|
-
case "AccessDeniedException": return [3
|
|
2059
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2060
|
-
case "InternalServerException": return [3
|
|
2061
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2062
|
-
case "ResourceNotFoundException": return [3
|
|
2063
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2064
|
-
case "ThrottlingException": return [3
|
|
2065
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2066
|
-
case "ValidationException": return [3
|
|
2067
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2068
|
-
}
|
|
2069
|
-
return [3
|
|
2058
|
+
case "AccessDeniedException": return [3, 2];
|
|
2059
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2060
|
+
case "InternalServerException": return [3, 4];
|
|
2061
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
2062
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2063
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
2064
|
+
case "ThrottlingException": return [3, 8];
|
|
2065
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
2066
|
+
case "ValidationException": return [3, 10];
|
|
2067
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
2068
|
+
}
|
|
2069
|
+
return [3, 12];
|
|
2070
2070
|
case 2:
|
|
2071
2071
|
_c = [{}];
|
|
2072
|
-
return [4
|
|
2072
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2073
2073
|
case 3:
|
|
2074
2074
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2075
|
-
return [3
|
|
2075
|
+
return [3, 13];
|
|
2076
2076
|
case 4:
|
|
2077
2077
|
_d = [{}];
|
|
2078
|
-
return [4
|
|
2078
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2079
2079
|
case 5:
|
|
2080
2080
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2081
|
-
return [3
|
|
2081
|
+
return [3, 13];
|
|
2082
2082
|
case 6:
|
|
2083
2083
|
_e = [{}];
|
|
2084
|
-
return [4
|
|
2084
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2085
2085
|
case 7:
|
|
2086
2086
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2087
|
-
return [3
|
|
2087
|
+
return [3, 13];
|
|
2088
2088
|
case 8:
|
|
2089
2089
|
_f = [{}];
|
|
2090
|
-
return [4
|
|
2090
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2091
2091
|
case 9:
|
|
2092
2092
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2093
|
-
return [3
|
|
2093
|
+
return [3, 13];
|
|
2094
2094
|
case 10:
|
|
2095
2095
|
_g = [{}];
|
|
2096
|
-
return [4
|
|
2096
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2097
2097
|
case 11:
|
|
2098
2098
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2099
|
-
return [3
|
|
2099
|
+
return [3, 13];
|
|
2100
2100
|
case 12:
|
|
2101
2101
|
parsedBody = parsedOutput.body;
|
|
2102
2102
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2106,7 +2106,7 @@ var deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommandError =
|
|
|
2106
2106
|
message = response.message || response.Message || errorCode;
|
|
2107
2107
|
response.message = message;
|
|
2108
2108
|
delete response.Message;
|
|
2109
|
-
return [2
|
|
2109
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2110
2110
|
}
|
|
2111
2111
|
});
|
|
2112
2112
|
}); };
|
|
@@ -2116,15 +2116,15 @@ export var deserializeAws_json1_1ListInstancesCommand = function (output, contex
|
|
|
2116
2116
|
switch (_a.label) {
|
|
2117
2117
|
case 0:
|
|
2118
2118
|
if (output.statusCode >= 300) {
|
|
2119
|
-
return [2
|
|
2119
|
+
return [2, deserializeAws_json1_1ListInstancesCommandError(output, context)];
|
|
2120
2120
|
}
|
|
2121
|
-
return [4
|
|
2121
|
+
return [4, parseBody(output.body, context)];
|
|
2122
2122
|
case 1:
|
|
2123
2123
|
data = _a.sent();
|
|
2124
2124
|
contents = {};
|
|
2125
2125
|
contents = deserializeAws_json1_1ListInstancesResponse(data, context);
|
|
2126
2126
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2127
|
-
return [2
|
|
2127
|
+
return [2, Promise.resolve(response)];
|
|
2128
2128
|
}
|
|
2129
2129
|
});
|
|
2130
2130
|
}); };
|
|
@@ -2136,47 +2136,47 @@ var deserializeAws_json1_1ListInstancesCommandError = function (output, context)
|
|
|
2136
2136
|
case 0:
|
|
2137
2137
|
_a = [__assign({}, output)];
|
|
2138
2138
|
_g = {};
|
|
2139
|
-
return [4
|
|
2139
|
+
return [4, parseBody(output.body, context)];
|
|
2140
2140
|
case 1:
|
|
2141
2141
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2142
2142
|
errorCode = "UnknownError";
|
|
2143
2143
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2144
2144
|
_b = errorCode;
|
|
2145
2145
|
switch (_b) {
|
|
2146
|
-
case "AccessDeniedException": return [3
|
|
2147
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2148
|
-
case "InternalServerException": return [3
|
|
2149
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2150
|
-
case "ThrottlingException": return [3
|
|
2151
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2152
|
-
case "ValidationException": return [3
|
|
2153
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2154
|
-
}
|
|
2155
|
-
return [3
|
|
2146
|
+
case "AccessDeniedException": return [3, 2];
|
|
2147
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2148
|
+
case "InternalServerException": return [3, 4];
|
|
2149
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
2150
|
+
case "ThrottlingException": return [3, 6];
|
|
2151
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 6];
|
|
2152
|
+
case "ValidationException": return [3, 8];
|
|
2153
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 8];
|
|
2154
|
+
}
|
|
2155
|
+
return [3, 10];
|
|
2156
2156
|
case 2:
|
|
2157
2157
|
_c = [{}];
|
|
2158
|
-
return [4
|
|
2158
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2159
2159
|
case 3:
|
|
2160
2160
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2161
|
-
return [3
|
|
2161
|
+
return [3, 11];
|
|
2162
2162
|
case 4:
|
|
2163
2163
|
_d = [{}];
|
|
2164
|
-
return [4
|
|
2164
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2165
2165
|
case 5:
|
|
2166
2166
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2167
|
-
return [3
|
|
2167
|
+
return [3, 11];
|
|
2168
2168
|
case 6:
|
|
2169
2169
|
_e = [{}];
|
|
2170
|
-
return [4
|
|
2170
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2171
2171
|
case 7:
|
|
2172
2172
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2173
|
-
return [3
|
|
2173
|
+
return [3, 11];
|
|
2174
2174
|
case 8:
|
|
2175
2175
|
_f = [{}];
|
|
2176
|
-
return [4
|
|
2176
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2177
2177
|
case 9:
|
|
2178
2178
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2179
|
-
return [3
|
|
2179
|
+
return [3, 11];
|
|
2180
2180
|
case 10:
|
|
2181
2181
|
parsedBody = parsedOutput.body;
|
|
2182
2182
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2186,7 +2186,7 @@ var deserializeAws_json1_1ListInstancesCommandError = function (output, context)
|
|
|
2186
2186
|
message = response.message || response.Message || errorCode;
|
|
2187
2187
|
response.message = message;
|
|
2188
2188
|
delete response.Message;
|
|
2189
|
-
return [2
|
|
2189
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2190
2190
|
}
|
|
2191
2191
|
});
|
|
2192
2192
|
}); };
|
|
@@ -2196,15 +2196,15 @@ export var deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommand = fun
|
|
|
2196
2196
|
switch (_a.label) {
|
|
2197
2197
|
case 0:
|
|
2198
2198
|
if (output.statusCode >= 300) {
|
|
2199
|
-
return [2
|
|
2199
|
+
return [2, deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommandError(output, context)];
|
|
2200
2200
|
}
|
|
2201
|
-
return [4
|
|
2201
|
+
return [4, parseBody(output.body, context)];
|
|
2202
2202
|
case 1:
|
|
2203
2203
|
data = _a.sent();
|
|
2204
2204
|
contents = {};
|
|
2205
2205
|
contents = deserializeAws_json1_1ListManagedPoliciesInPermissionSetResponse(data, context);
|
|
2206
2206
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2207
|
-
return [2
|
|
2207
|
+
return [2, Promise.resolve(response)];
|
|
2208
2208
|
}
|
|
2209
2209
|
});
|
|
2210
2210
|
}); };
|
|
@@ -2216,55 +2216,55 @@ var deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommandError = funct
|
|
|
2216
2216
|
case 0:
|
|
2217
2217
|
_a = [__assign({}, output)];
|
|
2218
2218
|
_h = {};
|
|
2219
|
-
return [4
|
|
2219
|
+
return [4, parseBody(output.body, context)];
|
|
2220
2220
|
case 1:
|
|
2221
2221
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2222
2222
|
errorCode = "UnknownError";
|
|
2223
2223
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
2224
|
_b = errorCode;
|
|
2225
2225
|
switch (_b) {
|
|
2226
|
-
case "AccessDeniedException": return [3
|
|
2227
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2228
|
-
case "InternalServerException": return [3
|
|
2229
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2230
|
-
case "ResourceNotFoundException": return [3
|
|
2231
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2232
|
-
case "ThrottlingException": return [3
|
|
2233
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2234
|
-
case "ValidationException": return [3
|
|
2235
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2236
|
-
}
|
|
2237
|
-
return [3
|
|
2226
|
+
case "AccessDeniedException": return [3, 2];
|
|
2227
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2228
|
+
case "InternalServerException": return [3, 4];
|
|
2229
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
2230
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2231
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
2232
|
+
case "ThrottlingException": return [3, 8];
|
|
2233
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
2234
|
+
case "ValidationException": return [3, 10];
|
|
2235
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
2236
|
+
}
|
|
2237
|
+
return [3, 12];
|
|
2238
2238
|
case 2:
|
|
2239
2239
|
_c = [{}];
|
|
2240
|
-
return [4
|
|
2240
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2241
2241
|
case 3:
|
|
2242
2242
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2243
|
-
return [3
|
|
2243
|
+
return [3, 13];
|
|
2244
2244
|
case 4:
|
|
2245
2245
|
_d = [{}];
|
|
2246
|
-
return [4
|
|
2246
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2247
2247
|
case 5:
|
|
2248
2248
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2249
|
-
return [3
|
|
2249
|
+
return [3, 13];
|
|
2250
2250
|
case 6:
|
|
2251
2251
|
_e = [{}];
|
|
2252
|
-
return [4
|
|
2252
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2253
2253
|
case 7:
|
|
2254
2254
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2255
|
-
return [3
|
|
2255
|
+
return [3, 13];
|
|
2256
2256
|
case 8:
|
|
2257
2257
|
_f = [{}];
|
|
2258
|
-
return [4
|
|
2258
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2259
2259
|
case 9:
|
|
2260
2260
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2261
|
-
return [3
|
|
2261
|
+
return [3, 13];
|
|
2262
2262
|
case 10:
|
|
2263
2263
|
_g = [{}];
|
|
2264
|
-
return [4
|
|
2264
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2265
2265
|
case 11:
|
|
2266
2266
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2267
|
-
return [3
|
|
2267
|
+
return [3, 13];
|
|
2268
2268
|
case 12:
|
|
2269
2269
|
parsedBody = parsedOutput.body;
|
|
2270
2270
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2274,7 +2274,7 @@ var deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommandError = funct
|
|
|
2274
2274
|
message = response.message || response.Message || errorCode;
|
|
2275
2275
|
response.message = message;
|
|
2276
2276
|
delete response.Message;
|
|
2277
|
-
return [2
|
|
2277
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2278
2278
|
}
|
|
2279
2279
|
});
|
|
2280
2280
|
}); };
|
|
@@ -2284,15 +2284,15 @@ export var deserializeAws_json1_1ListPermissionSetProvisioningStatusCommand = fu
|
|
|
2284
2284
|
switch (_a.label) {
|
|
2285
2285
|
case 0:
|
|
2286
2286
|
if (output.statusCode >= 300) {
|
|
2287
|
-
return [2
|
|
2287
|
+
return [2, deserializeAws_json1_1ListPermissionSetProvisioningStatusCommandError(output, context)];
|
|
2288
2288
|
}
|
|
2289
|
-
return [4
|
|
2289
|
+
return [4, parseBody(output.body, context)];
|
|
2290
2290
|
case 1:
|
|
2291
2291
|
data = _a.sent();
|
|
2292
2292
|
contents = {};
|
|
2293
2293
|
contents = deserializeAws_json1_1ListPermissionSetProvisioningStatusResponse(data, context);
|
|
2294
2294
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2295
|
-
return [2
|
|
2295
|
+
return [2, Promise.resolve(response)];
|
|
2296
2296
|
}
|
|
2297
2297
|
});
|
|
2298
2298
|
}); };
|
|
@@ -2304,55 +2304,55 @@ var deserializeAws_json1_1ListPermissionSetProvisioningStatusCommandError = func
|
|
|
2304
2304
|
case 0:
|
|
2305
2305
|
_a = [__assign({}, output)];
|
|
2306
2306
|
_h = {};
|
|
2307
|
-
return [4
|
|
2307
|
+
return [4, parseBody(output.body, context)];
|
|
2308
2308
|
case 1:
|
|
2309
2309
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2310
2310
|
errorCode = "UnknownError";
|
|
2311
2311
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2312
2312
|
_b = errorCode;
|
|
2313
2313
|
switch (_b) {
|
|
2314
|
-
case "AccessDeniedException": return [3
|
|
2315
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2316
|
-
case "InternalServerException": return [3
|
|
2317
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2318
|
-
case "ResourceNotFoundException": return [3
|
|
2319
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2320
|
-
case "ThrottlingException": return [3
|
|
2321
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2322
|
-
case "ValidationException": return [3
|
|
2323
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2324
|
-
}
|
|
2325
|
-
return [3
|
|
2314
|
+
case "AccessDeniedException": return [3, 2];
|
|
2315
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2316
|
+
case "InternalServerException": return [3, 4];
|
|
2317
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
2318
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2319
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
2320
|
+
case "ThrottlingException": return [3, 8];
|
|
2321
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
2322
|
+
case "ValidationException": return [3, 10];
|
|
2323
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
2324
|
+
}
|
|
2325
|
+
return [3, 12];
|
|
2326
2326
|
case 2:
|
|
2327
2327
|
_c = [{}];
|
|
2328
|
-
return [4
|
|
2328
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2329
2329
|
case 3:
|
|
2330
2330
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2331
|
-
return [3
|
|
2331
|
+
return [3, 13];
|
|
2332
2332
|
case 4:
|
|
2333
2333
|
_d = [{}];
|
|
2334
|
-
return [4
|
|
2334
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2335
2335
|
case 5:
|
|
2336
2336
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2337
|
-
return [3
|
|
2337
|
+
return [3, 13];
|
|
2338
2338
|
case 6:
|
|
2339
2339
|
_e = [{}];
|
|
2340
|
-
return [4
|
|
2340
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2341
2341
|
case 7:
|
|
2342
2342
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2343
|
-
return [3
|
|
2343
|
+
return [3, 13];
|
|
2344
2344
|
case 8:
|
|
2345
2345
|
_f = [{}];
|
|
2346
|
-
return [4
|
|
2346
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2347
2347
|
case 9:
|
|
2348
2348
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2349
|
-
return [3
|
|
2349
|
+
return [3, 13];
|
|
2350
2350
|
case 10:
|
|
2351
2351
|
_g = [{}];
|
|
2352
|
-
return [4
|
|
2352
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2353
2353
|
case 11:
|
|
2354
2354
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2355
|
-
return [3
|
|
2355
|
+
return [3, 13];
|
|
2356
2356
|
case 12:
|
|
2357
2357
|
parsedBody = parsedOutput.body;
|
|
2358
2358
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2362,7 +2362,7 @@ var deserializeAws_json1_1ListPermissionSetProvisioningStatusCommandError = func
|
|
|
2362
2362
|
message = response.message || response.Message || errorCode;
|
|
2363
2363
|
response.message = message;
|
|
2364
2364
|
delete response.Message;
|
|
2365
|
-
return [2
|
|
2365
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2366
2366
|
}
|
|
2367
2367
|
});
|
|
2368
2368
|
}); };
|
|
@@ -2372,15 +2372,15 @@ export var deserializeAws_json1_1ListPermissionSetsCommand = function (output, c
|
|
|
2372
2372
|
switch (_a.label) {
|
|
2373
2373
|
case 0:
|
|
2374
2374
|
if (output.statusCode >= 300) {
|
|
2375
|
-
return [2
|
|
2375
|
+
return [2, deserializeAws_json1_1ListPermissionSetsCommandError(output, context)];
|
|
2376
2376
|
}
|
|
2377
|
-
return [4
|
|
2377
|
+
return [4, parseBody(output.body, context)];
|
|
2378
2378
|
case 1:
|
|
2379
2379
|
data = _a.sent();
|
|
2380
2380
|
contents = {};
|
|
2381
2381
|
contents = deserializeAws_json1_1ListPermissionSetsResponse(data, context);
|
|
2382
2382
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2383
|
-
return [2
|
|
2383
|
+
return [2, Promise.resolve(response)];
|
|
2384
2384
|
}
|
|
2385
2385
|
});
|
|
2386
2386
|
}); };
|
|
@@ -2392,55 +2392,55 @@ var deserializeAws_json1_1ListPermissionSetsCommandError = function (output, con
|
|
|
2392
2392
|
case 0:
|
|
2393
2393
|
_a = [__assign({}, output)];
|
|
2394
2394
|
_h = {};
|
|
2395
|
-
return [4
|
|
2395
|
+
return [4, parseBody(output.body, context)];
|
|
2396
2396
|
case 1:
|
|
2397
2397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2398
2398
|
errorCode = "UnknownError";
|
|
2399
2399
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
2400
|
_b = errorCode;
|
|
2401
2401
|
switch (_b) {
|
|
2402
|
-
case "AccessDeniedException": return [3
|
|
2403
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2404
|
-
case "InternalServerException": return [3
|
|
2405
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2406
|
-
case "ResourceNotFoundException": return [3
|
|
2407
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2408
|
-
case "ThrottlingException": return [3
|
|
2409
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2410
|
-
case "ValidationException": return [3
|
|
2411
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2412
|
-
}
|
|
2413
|
-
return [3
|
|
2402
|
+
case "AccessDeniedException": return [3, 2];
|
|
2403
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2404
|
+
case "InternalServerException": return [3, 4];
|
|
2405
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
2406
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2407
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
2408
|
+
case "ThrottlingException": return [3, 8];
|
|
2409
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
2410
|
+
case "ValidationException": return [3, 10];
|
|
2411
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
2412
|
+
}
|
|
2413
|
+
return [3, 12];
|
|
2414
2414
|
case 2:
|
|
2415
2415
|
_c = [{}];
|
|
2416
|
-
return [4
|
|
2416
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2417
2417
|
case 3:
|
|
2418
2418
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2419
|
-
return [3
|
|
2419
|
+
return [3, 13];
|
|
2420
2420
|
case 4:
|
|
2421
2421
|
_d = [{}];
|
|
2422
|
-
return [4
|
|
2422
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2423
2423
|
case 5:
|
|
2424
2424
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2425
|
-
return [3
|
|
2425
|
+
return [3, 13];
|
|
2426
2426
|
case 6:
|
|
2427
2427
|
_e = [{}];
|
|
2428
|
-
return [4
|
|
2428
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2429
2429
|
case 7:
|
|
2430
2430
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2431
|
-
return [3
|
|
2431
|
+
return [3, 13];
|
|
2432
2432
|
case 8:
|
|
2433
2433
|
_f = [{}];
|
|
2434
|
-
return [4
|
|
2434
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2435
2435
|
case 9:
|
|
2436
2436
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2437
|
-
return [3
|
|
2437
|
+
return [3, 13];
|
|
2438
2438
|
case 10:
|
|
2439
2439
|
_g = [{}];
|
|
2440
|
-
return [4
|
|
2440
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2441
2441
|
case 11:
|
|
2442
2442
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2443
|
-
return [3
|
|
2443
|
+
return [3, 13];
|
|
2444
2444
|
case 12:
|
|
2445
2445
|
parsedBody = parsedOutput.body;
|
|
2446
2446
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2450,7 +2450,7 @@ var deserializeAws_json1_1ListPermissionSetsCommandError = function (output, con
|
|
|
2450
2450
|
message = response.message || response.Message || errorCode;
|
|
2451
2451
|
response.message = message;
|
|
2452
2452
|
delete response.Message;
|
|
2453
|
-
return [2
|
|
2453
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2454
2454
|
}
|
|
2455
2455
|
});
|
|
2456
2456
|
}); };
|
|
@@ -2460,15 +2460,15 @@ export var deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommand =
|
|
|
2460
2460
|
switch (_a.label) {
|
|
2461
2461
|
case 0:
|
|
2462
2462
|
if (output.statusCode >= 300) {
|
|
2463
|
-
return [2
|
|
2463
|
+
return [2, deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommandError(output, context)];
|
|
2464
2464
|
}
|
|
2465
|
-
return [4
|
|
2465
|
+
return [4, parseBody(output.body, context)];
|
|
2466
2466
|
case 1:
|
|
2467
2467
|
data = _a.sent();
|
|
2468
2468
|
contents = {};
|
|
2469
2469
|
contents = deserializeAws_json1_1ListPermissionSetsProvisionedToAccountResponse(data, context);
|
|
2470
2470
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2471
|
-
return [2
|
|
2471
|
+
return [2, Promise.resolve(response)];
|
|
2472
2472
|
}
|
|
2473
2473
|
});
|
|
2474
2474
|
}); };
|
|
@@ -2480,55 +2480,55 @@ var deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommandError = f
|
|
|
2480
2480
|
case 0:
|
|
2481
2481
|
_a = [__assign({}, output)];
|
|
2482
2482
|
_h = {};
|
|
2483
|
-
return [4
|
|
2483
|
+
return [4, parseBody(output.body, context)];
|
|
2484
2484
|
case 1:
|
|
2485
2485
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2486
2486
|
errorCode = "UnknownError";
|
|
2487
2487
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
2488
|
_b = errorCode;
|
|
2489
2489
|
switch (_b) {
|
|
2490
|
-
case "AccessDeniedException": return [3
|
|
2491
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2492
|
-
case "InternalServerException": return [3
|
|
2493
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2494
|
-
case "ResourceNotFoundException": return [3
|
|
2495
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2496
|
-
case "ThrottlingException": return [3
|
|
2497
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2498
|
-
case "ValidationException": return [3
|
|
2499
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2500
|
-
}
|
|
2501
|
-
return [3
|
|
2490
|
+
case "AccessDeniedException": return [3, 2];
|
|
2491
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2492
|
+
case "InternalServerException": return [3, 4];
|
|
2493
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
2494
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2495
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
2496
|
+
case "ThrottlingException": return [3, 8];
|
|
2497
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
2498
|
+
case "ValidationException": return [3, 10];
|
|
2499
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
2500
|
+
}
|
|
2501
|
+
return [3, 12];
|
|
2502
2502
|
case 2:
|
|
2503
2503
|
_c = [{}];
|
|
2504
|
-
return [4
|
|
2504
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2505
2505
|
case 3:
|
|
2506
2506
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2507
|
-
return [3
|
|
2507
|
+
return [3, 13];
|
|
2508
2508
|
case 4:
|
|
2509
2509
|
_d = [{}];
|
|
2510
|
-
return [4
|
|
2510
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2511
2511
|
case 5:
|
|
2512
2512
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2513
|
-
return [3
|
|
2513
|
+
return [3, 13];
|
|
2514
2514
|
case 6:
|
|
2515
2515
|
_e = [{}];
|
|
2516
|
-
return [4
|
|
2516
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2517
2517
|
case 7:
|
|
2518
2518
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2519
|
-
return [3
|
|
2519
|
+
return [3, 13];
|
|
2520
2520
|
case 8:
|
|
2521
2521
|
_f = [{}];
|
|
2522
|
-
return [4
|
|
2522
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2523
2523
|
case 9:
|
|
2524
2524
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2525
|
-
return [3
|
|
2525
|
+
return [3, 13];
|
|
2526
2526
|
case 10:
|
|
2527
2527
|
_g = [{}];
|
|
2528
|
-
return [4
|
|
2528
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2529
2529
|
case 11:
|
|
2530
2530
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2531
|
-
return [3
|
|
2531
|
+
return [3, 13];
|
|
2532
2532
|
case 12:
|
|
2533
2533
|
parsedBody = parsedOutput.body;
|
|
2534
2534
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2538,7 +2538,7 @@ var deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommandError = f
|
|
|
2538
2538
|
message = response.message || response.Message || errorCode;
|
|
2539
2539
|
response.message = message;
|
|
2540
2540
|
delete response.Message;
|
|
2541
|
-
return [2
|
|
2541
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2542
2542
|
}
|
|
2543
2543
|
});
|
|
2544
2544
|
}); };
|
|
@@ -2548,15 +2548,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
2548
2548
|
switch (_a.label) {
|
|
2549
2549
|
case 0:
|
|
2550
2550
|
if (output.statusCode >= 300) {
|
|
2551
|
-
return [2
|
|
2551
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
2552
2552
|
}
|
|
2553
|
-
return [4
|
|
2553
|
+
return [4, parseBody(output.body, context)];
|
|
2554
2554
|
case 1:
|
|
2555
2555
|
data = _a.sent();
|
|
2556
2556
|
contents = {};
|
|
2557
2557
|
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
2558
2558
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2559
|
-
return [2
|
|
2559
|
+
return [2, Promise.resolve(response)];
|
|
2560
2560
|
}
|
|
2561
2561
|
});
|
|
2562
2562
|
}); };
|
|
@@ -2568,55 +2568,55 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2568
2568
|
case 0:
|
|
2569
2569
|
_a = [__assign({}, output)];
|
|
2570
2570
|
_h = {};
|
|
2571
|
-
return [4
|
|
2571
|
+
return [4, parseBody(output.body, context)];
|
|
2572
2572
|
case 1:
|
|
2573
2573
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2574
2574
|
errorCode = "UnknownError";
|
|
2575
2575
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2576
2576
|
_b = errorCode;
|
|
2577
2577
|
switch (_b) {
|
|
2578
|
-
case "AccessDeniedException": return [3
|
|
2579
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2580
|
-
case "InternalServerException": return [3
|
|
2581
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2582
|
-
case "ResourceNotFoundException": return [3
|
|
2583
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2584
|
-
case "ThrottlingException": return [3
|
|
2585
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2586
|
-
case "ValidationException": return [3
|
|
2587
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2588
|
-
}
|
|
2589
|
-
return [3
|
|
2578
|
+
case "AccessDeniedException": return [3, 2];
|
|
2579
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2580
|
+
case "InternalServerException": return [3, 4];
|
|
2581
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 4];
|
|
2582
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2583
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 6];
|
|
2584
|
+
case "ThrottlingException": return [3, 8];
|
|
2585
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 8];
|
|
2586
|
+
case "ValidationException": return [3, 10];
|
|
2587
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 10];
|
|
2588
|
+
}
|
|
2589
|
+
return [3, 12];
|
|
2590
2590
|
case 2:
|
|
2591
2591
|
_c = [{}];
|
|
2592
|
-
return [4
|
|
2592
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2593
2593
|
case 3:
|
|
2594
2594
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2595
|
-
return [3
|
|
2595
|
+
return [3, 13];
|
|
2596
2596
|
case 4:
|
|
2597
2597
|
_d = [{}];
|
|
2598
|
-
return [4
|
|
2598
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2599
2599
|
case 5:
|
|
2600
2600
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2601
|
-
return [3
|
|
2601
|
+
return [3, 13];
|
|
2602
2602
|
case 6:
|
|
2603
2603
|
_e = [{}];
|
|
2604
|
-
return [4
|
|
2604
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2605
2605
|
case 7:
|
|
2606
2606
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2607
|
-
return [3
|
|
2607
|
+
return [3, 13];
|
|
2608
2608
|
case 8:
|
|
2609
2609
|
_f = [{}];
|
|
2610
|
-
return [4
|
|
2610
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2611
2611
|
case 9:
|
|
2612
2612
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2613
|
-
return [3
|
|
2613
|
+
return [3, 13];
|
|
2614
2614
|
case 10:
|
|
2615
2615
|
_g = [{}];
|
|
2616
|
-
return [4
|
|
2616
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2617
2617
|
case 11:
|
|
2618
2618
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2619
|
-
return [3
|
|
2619
|
+
return [3, 13];
|
|
2620
2620
|
case 12:
|
|
2621
2621
|
parsedBody = parsedOutput.body;
|
|
2622
2622
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2626,7 +2626,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2626
2626
|
message = response.message || response.Message || errorCode;
|
|
2627
2627
|
response.message = message;
|
|
2628
2628
|
delete response.Message;
|
|
2629
|
-
return [2
|
|
2629
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2630
2630
|
}
|
|
2631
2631
|
});
|
|
2632
2632
|
}); };
|
|
@@ -2636,15 +2636,15 @@ export var deserializeAws_json1_1ProvisionPermissionSetCommand = function (outpu
|
|
|
2636
2636
|
switch (_a.label) {
|
|
2637
2637
|
case 0:
|
|
2638
2638
|
if (output.statusCode >= 300) {
|
|
2639
|
-
return [2
|
|
2639
|
+
return [2, deserializeAws_json1_1ProvisionPermissionSetCommandError(output, context)];
|
|
2640
2640
|
}
|
|
2641
|
-
return [4
|
|
2641
|
+
return [4, parseBody(output.body, context)];
|
|
2642
2642
|
case 1:
|
|
2643
2643
|
data = _a.sent();
|
|
2644
2644
|
contents = {};
|
|
2645
2645
|
contents = deserializeAws_json1_1ProvisionPermissionSetResponse(data, context);
|
|
2646
2646
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2647
|
-
return [2
|
|
2647
|
+
return [2, Promise.resolve(response)];
|
|
2648
2648
|
}
|
|
2649
2649
|
});
|
|
2650
2650
|
}); };
|
|
@@ -2656,63 +2656,63 @@ var deserializeAws_json1_1ProvisionPermissionSetCommandError = function (output,
|
|
|
2656
2656
|
case 0:
|
|
2657
2657
|
_a = [__assign({}, output)];
|
|
2658
2658
|
_j = {};
|
|
2659
|
-
return [4
|
|
2659
|
+
return [4, parseBody(output.body, context)];
|
|
2660
2660
|
case 1:
|
|
2661
2661
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2662
2662
|
errorCode = "UnknownError";
|
|
2663
2663
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2664
2664
|
_b = errorCode;
|
|
2665
2665
|
switch (_b) {
|
|
2666
|
-
case "AccessDeniedException": return [3
|
|
2667
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2668
|
-
case "ConflictException": return [3
|
|
2669
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
2670
|
-
case "InternalServerException": return [3
|
|
2671
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2672
|
-
case "ResourceNotFoundException": return [3
|
|
2673
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2674
|
-
case "ThrottlingException": return [3
|
|
2675
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2676
|
-
case "ValidationException": return [3
|
|
2677
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2678
|
-
}
|
|
2679
|
-
return [3
|
|
2666
|
+
case "AccessDeniedException": return [3, 2];
|
|
2667
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2668
|
+
case "ConflictException": return [3, 4];
|
|
2669
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
2670
|
+
case "InternalServerException": return [3, 6];
|
|
2671
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
2672
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2673
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
2674
|
+
case "ThrottlingException": return [3, 10];
|
|
2675
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
2676
|
+
case "ValidationException": return [3, 12];
|
|
2677
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
2678
|
+
}
|
|
2679
|
+
return [3, 14];
|
|
2680
2680
|
case 2:
|
|
2681
2681
|
_c = [{}];
|
|
2682
|
-
return [4
|
|
2682
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2683
2683
|
case 3:
|
|
2684
2684
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2685
|
-
return [3
|
|
2685
|
+
return [3, 15];
|
|
2686
2686
|
case 4:
|
|
2687
2687
|
_d = [{}];
|
|
2688
|
-
return [4
|
|
2688
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2689
2689
|
case 5:
|
|
2690
2690
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2691
|
-
return [3
|
|
2691
|
+
return [3, 15];
|
|
2692
2692
|
case 6:
|
|
2693
2693
|
_e = [{}];
|
|
2694
|
-
return [4
|
|
2694
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2695
2695
|
case 7:
|
|
2696
2696
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2697
|
-
return [3
|
|
2697
|
+
return [3, 15];
|
|
2698
2698
|
case 8:
|
|
2699
2699
|
_f = [{}];
|
|
2700
|
-
return [4
|
|
2700
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2701
2701
|
case 9:
|
|
2702
2702
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2703
|
-
return [3
|
|
2703
|
+
return [3, 15];
|
|
2704
2704
|
case 10:
|
|
2705
2705
|
_g = [{}];
|
|
2706
|
-
return [4
|
|
2706
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2707
2707
|
case 11:
|
|
2708
2708
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2709
|
-
return [3
|
|
2709
|
+
return [3, 15];
|
|
2710
2710
|
case 12:
|
|
2711
2711
|
_h = [{}];
|
|
2712
|
-
return [4
|
|
2712
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2713
2713
|
case 13:
|
|
2714
2714
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2715
|
-
return [3
|
|
2715
|
+
return [3, 15];
|
|
2716
2716
|
case 14:
|
|
2717
2717
|
parsedBody = parsedOutput.body;
|
|
2718
2718
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2722,7 +2722,7 @@ var deserializeAws_json1_1ProvisionPermissionSetCommandError = function (output,
|
|
|
2722
2722
|
message = response.message || response.Message || errorCode;
|
|
2723
2723
|
response.message = message;
|
|
2724
2724
|
delete response.Message;
|
|
2725
|
-
return [2
|
|
2725
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2726
2726
|
}
|
|
2727
2727
|
});
|
|
2728
2728
|
}); };
|
|
@@ -2732,15 +2732,15 @@ export var deserializeAws_json1_1PutInlinePolicyToPermissionSetCommand = functio
|
|
|
2732
2732
|
switch (_a.label) {
|
|
2733
2733
|
case 0:
|
|
2734
2734
|
if (output.statusCode >= 300) {
|
|
2735
|
-
return [2
|
|
2735
|
+
return [2, deserializeAws_json1_1PutInlinePolicyToPermissionSetCommandError(output, context)];
|
|
2736
2736
|
}
|
|
2737
|
-
return [4
|
|
2737
|
+
return [4, parseBody(output.body, context)];
|
|
2738
2738
|
case 1:
|
|
2739
2739
|
data = _a.sent();
|
|
2740
2740
|
contents = {};
|
|
2741
2741
|
contents = deserializeAws_json1_1PutInlinePolicyToPermissionSetResponse(data, context);
|
|
2742
2742
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2743
|
-
return [2
|
|
2743
|
+
return [2, Promise.resolve(response)];
|
|
2744
2744
|
}
|
|
2745
2745
|
});
|
|
2746
2746
|
}); };
|
|
@@ -2752,71 +2752,71 @@ var deserializeAws_json1_1PutInlinePolicyToPermissionSetCommandError = function
|
|
|
2752
2752
|
case 0:
|
|
2753
2753
|
_a = [__assign({}, output)];
|
|
2754
2754
|
_k = {};
|
|
2755
|
-
return [4
|
|
2755
|
+
return [4, parseBody(output.body, context)];
|
|
2756
2756
|
case 1:
|
|
2757
2757
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2758
2758
|
errorCode = "UnknownError";
|
|
2759
2759
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2760
2760
|
_b = errorCode;
|
|
2761
2761
|
switch (_b) {
|
|
2762
|
-
case "AccessDeniedException": return [3
|
|
2763
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2764
|
-
case "ConflictException": return [3
|
|
2765
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
2766
|
-
case "InternalServerException": return [3
|
|
2767
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2768
|
-
case "ResourceNotFoundException": return [3
|
|
2769
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2770
|
-
case "ServiceQuotaExceededException": return [3
|
|
2771
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3
|
|
2772
|
-
case "ThrottlingException": return [3
|
|
2773
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2774
|
-
case "ValidationException": return [3
|
|
2775
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2776
|
-
}
|
|
2777
|
-
return [3
|
|
2762
|
+
case "AccessDeniedException": return [3, 2];
|
|
2763
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2764
|
+
case "ConflictException": return [3, 4];
|
|
2765
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
2766
|
+
case "InternalServerException": return [3, 6];
|
|
2767
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
2768
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2769
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
2770
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
2771
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3, 10];
|
|
2772
|
+
case "ThrottlingException": return [3, 12];
|
|
2773
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 12];
|
|
2774
|
+
case "ValidationException": return [3, 14];
|
|
2775
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 14];
|
|
2776
|
+
}
|
|
2777
|
+
return [3, 16];
|
|
2778
2778
|
case 2:
|
|
2779
2779
|
_c = [{}];
|
|
2780
|
-
return [4
|
|
2780
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2781
2781
|
case 3:
|
|
2782
2782
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2783
|
-
return [3
|
|
2783
|
+
return [3, 17];
|
|
2784
2784
|
case 4:
|
|
2785
2785
|
_d = [{}];
|
|
2786
|
-
return [4
|
|
2786
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2787
2787
|
case 5:
|
|
2788
2788
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2789
|
-
return [3
|
|
2789
|
+
return [3, 17];
|
|
2790
2790
|
case 6:
|
|
2791
2791
|
_e = [{}];
|
|
2792
|
-
return [4
|
|
2792
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2793
2793
|
case 7:
|
|
2794
2794
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2795
|
-
return [3
|
|
2795
|
+
return [3, 17];
|
|
2796
2796
|
case 8:
|
|
2797
2797
|
_f = [{}];
|
|
2798
|
-
return [4
|
|
2798
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2799
2799
|
case 9:
|
|
2800
2800
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2801
|
-
return [3
|
|
2801
|
+
return [3, 17];
|
|
2802
2802
|
case 10:
|
|
2803
2803
|
_g = [{}];
|
|
2804
|
-
return [4
|
|
2804
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2805
2805
|
case 11:
|
|
2806
2806
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2807
|
-
return [3
|
|
2807
|
+
return [3, 17];
|
|
2808
2808
|
case 12:
|
|
2809
2809
|
_h = [{}];
|
|
2810
|
-
return [4
|
|
2810
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2811
2811
|
case 13:
|
|
2812
2812
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2813
|
-
return [3
|
|
2813
|
+
return [3, 17];
|
|
2814
2814
|
case 14:
|
|
2815
2815
|
_j = [{}];
|
|
2816
|
-
return [4
|
|
2816
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2817
2817
|
case 15:
|
|
2818
2818
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2819
|
-
return [3
|
|
2819
|
+
return [3, 17];
|
|
2820
2820
|
case 16:
|
|
2821
2821
|
parsedBody = parsedOutput.body;
|
|
2822
2822
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2826,7 +2826,7 @@ var deserializeAws_json1_1PutInlinePolicyToPermissionSetCommandError = function
|
|
|
2826
2826
|
message = response.message || response.Message || errorCode;
|
|
2827
2827
|
response.message = message;
|
|
2828
2828
|
delete response.Message;
|
|
2829
|
-
return [2
|
|
2829
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2830
2830
|
}
|
|
2831
2831
|
});
|
|
2832
2832
|
}); };
|
|
@@ -2836,15 +2836,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
2836
2836
|
switch (_a.label) {
|
|
2837
2837
|
case 0:
|
|
2838
2838
|
if (output.statusCode >= 300) {
|
|
2839
|
-
return [2
|
|
2839
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
2840
2840
|
}
|
|
2841
|
-
return [4
|
|
2841
|
+
return [4, parseBody(output.body, context)];
|
|
2842
2842
|
case 1:
|
|
2843
2843
|
data = _a.sent();
|
|
2844
2844
|
contents = {};
|
|
2845
2845
|
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2846
2846
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2847
|
-
return [2
|
|
2847
|
+
return [2, Promise.resolve(response)];
|
|
2848
2848
|
}
|
|
2849
2849
|
});
|
|
2850
2850
|
}); };
|
|
@@ -2856,71 +2856,71 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2856
2856
|
case 0:
|
|
2857
2857
|
_a = [__assign({}, output)];
|
|
2858
2858
|
_k = {};
|
|
2859
|
-
return [4
|
|
2859
|
+
return [4, parseBody(output.body, context)];
|
|
2860
2860
|
case 1:
|
|
2861
2861
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2862
2862
|
errorCode = "UnknownError";
|
|
2863
2863
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
2864
|
_b = errorCode;
|
|
2865
2865
|
switch (_b) {
|
|
2866
|
-
case "AccessDeniedException": return [3
|
|
2867
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2868
|
-
case "ConflictException": return [3
|
|
2869
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
2870
|
-
case "InternalServerException": return [3
|
|
2871
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2872
|
-
case "ResourceNotFoundException": return [3
|
|
2873
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2874
|
-
case "ServiceQuotaExceededException": return [3
|
|
2875
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3
|
|
2876
|
-
case "ThrottlingException": return [3
|
|
2877
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2878
|
-
case "ValidationException": return [3
|
|
2879
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2880
|
-
}
|
|
2881
|
-
return [3
|
|
2866
|
+
case "AccessDeniedException": return [3, 2];
|
|
2867
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2868
|
+
case "ConflictException": return [3, 4];
|
|
2869
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
2870
|
+
case "InternalServerException": return [3, 6];
|
|
2871
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
2872
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2873
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
2874
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
2875
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException": return [3, 10];
|
|
2876
|
+
case "ThrottlingException": return [3, 12];
|
|
2877
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 12];
|
|
2878
|
+
case "ValidationException": return [3, 14];
|
|
2879
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 14];
|
|
2880
|
+
}
|
|
2881
|
+
return [3, 16];
|
|
2882
2882
|
case 2:
|
|
2883
2883
|
_c = [{}];
|
|
2884
|
-
return [4
|
|
2884
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2885
2885
|
case 3:
|
|
2886
2886
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2887
|
-
return [3
|
|
2887
|
+
return [3, 17];
|
|
2888
2888
|
case 4:
|
|
2889
2889
|
_d = [{}];
|
|
2890
|
-
return [4
|
|
2890
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2891
2891
|
case 5:
|
|
2892
2892
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2893
|
-
return [3
|
|
2893
|
+
return [3, 17];
|
|
2894
2894
|
case 6:
|
|
2895
2895
|
_e = [{}];
|
|
2896
|
-
return [4
|
|
2896
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2897
2897
|
case 7:
|
|
2898
2898
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2899
|
-
return [3
|
|
2899
|
+
return [3, 17];
|
|
2900
2900
|
case 8:
|
|
2901
2901
|
_f = [{}];
|
|
2902
|
-
return [4
|
|
2902
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2903
2903
|
case 9:
|
|
2904
2904
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2905
|
-
return [3
|
|
2905
|
+
return [3, 17];
|
|
2906
2906
|
case 10:
|
|
2907
2907
|
_g = [{}];
|
|
2908
|
-
return [4
|
|
2908
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2909
2909
|
case 11:
|
|
2910
2910
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2911
|
-
return [3
|
|
2911
|
+
return [3, 17];
|
|
2912
2912
|
case 12:
|
|
2913
2913
|
_h = [{}];
|
|
2914
|
-
return [4
|
|
2914
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2915
2915
|
case 13:
|
|
2916
2916
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2917
|
-
return [3
|
|
2917
|
+
return [3, 17];
|
|
2918
2918
|
case 14:
|
|
2919
2919
|
_j = [{}];
|
|
2920
|
-
return [4
|
|
2920
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2921
2921
|
case 15:
|
|
2922
2922
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2923
|
-
return [3
|
|
2923
|
+
return [3, 17];
|
|
2924
2924
|
case 16:
|
|
2925
2925
|
parsedBody = parsedOutput.body;
|
|
2926
2926
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2930,7 +2930,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2930
2930
|
message = response.message || response.Message || errorCode;
|
|
2931
2931
|
response.message = message;
|
|
2932
2932
|
delete response.Message;
|
|
2933
|
-
return [2
|
|
2933
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2934
2934
|
}
|
|
2935
2935
|
});
|
|
2936
2936
|
}); };
|
|
@@ -2940,15 +2940,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
2940
2940
|
switch (_a.label) {
|
|
2941
2941
|
case 0:
|
|
2942
2942
|
if (output.statusCode >= 300) {
|
|
2943
|
-
return [2
|
|
2943
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
2944
2944
|
}
|
|
2945
|
-
return [4
|
|
2945
|
+
return [4, parseBody(output.body, context)];
|
|
2946
2946
|
case 1:
|
|
2947
2947
|
data = _a.sent();
|
|
2948
2948
|
contents = {};
|
|
2949
2949
|
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
2950
2950
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2951
|
-
return [2
|
|
2951
|
+
return [2, Promise.resolve(response)];
|
|
2952
2952
|
}
|
|
2953
2953
|
});
|
|
2954
2954
|
}); };
|
|
@@ -2960,63 +2960,63 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2960
2960
|
case 0:
|
|
2961
2961
|
_a = [__assign({}, output)];
|
|
2962
2962
|
_j = {};
|
|
2963
|
-
return [4
|
|
2963
|
+
return [4, parseBody(output.body, context)];
|
|
2964
2964
|
case 1:
|
|
2965
2965
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2966
2966
|
errorCode = "UnknownError";
|
|
2967
2967
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2968
2968
|
_b = errorCode;
|
|
2969
2969
|
switch (_b) {
|
|
2970
|
-
case "AccessDeniedException": return [3
|
|
2971
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
2972
|
-
case "ConflictException": return [3
|
|
2973
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
2974
|
-
case "InternalServerException": return [3
|
|
2975
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
2976
|
-
case "ResourceNotFoundException": return [3
|
|
2977
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
2978
|
-
case "ThrottlingException": return [3
|
|
2979
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
2980
|
-
case "ValidationException": return [3
|
|
2981
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
2982
|
-
}
|
|
2983
|
-
return [3
|
|
2970
|
+
case "AccessDeniedException": return [3, 2];
|
|
2971
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
2972
|
+
case "ConflictException": return [3, 4];
|
|
2973
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
2974
|
+
case "InternalServerException": return [3, 6];
|
|
2975
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
2976
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2977
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
2978
|
+
case "ThrottlingException": return [3, 10];
|
|
2979
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
2980
|
+
case "ValidationException": return [3, 12];
|
|
2981
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
2982
|
+
}
|
|
2983
|
+
return [3, 14];
|
|
2984
2984
|
case 2:
|
|
2985
2985
|
_c = [{}];
|
|
2986
|
-
return [4
|
|
2986
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2987
2987
|
case 3:
|
|
2988
2988
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2989
|
-
return [3
|
|
2989
|
+
return [3, 15];
|
|
2990
2990
|
case 4:
|
|
2991
2991
|
_d = [{}];
|
|
2992
|
-
return [4
|
|
2992
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2993
2993
|
case 5:
|
|
2994
2994
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2995
|
-
return [3
|
|
2995
|
+
return [3, 15];
|
|
2996
2996
|
case 6:
|
|
2997
2997
|
_e = [{}];
|
|
2998
|
-
return [4
|
|
2998
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2999
2999
|
case 7:
|
|
3000
3000
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3001
|
-
return [3
|
|
3001
|
+
return [3, 15];
|
|
3002
3002
|
case 8:
|
|
3003
3003
|
_f = [{}];
|
|
3004
|
-
return [4
|
|
3004
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3005
3005
|
case 9:
|
|
3006
3006
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3007
|
-
return [3
|
|
3007
|
+
return [3, 15];
|
|
3008
3008
|
case 10:
|
|
3009
3009
|
_g = [{}];
|
|
3010
|
-
return [4
|
|
3010
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3011
3011
|
case 11:
|
|
3012
3012
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3013
|
-
return [3
|
|
3013
|
+
return [3, 15];
|
|
3014
3014
|
case 12:
|
|
3015
3015
|
_h = [{}];
|
|
3016
|
-
return [4
|
|
3016
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3017
3017
|
case 13:
|
|
3018
3018
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3019
|
-
return [3
|
|
3019
|
+
return [3, 15];
|
|
3020
3020
|
case 14:
|
|
3021
3021
|
parsedBody = parsedOutput.body;
|
|
3022
3022
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3026,7 +3026,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
3026
3026
|
message = response.message || response.Message || errorCode;
|
|
3027
3027
|
response.message = message;
|
|
3028
3028
|
delete response.Message;
|
|
3029
|
-
return [2
|
|
3029
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3030
3030
|
}
|
|
3031
3031
|
});
|
|
3032
3032
|
}); };
|
|
@@ -3036,15 +3036,15 @@ export var deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurati
|
|
|
3036
3036
|
switch (_a.label) {
|
|
3037
3037
|
case 0:
|
|
3038
3038
|
if (output.statusCode >= 300) {
|
|
3039
|
-
return [2
|
|
3039
|
+
return [2, deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCommandError(output, context)];
|
|
3040
3040
|
}
|
|
3041
|
-
return [4
|
|
3041
|
+
return [4, parseBody(output.body, context)];
|
|
3042
3042
|
case 1:
|
|
3043
3043
|
data = _a.sent();
|
|
3044
3044
|
contents = {};
|
|
3045
3045
|
contents = deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationResponse(data, context);
|
|
3046
3046
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3047
|
-
return [2
|
|
3047
|
+
return [2, Promise.resolve(response)];
|
|
3048
3048
|
}
|
|
3049
3049
|
});
|
|
3050
3050
|
}); };
|
|
@@ -3056,63 +3056,63 @@ var deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationComma
|
|
|
3056
3056
|
case 0:
|
|
3057
3057
|
_a = [__assign({}, output)];
|
|
3058
3058
|
_j = {};
|
|
3059
|
-
return [4
|
|
3059
|
+
return [4, parseBody(output.body, context)];
|
|
3060
3060
|
case 1:
|
|
3061
3061
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3062
3062
|
errorCode = "UnknownError";
|
|
3063
3063
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3064
3064
|
_b = errorCode;
|
|
3065
3065
|
switch (_b) {
|
|
3066
|
-
case "AccessDeniedException": return [3
|
|
3067
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
3068
|
-
case "ConflictException": return [3
|
|
3069
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
3070
|
-
case "InternalServerException": return [3
|
|
3071
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
3072
|
-
case "ResourceNotFoundException": return [3
|
|
3073
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
3074
|
-
case "ThrottlingException": return [3
|
|
3075
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
3076
|
-
case "ValidationException": return [3
|
|
3077
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
3078
|
-
}
|
|
3079
|
-
return [3
|
|
3066
|
+
case "AccessDeniedException": return [3, 2];
|
|
3067
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
3068
|
+
case "ConflictException": return [3, 4];
|
|
3069
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
3070
|
+
case "InternalServerException": return [3, 6];
|
|
3071
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
3072
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3073
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
3074
|
+
case "ThrottlingException": return [3, 10];
|
|
3075
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
3076
|
+
case "ValidationException": return [3, 12];
|
|
3077
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
3078
|
+
}
|
|
3079
|
+
return [3, 14];
|
|
3080
3080
|
case 2:
|
|
3081
3081
|
_c = [{}];
|
|
3082
|
-
return [4
|
|
3082
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3083
3083
|
case 3:
|
|
3084
3084
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3085
|
-
return [3
|
|
3085
|
+
return [3, 15];
|
|
3086
3086
|
case 4:
|
|
3087
3087
|
_d = [{}];
|
|
3088
|
-
return [4
|
|
3088
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
3089
3089
|
case 5:
|
|
3090
3090
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3091
|
-
return [3
|
|
3091
|
+
return [3, 15];
|
|
3092
3092
|
case 6:
|
|
3093
3093
|
_e = [{}];
|
|
3094
|
-
return [4
|
|
3094
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3095
3095
|
case 7:
|
|
3096
3096
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3097
|
-
return [3
|
|
3097
|
+
return [3, 15];
|
|
3098
3098
|
case 8:
|
|
3099
3099
|
_f = [{}];
|
|
3100
|
-
return [4
|
|
3100
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3101
3101
|
case 9:
|
|
3102
3102
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3103
|
-
return [3
|
|
3103
|
+
return [3, 15];
|
|
3104
3104
|
case 10:
|
|
3105
3105
|
_g = [{}];
|
|
3106
|
-
return [4
|
|
3106
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3107
3107
|
case 11:
|
|
3108
3108
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3109
|
-
return [3
|
|
3109
|
+
return [3, 15];
|
|
3110
3110
|
case 12:
|
|
3111
3111
|
_h = [{}];
|
|
3112
|
-
return [4
|
|
3112
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3113
3113
|
case 13:
|
|
3114
3114
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3115
|
-
return [3
|
|
3115
|
+
return [3, 15];
|
|
3116
3116
|
case 14:
|
|
3117
3117
|
parsedBody = parsedOutput.body;
|
|
3118
3118
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3122,7 +3122,7 @@ var deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationComma
|
|
|
3122
3122
|
message = response.message || response.Message || errorCode;
|
|
3123
3123
|
response.message = message;
|
|
3124
3124
|
delete response.Message;
|
|
3125
|
-
return [2
|
|
3125
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3126
3126
|
}
|
|
3127
3127
|
});
|
|
3128
3128
|
}); };
|
|
@@ -3132,15 +3132,15 @@ export var deserializeAws_json1_1UpdatePermissionSetCommand = function (output,
|
|
|
3132
3132
|
switch (_a.label) {
|
|
3133
3133
|
case 0:
|
|
3134
3134
|
if (output.statusCode >= 300) {
|
|
3135
|
-
return [2
|
|
3135
|
+
return [2, deserializeAws_json1_1UpdatePermissionSetCommandError(output, context)];
|
|
3136
3136
|
}
|
|
3137
|
-
return [4
|
|
3137
|
+
return [4, parseBody(output.body, context)];
|
|
3138
3138
|
case 1:
|
|
3139
3139
|
data = _a.sent();
|
|
3140
3140
|
contents = {};
|
|
3141
3141
|
contents = deserializeAws_json1_1UpdatePermissionSetResponse(data, context);
|
|
3142
3142
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3143
|
-
return [2
|
|
3143
|
+
return [2, Promise.resolve(response)];
|
|
3144
3144
|
}
|
|
3145
3145
|
});
|
|
3146
3146
|
}); };
|
|
@@ -3152,63 +3152,63 @@ var deserializeAws_json1_1UpdatePermissionSetCommandError = function (output, co
|
|
|
3152
3152
|
case 0:
|
|
3153
3153
|
_a = [__assign({}, output)];
|
|
3154
3154
|
_j = {};
|
|
3155
|
-
return [4
|
|
3155
|
+
return [4, parseBody(output.body, context)];
|
|
3156
3156
|
case 1:
|
|
3157
3157
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3158
3158
|
errorCode = "UnknownError";
|
|
3159
3159
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3160
3160
|
_b = errorCode;
|
|
3161
3161
|
switch (_b) {
|
|
3162
|
-
case "AccessDeniedException": return [3
|
|
3163
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3
|
|
3164
|
-
case "ConflictException": return [3
|
|
3165
|
-
case "com.amazonaws.ssoadmin#ConflictException": return [3
|
|
3166
|
-
case "InternalServerException": return [3
|
|
3167
|
-
case "com.amazonaws.ssoadmin#InternalServerException": return [3
|
|
3168
|
-
case "ResourceNotFoundException": return [3
|
|
3169
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3
|
|
3170
|
-
case "ThrottlingException": return [3
|
|
3171
|
-
case "com.amazonaws.ssoadmin#ThrottlingException": return [3
|
|
3172
|
-
case "ValidationException": return [3
|
|
3173
|
-
case "com.amazonaws.ssoadmin#ValidationException": return [3
|
|
3174
|
-
}
|
|
3175
|
-
return [3
|
|
3162
|
+
case "AccessDeniedException": return [3, 2];
|
|
3163
|
+
case "com.amazonaws.ssoadmin#AccessDeniedException": return [3, 2];
|
|
3164
|
+
case "ConflictException": return [3, 4];
|
|
3165
|
+
case "com.amazonaws.ssoadmin#ConflictException": return [3, 4];
|
|
3166
|
+
case "InternalServerException": return [3, 6];
|
|
3167
|
+
case "com.amazonaws.ssoadmin#InternalServerException": return [3, 6];
|
|
3168
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3169
|
+
case "com.amazonaws.ssoadmin#ResourceNotFoundException": return [3, 8];
|
|
3170
|
+
case "ThrottlingException": return [3, 10];
|
|
3171
|
+
case "com.amazonaws.ssoadmin#ThrottlingException": return [3, 10];
|
|
3172
|
+
case "ValidationException": return [3, 12];
|
|
3173
|
+
case "com.amazonaws.ssoadmin#ValidationException": return [3, 12];
|
|
3174
|
+
}
|
|
3175
|
+
return [3, 14];
|
|
3176
3176
|
case 2:
|
|
3177
3177
|
_c = [{}];
|
|
3178
|
-
return [4
|
|
3178
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3179
3179
|
case 3:
|
|
3180
3180
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3181
|
-
return [3
|
|
3181
|
+
return [3, 15];
|
|
3182
3182
|
case 4:
|
|
3183
3183
|
_d = [{}];
|
|
3184
|
-
return [4
|
|
3184
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
3185
3185
|
case 5:
|
|
3186
3186
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3187
|
-
return [3
|
|
3187
|
+
return [3, 15];
|
|
3188
3188
|
case 6:
|
|
3189
3189
|
_e = [{}];
|
|
3190
|
-
return [4
|
|
3190
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3191
3191
|
case 7:
|
|
3192
3192
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3193
|
-
return [3
|
|
3193
|
+
return [3, 15];
|
|
3194
3194
|
case 8:
|
|
3195
3195
|
_f = [{}];
|
|
3196
|
-
return [4
|
|
3196
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3197
3197
|
case 9:
|
|
3198
3198
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3199
|
-
return [3
|
|
3199
|
+
return [3, 15];
|
|
3200
3200
|
case 10:
|
|
3201
3201
|
_g = [{}];
|
|
3202
|
-
return [4
|
|
3202
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3203
3203
|
case 11:
|
|
3204
3204
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3205
|
-
return [3
|
|
3205
|
+
return [3, 15];
|
|
3206
3206
|
case 12:
|
|
3207
3207
|
_h = [{}];
|
|
3208
|
-
return [4
|
|
3208
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3209
3209
|
case 13:
|
|
3210
3210
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3211
|
-
return [3
|
|
3211
|
+
return [3, 15];
|
|
3212
3212
|
case 14:
|
|
3213
3213
|
parsedBody = parsedOutput.body;
|
|
3214
3214
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3218,7 +3218,7 @@ var deserializeAws_json1_1UpdatePermissionSetCommandError = function (output, co
|
|
|
3218
3218
|
message = response.message || response.Message || errorCode;
|
|
3219
3219
|
response.message = message;
|
|
3220
3220
|
delete response.Message;
|
|
3221
|
-
return [2
|
|
3221
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3222
3222
|
}
|
|
3223
3223
|
});
|
|
3224
3224
|
}); };
|
|
@@ -3228,7 +3228,7 @@ var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput
|
|
|
3228
3228
|
body = parsedOutput.body;
|
|
3229
3229
|
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
3230
3230
|
contents = __assign({ name: "AccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3231
|
-
return [2
|
|
3231
|
+
return [2, contents];
|
|
3232
3232
|
});
|
|
3233
3233
|
}); };
|
|
3234
3234
|
var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3237,7 +3237,7 @@ var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, co
|
|
|
3237
3237
|
body = parsedOutput.body;
|
|
3238
3238
|
deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
3239
3239
|
contents = __assign({ name: "ConflictException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3240
|
-
return [2
|
|
3240
|
+
return [2, contents];
|
|
3241
3241
|
});
|
|
3242
3242
|
}); };
|
|
3243
3243
|
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3246,7 +3246,7 @@ var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutp
|
|
|
3246
3246
|
body = parsedOutput.body;
|
|
3247
3247
|
deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
3248
3248
|
contents = __assign({ name: "InternalServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3249
|
-
return [2
|
|
3249
|
+
return [2, contents];
|
|
3250
3250
|
});
|
|
3251
3251
|
}); };
|
|
3252
3252
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3255,7 +3255,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
3255
3255
|
body = parsedOutput.body;
|
|
3256
3256
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
3257
3257
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3258
|
-
return [2
|
|
3258
|
+
return [2, contents];
|
|
3259
3259
|
});
|
|
3260
3260
|
}); };
|
|
3261
3261
|
var deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3264,7 +3264,7 @@ var deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = function (pars
|
|
|
3264
3264
|
body = parsedOutput.body;
|
|
3265
3265
|
deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
3266
3266
|
contents = __assign({ name: "ServiceQuotaExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3267
|
-
return [2
|
|
3267
|
+
return [2, contents];
|
|
3268
3268
|
});
|
|
3269
3269
|
}); };
|
|
3270
3270
|
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3273,7 +3273,7 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
|
|
|
3273
3273
|
body = parsedOutput.body;
|
|
3274
3274
|
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
3275
3275
|
contents = __assign({ name: "ThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3276
|
-
return [2
|
|
3276
|
+
return [2, contents];
|
|
3277
3277
|
});
|
|
3278
3278
|
}); };
|
|
3279
3279
|
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3282,7 +3282,7 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
|
|
|
3282
3282
|
body = parsedOutput.body;
|
|
3283
3283
|
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
3284
3284
|
contents = __assign({ name: "ValidationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3285
|
-
return [2
|
|
3285
|
+
return [2, contents];
|
|
3286
3286
|
});
|
|
3287
3287
|
}); };
|
|
3288
3288
|
var serializeAws_json1_1AccessControlAttribute = function (input, context) {
|
|
@@ -3912,7 +3912,6 @@ var deserializeMetadata = function (output) {
|
|
|
3912
3912
|
cfId: output.headers["x-amz-cf-id"],
|
|
3913
3913
|
});
|
|
3914
3914
|
};
|
|
3915
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3916
3915
|
var collectBody = function (streamBody, context) {
|
|
3917
3916
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3918
3917
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3920,7 +3919,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3920
3919
|
}
|
|
3921
3920
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3922
3921
|
};
|
|
3923
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3924
3922
|
var collectBodyString = function (streamBody, context) {
|
|
3925
3923
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3926
3924
|
};
|
|
@@ -3928,7 +3926,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3928
3926
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
3929
3927
|
return __generator(this, function (_c) {
|
|
3930
3928
|
switch (_c.label) {
|
|
3931
|
-
case 0: return [4
|
|
3929
|
+
case 0: return [4, context.endpoint()];
|
|
3932
3930
|
case 1:
|
|
3933
3931
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3934
3932
|
contents = {
|
|
@@ -3945,7 +3943,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3945
3943
|
if (body !== undefined) {
|
|
3946
3944
|
contents.body = body;
|
|
3947
3945
|
}
|
|
3948
|
-
return [2
|
|
3946
|
+
return [2, new __HttpRequest(contents)];
|
|
3949
3947
|
}
|
|
3950
3948
|
});
|
|
3951
3949
|
}); };
|
|
@@ -3957,9 +3955,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3957
3955
|
return {};
|
|
3958
3956
|
});
|
|
3959
3957
|
};
|
|
3960
|
-
/**
|
|
3961
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3962
|
-
*/
|
|
3963
3958
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3964
3959
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3965
3960
|
var sanitizeErrorCode = function (rawValue) {
|