@aws-sdk/client-sso-admin 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +256 -1092
- package/dist-es/protocols/Aws_json1_1.js +257 -1093
- package/package.json +6 -6
|
@@ -7,372 +7,261 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const SSOAdminServiceException_1 = require("../models/SSOAdminServiceException");
|
|
9
9
|
const se_AttachCustomerManagedPolicyReferenceToPermissionSetCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "SWBExternalService.AttachCustomerManagedPolicyReferenceToPermissionSet",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("AttachCustomerManagedPolicyReferenceToPermissionSet");
|
|
14
11
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_AttachCustomerManagedPolicyReferenceToPermissionSetCommand = se_AttachCustomerManagedPolicyReferenceToPermissionSetCommand;
|
|
19
16
|
const se_AttachManagedPolicyToPermissionSetCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "SWBExternalService.AttachManagedPolicyToPermissionSet",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("AttachManagedPolicyToPermissionSet");
|
|
24
18
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_AttachManagedPolicyToPermissionSetCommand = se_AttachManagedPolicyToPermissionSetCommand;
|
|
29
23
|
const se_CreateAccountAssignmentCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "SWBExternalService.CreateAccountAssignment",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateAccountAssignment");
|
|
34
25
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateAccountAssignmentCommand = se_CreateAccountAssignmentCommand;
|
|
39
30
|
const se_CreateInstanceAccessControlAttributeConfigurationCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "SWBExternalService.CreateInstanceAccessControlAttributeConfiguration",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("CreateInstanceAccessControlAttributeConfiguration");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_CreateInstanceAccessControlAttributeConfigurationCommand = se_CreateInstanceAccessControlAttributeConfigurationCommand;
|
|
49
37
|
const se_CreatePermissionSetCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "SWBExternalService.CreatePermissionSet",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("CreatePermissionSet");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_CreatePermissionSetCommand = se_CreatePermissionSetCommand;
|
|
59
44
|
const se_DeleteAccountAssignmentCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "SWBExternalService.DeleteAccountAssignment",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DeleteAccountAssignment");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DeleteAccountAssignmentCommand = se_DeleteAccountAssignmentCommand;
|
|
69
51
|
const se_DeleteInlinePolicyFromPermissionSetCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "SWBExternalService.DeleteInlinePolicyFromPermissionSet",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DeleteInlinePolicyFromPermissionSet");
|
|
74
53
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DeleteInlinePolicyFromPermissionSetCommand = se_DeleteInlinePolicyFromPermissionSetCommand;
|
|
79
58
|
const se_DeleteInstanceAccessControlAttributeConfigurationCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "SWBExternalService.DeleteInstanceAccessControlAttributeConfiguration",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DeleteInstanceAccessControlAttributeConfiguration");
|
|
84
60
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DeleteInstanceAccessControlAttributeConfigurationCommand = se_DeleteInstanceAccessControlAttributeConfigurationCommand;
|
|
89
65
|
const se_DeletePermissionsBoundaryFromPermissionSetCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "SWBExternalService.DeletePermissionsBoundaryFromPermissionSet",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeletePermissionsBoundaryFromPermissionSet");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DeletePermissionsBoundaryFromPermissionSetCommand = se_DeletePermissionsBoundaryFromPermissionSetCommand;
|
|
99
72
|
const se_DeletePermissionSetCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "SWBExternalService.DeletePermissionSet",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DeletePermissionSet");
|
|
104
74
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_DeletePermissionSetCommand = se_DeletePermissionSetCommand;
|
|
109
79
|
const se_DescribeAccountAssignmentCreationStatusCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "SWBExternalService.DescribeAccountAssignmentCreationStatus",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("DescribeAccountAssignmentCreationStatus");
|
|
114
81
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_DescribeAccountAssignmentCreationStatusCommand = se_DescribeAccountAssignmentCreationStatusCommand;
|
|
119
86
|
const se_DescribeAccountAssignmentDeletionStatusCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "SWBExternalService.DescribeAccountAssignmentDeletionStatus",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("DescribeAccountAssignmentDeletionStatus");
|
|
124
88
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_DescribeAccountAssignmentDeletionStatusCommand = se_DescribeAccountAssignmentDeletionStatusCommand;
|
|
129
93
|
const se_DescribeInstanceAccessControlAttributeConfigurationCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "SWBExternalService.DescribeInstanceAccessControlAttributeConfiguration",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("DescribeInstanceAccessControlAttributeConfiguration");
|
|
134
95
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_DescribeInstanceAccessControlAttributeConfigurationCommand = se_DescribeInstanceAccessControlAttributeConfigurationCommand;
|
|
139
100
|
const se_DescribePermissionSetCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "SWBExternalService.DescribePermissionSet",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("DescribePermissionSet");
|
|
144
102
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_DescribePermissionSetCommand = se_DescribePermissionSetCommand;
|
|
149
107
|
const se_DescribePermissionSetProvisioningStatusCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "SWBExternalService.DescribePermissionSetProvisioningStatus",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("DescribePermissionSetProvisioningStatus");
|
|
154
109
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_DescribePermissionSetProvisioningStatusCommand = se_DescribePermissionSetProvisioningStatusCommand;
|
|
159
114
|
const se_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "SWBExternalService.DetachCustomerManagedPolicyReferenceFromPermissionSet",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("DetachCustomerManagedPolicyReferenceFromPermissionSet");
|
|
164
116
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = se_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand;
|
|
169
121
|
const se_DetachManagedPolicyFromPermissionSetCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "SWBExternalService.DetachManagedPolicyFromPermissionSet",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("DetachManagedPolicyFromPermissionSet");
|
|
174
123
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_DetachManagedPolicyFromPermissionSetCommand = se_DetachManagedPolicyFromPermissionSetCommand;
|
|
179
128
|
const se_GetInlinePolicyForPermissionSetCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
182
|
-
"x-amz-target": "SWBExternalService.GetInlinePolicyForPermissionSet",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("GetInlinePolicyForPermissionSet");
|
|
184
130
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_GetInlinePolicyForPermissionSetCommand = se_GetInlinePolicyForPermissionSetCommand;
|
|
189
135
|
const se_GetPermissionsBoundaryForPermissionSetCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "SWBExternalService.GetPermissionsBoundaryForPermissionSet",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("GetPermissionsBoundaryForPermissionSet");
|
|
194
137
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_GetPermissionsBoundaryForPermissionSetCommand = se_GetPermissionsBoundaryForPermissionSetCommand;
|
|
199
142
|
const se_ListAccountAssignmentCreationStatusCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.1",
|
|
202
|
-
"x-amz-target": "SWBExternalService.ListAccountAssignmentCreationStatus",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("ListAccountAssignmentCreationStatus");
|
|
204
144
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_ListAccountAssignmentCreationStatusCommand = se_ListAccountAssignmentCreationStatusCommand;
|
|
209
149
|
const se_ListAccountAssignmentDeletionStatusCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "SWBExternalService.ListAccountAssignmentDeletionStatus",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("ListAccountAssignmentDeletionStatus");
|
|
214
151
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_ListAccountAssignmentDeletionStatusCommand = se_ListAccountAssignmentDeletionStatusCommand;
|
|
219
156
|
const se_ListAccountAssignmentsCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "SWBExternalService.ListAccountAssignments",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("ListAccountAssignments");
|
|
224
158
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_ListAccountAssignmentsCommand = se_ListAccountAssignmentsCommand;
|
|
229
163
|
const se_ListAccountsForProvisionedPermissionSetCommand = async (input, context) => {
|
|
230
|
-
const headers =
|
|
231
|
-
"content-type": "application/x-amz-json-1.1",
|
|
232
|
-
"x-amz-target": "SWBExternalService.ListAccountsForProvisionedPermissionSet",
|
|
233
|
-
};
|
|
164
|
+
const headers = sharedHeaders("ListAccountsForProvisionedPermissionSet");
|
|
234
165
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
236
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
168
|
};
|
|
238
169
|
exports.se_ListAccountsForProvisionedPermissionSetCommand = se_ListAccountsForProvisionedPermissionSetCommand;
|
|
239
170
|
const se_ListCustomerManagedPolicyReferencesInPermissionSetCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "SWBExternalService.ListCustomerManagedPolicyReferencesInPermissionSet",
|
|
243
|
-
};
|
|
171
|
+
const headers = sharedHeaders("ListCustomerManagedPolicyReferencesInPermissionSet");
|
|
244
172
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
175
|
};
|
|
248
176
|
exports.se_ListCustomerManagedPolicyReferencesInPermissionSetCommand = se_ListCustomerManagedPolicyReferencesInPermissionSetCommand;
|
|
249
177
|
const se_ListInstancesCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.1",
|
|
252
|
-
"x-amz-target": "SWBExternalService.ListInstances",
|
|
253
|
-
};
|
|
178
|
+
const headers = sharedHeaders("ListInstances");
|
|
254
179
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
256
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
182
|
};
|
|
258
183
|
exports.se_ListInstancesCommand = se_ListInstancesCommand;
|
|
259
184
|
const se_ListManagedPoliciesInPermissionSetCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "SWBExternalService.ListManagedPoliciesInPermissionSet",
|
|
263
|
-
};
|
|
185
|
+
const headers = sharedHeaders("ListManagedPoliciesInPermissionSet");
|
|
264
186
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
189
|
};
|
|
268
190
|
exports.se_ListManagedPoliciesInPermissionSetCommand = se_ListManagedPoliciesInPermissionSetCommand;
|
|
269
191
|
const se_ListPermissionSetProvisioningStatusCommand = async (input, context) => {
|
|
270
|
-
const headers =
|
|
271
|
-
"content-type": "application/x-amz-json-1.1",
|
|
272
|
-
"x-amz-target": "SWBExternalService.ListPermissionSetProvisioningStatus",
|
|
273
|
-
};
|
|
192
|
+
const headers = sharedHeaders("ListPermissionSetProvisioningStatus");
|
|
274
193
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
276
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
196
|
};
|
|
278
197
|
exports.se_ListPermissionSetProvisioningStatusCommand = se_ListPermissionSetProvisioningStatusCommand;
|
|
279
198
|
const se_ListPermissionSetsCommand = async (input, context) => {
|
|
280
|
-
const headers =
|
|
281
|
-
"content-type": "application/x-amz-json-1.1",
|
|
282
|
-
"x-amz-target": "SWBExternalService.ListPermissionSets",
|
|
283
|
-
};
|
|
199
|
+
const headers = sharedHeaders("ListPermissionSets");
|
|
284
200
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
203
|
};
|
|
288
204
|
exports.se_ListPermissionSetsCommand = se_ListPermissionSetsCommand;
|
|
289
205
|
const se_ListPermissionSetsProvisionedToAccountCommand = async (input, context) => {
|
|
290
|
-
const headers =
|
|
291
|
-
"content-type": "application/x-amz-json-1.1",
|
|
292
|
-
"x-amz-target": "SWBExternalService.ListPermissionSetsProvisionedToAccount",
|
|
293
|
-
};
|
|
206
|
+
const headers = sharedHeaders("ListPermissionSetsProvisionedToAccount");
|
|
294
207
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
208
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
210
|
};
|
|
298
211
|
exports.se_ListPermissionSetsProvisionedToAccountCommand = se_ListPermissionSetsProvisionedToAccountCommand;
|
|
299
212
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
300
|
-
const headers =
|
|
301
|
-
"content-type": "application/x-amz-json-1.1",
|
|
302
|
-
"x-amz-target": "SWBExternalService.ListTagsForResource",
|
|
303
|
-
};
|
|
213
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
304
214
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
306
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
217
|
};
|
|
308
218
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
309
219
|
const se_ProvisionPermissionSetCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-amz-json-1.1",
|
|
312
|
-
"x-amz-target": "SWBExternalService.ProvisionPermissionSet",
|
|
313
|
-
};
|
|
220
|
+
const headers = sharedHeaders("ProvisionPermissionSet");
|
|
314
221
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
224
|
};
|
|
318
225
|
exports.se_ProvisionPermissionSetCommand = se_ProvisionPermissionSetCommand;
|
|
319
226
|
const se_PutInlinePolicyToPermissionSetCommand = async (input, context) => {
|
|
320
|
-
const headers =
|
|
321
|
-
"content-type": "application/x-amz-json-1.1",
|
|
322
|
-
"x-amz-target": "SWBExternalService.PutInlinePolicyToPermissionSet",
|
|
323
|
-
};
|
|
227
|
+
const headers = sharedHeaders("PutInlinePolicyToPermissionSet");
|
|
324
228
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
326
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
231
|
};
|
|
328
232
|
exports.se_PutInlinePolicyToPermissionSetCommand = se_PutInlinePolicyToPermissionSetCommand;
|
|
329
233
|
const se_PutPermissionsBoundaryToPermissionSetCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "SWBExternalService.PutPermissionsBoundaryToPermissionSet",
|
|
333
|
-
};
|
|
234
|
+
const headers = sharedHeaders("PutPermissionsBoundaryToPermissionSet");
|
|
334
235
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
238
|
};
|
|
338
239
|
exports.se_PutPermissionsBoundaryToPermissionSetCommand = se_PutPermissionsBoundaryToPermissionSetCommand;
|
|
339
240
|
const se_TagResourceCommand = async (input, context) => {
|
|
340
|
-
const headers =
|
|
341
|
-
"content-type": "application/x-amz-json-1.1",
|
|
342
|
-
"x-amz-target": "SWBExternalService.TagResource",
|
|
343
|
-
};
|
|
241
|
+
const headers = sharedHeaders("TagResource");
|
|
344
242
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
243
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
346
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
245
|
};
|
|
348
246
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
349
247
|
const se_UntagResourceCommand = async (input, context) => {
|
|
350
|
-
const headers =
|
|
351
|
-
"content-type": "application/x-amz-json-1.1",
|
|
352
|
-
"x-amz-target": "SWBExternalService.UntagResource",
|
|
353
|
-
};
|
|
248
|
+
const headers = sharedHeaders("UntagResource");
|
|
354
249
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
356
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
252
|
};
|
|
358
253
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
359
254
|
const se_UpdateInstanceAccessControlAttributeConfigurationCommand = async (input, context) => {
|
|
360
|
-
const headers =
|
|
361
|
-
"content-type": "application/x-amz-json-1.1",
|
|
362
|
-
"x-amz-target": "SWBExternalService.UpdateInstanceAccessControlAttributeConfiguration",
|
|
363
|
-
};
|
|
255
|
+
const headers = sharedHeaders("UpdateInstanceAccessControlAttributeConfiguration");
|
|
364
256
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
257
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
366
258
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
259
|
};
|
|
368
260
|
exports.se_UpdateInstanceAccessControlAttributeConfigurationCommand = se_UpdateInstanceAccessControlAttributeConfigurationCommand;
|
|
369
261
|
const se_UpdatePermissionSetCommand = async (input, context) => {
|
|
370
|
-
const headers =
|
|
371
|
-
"content-type": "application/x-amz-json-1.1",
|
|
372
|
-
"x-amz-target": "SWBExternalService.UpdatePermissionSet",
|
|
373
|
-
};
|
|
262
|
+
const headers = sharedHeaders("UpdatePermissionSet");
|
|
374
263
|
let body;
|
|
375
|
-
body = JSON.stringify(
|
|
264
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
376
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
266
|
};
|
|
378
267
|
exports.se_UpdatePermissionSetCommand = se_UpdatePermissionSetCommand;
|
|
@@ -382,12 +271,12 @@ const de_AttachCustomerManagedPolicyReferenceToPermissionSetCommand = async (out
|
|
|
382
271
|
}
|
|
383
272
|
const data = await parseBody(output.body, context);
|
|
384
273
|
let contents = {};
|
|
385
|
-
contents =
|
|
274
|
+
contents = (0, smithy_client_1._json)(data);
|
|
386
275
|
const response = {
|
|
387
276
|
$metadata: deserializeMetadata(output),
|
|
388
277
|
...contents,
|
|
389
278
|
};
|
|
390
|
-
return
|
|
279
|
+
return response;
|
|
391
280
|
};
|
|
392
281
|
exports.de_AttachCustomerManagedPolicyReferenceToPermissionSetCommand = de_AttachCustomerManagedPolicyReferenceToPermissionSetCommand;
|
|
393
282
|
const de_AttachCustomerManagedPolicyReferenceToPermissionSetCommandError = async (output, context) => {
|
|
@@ -420,10 +309,9 @@ const de_AttachCustomerManagedPolicyReferenceToPermissionSetCommandError = async
|
|
|
420
309
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
421
310
|
default:
|
|
422
311
|
const parsedBody = parsedOutput.body;
|
|
423
|
-
|
|
312
|
+
return throwDefaultError({
|
|
424
313
|
output,
|
|
425
314
|
parsedBody,
|
|
426
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
427
315
|
errorCode,
|
|
428
316
|
});
|
|
429
317
|
}
|
|
@@ -434,12 +322,12 @@ const de_AttachManagedPolicyToPermissionSetCommand = async (output, context) =>
|
|
|
434
322
|
}
|
|
435
323
|
const data = await parseBody(output.body, context);
|
|
436
324
|
let contents = {};
|
|
437
|
-
contents =
|
|
325
|
+
contents = (0, smithy_client_1._json)(data);
|
|
438
326
|
const response = {
|
|
439
327
|
$metadata: deserializeMetadata(output),
|
|
440
328
|
...contents,
|
|
441
329
|
};
|
|
442
|
-
return
|
|
330
|
+
return response;
|
|
443
331
|
};
|
|
444
332
|
exports.de_AttachManagedPolicyToPermissionSetCommand = de_AttachManagedPolicyToPermissionSetCommand;
|
|
445
333
|
const de_AttachManagedPolicyToPermissionSetCommandError = async (output, context) => {
|
|
@@ -472,10 +360,9 @@ const de_AttachManagedPolicyToPermissionSetCommandError = async (output, context
|
|
|
472
360
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
473
361
|
default:
|
|
474
362
|
const parsedBody = parsedOutput.body;
|
|
475
|
-
|
|
363
|
+
return throwDefaultError({
|
|
476
364
|
output,
|
|
477
365
|
parsedBody,
|
|
478
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
479
366
|
errorCode,
|
|
480
367
|
});
|
|
481
368
|
}
|
|
@@ -491,7 +378,7 @@ const de_CreateAccountAssignmentCommand = async (output, context) => {
|
|
|
491
378
|
$metadata: deserializeMetadata(output),
|
|
492
379
|
...contents,
|
|
493
380
|
};
|
|
494
|
-
return
|
|
381
|
+
return response;
|
|
495
382
|
};
|
|
496
383
|
exports.de_CreateAccountAssignmentCommand = de_CreateAccountAssignmentCommand;
|
|
497
384
|
const de_CreateAccountAssignmentCommandError = async (output, context) => {
|
|
@@ -524,10 +411,9 @@ const de_CreateAccountAssignmentCommandError = async (output, context) => {
|
|
|
524
411
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
525
412
|
default:
|
|
526
413
|
const parsedBody = parsedOutput.body;
|
|
527
|
-
|
|
414
|
+
return throwDefaultError({
|
|
528
415
|
output,
|
|
529
416
|
parsedBody,
|
|
530
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
531
417
|
errorCode,
|
|
532
418
|
});
|
|
533
419
|
}
|
|
@@ -538,12 +424,12 @@ const de_CreateInstanceAccessControlAttributeConfigurationCommand = async (outpu
|
|
|
538
424
|
}
|
|
539
425
|
const data = await parseBody(output.body, context);
|
|
540
426
|
let contents = {};
|
|
541
|
-
contents =
|
|
427
|
+
contents = (0, smithy_client_1._json)(data);
|
|
542
428
|
const response = {
|
|
543
429
|
$metadata: deserializeMetadata(output),
|
|
544
430
|
...contents,
|
|
545
431
|
};
|
|
546
|
-
return
|
|
432
|
+
return response;
|
|
547
433
|
};
|
|
548
434
|
exports.de_CreateInstanceAccessControlAttributeConfigurationCommand = de_CreateInstanceAccessControlAttributeConfigurationCommand;
|
|
549
435
|
const de_CreateInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
@@ -573,10 +459,9 @@ const de_CreateInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
|
573
459
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
574
460
|
default:
|
|
575
461
|
const parsedBody = parsedOutput.body;
|
|
576
|
-
|
|
462
|
+
return throwDefaultError({
|
|
577
463
|
output,
|
|
578
464
|
parsedBody,
|
|
579
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
580
465
|
errorCode,
|
|
581
466
|
});
|
|
582
467
|
}
|
|
@@ -592,7 +477,7 @@ const de_CreatePermissionSetCommand = async (output, context) => {
|
|
|
592
477
|
$metadata: deserializeMetadata(output),
|
|
593
478
|
...contents,
|
|
594
479
|
};
|
|
595
|
-
return
|
|
480
|
+
return response;
|
|
596
481
|
};
|
|
597
482
|
exports.de_CreatePermissionSetCommand = de_CreatePermissionSetCommand;
|
|
598
483
|
const de_CreatePermissionSetCommandError = async (output, context) => {
|
|
@@ -625,10 +510,9 @@ const de_CreatePermissionSetCommandError = async (output, context) => {
|
|
|
625
510
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
626
511
|
default:
|
|
627
512
|
const parsedBody = parsedOutput.body;
|
|
628
|
-
|
|
513
|
+
return throwDefaultError({
|
|
629
514
|
output,
|
|
630
515
|
parsedBody,
|
|
631
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
632
516
|
errorCode,
|
|
633
517
|
});
|
|
634
518
|
}
|
|
@@ -644,7 +528,7 @@ const de_DeleteAccountAssignmentCommand = async (output, context) => {
|
|
|
644
528
|
$metadata: deserializeMetadata(output),
|
|
645
529
|
...contents,
|
|
646
530
|
};
|
|
647
|
-
return
|
|
531
|
+
return response;
|
|
648
532
|
};
|
|
649
533
|
exports.de_DeleteAccountAssignmentCommand = de_DeleteAccountAssignmentCommand;
|
|
650
534
|
const de_DeleteAccountAssignmentCommandError = async (output, context) => {
|
|
@@ -674,10 +558,9 @@ const de_DeleteAccountAssignmentCommandError = async (output, context) => {
|
|
|
674
558
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
675
559
|
default:
|
|
676
560
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
|
|
561
|
+
return throwDefaultError({
|
|
678
562
|
output,
|
|
679
563
|
parsedBody,
|
|
680
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
681
564
|
errorCode,
|
|
682
565
|
});
|
|
683
566
|
}
|
|
@@ -688,12 +571,12 @@ const de_DeleteInlinePolicyFromPermissionSetCommand = async (output, context) =>
|
|
|
688
571
|
}
|
|
689
572
|
const data = await parseBody(output.body, context);
|
|
690
573
|
let contents = {};
|
|
691
|
-
contents =
|
|
574
|
+
contents = (0, smithy_client_1._json)(data);
|
|
692
575
|
const response = {
|
|
693
576
|
$metadata: deserializeMetadata(output),
|
|
694
577
|
...contents,
|
|
695
578
|
};
|
|
696
|
-
return
|
|
579
|
+
return response;
|
|
697
580
|
};
|
|
698
581
|
exports.de_DeleteInlinePolicyFromPermissionSetCommand = de_DeleteInlinePolicyFromPermissionSetCommand;
|
|
699
582
|
const de_DeleteInlinePolicyFromPermissionSetCommandError = async (output, context) => {
|
|
@@ -723,10 +606,9 @@ const de_DeleteInlinePolicyFromPermissionSetCommandError = async (output, contex
|
|
|
723
606
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
724
607
|
default:
|
|
725
608
|
const parsedBody = parsedOutput.body;
|
|
726
|
-
|
|
609
|
+
return throwDefaultError({
|
|
727
610
|
output,
|
|
728
611
|
parsedBody,
|
|
729
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
730
612
|
errorCode,
|
|
731
613
|
});
|
|
732
614
|
}
|
|
@@ -737,12 +619,12 @@ const de_DeleteInstanceAccessControlAttributeConfigurationCommand = async (outpu
|
|
|
737
619
|
}
|
|
738
620
|
const data = await parseBody(output.body, context);
|
|
739
621
|
let contents = {};
|
|
740
|
-
contents =
|
|
622
|
+
contents = (0, smithy_client_1._json)(data);
|
|
741
623
|
const response = {
|
|
742
624
|
$metadata: deserializeMetadata(output),
|
|
743
625
|
...contents,
|
|
744
626
|
};
|
|
745
|
-
return
|
|
627
|
+
return response;
|
|
746
628
|
};
|
|
747
629
|
exports.de_DeleteInstanceAccessControlAttributeConfigurationCommand = de_DeleteInstanceAccessControlAttributeConfigurationCommand;
|
|
748
630
|
const de_DeleteInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
@@ -772,10 +654,9 @@ const de_DeleteInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
|
772
654
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
773
655
|
default:
|
|
774
656
|
const parsedBody = parsedOutput.body;
|
|
775
|
-
|
|
657
|
+
return throwDefaultError({
|
|
776
658
|
output,
|
|
777
659
|
parsedBody,
|
|
778
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
779
660
|
errorCode,
|
|
780
661
|
});
|
|
781
662
|
}
|
|
@@ -786,12 +667,12 @@ const de_DeletePermissionsBoundaryFromPermissionSetCommand = async (output, cont
|
|
|
786
667
|
}
|
|
787
668
|
const data = await parseBody(output.body, context);
|
|
788
669
|
let contents = {};
|
|
789
|
-
contents =
|
|
670
|
+
contents = (0, smithy_client_1._json)(data);
|
|
790
671
|
const response = {
|
|
791
672
|
$metadata: deserializeMetadata(output),
|
|
792
673
|
...contents,
|
|
793
674
|
};
|
|
794
|
-
return
|
|
675
|
+
return response;
|
|
795
676
|
};
|
|
796
677
|
exports.de_DeletePermissionsBoundaryFromPermissionSetCommand = de_DeletePermissionsBoundaryFromPermissionSetCommand;
|
|
797
678
|
const de_DeletePermissionsBoundaryFromPermissionSetCommandError = async (output, context) => {
|
|
@@ -818,10 +699,9 @@ const de_DeletePermissionsBoundaryFromPermissionSetCommandError = async (output,
|
|
|
818
699
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
700
|
default:
|
|
820
701
|
const parsedBody = parsedOutput.body;
|
|
821
|
-
|
|
702
|
+
return throwDefaultError({
|
|
822
703
|
output,
|
|
823
704
|
parsedBody,
|
|
824
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
825
705
|
errorCode,
|
|
826
706
|
});
|
|
827
707
|
}
|
|
@@ -832,12 +712,12 @@ const de_DeletePermissionSetCommand = async (output, context) => {
|
|
|
832
712
|
}
|
|
833
713
|
const data = await parseBody(output.body, context);
|
|
834
714
|
let contents = {};
|
|
835
|
-
contents =
|
|
715
|
+
contents = (0, smithy_client_1._json)(data);
|
|
836
716
|
const response = {
|
|
837
717
|
$metadata: deserializeMetadata(output),
|
|
838
718
|
...contents,
|
|
839
719
|
};
|
|
840
|
-
return
|
|
720
|
+
return response;
|
|
841
721
|
};
|
|
842
722
|
exports.de_DeletePermissionSetCommand = de_DeletePermissionSetCommand;
|
|
843
723
|
const de_DeletePermissionSetCommandError = async (output, context) => {
|
|
@@ -867,10 +747,9 @@ const de_DeletePermissionSetCommandError = async (output, context) => {
|
|
|
867
747
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
868
748
|
default:
|
|
869
749
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
|
|
750
|
+
return throwDefaultError({
|
|
871
751
|
output,
|
|
872
752
|
parsedBody,
|
|
873
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
874
753
|
errorCode,
|
|
875
754
|
});
|
|
876
755
|
}
|
|
@@ -886,7 +765,7 @@ const de_DescribeAccountAssignmentCreationStatusCommand = async (output, context
|
|
|
886
765
|
$metadata: deserializeMetadata(output),
|
|
887
766
|
...contents,
|
|
888
767
|
};
|
|
889
|
-
return
|
|
768
|
+
return response;
|
|
890
769
|
};
|
|
891
770
|
exports.de_DescribeAccountAssignmentCreationStatusCommand = de_DescribeAccountAssignmentCreationStatusCommand;
|
|
892
771
|
const de_DescribeAccountAssignmentCreationStatusCommandError = async (output, context) => {
|
|
@@ -913,10 +792,9 @@ const de_DescribeAccountAssignmentCreationStatusCommandError = async (output, co
|
|
|
913
792
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
914
793
|
default:
|
|
915
794
|
const parsedBody = parsedOutput.body;
|
|
916
|
-
|
|
795
|
+
return throwDefaultError({
|
|
917
796
|
output,
|
|
918
797
|
parsedBody,
|
|
919
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
920
798
|
errorCode,
|
|
921
799
|
});
|
|
922
800
|
}
|
|
@@ -932,7 +810,7 @@ const de_DescribeAccountAssignmentDeletionStatusCommand = async (output, context
|
|
|
932
810
|
$metadata: deserializeMetadata(output),
|
|
933
811
|
...contents,
|
|
934
812
|
};
|
|
935
|
-
return
|
|
813
|
+
return response;
|
|
936
814
|
};
|
|
937
815
|
exports.de_DescribeAccountAssignmentDeletionStatusCommand = de_DescribeAccountAssignmentDeletionStatusCommand;
|
|
938
816
|
const de_DescribeAccountAssignmentDeletionStatusCommandError = async (output, context) => {
|
|
@@ -959,10 +837,9 @@ const de_DescribeAccountAssignmentDeletionStatusCommandError = async (output, co
|
|
|
959
837
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
960
838
|
default:
|
|
961
839
|
const parsedBody = parsedOutput.body;
|
|
962
|
-
|
|
840
|
+
return throwDefaultError({
|
|
963
841
|
output,
|
|
964
842
|
parsedBody,
|
|
965
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
966
843
|
errorCode,
|
|
967
844
|
});
|
|
968
845
|
}
|
|
@@ -973,12 +850,12 @@ const de_DescribeInstanceAccessControlAttributeConfigurationCommand = async (out
|
|
|
973
850
|
}
|
|
974
851
|
const data = await parseBody(output.body, context);
|
|
975
852
|
let contents = {};
|
|
976
|
-
contents =
|
|
853
|
+
contents = (0, smithy_client_1._json)(data);
|
|
977
854
|
const response = {
|
|
978
855
|
$metadata: deserializeMetadata(output),
|
|
979
856
|
...contents,
|
|
980
857
|
};
|
|
981
|
-
return
|
|
858
|
+
return response;
|
|
982
859
|
};
|
|
983
860
|
exports.de_DescribeInstanceAccessControlAttributeConfigurationCommand = de_DescribeInstanceAccessControlAttributeConfigurationCommand;
|
|
984
861
|
const de_DescribeInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
@@ -1005,10 +882,9 @@ const de_DescribeInstanceAccessControlAttributeConfigurationCommandError = async
|
|
|
1005
882
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1006
883
|
default:
|
|
1007
884
|
const parsedBody = parsedOutput.body;
|
|
1008
|
-
|
|
885
|
+
return throwDefaultError({
|
|
1009
886
|
output,
|
|
1010
887
|
parsedBody,
|
|
1011
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1012
888
|
errorCode,
|
|
1013
889
|
});
|
|
1014
890
|
}
|
|
@@ -1024,7 +900,7 @@ const de_DescribePermissionSetCommand = async (output, context) => {
|
|
|
1024
900
|
$metadata: deserializeMetadata(output),
|
|
1025
901
|
...contents,
|
|
1026
902
|
};
|
|
1027
|
-
return
|
|
903
|
+
return response;
|
|
1028
904
|
};
|
|
1029
905
|
exports.de_DescribePermissionSetCommand = de_DescribePermissionSetCommand;
|
|
1030
906
|
const de_DescribePermissionSetCommandError = async (output, context) => {
|
|
@@ -1051,10 +927,9 @@ const de_DescribePermissionSetCommandError = async (output, context) => {
|
|
|
1051
927
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1052
928
|
default:
|
|
1053
929
|
const parsedBody = parsedOutput.body;
|
|
1054
|
-
|
|
930
|
+
return throwDefaultError({
|
|
1055
931
|
output,
|
|
1056
932
|
parsedBody,
|
|
1057
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1058
933
|
errorCode,
|
|
1059
934
|
});
|
|
1060
935
|
}
|
|
@@ -1070,7 +945,7 @@ const de_DescribePermissionSetProvisioningStatusCommand = async (output, context
|
|
|
1070
945
|
$metadata: deserializeMetadata(output),
|
|
1071
946
|
...contents,
|
|
1072
947
|
};
|
|
1073
|
-
return
|
|
948
|
+
return response;
|
|
1074
949
|
};
|
|
1075
950
|
exports.de_DescribePermissionSetProvisioningStatusCommand = de_DescribePermissionSetProvisioningStatusCommand;
|
|
1076
951
|
const de_DescribePermissionSetProvisioningStatusCommandError = async (output, context) => {
|
|
@@ -1097,10 +972,9 @@ const de_DescribePermissionSetProvisioningStatusCommandError = async (output, co
|
|
|
1097
972
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1098
973
|
default:
|
|
1099
974
|
const parsedBody = parsedOutput.body;
|
|
1100
|
-
|
|
975
|
+
return throwDefaultError({
|
|
1101
976
|
output,
|
|
1102
977
|
parsedBody,
|
|
1103
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1104
978
|
errorCode,
|
|
1105
979
|
});
|
|
1106
980
|
}
|
|
@@ -1111,12 +985,12 @@ const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = async (o
|
|
|
1111
985
|
}
|
|
1112
986
|
const data = await parseBody(output.body, context);
|
|
1113
987
|
let contents = {};
|
|
1114
|
-
contents =
|
|
988
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1115
989
|
const response = {
|
|
1116
990
|
$metadata: deserializeMetadata(output),
|
|
1117
991
|
...contents,
|
|
1118
992
|
};
|
|
1119
|
-
return
|
|
993
|
+
return response;
|
|
1120
994
|
};
|
|
1121
995
|
exports.de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand;
|
|
1122
996
|
const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommandError = async (output, context) => {
|
|
@@ -1146,10 +1020,9 @@ const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommandError = asy
|
|
|
1146
1020
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1147
1021
|
default:
|
|
1148
1022
|
const parsedBody = parsedOutput.body;
|
|
1149
|
-
|
|
1023
|
+
return throwDefaultError({
|
|
1150
1024
|
output,
|
|
1151
1025
|
parsedBody,
|
|
1152
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1153
1026
|
errorCode,
|
|
1154
1027
|
});
|
|
1155
1028
|
}
|
|
@@ -1160,12 +1033,12 @@ const de_DetachManagedPolicyFromPermissionSetCommand = async (output, context) =
|
|
|
1160
1033
|
}
|
|
1161
1034
|
const data = await parseBody(output.body, context);
|
|
1162
1035
|
let contents = {};
|
|
1163
|
-
contents =
|
|
1036
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1164
1037
|
const response = {
|
|
1165
1038
|
$metadata: deserializeMetadata(output),
|
|
1166
1039
|
...contents,
|
|
1167
1040
|
};
|
|
1168
|
-
return
|
|
1041
|
+
return response;
|
|
1169
1042
|
};
|
|
1170
1043
|
exports.de_DetachManagedPolicyFromPermissionSetCommand = de_DetachManagedPolicyFromPermissionSetCommand;
|
|
1171
1044
|
const de_DetachManagedPolicyFromPermissionSetCommandError = async (output, context) => {
|
|
@@ -1195,10 +1068,9 @@ const de_DetachManagedPolicyFromPermissionSetCommandError = async (output, conte
|
|
|
1195
1068
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1196
1069
|
default:
|
|
1197
1070
|
const parsedBody = parsedOutput.body;
|
|
1198
|
-
|
|
1071
|
+
return throwDefaultError({
|
|
1199
1072
|
output,
|
|
1200
1073
|
parsedBody,
|
|
1201
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1202
1074
|
errorCode,
|
|
1203
1075
|
});
|
|
1204
1076
|
}
|
|
@@ -1209,12 +1081,12 @@ const de_GetInlinePolicyForPermissionSetCommand = async (output, context) => {
|
|
|
1209
1081
|
}
|
|
1210
1082
|
const data = await parseBody(output.body, context);
|
|
1211
1083
|
let contents = {};
|
|
1212
|
-
contents =
|
|
1084
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1213
1085
|
const response = {
|
|
1214
1086
|
$metadata: deserializeMetadata(output),
|
|
1215
1087
|
...contents,
|
|
1216
1088
|
};
|
|
1217
|
-
return
|
|
1089
|
+
return response;
|
|
1218
1090
|
};
|
|
1219
1091
|
exports.de_GetInlinePolicyForPermissionSetCommand = de_GetInlinePolicyForPermissionSetCommand;
|
|
1220
1092
|
const de_GetInlinePolicyForPermissionSetCommandError = async (output, context) => {
|
|
@@ -1241,10 +1113,9 @@ const de_GetInlinePolicyForPermissionSetCommandError = async (output, context) =
|
|
|
1241
1113
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1242
1114
|
default:
|
|
1243
1115
|
const parsedBody = parsedOutput.body;
|
|
1244
|
-
|
|
1116
|
+
return throwDefaultError({
|
|
1245
1117
|
output,
|
|
1246
1118
|
parsedBody,
|
|
1247
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1248
1119
|
errorCode,
|
|
1249
1120
|
});
|
|
1250
1121
|
}
|
|
@@ -1255,12 +1126,12 @@ const de_GetPermissionsBoundaryForPermissionSetCommand = async (output, context)
|
|
|
1255
1126
|
}
|
|
1256
1127
|
const data = await parseBody(output.body, context);
|
|
1257
1128
|
let contents = {};
|
|
1258
|
-
contents =
|
|
1129
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1259
1130
|
const response = {
|
|
1260
1131
|
$metadata: deserializeMetadata(output),
|
|
1261
1132
|
...contents,
|
|
1262
1133
|
};
|
|
1263
|
-
return
|
|
1134
|
+
return response;
|
|
1264
1135
|
};
|
|
1265
1136
|
exports.de_GetPermissionsBoundaryForPermissionSetCommand = de_GetPermissionsBoundaryForPermissionSetCommand;
|
|
1266
1137
|
const de_GetPermissionsBoundaryForPermissionSetCommandError = async (output, context) => {
|
|
@@ -1287,10 +1158,9 @@ const de_GetPermissionsBoundaryForPermissionSetCommandError = async (output, con
|
|
|
1287
1158
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1288
1159
|
default:
|
|
1289
1160
|
const parsedBody = parsedOutput.body;
|
|
1290
|
-
|
|
1161
|
+
return throwDefaultError({
|
|
1291
1162
|
output,
|
|
1292
1163
|
parsedBody,
|
|
1293
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1294
1164
|
errorCode,
|
|
1295
1165
|
});
|
|
1296
1166
|
}
|
|
@@ -1306,7 +1176,7 @@ const de_ListAccountAssignmentCreationStatusCommand = async (output, context) =>
|
|
|
1306
1176
|
$metadata: deserializeMetadata(output),
|
|
1307
1177
|
...contents,
|
|
1308
1178
|
};
|
|
1309
|
-
return
|
|
1179
|
+
return response;
|
|
1310
1180
|
};
|
|
1311
1181
|
exports.de_ListAccountAssignmentCreationStatusCommand = de_ListAccountAssignmentCreationStatusCommand;
|
|
1312
1182
|
const de_ListAccountAssignmentCreationStatusCommandError = async (output, context) => {
|
|
@@ -1333,10 +1203,9 @@ const de_ListAccountAssignmentCreationStatusCommandError = async (output, contex
|
|
|
1333
1203
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
1204
|
default:
|
|
1335
1205
|
const parsedBody = parsedOutput.body;
|
|
1336
|
-
|
|
1206
|
+
return throwDefaultError({
|
|
1337
1207
|
output,
|
|
1338
1208
|
parsedBody,
|
|
1339
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1340
1209
|
errorCode,
|
|
1341
1210
|
});
|
|
1342
1211
|
}
|
|
@@ -1352,7 +1221,7 @@ const de_ListAccountAssignmentDeletionStatusCommand = async (output, context) =>
|
|
|
1352
1221
|
$metadata: deserializeMetadata(output),
|
|
1353
1222
|
...contents,
|
|
1354
1223
|
};
|
|
1355
|
-
return
|
|
1224
|
+
return response;
|
|
1356
1225
|
};
|
|
1357
1226
|
exports.de_ListAccountAssignmentDeletionStatusCommand = de_ListAccountAssignmentDeletionStatusCommand;
|
|
1358
1227
|
const de_ListAccountAssignmentDeletionStatusCommandError = async (output, context) => {
|
|
@@ -1379,10 +1248,9 @@ const de_ListAccountAssignmentDeletionStatusCommandError = async (output, contex
|
|
|
1379
1248
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1380
1249
|
default:
|
|
1381
1250
|
const parsedBody = parsedOutput.body;
|
|
1382
|
-
|
|
1251
|
+
return throwDefaultError({
|
|
1383
1252
|
output,
|
|
1384
1253
|
parsedBody,
|
|
1385
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1386
1254
|
errorCode,
|
|
1387
1255
|
});
|
|
1388
1256
|
}
|
|
@@ -1393,12 +1261,12 @@ const de_ListAccountAssignmentsCommand = async (output, context) => {
|
|
|
1393
1261
|
}
|
|
1394
1262
|
const data = await parseBody(output.body, context);
|
|
1395
1263
|
let contents = {};
|
|
1396
|
-
contents =
|
|
1264
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1397
1265
|
const response = {
|
|
1398
1266
|
$metadata: deserializeMetadata(output),
|
|
1399
1267
|
...contents,
|
|
1400
1268
|
};
|
|
1401
|
-
return
|
|
1269
|
+
return response;
|
|
1402
1270
|
};
|
|
1403
1271
|
exports.de_ListAccountAssignmentsCommand = de_ListAccountAssignmentsCommand;
|
|
1404
1272
|
const de_ListAccountAssignmentsCommandError = async (output, context) => {
|
|
@@ -1425,10 +1293,9 @@ const de_ListAccountAssignmentsCommandError = async (output, context) => {
|
|
|
1425
1293
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1426
1294
|
default:
|
|
1427
1295
|
const parsedBody = parsedOutput.body;
|
|
1428
|
-
|
|
1296
|
+
return throwDefaultError({
|
|
1429
1297
|
output,
|
|
1430
1298
|
parsedBody,
|
|
1431
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1432
1299
|
errorCode,
|
|
1433
1300
|
});
|
|
1434
1301
|
}
|
|
@@ -1439,12 +1306,12 @@ const de_ListAccountsForProvisionedPermissionSetCommand = async (output, context
|
|
|
1439
1306
|
}
|
|
1440
1307
|
const data = await parseBody(output.body, context);
|
|
1441
1308
|
let contents = {};
|
|
1442
|
-
contents =
|
|
1309
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1443
1310
|
const response = {
|
|
1444
1311
|
$metadata: deserializeMetadata(output),
|
|
1445
1312
|
...contents,
|
|
1446
1313
|
};
|
|
1447
|
-
return
|
|
1314
|
+
return response;
|
|
1448
1315
|
};
|
|
1449
1316
|
exports.de_ListAccountsForProvisionedPermissionSetCommand = de_ListAccountsForProvisionedPermissionSetCommand;
|
|
1450
1317
|
const de_ListAccountsForProvisionedPermissionSetCommandError = async (output, context) => {
|
|
@@ -1471,10 +1338,9 @@ const de_ListAccountsForProvisionedPermissionSetCommandError = async (output, co
|
|
|
1471
1338
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1472
1339
|
default:
|
|
1473
1340
|
const parsedBody = parsedOutput.body;
|
|
1474
|
-
|
|
1341
|
+
return throwDefaultError({
|
|
1475
1342
|
output,
|
|
1476
1343
|
parsedBody,
|
|
1477
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1478
1344
|
errorCode,
|
|
1479
1345
|
});
|
|
1480
1346
|
}
|
|
@@ -1485,12 +1351,12 @@ const de_ListCustomerManagedPolicyReferencesInPermissionSetCommand = async (outp
|
|
|
1485
1351
|
}
|
|
1486
1352
|
const data = await parseBody(output.body, context);
|
|
1487
1353
|
let contents = {};
|
|
1488
|
-
contents =
|
|
1354
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1489
1355
|
const response = {
|
|
1490
1356
|
$metadata: deserializeMetadata(output),
|
|
1491
1357
|
...contents,
|
|
1492
1358
|
};
|
|
1493
|
-
return
|
|
1359
|
+
return response;
|
|
1494
1360
|
};
|
|
1495
1361
|
exports.de_ListCustomerManagedPolicyReferencesInPermissionSetCommand = de_ListCustomerManagedPolicyReferencesInPermissionSetCommand;
|
|
1496
1362
|
const de_ListCustomerManagedPolicyReferencesInPermissionSetCommandError = async (output, context) => {
|
|
@@ -1517,10 +1383,9 @@ const de_ListCustomerManagedPolicyReferencesInPermissionSetCommandError = async
|
|
|
1517
1383
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1518
1384
|
default:
|
|
1519
1385
|
const parsedBody = parsedOutput.body;
|
|
1520
|
-
|
|
1386
|
+
return throwDefaultError({
|
|
1521
1387
|
output,
|
|
1522
1388
|
parsedBody,
|
|
1523
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1524
1389
|
errorCode,
|
|
1525
1390
|
});
|
|
1526
1391
|
}
|
|
@@ -1531,12 +1396,12 @@ const de_ListInstancesCommand = async (output, context) => {
|
|
|
1531
1396
|
}
|
|
1532
1397
|
const data = await parseBody(output.body, context);
|
|
1533
1398
|
let contents = {};
|
|
1534
|
-
contents =
|
|
1399
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1535
1400
|
const response = {
|
|
1536
1401
|
$metadata: deserializeMetadata(output),
|
|
1537
1402
|
...contents,
|
|
1538
1403
|
};
|
|
1539
|
-
return
|
|
1404
|
+
return response;
|
|
1540
1405
|
};
|
|
1541
1406
|
exports.de_ListInstancesCommand = de_ListInstancesCommand;
|
|
1542
1407
|
const de_ListInstancesCommandError = async (output, context) => {
|
|
@@ -1560,10 +1425,9 @@ const de_ListInstancesCommandError = async (output, context) => {
|
|
|
1560
1425
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1561
1426
|
default:
|
|
1562
1427
|
const parsedBody = parsedOutput.body;
|
|
1563
|
-
|
|
1428
|
+
return throwDefaultError({
|
|
1564
1429
|
output,
|
|
1565
1430
|
parsedBody,
|
|
1566
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1567
1431
|
errorCode,
|
|
1568
1432
|
});
|
|
1569
1433
|
}
|
|
@@ -1574,12 +1438,12 @@ const de_ListManagedPoliciesInPermissionSetCommand = async (output, context) =>
|
|
|
1574
1438
|
}
|
|
1575
1439
|
const data = await parseBody(output.body, context);
|
|
1576
1440
|
let contents = {};
|
|
1577
|
-
contents =
|
|
1441
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1578
1442
|
const response = {
|
|
1579
1443
|
$metadata: deserializeMetadata(output),
|
|
1580
1444
|
...contents,
|
|
1581
1445
|
};
|
|
1582
|
-
return
|
|
1446
|
+
return response;
|
|
1583
1447
|
};
|
|
1584
1448
|
exports.de_ListManagedPoliciesInPermissionSetCommand = de_ListManagedPoliciesInPermissionSetCommand;
|
|
1585
1449
|
const de_ListManagedPoliciesInPermissionSetCommandError = async (output, context) => {
|
|
@@ -1606,10 +1470,9 @@ const de_ListManagedPoliciesInPermissionSetCommandError = async (output, context
|
|
|
1606
1470
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1607
1471
|
default:
|
|
1608
1472
|
const parsedBody = parsedOutput.body;
|
|
1609
|
-
|
|
1473
|
+
return throwDefaultError({
|
|
1610
1474
|
output,
|
|
1611
1475
|
parsedBody,
|
|
1612
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1613
1476
|
errorCode,
|
|
1614
1477
|
});
|
|
1615
1478
|
}
|
|
@@ -1625,7 +1488,7 @@ const de_ListPermissionSetProvisioningStatusCommand = async (output, context) =>
|
|
|
1625
1488
|
$metadata: deserializeMetadata(output),
|
|
1626
1489
|
...contents,
|
|
1627
1490
|
};
|
|
1628
|
-
return
|
|
1491
|
+
return response;
|
|
1629
1492
|
};
|
|
1630
1493
|
exports.de_ListPermissionSetProvisioningStatusCommand = de_ListPermissionSetProvisioningStatusCommand;
|
|
1631
1494
|
const de_ListPermissionSetProvisioningStatusCommandError = async (output, context) => {
|
|
@@ -1652,10 +1515,9 @@ const de_ListPermissionSetProvisioningStatusCommandError = async (output, contex
|
|
|
1652
1515
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1653
1516
|
default:
|
|
1654
1517
|
const parsedBody = parsedOutput.body;
|
|
1655
|
-
|
|
1518
|
+
return throwDefaultError({
|
|
1656
1519
|
output,
|
|
1657
1520
|
parsedBody,
|
|
1658
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1659
1521
|
errorCode,
|
|
1660
1522
|
});
|
|
1661
1523
|
}
|
|
@@ -1666,12 +1528,12 @@ const de_ListPermissionSetsCommand = async (output, context) => {
|
|
|
1666
1528
|
}
|
|
1667
1529
|
const data = await parseBody(output.body, context);
|
|
1668
1530
|
let contents = {};
|
|
1669
|
-
contents =
|
|
1531
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1670
1532
|
const response = {
|
|
1671
1533
|
$metadata: deserializeMetadata(output),
|
|
1672
1534
|
...contents,
|
|
1673
1535
|
};
|
|
1674
|
-
return
|
|
1536
|
+
return response;
|
|
1675
1537
|
};
|
|
1676
1538
|
exports.de_ListPermissionSetsCommand = de_ListPermissionSetsCommand;
|
|
1677
1539
|
const de_ListPermissionSetsCommandError = async (output, context) => {
|
|
@@ -1698,10 +1560,9 @@ const de_ListPermissionSetsCommandError = async (output, context) => {
|
|
|
1698
1560
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1699
1561
|
default:
|
|
1700
1562
|
const parsedBody = parsedOutput.body;
|
|
1701
|
-
|
|
1563
|
+
return throwDefaultError({
|
|
1702
1564
|
output,
|
|
1703
1565
|
parsedBody,
|
|
1704
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1705
1566
|
errorCode,
|
|
1706
1567
|
});
|
|
1707
1568
|
}
|
|
@@ -1712,12 +1573,12 @@ const de_ListPermissionSetsProvisionedToAccountCommand = async (output, context)
|
|
|
1712
1573
|
}
|
|
1713
1574
|
const data = await parseBody(output.body, context);
|
|
1714
1575
|
let contents = {};
|
|
1715
|
-
contents =
|
|
1576
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1716
1577
|
const response = {
|
|
1717
1578
|
$metadata: deserializeMetadata(output),
|
|
1718
1579
|
...contents,
|
|
1719
1580
|
};
|
|
1720
|
-
return
|
|
1581
|
+
return response;
|
|
1721
1582
|
};
|
|
1722
1583
|
exports.de_ListPermissionSetsProvisionedToAccountCommand = de_ListPermissionSetsProvisionedToAccountCommand;
|
|
1723
1584
|
const de_ListPermissionSetsProvisionedToAccountCommandError = async (output, context) => {
|
|
@@ -1744,10 +1605,9 @@ const de_ListPermissionSetsProvisionedToAccountCommandError = async (output, con
|
|
|
1744
1605
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1745
1606
|
default:
|
|
1746
1607
|
const parsedBody = parsedOutput.body;
|
|
1747
|
-
|
|
1608
|
+
return throwDefaultError({
|
|
1748
1609
|
output,
|
|
1749
1610
|
parsedBody,
|
|
1750
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1751
1611
|
errorCode,
|
|
1752
1612
|
});
|
|
1753
1613
|
}
|
|
@@ -1758,12 +1618,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1758
1618
|
}
|
|
1759
1619
|
const data = await parseBody(output.body, context);
|
|
1760
1620
|
let contents = {};
|
|
1761
|
-
contents =
|
|
1621
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1762
1622
|
const response = {
|
|
1763
1623
|
$metadata: deserializeMetadata(output),
|
|
1764
1624
|
...contents,
|
|
1765
1625
|
};
|
|
1766
|
-
return
|
|
1626
|
+
return response;
|
|
1767
1627
|
};
|
|
1768
1628
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1769
1629
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1790,10 +1650,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1790
1650
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1791
1651
|
default:
|
|
1792
1652
|
const parsedBody = parsedOutput.body;
|
|
1793
|
-
|
|
1653
|
+
return throwDefaultError({
|
|
1794
1654
|
output,
|
|
1795
1655
|
parsedBody,
|
|
1796
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1797
1656
|
errorCode,
|
|
1798
1657
|
});
|
|
1799
1658
|
}
|
|
@@ -1809,7 +1668,7 @@ const de_ProvisionPermissionSetCommand = async (output, context) => {
|
|
|
1809
1668
|
$metadata: deserializeMetadata(output),
|
|
1810
1669
|
...contents,
|
|
1811
1670
|
};
|
|
1812
|
-
return
|
|
1671
|
+
return response;
|
|
1813
1672
|
};
|
|
1814
1673
|
exports.de_ProvisionPermissionSetCommand = de_ProvisionPermissionSetCommand;
|
|
1815
1674
|
const de_ProvisionPermissionSetCommandError = async (output, context) => {
|
|
@@ -1839,10 +1698,9 @@ const de_ProvisionPermissionSetCommandError = async (output, context) => {
|
|
|
1839
1698
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1840
1699
|
default:
|
|
1841
1700
|
const parsedBody = parsedOutput.body;
|
|
1842
|
-
|
|
1701
|
+
return throwDefaultError({
|
|
1843
1702
|
output,
|
|
1844
1703
|
parsedBody,
|
|
1845
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1846
1704
|
errorCode,
|
|
1847
1705
|
});
|
|
1848
1706
|
}
|
|
@@ -1853,12 +1711,12 @@ const de_PutInlinePolicyToPermissionSetCommand = async (output, context) => {
|
|
|
1853
1711
|
}
|
|
1854
1712
|
const data = await parseBody(output.body, context);
|
|
1855
1713
|
let contents = {};
|
|
1856
|
-
contents =
|
|
1714
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1857
1715
|
const response = {
|
|
1858
1716
|
$metadata: deserializeMetadata(output),
|
|
1859
1717
|
...contents,
|
|
1860
1718
|
};
|
|
1861
|
-
return
|
|
1719
|
+
return response;
|
|
1862
1720
|
};
|
|
1863
1721
|
exports.de_PutInlinePolicyToPermissionSetCommand = de_PutInlinePolicyToPermissionSetCommand;
|
|
1864
1722
|
const de_PutInlinePolicyToPermissionSetCommandError = async (output, context) => {
|
|
@@ -1891,10 +1749,9 @@ const de_PutInlinePolicyToPermissionSetCommandError = async (output, context) =>
|
|
|
1891
1749
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1892
1750
|
default:
|
|
1893
1751
|
const parsedBody = parsedOutput.body;
|
|
1894
|
-
|
|
1752
|
+
return throwDefaultError({
|
|
1895
1753
|
output,
|
|
1896
1754
|
parsedBody,
|
|
1897
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1898
1755
|
errorCode,
|
|
1899
1756
|
});
|
|
1900
1757
|
}
|
|
@@ -1905,12 +1762,12 @@ const de_PutPermissionsBoundaryToPermissionSetCommand = async (output, context)
|
|
|
1905
1762
|
}
|
|
1906
1763
|
const data = await parseBody(output.body, context);
|
|
1907
1764
|
let contents = {};
|
|
1908
|
-
contents =
|
|
1765
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1909
1766
|
const response = {
|
|
1910
1767
|
$metadata: deserializeMetadata(output),
|
|
1911
1768
|
...contents,
|
|
1912
1769
|
};
|
|
1913
|
-
return
|
|
1770
|
+
return response;
|
|
1914
1771
|
};
|
|
1915
1772
|
exports.de_PutPermissionsBoundaryToPermissionSetCommand = de_PutPermissionsBoundaryToPermissionSetCommand;
|
|
1916
1773
|
const de_PutPermissionsBoundaryToPermissionSetCommandError = async (output, context) => {
|
|
@@ -1940,10 +1797,9 @@ const de_PutPermissionsBoundaryToPermissionSetCommandError = async (output, cont
|
|
|
1940
1797
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1941
1798
|
default:
|
|
1942
1799
|
const parsedBody = parsedOutput.body;
|
|
1943
|
-
|
|
1800
|
+
return throwDefaultError({
|
|
1944
1801
|
output,
|
|
1945
1802
|
parsedBody,
|
|
1946
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1947
1803
|
errorCode,
|
|
1948
1804
|
});
|
|
1949
1805
|
}
|
|
@@ -1954,12 +1810,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1954
1810
|
}
|
|
1955
1811
|
const data = await parseBody(output.body, context);
|
|
1956
1812
|
let contents = {};
|
|
1957
|
-
contents =
|
|
1813
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1958
1814
|
const response = {
|
|
1959
1815
|
$metadata: deserializeMetadata(output),
|
|
1960
1816
|
...contents,
|
|
1961
1817
|
};
|
|
1962
|
-
return
|
|
1818
|
+
return response;
|
|
1963
1819
|
};
|
|
1964
1820
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1965
1821
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1992,10 +1848,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1992
1848
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1993
1849
|
default:
|
|
1994
1850
|
const parsedBody = parsedOutput.body;
|
|
1995
|
-
|
|
1851
|
+
return throwDefaultError({
|
|
1996
1852
|
output,
|
|
1997
1853
|
parsedBody,
|
|
1998
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1999
1854
|
errorCode,
|
|
2000
1855
|
});
|
|
2001
1856
|
}
|
|
@@ -2006,12 +1861,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2006
1861
|
}
|
|
2007
1862
|
const data = await parseBody(output.body, context);
|
|
2008
1863
|
let contents = {};
|
|
2009
|
-
contents =
|
|
1864
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2010
1865
|
const response = {
|
|
2011
1866
|
$metadata: deserializeMetadata(output),
|
|
2012
1867
|
...contents,
|
|
2013
1868
|
};
|
|
2014
|
-
return
|
|
1869
|
+
return response;
|
|
2015
1870
|
};
|
|
2016
1871
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2017
1872
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -2041,10 +1896,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2041
1896
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2042
1897
|
default:
|
|
2043
1898
|
const parsedBody = parsedOutput.body;
|
|
2044
|
-
|
|
1899
|
+
return throwDefaultError({
|
|
2045
1900
|
output,
|
|
2046
1901
|
parsedBody,
|
|
2047
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
2048
1902
|
errorCode,
|
|
2049
1903
|
});
|
|
2050
1904
|
}
|
|
@@ -2055,12 +1909,12 @@ const de_UpdateInstanceAccessControlAttributeConfigurationCommand = async (outpu
|
|
|
2055
1909
|
}
|
|
2056
1910
|
const data = await parseBody(output.body, context);
|
|
2057
1911
|
let contents = {};
|
|
2058
|
-
contents =
|
|
1912
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2059
1913
|
const response = {
|
|
2060
1914
|
$metadata: deserializeMetadata(output),
|
|
2061
1915
|
...contents,
|
|
2062
1916
|
};
|
|
2063
|
-
return
|
|
1917
|
+
return response;
|
|
2064
1918
|
};
|
|
2065
1919
|
exports.de_UpdateInstanceAccessControlAttributeConfigurationCommand = de_UpdateInstanceAccessControlAttributeConfigurationCommand;
|
|
2066
1920
|
const de_UpdateInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
@@ -2090,10 +1944,9 @@ const de_UpdateInstanceAccessControlAttributeConfigurationCommandError = async (
|
|
|
2090
1944
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2091
1945
|
default:
|
|
2092
1946
|
const parsedBody = parsedOutput.body;
|
|
2093
|
-
|
|
1947
|
+
return throwDefaultError({
|
|
2094
1948
|
output,
|
|
2095
1949
|
parsedBody,
|
|
2096
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
2097
1950
|
errorCode,
|
|
2098
1951
|
});
|
|
2099
1952
|
}
|
|
@@ -2104,12 +1957,12 @@ const de_UpdatePermissionSetCommand = async (output, context) => {
|
|
|
2104
1957
|
}
|
|
2105
1958
|
const data = await parseBody(output.body, context);
|
|
2106
1959
|
let contents = {};
|
|
2107
|
-
contents =
|
|
1960
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2108
1961
|
const response = {
|
|
2109
1962
|
$metadata: deserializeMetadata(output),
|
|
2110
1963
|
...contents,
|
|
2111
1964
|
};
|
|
2112
|
-
return
|
|
1965
|
+
return response;
|
|
2113
1966
|
};
|
|
2114
1967
|
exports.de_UpdatePermissionSetCommand = de_UpdatePermissionSetCommand;
|
|
2115
1968
|
const de_UpdatePermissionSetCommandError = async (output, context) => {
|
|
@@ -2139,17 +1992,16 @@ const de_UpdatePermissionSetCommandError = async (output, context) => {
|
|
|
2139
1992
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2140
1993
|
default:
|
|
2141
1994
|
const parsedBody = parsedOutput.body;
|
|
2142
|
-
|
|
1995
|
+
return throwDefaultError({
|
|
2143
1996
|
output,
|
|
2144
1997
|
parsedBody,
|
|
2145
|
-
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
2146
1998
|
errorCode,
|
|
2147
1999
|
});
|
|
2148
2000
|
}
|
|
2149
2001
|
};
|
|
2150
2002
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2151
2003
|
const body = parsedOutput.body;
|
|
2152
|
-
const deserialized =
|
|
2004
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2153
2005
|
const exception = new models_0_1.AccessDeniedException({
|
|
2154
2006
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2155
2007
|
...deserialized,
|
|
@@ -2158,7 +2010,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2158
2010
|
};
|
|
2159
2011
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2160
2012
|
const body = parsedOutput.body;
|
|
2161
|
-
const deserialized =
|
|
2013
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2162
2014
|
const exception = new models_0_1.ConflictException({
|
|
2163
2015
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2164
2016
|
...deserialized,
|
|
@@ -2167,7 +2019,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2167
2019
|
};
|
|
2168
2020
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2169
2021
|
const body = parsedOutput.body;
|
|
2170
|
-
const deserialized =
|
|
2022
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2171
2023
|
const exception = new models_0_1.InternalServerException({
|
|
2172
2024
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2173
2025
|
...deserialized,
|
|
@@ -2176,7 +2028,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2176
2028
|
};
|
|
2177
2029
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2178
2030
|
const body = parsedOutput.body;
|
|
2179
|
-
const deserialized =
|
|
2031
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2180
2032
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2181
2033
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2182
2034
|
...deserialized,
|
|
@@ -2185,7 +2037,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2185
2037
|
};
|
|
2186
2038
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2187
2039
|
const body = parsedOutput.body;
|
|
2188
|
-
const deserialized =
|
|
2040
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2189
2041
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2190
2042
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2191
2043
|
...deserialized,
|
|
@@ -2194,7 +2046,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2194
2046
|
};
|
|
2195
2047
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2196
2048
|
const body = parsedOutput.body;
|
|
2197
|
-
const deserialized =
|
|
2049
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2198
2050
|
const exception = new models_0_1.ThrottlingException({
|
|
2199
2051
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2200
2052
|
...deserialized,
|
|
@@ -2203,828 +2055,133 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2203
2055
|
};
|
|
2204
2056
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2205
2057
|
const body = parsedOutput.body;
|
|
2206
|
-
const deserialized =
|
|
2058
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2207
2059
|
const exception = new models_0_1.ValidationException({
|
|
2208
2060
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2209
2061
|
...deserialized,
|
|
2210
2062
|
});
|
|
2211
2063
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2212
2064
|
};
|
|
2213
|
-
const se_AccessControlAttribute = (input, context) => {
|
|
2214
|
-
return {
|
|
2215
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2216
|
-
...(input.Value != null && { Value: se_AccessControlAttributeValue(input.Value, context) }),
|
|
2217
|
-
};
|
|
2218
|
-
};
|
|
2219
|
-
const se_AccessControlAttributeList = (input, context) => {
|
|
2220
|
-
return input
|
|
2221
|
-
.filter((e) => e != null)
|
|
2222
|
-
.map((entry) => {
|
|
2223
|
-
return se_AccessControlAttribute(entry, context);
|
|
2224
|
-
});
|
|
2225
|
-
};
|
|
2226
|
-
const se_AccessControlAttributeValue = (input, context) => {
|
|
2227
|
-
return {
|
|
2228
|
-
...(input.Source != null && { Source: se_AccessControlAttributeValueSourceList(input.Source, context) }),
|
|
2229
|
-
};
|
|
2230
|
-
};
|
|
2231
|
-
const se_AccessControlAttributeValueSourceList = (input, context) => {
|
|
2232
|
-
return input
|
|
2233
|
-
.filter((e) => e != null)
|
|
2234
|
-
.map((entry) => {
|
|
2235
|
-
return entry;
|
|
2236
|
-
});
|
|
2237
|
-
};
|
|
2238
|
-
const se_AttachCustomerManagedPolicyReferenceToPermissionSetRequest = (input, context) => {
|
|
2239
|
-
return {
|
|
2240
|
-
...(input.CustomerManagedPolicyReference != null && {
|
|
2241
|
-
CustomerManagedPolicyReference: se_CustomerManagedPolicyReference(input.CustomerManagedPolicyReference, context),
|
|
2242
|
-
}),
|
|
2243
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2244
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2245
|
-
};
|
|
2246
|
-
};
|
|
2247
|
-
const se_AttachManagedPolicyToPermissionSetRequest = (input, context) => {
|
|
2248
|
-
return {
|
|
2249
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2250
|
-
...(input.ManagedPolicyArn != null && { ManagedPolicyArn: input.ManagedPolicyArn }),
|
|
2251
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2252
|
-
};
|
|
2253
|
-
};
|
|
2254
|
-
const se_CreateAccountAssignmentRequest = (input, context) => {
|
|
2255
|
-
return {
|
|
2256
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2257
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2258
|
-
...(input.PrincipalId != null && { PrincipalId: input.PrincipalId }),
|
|
2259
|
-
...(input.PrincipalType != null && { PrincipalType: input.PrincipalType }),
|
|
2260
|
-
...(input.TargetId != null && { TargetId: input.TargetId }),
|
|
2261
|
-
...(input.TargetType != null && { TargetType: input.TargetType }),
|
|
2262
|
-
};
|
|
2263
|
-
};
|
|
2264
|
-
const se_CreateInstanceAccessControlAttributeConfigurationRequest = (input, context) => {
|
|
2265
|
-
return {
|
|
2266
|
-
...(input.InstanceAccessControlAttributeConfiguration != null && {
|
|
2267
|
-
InstanceAccessControlAttributeConfiguration: se_InstanceAccessControlAttributeConfiguration(input.InstanceAccessControlAttributeConfiguration, context),
|
|
2268
|
-
}),
|
|
2269
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2270
|
-
};
|
|
2271
|
-
};
|
|
2272
|
-
const se_CreatePermissionSetRequest = (input, context) => {
|
|
2273
|
-
return {
|
|
2274
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2275
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2276
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2277
|
-
...(input.RelayState != null && { RelayState: input.RelayState }),
|
|
2278
|
-
...(input.SessionDuration != null && { SessionDuration: input.SessionDuration }),
|
|
2279
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2280
|
-
};
|
|
2281
|
-
};
|
|
2282
|
-
const se_CustomerManagedPolicyReference = (input, context) => {
|
|
2283
|
-
return {
|
|
2284
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2285
|
-
...(input.Path != null && { Path: input.Path }),
|
|
2286
|
-
};
|
|
2287
|
-
};
|
|
2288
|
-
const se_DeleteAccountAssignmentRequest = (input, context) => {
|
|
2289
|
-
return {
|
|
2290
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2291
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2292
|
-
...(input.PrincipalId != null && { PrincipalId: input.PrincipalId }),
|
|
2293
|
-
...(input.PrincipalType != null && { PrincipalType: input.PrincipalType }),
|
|
2294
|
-
...(input.TargetId != null && { TargetId: input.TargetId }),
|
|
2295
|
-
...(input.TargetType != null && { TargetType: input.TargetType }),
|
|
2296
|
-
};
|
|
2297
|
-
};
|
|
2298
|
-
const se_DeleteInlinePolicyFromPermissionSetRequest = (input, context) => {
|
|
2299
|
-
return {
|
|
2300
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2301
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2302
|
-
};
|
|
2303
|
-
};
|
|
2304
|
-
const se_DeleteInstanceAccessControlAttributeConfigurationRequest = (input, context) => {
|
|
2305
|
-
return {
|
|
2306
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2307
|
-
};
|
|
2308
|
-
};
|
|
2309
|
-
const se_DeletePermissionsBoundaryFromPermissionSetRequest = (input, context) => {
|
|
2310
|
-
return {
|
|
2311
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2312
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2313
|
-
};
|
|
2314
|
-
};
|
|
2315
|
-
const se_DeletePermissionSetRequest = (input, context) => {
|
|
2316
|
-
return {
|
|
2317
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2318
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2319
|
-
};
|
|
2320
|
-
};
|
|
2321
|
-
const se_DescribeAccountAssignmentCreationStatusRequest = (input, context) => {
|
|
2322
|
-
return {
|
|
2323
|
-
...(input.AccountAssignmentCreationRequestId != null && {
|
|
2324
|
-
AccountAssignmentCreationRequestId: input.AccountAssignmentCreationRequestId,
|
|
2325
|
-
}),
|
|
2326
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2327
|
-
};
|
|
2328
|
-
};
|
|
2329
|
-
const se_DescribeAccountAssignmentDeletionStatusRequest = (input, context) => {
|
|
2330
|
-
return {
|
|
2331
|
-
...(input.AccountAssignmentDeletionRequestId != null && {
|
|
2332
|
-
AccountAssignmentDeletionRequestId: input.AccountAssignmentDeletionRequestId,
|
|
2333
|
-
}),
|
|
2334
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2335
|
-
};
|
|
2336
|
-
};
|
|
2337
|
-
const se_DescribeInstanceAccessControlAttributeConfigurationRequest = (input, context) => {
|
|
2338
|
-
return {
|
|
2339
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2340
|
-
};
|
|
2341
|
-
};
|
|
2342
|
-
const se_DescribePermissionSetProvisioningStatusRequest = (input, context) => {
|
|
2343
|
-
return {
|
|
2344
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2345
|
-
...(input.ProvisionPermissionSetRequestId != null && {
|
|
2346
|
-
ProvisionPermissionSetRequestId: input.ProvisionPermissionSetRequestId,
|
|
2347
|
-
}),
|
|
2348
|
-
};
|
|
2349
|
-
};
|
|
2350
|
-
const se_DescribePermissionSetRequest = (input, context) => {
|
|
2351
|
-
return {
|
|
2352
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2353
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2354
|
-
};
|
|
2355
|
-
};
|
|
2356
|
-
const se_DetachCustomerManagedPolicyReferenceFromPermissionSetRequest = (input, context) => {
|
|
2357
|
-
return {
|
|
2358
|
-
...(input.CustomerManagedPolicyReference != null && {
|
|
2359
|
-
CustomerManagedPolicyReference: se_CustomerManagedPolicyReference(input.CustomerManagedPolicyReference, context),
|
|
2360
|
-
}),
|
|
2361
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2362
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2363
|
-
};
|
|
2364
|
-
};
|
|
2365
|
-
const se_DetachManagedPolicyFromPermissionSetRequest = (input, context) => {
|
|
2366
|
-
return {
|
|
2367
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2368
|
-
...(input.ManagedPolicyArn != null && { ManagedPolicyArn: input.ManagedPolicyArn }),
|
|
2369
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2370
|
-
};
|
|
2371
|
-
};
|
|
2372
|
-
const se_GetInlinePolicyForPermissionSetRequest = (input, context) => {
|
|
2373
|
-
return {
|
|
2374
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2375
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2376
|
-
};
|
|
2377
|
-
};
|
|
2378
|
-
const se_GetPermissionsBoundaryForPermissionSetRequest = (input, context) => {
|
|
2379
|
-
return {
|
|
2380
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2381
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2382
|
-
};
|
|
2383
|
-
};
|
|
2384
|
-
const se_InstanceAccessControlAttributeConfiguration = (input, context) => {
|
|
2385
|
-
return {
|
|
2386
|
-
...(input.AccessControlAttributes != null && {
|
|
2387
|
-
AccessControlAttributes: se_AccessControlAttributeList(input.AccessControlAttributes, context),
|
|
2388
|
-
}),
|
|
2389
|
-
};
|
|
2390
|
-
};
|
|
2391
|
-
const se_ListAccountAssignmentCreationStatusRequest = (input, context) => {
|
|
2392
|
-
return {
|
|
2393
|
-
...(input.Filter != null && { Filter: se_OperationStatusFilter(input.Filter, context) }),
|
|
2394
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2395
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2396
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2397
|
-
};
|
|
2398
|
-
};
|
|
2399
|
-
const se_ListAccountAssignmentDeletionStatusRequest = (input, context) => {
|
|
2400
|
-
return {
|
|
2401
|
-
...(input.Filter != null && { Filter: se_OperationStatusFilter(input.Filter, context) }),
|
|
2402
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2403
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2404
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2405
|
-
};
|
|
2406
|
-
};
|
|
2407
|
-
const se_ListAccountAssignmentsRequest = (input, context) => {
|
|
2408
|
-
return {
|
|
2409
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
2410
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2411
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2412
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2413
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2414
|
-
};
|
|
2415
|
-
};
|
|
2416
|
-
const se_ListAccountsForProvisionedPermissionSetRequest = (input, context) => {
|
|
2417
|
-
return {
|
|
2418
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2419
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2420
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2421
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2422
|
-
...(input.ProvisioningStatus != null && { ProvisioningStatus: input.ProvisioningStatus }),
|
|
2423
|
-
};
|
|
2424
|
-
};
|
|
2425
|
-
const se_ListCustomerManagedPolicyReferencesInPermissionSetRequest = (input, context) => {
|
|
2426
|
-
return {
|
|
2427
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2428
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2429
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2430
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2431
|
-
};
|
|
2432
|
-
};
|
|
2433
|
-
const se_ListInstancesRequest = (input, context) => {
|
|
2434
|
-
return {
|
|
2435
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2436
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2437
|
-
};
|
|
2438
|
-
};
|
|
2439
|
-
const se_ListManagedPoliciesInPermissionSetRequest = (input, context) => {
|
|
2440
|
-
return {
|
|
2441
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2442
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2443
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2444
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2445
|
-
};
|
|
2446
|
-
};
|
|
2447
|
-
const se_ListPermissionSetProvisioningStatusRequest = (input, context) => {
|
|
2448
|
-
return {
|
|
2449
|
-
...(input.Filter != null && { Filter: se_OperationStatusFilter(input.Filter, context) }),
|
|
2450
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2451
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2452
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2453
|
-
};
|
|
2454
|
-
};
|
|
2455
|
-
const se_ListPermissionSetsProvisionedToAccountRequest = (input, context) => {
|
|
2456
|
-
return {
|
|
2457
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
2458
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2459
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2460
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2461
|
-
...(input.ProvisioningStatus != null && { ProvisioningStatus: input.ProvisioningStatus }),
|
|
2462
|
-
};
|
|
2463
|
-
};
|
|
2464
|
-
const se_ListPermissionSetsRequest = (input, context) => {
|
|
2465
|
-
return {
|
|
2466
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2467
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2468
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2469
|
-
};
|
|
2470
|
-
};
|
|
2471
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2472
|
-
return {
|
|
2473
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2474
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2475
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2476
|
-
};
|
|
2477
|
-
};
|
|
2478
|
-
const se_OperationStatusFilter = (input, context) => {
|
|
2479
|
-
return {
|
|
2480
|
-
...(input.Status != null && { Status: input.Status }),
|
|
2481
|
-
};
|
|
2482
|
-
};
|
|
2483
|
-
const se_PermissionsBoundary = (input, context) => {
|
|
2484
|
-
return {
|
|
2485
|
-
...(input.CustomerManagedPolicyReference != null && {
|
|
2486
|
-
CustomerManagedPolicyReference: se_CustomerManagedPolicyReference(input.CustomerManagedPolicyReference, context),
|
|
2487
|
-
}),
|
|
2488
|
-
...(input.ManagedPolicyArn != null && { ManagedPolicyArn: input.ManagedPolicyArn }),
|
|
2489
|
-
};
|
|
2490
|
-
};
|
|
2491
|
-
const se_ProvisionPermissionSetRequest = (input, context) => {
|
|
2492
|
-
return {
|
|
2493
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2494
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2495
|
-
...(input.TargetId != null && { TargetId: input.TargetId }),
|
|
2496
|
-
...(input.TargetType != null && { TargetType: input.TargetType }),
|
|
2497
|
-
};
|
|
2498
|
-
};
|
|
2499
|
-
const se_PutInlinePolicyToPermissionSetRequest = (input, context) => {
|
|
2500
|
-
return {
|
|
2501
|
-
...(input.InlinePolicy != null && { InlinePolicy: input.InlinePolicy }),
|
|
2502
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2503
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2504
|
-
};
|
|
2505
|
-
};
|
|
2506
|
-
const se_PutPermissionsBoundaryToPermissionSetRequest = (input, context) => {
|
|
2507
|
-
return {
|
|
2508
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2509
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2510
|
-
...(input.PermissionsBoundary != null && {
|
|
2511
|
-
PermissionsBoundary: se_PermissionsBoundary(input.PermissionsBoundary, context),
|
|
2512
|
-
}),
|
|
2513
|
-
};
|
|
2514
|
-
};
|
|
2515
|
-
const se_Tag = (input, context) => {
|
|
2516
|
-
return {
|
|
2517
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2518
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2519
|
-
};
|
|
2520
|
-
};
|
|
2521
|
-
const se_TagKeyList = (input, context) => {
|
|
2522
|
-
return input
|
|
2523
|
-
.filter((e) => e != null)
|
|
2524
|
-
.map((entry) => {
|
|
2525
|
-
return entry;
|
|
2526
|
-
});
|
|
2527
|
-
};
|
|
2528
|
-
const se_TagList = (input, context) => {
|
|
2529
|
-
return input
|
|
2530
|
-
.filter((e) => e != null)
|
|
2531
|
-
.map((entry) => {
|
|
2532
|
-
return se_Tag(entry, context);
|
|
2533
|
-
});
|
|
2534
|
-
};
|
|
2535
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2536
|
-
return {
|
|
2537
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2538
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2539
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2540
|
-
};
|
|
2541
|
-
};
|
|
2542
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2543
|
-
return {
|
|
2544
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2545
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2546
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
2547
|
-
};
|
|
2548
|
-
};
|
|
2549
|
-
const se_UpdateInstanceAccessControlAttributeConfigurationRequest = (input, context) => {
|
|
2550
|
-
return {
|
|
2551
|
-
...(input.InstanceAccessControlAttributeConfiguration != null && {
|
|
2552
|
-
InstanceAccessControlAttributeConfiguration: se_InstanceAccessControlAttributeConfiguration(input.InstanceAccessControlAttributeConfiguration, context),
|
|
2553
|
-
}),
|
|
2554
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2555
|
-
};
|
|
2556
|
-
};
|
|
2557
|
-
const se_UpdatePermissionSetRequest = (input, context) => {
|
|
2558
|
-
return {
|
|
2559
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2560
|
-
...(input.InstanceArn != null && { InstanceArn: input.InstanceArn }),
|
|
2561
|
-
...(input.PermissionSetArn != null && { PermissionSetArn: input.PermissionSetArn }),
|
|
2562
|
-
...(input.RelayState != null && { RelayState: input.RelayState }),
|
|
2563
|
-
...(input.SessionDuration != null && { SessionDuration: input.SessionDuration }),
|
|
2564
|
-
};
|
|
2565
|
-
};
|
|
2566
|
-
const de_AccessControlAttribute = (output, context) => {
|
|
2567
|
-
return {
|
|
2568
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2569
|
-
Value: output.Value != null ? de_AccessControlAttributeValue(output.Value, context) : undefined,
|
|
2570
|
-
};
|
|
2571
|
-
};
|
|
2572
|
-
const de_AccessControlAttributeList = (output, context) => {
|
|
2573
|
-
const retVal = (output || [])
|
|
2574
|
-
.filter((e) => e != null)
|
|
2575
|
-
.map((entry) => {
|
|
2576
|
-
if (entry === null) {
|
|
2577
|
-
return null;
|
|
2578
|
-
}
|
|
2579
|
-
return de_AccessControlAttribute(entry, context);
|
|
2580
|
-
});
|
|
2581
|
-
return retVal;
|
|
2582
|
-
};
|
|
2583
|
-
const de_AccessControlAttributeValue = (output, context) => {
|
|
2584
|
-
return {
|
|
2585
|
-
Source: output.Source != null ? de_AccessControlAttributeValueSourceList(output.Source, context) : undefined,
|
|
2586
|
-
};
|
|
2587
|
-
};
|
|
2588
|
-
const de_AccessControlAttributeValueSourceList = (output, context) => {
|
|
2589
|
-
const retVal = (output || [])
|
|
2590
|
-
.filter((e) => e != null)
|
|
2591
|
-
.map((entry) => {
|
|
2592
|
-
if (entry === null) {
|
|
2593
|
-
return null;
|
|
2594
|
-
}
|
|
2595
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2596
|
-
});
|
|
2597
|
-
return retVal;
|
|
2598
|
-
};
|
|
2599
|
-
const de_AccessDeniedException = (output, context) => {
|
|
2600
|
-
return {
|
|
2601
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2602
|
-
};
|
|
2603
|
-
};
|
|
2604
|
-
const de_AccountAssignment = (output, context) => {
|
|
2605
|
-
return {
|
|
2606
|
-
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2607
|
-
PermissionSetArn: (0, smithy_client_1.expectString)(output.PermissionSetArn),
|
|
2608
|
-
PrincipalId: (0, smithy_client_1.expectString)(output.PrincipalId),
|
|
2609
|
-
PrincipalType: (0, smithy_client_1.expectString)(output.PrincipalType),
|
|
2610
|
-
};
|
|
2611
|
-
};
|
|
2612
|
-
const de_AccountAssignmentList = (output, context) => {
|
|
2613
|
-
const retVal = (output || [])
|
|
2614
|
-
.filter((e) => e != null)
|
|
2615
|
-
.map((entry) => {
|
|
2616
|
-
if (entry === null) {
|
|
2617
|
-
return null;
|
|
2618
|
-
}
|
|
2619
|
-
return de_AccountAssignment(entry, context);
|
|
2620
|
-
});
|
|
2621
|
-
return retVal;
|
|
2622
|
-
};
|
|
2623
2065
|
const de_AccountAssignmentOperationStatus = (output, context) => {
|
|
2624
|
-
return {
|
|
2625
|
-
CreatedDate:
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
TargetType: (0, smithy_client_1.expectString)(output.TargetType),
|
|
2636
|
-
};
|
|
2066
|
+
return (0, smithy_client_1.take)(output, {
|
|
2067
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2068
|
+
FailureReason: smithy_client_1.expectString,
|
|
2069
|
+
PermissionSetArn: smithy_client_1.expectString,
|
|
2070
|
+
PrincipalId: smithy_client_1.expectString,
|
|
2071
|
+
PrincipalType: smithy_client_1.expectString,
|
|
2072
|
+
RequestId: smithy_client_1.expectString,
|
|
2073
|
+
Status: smithy_client_1.expectString,
|
|
2074
|
+
TargetId: smithy_client_1.expectString,
|
|
2075
|
+
TargetType: smithy_client_1.expectString,
|
|
2076
|
+
});
|
|
2637
2077
|
};
|
|
2638
2078
|
const de_AccountAssignmentOperationStatusList = (output, context) => {
|
|
2639
2079
|
const retVal = (output || [])
|
|
2640
2080
|
.filter((e) => e != null)
|
|
2641
2081
|
.map((entry) => {
|
|
2642
|
-
if (entry === null) {
|
|
2643
|
-
return null;
|
|
2644
|
-
}
|
|
2645
2082
|
return de_AccountAssignmentOperationStatusMetadata(entry, context);
|
|
2646
2083
|
});
|
|
2647
2084
|
return retVal;
|
|
2648
2085
|
};
|
|
2649
2086
|
const de_AccountAssignmentOperationStatusMetadata = (output, context) => {
|
|
2650
|
-
return {
|
|
2651
|
-
CreatedDate:
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
2655
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2656
|
-
};
|
|
2657
|
-
};
|
|
2658
|
-
const de_AccountList = (output, context) => {
|
|
2659
|
-
const retVal = (output || [])
|
|
2660
|
-
.filter((e) => e != null)
|
|
2661
|
-
.map((entry) => {
|
|
2662
|
-
if (entry === null) {
|
|
2663
|
-
return null;
|
|
2664
|
-
}
|
|
2665
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2666
|
-
});
|
|
2667
|
-
return retVal;
|
|
2668
|
-
};
|
|
2669
|
-
const de_AttachCustomerManagedPolicyReferenceToPermissionSetResponse = (output, context) => {
|
|
2670
|
-
return {};
|
|
2671
|
-
};
|
|
2672
|
-
const de_AttachedManagedPolicy = (output, context) => {
|
|
2673
|
-
return {
|
|
2674
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2675
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2676
|
-
};
|
|
2677
|
-
};
|
|
2678
|
-
const de_AttachedManagedPolicyList = (output, context) => {
|
|
2679
|
-
const retVal = (output || [])
|
|
2680
|
-
.filter((e) => e != null)
|
|
2681
|
-
.map((entry) => {
|
|
2682
|
-
if (entry === null) {
|
|
2683
|
-
return null;
|
|
2684
|
-
}
|
|
2685
|
-
return de_AttachedManagedPolicy(entry, context);
|
|
2087
|
+
return (0, smithy_client_1.take)(output, {
|
|
2088
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2089
|
+
RequestId: smithy_client_1.expectString,
|
|
2090
|
+
Status: smithy_client_1.expectString,
|
|
2686
2091
|
});
|
|
2687
|
-
return retVal;
|
|
2688
|
-
};
|
|
2689
|
-
const de_AttachManagedPolicyToPermissionSetResponse = (output, context) => {
|
|
2690
|
-
return {};
|
|
2691
|
-
};
|
|
2692
|
-
const de_ConflictException = (output, context) => {
|
|
2693
|
-
return {
|
|
2694
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2695
|
-
};
|
|
2696
2092
|
};
|
|
2697
2093
|
const de_CreateAccountAssignmentResponse = (output, context) => {
|
|
2698
|
-
return {
|
|
2699
|
-
AccountAssignmentCreationStatus:
|
|
2700
|
-
|
|
2701
|
-
: undefined,
|
|
2702
|
-
};
|
|
2703
|
-
};
|
|
2704
|
-
const de_CreateInstanceAccessControlAttributeConfigurationResponse = (output, context) => {
|
|
2705
|
-
return {};
|
|
2094
|
+
return (0, smithy_client_1.take)(output, {
|
|
2095
|
+
AccountAssignmentCreationStatus: (_) => de_AccountAssignmentOperationStatus(_, context),
|
|
2096
|
+
});
|
|
2706
2097
|
};
|
|
2707
2098
|
const de_CreatePermissionSetResponse = (output, context) => {
|
|
2708
|
-
return {
|
|
2709
|
-
PermissionSet:
|
|
2710
|
-
};
|
|
2711
|
-
};
|
|
2712
|
-
const de_CustomerManagedPolicyReference = (output, context) => {
|
|
2713
|
-
return {
|
|
2714
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2715
|
-
Path: (0, smithy_client_1.expectString)(output.Path),
|
|
2716
|
-
};
|
|
2717
|
-
};
|
|
2718
|
-
const de_CustomerManagedPolicyReferenceList = (output, context) => {
|
|
2719
|
-
const retVal = (output || [])
|
|
2720
|
-
.filter((e) => e != null)
|
|
2721
|
-
.map((entry) => {
|
|
2722
|
-
if (entry === null) {
|
|
2723
|
-
return null;
|
|
2724
|
-
}
|
|
2725
|
-
return de_CustomerManagedPolicyReference(entry, context);
|
|
2099
|
+
return (0, smithy_client_1.take)(output, {
|
|
2100
|
+
PermissionSet: (_) => de_PermissionSet(_, context),
|
|
2726
2101
|
});
|
|
2727
|
-
return retVal;
|
|
2728
2102
|
};
|
|
2729
2103
|
const de_DeleteAccountAssignmentResponse = (output, context) => {
|
|
2730
|
-
return {
|
|
2731
|
-
AccountAssignmentDeletionStatus:
|
|
2732
|
-
|
|
2733
|
-
: undefined,
|
|
2734
|
-
};
|
|
2735
|
-
};
|
|
2736
|
-
const de_DeleteInlinePolicyFromPermissionSetResponse = (output, context) => {
|
|
2737
|
-
return {};
|
|
2738
|
-
};
|
|
2739
|
-
const de_DeleteInstanceAccessControlAttributeConfigurationResponse = (output, context) => {
|
|
2740
|
-
return {};
|
|
2741
|
-
};
|
|
2742
|
-
const de_DeletePermissionsBoundaryFromPermissionSetResponse = (output, context) => {
|
|
2743
|
-
return {};
|
|
2744
|
-
};
|
|
2745
|
-
const de_DeletePermissionSetResponse = (output, context) => {
|
|
2746
|
-
return {};
|
|
2104
|
+
return (0, smithy_client_1.take)(output, {
|
|
2105
|
+
AccountAssignmentDeletionStatus: (_) => de_AccountAssignmentOperationStatus(_, context),
|
|
2106
|
+
});
|
|
2747
2107
|
};
|
|
2748
2108
|
const de_DescribeAccountAssignmentCreationStatusResponse = (output, context) => {
|
|
2749
|
-
return {
|
|
2750
|
-
AccountAssignmentCreationStatus:
|
|
2751
|
-
|
|
2752
|
-
: undefined,
|
|
2753
|
-
};
|
|
2109
|
+
return (0, smithy_client_1.take)(output, {
|
|
2110
|
+
AccountAssignmentCreationStatus: (_) => de_AccountAssignmentOperationStatus(_, context),
|
|
2111
|
+
});
|
|
2754
2112
|
};
|
|
2755
2113
|
const de_DescribeAccountAssignmentDeletionStatusResponse = (output, context) => {
|
|
2756
|
-
return {
|
|
2757
|
-
AccountAssignmentDeletionStatus:
|
|
2758
|
-
|
|
2759
|
-
: undefined,
|
|
2760
|
-
};
|
|
2761
|
-
};
|
|
2762
|
-
const de_DescribeInstanceAccessControlAttributeConfigurationResponse = (output, context) => {
|
|
2763
|
-
return {
|
|
2764
|
-
InstanceAccessControlAttributeConfiguration: output.InstanceAccessControlAttributeConfiguration != null
|
|
2765
|
-
? de_InstanceAccessControlAttributeConfiguration(output.InstanceAccessControlAttributeConfiguration, context)
|
|
2766
|
-
: undefined,
|
|
2767
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2768
|
-
StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
|
|
2769
|
-
};
|
|
2114
|
+
return (0, smithy_client_1.take)(output, {
|
|
2115
|
+
AccountAssignmentDeletionStatus: (_) => de_AccountAssignmentOperationStatus(_, context),
|
|
2116
|
+
});
|
|
2770
2117
|
};
|
|
2771
2118
|
const de_DescribePermissionSetProvisioningStatusResponse = (output, context) => {
|
|
2772
|
-
return {
|
|
2773
|
-
PermissionSetProvisioningStatus:
|
|
2774
|
-
|
|
2775
|
-
: undefined,
|
|
2776
|
-
};
|
|
2119
|
+
return (0, smithy_client_1.take)(output, {
|
|
2120
|
+
PermissionSetProvisioningStatus: (_) => de_PermissionSetProvisioningStatus(_, context),
|
|
2121
|
+
});
|
|
2777
2122
|
};
|
|
2778
2123
|
const de_DescribePermissionSetResponse = (output, context) => {
|
|
2779
|
-
return {
|
|
2780
|
-
PermissionSet:
|
|
2781
|
-
};
|
|
2782
|
-
};
|
|
2783
|
-
const de_DetachCustomerManagedPolicyReferenceFromPermissionSetResponse = (output, context) => {
|
|
2784
|
-
return {};
|
|
2785
|
-
};
|
|
2786
|
-
const de_DetachManagedPolicyFromPermissionSetResponse = (output, context) => {
|
|
2787
|
-
return {};
|
|
2788
|
-
};
|
|
2789
|
-
const de_GetInlinePolicyForPermissionSetResponse = (output, context) => {
|
|
2790
|
-
return {
|
|
2791
|
-
InlinePolicy: (0, smithy_client_1.expectString)(output.InlinePolicy),
|
|
2792
|
-
};
|
|
2793
|
-
};
|
|
2794
|
-
const de_GetPermissionsBoundaryForPermissionSetResponse = (output, context) => {
|
|
2795
|
-
return {
|
|
2796
|
-
PermissionsBoundary: output.PermissionsBoundary != null ? de_PermissionsBoundary(output.PermissionsBoundary, context) : undefined,
|
|
2797
|
-
};
|
|
2798
|
-
};
|
|
2799
|
-
const de_InstanceAccessControlAttributeConfiguration = (output, context) => {
|
|
2800
|
-
return {
|
|
2801
|
-
AccessControlAttributes: output.AccessControlAttributes != null
|
|
2802
|
-
? de_AccessControlAttributeList(output.AccessControlAttributes, context)
|
|
2803
|
-
: undefined,
|
|
2804
|
-
};
|
|
2805
|
-
};
|
|
2806
|
-
const de_InstanceList = (output, context) => {
|
|
2807
|
-
const retVal = (output || [])
|
|
2808
|
-
.filter((e) => e != null)
|
|
2809
|
-
.map((entry) => {
|
|
2810
|
-
if (entry === null) {
|
|
2811
|
-
return null;
|
|
2812
|
-
}
|
|
2813
|
-
return de_InstanceMetadata(entry, context);
|
|
2124
|
+
return (0, smithy_client_1.take)(output, {
|
|
2125
|
+
PermissionSet: (_) => de_PermissionSet(_, context),
|
|
2814
2126
|
});
|
|
2815
|
-
return retVal;
|
|
2816
|
-
};
|
|
2817
|
-
const de_InstanceMetadata = (output, context) => {
|
|
2818
|
-
return {
|
|
2819
|
-
IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
|
|
2820
|
-
InstanceArn: (0, smithy_client_1.expectString)(output.InstanceArn),
|
|
2821
|
-
};
|
|
2822
|
-
};
|
|
2823
|
-
const de_InternalServerException = (output, context) => {
|
|
2824
|
-
return {
|
|
2825
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2826
|
-
};
|
|
2827
2127
|
};
|
|
2828
2128
|
const de_ListAccountAssignmentCreationStatusResponse = (output, context) => {
|
|
2829
|
-
return {
|
|
2830
|
-
AccountAssignmentsCreationStatus:
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2834
|
-
};
|
|
2129
|
+
return (0, smithy_client_1.take)(output, {
|
|
2130
|
+
AccountAssignmentsCreationStatus: (_) => de_AccountAssignmentOperationStatusList(_, context),
|
|
2131
|
+
NextToken: smithy_client_1.expectString,
|
|
2132
|
+
});
|
|
2835
2133
|
};
|
|
2836
2134
|
const de_ListAccountAssignmentDeletionStatusResponse = (output, context) => {
|
|
2837
|
-
return {
|
|
2838
|
-
AccountAssignmentsDeletionStatus:
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2842
|
-
};
|
|
2843
|
-
};
|
|
2844
|
-
const de_ListAccountAssignmentsResponse = (output, context) => {
|
|
2845
|
-
return {
|
|
2846
|
-
AccountAssignments: output.AccountAssignments != null ? de_AccountAssignmentList(output.AccountAssignments, context) : undefined,
|
|
2847
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2848
|
-
};
|
|
2849
|
-
};
|
|
2850
|
-
const de_ListAccountsForProvisionedPermissionSetResponse = (output, context) => {
|
|
2851
|
-
return {
|
|
2852
|
-
AccountIds: output.AccountIds != null ? de_AccountList(output.AccountIds, context) : undefined,
|
|
2853
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2854
|
-
};
|
|
2855
|
-
};
|
|
2856
|
-
const de_ListCustomerManagedPolicyReferencesInPermissionSetResponse = (output, context) => {
|
|
2857
|
-
return {
|
|
2858
|
-
CustomerManagedPolicyReferences: output.CustomerManagedPolicyReferences != null
|
|
2859
|
-
? de_CustomerManagedPolicyReferenceList(output.CustomerManagedPolicyReferences, context)
|
|
2860
|
-
: undefined,
|
|
2861
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2862
|
-
};
|
|
2863
|
-
};
|
|
2864
|
-
const de_ListInstancesResponse = (output, context) => {
|
|
2865
|
-
return {
|
|
2866
|
-
Instances: output.Instances != null ? de_InstanceList(output.Instances, context) : undefined,
|
|
2867
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2868
|
-
};
|
|
2869
|
-
};
|
|
2870
|
-
const de_ListManagedPoliciesInPermissionSetResponse = (output, context) => {
|
|
2871
|
-
return {
|
|
2872
|
-
AttachedManagedPolicies: output.AttachedManagedPolicies != null
|
|
2873
|
-
? de_AttachedManagedPolicyList(output.AttachedManagedPolicies, context)
|
|
2874
|
-
: undefined,
|
|
2875
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2876
|
-
};
|
|
2135
|
+
return (0, smithy_client_1.take)(output, {
|
|
2136
|
+
AccountAssignmentsDeletionStatus: (_) => de_AccountAssignmentOperationStatusList(_, context),
|
|
2137
|
+
NextToken: smithy_client_1.expectString,
|
|
2138
|
+
});
|
|
2877
2139
|
};
|
|
2878
2140
|
const de_ListPermissionSetProvisioningStatusResponse = (output, context) => {
|
|
2879
|
-
return {
|
|
2880
|
-
NextToken:
|
|
2881
|
-
PermissionSetsProvisioningStatus:
|
|
2882
|
-
|
|
2883
|
-
: undefined,
|
|
2884
|
-
};
|
|
2885
|
-
};
|
|
2886
|
-
const de_ListPermissionSetsProvisionedToAccountResponse = (output, context) => {
|
|
2887
|
-
return {
|
|
2888
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2889
|
-
PermissionSets: output.PermissionSets != null ? de_PermissionSetList(output.PermissionSets, context) : undefined,
|
|
2890
|
-
};
|
|
2891
|
-
};
|
|
2892
|
-
const de_ListPermissionSetsResponse = (output, context) => {
|
|
2893
|
-
return {
|
|
2894
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2895
|
-
PermissionSets: output.PermissionSets != null ? de_PermissionSetList(output.PermissionSets, context) : undefined,
|
|
2896
|
-
};
|
|
2897
|
-
};
|
|
2898
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2899
|
-
return {
|
|
2900
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2901
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2902
|
-
};
|
|
2903
|
-
};
|
|
2904
|
-
const de_PermissionsBoundary = (output, context) => {
|
|
2905
|
-
return {
|
|
2906
|
-
CustomerManagedPolicyReference: output.CustomerManagedPolicyReference != null
|
|
2907
|
-
? de_CustomerManagedPolicyReference(output.CustomerManagedPolicyReference, context)
|
|
2908
|
-
: undefined,
|
|
2909
|
-
ManagedPolicyArn: (0, smithy_client_1.expectString)(output.ManagedPolicyArn),
|
|
2910
|
-
};
|
|
2141
|
+
return (0, smithy_client_1.take)(output, {
|
|
2142
|
+
NextToken: smithy_client_1.expectString,
|
|
2143
|
+
PermissionSetsProvisioningStatus: (_) => de_PermissionSetProvisioningStatusList(_, context),
|
|
2144
|
+
});
|
|
2911
2145
|
};
|
|
2912
2146
|
const de_PermissionSet = (output, context) => {
|
|
2913
|
-
return {
|
|
2914
|
-
CreatedDate:
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
RelayState: (0, smithy_client_1.expectString)(output.RelayState),
|
|
2921
|
-
SessionDuration: (0, smithy_client_1.expectString)(output.SessionDuration),
|
|
2922
|
-
};
|
|
2923
|
-
};
|
|
2924
|
-
const de_PermissionSetList = (output, context) => {
|
|
2925
|
-
const retVal = (output || [])
|
|
2926
|
-
.filter((e) => e != null)
|
|
2927
|
-
.map((entry) => {
|
|
2928
|
-
if (entry === null) {
|
|
2929
|
-
return null;
|
|
2930
|
-
}
|
|
2931
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2147
|
+
return (0, smithy_client_1.take)(output, {
|
|
2148
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2149
|
+
Description: smithy_client_1.expectString,
|
|
2150
|
+
Name: smithy_client_1.expectString,
|
|
2151
|
+
PermissionSetArn: smithy_client_1.expectString,
|
|
2152
|
+
RelayState: smithy_client_1.expectString,
|
|
2153
|
+
SessionDuration: smithy_client_1.expectString,
|
|
2932
2154
|
});
|
|
2933
|
-
return retVal;
|
|
2934
2155
|
};
|
|
2935
2156
|
const de_PermissionSetProvisioningStatus = (output, context) => {
|
|
2936
|
-
return {
|
|
2937
|
-
AccountId:
|
|
2938
|
-
CreatedDate:
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2945
|
-
};
|
|
2157
|
+
return (0, smithy_client_1.take)(output, {
|
|
2158
|
+
AccountId: smithy_client_1.expectString,
|
|
2159
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2160
|
+
FailureReason: smithy_client_1.expectString,
|
|
2161
|
+
PermissionSetArn: smithy_client_1.expectString,
|
|
2162
|
+
RequestId: smithy_client_1.expectString,
|
|
2163
|
+
Status: smithy_client_1.expectString,
|
|
2164
|
+
});
|
|
2946
2165
|
};
|
|
2947
2166
|
const de_PermissionSetProvisioningStatusList = (output, context) => {
|
|
2948
2167
|
const retVal = (output || [])
|
|
2949
2168
|
.filter((e) => e != null)
|
|
2950
2169
|
.map((entry) => {
|
|
2951
|
-
if (entry === null) {
|
|
2952
|
-
return null;
|
|
2953
|
-
}
|
|
2954
2170
|
return de_PermissionSetProvisioningStatusMetadata(entry, context);
|
|
2955
2171
|
});
|
|
2956
2172
|
return retVal;
|
|
2957
2173
|
};
|
|
2958
2174
|
const de_PermissionSetProvisioningStatusMetadata = (output, context) => {
|
|
2959
|
-
return {
|
|
2960
|
-
CreatedDate:
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2965
|
-
};
|
|
2175
|
+
return (0, smithy_client_1.take)(output, {
|
|
2176
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2177
|
+
RequestId: smithy_client_1.expectString,
|
|
2178
|
+
Status: smithy_client_1.expectString,
|
|
2179
|
+
});
|
|
2966
2180
|
};
|
|
2967
2181
|
const de_ProvisionPermissionSetResponse = (output, context) => {
|
|
2968
|
-
return {
|
|
2969
|
-
PermissionSetProvisioningStatus:
|
|
2970
|
-
? de_PermissionSetProvisioningStatus(output.PermissionSetProvisioningStatus, context)
|
|
2971
|
-
: undefined,
|
|
2972
|
-
};
|
|
2973
|
-
};
|
|
2974
|
-
const de_PutInlinePolicyToPermissionSetResponse = (output, context) => {
|
|
2975
|
-
return {};
|
|
2976
|
-
};
|
|
2977
|
-
const de_PutPermissionsBoundaryToPermissionSetResponse = (output, context) => {
|
|
2978
|
-
return {};
|
|
2979
|
-
};
|
|
2980
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2981
|
-
return {
|
|
2982
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2983
|
-
};
|
|
2984
|
-
};
|
|
2985
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2986
|
-
return {
|
|
2987
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2988
|
-
};
|
|
2989
|
-
};
|
|
2990
|
-
const de_Tag = (output, context) => {
|
|
2991
|
-
return {
|
|
2992
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2993
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2994
|
-
};
|
|
2995
|
-
};
|
|
2996
|
-
const de_TagList = (output, context) => {
|
|
2997
|
-
const retVal = (output || [])
|
|
2998
|
-
.filter((e) => e != null)
|
|
2999
|
-
.map((entry) => {
|
|
3000
|
-
if (entry === null) {
|
|
3001
|
-
return null;
|
|
3002
|
-
}
|
|
3003
|
-
return de_Tag(entry, context);
|
|
2182
|
+
return (0, smithy_client_1.take)(output, {
|
|
2183
|
+
PermissionSetProvisioningStatus: (_) => de_PermissionSetProvisioningStatus(_, context),
|
|
3004
2184
|
});
|
|
3005
|
-
return retVal;
|
|
3006
|
-
};
|
|
3007
|
-
const de_TagResourceResponse = (output, context) => {
|
|
3008
|
-
return {};
|
|
3009
|
-
};
|
|
3010
|
-
const de_ThrottlingException = (output, context) => {
|
|
3011
|
-
return {
|
|
3012
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3013
|
-
};
|
|
3014
|
-
};
|
|
3015
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
3016
|
-
return {};
|
|
3017
|
-
};
|
|
3018
|
-
const de_UpdateInstanceAccessControlAttributeConfigurationResponse = (output, context) => {
|
|
3019
|
-
return {};
|
|
3020
|
-
};
|
|
3021
|
-
const de_UpdatePermissionSetResponse = (output, context) => {
|
|
3022
|
-
return {};
|
|
3023
|
-
};
|
|
3024
|
-
const de_ValidationException = (output, context) => {
|
|
3025
|
-
return {
|
|
3026
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3027
|
-
};
|
|
3028
2185
|
};
|
|
3029
2186
|
const deserializeMetadata = (output) => ({
|
|
3030
2187
|
httpStatusCode: output.statusCode,
|
|
@@ -3039,6 +2196,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3039
2196
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3040
2197
|
};
|
|
3041
2198
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2199
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SSOAdminServiceException_1.SSOAdminServiceException);
|
|
3042
2200
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3043
2201
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3044
2202
|
const contents = {
|
|
@@ -3057,6 +2215,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
3057
2215
|
}
|
|
3058
2216
|
return new protocol_http_1.HttpRequest(contents);
|
|
3059
2217
|
};
|
|
2218
|
+
function sharedHeaders(operation) {
|
|
2219
|
+
return {
|
|
2220
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2221
|
+
"x-amz-target": `SWBExternalService.${operation}`,
|
|
2222
|
+
};
|
|
2223
|
+
}
|
|
3060
2224
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3061
2225
|
if (encoded.length) {
|
|
3062
2226
|
return JSON.parse(encoded);
|