@aws-sdk/client-securitylake 3.220.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/LICENSE +201 -0
- package/README.md +219 -0
- package/dist-cjs/SecurityLake.js +457 -0
- package/dist-cjs/SecurityLakeClient.js +40 -0
- package/dist-cjs/commands/CreateAwsLogSourceCommand.js +46 -0
- package/dist-cjs/commands/CreateCustomLogSourceCommand.js +46 -0
- package/dist-cjs/commands/CreateDatalakeAutoEnableCommand.js +46 -0
- package/dist-cjs/commands/CreateDatalakeCommand.js +46 -0
- package/dist-cjs/commands/CreateDatalakeDelegatedAdminCommand.js +46 -0
- package/dist-cjs/commands/CreateDatalakeExceptionsSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/CreateSubscriberCommand.js +46 -0
- package/dist-cjs/commands/CreateSubscriptionNotificationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/DeleteAwsLogSourceCommand.js +46 -0
- package/dist-cjs/commands/DeleteCustomLogSourceCommand.js +46 -0
- package/dist-cjs/commands/DeleteDatalakeAutoEnableCommand.js +46 -0
- package/dist-cjs/commands/DeleteDatalakeCommand.js +46 -0
- package/dist-cjs/commands/DeleteDatalakeDelegatedAdminCommand.js +46 -0
- package/dist-cjs/commands/DeleteDatalakeExceptionsSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/DeleteSubscriberCommand.js +46 -0
- package/dist-cjs/commands/DeleteSubscriptionNotificationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeAutoEnableCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeExceptionsExpiryCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeExceptionsSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/GetDatalakeStatusCommand.js +46 -0
- package/dist-cjs/commands/GetSubscriberCommand.js +46 -0
- package/dist-cjs/commands/ListDatalakeExceptionsCommand.js +46 -0
- package/dist-cjs/commands/ListLogSourcesCommand.js +46 -0
- package/dist-cjs/commands/ListSubscribersCommand.js +46 -0
- package/dist-cjs/commands/UpdateDatalakeCommand.js +46 -0
- package/dist-cjs/commands/UpdateDatalakeExceptionsExpiryCommand.js +46 -0
- package/dist-cjs/commands/UpdateDatalakeExceptionsSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/UpdateSubscriberCommand.js +46 -0
- package/dist-cjs/commands/UpdateSubscriptionNotificationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/index.js +33 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/SecurityLakeServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +652 -0
- package/dist-cjs/pagination/GetDatalakeStatusPaginator.js +36 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListDatalakeExceptionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListLogSourcesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSubscribersPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2809 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/SecurityLake.js +453 -0
- package/dist-es/SecurityLakeClient.js +36 -0
- package/dist-es/commands/CreateAwsLogSourceCommand.js +42 -0
- package/dist-es/commands/CreateCustomLogSourceCommand.js +42 -0
- package/dist-es/commands/CreateDatalakeAutoEnableCommand.js +42 -0
- package/dist-es/commands/CreateDatalakeCommand.js +42 -0
- package/dist-es/commands/CreateDatalakeDelegatedAdminCommand.js +42 -0
- package/dist-es/commands/CreateDatalakeExceptionsSubscriptionCommand.js +42 -0
- package/dist-es/commands/CreateSubscriberCommand.js +42 -0
- package/dist-es/commands/CreateSubscriptionNotificationConfigurationCommand.js +42 -0
- package/dist-es/commands/DeleteAwsLogSourceCommand.js +42 -0
- package/dist-es/commands/DeleteCustomLogSourceCommand.js +42 -0
- package/dist-es/commands/DeleteDatalakeAutoEnableCommand.js +42 -0
- package/dist-es/commands/DeleteDatalakeCommand.js +42 -0
- package/dist-es/commands/DeleteDatalakeDelegatedAdminCommand.js +42 -0
- package/dist-es/commands/DeleteDatalakeExceptionsSubscriptionCommand.js +42 -0
- package/dist-es/commands/DeleteSubscriberCommand.js +42 -0
- package/dist-es/commands/DeleteSubscriptionNotificationConfigurationCommand.js +42 -0
- package/dist-es/commands/GetDatalakeAutoEnableCommand.js +42 -0
- package/dist-es/commands/GetDatalakeCommand.js +42 -0
- package/dist-es/commands/GetDatalakeExceptionsExpiryCommand.js +42 -0
- package/dist-es/commands/GetDatalakeExceptionsSubscriptionCommand.js +42 -0
- package/dist-es/commands/GetDatalakeStatusCommand.js +42 -0
- package/dist-es/commands/GetSubscriberCommand.js +42 -0
- package/dist-es/commands/ListDatalakeExceptionsCommand.js +42 -0
- package/dist-es/commands/ListLogSourcesCommand.js +42 -0
- package/dist-es/commands/ListSubscribersCommand.js +42 -0
- package/dist-es/commands/UpdateDatalakeCommand.js +42 -0
- package/dist-es/commands/UpdateDatalakeExceptionsExpiryCommand.js +42 -0
- package/dist-es/commands/UpdateDatalakeExceptionsSubscriptionCommand.js +42 -0
- package/dist-es/commands/UpdateSubscriberCommand.js +42 -0
- package/dist-es/commands/UpdateSubscriptionNotificationConfigurationCommand.js +42 -0
- package/dist-es/commands/index.js +30 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/SecurityLakeServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +560 -0
- package/dist-es/pagination/GetDatalakeStatusPaginator.js +32 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListDatalakeExceptionsPaginator.js +32 -0
- package/dist-es/pagination/ListLogSourcesPaginator.js +32 -0
- package/dist-es/pagination/ListSubscribersPaginator.js +32 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +2745 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/SecurityLake.d.ts +303 -0
- package/dist-types/SecurityLakeClient.d.ts +185 -0
- package/dist-types/commands/CreateAwsLogSourceCommand.d.ts +51 -0
- package/dist-types/commands/CreateCustomLogSourceCommand.d.ts +42 -0
- package/dist-types/commands/CreateDatalakeAutoEnableCommand.d.ts +38 -0
- package/dist-types/commands/CreateDatalakeCommand.d.ts +49 -0
- package/dist-types/commands/CreateDatalakeDelegatedAdminCommand.d.ts +39 -0
- package/dist-types/commands/CreateDatalakeExceptionsSubscriptionCommand.d.ts +38 -0
- package/dist-types/commands/CreateSubscriberCommand.d.ts +37 -0
- package/dist-types/commands/CreateSubscriptionNotificationConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DeleteAwsLogSourceCommand.d.ts +53 -0
- package/dist-types/commands/DeleteCustomLogSourceCommand.d.ts +37 -0
- package/dist-types/commands/DeleteDatalakeAutoEnableCommand.d.ts +42 -0
- package/dist-types/commands/DeleteDatalakeCommand.d.ts +43 -0
- package/dist-types/commands/DeleteDatalakeDelegatedAdminCommand.d.ts +37 -0
- package/dist-types/commands/DeleteDatalakeExceptionsSubscriptionCommand.d.ts +37 -0
- package/dist-types/commands/DeleteSubscriberCommand.d.ts +37 -0
- package/dist-types/commands/DeleteSubscriptionNotificationConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/GetDatalakeAutoEnableCommand.d.ts +37 -0
- package/dist-types/commands/GetDatalakeCommand.d.ts +37 -0
- package/dist-types/commands/GetDatalakeExceptionsExpiryCommand.d.ts +38 -0
- package/dist-types/commands/GetDatalakeExceptionsSubscriptionCommand.d.ts +37 -0
- package/dist-types/commands/GetDatalakeStatusCommand.d.ts +37 -0
- package/dist-types/commands/GetSubscriberCommand.d.ts +37 -0
- package/dist-types/commands/ListDatalakeExceptionsCommand.d.ts +37 -0
- package/dist-types/commands/ListLogSourcesCommand.d.ts +37 -0
- package/dist-types/commands/ListSubscribersCommand.d.ts +37 -0
- package/dist-types/commands/UpdateDatalakeCommand.d.ts +40 -0
- package/dist-types/commands/UpdateDatalakeExceptionsExpiryCommand.d.ts +40 -0
- package/dist-types/commands/UpdateDatalakeExceptionsSubscriptionCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSubscriberCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSubscriptionNotificationConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +30 -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/index.d.ts +6 -0
- package/dist-types/models/SecurityLakeServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1497 -0
- package/dist-types/pagination/GetDatalakeStatusPaginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListDatalakeExceptionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListLogSourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSubscribersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/SecurityLake.d.ts +556 -0
- package/dist-types/ts3.4/SecurityLakeClient.d.ts +292 -0
- package/dist-types/ts3.4/commands/CreateAwsLogSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateCustomLogSourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateDatalakeAutoEnableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateDatalakeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateDatalakeDelegatedAdminCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateDatalakeExceptionsSubscriptionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateSubscriberCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateSubscriptionNotificationConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteAwsLogSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteCustomLogSourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteDatalakeAutoEnableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteDatalakeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteDatalakeDelegatedAdminCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteDatalakeExceptionsSubscriptionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteSubscriberCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteSubscriptionNotificationConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetDatalakeAutoEnableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetDatalakeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetDatalakeExceptionsExpiryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetDatalakeExceptionsSubscriptionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetDatalakeStatusCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSubscriberCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListDatalakeExceptionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListLogSourcesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListSubscribersCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateDatalakeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateDatalakeExceptionsExpiryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateDatalakeExceptionsSubscriptionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSubscriberCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateSubscriptionNotificationConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +30 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -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/index.d.ts +6 -0
- package/dist-types/ts3.4/models/SecurityLakeServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +746 -0
- package/dist-types/ts3.4/pagination/GetDatalakeStatusPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListDatalakeExceptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLogSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSubscribersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +365 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +101 -0
|
@@ -0,0 +1,2809 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deserializeAws_restJson1GetDatalakeExceptionsSubscriptionCommand = exports.deserializeAws_restJson1GetDatalakeExceptionsExpiryCommand = exports.deserializeAws_restJson1GetDatalakeAutoEnableCommand = exports.deserializeAws_restJson1GetDatalakeCommand = exports.deserializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommand = exports.deserializeAws_restJson1DeleteSubscriberCommand = exports.deserializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommand = exports.deserializeAws_restJson1DeleteDatalakeDelegatedAdminCommand = exports.deserializeAws_restJson1DeleteDatalakeAutoEnableCommand = exports.deserializeAws_restJson1DeleteDatalakeCommand = exports.deserializeAws_restJson1DeleteCustomLogSourceCommand = exports.deserializeAws_restJson1DeleteAwsLogSourceCommand = exports.deserializeAws_restJson1CreateSubscriptionNotificationConfigurationCommand = exports.deserializeAws_restJson1CreateSubscriberCommand = exports.deserializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommand = exports.deserializeAws_restJson1CreateDatalakeDelegatedAdminCommand = exports.deserializeAws_restJson1CreateDatalakeAutoEnableCommand = exports.deserializeAws_restJson1CreateDatalakeCommand = exports.deserializeAws_restJson1CreateCustomLogSourceCommand = exports.deserializeAws_restJson1CreateAwsLogSourceCommand = exports.serializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommand = exports.serializeAws_restJson1UpdateSubscriberCommand = exports.serializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommand = exports.serializeAws_restJson1UpdateDatalakeExceptionsExpiryCommand = exports.serializeAws_restJson1UpdateDatalakeCommand = exports.serializeAws_restJson1ListSubscribersCommand = exports.serializeAws_restJson1ListLogSourcesCommand = exports.serializeAws_restJson1ListDatalakeExceptionsCommand = exports.serializeAws_restJson1GetSubscriberCommand = exports.serializeAws_restJson1GetDatalakeStatusCommand = exports.serializeAws_restJson1GetDatalakeExceptionsSubscriptionCommand = exports.serializeAws_restJson1GetDatalakeExceptionsExpiryCommand = exports.serializeAws_restJson1GetDatalakeAutoEnableCommand = exports.serializeAws_restJson1GetDatalakeCommand = exports.serializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommand = exports.serializeAws_restJson1DeleteSubscriberCommand = exports.serializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommand = exports.serializeAws_restJson1DeleteDatalakeDelegatedAdminCommand = exports.serializeAws_restJson1DeleteDatalakeAutoEnableCommand = exports.serializeAws_restJson1DeleteDatalakeCommand = exports.serializeAws_restJson1DeleteCustomLogSourceCommand = exports.serializeAws_restJson1DeleteAwsLogSourceCommand = exports.serializeAws_restJson1CreateSubscriptionNotificationConfigurationCommand = exports.serializeAws_restJson1CreateSubscriberCommand = exports.serializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommand = exports.serializeAws_restJson1CreateDatalakeDelegatedAdminCommand = exports.serializeAws_restJson1CreateDatalakeAutoEnableCommand = exports.serializeAws_restJson1CreateDatalakeCommand = exports.serializeAws_restJson1CreateCustomLogSourceCommand = exports.serializeAws_restJson1CreateAwsLogSourceCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommand = exports.deserializeAws_restJson1UpdateSubscriberCommand = exports.deserializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommand = exports.deserializeAws_restJson1UpdateDatalakeExceptionsExpiryCommand = exports.deserializeAws_restJson1UpdateDatalakeCommand = exports.deserializeAws_restJson1ListSubscribersCommand = exports.deserializeAws_restJson1ListLogSourcesCommand = exports.deserializeAws_restJson1ListDatalakeExceptionsCommand = exports.deserializeAws_restJson1GetSubscriberCommand = exports.deserializeAws_restJson1GetDatalakeStatusCommand = void 0;
|
|
5
|
+
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const SecurityLakeServiceException_1 = require("../models/SecurityLakeServiceException");
|
|
9
|
+
const serializeAws_restJson1CreateAwsLogSourceCommand = async (input, context) => {
|
|
10
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
|
+
const headers = {
|
|
12
|
+
"content-type": "application/json",
|
|
13
|
+
};
|
|
14
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/aws";
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify({
|
|
17
|
+
...(input.enableAllDimensions != null && {
|
|
18
|
+
enableAllDimensions: serializeAws_restJson1AllDimensionsMap(input.enableAllDimensions, context),
|
|
19
|
+
}),
|
|
20
|
+
...(input.enableSingleDimension != null && {
|
|
21
|
+
enableSingleDimension: serializeAws_restJson1InputSet(input.enableSingleDimension, context),
|
|
22
|
+
}),
|
|
23
|
+
...(input.enableTwoDimensions != null && {
|
|
24
|
+
enableTwoDimensions: serializeAws_restJson1TwoDimensionsMap(input.enableTwoDimensions, context),
|
|
25
|
+
}),
|
|
26
|
+
...(input.inputOrder != null && { inputOrder: serializeAws_restJson1DimensionSet(input.inputOrder, context) }),
|
|
27
|
+
});
|
|
28
|
+
return new protocol_http_1.HttpRequest({
|
|
29
|
+
protocol,
|
|
30
|
+
hostname,
|
|
31
|
+
port,
|
|
32
|
+
method: "POST",
|
|
33
|
+
headers,
|
|
34
|
+
path: resolvedPath,
|
|
35
|
+
body,
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
exports.serializeAws_restJson1CreateAwsLogSourceCommand = serializeAws_restJson1CreateAwsLogSourceCommand;
|
|
39
|
+
const serializeAws_restJson1CreateCustomLogSourceCommand = async (input, context) => {
|
|
40
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
|
+
const headers = {
|
|
42
|
+
"content-type": "application/json",
|
|
43
|
+
};
|
|
44
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/custom";
|
|
45
|
+
let body;
|
|
46
|
+
body = JSON.stringify({
|
|
47
|
+
...(input.customSourceName != null && { customSourceName: input.customSourceName }),
|
|
48
|
+
...(input.eventClass != null && { eventClass: input.eventClass }),
|
|
49
|
+
...(input.glueInvocationRoleArn != null && { glueInvocationRoleArn: input.glueInvocationRoleArn }),
|
|
50
|
+
...(input.logProviderAccountId != null && { logProviderAccountId: input.logProviderAccountId }),
|
|
51
|
+
});
|
|
52
|
+
return new protocol_http_1.HttpRequest({
|
|
53
|
+
protocol,
|
|
54
|
+
hostname,
|
|
55
|
+
port,
|
|
56
|
+
method: "POST",
|
|
57
|
+
headers,
|
|
58
|
+
path: resolvedPath,
|
|
59
|
+
body,
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
exports.serializeAws_restJson1CreateCustomLogSourceCommand = serializeAws_restJson1CreateCustomLogSourceCommand;
|
|
63
|
+
const serializeAws_restJson1CreateDatalakeCommand = async (input, context) => {
|
|
64
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
65
|
+
const headers = {
|
|
66
|
+
"content-type": "application/json",
|
|
67
|
+
};
|
|
68
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
69
|
+
let body;
|
|
70
|
+
body = JSON.stringify({
|
|
71
|
+
...(input.configurations != null && {
|
|
72
|
+
configurations: serializeAws_restJson1LakeConfigurationRequestMap(input.configurations, context),
|
|
73
|
+
}),
|
|
74
|
+
...(input.enableAll != null && { enableAll: input.enableAll }),
|
|
75
|
+
...(input.metaStoreManagerRoleArn != null && { metaStoreManagerRoleArn: input.metaStoreManagerRoleArn }),
|
|
76
|
+
...(input.regions != null && { regions: serializeAws_restJson1RegionSet(input.regions, context) }),
|
|
77
|
+
});
|
|
78
|
+
return new protocol_http_1.HttpRequest({
|
|
79
|
+
protocol,
|
|
80
|
+
hostname,
|
|
81
|
+
port,
|
|
82
|
+
method: "POST",
|
|
83
|
+
headers,
|
|
84
|
+
path: resolvedPath,
|
|
85
|
+
body,
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
exports.serializeAws_restJson1CreateDatalakeCommand = serializeAws_restJson1CreateDatalakeCommand;
|
|
89
|
+
const serializeAws_restJson1CreateDatalakeAutoEnableCommand = async (input, context) => {
|
|
90
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
91
|
+
const headers = {
|
|
92
|
+
"content-type": "application/json",
|
|
93
|
+
};
|
|
94
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/autoenable";
|
|
95
|
+
let body;
|
|
96
|
+
body = JSON.stringify({
|
|
97
|
+
...(input.configurationForNewAccounts != null && {
|
|
98
|
+
configurationForNewAccounts: serializeAws_restJson1AutoEnableNewRegionConfigurationList(input.configurationForNewAccounts, context),
|
|
99
|
+
}),
|
|
100
|
+
});
|
|
101
|
+
return new protocol_http_1.HttpRequest({
|
|
102
|
+
protocol,
|
|
103
|
+
hostname,
|
|
104
|
+
port,
|
|
105
|
+
method: "POST",
|
|
106
|
+
headers,
|
|
107
|
+
path: resolvedPath,
|
|
108
|
+
body,
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
exports.serializeAws_restJson1CreateDatalakeAutoEnableCommand = serializeAws_restJson1CreateDatalakeAutoEnableCommand;
|
|
112
|
+
const serializeAws_restJson1CreateDatalakeDelegatedAdminCommand = async (input, context) => {
|
|
113
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/json",
|
|
116
|
+
};
|
|
117
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate";
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify({
|
|
120
|
+
...(input.account != null && { account: input.account }),
|
|
121
|
+
});
|
|
122
|
+
return new protocol_http_1.HttpRequest({
|
|
123
|
+
protocol,
|
|
124
|
+
hostname,
|
|
125
|
+
port,
|
|
126
|
+
method: "POST",
|
|
127
|
+
headers,
|
|
128
|
+
path: resolvedPath,
|
|
129
|
+
body,
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
exports.serializeAws_restJson1CreateDatalakeDelegatedAdminCommand = serializeAws_restJson1CreateDatalakeDelegatedAdminCommand;
|
|
133
|
+
const serializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommand = async (input, context) => {
|
|
134
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
135
|
+
const headers = {
|
|
136
|
+
"content-type": "application/json",
|
|
137
|
+
};
|
|
138
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
139
|
+
let body;
|
|
140
|
+
body = JSON.stringify({
|
|
141
|
+
...(input.notificationEndpoint != null && { notificationEndpoint: input.notificationEndpoint }),
|
|
142
|
+
...(input.subscriptionProtocol != null && { subscriptionProtocol: input.subscriptionProtocol }),
|
|
143
|
+
});
|
|
144
|
+
return new protocol_http_1.HttpRequest({
|
|
145
|
+
protocol,
|
|
146
|
+
hostname,
|
|
147
|
+
port,
|
|
148
|
+
method: "POST",
|
|
149
|
+
headers,
|
|
150
|
+
path: resolvedPath,
|
|
151
|
+
body,
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
exports.serializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommand = serializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommand;
|
|
155
|
+
const serializeAws_restJson1CreateSubscriberCommand = async (input, context) => {
|
|
156
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
157
|
+
const headers = {
|
|
158
|
+
"content-type": "application/json",
|
|
159
|
+
};
|
|
160
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
|
|
161
|
+
let body;
|
|
162
|
+
body = JSON.stringify({
|
|
163
|
+
...(input.accessTypes != null && { accessTypes: serializeAws_restJson1AccessTypeList(input.accessTypes, context) }),
|
|
164
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
165
|
+
...(input.externalId != null && { externalId: input.externalId }),
|
|
166
|
+
...(input.sourceTypes != null && { sourceTypes: serializeAws_restJson1SourceTypeList(input.sourceTypes, context) }),
|
|
167
|
+
...(input.subscriberDescription != null && { subscriberDescription: input.subscriberDescription }),
|
|
168
|
+
...(input.subscriberName != null && { subscriberName: input.subscriberName }),
|
|
169
|
+
});
|
|
170
|
+
return new protocol_http_1.HttpRequest({
|
|
171
|
+
protocol,
|
|
172
|
+
hostname,
|
|
173
|
+
port,
|
|
174
|
+
method: "POST",
|
|
175
|
+
headers,
|
|
176
|
+
path: resolvedPath,
|
|
177
|
+
body,
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
exports.serializeAws_restJson1CreateSubscriberCommand = serializeAws_restJson1CreateSubscriberCommand;
|
|
181
|
+
const serializeAws_restJson1CreateSubscriptionNotificationConfigurationCommand = async (input, context) => {
|
|
182
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
183
|
+
const headers = {
|
|
184
|
+
"content-type": "application/json",
|
|
185
|
+
};
|
|
186
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
187
|
+
"/subscription-notifications/{subscriptionId}";
|
|
188
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriptionId", () => input.subscriptionId, "{subscriptionId}", false);
|
|
189
|
+
let body;
|
|
190
|
+
body = JSON.stringify({
|
|
191
|
+
...(input.createSqs != null && { createSqs: input.createSqs }),
|
|
192
|
+
...(input.httpsApiKeyName != null && { httpsApiKeyName: input.httpsApiKeyName }),
|
|
193
|
+
...(input.httpsApiKeyValue != null && { httpsApiKeyValue: input.httpsApiKeyValue }),
|
|
194
|
+
...(input.httpsMethod != null && { httpsMethod: input.httpsMethod }),
|
|
195
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
196
|
+
...(input.subscriptionEndpoint != null && { subscriptionEndpoint: input.subscriptionEndpoint }),
|
|
197
|
+
});
|
|
198
|
+
return new protocol_http_1.HttpRequest({
|
|
199
|
+
protocol,
|
|
200
|
+
hostname,
|
|
201
|
+
port,
|
|
202
|
+
method: "POST",
|
|
203
|
+
headers,
|
|
204
|
+
path: resolvedPath,
|
|
205
|
+
body,
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
exports.serializeAws_restJson1CreateSubscriptionNotificationConfigurationCommand = serializeAws_restJson1CreateSubscriptionNotificationConfigurationCommand;
|
|
209
|
+
const serializeAws_restJson1DeleteAwsLogSourceCommand = async (input, context) => {
|
|
210
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
|
+
const headers = {
|
|
212
|
+
"content-type": "application/json",
|
|
213
|
+
};
|
|
214
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/aws/delete";
|
|
215
|
+
let body;
|
|
216
|
+
body = JSON.stringify({
|
|
217
|
+
...(input.disableAllDimensions != null && {
|
|
218
|
+
disableAllDimensions: serializeAws_restJson1AllDimensionsMap(input.disableAllDimensions, context),
|
|
219
|
+
}),
|
|
220
|
+
...(input.disableSingleDimension != null && {
|
|
221
|
+
disableSingleDimension: serializeAws_restJson1InputSet(input.disableSingleDimension, context),
|
|
222
|
+
}),
|
|
223
|
+
...(input.disableTwoDimensions != null && {
|
|
224
|
+
disableTwoDimensions: serializeAws_restJson1TwoDimensionsMap(input.disableTwoDimensions, context),
|
|
225
|
+
}),
|
|
226
|
+
...(input.inputOrder != null && { inputOrder: serializeAws_restJson1DimensionSet(input.inputOrder, context) }),
|
|
227
|
+
});
|
|
228
|
+
return new protocol_http_1.HttpRequest({
|
|
229
|
+
protocol,
|
|
230
|
+
hostname,
|
|
231
|
+
port,
|
|
232
|
+
method: "POST",
|
|
233
|
+
headers,
|
|
234
|
+
path: resolvedPath,
|
|
235
|
+
body,
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
exports.serializeAws_restJson1DeleteAwsLogSourceCommand = serializeAws_restJson1DeleteAwsLogSourceCommand;
|
|
239
|
+
const serializeAws_restJson1DeleteCustomLogSourceCommand = async (input, context) => {
|
|
240
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
241
|
+
const headers = {};
|
|
242
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/custom";
|
|
243
|
+
const query = map({
|
|
244
|
+
customSourceName: [, (0, smithy_client_1.expectNonNull)(input.customSourceName, `customSourceName`)],
|
|
245
|
+
});
|
|
246
|
+
let body;
|
|
247
|
+
return new protocol_http_1.HttpRequest({
|
|
248
|
+
protocol,
|
|
249
|
+
hostname,
|
|
250
|
+
port,
|
|
251
|
+
method: "DELETE",
|
|
252
|
+
headers,
|
|
253
|
+
path: resolvedPath,
|
|
254
|
+
query,
|
|
255
|
+
body,
|
|
256
|
+
});
|
|
257
|
+
};
|
|
258
|
+
exports.serializeAws_restJson1DeleteCustomLogSourceCommand = serializeAws_restJson1DeleteCustomLogSourceCommand;
|
|
259
|
+
const serializeAws_restJson1DeleteDatalakeCommand = async (input, context) => {
|
|
260
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
261
|
+
const headers = {
|
|
262
|
+
"content-type": "application/json",
|
|
263
|
+
};
|
|
264
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
265
|
+
let body;
|
|
266
|
+
body = "";
|
|
267
|
+
return new protocol_http_1.HttpRequest({
|
|
268
|
+
protocol,
|
|
269
|
+
hostname,
|
|
270
|
+
port,
|
|
271
|
+
method: "DELETE",
|
|
272
|
+
headers,
|
|
273
|
+
path: resolvedPath,
|
|
274
|
+
body,
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
exports.serializeAws_restJson1DeleteDatalakeCommand = serializeAws_restJson1DeleteDatalakeCommand;
|
|
278
|
+
const serializeAws_restJson1DeleteDatalakeAutoEnableCommand = async (input, context) => {
|
|
279
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
280
|
+
const headers = {
|
|
281
|
+
"content-type": "application/json",
|
|
282
|
+
};
|
|
283
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/autoenable/delete";
|
|
284
|
+
let body;
|
|
285
|
+
body = JSON.stringify({
|
|
286
|
+
...(input.removeFromConfigurationForNewAccounts != null && {
|
|
287
|
+
removeFromConfigurationForNewAccounts: serializeAws_restJson1AutoEnableNewRegionConfigurationList(input.removeFromConfigurationForNewAccounts, context),
|
|
288
|
+
}),
|
|
289
|
+
});
|
|
290
|
+
return new protocol_http_1.HttpRequest({
|
|
291
|
+
protocol,
|
|
292
|
+
hostname,
|
|
293
|
+
port,
|
|
294
|
+
method: "POST",
|
|
295
|
+
headers,
|
|
296
|
+
path: resolvedPath,
|
|
297
|
+
body,
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
exports.serializeAws_restJson1DeleteDatalakeAutoEnableCommand = serializeAws_restJson1DeleteDatalakeAutoEnableCommand;
|
|
301
|
+
const serializeAws_restJson1DeleteDatalakeDelegatedAdminCommand = async (input, context) => {
|
|
302
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
303
|
+
const headers = {};
|
|
304
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate/{account}";
|
|
305
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "account", () => input.account, "{account}", false);
|
|
306
|
+
let body;
|
|
307
|
+
return new protocol_http_1.HttpRequest({
|
|
308
|
+
protocol,
|
|
309
|
+
hostname,
|
|
310
|
+
port,
|
|
311
|
+
method: "DELETE",
|
|
312
|
+
headers,
|
|
313
|
+
path: resolvedPath,
|
|
314
|
+
body,
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
exports.serializeAws_restJson1DeleteDatalakeDelegatedAdminCommand = serializeAws_restJson1DeleteDatalakeDelegatedAdminCommand;
|
|
318
|
+
const serializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommand = async (input, context) => {
|
|
319
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
320
|
+
const headers = {
|
|
321
|
+
"content-type": "application/json",
|
|
322
|
+
};
|
|
323
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
324
|
+
let body;
|
|
325
|
+
body = "";
|
|
326
|
+
return new protocol_http_1.HttpRequest({
|
|
327
|
+
protocol,
|
|
328
|
+
hostname,
|
|
329
|
+
port,
|
|
330
|
+
method: "DELETE",
|
|
331
|
+
headers,
|
|
332
|
+
path: resolvedPath,
|
|
333
|
+
body,
|
|
334
|
+
});
|
|
335
|
+
};
|
|
336
|
+
exports.serializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommand = serializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommand;
|
|
337
|
+
const serializeAws_restJson1DeleteSubscriberCommand = async (input, context) => {
|
|
338
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
339
|
+
const headers = {};
|
|
340
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
|
|
341
|
+
const query = map({
|
|
342
|
+
id: [, (0, smithy_client_1.expectNonNull)(input.id, `id`)],
|
|
343
|
+
});
|
|
344
|
+
let body;
|
|
345
|
+
return new protocol_http_1.HttpRequest({
|
|
346
|
+
protocol,
|
|
347
|
+
hostname,
|
|
348
|
+
port,
|
|
349
|
+
method: "DELETE",
|
|
350
|
+
headers,
|
|
351
|
+
path: resolvedPath,
|
|
352
|
+
query,
|
|
353
|
+
body,
|
|
354
|
+
});
|
|
355
|
+
};
|
|
356
|
+
exports.serializeAws_restJson1DeleteSubscriberCommand = serializeAws_restJson1DeleteSubscriberCommand;
|
|
357
|
+
const serializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommand = async (input, context) => {
|
|
358
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
359
|
+
const headers = {};
|
|
360
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
361
|
+
"/subscription-notifications/{subscriptionId}";
|
|
362
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriptionId", () => input.subscriptionId, "{subscriptionId}", false);
|
|
363
|
+
let body;
|
|
364
|
+
return new protocol_http_1.HttpRequest({
|
|
365
|
+
protocol,
|
|
366
|
+
hostname,
|
|
367
|
+
port,
|
|
368
|
+
method: "DELETE",
|
|
369
|
+
headers,
|
|
370
|
+
path: resolvedPath,
|
|
371
|
+
body,
|
|
372
|
+
});
|
|
373
|
+
};
|
|
374
|
+
exports.serializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommand = serializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommand;
|
|
375
|
+
const serializeAws_restJson1GetDatalakeCommand = async (input, context) => {
|
|
376
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
377
|
+
const headers = {
|
|
378
|
+
"content-type": "application/json",
|
|
379
|
+
};
|
|
380
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
381
|
+
let body;
|
|
382
|
+
body = "";
|
|
383
|
+
return new protocol_http_1.HttpRequest({
|
|
384
|
+
protocol,
|
|
385
|
+
hostname,
|
|
386
|
+
port,
|
|
387
|
+
method: "GET",
|
|
388
|
+
headers,
|
|
389
|
+
path: resolvedPath,
|
|
390
|
+
body,
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
exports.serializeAws_restJson1GetDatalakeCommand = serializeAws_restJson1GetDatalakeCommand;
|
|
394
|
+
const serializeAws_restJson1GetDatalakeAutoEnableCommand = async (input, context) => {
|
|
395
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
396
|
+
const headers = {
|
|
397
|
+
"content-type": "application/json",
|
|
398
|
+
};
|
|
399
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/autoenable";
|
|
400
|
+
let body;
|
|
401
|
+
body = "";
|
|
402
|
+
return new protocol_http_1.HttpRequest({
|
|
403
|
+
protocol,
|
|
404
|
+
hostname,
|
|
405
|
+
port,
|
|
406
|
+
method: "GET",
|
|
407
|
+
headers,
|
|
408
|
+
path: resolvedPath,
|
|
409
|
+
body,
|
|
410
|
+
});
|
|
411
|
+
};
|
|
412
|
+
exports.serializeAws_restJson1GetDatalakeAutoEnableCommand = serializeAws_restJson1GetDatalakeAutoEnableCommand;
|
|
413
|
+
const serializeAws_restJson1GetDatalakeExceptionsExpiryCommand = async (input, context) => {
|
|
414
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
415
|
+
const headers = {
|
|
416
|
+
"content-type": "application/json",
|
|
417
|
+
};
|
|
418
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/expiry";
|
|
419
|
+
let body;
|
|
420
|
+
body = "";
|
|
421
|
+
return new protocol_http_1.HttpRequest({
|
|
422
|
+
protocol,
|
|
423
|
+
hostname,
|
|
424
|
+
port,
|
|
425
|
+
method: "GET",
|
|
426
|
+
headers,
|
|
427
|
+
path: resolvedPath,
|
|
428
|
+
body,
|
|
429
|
+
});
|
|
430
|
+
};
|
|
431
|
+
exports.serializeAws_restJson1GetDatalakeExceptionsExpiryCommand = serializeAws_restJson1GetDatalakeExceptionsExpiryCommand;
|
|
432
|
+
const serializeAws_restJson1GetDatalakeExceptionsSubscriptionCommand = async (input, context) => {
|
|
433
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
434
|
+
const headers = {
|
|
435
|
+
"content-type": "application/json",
|
|
436
|
+
};
|
|
437
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
438
|
+
let body;
|
|
439
|
+
body = "";
|
|
440
|
+
return new protocol_http_1.HttpRequest({
|
|
441
|
+
protocol,
|
|
442
|
+
hostname,
|
|
443
|
+
port,
|
|
444
|
+
method: "GET",
|
|
445
|
+
headers,
|
|
446
|
+
path: resolvedPath,
|
|
447
|
+
body,
|
|
448
|
+
});
|
|
449
|
+
};
|
|
450
|
+
exports.serializeAws_restJson1GetDatalakeExceptionsSubscriptionCommand = serializeAws_restJson1GetDatalakeExceptionsSubscriptionCommand;
|
|
451
|
+
const serializeAws_restJson1GetDatalakeStatusCommand = async (input, context) => {
|
|
452
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
453
|
+
const headers = {
|
|
454
|
+
"content-type": "application/json",
|
|
455
|
+
};
|
|
456
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/status";
|
|
457
|
+
let body;
|
|
458
|
+
body = JSON.stringify({
|
|
459
|
+
...(input.accountSet != null && { accountSet: serializeAws_restJson1InputSet(input.accountSet, context) }),
|
|
460
|
+
...(input.maxAccountResults != null && { maxAccountResults: input.maxAccountResults }),
|
|
461
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
462
|
+
});
|
|
463
|
+
return new protocol_http_1.HttpRequest({
|
|
464
|
+
protocol,
|
|
465
|
+
hostname,
|
|
466
|
+
port,
|
|
467
|
+
method: "POST",
|
|
468
|
+
headers,
|
|
469
|
+
path: resolvedPath,
|
|
470
|
+
body,
|
|
471
|
+
});
|
|
472
|
+
};
|
|
473
|
+
exports.serializeAws_restJson1GetDatalakeStatusCommand = serializeAws_restJson1GetDatalakeStatusCommand;
|
|
474
|
+
const serializeAws_restJson1GetSubscriberCommand = async (input, context) => {
|
|
475
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
476
|
+
const headers = {};
|
|
477
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{id}";
|
|
478
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
479
|
+
let body;
|
|
480
|
+
return new protocol_http_1.HttpRequest({
|
|
481
|
+
protocol,
|
|
482
|
+
hostname,
|
|
483
|
+
port,
|
|
484
|
+
method: "GET",
|
|
485
|
+
headers,
|
|
486
|
+
path: resolvedPath,
|
|
487
|
+
body,
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
exports.serializeAws_restJson1GetSubscriberCommand = serializeAws_restJson1GetSubscriberCommand;
|
|
491
|
+
const serializeAws_restJson1ListDatalakeExceptionsCommand = async (input, context) => {
|
|
492
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
493
|
+
const headers = {
|
|
494
|
+
"content-type": "application/json",
|
|
495
|
+
};
|
|
496
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions";
|
|
497
|
+
let body;
|
|
498
|
+
body = JSON.stringify({
|
|
499
|
+
...(input.maxFailures != null && { maxFailures: input.maxFailures }),
|
|
500
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
501
|
+
...(input.regionSet != null && { regionSet: serializeAws_restJson1RegionSet(input.regionSet, context) }),
|
|
502
|
+
});
|
|
503
|
+
return new protocol_http_1.HttpRequest({
|
|
504
|
+
protocol,
|
|
505
|
+
hostname,
|
|
506
|
+
port,
|
|
507
|
+
method: "POST",
|
|
508
|
+
headers,
|
|
509
|
+
path: resolvedPath,
|
|
510
|
+
body,
|
|
511
|
+
});
|
|
512
|
+
};
|
|
513
|
+
exports.serializeAws_restJson1ListDatalakeExceptionsCommand = serializeAws_restJson1ListDatalakeExceptionsCommand;
|
|
514
|
+
const serializeAws_restJson1ListLogSourcesCommand = async (input, context) => {
|
|
515
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
516
|
+
const headers = {
|
|
517
|
+
"content-type": "application/json",
|
|
518
|
+
};
|
|
519
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/list";
|
|
520
|
+
let body;
|
|
521
|
+
body = JSON.stringify({
|
|
522
|
+
...(input.inputOrder != null && { inputOrder: serializeAws_restJson1DimensionSet(input.inputOrder, context) }),
|
|
523
|
+
...(input.listAllDimensions != null && {
|
|
524
|
+
listAllDimensions: serializeAws_restJson1AllDimensionsMap(input.listAllDimensions, context),
|
|
525
|
+
}),
|
|
526
|
+
...(input.listSingleDimension != null && {
|
|
527
|
+
listSingleDimension: serializeAws_restJson1InputSet(input.listSingleDimension, context),
|
|
528
|
+
}),
|
|
529
|
+
...(input.listTwoDimensions != null && {
|
|
530
|
+
listTwoDimensions: serializeAws_restJson1TwoDimensionsMap(input.listTwoDimensions, context),
|
|
531
|
+
}),
|
|
532
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
533
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
534
|
+
});
|
|
535
|
+
return new protocol_http_1.HttpRequest({
|
|
536
|
+
protocol,
|
|
537
|
+
hostname,
|
|
538
|
+
port,
|
|
539
|
+
method: "POST",
|
|
540
|
+
headers,
|
|
541
|
+
path: resolvedPath,
|
|
542
|
+
body,
|
|
543
|
+
});
|
|
544
|
+
};
|
|
545
|
+
exports.serializeAws_restJson1ListLogSourcesCommand = serializeAws_restJson1ListLogSourcesCommand;
|
|
546
|
+
const serializeAws_restJson1ListSubscribersCommand = async (input, context) => {
|
|
547
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
548
|
+
const headers = {};
|
|
549
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
|
|
550
|
+
const query = map({
|
|
551
|
+
nextToken: [, input.nextToken],
|
|
552
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
553
|
+
});
|
|
554
|
+
let body;
|
|
555
|
+
return new protocol_http_1.HttpRequest({
|
|
556
|
+
protocol,
|
|
557
|
+
hostname,
|
|
558
|
+
port,
|
|
559
|
+
method: "GET",
|
|
560
|
+
headers,
|
|
561
|
+
path: resolvedPath,
|
|
562
|
+
query,
|
|
563
|
+
body,
|
|
564
|
+
});
|
|
565
|
+
};
|
|
566
|
+
exports.serializeAws_restJson1ListSubscribersCommand = serializeAws_restJson1ListSubscribersCommand;
|
|
567
|
+
const serializeAws_restJson1UpdateDatalakeCommand = async (input, context) => {
|
|
568
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
569
|
+
const headers = {
|
|
570
|
+
"content-type": "application/json",
|
|
571
|
+
};
|
|
572
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
573
|
+
let body;
|
|
574
|
+
body = JSON.stringify({
|
|
575
|
+
...(input.configurations != null && {
|
|
576
|
+
configurations: serializeAws_restJson1LakeConfigurationRequestMap(input.configurations, context),
|
|
577
|
+
}),
|
|
578
|
+
});
|
|
579
|
+
return new protocol_http_1.HttpRequest({
|
|
580
|
+
protocol,
|
|
581
|
+
hostname,
|
|
582
|
+
port,
|
|
583
|
+
method: "PUT",
|
|
584
|
+
headers,
|
|
585
|
+
path: resolvedPath,
|
|
586
|
+
body,
|
|
587
|
+
});
|
|
588
|
+
};
|
|
589
|
+
exports.serializeAws_restJson1UpdateDatalakeCommand = serializeAws_restJson1UpdateDatalakeCommand;
|
|
590
|
+
const serializeAws_restJson1UpdateDatalakeExceptionsExpiryCommand = async (input, context) => {
|
|
591
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
592
|
+
const headers = {
|
|
593
|
+
"content-type": "application/json",
|
|
594
|
+
};
|
|
595
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/expiry";
|
|
596
|
+
let body;
|
|
597
|
+
body = JSON.stringify({
|
|
598
|
+
...(input.exceptionMessageExpiry != null && { exceptionMessageExpiry: input.exceptionMessageExpiry }),
|
|
599
|
+
});
|
|
600
|
+
return new protocol_http_1.HttpRequest({
|
|
601
|
+
protocol,
|
|
602
|
+
hostname,
|
|
603
|
+
port,
|
|
604
|
+
method: "PUT",
|
|
605
|
+
headers,
|
|
606
|
+
path: resolvedPath,
|
|
607
|
+
body,
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
exports.serializeAws_restJson1UpdateDatalakeExceptionsExpiryCommand = serializeAws_restJson1UpdateDatalakeExceptionsExpiryCommand;
|
|
611
|
+
const serializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommand = async (input, context) => {
|
|
612
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
613
|
+
const headers = {
|
|
614
|
+
"content-type": "application/json",
|
|
615
|
+
};
|
|
616
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
617
|
+
let body;
|
|
618
|
+
body = JSON.stringify({
|
|
619
|
+
...(input.notificationEndpoint != null && { notificationEndpoint: input.notificationEndpoint }),
|
|
620
|
+
...(input.subscriptionProtocol != null && { subscriptionProtocol: input.subscriptionProtocol }),
|
|
621
|
+
});
|
|
622
|
+
return new protocol_http_1.HttpRequest({
|
|
623
|
+
protocol,
|
|
624
|
+
hostname,
|
|
625
|
+
port,
|
|
626
|
+
method: "PUT",
|
|
627
|
+
headers,
|
|
628
|
+
path: resolvedPath,
|
|
629
|
+
body,
|
|
630
|
+
});
|
|
631
|
+
};
|
|
632
|
+
exports.serializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommand = serializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommand;
|
|
633
|
+
const serializeAws_restJson1UpdateSubscriberCommand = async (input, context) => {
|
|
634
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
635
|
+
const headers = {
|
|
636
|
+
"content-type": "application/json",
|
|
637
|
+
};
|
|
638
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{id}";
|
|
639
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
640
|
+
let body;
|
|
641
|
+
body = JSON.stringify({
|
|
642
|
+
...(input.externalId != null && { externalId: input.externalId }),
|
|
643
|
+
...(input.sourceTypes != null && { sourceTypes: serializeAws_restJson1SourceTypeList(input.sourceTypes, context) }),
|
|
644
|
+
...(input.subscriberDescription != null && { subscriberDescription: input.subscriberDescription }),
|
|
645
|
+
...(input.subscriberName != null && { subscriberName: input.subscriberName }),
|
|
646
|
+
});
|
|
647
|
+
return new protocol_http_1.HttpRequest({
|
|
648
|
+
protocol,
|
|
649
|
+
hostname,
|
|
650
|
+
port,
|
|
651
|
+
method: "PUT",
|
|
652
|
+
headers,
|
|
653
|
+
path: resolvedPath,
|
|
654
|
+
body,
|
|
655
|
+
});
|
|
656
|
+
};
|
|
657
|
+
exports.serializeAws_restJson1UpdateSubscriberCommand = serializeAws_restJson1UpdateSubscriberCommand;
|
|
658
|
+
const serializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommand = async (input, context) => {
|
|
659
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
660
|
+
const headers = {
|
|
661
|
+
"content-type": "application/json",
|
|
662
|
+
};
|
|
663
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
664
|
+
"/subscription-notifications/{subscriptionId}";
|
|
665
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriptionId", () => input.subscriptionId, "{subscriptionId}", false);
|
|
666
|
+
let body;
|
|
667
|
+
body = JSON.stringify({
|
|
668
|
+
...(input.createSqs != null && { createSqs: input.createSqs }),
|
|
669
|
+
...(input.httpsApiKeyName != null && { httpsApiKeyName: input.httpsApiKeyName }),
|
|
670
|
+
...(input.httpsApiKeyValue != null && { httpsApiKeyValue: input.httpsApiKeyValue }),
|
|
671
|
+
...(input.httpsMethod != null && { httpsMethod: input.httpsMethod }),
|
|
672
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
673
|
+
...(input.subscriptionEndpoint != null && { subscriptionEndpoint: input.subscriptionEndpoint }),
|
|
674
|
+
});
|
|
675
|
+
return new protocol_http_1.HttpRequest({
|
|
676
|
+
protocol,
|
|
677
|
+
hostname,
|
|
678
|
+
port,
|
|
679
|
+
method: "PUT",
|
|
680
|
+
headers,
|
|
681
|
+
path: resolvedPath,
|
|
682
|
+
body,
|
|
683
|
+
});
|
|
684
|
+
};
|
|
685
|
+
exports.serializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommand = serializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommand;
|
|
686
|
+
const deserializeAws_restJson1CreateAwsLogSourceCommand = async (output, context) => {
|
|
687
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
|
+
return deserializeAws_restJson1CreateAwsLogSourceCommandError(output, context);
|
|
689
|
+
}
|
|
690
|
+
const contents = map({
|
|
691
|
+
$metadata: deserializeMetadata(output),
|
|
692
|
+
});
|
|
693
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
694
|
+
if (data.failed != null) {
|
|
695
|
+
contents.failed = deserializeAws_restJson1AccountList(data.failed, context);
|
|
696
|
+
}
|
|
697
|
+
if (data.processing != null) {
|
|
698
|
+
contents.processing = deserializeAws_restJson1AccountList(data.processing, context);
|
|
699
|
+
}
|
|
700
|
+
return contents;
|
|
701
|
+
};
|
|
702
|
+
exports.deserializeAws_restJson1CreateAwsLogSourceCommand = deserializeAws_restJson1CreateAwsLogSourceCommand;
|
|
703
|
+
const deserializeAws_restJson1CreateAwsLogSourceCommandError = async (output, context) => {
|
|
704
|
+
const parsedOutput = {
|
|
705
|
+
...output,
|
|
706
|
+
body: await parseErrorBody(output.body, context),
|
|
707
|
+
};
|
|
708
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
+
switch (errorCode) {
|
|
710
|
+
case "AccessDeniedException":
|
|
711
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
712
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
713
|
+
case "AccountNotFoundException":
|
|
714
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
715
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
716
|
+
case "InternalServerException":
|
|
717
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
718
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
719
|
+
case "ResourceNotFoundException":
|
|
720
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
721
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
722
|
+
case "S3Exception":
|
|
723
|
+
case "com.amazonaws.securitylake#S3Exception":
|
|
724
|
+
throw await deserializeAws_restJson1S3ExceptionResponse(parsedOutput, context);
|
|
725
|
+
case "ValidationException":
|
|
726
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
727
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
728
|
+
default:
|
|
729
|
+
const parsedBody = parsedOutput.body;
|
|
730
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
734
|
+
errorCode,
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
const deserializeAws_restJson1CreateCustomLogSourceCommand = async (output, context) => {
|
|
739
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
+
return deserializeAws_restJson1CreateCustomLogSourceCommandError(output, context);
|
|
741
|
+
}
|
|
742
|
+
const contents = map({
|
|
743
|
+
$metadata: deserializeMetadata(output),
|
|
744
|
+
});
|
|
745
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
746
|
+
if (data.customDataLocation != null) {
|
|
747
|
+
contents.customDataLocation = (0, smithy_client_1.expectString)(data.customDataLocation);
|
|
748
|
+
}
|
|
749
|
+
if (data.glueCrawlerName != null) {
|
|
750
|
+
contents.glueCrawlerName = (0, smithy_client_1.expectString)(data.glueCrawlerName);
|
|
751
|
+
}
|
|
752
|
+
if (data.glueDatabaseName != null) {
|
|
753
|
+
contents.glueDatabaseName = (0, smithy_client_1.expectString)(data.glueDatabaseName);
|
|
754
|
+
}
|
|
755
|
+
if (data.glueTableName != null) {
|
|
756
|
+
contents.glueTableName = (0, smithy_client_1.expectString)(data.glueTableName);
|
|
757
|
+
}
|
|
758
|
+
if (data.logProviderAccessRoleArn != null) {
|
|
759
|
+
contents.logProviderAccessRoleArn = (0, smithy_client_1.expectString)(data.logProviderAccessRoleArn);
|
|
760
|
+
}
|
|
761
|
+
return contents;
|
|
762
|
+
};
|
|
763
|
+
exports.deserializeAws_restJson1CreateCustomLogSourceCommand = deserializeAws_restJson1CreateCustomLogSourceCommand;
|
|
764
|
+
const deserializeAws_restJson1CreateCustomLogSourceCommandError = async (output, context) => {
|
|
765
|
+
const parsedOutput = {
|
|
766
|
+
...output,
|
|
767
|
+
body: await parseErrorBody(output.body, context),
|
|
768
|
+
};
|
|
769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
|
+
switch (errorCode) {
|
|
771
|
+
case "AccessDeniedException":
|
|
772
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
773
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
774
|
+
case "AccountNotFoundException":
|
|
775
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
776
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
777
|
+
case "BucketNotFoundException":
|
|
778
|
+
case "com.amazonaws.securitylake#BucketNotFoundException":
|
|
779
|
+
throw await deserializeAws_restJson1BucketNotFoundExceptionResponse(parsedOutput, context);
|
|
780
|
+
case "ConflictSourceNamesException":
|
|
781
|
+
case "com.amazonaws.securitylake#ConflictSourceNamesException":
|
|
782
|
+
throw await deserializeAws_restJson1ConflictSourceNamesExceptionResponse(parsedOutput, context);
|
|
783
|
+
case "InternalServerException":
|
|
784
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
785
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
786
|
+
case "ResourceNotFoundException":
|
|
787
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
788
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
789
|
+
case "ValidationException":
|
|
790
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
791
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
792
|
+
default:
|
|
793
|
+
const parsedBody = parsedOutput.body;
|
|
794
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
795
|
+
output,
|
|
796
|
+
parsedBody,
|
|
797
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
798
|
+
errorCode,
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
};
|
|
802
|
+
const deserializeAws_restJson1CreateDatalakeCommand = async (output, context) => {
|
|
803
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
804
|
+
return deserializeAws_restJson1CreateDatalakeCommandError(output, context);
|
|
805
|
+
}
|
|
806
|
+
const contents = map({
|
|
807
|
+
$metadata: deserializeMetadata(output),
|
|
808
|
+
});
|
|
809
|
+
await collectBody(output.body, context);
|
|
810
|
+
return contents;
|
|
811
|
+
};
|
|
812
|
+
exports.deserializeAws_restJson1CreateDatalakeCommand = deserializeAws_restJson1CreateDatalakeCommand;
|
|
813
|
+
const deserializeAws_restJson1CreateDatalakeCommandError = async (output, context) => {
|
|
814
|
+
const parsedOutput = {
|
|
815
|
+
...output,
|
|
816
|
+
body: await parseErrorBody(output.body, context),
|
|
817
|
+
};
|
|
818
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
|
+
switch (errorCode) {
|
|
820
|
+
case "AccessDeniedException":
|
|
821
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
822
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
823
|
+
case "ConflictException":
|
|
824
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
825
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
826
|
+
case "InternalServerException":
|
|
827
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
828
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
829
|
+
case "ResourceNotFoundException":
|
|
830
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
831
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
832
|
+
case "ServiceQuotaExceededException":
|
|
833
|
+
case "com.amazonaws.securitylake#ServiceQuotaExceededException":
|
|
834
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
835
|
+
case "ThrottlingException":
|
|
836
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
837
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
838
|
+
case "ValidationException":
|
|
839
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
840
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
841
|
+
default:
|
|
842
|
+
const parsedBody = parsedOutput.body;
|
|
843
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
844
|
+
output,
|
|
845
|
+
parsedBody,
|
|
846
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
847
|
+
errorCode,
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
const deserializeAws_restJson1CreateDatalakeAutoEnableCommand = async (output, context) => {
|
|
852
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
853
|
+
return deserializeAws_restJson1CreateDatalakeAutoEnableCommandError(output, context);
|
|
854
|
+
}
|
|
855
|
+
const contents = map({
|
|
856
|
+
$metadata: deserializeMetadata(output),
|
|
857
|
+
});
|
|
858
|
+
await collectBody(output.body, context);
|
|
859
|
+
return contents;
|
|
860
|
+
};
|
|
861
|
+
exports.deserializeAws_restJson1CreateDatalakeAutoEnableCommand = deserializeAws_restJson1CreateDatalakeAutoEnableCommand;
|
|
862
|
+
const deserializeAws_restJson1CreateDatalakeAutoEnableCommandError = async (output, context) => {
|
|
863
|
+
const parsedOutput = {
|
|
864
|
+
...output,
|
|
865
|
+
body: await parseErrorBody(output.body, context),
|
|
866
|
+
};
|
|
867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
+
switch (errorCode) {
|
|
869
|
+
case "AccessDeniedException":
|
|
870
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
871
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
872
|
+
case "AccountNotFoundException":
|
|
873
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
874
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
875
|
+
case "InternalServerException":
|
|
876
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
877
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
878
|
+
case "ValidationException":
|
|
879
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
880
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
881
|
+
default:
|
|
882
|
+
const parsedBody = parsedOutput.body;
|
|
883
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
884
|
+
output,
|
|
885
|
+
parsedBody,
|
|
886
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
887
|
+
errorCode,
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
};
|
|
891
|
+
const deserializeAws_restJson1CreateDatalakeDelegatedAdminCommand = async (output, context) => {
|
|
892
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
893
|
+
return deserializeAws_restJson1CreateDatalakeDelegatedAdminCommandError(output, context);
|
|
894
|
+
}
|
|
895
|
+
const contents = map({
|
|
896
|
+
$metadata: deserializeMetadata(output),
|
|
897
|
+
});
|
|
898
|
+
await collectBody(output.body, context);
|
|
899
|
+
return contents;
|
|
900
|
+
};
|
|
901
|
+
exports.deserializeAws_restJson1CreateDatalakeDelegatedAdminCommand = deserializeAws_restJson1CreateDatalakeDelegatedAdminCommand;
|
|
902
|
+
const deserializeAws_restJson1CreateDatalakeDelegatedAdminCommandError = async (output, context) => {
|
|
903
|
+
const parsedOutput = {
|
|
904
|
+
...output,
|
|
905
|
+
body: await parseErrorBody(output.body, context),
|
|
906
|
+
};
|
|
907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
+
switch (errorCode) {
|
|
909
|
+
case "AccessDeniedException":
|
|
910
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
911
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
912
|
+
case "InternalServerException":
|
|
913
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
914
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
915
|
+
case "ThrottlingException":
|
|
916
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
917
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
918
|
+
case "ValidationException":
|
|
919
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
920
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
921
|
+
default:
|
|
922
|
+
const parsedBody = parsedOutput.body;
|
|
923
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
924
|
+
output,
|
|
925
|
+
parsedBody,
|
|
926
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
927
|
+
errorCode,
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
};
|
|
931
|
+
const deserializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommand = async (output, context) => {
|
|
932
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
|
+
return deserializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommandError(output, context);
|
|
934
|
+
}
|
|
935
|
+
const contents = map({
|
|
936
|
+
$metadata: deserializeMetadata(output),
|
|
937
|
+
});
|
|
938
|
+
await collectBody(output.body, context);
|
|
939
|
+
return contents;
|
|
940
|
+
};
|
|
941
|
+
exports.deserializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommand = deserializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommand;
|
|
942
|
+
const deserializeAws_restJson1CreateDatalakeExceptionsSubscriptionCommandError = async (output, context) => {
|
|
943
|
+
const parsedOutput = {
|
|
944
|
+
...output,
|
|
945
|
+
body: await parseErrorBody(output.body, context),
|
|
946
|
+
};
|
|
947
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
|
+
switch (errorCode) {
|
|
949
|
+
case "AccessDeniedException":
|
|
950
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
951
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
952
|
+
case "AccountNotFoundException":
|
|
953
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
954
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
955
|
+
case "InternalServerException":
|
|
956
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
957
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
958
|
+
case "ValidationException":
|
|
959
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
960
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
961
|
+
default:
|
|
962
|
+
const parsedBody = parsedOutput.body;
|
|
963
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
964
|
+
output,
|
|
965
|
+
parsedBody,
|
|
966
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
967
|
+
errorCode,
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
};
|
|
971
|
+
const deserializeAws_restJson1CreateSubscriberCommand = async (output, context) => {
|
|
972
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
973
|
+
return deserializeAws_restJson1CreateSubscriberCommandError(output, context);
|
|
974
|
+
}
|
|
975
|
+
const contents = map({
|
|
976
|
+
$metadata: deserializeMetadata(output),
|
|
977
|
+
});
|
|
978
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
979
|
+
if (data.roleArn != null) {
|
|
980
|
+
contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
|
|
981
|
+
}
|
|
982
|
+
if (data.s3BucketArn != null) {
|
|
983
|
+
contents.s3BucketArn = (0, smithy_client_1.expectString)(data.s3BucketArn);
|
|
984
|
+
}
|
|
985
|
+
if (data.snsArn != null) {
|
|
986
|
+
contents.snsArn = (0, smithy_client_1.expectString)(data.snsArn);
|
|
987
|
+
}
|
|
988
|
+
if (data.subscriptionId != null) {
|
|
989
|
+
contents.subscriptionId = (0, smithy_client_1.expectString)(data.subscriptionId);
|
|
990
|
+
}
|
|
991
|
+
return contents;
|
|
992
|
+
};
|
|
993
|
+
exports.deserializeAws_restJson1CreateSubscriberCommand = deserializeAws_restJson1CreateSubscriberCommand;
|
|
994
|
+
const deserializeAws_restJson1CreateSubscriberCommandError = async (output, context) => {
|
|
995
|
+
const parsedOutput = {
|
|
996
|
+
...output,
|
|
997
|
+
body: await parseErrorBody(output.body, context),
|
|
998
|
+
};
|
|
999
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
+
switch (errorCode) {
|
|
1001
|
+
case "AccessDeniedException":
|
|
1002
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1003
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1004
|
+
case "AccountNotFoundException":
|
|
1005
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1006
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1007
|
+
case "BucketNotFoundException":
|
|
1008
|
+
case "com.amazonaws.securitylake#BucketNotFoundException":
|
|
1009
|
+
throw await deserializeAws_restJson1BucketNotFoundExceptionResponse(parsedOutput, context);
|
|
1010
|
+
case "ConflictSubscriptionException":
|
|
1011
|
+
case "com.amazonaws.securitylake#ConflictSubscriptionException":
|
|
1012
|
+
throw await deserializeAws_restJson1ConflictSubscriptionExceptionResponse(parsedOutput, context);
|
|
1013
|
+
case "InternalServerException":
|
|
1014
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1015
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1016
|
+
case "InvalidInputException":
|
|
1017
|
+
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1018
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1019
|
+
case "ResourceNotFoundException":
|
|
1020
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1021
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1022
|
+
case "ValidationException":
|
|
1023
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1024
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1025
|
+
default:
|
|
1026
|
+
const parsedBody = parsedOutput.body;
|
|
1027
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1028
|
+
output,
|
|
1029
|
+
parsedBody,
|
|
1030
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1031
|
+
errorCode,
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
};
|
|
1035
|
+
const deserializeAws_restJson1CreateSubscriptionNotificationConfigurationCommand = async (output, context) => {
|
|
1036
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
|
+
return deserializeAws_restJson1CreateSubscriptionNotificationConfigurationCommandError(output, context);
|
|
1038
|
+
}
|
|
1039
|
+
const contents = map({
|
|
1040
|
+
$metadata: deserializeMetadata(output),
|
|
1041
|
+
});
|
|
1042
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1043
|
+
if (data.queueArn != null) {
|
|
1044
|
+
contents.queueArn = (0, smithy_client_1.expectString)(data.queueArn);
|
|
1045
|
+
}
|
|
1046
|
+
return contents;
|
|
1047
|
+
};
|
|
1048
|
+
exports.deserializeAws_restJson1CreateSubscriptionNotificationConfigurationCommand = deserializeAws_restJson1CreateSubscriptionNotificationConfigurationCommand;
|
|
1049
|
+
const deserializeAws_restJson1CreateSubscriptionNotificationConfigurationCommandError = async (output, context) => {
|
|
1050
|
+
const parsedOutput = {
|
|
1051
|
+
...output,
|
|
1052
|
+
body: await parseErrorBody(output.body, context),
|
|
1053
|
+
};
|
|
1054
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
|
+
switch (errorCode) {
|
|
1056
|
+
case "AccessDeniedException":
|
|
1057
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1058
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1059
|
+
case "AccountNotFoundException":
|
|
1060
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1061
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1062
|
+
case "ConcurrentModificationException":
|
|
1063
|
+
case "com.amazonaws.securitylake#ConcurrentModificationException":
|
|
1064
|
+
throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1065
|
+
case "InternalServerException":
|
|
1066
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1067
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1068
|
+
case "InvalidInputException":
|
|
1069
|
+
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1070
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1071
|
+
case "ResourceNotFoundException":
|
|
1072
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1073
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1074
|
+
case "ValidationException":
|
|
1075
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1076
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1077
|
+
default:
|
|
1078
|
+
const parsedBody = parsedOutput.body;
|
|
1079
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1080
|
+
output,
|
|
1081
|
+
parsedBody,
|
|
1082
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1083
|
+
errorCode,
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
};
|
|
1087
|
+
const deserializeAws_restJson1DeleteAwsLogSourceCommand = async (output, context) => {
|
|
1088
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
+
return deserializeAws_restJson1DeleteAwsLogSourceCommandError(output, context);
|
|
1090
|
+
}
|
|
1091
|
+
const contents = map({
|
|
1092
|
+
$metadata: deserializeMetadata(output),
|
|
1093
|
+
});
|
|
1094
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1095
|
+
if (data.failed != null) {
|
|
1096
|
+
contents.failed = deserializeAws_restJson1AccountList(data.failed, context);
|
|
1097
|
+
}
|
|
1098
|
+
if (data.processing != null) {
|
|
1099
|
+
contents.processing = deserializeAws_restJson1AccountList(data.processing, context);
|
|
1100
|
+
}
|
|
1101
|
+
return contents;
|
|
1102
|
+
};
|
|
1103
|
+
exports.deserializeAws_restJson1DeleteAwsLogSourceCommand = deserializeAws_restJson1DeleteAwsLogSourceCommand;
|
|
1104
|
+
const deserializeAws_restJson1DeleteAwsLogSourceCommandError = async (output, context) => {
|
|
1105
|
+
const parsedOutput = {
|
|
1106
|
+
...output,
|
|
1107
|
+
body: await parseErrorBody(output.body, context),
|
|
1108
|
+
};
|
|
1109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
+
switch (errorCode) {
|
|
1111
|
+
case "AccessDeniedException":
|
|
1112
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1113
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1114
|
+
case "AccountNotFoundException":
|
|
1115
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1116
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1117
|
+
case "InternalServerException":
|
|
1118
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1119
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1120
|
+
case "ValidationException":
|
|
1121
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1122
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1123
|
+
default:
|
|
1124
|
+
const parsedBody = parsedOutput.body;
|
|
1125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1126
|
+
output,
|
|
1127
|
+
parsedBody,
|
|
1128
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1129
|
+
errorCode,
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
const deserializeAws_restJson1DeleteCustomLogSourceCommand = async (output, context) => {
|
|
1134
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1135
|
+
return deserializeAws_restJson1DeleteCustomLogSourceCommandError(output, context);
|
|
1136
|
+
}
|
|
1137
|
+
const contents = map({
|
|
1138
|
+
$metadata: deserializeMetadata(output),
|
|
1139
|
+
});
|
|
1140
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1141
|
+
if (data.customDataLocation != null) {
|
|
1142
|
+
contents.customDataLocation = (0, smithy_client_1.expectString)(data.customDataLocation);
|
|
1143
|
+
}
|
|
1144
|
+
return contents;
|
|
1145
|
+
};
|
|
1146
|
+
exports.deserializeAws_restJson1DeleteCustomLogSourceCommand = deserializeAws_restJson1DeleteCustomLogSourceCommand;
|
|
1147
|
+
const deserializeAws_restJson1DeleteCustomLogSourceCommandError = async (output, context) => {
|
|
1148
|
+
const parsedOutput = {
|
|
1149
|
+
...output,
|
|
1150
|
+
body: await parseErrorBody(output.body, context),
|
|
1151
|
+
};
|
|
1152
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
+
switch (errorCode) {
|
|
1154
|
+
case "AccessDeniedException":
|
|
1155
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1156
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1157
|
+
case "AccountNotFoundException":
|
|
1158
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1159
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1160
|
+
case "BucketNotFoundException":
|
|
1161
|
+
case "com.amazonaws.securitylake#BucketNotFoundException":
|
|
1162
|
+
throw await deserializeAws_restJson1BucketNotFoundExceptionResponse(parsedOutput, context);
|
|
1163
|
+
case "ConflictSourceNamesException":
|
|
1164
|
+
case "com.amazonaws.securitylake#ConflictSourceNamesException":
|
|
1165
|
+
throw await deserializeAws_restJson1ConflictSourceNamesExceptionResponse(parsedOutput, context);
|
|
1166
|
+
case "InternalServerException":
|
|
1167
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1168
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1169
|
+
case "ResourceNotFoundException":
|
|
1170
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1171
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1172
|
+
case "ValidationException":
|
|
1173
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1174
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1175
|
+
default:
|
|
1176
|
+
const parsedBody = parsedOutput.body;
|
|
1177
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1178
|
+
output,
|
|
1179
|
+
parsedBody,
|
|
1180
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1181
|
+
errorCode,
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
const deserializeAws_restJson1DeleteDatalakeCommand = async (output, context) => {
|
|
1186
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1187
|
+
return deserializeAws_restJson1DeleteDatalakeCommandError(output, context);
|
|
1188
|
+
}
|
|
1189
|
+
const contents = map({
|
|
1190
|
+
$metadata: deserializeMetadata(output),
|
|
1191
|
+
});
|
|
1192
|
+
await collectBody(output.body, context);
|
|
1193
|
+
return contents;
|
|
1194
|
+
};
|
|
1195
|
+
exports.deserializeAws_restJson1DeleteDatalakeCommand = deserializeAws_restJson1DeleteDatalakeCommand;
|
|
1196
|
+
const deserializeAws_restJson1DeleteDatalakeCommandError = async (output, context) => {
|
|
1197
|
+
const parsedOutput = {
|
|
1198
|
+
...output,
|
|
1199
|
+
body: await parseErrorBody(output.body, context),
|
|
1200
|
+
};
|
|
1201
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
|
+
switch (errorCode) {
|
|
1203
|
+
case "AccessDeniedException":
|
|
1204
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1205
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1206
|
+
case "ConflictException":
|
|
1207
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1208
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1209
|
+
case "InternalServerException":
|
|
1210
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1211
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1212
|
+
case "ResourceNotFoundException":
|
|
1213
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1214
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1215
|
+
case "ServiceQuotaExceededException":
|
|
1216
|
+
case "com.amazonaws.securitylake#ServiceQuotaExceededException":
|
|
1217
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1218
|
+
case "ThrottlingException":
|
|
1219
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1220
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1221
|
+
case "ValidationException":
|
|
1222
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1223
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1224
|
+
default:
|
|
1225
|
+
const parsedBody = parsedOutput.body;
|
|
1226
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1227
|
+
output,
|
|
1228
|
+
parsedBody,
|
|
1229
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1230
|
+
errorCode,
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
const deserializeAws_restJson1DeleteDatalakeAutoEnableCommand = async (output, context) => {
|
|
1235
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1236
|
+
return deserializeAws_restJson1DeleteDatalakeAutoEnableCommandError(output, context);
|
|
1237
|
+
}
|
|
1238
|
+
const contents = map({
|
|
1239
|
+
$metadata: deserializeMetadata(output),
|
|
1240
|
+
});
|
|
1241
|
+
await collectBody(output.body, context);
|
|
1242
|
+
return contents;
|
|
1243
|
+
};
|
|
1244
|
+
exports.deserializeAws_restJson1DeleteDatalakeAutoEnableCommand = deserializeAws_restJson1DeleteDatalakeAutoEnableCommand;
|
|
1245
|
+
const deserializeAws_restJson1DeleteDatalakeAutoEnableCommandError = async (output, context) => {
|
|
1246
|
+
const parsedOutput = {
|
|
1247
|
+
...output,
|
|
1248
|
+
body: await parseErrorBody(output.body, context),
|
|
1249
|
+
};
|
|
1250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
+
switch (errorCode) {
|
|
1252
|
+
case "AccessDeniedException":
|
|
1253
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1254
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1255
|
+
case "AccountNotFoundException":
|
|
1256
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1257
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1258
|
+
case "InternalServerException":
|
|
1259
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1260
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1261
|
+
case "ValidationException":
|
|
1262
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1263
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1264
|
+
default:
|
|
1265
|
+
const parsedBody = parsedOutput.body;
|
|
1266
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1267
|
+
output,
|
|
1268
|
+
parsedBody,
|
|
1269
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1270
|
+
errorCode,
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
};
|
|
1274
|
+
const deserializeAws_restJson1DeleteDatalakeDelegatedAdminCommand = async (output, context) => {
|
|
1275
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1276
|
+
return deserializeAws_restJson1DeleteDatalakeDelegatedAdminCommandError(output, context);
|
|
1277
|
+
}
|
|
1278
|
+
const contents = map({
|
|
1279
|
+
$metadata: deserializeMetadata(output),
|
|
1280
|
+
});
|
|
1281
|
+
await collectBody(output.body, context);
|
|
1282
|
+
return contents;
|
|
1283
|
+
};
|
|
1284
|
+
exports.deserializeAws_restJson1DeleteDatalakeDelegatedAdminCommand = deserializeAws_restJson1DeleteDatalakeDelegatedAdminCommand;
|
|
1285
|
+
const deserializeAws_restJson1DeleteDatalakeDelegatedAdminCommandError = async (output, context) => {
|
|
1286
|
+
const parsedOutput = {
|
|
1287
|
+
...output,
|
|
1288
|
+
body: await parseErrorBody(output.body, context),
|
|
1289
|
+
};
|
|
1290
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
|
+
switch (errorCode) {
|
|
1292
|
+
case "AccessDeniedException":
|
|
1293
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1294
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1295
|
+
case "InternalServerException":
|
|
1296
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1297
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1298
|
+
case "ThrottlingException":
|
|
1299
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1300
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1301
|
+
case "ValidationException":
|
|
1302
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1303
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1304
|
+
default:
|
|
1305
|
+
const parsedBody = parsedOutput.body;
|
|
1306
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1307
|
+
output,
|
|
1308
|
+
parsedBody,
|
|
1309
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1310
|
+
errorCode,
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1313
|
+
};
|
|
1314
|
+
const deserializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommand = async (output, context) => {
|
|
1315
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1316
|
+
return deserializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommandError(output, context);
|
|
1317
|
+
}
|
|
1318
|
+
const contents = map({
|
|
1319
|
+
$metadata: deserializeMetadata(output),
|
|
1320
|
+
});
|
|
1321
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1322
|
+
if (data.status != null) {
|
|
1323
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1324
|
+
}
|
|
1325
|
+
return contents;
|
|
1326
|
+
};
|
|
1327
|
+
exports.deserializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommand = deserializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommand;
|
|
1328
|
+
const deserializeAws_restJson1DeleteDatalakeExceptionsSubscriptionCommandError = async (output, context) => {
|
|
1329
|
+
const parsedOutput = {
|
|
1330
|
+
...output,
|
|
1331
|
+
body: await parseErrorBody(output.body, context),
|
|
1332
|
+
};
|
|
1333
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
+
switch (errorCode) {
|
|
1335
|
+
case "AccessDeniedException":
|
|
1336
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1337
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1338
|
+
case "AccountNotFoundException":
|
|
1339
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1340
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1341
|
+
case "InternalServerException":
|
|
1342
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1343
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1344
|
+
case "ValidationException":
|
|
1345
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1346
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1347
|
+
default:
|
|
1348
|
+
const parsedBody = parsedOutput.body;
|
|
1349
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1350
|
+
output,
|
|
1351
|
+
parsedBody,
|
|
1352
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1353
|
+
errorCode,
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1357
|
+
const deserializeAws_restJson1DeleteSubscriberCommand = async (output, context) => {
|
|
1358
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1359
|
+
return deserializeAws_restJson1DeleteSubscriberCommandError(output, context);
|
|
1360
|
+
}
|
|
1361
|
+
const contents = map({
|
|
1362
|
+
$metadata: deserializeMetadata(output),
|
|
1363
|
+
});
|
|
1364
|
+
await collectBody(output.body, context);
|
|
1365
|
+
return contents;
|
|
1366
|
+
};
|
|
1367
|
+
exports.deserializeAws_restJson1DeleteSubscriberCommand = deserializeAws_restJson1DeleteSubscriberCommand;
|
|
1368
|
+
const deserializeAws_restJson1DeleteSubscriberCommandError = async (output, context) => {
|
|
1369
|
+
const parsedOutput = {
|
|
1370
|
+
...output,
|
|
1371
|
+
body: await parseErrorBody(output.body, context),
|
|
1372
|
+
};
|
|
1373
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
|
+
switch (errorCode) {
|
|
1375
|
+
case "AccessDeniedException":
|
|
1376
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1377
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1378
|
+
case "AccountNotFoundException":
|
|
1379
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1380
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1381
|
+
case "BucketNotFoundException":
|
|
1382
|
+
case "com.amazonaws.securitylake#BucketNotFoundException":
|
|
1383
|
+
throw await deserializeAws_restJson1BucketNotFoundExceptionResponse(parsedOutput, context);
|
|
1384
|
+
case "ConcurrentModificationException":
|
|
1385
|
+
case "com.amazonaws.securitylake#ConcurrentModificationException":
|
|
1386
|
+
throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1387
|
+
case "InternalServerException":
|
|
1388
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1389
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1390
|
+
case "InvalidInputException":
|
|
1391
|
+
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1392
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1393
|
+
case "ResourceNotFoundException":
|
|
1394
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1395
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1396
|
+
case "ValidationException":
|
|
1397
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1398
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1399
|
+
default:
|
|
1400
|
+
const parsedBody = parsedOutput.body;
|
|
1401
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1402
|
+
output,
|
|
1403
|
+
parsedBody,
|
|
1404
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1405
|
+
errorCode,
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
};
|
|
1409
|
+
const deserializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommand = async (output, context) => {
|
|
1410
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1411
|
+
return deserializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommandError(output, context);
|
|
1412
|
+
}
|
|
1413
|
+
const contents = map({
|
|
1414
|
+
$metadata: deserializeMetadata(output),
|
|
1415
|
+
});
|
|
1416
|
+
await collectBody(output.body, context);
|
|
1417
|
+
return contents;
|
|
1418
|
+
};
|
|
1419
|
+
exports.deserializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommand = deserializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommand;
|
|
1420
|
+
const deserializeAws_restJson1DeleteSubscriptionNotificationConfigurationCommandError = async (output, context) => {
|
|
1421
|
+
const parsedOutput = {
|
|
1422
|
+
...output,
|
|
1423
|
+
body: await parseErrorBody(output.body, context),
|
|
1424
|
+
};
|
|
1425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
+
switch (errorCode) {
|
|
1427
|
+
case "AccessDeniedException":
|
|
1428
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1429
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1430
|
+
case "AccountNotFoundException":
|
|
1431
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1432
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1433
|
+
case "ConcurrentModificationException":
|
|
1434
|
+
case "com.amazonaws.securitylake#ConcurrentModificationException":
|
|
1435
|
+
throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1436
|
+
case "InternalServerException":
|
|
1437
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1438
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1439
|
+
case "InvalidInputException":
|
|
1440
|
+
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1441
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1442
|
+
case "ResourceNotFoundException":
|
|
1443
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1444
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1445
|
+
case "ValidationException":
|
|
1446
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1447
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1448
|
+
default:
|
|
1449
|
+
const parsedBody = parsedOutput.body;
|
|
1450
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1451
|
+
output,
|
|
1452
|
+
parsedBody,
|
|
1453
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1454
|
+
errorCode,
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
};
|
|
1458
|
+
const deserializeAws_restJson1GetDatalakeCommand = async (output, context) => {
|
|
1459
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1460
|
+
return deserializeAws_restJson1GetDatalakeCommandError(output, context);
|
|
1461
|
+
}
|
|
1462
|
+
const contents = map({
|
|
1463
|
+
$metadata: deserializeMetadata(output),
|
|
1464
|
+
});
|
|
1465
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1466
|
+
if (data.configurations != null) {
|
|
1467
|
+
contents.configurations = deserializeAws_restJson1LakeConfigurationResponseMap(data.configurations, context);
|
|
1468
|
+
}
|
|
1469
|
+
return contents;
|
|
1470
|
+
};
|
|
1471
|
+
exports.deserializeAws_restJson1GetDatalakeCommand = deserializeAws_restJson1GetDatalakeCommand;
|
|
1472
|
+
const deserializeAws_restJson1GetDatalakeCommandError = async (output, context) => {
|
|
1473
|
+
const parsedOutput = {
|
|
1474
|
+
...output,
|
|
1475
|
+
body: await parseErrorBody(output.body, context),
|
|
1476
|
+
};
|
|
1477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
|
+
switch (errorCode) {
|
|
1479
|
+
case "AccessDeniedException":
|
|
1480
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1481
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1482
|
+
case "AccountNotFoundException":
|
|
1483
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1484
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1485
|
+
case "InternalServerException":
|
|
1486
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1487
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1488
|
+
case "ResourceNotFoundException":
|
|
1489
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1490
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1491
|
+
case "ValidationException":
|
|
1492
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1493
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1494
|
+
default:
|
|
1495
|
+
const parsedBody = parsedOutput.body;
|
|
1496
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1497
|
+
output,
|
|
1498
|
+
parsedBody,
|
|
1499
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1500
|
+
errorCode,
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
};
|
|
1504
|
+
const deserializeAws_restJson1GetDatalakeAutoEnableCommand = async (output, context) => {
|
|
1505
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1506
|
+
return deserializeAws_restJson1GetDatalakeAutoEnableCommandError(output, context);
|
|
1507
|
+
}
|
|
1508
|
+
const contents = map({
|
|
1509
|
+
$metadata: deserializeMetadata(output),
|
|
1510
|
+
});
|
|
1511
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1512
|
+
if (data.autoEnableNewAccounts != null) {
|
|
1513
|
+
contents.autoEnableNewAccounts = deserializeAws_restJson1AutoEnableNewRegionConfigurationList(data.autoEnableNewAccounts, context);
|
|
1514
|
+
}
|
|
1515
|
+
return contents;
|
|
1516
|
+
};
|
|
1517
|
+
exports.deserializeAws_restJson1GetDatalakeAutoEnableCommand = deserializeAws_restJson1GetDatalakeAutoEnableCommand;
|
|
1518
|
+
const deserializeAws_restJson1GetDatalakeAutoEnableCommandError = async (output, context) => {
|
|
1519
|
+
const parsedOutput = {
|
|
1520
|
+
...output,
|
|
1521
|
+
body: await parseErrorBody(output.body, context),
|
|
1522
|
+
};
|
|
1523
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
|
+
switch (errorCode) {
|
|
1525
|
+
case "AccessDeniedException":
|
|
1526
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1527
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1528
|
+
case "AccountNotFoundException":
|
|
1529
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1530
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1531
|
+
case "InternalServerException":
|
|
1532
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1533
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1534
|
+
case "ValidationException":
|
|
1535
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1536
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1537
|
+
default:
|
|
1538
|
+
const parsedBody = parsedOutput.body;
|
|
1539
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1540
|
+
output,
|
|
1541
|
+
parsedBody,
|
|
1542
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1543
|
+
errorCode,
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
const deserializeAws_restJson1GetDatalakeExceptionsExpiryCommand = async (output, context) => {
|
|
1548
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
|
+
return deserializeAws_restJson1GetDatalakeExceptionsExpiryCommandError(output, context);
|
|
1550
|
+
}
|
|
1551
|
+
const contents = map({
|
|
1552
|
+
$metadata: deserializeMetadata(output),
|
|
1553
|
+
});
|
|
1554
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1555
|
+
if (data.exceptionMessageExpiry != null) {
|
|
1556
|
+
contents.exceptionMessageExpiry = (0, smithy_client_1.expectLong)(data.exceptionMessageExpiry);
|
|
1557
|
+
}
|
|
1558
|
+
return contents;
|
|
1559
|
+
};
|
|
1560
|
+
exports.deserializeAws_restJson1GetDatalakeExceptionsExpiryCommand = deserializeAws_restJson1GetDatalakeExceptionsExpiryCommand;
|
|
1561
|
+
const deserializeAws_restJson1GetDatalakeExceptionsExpiryCommandError = async (output, context) => {
|
|
1562
|
+
const parsedOutput = {
|
|
1563
|
+
...output,
|
|
1564
|
+
body: await parseErrorBody(output.body, context),
|
|
1565
|
+
};
|
|
1566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
|
+
switch (errorCode) {
|
|
1568
|
+
case "AccessDeniedException":
|
|
1569
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1570
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1571
|
+
case "AccountNotFoundException":
|
|
1572
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1573
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1574
|
+
case "InternalServerException":
|
|
1575
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1576
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1577
|
+
case "ValidationException":
|
|
1578
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1579
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1580
|
+
default:
|
|
1581
|
+
const parsedBody = parsedOutput.body;
|
|
1582
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1583
|
+
output,
|
|
1584
|
+
parsedBody,
|
|
1585
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1586
|
+
errorCode,
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
};
|
|
1590
|
+
const deserializeAws_restJson1GetDatalakeExceptionsSubscriptionCommand = async (output, context) => {
|
|
1591
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1592
|
+
return deserializeAws_restJson1GetDatalakeExceptionsSubscriptionCommandError(output, context);
|
|
1593
|
+
}
|
|
1594
|
+
const contents = map({
|
|
1595
|
+
$metadata: deserializeMetadata(output),
|
|
1596
|
+
});
|
|
1597
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1598
|
+
if (data.protocolAndNotificationEndpoint != null) {
|
|
1599
|
+
contents.protocolAndNotificationEndpoint = deserializeAws_restJson1ProtocolAndNotificationEndpoint(data.protocolAndNotificationEndpoint, context);
|
|
1600
|
+
}
|
|
1601
|
+
return contents;
|
|
1602
|
+
};
|
|
1603
|
+
exports.deserializeAws_restJson1GetDatalakeExceptionsSubscriptionCommand = deserializeAws_restJson1GetDatalakeExceptionsSubscriptionCommand;
|
|
1604
|
+
const deserializeAws_restJson1GetDatalakeExceptionsSubscriptionCommandError = async (output, context) => {
|
|
1605
|
+
const parsedOutput = {
|
|
1606
|
+
...output,
|
|
1607
|
+
body: await parseErrorBody(output.body, context),
|
|
1608
|
+
};
|
|
1609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
+
switch (errorCode) {
|
|
1611
|
+
case "AccessDeniedException":
|
|
1612
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1613
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1614
|
+
case "AccountNotFoundException":
|
|
1615
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1616
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1617
|
+
case "InternalServerException":
|
|
1618
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1619
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1620
|
+
case "ValidationException":
|
|
1621
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1622
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1623
|
+
default:
|
|
1624
|
+
const parsedBody = parsedOutput.body;
|
|
1625
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1626
|
+
output,
|
|
1627
|
+
parsedBody,
|
|
1628
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1629
|
+
errorCode,
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
const deserializeAws_restJson1GetDatalakeStatusCommand = async (output, context) => {
|
|
1634
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1635
|
+
return deserializeAws_restJson1GetDatalakeStatusCommandError(output, context);
|
|
1636
|
+
}
|
|
1637
|
+
const contents = map({
|
|
1638
|
+
$metadata: deserializeMetadata(output),
|
|
1639
|
+
});
|
|
1640
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1641
|
+
if (data.accountSourcesList != null) {
|
|
1642
|
+
contents.accountSourcesList = deserializeAws_restJson1AccountSourcesList(data.accountSourcesList, context);
|
|
1643
|
+
}
|
|
1644
|
+
if (data.nextToken != null) {
|
|
1645
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1646
|
+
}
|
|
1647
|
+
return contents;
|
|
1648
|
+
};
|
|
1649
|
+
exports.deserializeAws_restJson1GetDatalakeStatusCommand = deserializeAws_restJson1GetDatalakeStatusCommand;
|
|
1650
|
+
const deserializeAws_restJson1GetDatalakeStatusCommandError = async (output, context) => {
|
|
1651
|
+
const parsedOutput = {
|
|
1652
|
+
...output,
|
|
1653
|
+
body: await parseErrorBody(output.body, context),
|
|
1654
|
+
};
|
|
1655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
+
switch (errorCode) {
|
|
1657
|
+
case "AccessDeniedException":
|
|
1658
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1659
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1660
|
+
case "AccountNotFoundException":
|
|
1661
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1662
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1663
|
+
case "InternalServerException":
|
|
1664
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1665
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1666
|
+
case "ValidationException":
|
|
1667
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1668
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1669
|
+
default:
|
|
1670
|
+
const parsedBody = parsedOutput.body;
|
|
1671
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1672
|
+
output,
|
|
1673
|
+
parsedBody,
|
|
1674
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1675
|
+
errorCode,
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
};
|
|
1679
|
+
const deserializeAws_restJson1GetSubscriberCommand = async (output, context) => {
|
|
1680
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1681
|
+
return deserializeAws_restJson1GetSubscriberCommandError(output, context);
|
|
1682
|
+
}
|
|
1683
|
+
const contents = map({
|
|
1684
|
+
$metadata: deserializeMetadata(output),
|
|
1685
|
+
});
|
|
1686
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1687
|
+
if (data.subscriber != null) {
|
|
1688
|
+
contents.subscriber = deserializeAws_restJson1SubscriberResource(data.subscriber, context);
|
|
1689
|
+
}
|
|
1690
|
+
return contents;
|
|
1691
|
+
};
|
|
1692
|
+
exports.deserializeAws_restJson1GetSubscriberCommand = deserializeAws_restJson1GetSubscriberCommand;
|
|
1693
|
+
const deserializeAws_restJson1GetSubscriberCommandError = async (output, context) => {
|
|
1694
|
+
const parsedOutput = {
|
|
1695
|
+
...output,
|
|
1696
|
+
body: await parseErrorBody(output.body, context),
|
|
1697
|
+
};
|
|
1698
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
+
switch (errorCode) {
|
|
1700
|
+
case "AccessDeniedException":
|
|
1701
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1702
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1703
|
+
case "AccountNotFoundException":
|
|
1704
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1705
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1706
|
+
case "InternalServerException":
|
|
1707
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1708
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1709
|
+
case "InvalidInputException":
|
|
1710
|
+
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1711
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1712
|
+
case "ResourceNotFoundException":
|
|
1713
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1714
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1715
|
+
default:
|
|
1716
|
+
const parsedBody = parsedOutput.body;
|
|
1717
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1718
|
+
output,
|
|
1719
|
+
parsedBody,
|
|
1720
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1721
|
+
errorCode,
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
1724
|
+
};
|
|
1725
|
+
const deserializeAws_restJson1ListDatalakeExceptionsCommand = async (output, context) => {
|
|
1726
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1727
|
+
return deserializeAws_restJson1ListDatalakeExceptionsCommandError(output, context);
|
|
1728
|
+
}
|
|
1729
|
+
const contents = map({
|
|
1730
|
+
$metadata: deserializeMetadata(output),
|
|
1731
|
+
});
|
|
1732
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1733
|
+
if (data.nextToken != null) {
|
|
1734
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1735
|
+
}
|
|
1736
|
+
if (data.nonRetryableFailures != null) {
|
|
1737
|
+
contents.nonRetryableFailures = deserializeAws_restJson1FailuresResponseList(data.nonRetryableFailures, context);
|
|
1738
|
+
}
|
|
1739
|
+
return contents;
|
|
1740
|
+
};
|
|
1741
|
+
exports.deserializeAws_restJson1ListDatalakeExceptionsCommand = deserializeAws_restJson1ListDatalakeExceptionsCommand;
|
|
1742
|
+
const deserializeAws_restJson1ListDatalakeExceptionsCommandError = async (output, context) => {
|
|
1743
|
+
const parsedOutput = {
|
|
1744
|
+
...output,
|
|
1745
|
+
body: await parseErrorBody(output.body, context),
|
|
1746
|
+
};
|
|
1747
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
|
+
switch (errorCode) {
|
|
1749
|
+
case "AccessDeniedException":
|
|
1750
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1751
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1752
|
+
case "AccountNotFoundException":
|
|
1753
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1754
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1755
|
+
case "InternalServerException":
|
|
1756
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1757
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1758
|
+
case "ValidationException":
|
|
1759
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1760
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1761
|
+
default:
|
|
1762
|
+
const parsedBody = parsedOutput.body;
|
|
1763
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1764
|
+
output,
|
|
1765
|
+
parsedBody,
|
|
1766
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1767
|
+
errorCode,
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
};
|
|
1771
|
+
const deserializeAws_restJson1ListLogSourcesCommand = async (output, context) => {
|
|
1772
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1773
|
+
return deserializeAws_restJson1ListLogSourcesCommandError(output, context);
|
|
1774
|
+
}
|
|
1775
|
+
const contents = map({
|
|
1776
|
+
$metadata: deserializeMetadata(output),
|
|
1777
|
+
});
|
|
1778
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1779
|
+
if (data.nextToken != null) {
|
|
1780
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1781
|
+
}
|
|
1782
|
+
if (data.regionSourceTypesAccountsList != null) {
|
|
1783
|
+
contents.regionSourceTypesAccountsList = deserializeAws_restJson1RegionSourceTypesAccountsList(data.regionSourceTypesAccountsList, context);
|
|
1784
|
+
}
|
|
1785
|
+
return contents;
|
|
1786
|
+
};
|
|
1787
|
+
exports.deserializeAws_restJson1ListLogSourcesCommand = deserializeAws_restJson1ListLogSourcesCommand;
|
|
1788
|
+
const deserializeAws_restJson1ListLogSourcesCommandError = async (output, context) => {
|
|
1789
|
+
const parsedOutput = {
|
|
1790
|
+
...output,
|
|
1791
|
+
body: await parseErrorBody(output.body, context),
|
|
1792
|
+
};
|
|
1793
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
|
+
switch (errorCode) {
|
|
1795
|
+
case "AccessDeniedException":
|
|
1796
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1797
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1798
|
+
case "AccountNotFoundException":
|
|
1799
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1800
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1801
|
+
case "InternalServerException":
|
|
1802
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1803
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1804
|
+
case "ResourceNotFoundException":
|
|
1805
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1806
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1807
|
+
case "ValidationException":
|
|
1808
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1809
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1810
|
+
default:
|
|
1811
|
+
const parsedBody = parsedOutput.body;
|
|
1812
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1813
|
+
output,
|
|
1814
|
+
parsedBody,
|
|
1815
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1816
|
+
errorCode,
|
|
1817
|
+
});
|
|
1818
|
+
}
|
|
1819
|
+
};
|
|
1820
|
+
const deserializeAws_restJson1ListSubscribersCommand = async (output, context) => {
|
|
1821
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1822
|
+
return deserializeAws_restJson1ListSubscribersCommandError(output, context);
|
|
1823
|
+
}
|
|
1824
|
+
const contents = map({
|
|
1825
|
+
$metadata: deserializeMetadata(output),
|
|
1826
|
+
});
|
|
1827
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1828
|
+
if (data.nextToken != null) {
|
|
1829
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1830
|
+
}
|
|
1831
|
+
if (data.subscribers != null) {
|
|
1832
|
+
contents.subscribers = deserializeAws_restJson1SubscriberList(data.subscribers, context);
|
|
1833
|
+
}
|
|
1834
|
+
return contents;
|
|
1835
|
+
};
|
|
1836
|
+
exports.deserializeAws_restJson1ListSubscribersCommand = deserializeAws_restJson1ListSubscribersCommand;
|
|
1837
|
+
const deserializeAws_restJson1ListSubscribersCommandError = async (output, context) => {
|
|
1838
|
+
const parsedOutput = {
|
|
1839
|
+
...output,
|
|
1840
|
+
body: await parseErrorBody(output.body, context),
|
|
1841
|
+
};
|
|
1842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
|
+
switch (errorCode) {
|
|
1844
|
+
case "AccessDeniedException":
|
|
1845
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1846
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1847
|
+
case "AccountNotFoundException":
|
|
1848
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1849
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1850
|
+
case "InternalServerException":
|
|
1851
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1852
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1853
|
+
case "InvalidInputException":
|
|
1854
|
+
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1855
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1856
|
+
case "ResourceNotFoundException":
|
|
1857
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1858
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1859
|
+
case "ValidationException":
|
|
1860
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1861
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1862
|
+
default:
|
|
1863
|
+
const parsedBody = parsedOutput.body;
|
|
1864
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1865
|
+
output,
|
|
1866
|
+
parsedBody,
|
|
1867
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1868
|
+
errorCode,
|
|
1869
|
+
});
|
|
1870
|
+
}
|
|
1871
|
+
};
|
|
1872
|
+
const deserializeAws_restJson1UpdateDatalakeCommand = async (output, context) => {
|
|
1873
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1874
|
+
return deserializeAws_restJson1UpdateDatalakeCommandError(output, context);
|
|
1875
|
+
}
|
|
1876
|
+
const contents = map({
|
|
1877
|
+
$metadata: deserializeMetadata(output),
|
|
1878
|
+
});
|
|
1879
|
+
await collectBody(output.body, context);
|
|
1880
|
+
return contents;
|
|
1881
|
+
};
|
|
1882
|
+
exports.deserializeAws_restJson1UpdateDatalakeCommand = deserializeAws_restJson1UpdateDatalakeCommand;
|
|
1883
|
+
const deserializeAws_restJson1UpdateDatalakeCommandError = async (output, context) => {
|
|
1884
|
+
const parsedOutput = {
|
|
1885
|
+
...output,
|
|
1886
|
+
body: await parseErrorBody(output.body, context),
|
|
1887
|
+
};
|
|
1888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
|
+
switch (errorCode) {
|
|
1890
|
+
case "AccessDeniedException":
|
|
1891
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1892
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1893
|
+
case "EventBridgeException":
|
|
1894
|
+
case "com.amazonaws.securitylake#EventBridgeException":
|
|
1895
|
+
throw await deserializeAws_restJson1EventBridgeExceptionResponse(parsedOutput, context);
|
|
1896
|
+
case "InternalServerException":
|
|
1897
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1898
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1899
|
+
case "ResourceNotFoundException":
|
|
1900
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1901
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1902
|
+
case "ValidationException":
|
|
1903
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1904
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1905
|
+
default:
|
|
1906
|
+
const parsedBody = parsedOutput.body;
|
|
1907
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1908
|
+
output,
|
|
1909
|
+
parsedBody,
|
|
1910
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1911
|
+
errorCode,
|
|
1912
|
+
});
|
|
1913
|
+
}
|
|
1914
|
+
};
|
|
1915
|
+
const deserializeAws_restJson1UpdateDatalakeExceptionsExpiryCommand = async (output, context) => {
|
|
1916
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1917
|
+
return deserializeAws_restJson1UpdateDatalakeExceptionsExpiryCommandError(output, context);
|
|
1918
|
+
}
|
|
1919
|
+
const contents = map({
|
|
1920
|
+
$metadata: deserializeMetadata(output),
|
|
1921
|
+
});
|
|
1922
|
+
await collectBody(output.body, context);
|
|
1923
|
+
return contents;
|
|
1924
|
+
};
|
|
1925
|
+
exports.deserializeAws_restJson1UpdateDatalakeExceptionsExpiryCommand = deserializeAws_restJson1UpdateDatalakeExceptionsExpiryCommand;
|
|
1926
|
+
const deserializeAws_restJson1UpdateDatalakeExceptionsExpiryCommandError = async (output, context) => {
|
|
1927
|
+
const parsedOutput = {
|
|
1928
|
+
...output,
|
|
1929
|
+
body: await parseErrorBody(output.body, context),
|
|
1930
|
+
};
|
|
1931
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
+
switch (errorCode) {
|
|
1933
|
+
case "AccessDeniedException":
|
|
1934
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1935
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1936
|
+
case "AccountNotFoundException":
|
|
1937
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1938
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1939
|
+
case "InternalServerException":
|
|
1940
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1941
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1942
|
+
case "ValidationException":
|
|
1943
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1944
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1945
|
+
default:
|
|
1946
|
+
const parsedBody = parsedOutput.body;
|
|
1947
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1948
|
+
output,
|
|
1949
|
+
parsedBody,
|
|
1950
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1951
|
+
errorCode,
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1955
|
+
const deserializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommand = async (output, context) => {
|
|
1956
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1957
|
+
return deserializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommandError(output, context);
|
|
1958
|
+
}
|
|
1959
|
+
const contents = map({
|
|
1960
|
+
$metadata: deserializeMetadata(output),
|
|
1961
|
+
});
|
|
1962
|
+
await collectBody(output.body, context);
|
|
1963
|
+
return contents;
|
|
1964
|
+
};
|
|
1965
|
+
exports.deserializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommand = deserializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommand;
|
|
1966
|
+
const deserializeAws_restJson1UpdateDatalakeExceptionsSubscriptionCommandError = async (output, context) => {
|
|
1967
|
+
const parsedOutput = {
|
|
1968
|
+
...output,
|
|
1969
|
+
body: await parseErrorBody(output.body, context),
|
|
1970
|
+
};
|
|
1971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
|
+
switch (errorCode) {
|
|
1973
|
+
case "AccessDeniedException":
|
|
1974
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1975
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1976
|
+
case "AccountNotFoundException":
|
|
1977
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1978
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
1979
|
+
case "InternalServerException":
|
|
1980
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
1981
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1982
|
+
case "ValidationException":
|
|
1983
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
1984
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1985
|
+
default:
|
|
1986
|
+
const parsedBody = parsedOutput.body;
|
|
1987
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1988
|
+
output,
|
|
1989
|
+
parsedBody,
|
|
1990
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1991
|
+
errorCode,
|
|
1992
|
+
});
|
|
1993
|
+
}
|
|
1994
|
+
};
|
|
1995
|
+
const deserializeAws_restJson1UpdateSubscriberCommand = async (output, context) => {
|
|
1996
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1997
|
+
return deserializeAws_restJson1UpdateSubscriberCommandError(output, context);
|
|
1998
|
+
}
|
|
1999
|
+
const contents = map({
|
|
2000
|
+
$metadata: deserializeMetadata(output),
|
|
2001
|
+
});
|
|
2002
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2003
|
+
if (data.subscriber != null) {
|
|
2004
|
+
contents.subscriber = deserializeAws_restJson1SubscriberResource(data.subscriber, context);
|
|
2005
|
+
}
|
|
2006
|
+
return contents;
|
|
2007
|
+
};
|
|
2008
|
+
exports.deserializeAws_restJson1UpdateSubscriberCommand = deserializeAws_restJson1UpdateSubscriberCommand;
|
|
2009
|
+
const deserializeAws_restJson1UpdateSubscriberCommandError = async (output, context) => {
|
|
2010
|
+
const parsedOutput = {
|
|
2011
|
+
...output,
|
|
2012
|
+
body: await parseErrorBody(output.body, context),
|
|
2013
|
+
};
|
|
2014
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
|
+
switch (errorCode) {
|
|
2016
|
+
case "AccessDeniedException":
|
|
2017
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
2018
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2019
|
+
case "AccountNotFoundException":
|
|
2020
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
2021
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
2022
|
+
case "ConcurrentModificationException":
|
|
2023
|
+
case "com.amazonaws.securitylake#ConcurrentModificationException":
|
|
2024
|
+
throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2025
|
+
case "ConflictSubscriptionException":
|
|
2026
|
+
case "com.amazonaws.securitylake#ConflictSubscriptionException":
|
|
2027
|
+
throw await deserializeAws_restJson1ConflictSubscriptionExceptionResponse(parsedOutput, context);
|
|
2028
|
+
case "InternalServerException":
|
|
2029
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
2030
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2031
|
+
case "InvalidInputException":
|
|
2032
|
+
case "com.amazonaws.securitylake#InvalidInputException":
|
|
2033
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2034
|
+
case "ValidationException":
|
|
2035
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
2036
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2037
|
+
default:
|
|
2038
|
+
const parsedBody = parsedOutput.body;
|
|
2039
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2040
|
+
output,
|
|
2041
|
+
parsedBody,
|
|
2042
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
2043
|
+
errorCode,
|
|
2044
|
+
});
|
|
2045
|
+
}
|
|
2046
|
+
};
|
|
2047
|
+
const deserializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommand = async (output, context) => {
|
|
2048
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2049
|
+
return deserializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommandError(output, context);
|
|
2050
|
+
}
|
|
2051
|
+
const contents = map({
|
|
2052
|
+
$metadata: deserializeMetadata(output),
|
|
2053
|
+
});
|
|
2054
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2055
|
+
if (data.queueArn != null) {
|
|
2056
|
+
contents.queueArn = (0, smithy_client_1.expectString)(data.queueArn);
|
|
2057
|
+
}
|
|
2058
|
+
return contents;
|
|
2059
|
+
};
|
|
2060
|
+
exports.deserializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommand = deserializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommand;
|
|
2061
|
+
const deserializeAws_restJson1UpdateSubscriptionNotificationConfigurationCommandError = async (output, context) => {
|
|
2062
|
+
const parsedOutput = {
|
|
2063
|
+
...output,
|
|
2064
|
+
body: await parseErrorBody(output.body, context),
|
|
2065
|
+
};
|
|
2066
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
|
+
switch (errorCode) {
|
|
2068
|
+
case "AccessDeniedException":
|
|
2069
|
+
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
2070
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2071
|
+
case "AccountNotFoundException":
|
|
2072
|
+
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
2073
|
+
throw await deserializeAws_restJson1AccountNotFoundExceptionResponse(parsedOutput, context);
|
|
2074
|
+
case "ConcurrentModificationException":
|
|
2075
|
+
case "com.amazonaws.securitylake#ConcurrentModificationException":
|
|
2076
|
+
throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2077
|
+
case "InternalServerException":
|
|
2078
|
+
case "com.amazonaws.securitylake#InternalServerException":
|
|
2079
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2080
|
+
case "InvalidInputException":
|
|
2081
|
+
case "com.amazonaws.securitylake#InvalidInputException":
|
|
2082
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2083
|
+
case "ResourceNotFoundException":
|
|
2084
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
2085
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2086
|
+
case "ValidationException":
|
|
2087
|
+
case "com.amazonaws.securitylake#ValidationException":
|
|
2088
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2089
|
+
default:
|
|
2090
|
+
const parsedBody = parsedOutput.body;
|
|
2091
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2092
|
+
output,
|
|
2093
|
+
parsedBody,
|
|
2094
|
+
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
2095
|
+
errorCode,
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
const map = smithy_client_1.map;
|
|
2100
|
+
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2101
|
+
const contents = map({});
|
|
2102
|
+
const data = parsedOutput.body;
|
|
2103
|
+
if (data.message != null) {
|
|
2104
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2105
|
+
}
|
|
2106
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2107
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2108
|
+
...contents,
|
|
2109
|
+
});
|
|
2110
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2111
|
+
};
|
|
2112
|
+
const deserializeAws_restJson1AccountNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2113
|
+
const contents = map({});
|
|
2114
|
+
const data = parsedOutput.body;
|
|
2115
|
+
if (data.message != null) {
|
|
2116
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2117
|
+
}
|
|
2118
|
+
const exception = new models_0_1.AccountNotFoundException({
|
|
2119
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2120
|
+
...contents,
|
|
2121
|
+
});
|
|
2122
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2123
|
+
};
|
|
2124
|
+
const deserializeAws_restJson1BucketNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2125
|
+
const contents = map({});
|
|
2126
|
+
const data = parsedOutput.body;
|
|
2127
|
+
if (data.message != null) {
|
|
2128
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2129
|
+
}
|
|
2130
|
+
const exception = new models_0_1.BucketNotFoundException({
|
|
2131
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2132
|
+
...contents,
|
|
2133
|
+
});
|
|
2134
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2135
|
+
};
|
|
2136
|
+
const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
2137
|
+
const contents = map({});
|
|
2138
|
+
const data = parsedOutput.body;
|
|
2139
|
+
if (data.message != null) {
|
|
2140
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2141
|
+
}
|
|
2142
|
+
const exception = new models_0_1.ConcurrentModificationException({
|
|
2143
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2144
|
+
...contents,
|
|
2145
|
+
});
|
|
2146
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2147
|
+
};
|
|
2148
|
+
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2149
|
+
const contents = map({});
|
|
2150
|
+
const data = parsedOutput.body;
|
|
2151
|
+
if (data.message != null) {
|
|
2152
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2153
|
+
}
|
|
2154
|
+
if (data.resourceId != null) {
|
|
2155
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2156
|
+
}
|
|
2157
|
+
if (data.resourceType != null) {
|
|
2158
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2159
|
+
}
|
|
2160
|
+
const exception = new models_0_1.ConflictException({
|
|
2161
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2162
|
+
...contents,
|
|
2163
|
+
});
|
|
2164
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2165
|
+
};
|
|
2166
|
+
const deserializeAws_restJson1ConflictSourceNamesExceptionResponse = async (parsedOutput, context) => {
|
|
2167
|
+
const contents = map({});
|
|
2168
|
+
const data = parsedOutput.body;
|
|
2169
|
+
if (data.message != null) {
|
|
2170
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2171
|
+
}
|
|
2172
|
+
const exception = new models_0_1.ConflictSourceNamesException({
|
|
2173
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2174
|
+
...contents,
|
|
2175
|
+
});
|
|
2176
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2177
|
+
};
|
|
2178
|
+
const deserializeAws_restJson1ConflictSubscriptionExceptionResponse = async (parsedOutput, context) => {
|
|
2179
|
+
const contents = map({});
|
|
2180
|
+
const data = parsedOutput.body;
|
|
2181
|
+
if (data.message != null) {
|
|
2182
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2183
|
+
}
|
|
2184
|
+
const exception = new models_0_1.ConflictSubscriptionException({
|
|
2185
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2186
|
+
...contents,
|
|
2187
|
+
});
|
|
2188
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2189
|
+
};
|
|
2190
|
+
const deserializeAws_restJson1EventBridgeExceptionResponse = async (parsedOutput, context) => {
|
|
2191
|
+
const contents = map({});
|
|
2192
|
+
const data = parsedOutput.body;
|
|
2193
|
+
if (data.message != null) {
|
|
2194
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2195
|
+
}
|
|
2196
|
+
const exception = new models_0_1.EventBridgeException({
|
|
2197
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2198
|
+
...contents,
|
|
2199
|
+
});
|
|
2200
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2201
|
+
};
|
|
2202
|
+
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2203
|
+
const contents = map({
|
|
2204
|
+
retryAfterSeconds: [
|
|
2205
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2206
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2207
|
+
],
|
|
2208
|
+
});
|
|
2209
|
+
const data = parsedOutput.body;
|
|
2210
|
+
if (data.message != null) {
|
|
2211
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2212
|
+
}
|
|
2213
|
+
const exception = new models_0_1.InternalServerException({
|
|
2214
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2215
|
+
...contents,
|
|
2216
|
+
});
|
|
2217
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2218
|
+
};
|
|
2219
|
+
const deserializeAws_restJson1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
2220
|
+
const contents = map({});
|
|
2221
|
+
const data = parsedOutput.body;
|
|
2222
|
+
if (data.message != null) {
|
|
2223
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2224
|
+
}
|
|
2225
|
+
const exception = new models_0_1.InvalidInputException({
|
|
2226
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2227
|
+
...contents,
|
|
2228
|
+
});
|
|
2229
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2230
|
+
};
|
|
2231
|
+
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2232
|
+
const contents = map({});
|
|
2233
|
+
const data = parsedOutput.body;
|
|
2234
|
+
if (data.message != null) {
|
|
2235
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2236
|
+
}
|
|
2237
|
+
if (data.resourceId != null) {
|
|
2238
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2239
|
+
}
|
|
2240
|
+
if (data.resourceType != null) {
|
|
2241
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2242
|
+
}
|
|
2243
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2244
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2245
|
+
...contents,
|
|
2246
|
+
});
|
|
2247
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2248
|
+
};
|
|
2249
|
+
const deserializeAws_restJson1S3ExceptionResponse = async (parsedOutput, context) => {
|
|
2250
|
+
const contents = map({});
|
|
2251
|
+
const data = parsedOutput.body;
|
|
2252
|
+
if (data.message != null) {
|
|
2253
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2254
|
+
}
|
|
2255
|
+
const exception = new models_0_1.S3Exception({
|
|
2256
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2257
|
+
...contents,
|
|
2258
|
+
});
|
|
2259
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2260
|
+
};
|
|
2261
|
+
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2262
|
+
const contents = map({});
|
|
2263
|
+
const data = parsedOutput.body;
|
|
2264
|
+
if (data.message != null) {
|
|
2265
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2266
|
+
}
|
|
2267
|
+
if (data.quotaCode != null) {
|
|
2268
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2269
|
+
}
|
|
2270
|
+
if (data.resourceId != null) {
|
|
2271
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2272
|
+
}
|
|
2273
|
+
if (data.resourceType != null) {
|
|
2274
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2275
|
+
}
|
|
2276
|
+
if (data.serviceCode != null) {
|
|
2277
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2278
|
+
}
|
|
2279
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2280
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2281
|
+
...contents,
|
|
2282
|
+
});
|
|
2283
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2284
|
+
};
|
|
2285
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2286
|
+
const contents = map({
|
|
2287
|
+
retryAfterSeconds: [
|
|
2288
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2289
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2290
|
+
],
|
|
2291
|
+
});
|
|
2292
|
+
const data = parsedOutput.body;
|
|
2293
|
+
if (data.message != null) {
|
|
2294
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2295
|
+
}
|
|
2296
|
+
if (data.quotaCode != null) {
|
|
2297
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2298
|
+
}
|
|
2299
|
+
if (data.serviceCode != null) {
|
|
2300
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2301
|
+
}
|
|
2302
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2303
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2304
|
+
...contents,
|
|
2305
|
+
});
|
|
2306
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2307
|
+
};
|
|
2308
|
+
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2309
|
+
const contents = map({});
|
|
2310
|
+
const data = parsedOutput.body;
|
|
2311
|
+
if (data.fieldList != null) {
|
|
2312
|
+
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
2313
|
+
}
|
|
2314
|
+
if (data.message != null) {
|
|
2315
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2316
|
+
}
|
|
2317
|
+
if (data.reason != null) {
|
|
2318
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
2319
|
+
}
|
|
2320
|
+
const exception = new models_0_1.ValidationException({
|
|
2321
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2322
|
+
...contents,
|
|
2323
|
+
});
|
|
2324
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2325
|
+
};
|
|
2326
|
+
const serializeAws_restJson1AccessTypeList = (input, context) => {
|
|
2327
|
+
return input
|
|
2328
|
+
.filter((e) => e != null)
|
|
2329
|
+
.map((entry) => {
|
|
2330
|
+
return entry;
|
|
2331
|
+
});
|
|
2332
|
+
};
|
|
2333
|
+
const serializeAws_restJson1AllDimensionsMap = (input, context) => {
|
|
2334
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2335
|
+
if (value === null) {
|
|
2336
|
+
return acc;
|
|
2337
|
+
}
|
|
2338
|
+
acc[key] = serializeAws_restJson1TwoDimensionsMap(value, context);
|
|
2339
|
+
return acc;
|
|
2340
|
+
}, {});
|
|
2341
|
+
};
|
|
2342
|
+
const serializeAws_restJson1AutoEnableNewRegionConfiguration = (input, context) => {
|
|
2343
|
+
return {
|
|
2344
|
+
...(input.region != null && { region: input.region }),
|
|
2345
|
+
...(input.sources != null && { sources: serializeAws_restJson1AwsSourceTypeList(input.sources, context) }),
|
|
2346
|
+
};
|
|
2347
|
+
};
|
|
2348
|
+
const serializeAws_restJson1AutoEnableNewRegionConfigurationList = (input, context) => {
|
|
2349
|
+
return input
|
|
2350
|
+
.filter((e) => e != null)
|
|
2351
|
+
.map((entry) => {
|
|
2352
|
+
return serializeAws_restJson1AutoEnableNewRegionConfiguration(entry, context);
|
|
2353
|
+
});
|
|
2354
|
+
};
|
|
2355
|
+
const serializeAws_restJson1AwsSourceTypeList = (input, context) => {
|
|
2356
|
+
return input
|
|
2357
|
+
.filter((e) => e != null)
|
|
2358
|
+
.map((entry) => {
|
|
2359
|
+
return entry;
|
|
2360
|
+
});
|
|
2361
|
+
};
|
|
2362
|
+
const serializeAws_restJson1DimensionSet = (input, context) => {
|
|
2363
|
+
return input
|
|
2364
|
+
.filter((e) => e != null)
|
|
2365
|
+
.map((entry) => {
|
|
2366
|
+
return entry;
|
|
2367
|
+
});
|
|
2368
|
+
};
|
|
2369
|
+
const serializeAws_restJson1InputSet = (input, context) => {
|
|
2370
|
+
return input
|
|
2371
|
+
.filter((e) => e != null)
|
|
2372
|
+
.map((entry) => {
|
|
2373
|
+
return entry;
|
|
2374
|
+
});
|
|
2375
|
+
};
|
|
2376
|
+
const serializeAws_restJson1LakeConfigurationRequest = (input, context) => {
|
|
2377
|
+
return {
|
|
2378
|
+
...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
|
|
2379
|
+
...(input.replicationDestinationRegions != null && {
|
|
2380
|
+
replicationDestinationRegions: serializeAws_restJson1RegionSet(input.replicationDestinationRegions, context),
|
|
2381
|
+
}),
|
|
2382
|
+
...(input.replicationRoleArn != null && { replicationRoleArn: input.replicationRoleArn }),
|
|
2383
|
+
...(input.retentionSettings != null && {
|
|
2384
|
+
retentionSettings: serializeAws_restJson1RetentionSettingList(input.retentionSettings, context),
|
|
2385
|
+
}),
|
|
2386
|
+
...(input.tagsMap != null && { tagsMap: serializeAws_restJson1TagsMap(input.tagsMap, context) }),
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2389
|
+
const serializeAws_restJson1LakeConfigurationRequestMap = (input, context) => {
|
|
2390
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2391
|
+
if (value === null) {
|
|
2392
|
+
return acc;
|
|
2393
|
+
}
|
|
2394
|
+
acc[key] = serializeAws_restJson1LakeConfigurationRequest(value, context);
|
|
2395
|
+
return acc;
|
|
2396
|
+
}, {});
|
|
2397
|
+
};
|
|
2398
|
+
const serializeAws_restJson1RegionSet = (input, context) => {
|
|
2399
|
+
return input
|
|
2400
|
+
.filter((e) => e != null)
|
|
2401
|
+
.map((entry) => {
|
|
2402
|
+
return entry;
|
|
2403
|
+
});
|
|
2404
|
+
};
|
|
2405
|
+
const serializeAws_restJson1RetentionSetting = (input, context) => {
|
|
2406
|
+
return {
|
|
2407
|
+
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2408
|
+
...(input.storageClass != null && { storageClass: input.storageClass }),
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2411
|
+
const serializeAws_restJson1RetentionSettingList = (input, context) => {
|
|
2412
|
+
return input
|
|
2413
|
+
.filter((e) => e != null)
|
|
2414
|
+
.map((entry) => {
|
|
2415
|
+
return serializeAws_restJson1RetentionSetting(entry, context);
|
|
2416
|
+
});
|
|
2417
|
+
};
|
|
2418
|
+
const serializeAws_restJson1SourceType = (input, context) => {
|
|
2419
|
+
return models_0_1.SourceType.visit(input, {
|
|
2420
|
+
awsSourceType: (value) => ({ awsSourceType: value }),
|
|
2421
|
+
customSourceType: (value) => ({ customSourceType: value }),
|
|
2422
|
+
_: (name, value) => ({ name: value }),
|
|
2423
|
+
});
|
|
2424
|
+
};
|
|
2425
|
+
const serializeAws_restJson1SourceTypeList = (input, context) => {
|
|
2426
|
+
return input
|
|
2427
|
+
.filter((e) => e != null)
|
|
2428
|
+
.map((entry) => {
|
|
2429
|
+
return serializeAws_restJson1SourceType(entry, context);
|
|
2430
|
+
});
|
|
2431
|
+
};
|
|
2432
|
+
const serializeAws_restJson1TagsMap = (input, context) => {
|
|
2433
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2434
|
+
if (value === null) {
|
|
2435
|
+
return acc;
|
|
2436
|
+
}
|
|
2437
|
+
acc[key] = value;
|
|
2438
|
+
return acc;
|
|
2439
|
+
}, {});
|
|
2440
|
+
};
|
|
2441
|
+
const serializeAws_restJson1TwoDimensionsMap = (input, context) => {
|
|
2442
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2443
|
+
if (value === null) {
|
|
2444
|
+
return acc;
|
|
2445
|
+
}
|
|
2446
|
+
acc[key] = serializeAws_restJson1ValueSet(value, context);
|
|
2447
|
+
return acc;
|
|
2448
|
+
}, {});
|
|
2449
|
+
};
|
|
2450
|
+
const serializeAws_restJson1ValueSet = (input, context) => {
|
|
2451
|
+
return input
|
|
2452
|
+
.filter((e) => e != null)
|
|
2453
|
+
.map((entry) => {
|
|
2454
|
+
return entry;
|
|
2455
|
+
});
|
|
2456
|
+
};
|
|
2457
|
+
const deserializeAws_restJson1AccessTypeList = (output, context) => {
|
|
2458
|
+
const retVal = (output || [])
|
|
2459
|
+
.filter((e) => e != null)
|
|
2460
|
+
.map((entry) => {
|
|
2461
|
+
if (entry === null) {
|
|
2462
|
+
return null;
|
|
2463
|
+
}
|
|
2464
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2465
|
+
});
|
|
2466
|
+
return retVal;
|
|
2467
|
+
};
|
|
2468
|
+
const deserializeAws_restJson1AccountList = (output, context) => {
|
|
2469
|
+
const retVal = (output || [])
|
|
2470
|
+
.filter((e) => e != null)
|
|
2471
|
+
.map((entry) => {
|
|
2472
|
+
if (entry === null) {
|
|
2473
|
+
return null;
|
|
2474
|
+
}
|
|
2475
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2476
|
+
});
|
|
2477
|
+
return retVal;
|
|
2478
|
+
};
|
|
2479
|
+
const deserializeAws_restJson1AccountSources = (output, context) => {
|
|
2480
|
+
return {
|
|
2481
|
+
account: (0, smithy_client_1.expectString)(output.account),
|
|
2482
|
+
eventClass: (0, smithy_client_1.expectString)(output.eventClass),
|
|
2483
|
+
logsStatus: output.logsStatus != null ? deserializeAws_restJson1LogsStatusList(output.logsStatus, context) : undefined,
|
|
2484
|
+
sourceType: (0, smithy_client_1.expectString)(output.sourceType),
|
|
2485
|
+
};
|
|
2486
|
+
};
|
|
2487
|
+
const deserializeAws_restJson1AccountSourcesList = (output, context) => {
|
|
2488
|
+
const retVal = (output || [])
|
|
2489
|
+
.filter((e) => e != null)
|
|
2490
|
+
.map((entry) => {
|
|
2491
|
+
if (entry === null) {
|
|
2492
|
+
return null;
|
|
2493
|
+
}
|
|
2494
|
+
return deserializeAws_restJson1AccountSources(entry, context);
|
|
2495
|
+
});
|
|
2496
|
+
return retVal;
|
|
2497
|
+
};
|
|
2498
|
+
const deserializeAws_restJson1AllDimensionsMap = (output, context) => {
|
|
2499
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2500
|
+
if (value === null) {
|
|
2501
|
+
return acc;
|
|
2502
|
+
}
|
|
2503
|
+
acc[key] = deserializeAws_restJson1TwoDimensionsMap(value, context);
|
|
2504
|
+
return acc;
|
|
2505
|
+
}, {});
|
|
2506
|
+
};
|
|
2507
|
+
const deserializeAws_restJson1AutoEnableNewRegionConfiguration = (output, context) => {
|
|
2508
|
+
return {
|
|
2509
|
+
region: (0, smithy_client_1.expectString)(output.region),
|
|
2510
|
+
sources: output.sources != null ? deserializeAws_restJson1AwsSourceTypeList(output.sources, context) : undefined,
|
|
2511
|
+
};
|
|
2512
|
+
};
|
|
2513
|
+
const deserializeAws_restJson1AutoEnableNewRegionConfigurationList = (output, context) => {
|
|
2514
|
+
const retVal = (output || [])
|
|
2515
|
+
.filter((e) => e != null)
|
|
2516
|
+
.map((entry) => {
|
|
2517
|
+
if (entry === null) {
|
|
2518
|
+
return null;
|
|
2519
|
+
}
|
|
2520
|
+
return deserializeAws_restJson1AutoEnableNewRegionConfiguration(entry, context);
|
|
2521
|
+
});
|
|
2522
|
+
return retVal;
|
|
2523
|
+
};
|
|
2524
|
+
const deserializeAws_restJson1AwsSourceTypeList = (output, context) => {
|
|
2525
|
+
const retVal = (output || [])
|
|
2526
|
+
.filter((e) => e != null)
|
|
2527
|
+
.map((entry) => {
|
|
2528
|
+
if (entry === null) {
|
|
2529
|
+
return null;
|
|
2530
|
+
}
|
|
2531
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2532
|
+
});
|
|
2533
|
+
return retVal;
|
|
2534
|
+
};
|
|
2535
|
+
const deserializeAws_restJson1Failures = (output, context) => {
|
|
2536
|
+
return {
|
|
2537
|
+
exceptionMessage: (0, smithy_client_1.expectString)(output.exceptionMessage),
|
|
2538
|
+
remediation: (0, smithy_client_1.expectString)(output.remediation),
|
|
2539
|
+
timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.timestamp)) : undefined,
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
const deserializeAws_restJson1Failureslist = (output, context) => {
|
|
2543
|
+
const retVal = (output || [])
|
|
2544
|
+
.filter((e) => e != null)
|
|
2545
|
+
.map((entry) => {
|
|
2546
|
+
if (entry === null) {
|
|
2547
|
+
return null;
|
|
2548
|
+
}
|
|
2549
|
+
return deserializeAws_restJson1Failures(entry, context);
|
|
2550
|
+
});
|
|
2551
|
+
return retVal;
|
|
2552
|
+
};
|
|
2553
|
+
const deserializeAws_restJson1FailuresResponse = (output, context) => {
|
|
2554
|
+
return {
|
|
2555
|
+
failures: output.failures != null ? deserializeAws_restJson1Failureslist(output.failures, context) : undefined,
|
|
2556
|
+
region: (0, smithy_client_1.expectString)(output.region),
|
|
2557
|
+
};
|
|
2558
|
+
};
|
|
2559
|
+
const deserializeAws_restJson1FailuresResponseList = (output, context) => {
|
|
2560
|
+
const retVal = (output || [])
|
|
2561
|
+
.filter((e) => e != null)
|
|
2562
|
+
.map((entry) => {
|
|
2563
|
+
if (entry === null) {
|
|
2564
|
+
return null;
|
|
2565
|
+
}
|
|
2566
|
+
return deserializeAws_restJson1FailuresResponse(entry, context);
|
|
2567
|
+
});
|
|
2568
|
+
return retVal;
|
|
2569
|
+
};
|
|
2570
|
+
const deserializeAws_restJson1LakeConfigurationResponse = (output, context) => {
|
|
2571
|
+
return {
|
|
2572
|
+
encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
|
|
2573
|
+
replicationDestinationRegions: output.replicationDestinationRegions != null
|
|
2574
|
+
? deserializeAws_restJson1RegionSet(output.replicationDestinationRegions, context)
|
|
2575
|
+
: undefined,
|
|
2576
|
+
replicationRoleArn: (0, smithy_client_1.expectString)(output.replicationRoleArn),
|
|
2577
|
+
retentionSettings: output.retentionSettings != null
|
|
2578
|
+
? deserializeAws_restJson1RetentionSettingList(output.retentionSettings, context)
|
|
2579
|
+
: undefined,
|
|
2580
|
+
s3BucketArn: (0, smithy_client_1.expectString)(output.s3BucketArn),
|
|
2581
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2582
|
+
tagsMap: output.tagsMap != null ? deserializeAws_restJson1TagsMap(output.tagsMap, context) : undefined,
|
|
2583
|
+
};
|
|
2584
|
+
};
|
|
2585
|
+
const deserializeAws_restJson1LakeConfigurationResponseMap = (output, context) => {
|
|
2586
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2587
|
+
if (value === null) {
|
|
2588
|
+
return acc;
|
|
2589
|
+
}
|
|
2590
|
+
acc[key] = deserializeAws_restJson1LakeConfigurationResponse(value, context);
|
|
2591
|
+
return acc;
|
|
2592
|
+
}, {});
|
|
2593
|
+
};
|
|
2594
|
+
const deserializeAws_restJson1LogsStatus = (output, context) => {
|
|
2595
|
+
return {
|
|
2596
|
+
healthStatus: (0, smithy_client_1.expectString)(output.healthStatus),
|
|
2597
|
+
pathToLogs: (0, smithy_client_1.expectString)(output.pathToLogs),
|
|
2598
|
+
};
|
|
2599
|
+
};
|
|
2600
|
+
const deserializeAws_restJson1LogsStatusList = (output, context) => {
|
|
2601
|
+
const retVal = (output || [])
|
|
2602
|
+
.filter((e) => e != null)
|
|
2603
|
+
.map((entry) => {
|
|
2604
|
+
if (entry === null) {
|
|
2605
|
+
return null;
|
|
2606
|
+
}
|
|
2607
|
+
return deserializeAws_restJson1LogsStatus(entry, context);
|
|
2608
|
+
});
|
|
2609
|
+
return retVal;
|
|
2610
|
+
};
|
|
2611
|
+
const deserializeAws_restJson1ProtocolAndNotificationEndpoint = (output, context) => {
|
|
2612
|
+
return {
|
|
2613
|
+
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
2614
|
+
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
2615
|
+
};
|
|
2616
|
+
};
|
|
2617
|
+
const deserializeAws_restJson1RegionSet = (output, context) => {
|
|
2618
|
+
const retVal = (output || [])
|
|
2619
|
+
.filter((e) => e != null)
|
|
2620
|
+
.map((entry) => {
|
|
2621
|
+
if (entry === null) {
|
|
2622
|
+
return null;
|
|
2623
|
+
}
|
|
2624
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2625
|
+
});
|
|
2626
|
+
return retVal;
|
|
2627
|
+
};
|
|
2628
|
+
const deserializeAws_restJson1RegionSourceTypesAccountsList = (output, context) => {
|
|
2629
|
+
const retVal = (output || [])
|
|
2630
|
+
.filter((e) => e != null)
|
|
2631
|
+
.map((entry) => {
|
|
2632
|
+
if (entry === null) {
|
|
2633
|
+
return null;
|
|
2634
|
+
}
|
|
2635
|
+
return deserializeAws_restJson1AllDimensionsMap(entry, context);
|
|
2636
|
+
});
|
|
2637
|
+
return retVal;
|
|
2638
|
+
};
|
|
2639
|
+
const deserializeAws_restJson1RetentionSetting = (output, context) => {
|
|
2640
|
+
return {
|
|
2641
|
+
retentionPeriod: (0, smithy_client_1.expectInt32)(output.retentionPeriod),
|
|
2642
|
+
storageClass: (0, smithy_client_1.expectString)(output.storageClass),
|
|
2643
|
+
};
|
|
2644
|
+
};
|
|
2645
|
+
const deserializeAws_restJson1RetentionSettingList = (output, context) => {
|
|
2646
|
+
const retVal = (output || [])
|
|
2647
|
+
.filter((e) => e != null)
|
|
2648
|
+
.map((entry) => {
|
|
2649
|
+
if (entry === null) {
|
|
2650
|
+
return null;
|
|
2651
|
+
}
|
|
2652
|
+
return deserializeAws_restJson1RetentionSetting(entry, context);
|
|
2653
|
+
});
|
|
2654
|
+
return retVal;
|
|
2655
|
+
};
|
|
2656
|
+
const deserializeAws_restJson1SourceType = (output, context) => {
|
|
2657
|
+
if ((0, smithy_client_1.expectString)(output.awsSourceType) !== undefined) {
|
|
2658
|
+
return { awsSourceType: (0, smithy_client_1.expectString)(output.awsSourceType) };
|
|
2659
|
+
}
|
|
2660
|
+
if ((0, smithy_client_1.expectString)(output.customSourceType) !== undefined) {
|
|
2661
|
+
return { customSourceType: (0, smithy_client_1.expectString)(output.customSourceType) };
|
|
2662
|
+
}
|
|
2663
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2664
|
+
};
|
|
2665
|
+
const deserializeAws_restJson1SourceTypeList = (output, context) => {
|
|
2666
|
+
const retVal = (output || [])
|
|
2667
|
+
.filter((e) => e != null)
|
|
2668
|
+
.map((entry) => {
|
|
2669
|
+
if (entry === null) {
|
|
2670
|
+
return null;
|
|
2671
|
+
}
|
|
2672
|
+
return deserializeAws_restJson1SourceType((0, smithy_client_1.expectUnion)(entry), context);
|
|
2673
|
+
});
|
|
2674
|
+
return retVal;
|
|
2675
|
+
};
|
|
2676
|
+
const deserializeAws_restJson1SubscriberList = (output, context) => {
|
|
2677
|
+
const retVal = (output || [])
|
|
2678
|
+
.filter((e) => e != null)
|
|
2679
|
+
.map((entry) => {
|
|
2680
|
+
if (entry === null) {
|
|
2681
|
+
return null;
|
|
2682
|
+
}
|
|
2683
|
+
return deserializeAws_restJson1SubscriberResource(entry, context);
|
|
2684
|
+
});
|
|
2685
|
+
return retVal;
|
|
2686
|
+
};
|
|
2687
|
+
const deserializeAws_restJson1SubscriberResource = (output, context) => {
|
|
2688
|
+
return {
|
|
2689
|
+
accessTypes: output.accessTypes != null ? deserializeAws_restJson1AccessTypeList(output.accessTypes, context) : undefined,
|
|
2690
|
+
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2691
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
2692
|
+
externalId: (0, smithy_client_1.expectString)(output.externalId),
|
|
2693
|
+
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2694
|
+
s3BucketArn: (0, smithy_client_1.expectString)(output.s3BucketArn),
|
|
2695
|
+
snsArn: (0, smithy_client_1.expectString)(output.snsArn),
|
|
2696
|
+
sourceTypes: output.sourceTypes != null ? deserializeAws_restJson1SourceTypeList(output.sourceTypes, context) : undefined,
|
|
2697
|
+
subscriberDescription: (0, smithy_client_1.expectString)(output.subscriberDescription),
|
|
2698
|
+
subscriberName: (0, smithy_client_1.expectString)(output.subscriberName),
|
|
2699
|
+
subscriptionEndpoint: (0, smithy_client_1.expectString)(output.subscriptionEndpoint),
|
|
2700
|
+
subscriptionId: (0, smithy_client_1.expectString)(output.subscriptionId),
|
|
2701
|
+
subscriptionProtocol: (0, smithy_client_1.expectString)(output.subscriptionProtocol),
|
|
2702
|
+
subscriptionStatus: (0, smithy_client_1.expectString)(output.subscriptionStatus),
|
|
2703
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
2704
|
+
};
|
|
2705
|
+
};
|
|
2706
|
+
const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
2707
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2708
|
+
if (value === null) {
|
|
2709
|
+
return acc;
|
|
2710
|
+
}
|
|
2711
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2712
|
+
return acc;
|
|
2713
|
+
}, {});
|
|
2714
|
+
};
|
|
2715
|
+
const deserializeAws_restJson1TwoDimensionsMap = (output, context) => {
|
|
2716
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2717
|
+
if (value === null) {
|
|
2718
|
+
return acc;
|
|
2719
|
+
}
|
|
2720
|
+
acc[key] = deserializeAws_restJson1ValueSet(value, context);
|
|
2721
|
+
return acc;
|
|
2722
|
+
}, {});
|
|
2723
|
+
};
|
|
2724
|
+
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
2725
|
+
return {
|
|
2726
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2727
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2728
|
+
};
|
|
2729
|
+
};
|
|
2730
|
+
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
2731
|
+
const retVal = (output || [])
|
|
2732
|
+
.filter((e) => e != null)
|
|
2733
|
+
.map((entry) => {
|
|
2734
|
+
if (entry === null) {
|
|
2735
|
+
return null;
|
|
2736
|
+
}
|
|
2737
|
+
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
2738
|
+
});
|
|
2739
|
+
return retVal;
|
|
2740
|
+
};
|
|
2741
|
+
const deserializeAws_restJson1ValueSet = (output, context) => {
|
|
2742
|
+
const retVal = (output || [])
|
|
2743
|
+
.filter((e) => e != null)
|
|
2744
|
+
.map((entry) => {
|
|
2745
|
+
if (entry === null) {
|
|
2746
|
+
return null;
|
|
2747
|
+
}
|
|
2748
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2749
|
+
});
|
|
2750
|
+
return retVal;
|
|
2751
|
+
};
|
|
2752
|
+
const deserializeMetadata = (output) => ({
|
|
2753
|
+
httpStatusCode: output.statusCode,
|
|
2754
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2755
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2756
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2757
|
+
});
|
|
2758
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2759
|
+
if (streamBody instanceof Uint8Array) {
|
|
2760
|
+
return Promise.resolve(streamBody);
|
|
2761
|
+
}
|
|
2762
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2763
|
+
};
|
|
2764
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2765
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2766
|
+
value !== null &&
|
|
2767
|
+
value !== "" &&
|
|
2768
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2769
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2770
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2771
|
+
if (encoded.length) {
|
|
2772
|
+
return JSON.parse(encoded);
|
|
2773
|
+
}
|
|
2774
|
+
return {};
|
|
2775
|
+
});
|
|
2776
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2777
|
+
const value = await parseBody(errorBody, context);
|
|
2778
|
+
value.message = value.message ?? value.Message;
|
|
2779
|
+
return value;
|
|
2780
|
+
};
|
|
2781
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2782
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2783
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2784
|
+
let cleanValue = rawValue;
|
|
2785
|
+
if (typeof cleanValue === "number") {
|
|
2786
|
+
cleanValue = cleanValue.toString();
|
|
2787
|
+
}
|
|
2788
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2789
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2790
|
+
}
|
|
2791
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2792
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2793
|
+
}
|
|
2794
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2795
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2796
|
+
}
|
|
2797
|
+
return cleanValue;
|
|
2798
|
+
};
|
|
2799
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2800
|
+
if (headerKey !== undefined) {
|
|
2801
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2802
|
+
}
|
|
2803
|
+
if (data.code !== undefined) {
|
|
2804
|
+
return sanitizeErrorCode(data.code);
|
|
2805
|
+
}
|
|
2806
|
+
if (data["__type"] !== undefined) {
|
|
2807
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2808
|
+
}
|
|
2809
|
+
};
|