@aws-sdk/client-workspaces-web 3.303.0 → 3.309.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/commands/AssociateBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/AssociateNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/AssociateTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/AssociateUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/AssociateUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/CreateBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/CreateIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/CreateNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/CreatePortalCommand.js +2 -2
- package/dist-cjs/commands/CreateTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/CreateUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/CreateUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/DeleteBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/DeleteIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/DeleteNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/DeletePortalCommand.js +2 -2
- package/dist-cjs/commands/DeleteTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/DeleteUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/DeleteUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/DisassociateBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/DisassociateNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/DisassociateTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/DisassociateUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/DisassociateUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/GetNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetPortalCommand.js +2 -2
- package/dist-cjs/commands/GetPortalServiceProviderMetadataCommand.js +2 -2
- package/dist-cjs/commands/GetTrustStoreCertificateCommand.js +2 -2
- package/dist-cjs/commands/GetTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/GetUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/ListBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/ListIdentityProvidersCommand.js +2 -2
- package/dist-cjs/commands/ListNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/ListPortalsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTrustStoreCertificatesCommand.js +2 -2
- package/dist-cjs/commands/ListTrustStoresCommand.js +2 -2
- package/dist-cjs/commands/ListUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/ListUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateBrowserSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdateIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/UpdateNetworkSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdatePortalCommand.js +2 -2
- package/dist-cjs/commands/UpdateTrustStoreCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserAccessLoggingSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserSettingsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +682 -698
- package/dist-es/commands/AssociateBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/AssociateNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/AssociateTrustStoreCommand.js +3 -3
- package/dist-es/commands/AssociateUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/AssociateUserSettingsCommand.js +3 -3
- package/dist-es/commands/CreateBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/CreateIdentityProviderCommand.js +3 -3
- package/dist-es/commands/CreateNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/CreatePortalCommand.js +3 -3
- package/dist-es/commands/CreateTrustStoreCommand.js +3 -3
- package/dist-es/commands/CreateUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/CreateUserSettingsCommand.js +3 -3
- package/dist-es/commands/DeleteBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/DeleteIdentityProviderCommand.js +3 -3
- package/dist-es/commands/DeleteNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/DeletePortalCommand.js +3 -3
- package/dist-es/commands/DeleteTrustStoreCommand.js +3 -3
- package/dist-es/commands/DeleteUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/DeleteUserSettingsCommand.js +3 -3
- package/dist-es/commands/DisassociateBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/DisassociateNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/DisassociateTrustStoreCommand.js +3 -3
- package/dist-es/commands/DisassociateUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/DisassociateUserSettingsCommand.js +3 -3
- package/dist-es/commands/GetBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/GetIdentityProviderCommand.js +3 -3
- package/dist-es/commands/GetNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/GetPortalCommand.js +3 -3
- package/dist-es/commands/GetPortalServiceProviderMetadataCommand.js +3 -3
- package/dist-es/commands/GetTrustStoreCertificateCommand.js +3 -3
- package/dist-es/commands/GetTrustStoreCommand.js +3 -3
- package/dist-es/commands/GetUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/GetUserSettingsCommand.js +3 -3
- package/dist-es/commands/ListBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/ListIdentityProvidersCommand.js +3 -3
- package/dist-es/commands/ListNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/ListPortalsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTrustStoreCertificatesCommand.js +3 -3
- package/dist-es/commands/ListTrustStoresCommand.js +3 -3
- package/dist-es/commands/ListUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/ListUserSettingsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateBrowserSettingsCommand.js +3 -3
- package/dist-es/commands/UpdateIdentityProviderCommand.js +3 -3
- package/dist-es/commands/UpdateNetworkSettingsCommand.js +3 -3
- package/dist-es/commands/UpdatePortalCommand.js +3 -3
- package/dist-es/commands/UpdateTrustStoreCommand.js +3 -3
- package/dist-es/commands/UpdateUserAccessLoggingSettingsCommand.js +3 -3
- package/dist-es/commands/UpdateUserSettingsCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +577 -593
- package/dist-types/protocols/Aws_restJson1.d.ts +408 -102
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +102 -102
- package/package.json +29 -29
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.se_UpdateUserAccessLoggingSettingsCommand = exports.se_UpdateTrustStoreCommand = exports.se_UpdatePortalCommand = exports.se_UpdateNetworkSettingsCommand = exports.se_UpdateIdentityProviderCommand = exports.se_UpdateBrowserSettingsCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListUserSettingsCommand = exports.se_ListUserAccessLoggingSettingsCommand = exports.se_ListTrustStoresCommand = exports.se_ListTrustStoreCertificatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPortalsCommand = exports.se_ListNetworkSettingsCommand = exports.se_ListIdentityProvidersCommand = exports.se_ListBrowserSettingsCommand = exports.se_GetUserSettingsCommand = exports.se_GetUserAccessLoggingSettingsCommand = exports.se_GetTrustStoreCertificateCommand = exports.se_GetTrustStoreCommand = exports.se_GetPortalServiceProviderMetadataCommand = exports.se_GetPortalCommand = exports.se_GetNetworkSettingsCommand = exports.se_GetIdentityProviderCommand = exports.se_GetBrowserSettingsCommand = exports.se_DisassociateUserSettingsCommand = exports.se_DisassociateUserAccessLoggingSettingsCommand = exports.se_DisassociateTrustStoreCommand = exports.se_DisassociateNetworkSettingsCommand = exports.se_DisassociateBrowserSettingsCommand = exports.se_DeleteUserSettingsCommand = exports.se_DeleteUserAccessLoggingSettingsCommand = exports.se_DeleteTrustStoreCommand = exports.se_DeletePortalCommand = exports.se_DeleteNetworkSettingsCommand = exports.se_DeleteIdentityProviderCommand = exports.se_DeleteBrowserSettingsCommand = exports.se_CreateUserSettingsCommand = exports.se_CreateUserAccessLoggingSettingsCommand = exports.se_CreateTrustStoreCommand = exports.se_CreatePortalCommand = exports.se_CreateNetworkSettingsCommand = exports.se_CreateIdentityProviderCommand = exports.se_CreateBrowserSettingsCommand = exports.se_AssociateUserSettingsCommand = exports.se_AssociateUserAccessLoggingSettingsCommand = exports.se_AssociateTrustStoreCommand = exports.se_AssociateNetworkSettingsCommand = exports.se_AssociateBrowserSettingsCommand = void 0;
|
|
4
|
+
exports.de_UpdateTrustStoreCommand = exports.de_UpdatePortalCommand = exports.de_UpdateNetworkSettingsCommand = exports.de_UpdateIdentityProviderCommand = exports.de_UpdateBrowserSettingsCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListUserSettingsCommand = exports.de_ListUserAccessLoggingSettingsCommand = exports.de_ListTrustStoresCommand = exports.de_ListTrustStoreCertificatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPortalsCommand = exports.de_ListNetworkSettingsCommand = exports.de_ListIdentityProvidersCommand = exports.de_ListBrowserSettingsCommand = exports.de_GetUserSettingsCommand = exports.de_GetUserAccessLoggingSettingsCommand = exports.de_GetTrustStoreCertificateCommand = exports.de_GetTrustStoreCommand = exports.de_GetPortalServiceProviderMetadataCommand = exports.de_GetPortalCommand = exports.de_GetNetworkSettingsCommand = exports.de_GetIdentityProviderCommand = exports.de_GetBrowserSettingsCommand = exports.de_DisassociateUserSettingsCommand = exports.de_DisassociateUserAccessLoggingSettingsCommand = exports.de_DisassociateTrustStoreCommand = exports.de_DisassociateNetworkSettingsCommand = exports.de_DisassociateBrowserSettingsCommand = exports.de_DeleteUserSettingsCommand = exports.de_DeleteUserAccessLoggingSettingsCommand = exports.de_DeleteTrustStoreCommand = exports.de_DeletePortalCommand = exports.de_DeleteNetworkSettingsCommand = exports.de_DeleteIdentityProviderCommand = exports.de_DeleteBrowserSettingsCommand = exports.de_CreateUserSettingsCommand = exports.de_CreateUserAccessLoggingSettingsCommand = exports.de_CreateTrustStoreCommand = exports.de_CreatePortalCommand = exports.de_CreateNetworkSettingsCommand = exports.de_CreateIdentityProviderCommand = exports.de_CreateBrowserSettingsCommand = exports.de_AssociateUserSettingsCommand = exports.de_AssociateUserAccessLoggingSettingsCommand = exports.de_AssociateTrustStoreCommand = exports.de_AssociateNetworkSettingsCommand = exports.de_AssociateBrowserSettingsCommand = exports.se_UpdateUserSettingsCommand = void 0;
|
|
5
|
+
exports.de_UpdateUserSettingsCommand = exports.de_UpdateUserAccessLoggingSettingsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const WorkSpacesWebServiceException_1 = require("../models/WorkSpacesWebServiceException");
|
|
11
|
-
const
|
|
11
|
+
const se_AssociateBrowserSettingsCommand = async (input, context) => {
|
|
12
12
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
13
13
|
const headers = {};
|
|
14
14
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
|
|
@@ -28,8 +28,8 @@ const serializeAws_restJson1AssociateBrowserSettingsCommand = async (input, cont
|
|
|
28
28
|
body,
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
exports.
|
|
32
|
-
const
|
|
31
|
+
exports.se_AssociateBrowserSettingsCommand = se_AssociateBrowserSettingsCommand;
|
|
32
|
+
const se_AssociateNetworkSettingsCommand = async (input, context) => {
|
|
33
33
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
34
|
const headers = {};
|
|
35
35
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
|
|
@@ -49,8 +49,8 @@ const serializeAws_restJson1AssociateNetworkSettingsCommand = async (input, cont
|
|
|
49
49
|
body,
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
exports.
|
|
53
|
-
const
|
|
52
|
+
exports.se_AssociateNetworkSettingsCommand = se_AssociateNetworkSettingsCommand;
|
|
53
|
+
const se_AssociateTrustStoreCommand = async (input, context) => {
|
|
54
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
55
55
|
const headers = {};
|
|
56
56
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
|
|
@@ -70,8 +70,8 @@ const serializeAws_restJson1AssociateTrustStoreCommand = async (input, context)
|
|
|
70
70
|
body,
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
|
-
exports.
|
|
74
|
-
const
|
|
73
|
+
exports.se_AssociateTrustStoreCommand = se_AssociateTrustStoreCommand;
|
|
74
|
+
const se_AssociateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
75
75
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
76
76
|
const headers = {};
|
|
77
77
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -95,8 +95,8 @@ const serializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = async (i
|
|
|
95
95
|
body,
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_AssociateUserAccessLoggingSettingsCommand = se_AssociateUserAccessLoggingSettingsCommand;
|
|
99
|
+
const se_AssociateUserSettingsCommand = async (input, context) => {
|
|
100
100
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
101
101
|
const headers = {};
|
|
102
102
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
|
|
@@ -116,8 +116,8 @@ const serializeAws_restJson1AssociateUserSettingsCommand = async (input, context
|
|
|
116
116
|
body,
|
|
117
117
|
});
|
|
118
118
|
};
|
|
119
|
-
exports.
|
|
120
|
-
const
|
|
119
|
+
exports.se_AssociateUserSettingsCommand = se_AssociateUserSettingsCommand;
|
|
120
|
+
const se_CreateBrowserSettingsCommand = async (input, context) => {
|
|
121
121
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
122
122
|
const headers = {
|
|
123
123
|
"content-type": "application/json",
|
|
@@ -126,12 +126,12 @@ const serializeAws_restJson1CreateBrowserSettingsCommand = async (input, context
|
|
|
126
126
|
let body;
|
|
127
127
|
body = JSON.stringify({
|
|
128
128
|
...(input.additionalEncryptionContext != null && {
|
|
129
|
-
additionalEncryptionContext:
|
|
129
|
+
additionalEncryptionContext: se_EncryptionContextMap(input.additionalEncryptionContext, context),
|
|
130
130
|
}),
|
|
131
131
|
...(input.browserPolicy != null && { browserPolicy: input.browserPolicy }),
|
|
132
132
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
133
133
|
...(input.customerManagedKey != null && { customerManagedKey: input.customerManagedKey }),
|
|
134
|
-
...(input.tags != null && { tags:
|
|
134
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
135
135
|
});
|
|
136
136
|
return new protocol_http_1.HttpRequest({
|
|
137
137
|
protocol,
|
|
@@ -143,8 +143,8 @@ const serializeAws_restJson1CreateBrowserSettingsCommand = async (input, context
|
|
|
143
143
|
body,
|
|
144
144
|
});
|
|
145
145
|
};
|
|
146
|
-
exports.
|
|
147
|
-
const
|
|
146
|
+
exports.se_CreateBrowserSettingsCommand = se_CreateBrowserSettingsCommand;
|
|
147
|
+
const se_CreateIdentityProviderCommand = async (input, context) => {
|
|
148
148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
149
149
|
const headers = {
|
|
150
150
|
"content-type": "application/json",
|
|
@@ -154,7 +154,7 @@ const serializeAws_restJson1CreateIdentityProviderCommand = async (input, contex
|
|
|
154
154
|
body = JSON.stringify({
|
|
155
155
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
156
156
|
...(input.identityProviderDetails != null && {
|
|
157
|
-
identityProviderDetails:
|
|
157
|
+
identityProviderDetails: se_IdentityProviderDetails(input.identityProviderDetails, context),
|
|
158
158
|
}),
|
|
159
159
|
...(input.identityProviderName != null && { identityProviderName: input.identityProviderName }),
|
|
160
160
|
...(input.identityProviderType != null && { identityProviderType: input.identityProviderType }),
|
|
@@ -170,8 +170,8 @@ const serializeAws_restJson1CreateIdentityProviderCommand = async (input, contex
|
|
|
170
170
|
body,
|
|
171
171
|
});
|
|
172
172
|
};
|
|
173
|
-
exports.
|
|
174
|
-
const
|
|
173
|
+
exports.se_CreateIdentityProviderCommand = se_CreateIdentityProviderCommand;
|
|
174
|
+
const se_CreateNetworkSettingsCommand = async (input, context) => {
|
|
175
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
176
176
|
const headers = {
|
|
177
177
|
"content-type": "application/json",
|
|
@@ -181,10 +181,10 @@ const serializeAws_restJson1CreateNetworkSettingsCommand = async (input, context
|
|
|
181
181
|
body = JSON.stringify({
|
|
182
182
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
183
183
|
...(input.securityGroupIds != null && {
|
|
184
|
-
securityGroupIds:
|
|
184
|
+
securityGroupIds: se_SecurityGroupIdList(input.securityGroupIds, context),
|
|
185
185
|
}),
|
|
186
|
-
...(input.subnetIds != null && { subnetIds:
|
|
187
|
-
...(input.tags != null && { tags:
|
|
186
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIdList(input.subnetIds, context) }),
|
|
187
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
188
188
|
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
189
189
|
});
|
|
190
190
|
return new protocol_http_1.HttpRequest({
|
|
@@ -197,8 +197,8 @@ const serializeAws_restJson1CreateNetworkSettingsCommand = async (input, context
|
|
|
197
197
|
body,
|
|
198
198
|
});
|
|
199
199
|
};
|
|
200
|
-
exports.
|
|
201
|
-
const
|
|
200
|
+
exports.se_CreateNetworkSettingsCommand = se_CreateNetworkSettingsCommand;
|
|
201
|
+
const se_CreatePortalCommand = async (input, context) => {
|
|
202
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
203
203
|
const headers = {
|
|
204
204
|
"content-type": "application/json",
|
|
@@ -207,13 +207,13 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
|
|
|
207
207
|
let body;
|
|
208
208
|
body = JSON.stringify({
|
|
209
209
|
...(input.additionalEncryptionContext != null && {
|
|
210
|
-
additionalEncryptionContext:
|
|
210
|
+
additionalEncryptionContext: se_EncryptionContextMap(input.additionalEncryptionContext, context),
|
|
211
211
|
}),
|
|
212
212
|
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
213
213
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
214
214
|
...(input.customerManagedKey != null && { customerManagedKey: input.customerManagedKey }),
|
|
215
215
|
...(input.displayName != null && { displayName: input.displayName }),
|
|
216
|
-
...(input.tags != null && { tags:
|
|
216
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
217
217
|
});
|
|
218
218
|
return new protocol_http_1.HttpRequest({
|
|
219
219
|
protocol,
|
|
@@ -225,8 +225,8 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
|
|
|
225
225
|
body,
|
|
226
226
|
});
|
|
227
227
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
228
|
+
exports.se_CreatePortalCommand = se_CreatePortalCommand;
|
|
229
|
+
const se_CreateTrustStoreCommand = async (input, context) => {
|
|
230
230
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
231
231
|
const headers = {
|
|
232
232
|
"content-type": "application/json",
|
|
@@ -234,11 +234,9 @@ const serializeAws_restJson1CreateTrustStoreCommand = async (input, context) =>
|
|
|
234
234
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
|
|
235
235
|
let body;
|
|
236
236
|
body = JSON.stringify({
|
|
237
|
-
...(input.certificateList != null && {
|
|
238
|
-
certificateList: serializeAws_restJson1CertificateList(input.certificateList, context),
|
|
239
|
-
}),
|
|
237
|
+
...(input.certificateList != null && { certificateList: se_CertificateList(input.certificateList, context) }),
|
|
240
238
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
241
|
-
...(input.tags != null && { tags:
|
|
239
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
242
240
|
});
|
|
243
241
|
return new protocol_http_1.HttpRequest({
|
|
244
242
|
protocol,
|
|
@@ -250,8 +248,8 @@ const serializeAws_restJson1CreateTrustStoreCommand = async (input, context) =>
|
|
|
250
248
|
body,
|
|
251
249
|
});
|
|
252
250
|
};
|
|
253
|
-
exports.
|
|
254
|
-
const
|
|
251
|
+
exports.se_CreateTrustStoreCommand = se_CreateTrustStoreCommand;
|
|
252
|
+
const se_CreateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
255
253
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
256
254
|
const headers = {
|
|
257
255
|
"content-type": "application/json",
|
|
@@ -261,7 +259,7 @@ const serializeAws_restJson1CreateUserAccessLoggingSettingsCommand = async (inpu
|
|
|
261
259
|
body = JSON.stringify({
|
|
262
260
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
263
261
|
...(input.kinesisStreamArn != null && { kinesisStreamArn: input.kinesisStreamArn }),
|
|
264
|
-
...(input.tags != null && { tags:
|
|
262
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
265
263
|
});
|
|
266
264
|
return new protocol_http_1.HttpRequest({
|
|
267
265
|
protocol,
|
|
@@ -273,8 +271,8 @@ const serializeAws_restJson1CreateUserAccessLoggingSettingsCommand = async (inpu
|
|
|
273
271
|
body,
|
|
274
272
|
});
|
|
275
273
|
};
|
|
276
|
-
exports.
|
|
277
|
-
const
|
|
274
|
+
exports.se_CreateUserAccessLoggingSettingsCommand = se_CreateUserAccessLoggingSettingsCommand;
|
|
275
|
+
const se_CreateUserSettingsCommand = async (input, context) => {
|
|
278
276
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
279
277
|
const headers = {
|
|
280
278
|
"content-type": "application/json",
|
|
@@ -291,7 +289,7 @@ const serializeAws_restJson1CreateUserSettingsCommand = async (input, context) =
|
|
|
291
289
|
}),
|
|
292
290
|
...(input.pasteAllowed != null && { pasteAllowed: input.pasteAllowed }),
|
|
293
291
|
...(input.printAllowed != null && { printAllowed: input.printAllowed }),
|
|
294
|
-
...(input.tags != null && { tags:
|
|
292
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
295
293
|
...(input.uploadAllowed != null && { uploadAllowed: input.uploadAllowed }),
|
|
296
294
|
});
|
|
297
295
|
return new protocol_http_1.HttpRequest({
|
|
@@ -304,8 +302,8 @@ const serializeAws_restJson1CreateUserSettingsCommand = async (input, context) =
|
|
|
304
302
|
body,
|
|
305
303
|
});
|
|
306
304
|
};
|
|
307
|
-
exports.
|
|
308
|
-
const
|
|
305
|
+
exports.se_CreateUserSettingsCommand = se_CreateUserSettingsCommand;
|
|
306
|
+
const se_DeleteBrowserSettingsCommand = async (input, context) => {
|
|
309
307
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
310
308
|
const headers = {};
|
|
311
309
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
|
|
@@ -321,8 +319,8 @@ const serializeAws_restJson1DeleteBrowserSettingsCommand = async (input, context
|
|
|
321
319
|
body,
|
|
322
320
|
});
|
|
323
321
|
};
|
|
324
|
-
exports.
|
|
325
|
-
const
|
|
322
|
+
exports.se_DeleteBrowserSettingsCommand = se_DeleteBrowserSettingsCommand;
|
|
323
|
+
const se_DeleteIdentityProviderCommand = async (input, context) => {
|
|
326
324
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
327
325
|
const headers = {};
|
|
328
326
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
|
|
@@ -338,8 +336,8 @@ const serializeAws_restJson1DeleteIdentityProviderCommand = async (input, contex
|
|
|
338
336
|
body,
|
|
339
337
|
});
|
|
340
338
|
};
|
|
341
|
-
exports.
|
|
342
|
-
const
|
|
339
|
+
exports.se_DeleteIdentityProviderCommand = se_DeleteIdentityProviderCommand;
|
|
340
|
+
const se_DeleteNetworkSettingsCommand = async (input, context) => {
|
|
343
341
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
344
342
|
const headers = {};
|
|
345
343
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
|
|
@@ -355,8 +353,8 @@ const serializeAws_restJson1DeleteNetworkSettingsCommand = async (input, context
|
|
|
355
353
|
body,
|
|
356
354
|
});
|
|
357
355
|
};
|
|
358
|
-
exports.
|
|
359
|
-
const
|
|
356
|
+
exports.se_DeleteNetworkSettingsCommand = se_DeleteNetworkSettingsCommand;
|
|
357
|
+
const se_DeletePortalCommand = async (input, context) => {
|
|
360
358
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
361
359
|
const headers = {};
|
|
362
360
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
|
|
@@ -372,8 +370,8 @@ const serializeAws_restJson1DeletePortalCommand = async (input, context) => {
|
|
|
372
370
|
body,
|
|
373
371
|
});
|
|
374
372
|
};
|
|
375
|
-
exports.
|
|
376
|
-
const
|
|
373
|
+
exports.se_DeletePortalCommand = se_DeletePortalCommand;
|
|
374
|
+
const se_DeleteTrustStoreCommand = async (input, context) => {
|
|
377
375
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
378
376
|
const headers = {};
|
|
379
377
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
|
|
@@ -389,8 +387,8 @@ const serializeAws_restJson1DeleteTrustStoreCommand = async (input, context) =>
|
|
|
389
387
|
body,
|
|
390
388
|
});
|
|
391
389
|
};
|
|
392
|
-
exports.
|
|
393
|
-
const
|
|
390
|
+
exports.se_DeleteTrustStoreCommand = se_DeleteTrustStoreCommand;
|
|
391
|
+
const se_DeleteUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
394
392
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
395
393
|
const headers = {};
|
|
396
394
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -407,8 +405,8 @@ const serializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = async (inpu
|
|
|
407
405
|
body,
|
|
408
406
|
});
|
|
409
407
|
};
|
|
410
|
-
exports.
|
|
411
|
-
const
|
|
408
|
+
exports.se_DeleteUserAccessLoggingSettingsCommand = se_DeleteUserAccessLoggingSettingsCommand;
|
|
409
|
+
const se_DeleteUserSettingsCommand = async (input, context) => {
|
|
412
410
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
413
411
|
const headers = {};
|
|
414
412
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
|
|
@@ -424,8 +422,8 @@ const serializeAws_restJson1DeleteUserSettingsCommand = async (input, context) =
|
|
|
424
422
|
body,
|
|
425
423
|
});
|
|
426
424
|
};
|
|
427
|
-
exports.
|
|
428
|
-
const
|
|
425
|
+
exports.se_DeleteUserSettingsCommand = se_DeleteUserSettingsCommand;
|
|
426
|
+
const se_DisassociateBrowserSettingsCommand = async (input, context) => {
|
|
429
427
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
430
428
|
const headers = {};
|
|
431
429
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
|
|
@@ -441,8 +439,8 @@ const serializeAws_restJson1DisassociateBrowserSettingsCommand = async (input, c
|
|
|
441
439
|
body,
|
|
442
440
|
});
|
|
443
441
|
};
|
|
444
|
-
exports.
|
|
445
|
-
const
|
|
442
|
+
exports.se_DisassociateBrowserSettingsCommand = se_DisassociateBrowserSettingsCommand;
|
|
443
|
+
const se_DisassociateNetworkSettingsCommand = async (input, context) => {
|
|
446
444
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
447
445
|
const headers = {};
|
|
448
446
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
|
|
@@ -458,8 +456,8 @@ const serializeAws_restJson1DisassociateNetworkSettingsCommand = async (input, c
|
|
|
458
456
|
body,
|
|
459
457
|
});
|
|
460
458
|
};
|
|
461
|
-
exports.
|
|
462
|
-
const
|
|
459
|
+
exports.se_DisassociateNetworkSettingsCommand = se_DisassociateNetworkSettingsCommand;
|
|
460
|
+
const se_DisassociateTrustStoreCommand = async (input, context) => {
|
|
463
461
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
464
462
|
const headers = {};
|
|
465
463
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
|
|
@@ -475,8 +473,8 @@ const serializeAws_restJson1DisassociateTrustStoreCommand = async (input, contex
|
|
|
475
473
|
body,
|
|
476
474
|
});
|
|
477
475
|
};
|
|
478
|
-
exports.
|
|
479
|
-
const
|
|
476
|
+
exports.se_DisassociateTrustStoreCommand = se_DisassociateTrustStoreCommand;
|
|
477
|
+
const se_DisassociateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
480
478
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
481
479
|
const headers = {};
|
|
482
480
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -493,8 +491,8 @@ const serializeAws_restJson1DisassociateUserAccessLoggingSettingsCommand = async
|
|
|
493
491
|
body,
|
|
494
492
|
});
|
|
495
493
|
};
|
|
496
|
-
exports.
|
|
497
|
-
const
|
|
494
|
+
exports.se_DisassociateUserAccessLoggingSettingsCommand = se_DisassociateUserAccessLoggingSettingsCommand;
|
|
495
|
+
const se_DisassociateUserSettingsCommand = async (input, context) => {
|
|
498
496
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
499
497
|
const headers = {};
|
|
500
498
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
|
|
@@ -510,8 +508,8 @@ const serializeAws_restJson1DisassociateUserSettingsCommand = async (input, cont
|
|
|
510
508
|
body,
|
|
511
509
|
});
|
|
512
510
|
};
|
|
513
|
-
exports.
|
|
514
|
-
const
|
|
511
|
+
exports.se_DisassociateUserSettingsCommand = se_DisassociateUserSettingsCommand;
|
|
512
|
+
const se_GetBrowserSettingsCommand = async (input, context) => {
|
|
515
513
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
516
514
|
const headers = {};
|
|
517
515
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
|
|
@@ -527,8 +525,8 @@ const serializeAws_restJson1GetBrowserSettingsCommand = async (input, context) =
|
|
|
527
525
|
body,
|
|
528
526
|
});
|
|
529
527
|
};
|
|
530
|
-
exports.
|
|
531
|
-
const
|
|
528
|
+
exports.se_GetBrowserSettingsCommand = se_GetBrowserSettingsCommand;
|
|
529
|
+
const se_GetIdentityProviderCommand = async (input, context) => {
|
|
532
530
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
533
531
|
const headers = {};
|
|
534
532
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
|
|
@@ -544,8 +542,8 @@ const serializeAws_restJson1GetIdentityProviderCommand = async (input, context)
|
|
|
544
542
|
body,
|
|
545
543
|
});
|
|
546
544
|
};
|
|
547
|
-
exports.
|
|
548
|
-
const
|
|
545
|
+
exports.se_GetIdentityProviderCommand = se_GetIdentityProviderCommand;
|
|
546
|
+
const se_GetNetworkSettingsCommand = async (input, context) => {
|
|
549
547
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
550
548
|
const headers = {};
|
|
551
549
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
|
|
@@ -561,8 +559,8 @@ const serializeAws_restJson1GetNetworkSettingsCommand = async (input, context) =
|
|
|
561
559
|
body,
|
|
562
560
|
});
|
|
563
561
|
};
|
|
564
|
-
exports.
|
|
565
|
-
const
|
|
562
|
+
exports.se_GetNetworkSettingsCommand = se_GetNetworkSettingsCommand;
|
|
563
|
+
const se_GetPortalCommand = async (input, context) => {
|
|
566
564
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
567
565
|
const headers = {};
|
|
568
566
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
|
|
@@ -578,8 +576,8 @@ const serializeAws_restJson1GetPortalCommand = async (input, context) => {
|
|
|
578
576
|
body,
|
|
579
577
|
});
|
|
580
578
|
};
|
|
581
|
-
exports.
|
|
582
|
-
const
|
|
579
|
+
exports.se_GetPortalCommand = se_GetPortalCommand;
|
|
580
|
+
const se_GetPortalServiceProviderMetadataCommand = async (input, context) => {
|
|
583
581
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
584
582
|
const headers = {};
|
|
585
583
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portalIdp/{portalArn+}";
|
|
@@ -595,8 +593,8 @@ const serializeAws_restJson1GetPortalServiceProviderMetadataCommand = async (inp
|
|
|
595
593
|
body,
|
|
596
594
|
});
|
|
597
595
|
};
|
|
598
|
-
exports.
|
|
599
|
-
const
|
|
596
|
+
exports.se_GetPortalServiceProviderMetadataCommand = se_GetPortalServiceProviderMetadataCommand;
|
|
597
|
+
const se_GetTrustStoreCommand = async (input, context) => {
|
|
600
598
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
601
599
|
const headers = {};
|
|
602
600
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
|
|
@@ -612,8 +610,8 @@ const serializeAws_restJson1GetTrustStoreCommand = async (input, context) => {
|
|
|
612
610
|
body,
|
|
613
611
|
});
|
|
614
612
|
};
|
|
615
|
-
exports.
|
|
616
|
-
const
|
|
613
|
+
exports.se_GetTrustStoreCommand = se_GetTrustStoreCommand;
|
|
614
|
+
const se_GetTrustStoreCertificateCommand = async (input, context) => {
|
|
617
615
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
618
616
|
const headers = {};
|
|
619
617
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}/certificate";
|
|
@@ -633,8 +631,8 @@ const serializeAws_restJson1GetTrustStoreCertificateCommand = async (input, cont
|
|
|
633
631
|
body,
|
|
634
632
|
});
|
|
635
633
|
};
|
|
636
|
-
exports.
|
|
637
|
-
const
|
|
634
|
+
exports.se_GetTrustStoreCertificateCommand = se_GetTrustStoreCertificateCommand;
|
|
635
|
+
const se_GetUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
638
636
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
639
637
|
const headers = {};
|
|
640
638
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -651,8 +649,8 @@ const serializeAws_restJson1GetUserAccessLoggingSettingsCommand = async (input,
|
|
|
651
649
|
body,
|
|
652
650
|
});
|
|
653
651
|
};
|
|
654
|
-
exports.
|
|
655
|
-
const
|
|
652
|
+
exports.se_GetUserAccessLoggingSettingsCommand = se_GetUserAccessLoggingSettingsCommand;
|
|
653
|
+
const se_GetUserSettingsCommand = async (input, context) => {
|
|
656
654
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
657
655
|
const headers = {};
|
|
658
656
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
|
|
@@ -668,8 +666,8 @@ const serializeAws_restJson1GetUserSettingsCommand = async (input, context) => {
|
|
|
668
666
|
body,
|
|
669
667
|
});
|
|
670
668
|
};
|
|
671
|
-
exports.
|
|
672
|
-
const
|
|
669
|
+
exports.se_GetUserSettingsCommand = se_GetUserSettingsCommand;
|
|
670
|
+
const se_ListBrowserSettingsCommand = async (input, context) => {
|
|
673
671
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
674
672
|
const headers = {};
|
|
675
673
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
|
|
@@ -689,8 +687,8 @@ const serializeAws_restJson1ListBrowserSettingsCommand = async (input, context)
|
|
|
689
687
|
body,
|
|
690
688
|
});
|
|
691
689
|
};
|
|
692
|
-
exports.
|
|
693
|
-
const
|
|
690
|
+
exports.se_ListBrowserSettingsCommand = se_ListBrowserSettingsCommand;
|
|
691
|
+
const se_ListIdentityProvidersCommand = async (input, context) => {
|
|
694
692
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
695
693
|
const headers = {};
|
|
696
694
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/identityProviders";
|
|
@@ -711,8 +709,8 @@ const serializeAws_restJson1ListIdentityProvidersCommand = async (input, context
|
|
|
711
709
|
body,
|
|
712
710
|
});
|
|
713
711
|
};
|
|
714
|
-
exports.
|
|
715
|
-
const
|
|
712
|
+
exports.se_ListIdentityProvidersCommand = se_ListIdentityProvidersCommand;
|
|
713
|
+
const se_ListNetworkSettingsCommand = async (input, context) => {
|
|
716
714
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
717
715
|
const headers = {};
|
|
718
716
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings";
|
|
@@ -732,8 +730,8 @@ const serializeAws_restJson1ListNetworkSettingsCommand = async (input, context)
|
|
|
732
730
|
body,
|
|
733
731
|
});
|
|
734
732
|
};
|
|
735
|
-
exports.
|
|
736
|
-
const
|
|
733
|
+
exports.se_ListNetworkSettingsCommand = se_ListNetworkSettingsCommand;
|
|
734
|
+
const se_ListPortalsCommand = async (input, context) => {
|
|
737
735
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
738
736
|
const headers = {};
|
|
739
737
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
|
|
@@ -753,8 +751,8 @@ const serializeAws_restJson1ListPortalsCommand = async (input, context) => {
|
|
|
753
751
|
body,
|
|
754
752
|
});
|
|
755
753
|
};
|
|
756
|
-
exports.
|
|
757
|
-
const
|
|
754
|
+
exports.se_ListPortalsCommand = se_ListPortalsCommand;
|
|
755
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
758
756
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
759
757
|
const headers = {};
|
|
760
758
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
|
|
@@ -770,8 +768,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
770
768
|
body,
|
|
771
769
|
});
|
|
772
770
|
};
|
|
773
|
-
exports.
|
|
774
|
-
const
|
|
771
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
772
|
+
const se_ListTrustStoreCertificatesCommand = async (input, context) => {
|
|
775
773
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
776
774
|
const headers = {};
|
|
777
775
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -793,8 +791,8 @@ const serializeAws_restJson1ListTrustStoreCertificatesCommand = async (input, co
|
|
|
793
791
|
body,
|
|
794
792
|
});
|
|
795
793
|
};
|
|
796
|
-
exports.
|
|
797
|
-
const
|
|
794
|
+
exports.se_ListTrustStoreCertificatesCommand = se_ListTrustStoreCertificatesCommand;
|
|
795
|
+
const se_ListTrustStoresCommand = async (input, context) => {
|
|
798
796
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
799
797
|
const headers = {};
|
|
800
798
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
|
|
@@ -814,8 +812,8 @@ const serializeAws_restJson1ListTrustStoresCommand = async (input, context) => {
|
|
|
814
812
|
body,
|
|
815
813
|
});
|
|
816
814
|
};
|
|
817
|
-
exports.
|
|
818
|
-
const
|
|
815
|
+
exports.se_ListTrustStoresCommand = se_ListTrustStoresCommand;
|
|
816
|
+
const se_ListUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
819
817
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
820
818
|
const headers = {};
|
|
821
819
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
|
|
@@ -835,8 +833,8 @@ const serializeAws_restJson1ListUserAccessLoggingSettingsCommand = async (input,
|
|
|
835
833
|
body,
|
|
836
834
|
});
|
|
837
835
|
};
|
|
838
|
-
exports.
|
|
839
|
-
const
|
|
836
|
+
exports.se_ListUserAccessLoggingSettingsCommand = se_ListUserAccessLoggingSettingsCommand;
|
|
837
|
+
const se_ListUserSettingsCommand = async (input, context) => {
|
|
840
838
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
841
839
|
const headers = {};
|
|
842
840
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings";
|
|
@@ -856,8 +854,8 @@ const serializeAws_restJson1ListUserSettingsCommand = async (input, context) =>
|
|
|
856
854
|
body,
|
|
857
855
|
});
|
|
858
856
|
};
|
|
859
|
-
exports.
|
|
860
|
-
const
|
|
857
|
+
exports.se_ListUserSettingsCommand = se_ListUserSettingsCommand;
|
|
858
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
861
859
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
862
860
|
const headers = {
|
|
863
861
|
"content-type": "application/json",
|
|
@@ -867,7 +865,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
867
865
|
let body;
|
|
868
866
|
body = JSON.stringify({
|
|
869
867
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
870
|
-
...(input.tags != null && { tags:
|
|
868
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
871
869
|
});
|
|
872
870
|
return new protocol_http_1.HttpRequest({
|
|
873
871
|
protocol,
|
|
@@ -879,8 +877,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
879
877
|
body,
|
|
880
878
|
});
|
|
881
879
|
};
|
|
882
|
-
exports.
|
|
883
|
-
const
|
|
880
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
881
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
884
882
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
885
883
|
const headers = {};
|
|
886
884
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
|
|
@@ -903,8 +901,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
903
901
|
body,
|
|
904
902
|
});
|
|
905
903
|
};
|
|
906
|
-
exports.
|
|
907
|
-
const
|
|
904
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
905
|
+
const se_UpdateBrowserSettingsCommand = async (input, context) => {
|
|
908
906
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
909
907
|
const headers = {
|
|
910
908
|
"content-type": "application/json",
|
|
@@ -926,8 +924,8 @@ const serializeAws_restJson1UpdateBrowserSettingsCommand = async (input, context
|
|
|
926
924
|
body,
|
|
927
925
|
});
|
|
928
926
|
};
|
|
929
|
-
exports.
|
|
930
|
-
const
|
|
927
|
+
exports.se_UpdateBrowserSettingsCommand = se_UpdateBrowserSettingsCommand;
|
|
928
|
+
const se_UpdateIdentityProviderCommand = async (input, context) => {
|
|
931
929
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
932
930
|
const headers = {
|
|
933
931
|
"content-type": "application/json",
|
|
@@ -938,7 +936,7 @@ const serializeAws_restJson1UpdateIdentityProviderCommand = async (input, contex
|
|
|
938
936
|
body = JSON.stringify({
|
|
939
937
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
940
938
|
...(input.identityProviderDetails != null && {
|
|
941
|
-
identityProviderDetails:
|
|
939
|
+
identityProviderDetails: se_IdentityProviderDetails(input.identityProviderDetails, context),
|
|
942
940
|
}),
|
|
943
941
|
...(input.identityProviderName != null && { identityProviderName: input.identityProviderName }),
|
|
944
942
|
...(input.identityProviderType != null && { identityProviderType: input.identityProviderType }),
|
|
@@ -953,8 +951,8 @@ const serializeAws_restJson1UpdateIdentityProviderCommand = async (input, contex
|
|
|
953
951
|
body,
|
|
954
952
|
});
|
|
955
953
|
};
|
|
956
|
-
exports.
|
|
957
|
-
const
|
|
954
|
+
exports.se_UpdateIdentityProviderCommand = se_UpdateIdentityProviderCommand;
|
|
955
|
+
const se_UpdateNetworkSettingsCommand = async (input, context) => {
|
|
958
956
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
959
957
|
const headers = {
|
|
960
958
|
"content-type": "application/json",
|
|
@@ -965,9 +963,9 @@ const serializeAws_restJson1UpdateNetworkSettingsCommand = async (input, context
|
|
|
965
963
|
body = JSON.stringify({
|
|
966
964
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
967
965
|
...(input.securityGroupIds != null && {
|
|
968
|
-
securityGroupIds:
|
|
966
|
+
securityGroupIds: se_SecurityGroupIdList(input.securityGroupIds, context),
|
|
969
967
|
}),
|
|
970
|
-
...(input.subnetIds != null && { subnetIds:
|
|
968
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIdList(input.subnetIds, context) }),
|
|
971
969
|
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
972
970
|
});
|
|
973
971
|
return new protocol_http_1.HttpRequest({
|
|
@@ -980,8 +978,8 @@ const serializeAws_restJson1UpdateNetworkSettingsCommand = async (input, context
|
|
|
980
978
|
body,
|
|
981
979
|
});
|
|
982
980
|
};
|
|
983
|
-
exports.
|
|
984
|
-
const
|
|
981
|
+
exports.se_UpdateNetworkSettingsCommand = se_UpdateNetworkSettingsCommand;
|
|
982
|
+
const se_UpdatePortalCommand = async (input, context) => {
|
|
985
983
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
986
984
|
const headers = {
|
|
987
985
|
"content-type": "application/json",
|
|
@@ -1003,8 +1001,8 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
1003
1001
|
body,
|
|
1004
1002
|
});
|
|
1005
1003
|
};
|
|
1006
|
-
exports.
|
|
1007
|
-
const
|
|
1004
|
+
exports.se_UpdatePortalCommand = se_UpdatePortalCommand;
|
|
1005
|
+
const se_UpdateTrustStoreCommand = async (input, context) => {
|
|
1008
1006
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1009
1007
|
const headers = {
|
|
1010
1008
|
"content-type": "application/json",
|
|
@@ -1013,11 +1011,9 @@ const serializeAws_restJson1UpdateTrustStoreCommand = async (input, context) =>
|
|
|
1013
1011
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
1014
1012
|
let body;
|
|
1015
1013
|
body = JSON.stringify({
|
|
1016
|
-
...(input.certificatesToAdd != null && {
|
|
1017
|
-
certificatesToAdd: serializeAws_restJson1CertificateList(input.certificatesToAdd, context),
|
|
1018
|
-
}),
|
|
1014
|
+
...(input.certificatesToAdd != null && { certificatesToAdd: se_CertificateList(input.certificatesToAdd, context) }),
|
|
1019
1015
|
...(input.certificatesToDelete != null && {
|
|
1020
|
-
certificatesToDelete:
|
|
1016
|
+
certificatesToDelete: se_CertificateThumbprintList(input.certificatesToDelete, context),
|
|
1021
1017
|
}),
|
|
1022
1018
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1023
1019
|
});
|
|
@@ -1031,8 +1027,8 @@ const serializeAws_restJson1UpdateTrustStoreCommand = async (input, context) =>
|
|
|
1031
1027
|
body,
|
|
1032
1028
|
});
|
|
1033
1029
|
};
|
|
1034
|
-
exports.
|
|
1035
|
-
const
|
|
1030
|
+
exports.se_UpdateTrustStoreCommand = se_UpdateTrustStoreCommand;
|
|
1031
|
+
const se_UpdateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
1036
1032
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1037
1033
|
const headers = {
|
|
1038
1034
|
"content-type": "application/json",
|
|
@@ -1055,8 +1051,8 @@ const serializeAws_restJson1UpdateUserAccessLoggingSettingsCommand = async (inpu
|
|
|
1055
1051
|
body,
|
|
1056
1052
|
});
|
|
1057
1053
|
};
|
|
1058
|
-
exports.
|
|
1059
|
-
const
|
|
1054
|
+
exports.se_UpdateUserAccessLoggingSettingsCommand = se_UpdateUserAccessLoggingSettingsCommand;
|
|
1055
|
+
const se_UpdateUserSettingsCommand = async (input, context) => {
|
|
1060
1056
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1061
1057
|
const headers = {
|
|
1062
1058
|
"content-type": "application/json",
|
|
@@ -1086,10 +1082,10 @@ const serializeAws_restJson1UpdateUserSettingsCommand = async (input, context) =
|
|
|
1086
1082
|
body,
|
|
1087
1083
|
});
|
|
1088
1084
|
};
|
|
1089
|
-
exports.
|
|
1090
|
-
const
|
|
1085
|
+
exports.se_UpdateUserSettingsCommand = se_UpdateUserSettingsCommand;
|
|
1086
|
+
const de_AssociateBrowserSettingsCommand = async (output, context) => {
|
|
1091
1087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1092
|
-
return
|
|
1088
|
+
return de_AssociateBrowserSettingsCommandError(output, context);
|
|
1093
1089
|
}
|
|
1094
1090
|
const contents = map({
|
|
1095
1091
|
$metadata: deserializeMetadata(output),
|
|
@@ -1103,8 +1099,8 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommand = async (output, c
|
|
|
1103
1099
|
}
|
|
1104
1100
|
return contents;
|
|
1105
1101
|
};
|
|
1106
|
-
exports.
|
|
1107
|
-
const
|
|
1102
|
+
exports.de_AssociateBrowserSettingsCommand = de_AssociateBrowserSettingsCommand;
|
|
1103
|
+
const de_AssociateBrowserSettingsCommandError = async (output, context) => {
|
|
1108
1104
|
const parsedOutput = {
|
|
1109
1105
|
...output,
|
|
1110
1106
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1113,22 +1109,22 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1113
1109
|
switch (errorCode) {
|
|
1114
1110
|
case "AccessDeniedException":
|
|
1115
1111
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1116
|
-
throw await
|
|
1112
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1117
1113
|
case "ConflictException":
|
|
1118
1114
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1119
|
-
throw await
|
|
1115
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1120
1116
|
case "InternalServerException":
|
|
1121
1117
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1122
|
-
throw await
|
|
1118
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1123
1119
|
case "ResourceNotFoundException":
|
|
1124
1120
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1125
|
-
throw await
|
|
1121
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1126
1122
|
case "ThrottlingException":
|
|
1127
1123
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1128
|
-
throw await
|
|
1124
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1129
1125
|
case "ValidationException":
|
|
1130
1126
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1131
|
-
throw await
|
|
1127
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1132
1128
|
default:
|
|
1133
1129
|
const parsedBody = parsedOutput.body;
|
|
1134
1130
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1139,9 +1135,9 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1139
1135
|
});
|
|
1140
1136
|
}
|
|
1141
1137
|
};
|
|
1142
|
-
const
|
|
1138
|
+
const de_AssociateNetworkSettingsCommand = async (output, context) => {
|
|
1143
1139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1144
|
-
return
|
|
1140
|
+
return de_AssociateNetworkSettingsCommandError(output, context);
|
|
1145
1141
|
}
|
|
1146
1142
|
const contents = map({
|
|
1147
1143
|
$metadata: deserializeMetadata(output),
|
|
@@ -1155,8 +1151,8 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommand = async (output, c
|
|
|
1155
1151
|
}
|
|
1156
1152
|
return contents;
|
|
1157
1153
|
};
|
|
1158
|
-
exports.
|
|
1159
|
-
const
|
|
1154
|
+
exports.de_AssociateNetworkSettingsCommand = de_AssociateNetworkSettingsCommand;
|
|
1155
|
+
const de_AssociateNetworkSettingsCommandError = async (output, context) => {
|
|
1160
1156
|
const parsedOutput = {
|
|
1161
1157
|
...output,
|
|
1162
1158
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1165,22 +1161,22 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1165
1161
|
switch (errorCode) {
|
|
1166
1162
|
case "AccessDeniedException":
|
|
1167
1163
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1168
|
-
throw await
|
|
1164
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1169
1165
|
case "ConflictException":
|
|
1170
1166
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1171
|
-
throw await
|
|
1167
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1172
1168
|
case "InternalServerException":
|
|
1173
1169
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1174
|
-
throw await
|
|
1170
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1175
1171
|
case "ResourceNotFoundException":
|
|
1176
1172
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1177
|
-
throw await
|
|
1173
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1178
1174
|
case "ThrottlingException":
|
|
1179
1175
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1180
|
-
throw await
|
|
1176
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1181
1177
|
case "ValidationException":
|
|
1182
1178
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1183
|
-
throw await
|
|
1179
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1184
1180
|
default:
|
|
1185
1181
|
const parsedBody = parsedOutput.body;
|
|
1186
1182
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1191,9 +1187,9 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1191
1187
|
});
|
|
1192
1188
|
}
|
|
1193
1189
|
};
|
|
1194
|
-
const
|
|
1190
|
+
const de_AssociateTrustStoreCommand = async (output, context) => {
|
|
1195
1191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1196
|
-
return
|
|
1192
|
+
return de_AssociateTrustStoreCommandError(output, context);
|
|
1197
1193
|
}
|
|
1198
1194
|
const contents = map({
|
|
1199
1195
|
$metadata: deserializeMetadata(output),
|
|
@@ -1207,8 +1203,8 @@ const deserializeAws_restJson1AssociateTrustStoreCommand = async (output, contex
|
|
|
1207
1203
|
}
|
|
1208
1204
|
return contents;
|
|
1209
1205
|
};
|
|
1210
|
-
exports.
|
|
1211
|
-
const
|
|
1206
|
+
exports.de_AssociateTrustStoreCommand = de_AssociateTrustStoreCommand;
|
|
1207
|
+
const de_AssociateTrustStoreCommandError = async (output, context) => {
|
|
1212
1208
|
const parsedOutput = {
|
|
1213
1209
|
...output,
|
|
1214
1210
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1217,19 +1213,19 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1217
1213
|
switch (errorCode) {
|
|
1218
1214
|
case "AccessDeniedException":
|
|
1219
1215
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1220
|
-
throw await
|
|
1216
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1221
1217
|
case "InternalServerException":
|
|
1222
1218
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1223
|
-
throw await
|
|
1219
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1224
1220
|
case "ResourceNotFoundException":
|
|
1225
1221
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1226
|
-
throw await
|
|
1222
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1227
1223
|
case "ThrottlingException":
|
|
1228
1224
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1229
|
-
throw await
|
|
1225
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1230
1226
|
case "ValidationException":
|
|
1231
1227
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1232
|
-
throw await
|
|
1228
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1233
1229
|
default:
|
|
1234
1230
|
const parsedBody = parsedOutput.body;
|
|
1235
1231
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1240,9 +1236,9 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1240
1236
|
});
|
|
1241
1237
|
}
|
|
1242
1238
|
};
|
|
1243
|
-
const
|
|
1239
|
+
const de_AssociateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
1244
1240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1245
|
-
return
|
|
1241
|
+
return de_AssociateUserAccessLoggingSettingsCommandError(output, context);
|
|
1246
1242
|
}
|
|
1247
1243
|
const contents = map({
|
|
1248
1244
|
$metadata: deserializeMetadata(output),
|
|
@@ -1256,8 +1252,8 @@ const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = async
|
|
|
1256
1252
|
}
|
|
1257
1253
|
return contents;
|
|
1258
1254
|
};
|
|
1259
|
-
exports.
|
|
1260
|
-
const
|
|
1255
|
+
exports.de_AssociateUserAccessLoggingSettingsCommand = de_AssociateUserAccessLoggingSettingsCommand;
|
|
1256
|
+
const de_AssociateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
1261
1257
|
const parsedOutput = {
|
|
1262
1258
|
...output,
|
|
1263
1259
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1266,22 +1262,22 @@ const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommandError = a
|
|
|
1266
1262
|
switch (errorCode) {
|
|
1267
1263
|
case "AccessDeniedException":
|
|
1268
1264
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1269
|
-
throw await
|
|
1265
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1270
1266
|
case "ConflictException":
|
|
1271
1267
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1272
|
-
throw await
|
|
1268
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1273
1269
|
case "InternalServerException":
|
|
1274
1270
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1275
|
-
throw await
|
|
1271
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1276
1272
|
case "ResourceNotFoundException":
|
|
1277
1273
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1278
|
-
throw await
|
|
1274
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1279
1275
|
case "ThrottlingException":
|
|
1280
1276
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1281
|
-
throw await
|
|
1277
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1282
1278
|
case "ValidationException":
|
|
1283
1279
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1284
|
-
throw await
|
|
1280
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1285
1281
|
default:
|
|
1286
1282
|
const parsedBody = parsedOutput.body;
|
|
1287
1283
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1292,9 +1288,9 @@ const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommandError = a
|
|
|
1292
1288
|
});
|
|
1293
1289
|
}
|
|
1294
1290
|
};
|
|
1295
|
-
const
|
|
1291
|
+
const de_AssociateUserSettingsCommand = async (output, context) => {
|
|
1296
1292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1297
|
-
return
|
|
1293
|
+
return de_AssociateUserSettingsCommandError(output, context);
|
|
1298
1294
|
}
|
|
1299
1295
|
const contents = map({
|
|
1300
1296
|
$metadata: deserializeMetadata(output),
|
|
@@ -1308,8 +1304,8 @@ const deserializeAws_restJson1AssociateUserSettingsCommand = async (output, cont
|
|
|
1308
1304
|
}
|
|
1309
1305
|
return contents;
|
|
1310
1306
|
};
|
|
1311
|
-
exports.
|
|
1312
|
-
const
|
|
1307
|
+
exports.de_AssociateUserSettingsCommand = de_AssociateUserSettingsCommand;
|
|
1308
|
+
const de_AssociateUserSettingsCommandError = async (output, context) => {
|
|
1313
1309
|
const parsedOutput = {
|
|
1314
1310
|
...output,
|
|
1315
1311
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1318,22 +1314,22 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1318
1314
|
switch (errorCode) {
|
|
1319
1315
|
case "AccessDeniedException":
|
|
1320
1316
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1321
|
-
throw await
|
|
1317
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1322
1318
|
case "ConflictException":
|
|
1323
1319
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1324
|
-
throw await
|
|
1320
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1325
1321
|
case "InternalServerException":
|
|
1326
1322
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1327
|
-
throw await
|
|
1323
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1328
1324
|
case "ResourceNotFoundException":
|
|
1329
1325
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1330
|
-
throw await
|
|
1326
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1331
1327
|
case "ThrottlingException":
|
|
1332
1328
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1333
|
-
throw await
|
|
1329
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1334
1330
|
case "ValidationException":
|
|
1335
1331
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1336
|
-
throw await
|
|
1332
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
1333
|
default:
|
|
1338
1334
|
const parsedBody = parsedOutput.body;
|
|
1339
1335
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1344,9 +1340,9 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1344
1340
|
});
|
|
1345
1341
|
}
|
|
1346
1342
|
};
|
|
1347
|
-
const
|
|
1343
|
+
const de_CreateBrowserSettingsCommand = async (output, context) => {
|
|
1348
1344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1349
|
-
return
|
|
1345
|
+
return de_CreateBrowserSettingsCommandError(output, context);
|
|
1350
1346
|
}
|
|
1351
1347
|
const contents = map({
|
|
1352
1348
|
$metadata: deserializeMetadata(output),
|
|
@@ -1357,8 +1353,8 @@ const deserializeAws_restJson1CreateBrowserSettingsCommand = async (output, cont
|
|
|
1357
1353
|
}
|
|
1358
1354
|
return contents;
|
|
1359
1355
|
};
|
|
1360
|
-
exports.
|
|
1361
|
-
const
|
|
1356
|
+
exports.de_CreateBrowserSettingsCommand = de_CreateBrowserSettingsCommand;
|
|
1357
|
+
const de_CreateBrowserSettingsCommandError = async (output, context) => {
|
|
1362
1358
|
const parsedOutput = {
|
|
1363
1359
|
...output,
|
|
1364
1360
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1367,25 +1363,25 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1367
1363
|
switch (errorCode) {
|
|
1368
1364
|
case "AccessDeniedException":
|
|
1369
1365
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1370
|
-
throw await
|
|
1366
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1371
1367
|
case "ConflictException":
|
|
1372
1368
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1373
|
-
throw await
|
|
1369
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1374
1370
|
case "InternalServerException":
|
|
1375
1371
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1376
|
-
throw await
|
|
1372
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1377
1373
|
case "ResourceNotFoundException":
|
|
1378
1374
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1379
|
-
throw await
|
|
1375
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1380
1376
|
case "ServiceQuotaExceededException":
|
|
1381
1377
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1382
|
-
throw await
|
|
1378
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1383
1379
|
case "ThrottlingException":
|
|
1384
1380
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1385
|
-
throw await
|
|
1381
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1386
1382
|
case "ValidationException":
|
|
1387
1383
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1388
|
-
throw await
|
|
1384
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
1385
|
default:
|
|
1390
1386
|
const parsedBody = parsedOutput.body;
|
|
1391
1387
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1396,9 +1392,9 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1396
1392
|
});
|
|
1397
1393
|
}
|
|
1398
1394
|
};
|
|
1399
|
-
const
|
|
1395
|
+
const de_CreateIdentityProviderCommand = async (output, context) => {
|
|
1400
1396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1401
|
-
return
|
|
1397
|
+
return de_CreateIdentityProviderCommandError(output, context);
|
|
1402
1398
|
}
|
|
1403
1399
|
const contents = map({
|
|
1404
1400
|
$metadata: deserializeMetadata(output),
|
|
@@ -1409,8 +1405,8 @@ const deserializeAws_restJson1CreateIdentityProviderCommand = async (output, con
|
|
|
1409
1405
|
}
|
|
1410
1406
|
return contents;
|
|
1411
1407
|
};
|
|
1412
|
-
exports.
|
|
1413
|
-
const
|
|
1408
|
+
exports.de_CreateIdentityProviderCommand = de_CreateIdentityProviderCommand;
|
|
1409
|
+
const de_CreateIdentityProviderCommandError = async (output, context) => {
|
|
1414
1410
|
const parsedOutput = {
|
|
1415
1411
|
...output,
|
|
1416
1412
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1419,25 +1415,25 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1419
1415
|
switch (errorCode) {
|
|
1420
1416
|
case "AccessDeniedException":
|
|
1421
1417
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1422
|
-
throw await
|
|
1418
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1423
1419
|
case "ConflictException":
|
|
1424
1420
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1425
|
-
throw await
|
|
1421
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1426
1422
|
case "InternalServerException":
|
|
1427
1423
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1428
|
-
throw await
|
|
1424
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1429
1425
|
case "ResourceNotFoundException":
|
|
1430
1426
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1431
|
-
throw await
|
|
1427
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1432
1428
|
case "ServiceQuotaExceededException":
|
|
1433
1429
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1434
|
-
throw await
|
|
1430
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1435
1431
|
case "ThrottlingException":
|
|
1436
1432
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1437
|
-
throw await
|
|
1433
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1438
1434
|
case "ValidationException":
|
|
1439
1435
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1440
|
-
throw await
|
|
1436
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1441
1437
|
default:
|
|
1442
1438
|
const parsedBody = parsedOutput.body;
|
|
1443
1439
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1448,9 +1444,9 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1448
1444
|
});
|
|
1449
1445
|
}
|
|
1450
1446
|
};
|
|
1451
|
-
const
|
|
1447
|
+
const de_CreateNetworkSettingsCommand = async (output, context) => {
|
|
1452
1448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1453
|
-
return
|
|
1449
|
+
return de_CreateNetworkSettingsCommandError(output, context);
|
|
1454
1450
|
}
|
|
1455
1451
|
const contents = map({
|
|
1456
1452
|
$metadata: deserializeMetadata(output),
|
|
@@ -1461,8 +1457,8 @@ const deserializeAws_restJson1CreateNetworkSettingsCommand = async (output, cont
|
|
|
1461
1457
|
}
|
|
1462
1458
|
return contents;
|
|
1463
1459
|
};
|
|
1464
|
-
exports.
|
|
1465
|
-
const
|
|
1460
|
+
exports.de_CreateNetworkSettingsCommand = de_CreateNetworkSettingsCommand;
|
|
1461
|
+
const de_CreateNetworkSettingsCommandError = async (output, context) => {
|
|
1466
1462
|
const parsedOutput = {
|
|
1467
1463
|
...output,
|
|
1468
1464
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1471,22 +1467,22 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1471
1467
|
switch (errorCode) {
|
|
1472
1468
|
case "AccessDeniedException":
|
|
1473
1469
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1474
|
-
throw await
|
|
1470
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1475
1471
|
case "ConflictException":
|
|
1476
1472
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1477
|
-
throw await
|
|
1473
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1478
1474
|
case "InternalServerException":
|
|
1479
1475
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1480
|
-
throw await
|
|
1476
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1481
1477
|
case "ServiceQuotaExceededException":
|
|
1482
1478
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1483
|
-
throw await
|
|
1479
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1484
1480
|
case "ThrottlingException":
|
|
1485
1481
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1486
|
-
throw await
|
|
1482
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1487
1483
|
case "ValidationException":
|
|
1488
1484
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1489
|
-
throw await
|
|
1485
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1490
1486
|
default:
|
|
1491
1487
|
const parsedBody = parsedOutput.body;
|
|
1492
1488
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1497,9 +1493,9 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1497
1493
|
});
|
|
1498
1494
|
}
|
|
1499
1495
|
};
|
|
1500
|
-
const
|
|
1496
|
+
const de_CreatePortalCommand = async (output, context) => {
|
|
1501
1497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1502
|
-
return
|
|
1498
|
+
return de_CreatePortalCommandError(output, context);
|
|
1503
1499
|
}
|
|
1504
1500
|
const contents = map({
|
|
1505
1501
|
$metadata: deserializeMetadata(output),
|
|
@@ -1513,8 +1509,8 @@ const deserializeAws_restJson1CreatePortalCommand = async (output, context) => {
|
|
|
1513
1509
|
}
|
|
1514
1510
|
return contents;
|
|
1515
1511
|
};
|
|
1516
|
-
exports.
|
|
1517
|
-
const
|
|
1512
|
+
exports.de_CreatePortalCommand = de_CreatePortalCommand;
|
|
1513
|
+
const de_CreatePortalCommandError = async (output, context) => {
|
|
1518
1514
|
const parsedOutput = {
|
|
1519
1515
|
...output,
|
|
1520
1516
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1523,25 +1519,25 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1523
1519
|
switch (errorCode) {
|
|
1524
1520
|
case "AccessDeniedException":
|
|
1525
1521
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1526
|
-
throw await
|
|
1522
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1527
1523
|
case "ConflictException":
|
|
1528
1524
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1529
|
-
throw await
|
|
1525
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1530
1526
|
case "InternalServerException":
|
|
1531
1527
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1532
|
-
throw await
|
|
1528
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1533
1529
|
case "ResourceNotFoundException":
|
|
1534
1530
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1535
|
-
throw await
|
|
1531
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1536
1532
|
case "ServiceQuotaExceededException":
|
|
1537
1533
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1538
|
-
throw await
|
|
1534
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1539
1535
|
case "ThrottlingException":
|
|
1540
1536
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1541
|
-
throw await
|
|
1537
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1542
1538
|
case "ValidationException":
|
|
1543
1539
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1544
|
-
throw await
|
|
1540
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1545
1541
|
default:
|
|
1546
1542
|
const parsedBody = parsedOutput.body;
|
|
1547
1543
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1552,9 +1548,9 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1552
1548
|
});
|
|
1553
1549
|
}
|
|
1554
1550
|
};
|
|
1555
|
-
const
|
|
1551
|
+
const de_CreateTrustStoreCommand = async (output, context) => {
|
|
1556
1552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1553
|
+
return de_CreateTrustStoreCommandError(output, context);
|
|
1558
1554
|
}
|
|
1559
1555
|
const contents = map({
|
|
1560
1556
|
$metadata: deserializeMetadata(output),
|
|
@@ -1565,8 +1561,8 @@ const deserializeAws_restJson1CreateTrustStoreCommand = async (output, context)
|
|
|
1565
1561
|
}
|
|
1566
1562
|
return contents;
|
|
1567
1563
|
};
|
|
1568
|
-
exports.
|
|
1569
|
-
const
|
|
1564
|
+
exports.de_CreateTrustStoreCommand = de_CreateTrustStoreCommand;
|
|
1565
|
+
const de_CreateTrustStoreCommandError = async (output, context) => {
|
|
1570
1566
|
const parsedOutput = {
|
|
1571
1567
|
...output,
|
|
1572
1568
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1575,22 +1571,22 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1575
1571
|
switch (errorCode) {
|
|
1576
1572
|
case "AccessDeniedException":
|
|
1577
1573
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1578
|
-
throw await
|
|
1574
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1579
1575
|
case "ConflictException":
|
|
1580
1576
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1581
|
-
throw await
|
|
1577
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1582
1578
|
case "InternalServerException":
|
|
1583
1579
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1584
|
-
throw await
|
|
1580
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1585
1581
|
case "ServiceQuotaExceededException":
|
|
1586
1582
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1587
|
-
throw await
|
|
1583
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1588
1584
|
case "ThrottlingException":
|
|
1589
1585
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1590
|
-
throw await
|
|
1586
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1591
1587
|
case "ValidationException":
|
|
1592
1588
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1593
|
-
throw await
|
|
1589
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1594
1590
|
default:
|
|
1595
1591
|
const parsedBody = parsedOutput.body;
|
|
1596
1592
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1601,9 +1597,9 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1601
1597
|
});
|
|
1602
1598
|
}
|
|
1603
1599
|
};
|
|
1604
|
-
const
|
|
1600
|
+
const de_CreateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
1605
1601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1606
|
-
return
|
|
1602
|
+
return de_CreateUserAccessLoggingSettingsCommandError(output, context);
|
|
1607
1603
|
}
|
|
1608
1604
|
const contents = map({
|
|
1609
1605
|
$metadata: deserializeMetadata(output),
|
|
@@ -1614,8 +1610,8 @@ const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommand = async (ou
|
|
|
1614
1610
|
}
|
|
1615
1611
|
return contents;
|
|
1616
1612
|
};
|
|
1617
|
-
exports.
|
|
1618
|
-
const
|
|
1613
|
+
exports.de_CreateUserAccessLoggingSettingsCommand = de_CreateUserAccessLoggingSettingsCommand;
|
|
1614
|
+
const de_CreateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
1619
1615
|
const parsedOutput = {
|
|
1620
1616
|
...output,
|
|
1621
1617
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1624,22 +1620,22 @@ const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommandError = asyn
|
|
|
1624
1620
|
switch (errorCode) {
|
|
1625
1621
|
case "AccessDeniedException":
|
|
1626
1622
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1627
|
-
throw await
|
|
1623
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1628
1624
|
case "ConflictException":
|
|
1629
1625
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1630
|
-
throw await
|
|
1626
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1631
1627
|
case "InternalServerException":
|
|
1632
1628
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1633
|
-
throw await
|
|
1629
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1634
1630
|
case "ServiceQuotaExceededException":
|
|
1635
1631
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1636
|
-
throw await
|
|
1632
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1637
1633
|
case "ThrottlingException":
|
|
1638
1634
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1639
|
-
throw await
|
|
1635
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1640
1636
|
case "ValidationException":
|
|
1641
1637
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1642
|
-
throw await
|
|
1638
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1643
1639
|
default:
|
|
1644
1640
|
const parsedBody = parsedOutput.body;
|
|
1645
1641
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1650,9 +1646,9 @@ const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommandError = asyn
|
|
|
1650
1646
|
});
|
|
1651
1647
|
}
|
|
1652
1648
|
};
|
|
1653
|
-
const
|
|
1649
|
+
const de_CreateUserSettingsCommand = async (output, context) => {
|
|
1654
1650
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1655
|
-
return
|
|
1651
|
+
return de_CreateUserSettingsCommandError(output, context);
|
|
1656
1652
|
}
|
|
1657
1653
|
const contents = map({
|
|
1658
1654
|
$metadata: deserializeMetadata(output),
|
|
@@ -1663,8 +1659,8 @@ const deserializeAws_restJson1CreateUserSettingsCommand = async (output, context
|
|
|
1663
1659
|
}
|
|
1664
1660
|
return contents;
|
|
1665
1661
|
};
|
|
1666
|
-
exports.
|
|
1667
|
-
const
|
|
1662
|
+
exports.de_CreateUserSettingsCommand = de_CreateUserSettingsCommand;
|
|
1663
|
+
const de_CreateUserSettingsCommandError = async (output, context) => {
|
|
1668
1664
|
const parsedOutput = {
|
|
1669
1665
|
...output,
|
|
1670
1666
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1673,22 +1669,22 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1673
1669
|
switch (errorCode) {
|
|
1674
1670
|
case "AccessDeniedException":
|
|
1675
1671
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1676
|
-
throw await
|
|
1672
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1677
1673
|
case "ConflictException":
|
|
1678
1674
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1679
|
-
throw await
|
|
1675
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1680
1676
|
case "InternalServerException":
|
|
1681
1677
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1682
|
-
throw await
|
|
1678
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1683
1679
|
case "ServiceQuotaExceededException":
|
|
1684
1680
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1685
|
-
throw await
|
|
1681
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1686
1682
|
case "ThrottlingException":
|
|
1687
1683
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1688
|
-
throw await
|
|
1684
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1689
1685
|
case "ValidationException":
|
|
1690
1686
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1691
|
-
throw await
|
|
1687
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1692
1688
|
default:
|
|
1693
1689
|
const parsedBody = parsedOutput.body;
|
|
1694
1690
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1699,9 +1695,9 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1699
1695
|
});
|
|
1700
1696
|
}
|
|
1701
1697
|
};
|
|
1702
|
-
const
|
|
1698
|
+
const de_DeleteBrowserSettingsCommand = async (output, context) => {
|
|
1703
1699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1704
|
-
return
|
|
1700
|
+
return de_DeleteBrowserSettingsCommandError(output, context);
|
|
1705
1701
|
}
|
|
1706
1702
|
const contents = map({
|
|
1707
1703
|
$metadata: deserializeMetadata(output),
|
|
@@ -1709,8 +1705,8 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommand = async (output, cont
|
|
|
1709
1705
|
await collectBody(output.body, context);
|
|
1710
1706
|
return contents;
|
|
1711
1707
|
};
|
|
1712
|
-
exports.
|
|
1713
|
-
const
|
|
1708
|
+
exports.de_DeleteBrowserSettingsCommand = de_DeleteBrowserSettingsCommand;
|
|
1709
|
+
const de_DeleteBrowserSettingsCommandError = async (output, context) => {
|
|
1714
1710
|
const parsedOutput = {
|
|
1715
1711
|
...output,
|
|
1716
1712
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1719,19 +1715,19 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1719
1715
|
switch (errorCode) {
|
|
1720
1716
|
case "AccessDeniedException":
|
|
1721
1717
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1722
|
-
throw await
|
|
1718
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1723
1719
|
case "ConflictException":
|
|
1724
1720
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1725
|
-
throw await
|
|
1721
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1726
1722
|
case "InternalServerException":
|
|
1727
1723
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1728
|
-
throw await
|
|
1724
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1729
1725
|
case "ThrottlingException":
|
|
1730
1726
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1731
|
-
throw await
|
|
1727
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1732
1728
|
case "ValidationException":
|
|
1733
1729
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1734
|
-
throw await
|
|
1730
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1735
1731
|
default:
|
|
1736
1732
|
const parsedBody = parsedOutput.body;
|
|
1737
1733
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1742,9 +1738,9 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1742
1738
|
});
|
|
1743
1739
|
}
|
|
1744
1740
|
};
|
|
1745
|
-
const
|
|
1741
|
+
const de_DeleteIdentityProviderCommand = async (output, context) => {
|
|
1746
1742
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
1743
|
+
return de_DeleteIdentityProviderCommandError(output, context);
|
|
1748
1744
|
}
|
|
1749
1745
|
const contents = map({
|
|
1750
1746
|
$metadata: deserializeMetadata(output),
|
|
@@ -1752,8 +1748,8 @@ const deserializeAws_restJson1DeleteIdentityProviderCommand = async (output, con
|
|
|
1752
1748
|
await collectBody(output.body, context);
|
|
1753
1749
|
return contents;
|
|
1754
1750
|
};
|
|
1755
|
-
exports.
|
|
1756
|
-
const
|
|
1751
|
+
exports.de_DeleteIdentityProviderCommand = de_DeleteIdentityProviderCommand;
|
|
1752
|
+
const de_DeleteIdentityProviderCommandError = async (output, context) => {
|
|
1757
1753
|
const parsedOutput = {
|
|
1758
1754
|
...output,
|
|
1759
1755
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1762,19 +1758,19 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1762
1758
|
switch (errorCode) {
|
|
1763
1759
|
case "AccessDeniedException":
|
|
1764
1760
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1765
|
-
throw await
|
|
1761
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1766
1762
|
case "ConflictException":
|
|
1767
1763
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1768
|
-
throw await
|
|
1764
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1769
1765
|
case "InternalServerException":
|
|
1770
1766
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1771
|
-
throw await
|
|
1767
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1772
1768
|
case "ThrottlingException":
|
|
1773
1769
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1774
|
-
throw await
|
|
1770
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1775
1771
|
case "ValidationException":
|
|
1776
1772
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1777
|
-
throw await
|
|
1773
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1778
1774
|
default:
|
|
1779
1775
|
const parsedBody = parsedOutput.body;
|
|
1780
1776
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1785,9 +1781,9 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1785
1781
|
});
|
|
1786
1782
|
}
|
|
1787
1783
|
};
|
|
1788
|
-
const
|
|
1784
|
+
const de_DeleteNetworkSettingsCommand = async (output, context) => {
|
|
1789
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1790
|
-
return
|
|
1786
|
+
return de_DeleteNetworkSettingsCommandError(output, context);
|
|
1791
1787
|
}
|
|
1792
1788
|
const contents = map({
|
|
1793
1789
|
$metadata: deserializeMetadata(output),
|
|
@@ -1795,8 +1791,8 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommand = async (output, cont
|
|
|
1795
1791
|
await collectBody(output.body, context);
|
|
1796
1792
|
return contents;
|
|
1797
1793
|
};
|
|
1798
|
-
exports.
|
|
1799
|
-
const
|
|
1794
|
+
exports.de_DeleteNetworkSettingsCommand = de_DeleteNetworkSettingsCommand;
|
|
1795
|
+
const de_DeleteNetworkSettingsCommandError = async (output, context) => {
|
|
1800
1796
|
const parsedOutput = {
|
|
1801
1797
|
...output,
|
|
1802
1798
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1805,19 +1801,19 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
1805
1801
|
switch (errorCode) {
|
|
1806
1802
|
case "AccessDeniedException":
|
|
1807
1803
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1808
|
-
throw await
|
|
1804
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1809
1805
|
case "ConflictException":
|
|
1810
1806
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1811
|
-
throw await
|
|
1807
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1812
1808
|
case "InternalServerException":
|
|
1813
1809
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1814
|
-
throw await
|
|
1810
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1815
1811
|
case "ThrottlingException":
|
|
1816
1812
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1817
|
-
throw await
|
|
1813
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1818
1814
|
case "ValidationException":
|
|
1819
1815
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1820
|
-
throw await
|
|
1816
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1821
1817
|
default:
|
|
1822
1818
|
const parsedBody = parsedOutput.body;
|
|
1823
1819
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1828,9 +1824,9 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
1828
1824
|
});
|
|
1829
1825
|
}
|
|
1830
1826
|
};
|
|
1831
|
-
const
|
|
1827
|
+
const de_DeletePortalCommand = async (output, context) => {
|
|
1832
1828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1833
|
-
return
|
|
1829
|
+
return de_DeletePortalCommandError(output, context);
|
|
1834
1830
|
}
|
|
1835
1831
|
const contents = map({
|
|
1836
1832
|
$metadata: deserializeMetadata(output),
|
|
@@ -1838,8 +1834,8 @@ const deserializeAws_restJson1DeletePortalCommand = async (output, context) => {
|
|
|
1838
1834
|
await collectBody(output.body, context);
|
|
1839
1835
|
return contents;
|
|
1840
1836
|
};
|
|
1841
|
-
exports.
|
|
1842
|
-
const
|
|
1837
|
+
exports.de_DeletePortalCommand = de_DeletePortalCommand;
|
|
1838
|
+
const de_DeletePortalCommandError = async (output, context) => {
|
|
1843
1839
|
const parsedOutput = {
|
|
1844
1840
|
...output,
|
|
1845
1841
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1848,19 +1844,19 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
1848
1844
|
switch (errorCode) {
|
|
1849
1845
|
case "AccessDeniedException":
|
|
1850
1846
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1851
|
-
throw await
|
|
1847
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1852
1848
|
case "ConflictException":
|
|
1853
1849
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1854
|
-
throw await
|
|
1850
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1855
1851
|
case "InternalServerException":
|
|
1856
1852
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1857
|
-
throw await
|
|
1853
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1858
1854
|
case "ThrottlingException":
|
|
1859
1855
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1860
|
-
throw await
|
|
1856
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1861
1857
|
case "ValidationException":
|
|
1862
1858
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1863
|
-
throw await
|
|
1859
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1864
1860
|
default:
|
|
1865
1861
|
const parsedBody = parsedOutput.body;
|
|
1866
1862
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1871,9 +1867,9 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
1871
1867
|
});
|
|
1872
1868
|
}
|
|
1873
1869
|
};
|
|
1874
|
-
const
|
|
1870
|
+
const de_DeleteTrustStoreCommand = async (output, context) => {
|
|
1875
1871
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1876
|
-
return
|
|
1872
|
+
return de_DeleteTrustStoreCommandError(output, context);
|
|
1877
1873
|
}
|
|
1878
1874
|
const contents = map({
|
|
1879
1875
|
$metadata: deserializeMetadata(output),
|
|
@@ -1881,8 +1877,8 @@ const deserializeAws_restJson1DeleteTrustStoreCommand = async (output, context)
|
|
|
1881
1877
|
await collectBody(output.body, context);
|
|
1882
1878
|
return contents;
|
|
1883
1879
|
};
|
|
1884
|
-
exports.
|
|
1885
|
-
const
|
|
1880
|
+
exports.de_DeleteTrustStoreCommand = de_DeleteTrustStoreCommand;
|
|
1881
|
+
const de_DeleteTrustStoreCommandError = async (output, context) => {
|
|
1886
1882
|
const parsedOutput = {
|
|
1887
1883
|
...output,
|
|
1888
1884
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1891,19 +1887,19 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
1891
1887
|
switch (errorCode) {
|
|
1892
1888
|
case "AccessDeniedException":
|
|
1893
1889
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1894
|
-
throw await
|
|
1890
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1895
1891
|
case "ConflictException":
|
|
1896
1892
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1897
|
-
throw await
|
|
1893
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1898
1894
|
case "InternalServerException":
|
|
1899
1895
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1900
|
-
throw await
|
|
1896
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1901
1897
|
case "ThrottlingException":
|
|
1902
1898
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1903
|
-
throw await
|
|
1899
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1904
1900
|
case "ValidationException":
|
|
1905
1901
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1906
|
-
throw await
|
|
1902
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1907
1903
|
default:
|
|
1908
1904
|
const parsedBody = parsedOutput.body;
|
|
1909
1905
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1914,9 +1910,9 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
1914
1910
|
});
|
|
1915
1911
|
}
|
|
1916
1912
|
};
|
|
1917
|
-
const
|
|
1913
|
+
const de_DeleteUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
1918
1914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1919
|
-
return
|
|
1915
|
+
return de_DeleteUserAccessLoggingSettingsCommandError(output, context);
|
|
1920
1916
|
}
|
|
1921
1917
|
const contents = map({
|
|
1922
1918
|
$metadata: deserializeMetadata(output),
|
|
@@ -1924,8 +1920,8 @@ const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = async (ou
|
|
|
1924
1920
|
await collectBody(output.body, context);
|
|
1925
1921
|
return contents;
|
|
1926
1922
|
};
|
|
1927
|
-
exports.
|
|
1928
|
-
const
|
|
1923
|
+
exports.de_DeleteUserAccessLoggingSettingsCommand = de_DeleteUserAccessLoggingSettingsCommand;
|
|
1924
|
+
const de_DeleteUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
1929
1925
|
const parsedOutput = {
|
|
1930
1926
|
...output,
|
|
1931
1927
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1934,19 +1930,19 @@ const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommandError = asyn
|
|
|
1934
1930
|
switch (errorCode) {
|
|
1935
1931
|
case "AccessDeniedException":
|
|
1936
1932
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1937
|
-
throw await
|
|
1933
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1938
1934
|
case "ConflictException":
|
|
1939
1935
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1940
|
-
throw await
|
|
1936
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1941
1937
|
case "InternalServerException":
|
|
1942
1938
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1943
|
-
throw await
|
|
1939
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1944
1940
|
case "ThrottlingException":
|
|
1945
1941
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1946
|
-
throw await
|
|
1942
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1947
1943
|
case "ValidationException":
|
|
1948
1944
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1949
|
-
throw await
|
|
1945
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1950
1946
|
default:
|
|
1951
1947
|
const parsedBody = parsedOutput.body;
|
|
1952
1948
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1957,9 +1953,9 @@ const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommandError = asyn
|
|
|
1957
1953
|
});
|
|
1958
1954
|
}
|
|
1959
1955
|
};
|
|
1960
|
-
const
|
|
1956
|
+
const de_DeleteUserSettingsCommand = async (output, context) => {
|
|
1961
1957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1962
|
-
return
|
|
1958
|
+
return de_DeleteUserSettingsCommandError(output, context);
|
|
1963
1959
|
}
|
|
1964
1960
|
const contents = map({
|
|
1965
1961
|
$metadata: deserializeMetadata(output),
|
|
@@ -1967,8 +1963,8 @@ const deserializeAws_restJson1DeleteUserSettingsCommand = async (output, context
|
|
|
1967
1963
|
await collectBody(output.body, context);
|
|
1968
1964
|
return contents;
|
|
1969
1965
|
};
|
|
1970
|
-
exports.
|
|
1971
|
-
const
|
|
1966
|
+
exports.de_DeleteUserSettingsCommand = de_DeleteUserSettingsCommand;
|
|
1967
|
+
const de_DeleteUserSettingsCommandError = async (output, context) => {
|
|
1972
1968
|
const parsedOutput = {
|
|
1973
1969
|
...output,
|
|
1974
1970
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1977,19 +1973,19 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
1977
1973
|
switch (errorCode) {
|
|
1978
1974
|
case "AccessDeniedException":
|
|
1979
1975
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1980
|
-
throw await
|
|
1976
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1981
1977
|
case "ConflictException":
|
|
1982
1978
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1983
|
-
throw await
|
|
1979
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1984
1980
|
case "InternalServerException":
|
|
1985
1981
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1986
|
-
throw await
|
|
1982
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1987
1983
|
case "ThrottlingException":
|
|
1988
1984
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1989
|
-
throw await
|
|
1985
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1990
1986
|
case "ValidationException":
|
|
1991
1987
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1992
|
-
throw await
|
|
1988
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1993
1989
|
default:
|
|
1994
1990
|
const parsedBody = parsedOutput.body;
|
|
1995
1991
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2000,9 +1996,9 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
2000
1996
|
});
|
|
2001
1997
|
}
|
|
2002
1998
|
};
|
|
2003
|
-
const
|
|
1999
|
+
const de_DisassociateBrowserSettingsCommand = async (output, context) => {
|
|
2004
2000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2005
|
-
return
|
|
2001
|
+
return de_DisassociateBrowserSettingsCommandError(output, context);
|
|
2006
2002
|
}
|
|
2007
2003
|
const contents = map({
|
|
2008
2004
|
$metadata: deserializeMetadata(output),
|
|
@@ -2010,8 +2006,8 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommand = async (output
|
|
|
2010
2006
|
await collectBody(output.body, context);
|
|
2011
2007
|
return contents;
|
|
2012
2008
|
};
|
|
2013
|
-
exports.
|
|
2014
|
-
const
|
|
2009
|
+
exports.de_DisassociateBrowserSettingsCommand = de_DisassociateBrowserSettingsCommand;
|
|
2010
|
+
const de_DisassociateBrowserSettingsCommandError = async (output, context) => {
|
|
2015
2011
|
const parsedOutput = {
|
|
2016
2012
|
...output,
|
|
2017
2013
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2020,19 +2016,19 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
2020
2016
|
switch (errorCode) {
|
|
2021
2017
|
case "AccessDeniedException":
|
|
2022
2018
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2023
|
-
throw await
|
|
2019
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2024
2020
|
case "InternalServerException":
|
|
2025
2021
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2026
|
-
throw await
|
|
2022
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2027
2023
|
case "ResourceNotFoundException":
|
|
2028
2024
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2029
|
-
throw await
|
|
2025
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2030
2026
|
case "ThrottlingException":
|
|
2031
2027
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2032
|
-
throw await
|
|
2028
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2033
2029
|
case "ValidationException":
|
|
2034
2030
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2035
|
-
throw await
|
|
2031
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2036
2032
|
default:
|
|
2037
2033
|
const parsedBody = parsedOutput.body;
|
|
2038
2034
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2043,9 +2039,9 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
2043
2039
|
});
|
|
2044
2040
|
}
|
|
2045
2041
|
};
|
|
2046
|
-
const
|
|
2042
|
+
const de_DisassociateNetworkSettingsCommand = async (output, context) => {
|
|
2047
2043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2048
|
-
return
|
|
2044
|
+
return de_DisassociateNetworkSettingsCommandError(output, context);
|
|
2049
2045
|
}
|
|
2050
2046
|
const contents = map({
|
|
2051
2047
|
$metadata: deserializeMetadata(output),
|
|
@@ -2053,8 +2049,8 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommand = async (output
|
|
|
2053
2049
|
await collectBody(output.body, context);
|
|
2054
2050
|
return contents;
|
|
2055
2051
|
};
|
|
2056
|
-
exports.
|
|
2057
|
-
const
|
|
2052
|
+
exports.de_DisassociateNetworkSettingsCommand = de_DisassociateNetworkSettingsCommand;
|
|
2053
|
+
const de_DisassociateNetworkSettingsCommandError = async (output, context) => {
|
|
2058
2054
|
const parsedOutput = {
|
|
2059
2055
|
...output,
|
|
2060
2056
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2063,19 +2059,19 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2063
2059
|
switch (errorCode) {
|
|
2064
2060
|
case "AccessDeniedException":
|
|
2065
2061
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2066
|
-
throw await
|
|
2062
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2067
2063
|
case "InternalServerException":
|
|
2068
2064
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2069
|
-
throw await
|
|
2065
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2070
2066
|
case "ResourceNotFoundException":
|
|
2071
2067
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2072
|
-
throw await
|
|
2068
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2073
2069
|
case "ThrottlingException":
|
|
2074
2070
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2075
|
-
throw await
|
|
2071
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2076
2072
|
case "ValidationException":
|
|
2077
2073
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2078
|
-
throw await
|
|
2074
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2079
2075
|
default:
|
|
2080
2076
|
const parsedBody = parsedOutput.body;
|
|
2081
2077
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2086,9 +2082,9 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2086
2082
|
});
|
|
2087
2083
|
}
|
|
2088
2084
|
};
|
|
2089
|
-
const
|
|
2085
|
+
const de_DisassociateTrustStoreCommand = async (output, context) => {
|
|
2090
2086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2091
|
-
return
|
|
2087
|
+
return de_DisassociateTrustStoreCommandError(output, context);
|
|
2092
2088
|
}
|
|
2093
2089
|
const contents = map({
|
|
2094
2090
|
$metadata: deserializeMetadata(output),
|
|
@@ -2096,8 +2092,8 @@ const deserializeAws_restJson1DisassociateTrustStoreCommand = async (output, con
|
|
|
2096
2092
|
await collectBody(output.body, context);
|
|
2097
2093
|
return contents;
|
|
2098
2094
|
};
|
|
2099
|
-
exports.
|
|
2100
|
-
const
|
|
2095
|
+
exports.de_DisassociateTrustStoreCommand = de_DisassociateTrustStoreCommand;
|
|
2096
|
+
const de_DisassociateTrustStoreCommandError = async (output, context) => {
|
|
2101
2097
|
const parsedOutput = {
|
|
2102
2098
|
...output,
|
|
2103
2099
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2106,19 +2102,19 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2106
2102
|
switch (errorCode) {
|
|
2107
2103
|
case "AccessDeniedException":
|
|
2108
2104
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2109
|
-
throw await
|
|
2105
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2110
2106
|
case "InternalServerException":
|
|
2111
2107
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2112
|
-
throw await
|
|
2108
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2113
2109
|
case "ResourceNotFoundException":
|
|
2114
2110
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2115
|
-
throw await
|
|
2111
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2116
2112
|
case "ThrottlingException":
|
|
2117
2113
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2118
|
-
throw await
|
|
2114
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2119
2115
|
case "ValidationException":
|
|
2120
2116
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2121
|
-
throw await
|
|
2117
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2122
2118
|
default:
|
|
2123
2119
|
const parsedBody = parsedOutput.body;
|
|
2124
2120
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2129,9 +2125,9 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2129
2125
|
});
|
|
2130
2126
|
}
|
|
2131
2127
|
};
|
|
2132
|
-
const
|
|
2128
|
+
const de_DisassociateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
2133
2129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2134
|
-
return
|
|
2130
|
+
return de_DisassociateUserAccessLoggingSettingsCommandError(output, context);
|
|
2135
2131
|
}
|
|
2136
2132
|
const contents = map({
|
|
2137
2133
|
$metadata: deserializeMetadata(output),
|
|
@@ -2139,8 +2135,8 @@ const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommand = asy
|
|
|
2139
2135
|
await collectBody(output.body, context);
|
|
2140
2136
|
return contents;
|
|
2141
2137
|
};
|
|
2142
|
-
exports.
|
|
2143
|
-
const
|
|
2138
|
+
exports.de_DisassociateUserAccessLoggingSettingsCommand = de_DisassociateUserAccessLoggingSettingsCommand;
|
|
2139
|
+
const de_DisassociateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
2144
2140
|
const parsedOutput = {
|
|
2145
2141
|
...output,
|
|
2146
2142
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2149,19 +2145,19 @@ const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommandError
|
|
|
2149
2145
|
switch (errorCode) {
|
|
2150
2146
|
case "AccessDeniedException":
|
|
2151
2147
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2152
|
-
throw await
|
|
2148
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2153
2149
|
case "InternalServerException":
|
|
2154
2150
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2155
|
-
throw await
|
|
2151
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2156
2152
|
case "ResourceNotFoundException":
|
|
2157
2153
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2158
|
-
throw await
|
|
2154
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2159
2155
|
case "ThrottlingException":
|
|
2160
2156
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2161
|
-
throw await
|
|
2157
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2162
2158
|
case "ValidationException":
|
|
2163
2159
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2164
|
-
throw await
|
|
2160
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2165
2161
|
default:
|
|
2166
2162
|
const parsedBody = parsedOutput.body;
|
|
2167
2163
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2172,9 +2168,9 @@ const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommandError
|
|
|
2172
2168
|
});
|
|
2173
2169
|
}
|
|
2174
2170
|
};
|
|
2175
|
-
const
|
|
2171
|
+
const de_DisassociateUserSettingsCommand = async (output, context) => {
|
|
2176
2172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2177
|
-
return
|
|
2173
|
+
return de_DisassociateUserSettingsCommandError(output, context);
|
|
2178
2174
|
}
|
|
2179
2175
|
const contents = map({
|
|
2180
2176
|
$metadata: deserializeMetadata(output),
|
|
@@ -2182,8 +2178,8 @@ const deserializeAws_restJson1DisassociateUserSettingsCommand = async (output, c
|
|
|
2182
2178
|
await collectBody(output.body, context);
|
|
2183
2179
|
return contents;
|
|
2184
2180
|
};
|
|
2185
|
-
exports.
|
|
2186
|
-
const
|
|
2181
|
+
exports.de_DisassociateUserSettingsCommand = de_DisassociateUserSettingsCommand;
|
|
2182
|
+
const de_DisassociateUserSettingsCommandError = async (output, context) => {
|
|
2187
2183
|
const parsedOutput = {
|
|
2188
2184
|
...output,
|
|
2189
2185
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2192,19 +2188,19 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2192
2188
|
switch (errorCode) {
|
|
2193
2189
|
case "AccessDeniedException":
|
|
2194
2190
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2195
|
-
throw await
|
|
2191
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2196
2192
|
case "InternalServerException":
|
|
2197
2193
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2198
|
-
throw await
|
|
2194
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2199
2195
|
case "ResourceNotFoundException":
|
|
2200
2196
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2201
|
-
throw await
|
|
2197
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2202
2198
|
case "ThrottlingException":
|
|
2203
2199
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2204
|
-
throw await
|
|
2200
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2205
2201
|
case "ValidationException":
|
|
2206
2202
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2207
|
-
throw await
|
|
2203
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2208
2204
|
default:
|
|
2209
2205
|
const parsedBody = parsedOutput.body;
|
|
2210
2206
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2215,21 +2211,21 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2215
2211
|
});
|
|
2216
2212
|
}
|
|
2217
2213
|
};
|
|
2218
|
-
const
|
|
2214
|
+
const de_GetBrowserSettingsCommand = async (output, context) => {
|
|
2219
2215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2220
|
-
return
|
|
2216
|
+
return de_GetBrowserSettingsCommandError(output, context);
|
|
2221
2217
|
}
|
|
2222
2218
|
const contents = map({
|
|
2223
2219
|
$metadata: deserializeMetadata(output),
|
|
2224
2220
|
});
|
|
2225
2221
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2226
2222
|
if (data.browserSettings != null) {
|
|
2227
|
-
contents.browserSettings =
|
|
2223
|
+
contents.browserSettings = de_BrowserSettings(data.browserSettings, context);
|
|
2228
2224
|
}
|
|
2229
2225
|
return contents;
|
|
2230
2226
|
};
|
|
2231
|
-
exports.
|
|
2232
|
-
const
|
|
2227
|
+
exports.de_GetBrowserSettingsCommand = de_GetBrowserSettingsCommand;
|
|
2228
|
+
const de_GetBrowserSettingsCommandError = async (output, context) => {
|
|
2233
2229
|
const parsedOutput = {
|
|
2234
2230
|
...output,
|
|
2235
2231
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2238,19 +2234,19 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2238
2234
|
switch (errorCode) {
|
|
2239
2235
|
case "AccessDeniedException":
|
|
2240
2236
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2241
|
-
throw await
|
|
2237
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2242
2238
|
case "InternalServerException":
|
|
2243
2239
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2244
|
-
throw await
|
|
2240
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2245
2241
|
case "ResourceNotFoundException":
|
|
2246
2242
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2247
|
-
throw await
|
|
2243
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2248
2244
|
case "ThrottlingException":
|
|
2249
2245
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2250
|
-
throw await
|
|
2246
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2251
2247
|
case "ValidationException":
|
|
2252
2248
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2253
|
-
throw await
|
|
2249
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2254
2250
|
default:
|
|
2255
2251
|
const parsedBody = parsedOutput.body;
|
|
2256
2252
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2261,21 +2257,21 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2261
2257
|
});
|
|
2262
2258
|
}
|
|
2263
2259
|
};
|
|
2264
|
-
const
|
|
2260
|
+
const de_GetIdentityProviderCommand = async (output, context) => {
|
|
2265
2261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2266
|
-
return
|
|
2262
|
+
return de_GetIdentityProviderCommandError(output, context);
|
|
2267
2263
|
}
|
|
2268
2264
|
const contents = map({
|
|
2269
2265
|
$metadata: deserializeMetadata(output),
|
|
2270
2266
|
});
|
|
2271
2267
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2272
2268
|
if (data.identityProvider != null) {
|
|
2273
|
-
contents.identityProvider =
|
|
2269
|
+
contents.identityProvider = de_IdentityProvider(data.identityProvider, context);
|
|
2274
2270
|
}
|
|
2275
2271
|
return contents;
|
|
2276
2272
|
};
|
|
2277
|
-
exports.
|
|
2278
|
-
const
|
|
2273
|
+
exports.de_GetIdentityProviderCommand = de_GetIdentityProviderCommand;
|
|
2274
|
+
const de_GetIdentityProviderCommandError = async (output, context) => {
|
|
2279
2275
|
const parsedOutput = {
|
|
2280
2276
|
...output,
|
|
2281
2277
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2284,19 +2280,19 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2284
2280
|
switch (errorCode) {
|
|
2285
2281
|
case "AccessDeniedException":
|
|
2286
2282
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2287
|
-
throw await
|
|
2283
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2288
2284
|
case "InternalServerException":
|
|
2289
2285
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2290
|
-
throw await
|
|
2286
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2291
2287
|
case "ResourceNotFoundException":
|
|
2292
2288
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2293
|
-
throw await
|
|
2289
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2294
2290
|
case "ThrottlingException":
|
|
2295
2291
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2296
|
-
throw await
|
|
2292
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2297
2293
|
case "ValidationException":
|
|
2298
2294
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2299
|
-
throw await
|
|
2295
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2300
2296
|
default:
|
|
2301
2297
|
const parsedBody = parsedOutput.body;
|
|
2302
2298
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2307,21 +2303,21 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2307
2303
|
});
|
|
2308
2304
|
}
|
|
2309
2305
|
};
|
|
2310
|
-
const
|
|
2306
|
+
const de_GetNetworkSettingsCommand = async (output, context) => {
|
|
2311
2307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2312
|
-
return
|
|
2308
|
+
return de_GetNetworkSettingsCommandError(output, context);
|
|
2313
2309
|
}
|
|
2314
2310
|
const contents = map({
|
|
2315
2311
|
$metadata: deserializeMetadata(output),
|
|
2316
2312
|
});
|
|
2317
2313
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2318
2314
|
if (data.networkSettings != null) {
|
|
2319
|
-
contents.networkSettings =
|
|
2315
|
+
contents.networkSettings = de_NetworkSettings(data.networkSettings, context);
|
|
2320
2316
|
}
|
|
2321
2317
|
return contents;
|
|
2322
2318
|
};
|
|
2323
|
-
exports.
|
|
2324
|
-
const
|
|
2319
|
+
exports.de_GetNetworkSettingsCommand = de_GetNetworkSettingsCommand;
|
|
2320
|
+
const de_GetNetworkSettingsCommandError = async (output, context) => {
|
|
2325
2321
|
const parsedOutput = {
|
|
2326
2322
|
...output,
|
|
2327
2323
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2330,19 +2326,19 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2330
2326
|
switch (errorCode) {
|
|
2331
2327
|
case "AccessDeniedException":
|
|
2332
2328
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2333
|
-
throw await
|
|
2329
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2334
2330
|
case "InternalServerException":
|
|
2335
2331
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2336
|
-
throw await
|
|
2332
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2337
2333
|
case "ResourceNotFoundException":
|
|
2338
2334
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2339
|
-
throw await
|
|
2335
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2340
2336
|
case "ThrottlingException":
|
|
2341
2337
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2342
|
-
throw await
|
|
2338
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2343
2339
|
case "ValidationException":
|
|
2344
2340
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2345
|
-
throw await
|
|
2341
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2346
2342
|
default:
|
|
2347
2343
|
const parsedBody = parsedOutput.body;
|
|
2348
2344
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2353,21 +2349,21 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2353
2349
|
});
|
|
2354
2350
|
}
|
|
2355
2351
|
};
|
|
2356
|
-
const
|
|
2352
|
+
const de_GetPortalCommand = async (output, context) => {
|
|
2357
2353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2358
|
-
return
|
|
2354
|
+
return de_GetPortalCommandError(output, context);
|
|
2359
2355
|
}
|
|
2360
2356
|
const contents = map({
|
|
2361
2357
|
$metadata: deserializeMetadata(output),
|
|
2362
2358
|
});
|
|
2363
2359
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2364
2360
|
if (data.portal != null) {
|
|
2365
|
-
contents.portal =
|
|
2361
|
+
contents.portal = de_Portal(data.portal, context);
|
|
2366
2362
|
}
|
|
2367
2363
|
return contents;
|
|
2368
2364
|
};
|
|
2369
|
-
exports.
|
|
2370
|
-
const
|
|
2365
|
+
exports.de_GetPortalCommand = de_GetPortalCommand;
|
|
2366
|
+
const de_GetPortalCommandError = async (output, context) => {
|
|
2371
2367
|
const parsedOutput = {
|
|
2372
2368
|
...output,
|
|
2373
2369
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2376,19 +2372,19 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2376
2372
|
switch (errorCode) {
|
|
2377
2373
|
case "AccessDeniedException":
|
|
2378
2374
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2379
|
-
throw await
|
|
2375
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2380
2376
|
case "InternalServerException":
|
|
2381
2377
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2382
|
-
throw await
|
|
2378
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2383
2379
|
case "ResourceNotFoundException":
|
|
2384
2380
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2385
|
-
throw await
|
|
2381
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2386
2382
|
case "ThrottlingException":
|
|
2387
2383
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2388
|
-
throw await
|
|
2384
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2389
2385
|
case "ValidationException":
|
|
2390
2386
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2391
|
-
throw await
|
|
2387
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2392
2388
|
default:
|
|
2393
2389
|
const parsedBody = parsedOutput.body;
|
|
2394
2390
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2399,9 +2395,9 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2399
2395
|
});
|
|
2400
2396
|
}
|
|
2401
2397
|
};
|
|
2402
|
-
const
|
|
2398
|
+
const de_GetPortalServiceProviderMetadataCommand = async (output, context) => {
|
|
2403
2399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2404
|
-
return
|
|
2400
|
+
return de_GetPortalServiceProviderMetadataCommandError(output, context);
|
|
2405
2401
|
}
|
|
2406
2402
|
const contents = map({
|
|
2407
2403
|
$metadata: deserializeMetadata(output),
|
|
@@ -2415,8 +2411,8 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommand = async (o
|
|
|
2415
2411
|
}
|
|
2416
2412
|
return contents;
|
|
2417
2413
|
};
|
|
2418
|
-
exports.
|
|
2419
|
-
const
|
|
2414
|
+
exports.de_GetPortalServiceProviderMetadataCommand = de_GetPortalServiceProviderMetadataCommand;
|
|
2415
|
+
const de_GetPortalServiceProviderMetadataCommandError = async (output, context) => {
|
|
2420
2416
|
const parsedOutput = {
|
|
2421
2417
|
...output,
|
|
2422
2418
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2425,19 +2421,19 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2425
2421
|
switch (errorCode) {
|
|
2426
2422
|
case "AccessDeniedException":
|
|
2427
2423
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2428
|
-
throw await
|
|
2424
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2429
2425
|
case "InternalServerException":
|
|
2430
2426
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2431
|
-
throw await
|
|
2427
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2432
2428
|
case "ResourceNotFoundException":
|
|
2433
2429
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2434
|
-
throw await
|
|
2430
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2435
2431
|
case "ThrottlingException":
|
|
2436
2432
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2437
|
-
throw await
|
|
2433
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2438
2434
|
case "ValidationException":
|
|
2439
2435
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2440
|
-
throw await
|
|
2436
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2441
2437
|
default:
|
|
2442
2438
|
const parsedBody = parsedOutput.body;
|
|
2443
2439
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2448,21 +2444,21 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2448
2444
|
});
|
|
2449
2445
|
}
|
|
2450
2446
|
};
|
|
2451
|
-
const
|
|
2447
|
+
const de_GetTrustStoreCommand = async (output, context) => {
|
|
2452
2448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2453
|
-
return
|
|
2449
|
+
return de_GetTrustStoreCommandError(output, context);
|
|
2454
2450
|
}
|
|
2455
2451
|
const contents = map({
|
|
2456
2452
|
$metadata: deserializeMetadata(output),
|
|
2457
2453
|
});
|
|
2458
2454
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2459
2455
|
if (data.trustStore != null) {
|
|
2460
|
-
contents.trustStore =
|
|
2456
|
+
contents.trustStore = de_TrustStore(data.trustStore, context);
|
|
2461
2457
|
}
|
|
2462
2458
|
return contents;
|
|
2463
2459
|
};
|
|
2464
|
-
exports.
|
|
2465
|
-
const
|
|
2460
|
+
exports.de_GetTrustStoreCommand = de_GetTrustStoreCommand;
|
|
2461
|
+
const de_GetTrustStoreCommandError = async (output, context) => {
|
|
2466
2462
|
const parsedOutput = {
|
|
2467
2463
|
...output,
|
|
2468
2464
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2471,19 +2467,19 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2471
2467
|
switch (errorCode) {
|
|
2472
2468
|
case "AccessDeniedException":
|
|
2473
2469
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2474
|
-
throw await
|
|
2470
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2475
2471
|
case "InternalServerException":
|
|
2476
2472
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2477
|
-
throw await
|
|
2473
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2478
2474
|
case "ResourceNotFoundException":
|
|
2479
2475
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2480
|
-
throw await
|
|
2476
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2481
2477
|
case "ThrottlingException":
|
|
2482
2478
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2483
|
-
throw await
|
|
2479
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2484
2480
|
case "ValidationException":
|
|
2485
2481
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2486
|
-
throw await
|
|
2482
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2487
2483
|
default:
|
|
2488
2484
|
const parsedBody = parsedOutput.body;
|
|
2489
2485
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2494,24 +2490,24 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2494
2490
|
});
|
|
2495
2491
|
}
|
|
2496
2492
|
};
|
|
2497
|
-
const
|
|
2493
|
+
const de_GetTrustStoreCertificateCommand = async (output, context) => {
|
|
2498
2494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2499
|
-
return
|
|
2495
|
+
return de_GetTrustStoreCertificateCommandError(output, context);
|
|
2500
2496
|
}
|
|
2501
2497
|
const contents = map({
|
|
2502
2498
|
$metadata: deserializeMetadata(output),
|
|
2503
2499
|
});
|
|
2504
2500
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2505
2501
|
if (data.certificate != null) {
|
|
2506
|
-
contents.certificate =
|
|
2502
|
+
contents.certificate = de_Certificate(data.certificate, context);
|
|
2507
2503
|
}
|
|
2508
2504
|
if (data.trustStoreArn != null) {
|
|
2509
2505
|
contents.trustStoreArn = (0, smithy_client_1.expectString)(data.trustStoreArn);
|
|
2510
2506
|
}
|
|
2511
2507
|
return contents;
|
|
2512
2508
|
};
|
|
2513
|
-
exports.
|
|
2514
|
-
const
|
|
2509
|
+
exports.de_GetTrustStoreCertificateCommand = de_GetTrustStoreCertificateCommand;
|
|
2510
|
+
const de_GetTrustStoreCertificateCommandError = async (output, context) => {
|
|
2515
2511
|
const parsedOutput = {
|
|
2516
2512
|
...output,
|
|
2517
2513
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2520,19 +2516,19 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2520
2516
|
switch (errorCode) {
|
|
2521
2517
|
case "AccessDeniedException":
|
|
2522
2518
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2523
|
-
throw await
|
|
2519
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2524
2520
|
case "InternalServerException":
|
|
2525
2521
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2526
|
-
throw await
|
|
2522
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2527
2523
|
case "ResourceNotFoundException":
|
|
2528
2524
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2529
|
-
throw await
|
|
2525
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2530
2526
|
case "ThrottlingException":
|
|
2531
2527
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2532
|
-
throw await
|
|
2528
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2533
2529
|
case "ValidationException":
|
|
2534
2530
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2535
|
-
throw await
|
|
2531
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2536
2532
|
default:
|
|
2537
2533
|
const parsedBody = parsedOutput.body;
|
|
2538
2534
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2543,21 +2539,21 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2543
2539
|
});
|
|
2544
2540
|
}
|
|
2545
2541
|
};
|
|
2546
|
-
const
|
|
2542
|
+
const de_GetUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
2547
2543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2548
|
-
return
|
|
2544
|
+
return de_GetUserAccessLoggingSettingsCommandError(output, context);
|
|
2549
2545
|
}
|
|
2550
2546
|
const contents = map({
|
|
2551
2547
|
$metadata: deserializeMetadata(output),
|
|
2552
2548
|
});
|
|
2553
2549
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2554
2550
|
if (data.userAccessLoggingSettings != null) {
|
|
2555
|
-
contents.userAccessLoggingSettings =
|
|
2551
|
+
contents.userAccessLoggingSettings = de_UserAccessLoggingSettings(data.userAccessLoggingSettings, context);
|
|
2556
2552
|
}
|
|
2557
2553
|
return contents;
|
|
2558
2554
|
};
|
|
2559
|
-
exports.
|
|
2560
|
-
const
|
|
2555
|
+
exports.de_GetUserAccessLoggingSettingsCommand = de_GetUserAccessLoggingSettingsCommand;
|
|
2556
|
+
const de_GetUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
2561
2557
|
const parsedOutput = {
|
|
2562
2558
|
...output,
|
|
2563
2559
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2566,19 +2562,19 @@ const deserializeAws_restJson1GetUserAccessLoggingSettingsCommandError = async (
|
|
|
2566
2562
|
switch (errorCode) {
|
|
2567
2563
|
case "AccessDeniedException":
|
|
2568
2564
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2569
|
-
throw await
|
|
2565
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2570
2566
|
case "InternalServerException":
|
|
2571
2567
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2572
|
-
throw await
|
|
2568
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2573
2569
|
case "ResourceNotFoundException":
|
|
2574
2570
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2575
|
-
throw await
|
|
2571
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2576
2572
|
case "ThrottlingException":
|
|
2577
2573
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2578
|
-
throw await
|
|
2574
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2579
2575
|
case "ValidationException":
|
|
2580
2576
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2581
|
-
throw await
|
|
2577
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2582
2578
|
default:
|
|
2583
2579
|
const parsedBody = parsedOutput.body;
|
|
2584
2580
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2589,21 +2585,21 @@ const deserializeAws_restJson1GetUserAccessLoggingSettingsCommandError = async (
|
|
|
2589
2585
|
});
|
|
2590
2586
|
}
|
|
2591
2587
|
};
|
|
2592
|
-
const
|
|
2588
|
+
const de_GetUserSettingsCommand = async (output, context) => {
|
|
2593
2589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2594
|
-
return
|
|
2590
|
+
return de_GetUserSettingsCommandError(output, context);
|
|
2595
2591
|
}
|
|
2596
2592
|
const contents = map({
|
|
2597
2593
|
$metadata: deserializeMetadata(output),
|
|
2598
2594
|
});
|
|
2599
2595
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2600
2596
|
if (data.userSettings != null) {
|
|
2601
|
-
contents.userSettings =
|
|
2597
|
+
contents.userSettings = de_UserSettings(data.userSettings, context);
|
|
2602
2598
|
}
|
|
2603
2599
|
return contents;
|
|
2604
2600
|
};
|
|
2605
|
-
exports.
|
|
2606
|
-
const
|
|
2601
|
+
exports.de_GetUserSettingsCommand = de_GetUserSettingsCommand;
|
|
2602
|
+
const de_GetUserSettingsCommandError = async (output, context) => {
|
|
2607
2603
|
const parsedOutput = {
|
|
2608
2604
|
...output,
|
|
2609
2605
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2612,19 +2608,19 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2612
2608
|
switch (errorCode) {
|
|
2613
2609
|
case "AccessDeniedException":
|
|
2614
2610
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2615
|
-
throw await
|
|
2611
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2616
2612
|
case "InternalServerException":
|
|
2617
2613
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2618
|
-
throw await
|
|
2614
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2619
2615
|
case "ResourceNotFoundException":
|
|
2620
2616
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2621
|
-
throw await
|
|
2617
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2622
2618
|
case "ThrottlingException":
|
|
2623
2619
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2624
|
-
throw await
|
|
2620
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2625
2621
|
case "ValidationException":
|
|
2626
2622
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2627
|
-
throw await
|
|
2623
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2628
2624
|
default:
|
|
2629
2625
|
const parsedBody = parsedOutput.body;
|
|
2630
2626
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2635,24 +2631,24 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2635
2631
|
});
|
|
2636
2632
|
}
|
|
2637
2633
|
};
|
|
2638
|
-
const
|
|
2634
|
+
const de_ListBrowserSettingsCommand = async (output, context) => {
|
|
2639
2635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2640
|
-
return
|
|
2636
|
+
return de_ListBrowserSettingsCommandError(output, context);
|
|
2641
2637
|
}
|
|
2642
2638
|
const contents = map({
|
|
2643
2639
|
$metadata: deserializeMetadata(output),
|
|
2644
2640
|
});
|
|
2645
2641
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2646
2642
|
if (data.browserSettings != null) {
|
|
2647
|
-
contents.browserSettings =
|
|
2643
|
+
contents.browserSettings = de_BrowserSettingsList(data.browserSettings, context);
|
|
2648
2644
|
}
|
|
2649
2645
|
if (data.nextToken != null) {
|
|
2650
2646
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2651
2647
|
}
|
|
2652
2648
|
return contents;
|
|
2653
2649
|
};
|
|
2654
|
-
exports.
|
|
2655
|
-
const
|
|
2650
|
+
exports.de_ListBrowserSettingsCommand = de_ListBrowserSettingsCommand;
|
|
2651
|
+
const de_ListBrowserSettingsCommandError = async (output, context) => {
|
|
2656
2652
|
const parsedOutput = {
|
|
2657
2653
|
...output,
|
|
2658
2654
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2661,16 +2657,16 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2661
2657
|
switch (errorCode) {
|
|
2662
2658
|
case "AccessDeniedException":
|
|
2663
2659
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2664
|
-
throw await
|
|
2660
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2665
2661
|
case "InternalServerException":
|
|
2666
2662
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2667
|
-
throw await
|
|
2663
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2668
2664
|
case "ThrottlingException":
|
|
2669
2665
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2670
|
-
throw await
|
|
2666
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2671
2667
|
case "ValidationException":
|
|
2672
2668
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2673
|
-
throw await
|
|
2669
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2674
2670
|
default:
|
|
2675
2671
|
const parsedBody = parsedOutput.body;
|
|
2676
2672
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2681,24 +2677,24 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2681
2677
|
});
|
|
2682
2678
|
}
|
|
2683
2679
|
};
|
|
2684
|
-
const
|
|
2680
|
+
const de_ListIdentityProvidersCommand = async (output, context) => {
|
|
2685
2681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2686
|
-
return
|
|
2682
|
+
return de_ListIdentityProvidersCommandError(output, context);
|
|
2687
2683
|
}
|
|
2688
2684
|
const contents = map({
|
|
2689
2685
|
$metadata: deserializeMetadata(output),
|
|
2690
2686
|
});
|
|
2691
2687
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2692
2688
|
if (data.identityProviders != null) {
|
|
2693
|
-
contents.identityProviders =
|
|
2689
|
+
contents.identityProviders = de_IdentityProviderList(data.identityProviders, context);
|
|
2694
2690
|
}
|
|
2695
2691
|
if (data.nextToken != null) {
|
|
2696
2692
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2697
2693
|
}
|
|
2698
2694
|
return contents;
|
|
2699
2695
|
};
|
|
2700
|
-
exports.
|
|
2701
|
-
const
|
|
2696
|
+
exports.de_ListIdentityProvidersCommand = de_ListIdentityProvidersCommand;
|
|
2697
|
+
const de_ListIdentityProvidersCommandError = async (output, context) => {
|
|
2702
2698
|
const parsedOutput = {
|
|
2703
2699
|
...output,
|
|
2704
2700
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2707,16 +2703,16 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2707
2703
|
switch (errorCode) {
|
|
2708
2704
|
case "AccessDeniedException":
|
|
2709
2705
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2710
|
-
throw await
|
|
2706
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2711
2707
|
case "InternalServerException":
|
|
2712
2708
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2713
|
-
throw await
|
|
2709
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2714
2710
|
case "ThrottlingException":
|
|
2715
2711
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2716
|
-
throw await
|
|
2712
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2717
2713
|
case "ValidationException":
|
|
2718
2714
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2719
|
-
throw await
|
|
2715
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2720
2716
|
default:
|
|
2721
2717
|
const parsedBody = parsedOutput.body;
|
|
2722
2718
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2727,24 +2723,24 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2727
2723
|
});
|
|
2728
2724
|
}
|
|
2729
2725
|
};
|
|
2730
|
-
const
|
|
2726
|
+
const de_ListNetworkSettingsCommand = async (output, context) => {
|
|
2731
2727
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2732
|
-
return
|
|
2728
|
+
return de_ListNetworkSettingsCommandError(output, context);
|
|
2733
2729
|
}
|
|
2734
2730
|
const contents = map({
|
|
2735
2731
|
$metadata: deserializeMetadata(output),
|
|
2736
2732
|
});
|
|
2737
2733
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2738
2734
|
if (data.networkSettings != null) {
|
|
2739
|
-
contents.networkSettings =
|
|
2735
|
+
contents.networkSettings = de_NetworkSettingsList(data.networkSettings, context);
|
|
2740
2736
|
}
|
|
2741
2737
|
if (data.nextToken != null) {
|
|
2742
2738
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2743
2739
|
}
|
|
2744
2740
|
return contents;
|
|
2745
2741
|
};
|
|
2746
|
-
exports.
|
|
2747
|
-
const
|
|
2742
|
+
exports.de_ListNetworkSettingsCommand = de_ListNetworkSettingsCommand;
|
|
2743
|
+
const de_ListNetworkSettingsCommandError = async (output, context) => {
|
|
2748
2744
|
const parsedOutput = {
|
|
2749
2745
|
...output,
|
|
2750
2746
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2753,16 +2749,16 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2753
2749
|
switch (errorCode) {
|
|
2754
2750
|
case "AccessDeniedException":
|
|
2755
2751
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2756
|
-
throw await
|
|
2752
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2757
2753
|
case "InternalServerException":
|
|
2758
2754
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2759
|
-
throw await
|
|
2755
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2760
2756
|
case "ThrottlingException":
|
|
2761
2757
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2762
|
-
throw await
|
|
2758
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2763
2759
|
case "ValidationException":
|
|
2764
2760
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2765
|
-
throw await
|
|
2761
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2766
2762
|
default:
|
|
2767
2763
|
const parsedBody = parsedOutput.body;
|
|
2768
2764
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2773,9 +2769,9 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2773
2769
|
});
|
|
2774
2770
|
}
|
|
2775
2771
|
};
|
|
2776
|
-
const
|
|
2772
|
+
const de_ListPortalsCommand = async (output, context) => {
|
|
2777
2773
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2778
|
-
return
|
|
2774
|
+
return de_ListPortalsCommandError(output, context);
|
|
2779
2775
|
}
|
|
2780
2776
|
const contents = map({
|
|
2781
2777
|
$metadata: deserializeMetadata(output),
|
|
@@ -2785,12 +2781,12 @@ const deserializeAws_restJson1ListPortalsCommand = async (output, context) => {
|
|
|
2785
2781
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2786
2782
|
}
|
|
2787
2783
|
if (data.portals != null) {
|
|
2788
|
-
contents.portals =
|
|
2784
|
+
contents.portals = de_PortalList(data.portals, context);
|
|
2789
2785
|
}
|
|
2790
2786
|
return contents;
|
|
2791
2787
|
};
|
|
2792
|
-
exports.
|
|
2793
|
-
const
|
|
2788
|
+
exports.de_ListPortalsCommand = de_ListPortalsCommand;
|
|
2789
|
+
const de_ListPortalsCommandError = async (output, context) => {
|
|
2794
2790
|
const parsedOutput = {
|
|
2795
2791
|
...output,
|
|
2796
2792
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2799,16 +2795,16 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2799
2795
|
switch (errorCode) {
|
|
2800
2796
|
case "AccessDeniedException":
|
|
2801
2797
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2802
|
-
throw await
|
|
2798
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2803
2799
|
case "InternalServerException":
|
|
2804
2800
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2805
|
-
throw await
|
|
2801
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2806
2802
|
case "ThrottlingException":
|
|
2807
2803
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2808
|
-
throw await
|
|
2804
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2809
2805
|
case "ValidationException":
|
|
2810
2806
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2811
|
-
throw await
|
|
2807
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2812
2808
|
default:
|
|
2813
2809
|
const parsedBody = parsedOutput.body;
|
|
2814
2810
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2819,21 +2815,21 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2819
2815
|
});
|
|
2820
2816
|
}
|
|
2821
2817
|
};
|
|
2822
|
-
const
|
|
2818
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2823
2819
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2824
|
-
return
|
|
2820
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2825
2821
|
}
|
|
2826
2822
|
const contents = map({
|
|
2827
2823
|
$metadata: deserializeMetadata(output),
|
|
2828
2824
|
});
|
|
2829
2825
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2830
2826
|
if (data.tags != null) {
|
|
2831
|
-
contents.tags =
|
|
2827
|
+
contents.tags = de_TagList(data.tags, context);
|
|
2832
2828
|
}
|
|
2833
2829
|
return contents;
|
|
2834
2830
|
};
|
|
2835
|
-
exports.
|
|
2836
|
-
const
|
|
2831
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2832
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2837
2833
|
const parsedOutput = {
|
|
2838
2834
|
...output,
|
|
2839
2835
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2842,19 +2838,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2842
2838
|
switch (errorCode) {
|
|
2843
2839
|
case "AccessDeniedException":
|
|
2844
2840
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2845
|
-
throw await
|
|
2841
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2846
2842
|
case "InternalServerException":
|
|
2847
2843
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2848
|
-
throw await
|
|
2844
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2849
2845
|
case "ResourceNotFoundException":
|
|
2850
2846
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2851
|
-
throw await
|
|
2847
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2852
2848
|
case "ThrottlingException":
|
|
2853
2849
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2854
|
-
throw await
|
|
2850
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2855
2851
|
case "ValidationException":
|
|
2856
2852
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2857
|
-
throw await
|
|
2853
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2858
2854
|
default:
|
|
2859
2855
|
const parsedBody = parsedOutput.body;
|
|
2860
2856
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2865,16 +2861,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2865
2861
|
});
|
|
2866
2862
|
}
|
|
2867
2863
|
};
|
|
2868
|
-
const
|
|
2864
|
+
const de_ListTrustStoreCertificatesCommand = async (output, context) => {
|
|
2869
2865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2870
|
-
return
|
|
2866
|
+
return de_ListTrustStoreCertificatesCommandError(output, context);
|
|
2871
2867
|
}
|
|
2872
2868
|
const contents = map({
|
|
2873
2869
|
$metadata: deserializeMetadata(output),
|
|
2874
2870
|
});
|
|
2875
2871
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2876
2872
|
if (data.certificateList != null) {
|
|
2877
|
-
contents.certificateList =
|
|
2873
|
+
contents.certificateList = de_CertificateSummaryList(data.certificateList, context);
|
|
2878
2874
|
}
|
|
2879
2875
|
if (data.nextToken != null) {
|
|
2880
2876
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
@@ -2884,8 +2880,8 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommand = async (output,
|
|
|
2884
2880
|
}
|
|
2885
2881
|
return contents;
|
|
2886
2882
|
};
|
|
2887
|
-
exports.
|
|
2888
|
-
const
|
|
2883
|
+
exports.de_ListTrustStoreCertificatesCommand = de_ListTrustStoreCertificatesCommand;
|
|
2884
|
+
const de_ListTrustStoreCertificatesCommandError = async (output, context) => {
|
|
2889
2885
|
const parsedOutput = {
|
|
2890
2886
|
...output,
|
|
2891
2887
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2894,19 +2890,19 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
2894
2890
|
switch (errorCode) {
|
|
2895
2891
|
case "AccessDeniedException":
|
|
2896
2892
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2897
|
-
throw await
|
|
2893
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2898
2894
|
case "InternalServerException":
|
|
2899
2895
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2900
|
-
throw await
|
|
2896
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2901
2897
|
case "ResourceNotFoundException":
|
|
2902
2898
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2903
|
-
throw await
|
|
2899
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2904
2900
|
case "ThrottlingException":
|
|
2905
2901
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2906
|
-
throw await
|
|
2902
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2907
2903
|
case "ValidationException":
|
|
2908
2904
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2909
|
-
throw await
|
|
2905
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2910
2906
|
default:
|
|
2911
2907
|
const parsedBody = parsedOutput.body;
|
|
2912
2908
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2917,9 +2913,9 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
2917
2913
|
});
|
|
2918
2914
|
}
|
|
2919
2915
|
};
|
|
2920
|
-
const
|
|
2916
|
+
const de_ListTrustStoresCommand = async (output, context) => {
|
|
2921
2917
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2922
|
-
return
|
|
2918
|
+
return de_ListTrustStoresCommandError(output, context);
|
|
2923
2919
|
}
|
|
2924
2920
|
const contents = map({
|
|
2925
2921
|
$metadata: deserializeMetadata(output),
|
|
@@ -2929,12 +2925,12 @@ const deserializeAws_restJson1ListTrustStoresCommand = async (output, context) =
|
|
|
2929
2925
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2930
2926
|
}
|
|
2931
2927
|
if (data.trustStores != null) {
|
|
2932
|
-
contents.trustStores =
|
|
2928
|
+
contents.trustStores = de_TrustStoreSummaryList(data.trustStores, context);
|
|
2933
2929
|
}
|
|
2934
2930
|
return contents;
|
|
2935
2931
|
};
|
|
2936
|
-
exports.
|
|
2937
|
-
const
|
|
2932
|
+
exports.de_ListTrustStoresCommand = de_ListTrustStoresCommand;
|
|
2933
|
+
const de_ListTrustStoresCommandError = async (output, context) => {
|
|
2938
2934
|
const parsedOutput = {
|
|
2939
2935
|
...output,
|
|
2940
2936
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2943,16 +2939,16 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
2943
2939
|
switch (errorCode) {
|
|
2944
2940
|
case "AccessDeniedException":
|
|
2945
2941
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2946
|
-
throw await
|
|
2942
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2947
2943
|
case "InternalServerException":
|
|
2948
2944
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2949
|
-
throw await
|
|
2945
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2950
2946
|
case "ThrottlingException":
|
|
2951
2947
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2952
|
-
throw await
|
|
2948
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2953
2949
|
case "ValidationException":
|
|
2954
2950
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2955
|
-
throw await
|
|
2951
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2956
2952
|
default:
|
|
2957
2953
|
const parsedBody = parsedOutput.body;
|
|
2958
2954
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2963,9 +2959,9 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
2963
2959
|
});
|
|
2964
2960
|
}
|
|
2965
2961
|
};
|
|
2966
|
-
const
|
|
2962
|
+
const de_ListUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
2967
2963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2968
|
-
return
|
|
2964
|
+
return de_ListUserAccessLoggingSettingsCommandError(output, context);
|
|
2969
2965
|
}
|
|
2970
2966
|
const contents = map({
|
|
2971
2967
|
$metadata: deserializeMetadata(output),
|
|
@@ -2975,12 +2971,12 @@ const deserializeAws_restJson1ListUserAccessLoggingSettingsCommand = async (outp
|
|
|
2975
2971
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2976
2972
|
}
|
|
2977
2973
|
if (data.userAccessLoggingSettings != null) {
|
|
2978
|
-
contents.userAccessLoggingSettings =
|
|
2974
|
+
contents.userAccessLoggingSettings = de_UserAccessLoggingSettingsList(data.userAccessLoggingSettings, context);
|
|
2979
2975
|
}
|
|
2980
2976
|
return contents;
|
|
2981
2977
|
};
|
|
2982
|
-
exports.
|
|
2983
|
-
const
|
|
2978
|
+
exports.de_ListUserAccessLoggingSettingsCommand = de_ListUserAccessLoggingSettingsCommand;
|
|
2979
|
+
const de_ListUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
2984
2980
|
const parsedOutput = {
|
|
2985
2981
|
...output,
|
|
2986
2982
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2989,16 +2985,16 @@ const deserializeAws_restJson1ListUserAccessLoggingSettingsCommandError = async
|
|
|
2989
2985
|
switch (errorCode) {
|
|
2990
2986
|
case "AccessDeniedException":
|
|
2991
2987
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2992
|
-
throw await
|
|
2988
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2993
2989
|
case "InternalServerException":
|
|
2994
2990
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2995
|
-
throw await
|
|
2991
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2996
2992
|
case "ThrottlingException":
|
|
2997
2993
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2998
|
-
throw await
|
|
2994
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2999
2995
|
case "ValidationException":
|
|
3000
2996
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3001
|
-
throw await
|
|
2997
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3002
2998
|
default:
|
|
3003
2999
|
const parsedBody = parsedOutput.body;
|
|
3004
3000
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3009,9 +3005,9 @@ const deserializeAws_restJson1ListUserAccessLoggingSettingsCommandError = async
|
|
|
3009
3005
|
});
|
|
3010
3006
|
}
|
|
3011
3007
|
};
|
|
3012
|
-
const
|
|
3008
|
+
const de_ListUserSettingsCommand = async (output, context) => {
|
|
3013
3009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3014
|
-
return
|
|
3010
|
+
return de_ListUserSettingsCommandError(output, context);
|
|
3015
3011
|
}
|
|
3016
3012
|
const contents = map({
|
|
3017
3013
|
$metadata: deserializeMetadata(output),
|
|
@@ -3021,12 +3017,12 @@ const deserializeAws_restJson1ListUserSettingsCommand = async (output, context)
|
|
|
3021
3017
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3022
3018
|
}
|
|
3023
3019
|
if (data.userSettings != null) {
|
|
3024
|
-
contents.userSettings =
|
|
3020
|
+
contents.userSettings = de_UserSettingsList(data.userSettings, context);
|
|
3025
3021
|
}
|
|
3026
3022
|
return contents;
|
|
3027
3023
|
};
|
|
3028
|
-
exports.
|
|
3029
|
-
const
|
|
3024
|
+
exports.de_ListUserSettingsCommand = de_ListUserSettingsCommand;
|
|
3025
|
+
const de_ListUserSettingsCommandError = async (output, context) => {
|
|
3030
3026
|
const parsedOutput = {
|
|
3031
3027
|
...output,
|
|
3032
3028
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3035,16 +3031,16 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
3035
3031
|
switch (errorCode) {
|
|
3036
3032
|
case "AccessDeniedException":
|
|
3037
3033
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3038
|
-
throw await
|
|
3034
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3039
3035
|
case "InternalServerException":
|
|
3040
3036
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3041
|
-
throw await
|
|
3037
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3042
3038
|
case "ThrottlingException":
|
|
3043
3039
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3044
|
-
throw await
|
|
3040
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3045
3041
|
case "ValidationException":
|
|
3046
3042
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3047
|
-
throw await
|
|
3043
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3048
3044
|
default:
|
|
3049
3045
|
const parsedBody = parsedOutput.body;
|
|
3050
3046
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3055,9 +3051,9 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
3055
3051
|
});
|
|
3056
3052
|
}
|
|
3057
3053
|
};
|
|
3058
|
-
const
|
|
3054
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
3059
3055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3060
|
-
return
|
|
3056
|
+
return de_TagResourceCommandError(output, context);
|
|
3061
3057
|
}
|
|
3062
3058
|
const contents = map({
|
|
3063
3059
|
$metadata: deserializeMetadata(output),
|
|
@@ -3065,8 +3061,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
3065
3061
|
await collectBody(output.body, context);
|
|
3066
3062
|
return contents;
|
|
3067
3063
|
};
|
|
3068
|
-
exports.
|
|
3069
|
-
const
|
|
3064
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3065
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
3070
3066
|
const parsedOutput = {
|
|
3071
3067
|
...output,
|
|
3072
3068
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3075,22 +3071,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3075
3071
|
switch (errorCode) {
|
|
3076
3072
|
case "AccessDeniedException":
|
|
3077
3073
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3078
|
-
throw await
|
|
3074
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3079
3075
|
case "InternalServerException":
|
|
3080
3076
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3081
|
-
throw await
|
|
3077
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3082
3078
|
case "ResourceNotFoundException":
|
|
3083
3079
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3084
|
-
throw await
|
|
3080
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3085
3081
|
case "ThrottlingException":
|
|
3086
3082
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3087
|
-
throw await
|
|
3083
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3088
3084
|
case "TooManyTagsException":
|
|
3089
3085
|
case "com.amazonaws.workspacesweb#TooManyTagsException":
|
|
3090
|
-
throw await
|
|
3086
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3091
3087
|
case "ValidationException":
|
|
3092
3088
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3093
|
-
throw await
|
|
3089
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3094
3090
|
default:
|
|
3095
3091
|
const parsedBody = parsedOutput.body;
|
|
3096
3092
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3101,9 +3097,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3101
3097
|
});
|
|
3102
3098
|
}
|
|
3103
3099
|
};
|
|
3104
|
-
const
|
|
3100
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
3105
3101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3106
|
-
return
|
|
3102
|
+
return de_UntagResourceCommandError(output, context);
|
|
3107
3103
|
}
|
|
3108
3104
|
const contents = map({
|
|
3109
3105
|
$metadata: deserializeMetadata(output),
|
|
@@ -3111,8 +3107,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
3111
3107
|
await collectBody(output.body, context);
|
|
3112
3108
|
return contents;
|
|
3113
3109
|
};
|
|
3114
|
-
exports.
|
|
3115
|
-
const
|
|
3110
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3111
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
3116
3112
|
const parsedOutput = {
|
|
3117
3113
|
...output,
|
|
3118
3114
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3121,19 +3117,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3121
3117
|
switch (errorCode) {
|
|
3122
3118
|
case "AccessDeniedException":
|
|
3123
3119
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3124
|
-
throw await
|
|
3120
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3125
3121
|
case "InternalServerException":
|
|
3126
3122
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3127
|
-
throw await
|
|
3123
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3128
3124
|
case "ResourceNotFoundException":
|
|
3129
3125
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3130
|
-
throw await
|
|
3126
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3131
3127
|
case "ThrottlingException":
|
|
3132
3128
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3133
|
-
throw await
|
|
3129
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3134
3130
|
case "ValidationException":
|
|
3135
3131
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3136
|
-
throw await
|
|
3132
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3137
3133
|
default:
|
|
3138
3134
|
const parsedBody = parsedOutput.body;
|
|
3139
3135
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3144,21 +3140,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3144
3140
|
});
|
|
3145
3141
|
}
|
|
3146
3142
|
};
|
|
3147
|
-
const
|
|
3143
|
+
const de_UpdateBrowserSettingsCommand = async (output, context) => {
|
|
3148
3144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3149
|
-
return
|
|
3145
|
+
return de_UpdateBrowserSettingsCommandError(output, context);
|
|
3150
3146
|
}
|
|
3151
3147
|
const contents = map({
|
|
3152
3148
|
$metadata: deserializeMetadata(output),
|
|
3153
3149
|
});
|
|
3154
3150
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3155
3151
|
if (data.browserSettings != null) {
|
|
3156
|
-
contents.browserSettings =
|
|
3152
|
+
contents.browserSettings = de_BrowserSettings(data.browserSettings, context);
|
|
3157
3153
|
}
|
|
3158
3154
|
return contents;
|
|
3159
3155
|
};
|
|
3160
|
-
exports.
|
|
3161
|
-
const
|
|
3156
|
+
exports.de_UpdateBrowserSettingsCommand = de_UpdateBrowserSettingsCommand;
|
|
3157
|
+
const de_UpdateBrowserSettingsCommandError = async (output, context) => {
|
|
3162
3158
|
const parsedOutput = {
|
|
3163
3159
|
...output,
|
|
3164
3160
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3167,19 +3163,19 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3167
3163
|
switch (errorCode) {
|
|
3168
3164
|
case "AccessDeniedException":
|
|
3169
3165
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3170
|
-
throw await
|
|
3166
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3171
3167
|
case "InternalServerException":
|
|
3172
3168
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3173
|
-
throw await
|
|
3169
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3174
3170
|
case "ResourceNotFoundException":
|
|
3175
3171
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3176
|
-
throw await
|
|
3172
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3177
3173
|
case "ThrottlingException":
|
|
3178
3174
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3179
|
-
throw await
|
|
3175
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3180
3176
|
case "ValidationException":
|
|
3181
3177
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3182
|
-
throw await
|
|
3178
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3183
3179
|
default:
|
|
3184
3180
|
const parsedBody = parsedOutput.body;
|
|
3185
3181
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3190,21 +3186,21 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3190
3186
|
});
|
|
3191
3187
|
}
|
|
3192
3188
|
};
|
|
3193
|
-
const
|
|
3189
|
+
const de_UpdateIdentityProviderCommand = async (output, context) => {
|
|
3194
3190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3195
|
-
return
|
|
3191
|
+
return de_UpdateIdentityProviderCommandError(output, context);
|
|
3196
3192
|
}
|
|
3197
3193
|
const contents = map({
|
|
3198
3194
|
$metadata: deserializeMetadata(output),
|
|
3199
3195
|
});
|
|
3200
3196
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3201
3197
|
if (data.identityProvider != null) {
|
|
3202
|
-
contents.identityProvider =
|
|
3198
|
+
contents.identityProvider = de_IdentityProvider(data.identityProvider, context);
|
|
3203
3199
|
}
|
|
3204
3200
|
return contents;
|
|
3205
3201
|
};
|
|
3206
|
-
exports.
|
|
3207
|
-
const
|
|
3202
|
+
exports.de_UpdateIdentityProviderCommand = de_UpdateIdentityProviderCommand;
|
|
3203
|
+
const de_UpdateIdentityProviderCommandError = async (output, context) => {
|
|
3208
3204
|
const parsedOutput = {
|
|
3209
3205
|
...output,
|
|
3210
3206
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3213,19 +3209,19 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3213
3209
|
switch (errorCode) {
|
|
3214
3210
|
case "AccessDeniedException":
|
|
3215
3211
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3216
|
-
throw await
|
|
3212
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3217
3213
|
case "InternalServerException":
|
|
3218
3214
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3219
|
-
throw await
|
|
3215
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3220
3216
|
case "ResourceNotFoundException":
|
|
3221
3217
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3222
|
-
throw await
|
|
3218
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3223
3219
|
case "ThrottlingException":
|
|
3224
3220
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3225
|
-
throw await
|
|
3221
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3226
3222
|
case "ValidationException":
|
|
3227
3223
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3228
|
-
throw await
|
|
3224
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3229
3225
|
default:
|
|
3230
3226
|
const parsedBody = parsedOutput.body;
|
|
3231
3227
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3236,21 +3232,21 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3236
3232
|
});
|
|
3237
3233
|
}
|
|
3238
3234
|
};
|
|
3239
|
-
const
|
|
3235
|
+
const de_UpdateNetworkSettingsCommand = async (output, context) => {
|
|
3240
3236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3241
|
-
return
|
|
3237
|
+
return de_UpdateNetworkSettingsCommandError(output, context);
|
|
3242
3238
|
}
|
|
3243
3239
|
const contents = map({
|
|
3244
3240
|
$metadata: deserializeMetadata(output),
|
|
3245
3241
|
});
|
|
3246
3242
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3247
3243
|
if (data.networkSettings != null) {
|
|
3248
|
-
contents.networkSettings =
|
|
3244
|
+
contents.networkSettings = de_NetworkSettings(data.networkSettings, context);
|
|
3249
3245
|
}
|
|
3250
3246
|
return contents;
|
|
3251
3247
|
};
|
|
3252
|
-
exports.
|
|
3253
|
-
const
|
|
3248
|
+
exports.de_UpdateNetworkSettingsCommand = de_UpdateNetworkSettingsCommand;
|
|
3249
|
+
const de_UpdateNetworkSettingsCommandError = async (output, context) => {
|
|
3254
3250
|
const parsedOutput = {
|
|
3255
3251
|
...output,
|
|
3256
3252
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3259,19 +3255,19 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3259
3255
|
switch (errorCode) {
|
|
3260
3256
|
case "AccessDeniedException":
|
|
3261
3257
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3262
|
-
throw await
|
|
3258
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3263
3259
|
case "InternalServerException":
|
|
3264
3260
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3265
|
-
throw await
|
|
3261
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3266
3262
|
case "ResourceNotFoundException":
|
|
3267
3263
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3268
|
-
throw await
|
|
3264
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3269
3265
|
case "ThrottlingException":
|
|
3270
3266
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3271
|
-
throw await
|
|
3267
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3272
3268
|
case "ValidationException":
|
|
3273
3269
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3274
|
-
throw await
|
|
3270
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3275
3271
|
default:
|
|
3276
3272
|
const parsedBody = parsedOutput.body;
|
|
3277
3273
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3282,21 +3278,21 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3282
3278
|
});
|
|
3283
3279
|
}
|
|
3284
3280
|
};
|
|
3285
|
-
const
|
|
3281
|
+
const de_UpdatePortalCommand = async (output, context) => {
|
|
3286
3282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3287
|
-
return
|
|
3283
|
+
return de_UpdatePortalCommandError(output, context);
|
|
3288
3284
|
}
|
|
3289
3285
|
const contents = map({
|
|
3290
3286
|
$metadata: deserializeMetadata(output),
|
|
3291
3287
|
});
|
|
3292
3288
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3293
3289
|
if (data.portal != null) {
|
|
3294
|
-
contents.portal =
|
|
3290
|
+
contents.portal = de_Portal(data.portal, context);
|
|
3295
3291
|
}
|
|
3296
3292
|
return contents;
|
|
3297
3293
|
};
|
|
3298
|
-
exports.
|
|
3299
|
-
const
|
|
3294
|
+
exports.de_UpdatePortalCommand = de_UpdatePortalCommand;
|
|
3295
|
+
const de_UpdatePortalCommandError = async (output, context) => {
|
|
3300
3296
|
const parsedOutput = {
|
|
3301
3297
|
...output,
|
|
3302
3298
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3305,19 +3301,19 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3305
3301
|
switch (errorCode) {
|
|
3306
3302
|
case "AccessDeniedException":
|
|
3307
3303
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3308
|
-
throw await
|
|
3304
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3309
3305
|
case "InternalServerException":
|
|
3310
3306
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3311
|
-
throw await
|
|
3307
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3312
3308
|
case "ResourceNotFoundException":
|
|
3313
3309
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3314
|
-
throw await
|
|
3310
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3315
3311
|
case "ThrottlingException":
|
|
3316
3312
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3317
|
-
throw await
|
|
3313
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3318
3314
|
case "ValidationException":
|
|
3319
3315
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3320
|
-
throw await
|
|
3316
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3321
3317
|
default:
|
|
3322
3318
|
const parsedBody = parsedOutput.body;
|
|
3323
3319
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3328,9 +3324,9 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3328
3324
|
});
|
|
3329
3325
|
}
|
|
3330
3326
|
};
|
|
3331
|
-
const
|
|
3327
|
+
const de_UpdateTrustStoreCommand = async (output, context) => {
|
|
3332
3328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3333
|
-
return
|
|
3329
|
+
return de_UpdateTrustStoreCommandError(output, context);
|
|
3334
3330
|
}
|
|
3335
3331
|
const contents = map({
|
|
3336
3332
|
$metadata: deserializeMetadata(output),
|
|
@@ -3341,8 +3337,8 @@ const deserializeAws_restJson1UpdateTrustStoreCommand = async (output, context)
|
|
|
3341
3337
|
}
|
|
3342
3338
|
return contents;
|
|
3343
3339
|
};
|
|
3344
|
-
exports.
|
|
3345
|
-
const
|
|
3340
|
+
exports.de_UpdateTrustStoreCommand = de_UpdateTrustStoreCommand;
|
|
3341
|
+
const de_UpdateTrustStoreCommandError = async (output, context) => {
|
|
3346
3342
|
const parsedOutput = {
|
|
3347
3343
|
...output,
|
|
3348
3344
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3351,22 +3347,22 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3351
3347
|
switch (errorCode) {
|
|
3352
3348
|
case "AccessDeniedException":
|
|
3353
3349
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3354
|
-
throw await
|
|
3350
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3355
3351
|
case "InternalServerException":
|
|
3356
3352
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3357
|
-
throw await
|
|
3353
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3358
3354
|
case "ResourceNotFoundException":
|
|
3359
3355
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3360
|
-
throw await
|
|
3356
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3361
3357
|
case "ServiceQuotaExceededException":
|
|
3362
3358
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
3363
|
-
throw await
|
|
3359
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3364
3360
|
case "ThrottlingException":
|
|
3365
3361
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3366
|
-
throw await
|
|
3362
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3367
3363
|
case "ValidationException":
|
|
3368
3364
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3369
|
-
throw await
|
|
3365
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3370
3366
|
default:
|
|
3371
3367
|
const parsedBody = parsedOutput.body;
|
|
3372
3368
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3377,21 +3373,21 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3377
3373
|
});
|
|
3378
3374
|
}
|
|
3379
3375
|
};
|
|
3380
|
-
const
|
|
3376
|
+
const de_UpdateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
3381
3377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3382
|
-
return
|
|
3378
|
+
return de_UpdateUserAccessLoggingSettingsCommandError(output, context);
|
|
3383
3379
|
}
|
|
3384
3380
|
const contents = map({
|
|
3385
3381
|
$metadata: deserializeMetadata(output),
|
|
3386
3382
|
});
|
|
3387
3383
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3388
3384
|
if (data.userAccessLoggingSettings != null) {
|
|
3389
|
-
contents.userAccessLoggingSettings =
|
|
3385
|
+
contents.userAccessLoggingSettings = de_UserAccessLoggingSettings(data.userAccessLoggingSettings, context);
|
|
3390
3386
|
}
|
|
3391
3387
|
return contents;
|
|
3392
3388
|
};
|
|
3393
|
-
exports.
|
|
3394
|
-
const
|
|
3389
|
+
exports.de_UpdateUserAccessLoggingSettingsCommand = de_UpdateUserAccessLoggingSettingsCommand;
|
|
3390
|
+
const de_UpdateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
3395
3391
|
const parsedOutput = {
|
|
3396
3392
|
...output,
|
|
3397
3393
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3400,19 +3396,19 @@ const deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommandError = asyn
|
|
|
3400
3396
|
switch (errorCode) {
|
|
3401
3397
|
case "AccessDeniedException":
|
|
3402
3398
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3403
|
-
throw await
|
|
3399
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3404
3400
|
case "InternalServerException":
|
|
3405
3401
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3406
|
-
throw await
|
|
3402
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3407
3403
|
case "ResourceNotFoundException":
|
|
3408
3404
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3409
|
-
throw await
|
|
3405
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3410
3406
|
case "ThrottlingException":
|
|
3411
3407
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3412
|
-
throw await
|
|
3408
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3413
3409
|
case "ValidationException":
|
|
3414
3410
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3415
|
-
throw await
|
|
3411
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3416
3412
|
default:
|
|
3417
3413
|
const parsedBody = parsedOutput.body;
|
|
3418
3414
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3423,21 +3419,21 @@ const deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommandError = asyn
|
|
|
3423
3419
|
});
|
|
3424
3420
|
}
|
|
3425
3421
|
};
|
|
3426
|
-
const
|
|
3422
|
+
const de_UpdateUserSettingsCommand = async (output, context) => {
|
|
3427
3423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3428
|
-
return
|
|
3424
|
+
return de_UpdateUserSettingsCommandError(output, context);
|
|
3429
3425
|
}
|
|
3430
3426
|
const contents = map({
|
|
3431
3427
|
$metadata: deserializeMetadata(output),
|
|
3432
3428
|
});
|
|
3433
3429
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3434
3430
|
if (data.userSettings != null) {
|
|
3435
|
-
contents.userSettings =
|
|
3431
|
+
contents.userSettings = de_UserSettings(data.userSettings, context);
|
|
3436
3432
|
}
|
|
3437
3433
|
return contents;
|
|
3438
3434
|
};
|
|
3439
|
-
exports.
|
|
3440
|
-
const
|
|
3435
|
+
exports.de_UpdateUserSettingsCommand = de_UpdateUserSettingsCommand;
|
|
3436
|
+
const de_UpdateUserSettingsCommandError = async (output, context) => {
|
|
3441
3437
|
const parsedOutput = {
|
|
3442
3438
|
...output,
|
|
3443
3439
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3446,19 +3442,19 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3446
3442
|
switch (errorCode) {
|
|
3447
3443
|
case "AccessDeniedException":
|
|
3448
3444
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3449
|
-
throw await
|
|
3445
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3450
3446
|
case "InternalServerException":
|
|
3451
3447
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3452
|
-
throw await
|
|
3448
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3453
3449
|
case "ResourceNotFoundException":
|
|
3454
3450
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3455
|
-
throw await
|
|
3451
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3456
3452
|
case "ThrottlingException":
|
|
3457
3453
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3458
|
-
throw await
|
|
3454
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3459
3455
|
case "ValidationException":
|
|
3460
3456
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3461
|
-
throw await
|
|
3457
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3462
3458
|
default:
|
|
3463
3459
|
const parsedBody = parsedOutput.body;
|
|
3464
3460
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3470,7 +3466,7 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3470
3466
|
}
|
|
3471
3467
|
};
|
|
3472
3468
|
const map = smithy_client_1.map;
|
|
3473
|
-
const
|
|
3469
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3474
3470
|
const contents = map({});
|
|
3475
3471
|
const data = parsedOutput.body;
|
|
3476
3472
|
if (data.message != null) {
|
|
@@ -3482,7 +3478,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3482
3478
|
});
|
|
3483
3479
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3484
3480
|
};
|
|
3485
|
-
const
|
|
3481
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3486
3482
|
const contents = map({});
|
|
3487
3483
|
const data = parsedOutput.body;
|
|
3488
3484
|
if (data.message != null) {
|
|
@@ -3500,7 +3496,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3500
3496
|
});
|
|
3501
3497
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3502
3498
|
};
|
|
3503
|
-
const
|
|
3499
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3504
3500
|
const contents = map({
|
|
3505
3501
|
retryAfterSeconds: [
|
|
3506
3502
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -3517,7 +3513,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3517
3513
|
});
|
|
3518
3514
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3519
3515
|
};
|
|
3520
|
-
const
|
|
3516
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3521
3517
|
const contents = map({});
|
|
3522
3518
|
const data = parsedOutput.body;
|
|
3523
3519
|
if (data.message != null) {
|
|
@@ -3535,7 +3531,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3535
3531
|
});
|
|
3536
3532
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3537
3533
|
};
|
|
3538
|
-
const
|
|
3534
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3539
3535
|
const contents = map({});
|
|
3540
3536
|
const data = parsedOutput.body;
|
|
3541
3537
|
if (data.message != null) {
|
|
@@ -3559,7 +3555,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3559
3555
|
});
|
|
3560
3556
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3561
3557
|
};
|
|
3562
|
-
const
|
|
3558
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3563
3559
|
const contents = map({
|
|
3564
3560
|
retryAfterSeconds: [
|
|
3565
3561
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -3582,7 +3578,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3582
3578
|
});
|
|
3583
3579
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3584
3580
|
};
|
|
3585
|
-
const
|
|
3581
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
3586
3582
|
const contents = map({});
|
|
3587
3583
|
const data = parsedOutput.body;
|
|
3588
3584
|
if (data.message != null) {
|
|
@@ -3597,11 +3593,11 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
|
|
|
3597
3593
|
});
|
|
3598
3594
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3599
3595
|
};
|
|
3600
|
-
const
|
|
3596
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3601
3597
|
const contents = map({});
|
|
3602
3598
|
const data = parsedOutput.body;
|
|
3603
3599
|
if (data.fieldList != null) {
|
|
3604
|
-
contents.fieldList =
|
|
3600
|
+
contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
|
|
3605
3601
|
}
|
|
3606
3602
|
if (data.message != null) {
|
|
3607
3603
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
@@ -3615,21 +3611,21 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3615
3611
|
});
|
|
3616
3612
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3617
3613
|
};
|
|
3618
|
-
const
|
|
3614
|
+
const se_CertificateList = (input, context) => {
|
|
3619
3615
|
return input
|
|
3620
3616
|
.filter((e) => e != null)
|
|
3621
3617
|
.map((entry) => {
|
|
3622
3618
|
return context.base64Encoder(entry);
|
|
3623
3619
|
});
|
|
3624
3620
|
};
|
|
3625
|
-
const
|
|
3621
|
+
const se_CertificateThumbprintList = (input, context) => {
|
|
3626
3622
|
return input
|
|
3627
3623
|
.filter((e) => e != null)
|
|
3628
3624
|
.map((entry) => {
|
|
3629
3625
|
return entry;
|
|
3630
3626
|
});
|
|
3631
3627
|
};
|
|
3632
|
-
const
|
|
3628
|
+
const se_EncryptionContextMap = (input, context) => {
|
|
3633
3629
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3634
3630
|
if (value === null) {
|
|
3635
3631
|
return acc;
|
|
@@ -3638,7 +3634,7 @@ const serializeAws_restJson1EncryptionContextMap = (input, context) => {
|
|
|
3638
3634
|
return acc;
|
|
3639
3635
|
}, {});
|
|
3640
3636
|
};
|
|
3641
|
-
const
|
|
3637
|
+
const se_IdentityProviderDetails = (input, context) => {
|
|
3642
3638
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3643
3639
|
if (value === null) {
|
|
3644
3640
|
return acc;
|
|
@@ -3647,34 +3643,34 @@ const serializeAws_restJson1IdentityProviderDetails = (input, context) => {
|
|
|
3647
3643
|
return acc;
|
|
3648
3644
|
}, {});
|
|
3649
3645
|
};
|
|
3650
|
-
const
|
|
3646
|
+
const se_SecurityGroupIdList = (input, context) => {
|
|
3651
3647
|
return input
|
|
3652
3648
|
.filter((e) => e != null)
|
|
3653
3649
|
.map((entry) => {
|
|
3654
3650
|
return entry;
|
|
3655
3651
|
});
|
|
3656
3652
|
};
|
|
3657
|
-
const
|
|
3653
|
+
const se_SubnetIdList = (input, context) => {
|
|
3658
3654
|
return input
|
|
3659
3655
|
.filter((e) => e != null)
|
|
3660
3656
|
.map((entry) => {
|
|
3661
3657
|
return entry;
|
|
3662
3658
|
});
|
|
3663
3659
|
};
|
|
3664
|
-
const
|
|
3660
|
+
const se_Tag = (input, context) => {
|
|
3665
3661
|
return {
|
|
3666
3662
|
...(input.Key != null && { Key: input.Key }),
|
|
3667
3663
|
...(input.Value != null && { Value: input.Value }),
|
|
3668
3664
|
};
|
|
3669
3665
|
};
|
|
3670
|
-
const
|
|
3666
|
+
const se_TagList = (input, context) => {
|
|
3671
3667
|
return input
|
|
3672
3668
|
.filter((e) => e != null)
|
|
3673
3669
|
.map((entry) => {
|
|
3674
|
-
return
|
|
3670
|
+
return se_Tag(entry, context);
|
|
3675
3671
|
});
|
|
3676
3672
|
};
|
|
3677
|
-
const
|
|
3673
|
+
const de_ArnList = (output, context) => {
|
|
3678
3674
|
const retVal = (output || [])
|
|
3679
3675
|
.filter((e) => e != null)
|
|
3680
3676
|
.map((entry) => {
|
|
@@ -3685,32 +3681,30 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
3685
3681
|
});
|
|
3686
3682
|
return retVal;
|
|
3687
3683
|
};
|
|
3688
|
-
const
|
|
3684
|
+
const de_BrowserSettings = (output, context) => {
|
|
3689
3685
|
return {
|
|
3690
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3691
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3692
|
-
: undefined,
|
|
3686
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3693
3687
|
browserPolicy: (0, smithy_client_1.expectString)(output.browserPolicy),
|
|
3694
3688
|
browserSettingsArn: (0, smithy_client_1.expectString)(output.browserSettingsArn),
|
|
3695
3689
|
};
|
|
3696
3690
|
};
|
|
3697
|
-
const
|
|
3691
|
+
const de_BrowserSettingsList = (output, context) => {
|
|
3698
3692
|
const retVal = (output || [])
|
|
3699
3693
|
.filter((e) => e != null)
|
|
3700
3694
|
.map((entry) => {
|
|
3701
3695
|
if (entry === null) {
|
|
3702
3696
|
return null;
|
|
3703
3697
|
}
|
|
3704
|
-
return
|
|
3698
|
+
return de_BrowserSettingsSummary(entry, context);
|
|
3705
3699
|
});
|
|
3706
3700
|
return retVal;
|
|
3707
3701
|
};
|
|
3708
|
-
const
|
|
3702
|
+
const de_BrowserSettingsSummary = (output, context) => {
|
|
3709
3703
|
return {
|
|
3710
3704
|
browserSettingsArn: (0, smithy_client_1.expectString)(output.browserSettingsArn),
|
|
3711
3705
|
};
|
|
3712
3706
|
};
|
|
3713
|
-
const
|
|
3707
|
+
const de_Certificate = (output, context) => {
|
|
3714
3708
|
return {
|
|
3715
3709
|
body: output.body != null ? context.base64Decoder(output.body) : undefined,
|
|
3716
3710
|
issuer: (0, smithy_client_1.expectString)(output.issuer),
|
|
@@ -3724,7 +3718,7 @@ const deserializeAws_restJson1Certificate = (output, context) => {
|
|
|
3724
3718
|
thumbprint: (0, smithy_client_1.expectString)(output.thumbprint),
|
|
3725
3719
|
};
|
|
3726
3720
|
};
|
|
3727
|
-
const
|
|
3721
|
+
const de_CertificateSummary = (output, context) => {
|
|
3728
3722
|
return {
|
|
3729
3723
|
issuer: (0, smithy_client_1.expectString)(output.issuer),
|
|
3730
3724
|
notValidAfter: output.notValidAfter != null
|
|
@@ -3737,28 +3731,28 @@ const deserializeAws_restJson1CertificateSummary = (output, context) => {
|
|
|
3737
3731
|
thumbprint: (0, smithy_client_1.expectString)(output.thumbprint),
|
|
3738
3732
|
};
|
|
3739
3733
|
};
|
|
3740
|
-
const
|
|
3734
|
+
const de_CertificateSummaryList = (output, context) => {
|
|
3741
3735
|
const retVal = (output || [])
|
|
3742
3736
|
.filter((e) => e != null)
|
|
3743
3737
|
.map((entry) => {
|
|
3744
3738
|
if (entry === null) {
|
|
3745
3739
|
return null;
|
|
3746
3740
|
}
|
|
3747
|
-
return
|
|
3741
|
+
return de_CertificateSummary(entry, context);
|
|
3748
3742
|
});
|
|
3749
3743
|
return retVal;
|
|
3750
3744
|
};
|
|
3751
|
-
const
|
|
3745
|
+
const de_IdentityProvider = (output, context) => {
|
|
3752
3746
|
return {
|
|
3753
3747
|
identityProviderArn: (0, smithy_client_1.expectString)(output.identityProviderArn),
|
|
3754
3748
|
identityProviderDetails: output.identityProviderDetails != null
|
|
3755
|
-
?
|
|
3749
|
+
? de_IdentityProviderDetails(output.identityProviderDetails, context)
|
|
3756
3750
|
: undefined,
|
|
3757
3751
|
identityProviderName: (0, smithy_client_1.expectString)(output.identityProviderName),
|
|
3758
3752
|
identityProviderType: (0, smithy_client_1.expectString)(output.identityProviderType),
|
|
3759
3753
|
};
|
|
3760
3754
|
};
|
|
3761
|
-
const
|
|
3755
|
+
const de_IdentityProviderDetails = (output, context) => {
|
|
3762
3756
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3763
3757
|
if (value === null) {
|
|
3764
3758
|
return acc;
|
|
@@ -3767,55 +3761,51 @@ const deserializeAws_restJson1IdentityProviderDetails = (output, context) => {
|
|
|
3767
3761
|
return acc;
|
|
3768
3762
|
}, {});
|
|
3769
3763
|
};
|
|
3770
|
-
const
|
|
3764
|
+
const de_IdentityProviderList = (output, context) => {
|
|
3771
3765
|
const retVal = (output || [])
|
|
3772
3766
|
.filter((e) => e != null)
|
|
3773
3767
|
.map((entry) => {
|
|
3774
3768
|
if (entry === null) {
|
|
3775
3769
|
return null;
|
|
3776
3770
|
}
|
|
3777
|
-
return
|
|
3771
|
+
return de_IdentityProviderSummary(entry, context);
|
|
3778
3772
|
});
|
|
3779
3773
|
return retVal;
|
|
3780
3774
|
};
|
|
3781
|
-
const
|
|
3775
|
+
const de_IdentityProviderSummary = (output, context) => {
|
|
3782
3776
|
return {
|
|
3783
3777
|
identityProviderArn: (0, smithy_client_1.expectString)(output.identityProviderArn),
|
|
3784
3778
|
identityProviderName: (0, smithy_client_1.expectString)(output.identityProviderName),
|
|
3785
3779
|
identityProviderType: (0, smithy_client_1.expectString)(output.identityProviderType),
|
|
3786
3780
|
};
|
|
3787
3781
|
};
|
|
3788
|
-
const
|
|
3782
|
+
const de_NetworkSettings = (output, context) => {
|
|
3789
3783
|
return {
|
|
3790
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3791
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3792
|
-
: undefined,
|
|
3784
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3793
3785
|
networkSettingsArn: (0, smithy_client_1.expectString)(output.networkSettingsArn),
|
|
3794
|
-
securityGroupIds: output.securityGroupIds != null
|
|
3795
|
-
|
|
3796
|
-
: undefined,
|
|
3797
|
-
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
3786
|
+
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIdList(output.securityGroupIds, context) : undefined,
|
|
3787
|
+
subnetIds: output.subnetIds != null ? de_SubnetIdList(output.subnetIds, context) : undefined,
|
|
3798
3788
|
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3799
3789
|
};
|
|
3800
3790
|
};
|
|
3801
|
-
const
|
|
3791
|
+
const de_NetworkSettingsList = (output, context) => {
|
|
3802
3792
|
const retVal = (output || [])
|
|
3803
3793
|
.filter((e) => e != null)
|
|
3804
3794
|
.map((entry) => {
|
|
3805
3795
|
if (entry === null) {
|
|
3806
3796
|
return null;
|
|
3807
3797
|
}
|
|
3808
|
-
return
|
|
3798
|
+
return de_NetworkSettingsSummary(entry, context);
|
|
3809
3799
|
});
|
|
3810
3800
|
return retVal;
|
|
3811
3801
|
};
|
|
3812
|
-
const
|
|
3802
|
+
const de_NetworkSettingsSummary = (output, context) => {
|
|
3813
3803
|
return {
|
|
3814
3804
|
networkSettingsArn: (0, smithy_client_1.expectString)(output.networkSettingsArn),
|
|
3815
3805
|
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3816
3806
|
};
|
|
3817
3807
|
};
|
|
3818
|
-
const
|
|
3808
|
+
const de_Portal = (output, context) => {
|
|
3819
3809
|
return {
|
|
3820
3810
|
authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
|
|
3821
3811
|
browserSettingsArn: (0, smithy_client_1.expectString)(output.browserSettingsArn),
|
|
@@ -3835,18 +3825,18 @@ const deserializeAws_restJson1Portal = (output, context) => {
|
|
|
3835
3825
|
userSettingsArn: (0, smithy_client_1.expectString)(output.userSettingsArn),
|
|
3836
3826
|
};
|
|
3837
3827
|
};
|
|
3838
|
-
const
|
|
3828
|
+
const de_PortalList = (output, context) => {
|
|
3839
3829
|
const retVal = (output || [])
|
|
3840
3830
|
.filter((e) => e != null)
|
|
3841
3831
|
.map((entry) => {
|
|
3842
3832
|
if (entry === null) {
|
|
3843
3833
|
return null;
|
|
3844
3834
|
}
|
|
3845
|
-
return
|
|
3835
|
+
return de_PortalSummary(entry, context);
|
|
3846
3836
|
});
|
|
3847
3837
|
return retVal;
|
|
3848
3838
|
};
|
|
3849
|
-
const
|
|
3839
|
+
const de_PortalSummary = (output, context) => {
|
|
3850
3840
|
return {
|
|
3851
3841
|
authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
|
|
3852
3842
|
browserSettingsArn: (0, smithy_client_1.expectString)(output.browserSettingsArn),
|
|
@@ -3865,7 +3855,7 @@ const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
|
3865
3855
|
userSettingsArn: (0, smithy_client_1.expectString)(output.userSettingsArn),
|
|
3866
3856
|
};
|
|
3867
3857
|
};
|
|
3868
|
-
const
|
|
3858
|
+
const de_SecurityGroupIdList = (output, context) => {
|
|
3869
3859
|
const retVal = (output || [])
|
|
3870
3860
|
.filter((e) => e != null)
|
|
3871
3861
|
.map((entry) => {
|
|
@@ -3876,7 +3866,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
|
|
|
3876
3866
|
});
|
|
3877
3867
|
return retVal;
|
|
3878
3868
|
};
|
|
3879
|
-
const
|
|
3869
|
+
const de_SubnetIdList = (output, context) => {
|
|
3880
3870
|
const retVal = (output || [])
|
|
3881
3871
|
.filter((e) => e != null)
|
|
3882
3872
|
.map((entry) => {
|
|
@@ -3887,78 +3877,72 @@ const deserializeAws_restJson1SubnetIdList = (output, context) => {
|
|
|
3887
3877
|
});
|
|
3888
3878
|
return retVal;
|
|
3889
3879
|
};
|
|
3890
|
-
const
|
|
3880
|
+
const de_Tag = (output, context) => {
|
|
3891
3881
|
return {
|
|
3892
3882
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3893
3883
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3894
3884
|
};
|
|
3895
3885
|
};
|
|
3896
|
-
const
|
|
3886
|
+
const de_TagList = (output, context) => {
|
|
3897
3887
|
const retVal = (output || [])
|
|
3898
3888
|
.filter((e) => e != null)
|
|
3899
3889
|
.map((entry) => {
|
|
3900
3890
|
if (entry === null) {
|
|
3901
3891
|
return null;
|
|
3902
3892
|
}
|
|
3903
|
-
return
|
|
3893
|
+
return de_Tag(entry, context);
|
|
3904
3894
|
});
|
|
3905
3895
|
return retVal;
|
|
3906
3896
|
};
|
|
3907
|
-
const
|
|
3897
|
+
const de_TrustStore = (output, context) => {
|
|
3908
3898
|
return {
|
|
3909
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3910
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3911
|
-
: undefined,
|
|
3899
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3912
3900
|
trustStoreArn: (0, smithy_client_1.expectString)(output.trustStoreArn),
|
|
3913
3901
|
};
|
|
3914
3902
|
};
|
|
3915
|
-
const
|
|
3903
|
+
const de_TrustStoreSummary = (output, context) => {
|
|
3916
3904
|
return {
|
|
3917
3905
|
trustStoreArn: (0, smithy_client_1.expectString)(output.trustStoreArn),
|
|
3918
3906
|
};
|
|
3919
3907
|
};
|
|
3920
|
-
const
|
|
3908
|
+
const de_TrustStoreSummaryList = (output, context) => {
|
|
3921
3909
|
const retVal = (output || [])
|
|
3922
3910
|
.filter((e) => e != null)
|
|
3923
3911
|
.map((entry) => {
|
|
3924
3912
|
if (entry === null) {
|
|
3925
3913
|
return null;
|
|
3926
3914
|
}
|
|
3927
|
-
return
|
|
3915
|
+
return de_TrustStoreSummary(entry, context);
|
|
3928
3916
|
});
|
|
3929
3917
|
return retVal;
|
|
3930
3918
|
};
|
|
3931
|
-
const
|
|
3919
|
+
const de_UserAccessLoggingSettings = (output, context) => {
|
|
3932
3920
|
return {
|
|
3933
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3934
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3935
|
-
: undefined,
|
|
3921
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3936
3922
|
kinesisStreamArn: (0, smithy_client_1.expectString)(output.kinesisStreamArn),
|
|
3937
3923
|
userAccessLoggingSettingsArn: (0, smithy_client_1.expectString)(output.userAccessLoggingSettingsArn),
|
|
3938
3924
|
};
|
|
3939
3925
|
};
|
|
3940
|
-
const
|
|
3926
|
+
const de_UserAccessLoggingSettingsList = (output, context) => {
|
|
3941
3927
|
const retVal = (output || [])
|
|
3942
3928
|
.filter((e) => e != null)
|
|
3943
3929
|
.map((entry) => {
|
|
3944
3930
|
if (entry === null) {
|
|
3945
3931
|
return null;
|
|
3946
3932
|
}
|
|
3947
|
-
return
|
|
3933
|
+
return de_UserAccessLoggingSettingsSummary(entry, context);
|
|
3948
3934
|
});
|
|
3949
3935
|
return retVal;
|
|
3950
3936
|
};
|
|
3951
|
-
const
|
|
3937
|
+
const de_UserAccessLoggingSettingsSummary = (output, context) => {
|
|
3952
3938
|
return {
|
|
3953
3939
|
kinesisStreamArn: (0, smithy_client_1.expectString)(output.kinesisStreamArn),
|
|
3954
3940
|
userAccessLoggingSettingsArn: (0, smithy_client_1.expectString)(output.userAccessLoggingSettingsArn),
|
|
3955
3941
|
};
|
|
3956
3942
|
};
|
|
3957
|
-
const
|
|
3943
|
+
const de_UserSettings = (output, context) => {
|
|
3958
3944
|
return {
|
|
3959
|
-
associatedPortalArns: output.associatedPortalArns != null
|
|
3960
|
-
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3961
|
-
: undefined,
|
|
3945
|
+
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3962
3946
|
copyAllowed: (0, smithy_client_1.expectString)(output.copyAllowed),
|
|
3963
3947
|
disconnectTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.disconnectTimeoutInMinutes),
|
|
3964
3948
|
downloadAllowed: (0, smithy_client_1.expectString)(output.downloadAllowed),
|
|
@@ -3969,18 +3953,18 @@ const deserializeAws_restJson1UserSettings = (output, context) => {
|
|
|
3969
3953
|
userSettingsArn: (0, smithy_client_1.expectString)(output.userSettingsArn),
|
|
3970
3954
|
};
|
|
3971
3955
|
};
|
|
3972
|
-
const
|
|
3956
|
+
const de_UserSettingsList = (output, context) => {
|
|
3973
3957
|
const retVal = (output || [])
|
|
3974
3958
|
.filter((e) => e != null)
|
|
3975
3959
|
.map((entry) => {
|
|
3976
3960
|
if (entry === null) {
|
|
3977
3961
|
return null;
|
|
3978
3962
|
}
|
|
3979
|
-
return
|
|
3963
|
+
return de_UserSettingsSummary(entry, context);
|
|
3980
3964
|
});
|
|
3981
3965
|
return retVal;
|
|
3982
3966
|
};
|
|
3983
|
-
const
|
|
3967
|
+
const de_UserSettingsSummary = (output, context) => {
|
|
3984
3968
|
return {
|
|
3985
3969
|
copyAllowed: (0, smithy_client_1.expectString)(output.copyAllowed),
|
|
3986
3970
|
disconnectTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.disconnectTimeoutInMinutes),
|
|
@@ -3992,20 +3976,20 @@ const deserializeAws_restJson1UserSettingsSummary = (output, context) => {
|
|
|
3992
3976
|
userSettingsArn: (0, smithy_client_1.expectString)(output.userSettingsArn),
|
|
3993
3977
|
};
|
|
3994
3978
|
};
|
|
3995
|
-
const
|
|
3979
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
3996
3980
|
return {
|
|
3997
3981
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3998
3982
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3999
3983
|
};
|
|
4000
3984
|
};
|
|
4001
|
-
const
|
|
3985
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
4002
3986
|
const retVal = (output || [])
|
|
4003
3987
|
.filter((e) => e != null)
|
|
4004
3988
|
.map((entry) => {
|
|
4005
3989
|
if (entry === null) {
|
|
4006
3990
|
return null;
|
|
4007
3991
|
}
|
|
4008
|
-
return
|
|
3992
|
+
return de_ValidationExceptionField(entry, context);
|
|
4009
3993
|
});
|
|
4010
3994
|
return retVal;
|
|
4011
3995
|
};
|