@aws-sdk/client-workspaces-web 3.188.0 → 3.192.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/WorkSpacesWeb.js +105 -0
- package/dist-cjs/WorkSpacesWebClient.js +11 -8
- package/dist-cjs/commands/AssociateBrowserSettingsCommand.js +10 -0
- package/dist-cjs/commands/AssociateNetworkSettingsCommand.js +10 -0
- package/dist-cjs/commands/AssociateTrustStoreCommand.js +10 -0
- package/dist-cjs/commands/AssociateUserAccessLoggingSettingsCommand.js +46 -0
- package/dist-cjs/commands/AssociateUserSettingsCommand.js +10 -0
- package/dist-cjs/commands/CreateBrowserSettingsCommand.js +10 -0
- package/dist-cjs/commands/CreateIdentityProviderCommand.js +10 -0
- package/dist-cjs/commands/CreateNetworkSettingsCommand.js +10 -0
- package/dist-cjs/commands/CreatePortalCommand.js +10 -0
- package/dist-cjs/commands/CreateTrustStoreCommand.js +10 -0
- package/dist-cjs/commands/CreateUserAccessLoggingSettingsCommand.js +46 -0
- package/dist-cjs/commands/CreateUserSettingsCommand.js +10 -0
- package/dist-cjs/commands/DeleteBrowserSettingsCommand.js +10 -0
- package/dist-cjs/commands/DeleteIdentityProviderCommand.js +10 -0
- package/dist-cjs/commands/DeleteNetworkSettingsCommand.js +10 -0
- package/dist-cjs/commands/DeletePortalCommand.js +10 -0
- package/dist-cjs/commands/DeleteTrustStoreCommand.js +10 -0
- package/dist-cjs/commands/DeleteUserAccessLoggingSettingsCommand.js +46 -0
- package/dist-cjs/commands/DeleteUserSettingsCommand.js +10 -0
- package/dist-cjs/commands/DisassociateBrowserSettingsCommand.js +10 -0
- package/dist-cjs/commands/DisassociateNetworkSettingsCommand.js +10 -0
- package/dist-cjs/commands/DisassociateTrustStoreCommand.js +10 -0
- package/dist-cjs/commands/DisassociateUserAccessLoggingSettingsCommand.js +46 -0
- package/dist-cjs/commands/DisassociateUserSettingsCommand.js +10 -0
- package/dist-cjs/commands/GetBrowserSettingsCommand.js +10 -0
- package/dist-cjs/commands/GetIdentityProviderCommand.js +10 -0
- package/dist-cjs/commands/GetNetworkSettingsCommand.js +10 -0
- package/dist-cjs/commands/GetPortalCommand.js +10 -0
- package/dist-cjs/commands/GetPortalServiceProviderMetadataCommand.js +10 -0
- package/dist-cjs/commands/GetTrustStoreCertificateCommand.js +10 -0
- package/dist-cjs/commands/GetTrustStoreCommand.js +10 -0
- package/dist-cjs/commands/GetUserAccessLoggingSettingsCommand.js +46 -0
- package/dist-cjs/commands/GetUserSettingsCommand.js +10 -0
- package/dist-cjs/commands/ListBrowserSettingsCommand.js +10 -0
- package/dist-cjs/commands/ListIdentityProvidersCommand.js +10 -0
- package/dist-cjs/commands/ListNetworkSettingsCommand.js +10 -0
- package/dist-cjs/commands/ListPortalsCommand.js +10 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-cjs/commands/ListTrustStoreCertificatesCommand.js +10 -0
- package/dist-cjs/commands/ListTrustStoresCommand.js +10 -0
- package/dist-cjs/commands/ListUserAccessLoggingSettingsCommand.js +46 -0
- package/dist-cjs/commands/ListUserSettingsCommand.js +10 -0
- package/dist-cjs/commands/TagResourceCommand.js +10 -0
- package/dist-cjs/commands/UntagResourceCommand.js +10 -0
- package/dist-cjs/commands/UpdateBrowserSettingsCommand.js +10 -0
- package/dist-cjs/commands/UpdateIdentityProviderCommand.js +10 -0
- package/dist-cjs/commands/UpdateNetworkSettingsCommand.js +10 -0
- package/dist-cjs/commands/UpdatePortalCommand.js +10 -0
- package/dist-cjs/commands/UpdateTrustStoreCommand.js +10 -0
- package/dist-cjs/commands/UpdateUserAccessLoggingSettingsCommand.js +46 -0
- package/dist-cjs/commands/UpdateUserSettingsCommand.js +10 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +318 -0
- package/dist-cjs/models/models_0.js +68 -3
- package/dist-cjs/pagination/ListUserAccessLoggingSettingsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +502 -2
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/WorkSpacesWeb.js +105 -0
- package/dist-es/WorkSpacesWebClient.js +12 -9
- package/dist-es/commands/AssociateBrowserSettingsCommand.js +10 -0
- package/dist-es/commands/AssociateNetworkSettingsCommand.js +10 -0
- package/dist-es/commands/AssociateTrustStoreCommand.js +10 -0
- package/dist-es/commands/AssociateUserAccessLoggingSettingsCommand.js +42 -0
- package/dist-es/commands/AssociateUserSettingsCommand.js +10 -0
- package/dist-es/commands/CreateBrowserSettingsCommand.js +10 -0
- package/dist-es/commands/CreateIdentityProviderCommand.js +10 -0
- package/dist-es/commands/CreateNetworkSettingsCommand.js +10 -0
- package/dist-es/commands/CreatePortalCommand.js +10 -0
- package/dist-es/commands/CreateTrustStoreCommand.js +10 -0
- package/dist-es/commands/CreateUserAccessLoggingSettingsCommand.js +42 -0
- package/dist-es/commands/CreateUserSettingsCommand.js +10 -0
- package/dist-es/commands/DeleteBrowserSettingsCommand.js +10 -0
- package/dist-es/commands/DeleteIdentityProviderCommand.js +10 -0
- package/dist-es/commands/DeleteNetworkSettingsCommand.js +10 -0
- package/dist-es/commands/DeletePortalCommand.js +10 -0
- package/dist-es/commands/DeleteTrustStoreCommand.js +10 -0
- package/dist-es/commands/DeleteUserAccessLoggingSettingsCommand.js +42 -0
- package/dist-es/commands/DeleteUserSettingsCommand.js +10 -0
- package/dist-es/commands/DisassociateBrowserSettingsCommand.js +10 -0
- package/dist-es/commands/DisassociateNetworkSettingsCommand.js +10 -0
- package/dist-es/commands/DisassociateTrustStoreCommand.js +10 -0
- package/dist-es/commands/DisassociateUserAccessLoggingSettingsCommand.js +42 -0
- package/dist-es/commands/DisassociateUserSettingsCommand.js +10 -0
- package/dist-es/commands/GetBrowserSettingsCommand.js +10 -0
- package/dist-es/commands/GetIdentityProviderCommand.js +10 -0
- package/dist-es/commands/GetNetworkSettingsCommand.js +10 -0
- package/dist-es/commands/GetPortalCommand.js +10 -0
- package/dist-es/commands/GetPortalServiceProviderMetadataCommand.js +10 -0
- package/dist-es/commands/GetTrustStoreCertificateCommand.js +10 -0
- package/dist-es/commands/GetTrustStoreCommand.js +10 -0
- package/dist-es/commands/GetUserAccessLoggingSettingsCommand.js +42 -0
- package/dist-es/commands/GetUserSettingsCommand.js +10 -0
- package/dist-es/commands/ListBrowserSettingsCommand.js +10 -0
- package/dist-es/commands/ListIdentityProvidersCommand.js +10 -0
- package/dist-es/commands/ListNetworkSettingsCommand.js +10 -0
- package/dist-es/commands/ListPortalsCommand.js +10 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-es/commands/ListTrustStoreCertificatesCommand.js +10 -0
- package/dist-es/commands/ListTrustStoresCommand.js +10 -0
- package/dist-es/commands/ListUserAccessLoggingSettingsCommand.js +42 -0
- package/dist-es/commands/ListUserSettingsCommand.js +10 -0
- package/dist-es/commands/TagResourceCommand.js +10 -0
- package/dist-es/commands/UntagResourceCommand.js +10 -0
- package/dist-es/commands/UpdateBrowserSettingsCommand.js +10 -0
- package/dist-es/commands/UpdateIdentityProviderCommand.js +10 -0
- package/dist-es/commands/UpdateNetworkSettingsCommand.js +10 -0
- package/dist-es/commands/UpdatePortalCommand.js +10 -0
- package/dist-es/commands/UpdateTrustStoreCommand.js +10 -0
- package/dist-es/commands/UpdateUserAccessLoggingSettingsCommand.js +42 -0
- package/dist-es/commands/UpdateUserSettingsCommand.js +10 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +315 -0
- package/dist-es/models/models_0.js +49 -0
- package/dist-es/pagination/ListUserAccessLoggingSettingsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +483 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/WorkSpacesWeb.d.ts +49 -0
- package/dist-types/WorkSpacesWebClient.d.ts +15 -11
- package/dist-types/commands/AssociateBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/AssociateNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/commands/AssociateTrustStoreCommand.d.ts +2 -0
- package/dist-types/commands/AssociateUserAccessLoggingSettingsCommand.d.ts +37 -0
- package/dist-types/commands/AssociateUserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/CreateBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/CreateIdentityProviderCommand.d.ts +2 -0
- package/dist-types/commands/CreateNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/commands/CreatePortalCommand.d.ts +2 -0
- package/dist-types/commands/CreateTrustStoreCommand.d.ts +2 -0
- package/dist-types/commands/CreateUserAccessLoggingSettingsCommand.d.ts +37 -0
- package/dist-types/commands/CreateUserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/DeleteBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/DeleteIdentityProviderCommand.d.ts +2 -0
- package/dist-types/commands/DeleteNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/commands/DeletePortalCommand.d.ts +2 -0
- package/dist-types/commands/DeleteTrustStoreCommand.d.ts +2 -0
- package/dist-types/commands/DeleteUserAccessLoggingSettingsCommand.d.ts +37 -0
- package/dist-types/commands/DeleteUserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateTrustStoreCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateUserAccessLoggingSettingsCommand.d.ts +37 -0
- package/dist-types/commands/DisassociateUserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/GetBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/GetIdentityProviderCommand.d.ts +2 -0
- package/dist-types/commands/GetNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/commands/GetPortalCommand.d.ts +2 -0
- package/dist-types/commands/GetPortalServiceProviderMetadataCommand.d.ts +2 -0
- package/dist-types/commands/GetTrustStoreCertificateCommand.d.ts +2 -0
- package/dist-types/commands/GetTrustStoreCommand.d.ts +2 -0
- package/dist-types/commands/GetUserAccessLoggingSettingsCommand.d.ts +37 -0
- package/dist-types/commands/GetUserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/ListBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/ListIdentityProvidersCommand.d.ts +2 -0
- package/dist-types/commands/ListNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/commands/ListPortalsCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/commands/ListTrustStoreCertificatesCommand.d.ts +2 -0
- package/dist-types/commands/ListTrustStoresCommand.d.ts +2 -0
- package/dist-types/commands/ListUserAccessLoggingSettingsCommand.d.ts +37 -0
- package/dist-types/commands/ListUserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +2 -0
- package/dist-types/commands/UpdateNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/commands/UpdatePortalCommand.d.ts +2 -0
- package/dist-types/commands/UpdateTrustStoreCommand.d.ts +2 -0
- package/dist-types/commands/UpdateUserAccessLoggingSettingsCommand.d.ts +37 -0
- package/dist-types/commands/UpdateUserSettingsCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +221 -1
- package/dist-types/pagination/ListUserAccessLoggingSettingsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +21 -0
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/WorkSpacesWeb.d.ts +131 -0
- package/dist-types/ts3.4/WorkSpacesWebClient.d.ts +57 -8
- package/dist-types/ts3.4/commands/AssociateBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssociateNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssociateTrustStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssociateUserAccessLoggingSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/AssociateUserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateIdentityProviderCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreatePortalCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateTrustStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateUserAccessLoggingSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateUserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteIdentityProviderCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeletePortalCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteTrustStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteUserAccessLoggingSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteUserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateTrustStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateUserAccessLoggingSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DisassociateUserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetIdentityProviderCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetPortalCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetPortalServiceProviderMetadataCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetTrustStoreCertificateCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetTrustStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetUserAccessLoggingSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetUserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListPortalsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTrustStoreCertificatesCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTrustStoresCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListUserAccessLoggingSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListUserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateBrowserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateIdentityProviderCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateNetworkSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdatePortalCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateTrustStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateUserAccessLoggingSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateUserSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +105 -0
- package/dist-types/ts3.4/pagination/ListUserAccessLoggingSettingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +27 -26
- package/dist-cjs/endpoints.js +0 -132
- package/dist-es/endpoints.js +0 -128
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -63,6 +63,27 @@ export const serializeAws_restJson1AssociateTrustStoreCommand = async (input, co
|
|
|
63
63
|
body,
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
+
export const serializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
67
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
68
|
+
const headers = {};
|
|
69
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
70
|
+
"/portals/{portalArn+}/userAccessLoggingSettings";
|
|
71
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
72
|
+
const query = map({
|
|
73
|
+
userAccessLoggingSettingsArn: [, input.userAccessLoggingSettingsArn],
|
|
74
|
+
});
|
|
75
|
+
let body;
|
|
76
|
+
return new __HttpRequest({
|
|
77
|
+
protocol,
|
|
78
|
+
hostname,
|
|
79
|
+
port,
|
|
80
|
+
method: "PUT",
|
|
81
|
+
headers,
|
|
82
|
+
path: resolvedPath,
|
|
83
|
+
query,
|
|
84
|
+
body,
|
|
85
|
+
});
|
|
86
|
+
};
|
|
66
87
|
export const serializeAws_restJson1AssociateUserSettingsCommand = async (input, context) => {
|
|
67
88
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
68
89
|
const headers = {};
|
|
@@ -211,6 +232,28 @@ export const serializeAws_restJson1CreateTrustStoreCommand = async (input, conte
|
|
|
211
232
|
body,
|
|
212
233
|
});
|
|
213
234
|
};
|
|
235
|
+
export const serializeAws_restJson1CreateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
236
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
237
|
+
const headers = {
|
|
238
|
+
"content-type": "application/json",
|
|
239
|
+
};
|
|
240
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
|
|
241
|
+
let body;
|
|
242
|
+
body = JSON.stringify({
|
|
243
|
+
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
244
|
+
...(input.kinesisStreamArn != null && { kinesisStreamArn: input.kinesisStreamArn }),
|
|
245
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
246
|
+
});
|
|
247
|
+
return new __HttpRequest({
|
|
248
|
+
protocol,
|
|
249
|
+
hostname,
|
|
250
|
+
port,
|
|
251
|
+
method: "POST",
|
|
252
|
+
headers,
|
|
253
|
+
path: resolvedPath,
|
|
254
|
+
body,
|
|
255
|
+
});
|
|
256
|
+
};
|
|
214
257
|
export const serializeAws_restJson1CreateUserSettingsCommand = async (input, context) => {
|
|
215
258
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
216
259
|
const headers = {
|
|
@@ -321,6 +364,23 @@ export const serializeAws_restJson1DeleteTrustStoreCommand = async (input, conte
|
|
|
321
364
|
body,
|
|
322
365
|
});
|
|
323
366
|
};
|
|
367
|
+
export const serializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
368
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
369
|
+
const headers = {};
|
|
370
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
371
|
+
"/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
|
|
372
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
|
|
373
|
+
let body;
|
|
374
|
+
return new __HttpRequest({
|
|
375
|
+
protocol,
|
|
376
|
+
hostname,
|
|
377
|
+
port,
|
|
378
|
+
method: "DELETE",
|
|
379
|
+
headers,
|
|
380
|
+
path: resolvedPath,
|
|
381
|
+
body,
|
|
382
|
+
});
|
|
383
|
+
};
|
|
324
384
|
export const serializeAws_restJson1DeleteUserSettingsCommand = async (input, context) => {
|
|
325
385
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
326
386
|
const headers = {};
|
|
@@ -385,6 +445,23 @@ export const serializeAws_restJson1DisassociateTrustStoreCommand = async (input,
|
|
|
385
445
|
body,
|
|
386
446
|
});
|
|
387
447
|
};
|
|
448
|
+
export const serializeAws_restJson1DisassociateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
449
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
450
|
+
const headers = {};
|
|
451
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
452
|
+
"/portals/{portalArn+}/userAccessLoggingSettings";
|
|
453
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
454
|
+
let body;
|
|
455
|
+
return new __HttpRequest({
|
|
456
|
+
protocol,
|
|
457
|
+
hostname,
|
|
458
|
+
port,
|
|
459
|
+
method: "DELETE",
|
|
460
|
+
headers,
|
|
461
|
+
path: resolvedPath,
|
|
462
|
+
body,
|
|
463
|
+
});
|
|
464
|
+
};
|
|
388
465
|
export const serializeAws_restJson1DisassociateUserSettingsCommand = async (input, context) => {
|
|
389
466
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
390
467
|
const headers = {};
|
|
@@ -517,6 +594,23 @@ export const serializeAws_restJson1GetTrustStoreCertificateCommand = async (inpu
|
|
|
517
594
|
body,
|
|
518
595
|
});
|
|
519
596
|
};
|
|
597
|
+
export const serializeAws_restJson1GetUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
598
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
599
|
+
const headers = {};
|
|
600
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
601
|
+
"/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
|
|
602
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
|
|
603
|
+
let body;
|
|
604
|
+
return new __HttpRequest({
|
|
605
|
+
protocol,
|
|
606
|
+
hostname,
|
|
607
|
+
port,
|
|
608
|
+
method: "GET",
|
|
609
|
+
headers,
|
|
610
|
+
path: resolvedPath,
|
|
611
|
+
body,
|
|
612
|
+
});
|
|
613
|
+
};
|
|
520
614
|
export const serializeAws_restJson1GetUserSettingsCommand = async (input, context) => {
|
|
521
615
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
522
616
|
const headers = {};
|
|
@@ -672,6 +766,26 @@ export const serializeAws_restJson1ListTrustStoresCommand = async (input, contex
|
|
|
672
766
|
body,
|
|
673
767
|
});
|
|
674
768
|
};
|
|
769
|
+
export const serializeAws_restJson1ListUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
770
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
771
|
+
const headers = {};
|
|
772
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
|
|
773
|
+
const query = map({
|
|
774
|
+
nextToken: [, input.nextToken],
|
|
775
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
776
|
+
});
|
|
777
|
+
let body;
|
|
778
|
+
return new __HttpRequest({
|
|
779
|
+
protocol,
|
|
780
|
+
hostname,
|
|
781
|
+
port,
|
|
782
|
+
method: "GET",
|
|
783
|
+
headers,
|
|
784
|
+
path: resolvedPath,
|
|
785
|
+
query,
|
|
786
|
+
body,
|
|
787
|
+
});
|
|
788
|
+
};
|
|
675
789
|
export const serializeAws_restJson1ListUserSettingsCommand = async (input, context) => {
|
|
676
790
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
677
791
|
const headers = {};
|
|
@@ -856,6 +970,29 @@ export const serializeAws_restJson1UpdateTrustStoreCommand = async (input, conte
|
|
|
856
970
|
body,
|
|
857
971
|
});
|
|
858
972
|
};
|
|
973
|
+
export const serializeAws_restJson1UpdateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
974
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
975
|
+
const headers = {
|
|
976
|
+
"content-type": "application/json",
|
|
977
|
+
};
|
|
978
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
979
|
+
"/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
|
|
980
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
|
|
981
|
+
let body;
|
|
982
|
+
body = JSON.stringify({
|
|
983
|
+
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
984
|
+
...(input.kinesisStreamArn != null && { kinesisStreamArn: input.kinesisStreamArn }),
|
|
985
|
+
});
|
|
986
|
+
return new __HttpRequest({
|
|
987
|
+
protocol,
|
|
988
|
+
hostname,
|
|
989
|
+
port,
|
|
990
|
+
method: "PATCH",
|
|
991
|
+
headers,
|
|
992
|
+
path: resolvedPath,
|
|
993
|
+
body,
|
|
994
|
+
});
|
|
995
|
+
};
|
|
859
996
|
export const serializeAws_restJson1UpdateUserSettingsCommand = async (input, context) => {
|
|
860
997
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
861
998
|
const headers = {
|
|
@@ -1036,6 +1173,57 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1036
1173
|
});
|
|
1037
1174
|
}
|
|
1038
1175
|
};
|
|
1176
|
+
export const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
1177
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1178
|
+
return deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommandError(output, context);
|
|
1179
|
+
}
|
|
1180
|
+
const contents = map({
|
|
1181
|
+
$metadata: deserializeMetadata(output),
|
|
1182
|
+
});
|
|
1183
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1184
|
+
if (data.portalArn != null) {
|
|
1185
|
+
contents.portalArn = __expectString(data.portalArn);
|
|
1186
|
+
}
|
|
1187
|
+
if (data.userAccessLoggingSettingsArn != null) {
|
|
1188
|
+
contents.userAccessLoggingSettingsArn = __expectString(data.userAccessLoggingSettingsArn);
|
|
1189
|
+
}
|
|
1190
|
+
return contents;
|
|
1191
|
+
};
|
|
1192
|
+
const deserializeAws_restJson1AssociateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
1193
|
+
const parsedOutput = {
|
|
1194
|
+
...output,
|
|
1195
|
+
body: await parseErrorBody(output.body, context),
|
|
1196
|
+
};
|
|
1197
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
+
switch (errorCode) {
|
|
1199
|
+
case "AccessDeniedException":
|
|
1200
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1201
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1202
|
+
case "ConflictException":
|
|
1203
|
+
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1204
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1205
|
+
case "InternalServerException":
|
|
1206
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1207
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1208
|
+
case "ResourceNotFoundException":
|
|
1209
|
+
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1210
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1211
|
+
case "ThrottlingException":
|
|
1212
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1213
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1214
|
+
case "ValidationException":
|
|
1215
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1216
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1217
|
+
default:
|
|
1218
|
+
const parsedBody = parsedOutput.body;
|
|
1219
|
+
throwDefaultError({
|
|
1220
|
+
output,
|
|
1221
|
+
parsedBody,
|
|
1222
|
+
exceptionCtor: __BaseException,
|
|
1223
|
+
errorCode,
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
};
|
|
1039
1227
|
export const deserializeAws_restJson1AssociateUserSettingsCommand = async (output, context) => {
|
|
1040
1228
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1041
1229
|
return deserializeAws_restJson1AssociateUserSettingsCommandError(output, context);
|
|
@@ -1339,6 +1527,54 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1339
1527
|
});
|
|
1340
1528
|
}
|
|
1341
1529
|
};
|
|
1530
|
+
export const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
1531
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1532
|
+
return deserializeAws_restJson1CreateUserAccessLoggingSettingsCommandError(output, context);
|
|
1533
|
+
}
|
|
1534
|
+
const contents = map({
|
|
1535
|
+
$metadata: deserializeMetadata(output),
|
|
1536
|
+
});
|
|
1537
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1538
|
+
if (data.userAccessLoggingSettingsArn != null) {
|
|
1539
|
+
contents.userAccessLoggingSettingsArn = __expectString(data.userAccessLoggingSettingsArn);
|
|
1540
|
+
}
|
|
1541
|
+
return contents;
|
|
1542
|
+
};
|
|
1543
|
+
const deserializeAws_restJson1CreateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
1544
|
+
const parsedOutput = {
|
|
1545
|
+
...output,
|
|
1546
|
+
body: await parseErrorBody(output.body, context),
|
|
1547
|
+
};
|
|
1548
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
|
+
switch (errorCode) {
|
|
1550
|
+
case "AccessDeniedException":
|
|
1551
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1552
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1553
|
+
case "ConflictException":
|
|
1554
|
+
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1555
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1556
|
+
case "InternalServerException":
|
|
1557
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1558
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1559
|
+
case "ServiceQuotaExceededException":
|
|
1560
|
+
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1561
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1562
|
+
case "ThrottlingException":
|
|
1563
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1564
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1565
|
+
case "ValidationException":
|
|
1566
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1567
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1568
|
+
default:
|
|
1569
|
+
const parsedBody = parsedOutput.body;
|
|
1570
|
+
throwDefaultError({
|
|
1571
|
+
output,
|
|
1572
|
+
parsedBody,
|
|
1573
|
+
exceptionCtor: __BaseException,
|
|
1574
|
+
errorCode,
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
};
|
|
1342
1578
|
export const deserializeAws_restJson1CreateUserSettingsCommand = async (output, context) => {
|
|
1343
1579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1344
1580
|
return deserializeAws_restJson1CreateUserSettingsCommandError(output, context);
|
|
@@ -1597,6 +1833,48 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
1597
1833
|
});
|
|
1598
1834
|
}
|
|
1599
1835
|
};
|
|
1836
|
+
export const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
1837
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1838
|
+
return deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommandError(output, context);
|
|
1839
|
+
}
|
|
1840
|
+
const contents = map({
|
|
1841
|
+
$metadata: deserializeMetadata(output),
|
|
1842
|
+
});
|
|
1843
|
+
await collectBody(output.body, context);
|
|
1844
|
+
return contents;
|
|
1845
|
+
};
|
|
1846
|
+
const deserializeAws_restJson1DeleteUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
1847
|
+
const parsedOutput = {
|
|
1848
|
+
...output,
|
|
1849
|
+
body: await parseErrorBody(output.body, context),
|
|
1850
|
+
};
|
|
1851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
|
+
switch (errorCode) {
|
|
1853
|
+
case "AccessDeniedException":
|
|
1854
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1855
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1856
|
+
case "ConflictException":
|
|
1857
|
+
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1858
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1859
|
+
case "InternalServerException":
|
|
1860
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1861
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1862
|
+
case "ThrottlingException":
|
|
1863
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1864
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1865
|
+
case "ValidationException":
|
|
1866
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1867
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1868
|
+
default:
|
|
1869
|
+
const parsedBody = parsedOutput.body;
|
|
1870
|
+
throwDefaultError({
|
|
1871
|
+
output,
|
|
1872
|
+
parsedBody,
|
|
1873
|
+
exceptionCtor: __BaseException,
|
|
1874
|
+
errorCode,
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
};
|
|
1600
1878
|
export const deserializeAws_restJson1DeleteUserSettingsCommand = async (output, context) => {
|
|
1601
1879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1602
1880
|
return deserializeAws_restJson1DeleteUserSettingsCommandError(output, context);
|
|
@@ -1765,6 +2043,48 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
1765
2043
|
});
|
|
1766
2044
|
}
|
|
1767
2045
|
};
|
|
2046
|
+
export const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
2047
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2048
|
+
return deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommandError(output, context);
|
|
2049
|
+
}
|
|
2050
|
+
const contents = map({
|
|
2051
|
+
$metadata: deserializeMetadata(output),
|
|
2052
|
+
});
|
|
2053
|
+
await collectBody(output.body, context);
|
|
2054
|
+
return contents;
|
|
2055
|
+
};
|
|
2056
|
+
const deserializeAws_restJson1DisassociateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
2057
|
+
const parsedOutput = {
|
|
2058
|
+
...output,
|
|
2059
|
+
body: await parseErrorBody(output.body, context),
|
|
2060
|
+
};
|
|
2061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
|
+
switch (errorCode) {
|
|
2063
|
+
case "AccessDeniedException":
|
|
2064
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2065
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2066
|
+
case "InternalServerException":
|
|
2067
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2068
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2069
|
+
case "ResourceNotFoundException":
|
|
2070
|
+
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2071
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2072
|
+
case "ThrottlingException":
|
|
2073
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2074
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2075
|
+
case "ValidationException":
|
|
2076
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2077
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2078
|
+
default:
|
|
2079
|
+
const parsedBody = parsedOutput.body;
|
|
2080
|
+
throwDefaultError({
|
|
2081
|
+
output,
|
|
2082
|
+
parsedBody,
|
|
2083
|
+
exceptionCtor: __BaseException,
|
|
2084
|
+
errorCode,
|
|
2085
|
+
});
|
|
2086
|
+
}
|
|
2087
|
+
};
|
|
1768
2088
|
export const deserializeAws_restJson1DisassociateUserSettingsCommand = async (output, context) => {
|
|
1769
2089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1770
2090
|
return deserializeAws_restJson1DisassociateUserSettingsCommandError(output, context);
|
|
@@ -2128,6 +2448,51 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2128
2448
|
});
|
|
2129
2449
|
}
|
|
2130
2450
|
};
|
|
2451
|
+
export const deserializeAws_restJson1GetUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
2452
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2453
|
+
return deserializeAws_restJson1GetUserAccessLoggingSettingsCommandError(output, context);
|
|
2454
|
+
}
|
|
2455
|
+
const contents = map({
|
|
2456
|
+
$metadata: deserializeMetadata(output),
|
|
2457
|
+
});
|
|
2458
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2459
|
+
if (data.userAccessLoggingSettings != null) {
|
|
2460
|
+
contents.userAccessLoggingSettings = deserializeAws_restJson1UserAccessLoggingSettings(data.userAccessLoggingSettings, context);
|
|
2461
|
+
}
|
|
2462
|
+
return contents;
|
|
2463
|
+
};
|
|
2464
|
+
const deserializeAws_restJson1GetUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
2465
|
+
const parsedOutput = {
|
|
2466
|
+
...output,
|
|
2467
|
+
body: await parseErrorBody(output.body, context),
|
|
2468
|
+
};
|
|
2469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
|
+
switch (errorCode) {
|
|
2471
|
+
case "AccessDeniedException":
|
|
2472
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2473
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2474
|
+
case "InternalServerException":
|
|
2475
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2476
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2477
|
+
case "ResourceNotFoundException":
|
|
2478
|
+
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2479
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2480
|
+
case "ThrottlingException":
|
|
2481
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2482
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2483
|
+
case "ValidationException":
|
|
2484
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2485
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2486
|
+
default:
|
|
2487
|
+
const parsedBody = parsedOutput.body;
|
|
2488
|
+
throwDefaultError({
|
|
2489
|
+
output,
|
|
2490
|
+
parsedBody,
|
|
2491
|
+
exceptionCtor: __BaseException,
|
|
2492
|
+
errorCode,
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
};
|
|
2131
2496
|
export const deserializeAws_restJson1GetUserSettingsCommand = async (output, context) => {
|
|
2132
2497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2133
2498
|
return deserializeAws_restJson1GetUserSettingsCommandError(output, context);
|
|
@@ -2494,6 +2859,51 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
2494
2859
|
});
|
|
2495
2860
|
}
|
|
2496
2861
|
};
|
|
2862
|
+
export const deserializeAws_restJson1ListUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
2863
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2864
|
+
return deserializeAws_restJson1ListUserAccessLoggingSettingsCommandError(output, context);
|
|
2865
|
+
}
|
|
2866
|
+
const contents = map({
|
|
2867
|
+
$metadata: deserializeMetadata(output),
|
|
2868
|
+
});
|
|
2869
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2870
|
+
if (data.nextToken != null) {
|
|
2871
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
2872
|
+
}
|
|
2873
|
+
if (data.userAccessLoggingSettings != null) {
|
|
2874
|
+
contents.userAccessLoggingSettings = deserializeAws_restJson1UserAccessLoggingSettingsList(data.userAccessLoggingSettings, context);
|
|
2875
|
+
}
|
|
2876
|
+
return contents;
|
|
2877
|
+
};
|
|
2878
|
+
const deserializeAws_restJson1ListUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
2879
|
+
const parsedOutput = {
|
|
2880
|
+
...output,
|
|
2881
|
+
body: await parseErrorBody(output.body, context),
|
|
2882
|
+
};
|
|
2883
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2884
|
+
switch (errorCode) {
|
|
2885
|
+
case "AccessDeniedException":
|
|
2886
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2887
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2888
|
+
case "InternalServerException":
|
|
2889
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2890
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2891
|
+
case "ThrottlingException":
|
|
2892
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2893
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2894
|
+
case "ValidationException":
|
|
2895
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2896
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2897
|
+
default:
|
|
2898
|
+
const parsedBody = parsedOutput.body;
|
|
2899
|
+
throwDefaultError({
|
|
2900
|
+
output,
|
|
2901
|
+
parsedBody,
|
|
2902
|
+
exceptionCtor: __BaseException,
|
|
2903
|
+
errorCode,
|
|
2904
|
+
});
|
|
2905
|
+
}
|
|
2906
|
+
};
|
|
2497
2907
|
export const deserializeAws_restJson1ListUserSettingsCommand = async (output, context) => {
|
|
2498
2908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2499
2909
|
return deserializeAws_restJson1ListUserSettingsCommandError(output, context);
|
|
@@ -2854,6 +3264,51 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
2854
3264
|
});
|
|
2855
3265
|
}
|
|
2856
3266
|
};
|
|
3267
|
+
export const deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
3268
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3269
|
+
return deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommandError(output, context);
|
|
3270
|
+
}
|
|
3271
|
+
const contents = map({
|
|
3272
|
+
$metadata: deserializeMetadata(output),
|
|
3273
|
+
});
|
|
3274
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3275
|
+
if (data.userAccessLoggingSettings != null) {
|
|
3276
|
+
contents.userAccessLoggingSettings = deserializeAws_restJson1UserAccessLoggingSettings(data.userAccessLoggingSettings, context);
|
|
3277
|
+
}
|
|
3278
|
+
return contents;
|
|
3279
|
+
};
|
|
3280
|
+
const deserializeAws_restJson1UpdateUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
3281
|
+
const parsedOutput = {
|
|
3282
|
+
...output,
|
|
3283
|
+
body: await parseErrorBody(output.body, context),
|
|
3284
|
+
};
|
|
3285
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3286
|
+
switch (errorCode) {
|
|
3287
|
+
case "AccessDeniedException":
|
|
3288
|
+
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3289
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3290
|
+
case "InternalServerException":
|
|
3291
|
+
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3292
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3293
|
+
case "ResourceNotFoundException":
|
|
3294
|
+
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3295
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3296
|
+
case "ThrottlingException":
|
|
3297
|
+
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3298
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3299
|
+
case "ValidationException":
|
|
3300
|
+
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3301
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3302
|
+
default:
|
|
3303
|
+
const parsedBody = parsedOutput.body;
|
|
3304
|
+
throwDefaultError({
|
|
3305
|
+
output,
|
|
3306
|
+
parsedBody,
|
|
3307
|
+
exceptionCtor: __BaseException,
|
|
3308
|
+
errorCode,
|
|
3309
|
+
});
|
|
3310
|
+
}
|
|
3311
|
+
};
|
|
2857
3312
|
export const deserializeAws_restJson1UpdateUserSettingsCommand = async (output, context) => {
|
|
2858
3313
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2859
3314
|
return deserializeAws_restJson1UpdateUserSettingsCommandError(output, context);
|
|
@@ -3266,6 +3721,7 @@ const deserializeAws_restJson1Portal = (output, context) => {
|
|
|
3266
3721
|
rendererType: __expectString(output.rendererType),
|
|
3267
3722
|
statusReason: __expectString(output.statusReason),
|
|
3268
3723
|
trustStoreArn: __expectString(output.trustStoreArn),
|
|
3724
|
+
userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
|
|
3269
3725
|
userSettingsArn: __expectString(output.userSettingsArn),
|
|
3270
3726
|
};
|
|
3271
3727
|
};
|
|
@@ -3294,6 +3750,7 @@ const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
|
3294
3750
|
portalStatus: __expectString(output.portalStatus),
|
|
3295
3751
|
rendererType: __expectString(output.rendererType),
|
|
3296
3752
|
trustStoreArn: __expectString(output.trustStoreArn),
|
|
3753
|
+
userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
|
|
3297
3754
|
userSettingsArn: __expectString(output.userSettingsArn),
|
|
3298
3755
|
};
|
|
3299
3756
|
};
|
|
@@ -3360,6 +3817,32 @@ const deserializeAws_restJson1TrustStoreSummaryList = (output, context) => {
|
|
|
3360
3817
|
});
|
|
3361
3818
|
return retVal;
|
|
3362
3819
|
};
|
|
3820
|
+
const deserializeAws_restJson1UserAccessLoggingSettings = (output, context) => {
|
|
3821
|
+
return {
|
|
3822
|
+
associatedPortalArns: output.associatedPortalArns != null
|
|
3823
|
+
? deserializeAws_restJson1ArnList(output.associatedPortalArns, context)
|
|
3824
|
+
: undefined,
|
|
3825
|
+
kinesisStreamArn: __expectString(output.kinesisStreamArn),
|
|
3826
|
+
userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
|
|
3827
|
+
};
|
|
3828
|
+
};
|
|
3829
|
+
const deserializeAws_restJson1UserAccessLoggingSettingsList = (output, context) => {
|
|
3830
|
+
const retVal = (output || [])
|
|
3831
|
+
.filter((e) => e != null)
|
|
3832
|
+
.map((entry) => {
|
|
3833
|
+
if (entry === null) {
|
|
3834
|
+
return null;
|
|
3835
|
+
}
|
|
3836
|
+
return deserializeAws_restJson1UserAccessLoggingSettingsSummary(entry, context);
|
|
3837
|
+
});
|
|
3838
|
+
return retVal;
|
|
3839
|
+
};
|
|
3840
|
+
const deserializeAws_restJson1UserAccessLoggingSettingsSummary = (output, context) => {
|
|
3841
|
+
return {
|
|
3842
|
+
kinesisStreamArn: __expectString(output.kinesisStreamArn),
|
|
3843
|
+
userAccessLoggingSettingsArn: __expectString(output.userAccessLoggingSettingsArn),
|
|
3844
|
+
};
|
|
3845
|
+
};
|
|
3363
3846
|
const deserializeAws_restJson1UserSettings = (output, context) => {
|
|
3364
3847
|
return {
|
|
3365
3848
|
associatedPortalArns: output.associatedPortalArns != null
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
-
import {
|
|
2
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
3
3
|
export const getRuntimeConfig = (config) => ({
|
|
4
4
|
apiVersion: "2020-07-08",
|
|
5
5
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
6
7
|
logger: config?.logger ?? {},
|
|
7
|
-
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
8
8
|
serviceId: config?.serviceId ?? "WorkSpaces Web",
|
|
9
9
|
urlParser: config?.urlParser ?? parseUrl,
|
|
10
10
|
});
|