@aws-sdk/client-securitylake 3.341.0 → 3.344.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/README.md +39 -60
- package/dist-cjs/SecurityLake.js +36 -40
- package/dist-cjs/commands/{UpdateDatalakeCommand.js → CreateDataLakeCommand.js} +7 -7
- package/dist-cjs/commands/CreateDataLakeExceptionSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/CreateDataLakeOrganizationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/{DeleteDatalakeDelegatedAdminCommand.js → CreateSubscriberNotificationCommand.js} +7 -7
- package/dist-cjs/commands/{CreateDatalakeCommand.js → DeleteDataLakeCommand.js} +7 -7
- package/dist-cjs/commands/DeleteDataLakeExceptionSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/DeleteDataLakeOrganizationConfigurationCommand.js +46 -0
- package/dist-cjs/commands/{CreateDatalakeDelegatedAdminCommand.js → DeleteSubscriberNotificationCommand.js} +7 -7
- package/dist-cjs/commands/DeregisterDataLakeDelegatedAdministratorCommand.js +46 -0
- package/dist-cjs/commands/{CreateDatalakeAutoEnableCommand.js → GetDataLakeExceptionSubscriptionCommand.js} +7 -7
- package/dist-cjs/commands/{DeleteDatalakeExceptionsSubscriptionCommand.js → GetDataLakeOrganizationConfigurationCommand.js} +7 -7
- package/dist-cjs/commands/{GetDatalakeStatusCommand.js → GetDataLakeSourcesCommand.js} +7 -7
- package/dist-cjs/commands/{ListDatalakeExceptionsCommand.js → ListDataLakeExceptionsCommand.js} +7 -7
- package/dist-cjs/commands/{GetDatalakeCommand.js → ListDataLakesCommand.js} +7 -7
- package/dist-cjs/commands/{CreateDatalakeExceptionsSubscriptionCommand.js → RegisterDataLakeDelegatedAdministratorCommand.js} +7 -7
- package/dist-cjs/commands/{DeleteDatalakeCommand.js → UpdateDataLakeCommand.js} +7 -7
- package/dist-cjs/commands/UpdateDataLakeExceptionSubscriptionCommand.js +46 -0
- package/dist-cjs/commands/{DeleteDatalakeAutoEnableCommand.js → UpdateSubscriberNotificationCommand.js} +7 -7
- package/dist-cjs/commands/index.js +18 -20
- package/dist-cjs/models/models_0.js +43 -235
- package/dist-cjs/pagination/{GetDatalakeStatusPaginator.js → GetDataLakeSourcesPaginator.js} +6 -6
- package/dist-cjs/pagination/{ListDatalakeExceptionsPaginator.js → ListDataLakeExceptionsPaginator.js} +6 -6
- package/dist-cjs/pagination/index.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +531 -769
- package/dist-es/SecurityLake.js +36 -40
- package/dist-es/commands/{UpdateDatalakeCommand.js → CreateDataLakeCommand.js} +6 -6
- package/dist-es/commands/{UpdateDatalakeExceptionsSubscriptionCommand.js → CreateDataLakeExceptionSubscriptionCommand.js} +6 -6
- package/dist-es/commands/CreateDataLakeOrganizationConfigurationCommand.js +42 -0
- package/dist-es/commands/{DeleteDatalakeDelegatedAdminCommand.js → CreateSubscriberNotificationCommand.js} +6 -6
- package/dist-es/commands/{CreateDatalakeCommand.js → DeleteDataLakeCommand.js} +6 -6
- package/dist-es/commands/{CreateDatalakeExceptionsSubscriptionCommand.js → DeleteDataLakeExceptionSubscriptionCommand.js} +6 -6
- package/dist-es/commands/DeleteDataLakeOrganizationConfigurationCommand.js +42 -0
- package/dist-es/commands/{CreateDatalakeDelegatedAdminCommand.js → DeleteSubscriberNotificationCommand.js} +6 -6
- package/dist-es/commands/DeregisterDataLakeDelegatedAdministratorCommand.js +42 -0
- package/dist-es/commands/{GetDatalakeExceptionsSubscriptionCommand.js → GetDataLakeExceptionSubscriptionCommand.js} +6 -6
- package/dist-es/commands/{DeleteDatalakeExceptionsSubscriptionCommand.js → GetDataLakeOrganizationConfigurationCommand.js} +6 -6
- package/dist-es/commands/{GetDatalakeStatusCommand.js → GetDataLakeSourcesCommand.js} +6 -6
- package/dist-es/commands/{ListDatalakeExceptionsCommand.js → ListDataLakeExceptionsCommand.js} +6 -6
- package/dist-es/commands/{GetDatalakeCommand.js → ListDataLakesCommand.js} +6 -6
- package/dist-es/commands/RegisterDataLakeDelegatedAdministratorCommand.js +42 -0
- package/dist-es/commands/{DeleteDatalakeCommand.js → UpdateDataLakeCommand.js} +6 -6
- package/dist-es/commands/{CreateDatalakeAutoEnableCommand.js → UpdateDataLakeExceptionSubscriptionCommand.js} +6 -6
- package/dist-es/commands/{GetDatalakeExceptionsExpiryCommand.js → UpdateSubscriberNotificationCommand.js} +6 -6
- package/dist-es/commands/index.js +18 -20
- package/dist-es/models/models_0.js +41 -224
- package/dist-es/pagination/{GetDatalakeStatusPaginator.js → GetDataLakeSourcesPaginator.js} +4 -4
- package/dist-es/pagination/{ListDatalakeExceptionsPaginator.js → ListDataLakeExceptionsPaginator.js} +4 -4
- package/dist-es/pagination/index.js +2 -2
- package/dist-es/protocols/Aws_restJson1.js +491 -725
- package/dist-types/SecurityLake.d.ts +96 -115
- package/dist-types/SecurityLakeClient.d.ts +24 -31
- package/dist-types/commands/CreateAwsLogSourceCommand.d.ts +22 -41
- package/dist-types/commands/CreateCustomLogSourceCommand.d.ts +39 -23
- package/dist-types/commands/CreateDataLakeCommand.d.ts +172 -0
- package/dist-types/commands/CreateDataLakeExceptionSubscriptionCommand.d.ts +99 -0
- package/dist-types/commands/CreateDataLakeOrganizationConfigurationCommand.d.ts +108 -0
- package/dist-types/commands/CreateSubscriberCommand.d.ts +78 -32
- package/dist-types/commands/CreateSubscriberNotificationCommand.d.ts +110 -0
- package/dist-types/commands/DeleteAwsLogSourceCommand.d.ts +29 -39
- package/dist-types/commands/DeleteCustomLogSourceCommand.d.ts +15 -18
- package/dist-types/commands/{DeleteDatalakeCommand.d.ts → DeleteDataLakeCommand.d.ts} +33 -33
- package/dist-types/commands/DeleteDataLakeExceptionSubscriptionCommand.d.ts +95 -0
- package/dist-types/commands/DeleteDataLakeOrganizationConfigurationCommand.d.ts +110 -0
- package/dist-types/commands/DeleteSubscriberCommand.d.ts +15 -21
- package/dist-types/commands/DeleteSubscriberNotificationCommand.d.ts +97 -0
- package/dist-types/commands/DeregisterDataLakeDelegatedAdministratorCommand.d.ts +96 -0
- package/dist-types/commands/GetDataLakeExceptionSubscriptionCommand.d.ts +98 -0
- package/dist-types/commands/GetDataLakeOrganizationConfigurationCommand.d.ts +108 -0
- package/dist-types/commands/GetDataLakeSourcesCommand.d.ts +119 -0
- package/dist-types/commands/GetSubscriberCommand.d.ts +47 -28
- package/dist-types/commands/{ListDatalakeExceptionsCommand.d.ts → ListDataLakeExceptionsCommand.d.ts} +39 -36
- package/dist-types/commands/ListDataLakesCommand.d.ts +136 -0
- package/dist-types/commands/ListLogSourcesCommand.d.ts +60 -29
- package/dist-types/commands/ListSubscribersCommand.d.ts +46 -30
- package/dist-types/commands/RegisterDataLakeDelegatedAdministratorCommand.d.ts +98 -0
- package/dist-types/commands/UpdateDataLakeCommand.d.ts +158 -0
- package/dist-types/commands/UpdateDataLakeExceptionSubscriptionCommand.d.ts +99 -0
- package/dist-types/commands/UpdateSubscriberCommand.d.ts +73 -42
- package/dist-types/commands/UpdateSubscriberNotificationCommand.d.ts +109 -0
- package/dist-types/commands/index.d.ts +18 -20
- package/dist-types/index.d.ts +4 -9
- package/dist-types/models/models_0.d.ts +985 -906
- package/dist-types/pagination/GetDataLakeSourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDataLakeExceptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +94 -112
- package/dist-types/ts3.4/SecurityLake.d.ts +243 -271
- package/dist-types/ts3.4/SecurityLakeClient.d.ts +91 -103
- package/dist-types/ts3.4/commands/{CreateDatalakeCommand.d.ts → CreateDataLakeCommand.d.ts} +11 -11
- package/dist-types/ts3.4/commands/{GetDatalakeExceptionsSubscriptionCommand.d.ts → CreateDataLakeExceptionSubscriptionCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{CreateDatalakeExceptionsSubscriptionCommand.d.ts → CreateDataLakeOrganizationConfigurationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{DeleteDatalakeDelegatedAdminCommand.d.ts → CreateSubscriberNotificationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{DeleteDatalakeCommand.d.ts → DeleteDataLakeCommand.d.ts} +11 -11
- package/dist-types/ts3.4/commands/DeleteDataLakeExceptionSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteDataLakeOrganizationConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/{CreateDatalakeDelegatedAdminCommand.d.ts → DeleteSubscriberNotificationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/DeregisterDataLakeDelegatedAdministratorCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/{DeleteDatalakeAutoEnableCommand.d.ts → GetDataLakeExceptionSubscriptionCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{DeleteDatalakeExceptionsSubscriptionCommand.d.ts → GetDataLakeOrganizationConfigurationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/GetDataLakeSourcesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/{ListDatalakeExceptionsCommand.d.ts → ListDataLakeExceptionsCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/{GetDatalakeStatusCommand.d.ts → ListDataLakesCommand.d.ts} +11 -12
- package/dist-types/ts3.4/commands/RegisterDataLakeDelegatedAdministratorCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/{UpdateDatalakeCommand.d.ts → UpdateDataLakeCommand.d.ts} +11 -11
- package/dist-types/ts3.4/commands/UpdateDataLakeExceptionSubscriptionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/{CreateDatalakeAutoEnableCommand.d.ts → UpdateSubscriberNotificationCommand.d.ts} +13 -13
- package/dist-types/ts3.4/commands/index.d.ts +18 -20
- package/dist-types/ts3.4/models/models_0.d.ts +315 -431
- package/dist-types/ts3.4/pagination/GetDataLakeSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDataLakeExceptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +131 -155
- package/package.json +28 -28
- package/dist-cjs/commands/CreateSubscriptionNotificationConfigurationCommand.js +0 -46
- package/dist-cjs/commands/DeleteSubscriptionNotificationConfigurationCommand.js +0 -46
- package/dist-cjs/commands/GetDatalakeAutoEnableCommand.js +0 -46
- package/dist-cjs/commands/GetDatalakeExceptionsExpiryCommand.js +0 -46
- package/dist-cjs/commands/GetDatalakeExceptionsSubscriptionCommand.js +0 -46
- package/dist-cjs/commands/UpdateDatalakeExceptionsExpiryCommand.js +0 -46
- package/dist-cjs/commands/UpdateDatalakeExceptionsSubscriptionCommand.js +0 -46
- package/dist-cjs/commands/UpdateSubscriptionNotificationConfigurationCommand.js +0 -46
- package/dist-es/commands/CreateSubscriptionNotificationConfigurationCommand.js +0 -42
- package/dist-es/commands/DeleteDatalakeAutoEnableCommand.js +0 -42
- package/dist-es/commands/DeleteSubscriptionNotificationConfigurationCommand.js +0 -42
- package/dist-es/commands/GetDatalakeAutoEnableCommand.js +0 -42
- package/dist-es/commands/UpdateDatalakeExceptionsExpiryCommand.js +0 -42
- package/dist-es/commands/UpdateSubscriptionNotificationConfigurationCommand.js +0 -42
- package/dist-types/commands/CreateDatalakeAutoEnableCommand.d.ts +0 -98
- package/dist-types/commands/CreateDatalakeCommand.d.ts +0 -137
- package/dist-types/commands/CreateDatalakeDelegatedAdminCommand.d.ts +0 -89
- package/dist-types/commands/CreateDatalakeExceptionsSubscriptionCommand.d.ts +0 -91
- package/dist-types/commands/CreateSubscriptionNotificationConfigurationCommand.d.ts +0 -109
- package/dist-types/commands/DeleteDatalakeAutoEnableCommand.d.ts +0 -101
- package/dist-types/commands/DeleteDatalakeDelegatedAdminCommand.d.ts +0 -89
- package/dist-types/commands/DeleteDatalakeExceptionsSubscriptionCommand.d.ts +0 -90
- package/dist-types/commands/DeleteSubscriptionNotificationConfigurationCommand.d.ts +0 -100
- package/dist-types/commands/GetDatalakeAutoEnableCommand.d.ts +0 -98
- package/dist-types/commands/GetDatalakeCommand.d.ts +0 -120
- package/dist-types/commands/GetDatalakeExceptionsExpiryCommand.d.ts +0 -91
- package/dist-types/commands/GetDatalakeExceptionsSubscriptionCommand.d.ts +0 -92
- package/dist-types/commands/GetDatalakeStatusCommand.d.ts +0 -109
- package/dist-types/commands/UpdateDatalakeCommand.d.ts +0 -108
- package/dist-types/commands/UpdateDatalakeExceptionsExpiryCommand.d.ts +0 -91
- package/dist-types/commands/UpdateDatalakeExceptionsSubscriptionCommand.d.ts +0 -91
- package/dist-types/commands/UpdateSubscriptionNotificationConfigurationCommand.d.ts +0 -108
- package/dist-types/pagination/GetDatalakeStatusPaginator.d.ts +0 -7
- package/dist-types/pagination/ListDatalakeExceptionsPaginator.d.ts +0 -7
- package/dist-types/ts3.4/commands/CreateSubscriptionNotificationConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/DeleteSubscriptionNotificationConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/GetDatalakeAutoEnableCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/GetDatalakeCommand.d.ts +0 -35
- package/dist-types/ts3.4/commands/GetDatalakeExceptionsExpiryCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/UpdateDatalakeExceptionsExpiryCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/UpdateDatalakeExceptionsSubscriptionCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/UpdateSubscriptionNotificationConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/pagination/GetDatalakeStatusPaginator.d.ts +0 -11
- package/dist-types/ts3.4/pagination/ListDatalakeExceptionsPaginator.d.ts +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_ListLogSourcesCommand = exports.de_ListDataLakesCommand = exports.de_ListDataLakeExceptionsCommand = exports.de_GetSubscriberCommand = exports.de_GetDataLakeSourcesCommand = exports.de_GetDataLakeOrganizationConfigurationCommand = exports.de_GetDataLakeExceptionSubscriptionCommand = exports.de_DeregisterDataLakeDelegatedAdministratorCommand = exports.de_DeleteSubscriberNotificationCommand = exports.de_DeleteSubscriberCommand = exports.de_DeleteDataLakeOrganizationConfigurationCommand = exports.de_DeleteDataLakeExceptionSubscriptionCommand = exports.de_DeleteDataLakeCommand = exports.de_DeleteCustomLogSourceCommand = exports.de_DeleteAwsLogSourceCommand = exports.de_CreateSubscriberNotificationCommand = exports.de_CreateSubscriberCommand = exports.de_CreateDataLakeOrganizationConfigurationCommand = exports.de_CreateDataLakeExceptionSubscriptionCommand = exports.de_CreateDataLakeCommand = exports.de_CreateCustomLogSourceCommand = exports.de_CreateAwsLogSourceCommand = exports.se_UpdateSubscriberNotificationCommand = exports.se_UpdateSubscriberCommand = exports.se_UpdateDataLakeExceptionSubscriptionCommand = exports.se_UpdateDataLakeCommand = exports.se_RegisterDataLakeDelegatedAdministratorCommand = exports.se_ListSubscribersCommand = exports.se_ListLogSourcesCommand = exports.se_ListDataLakesCommand = exports.se_ListDataLakeExceptionsCommand = exports.se_GetSubscriberCommand = exports.se_GetDataLakeSourcesCommand = exports.se_GetDataLakeOrganizationConfigurationCommand = exports.se_GetDataLakeExceptionSubscriptionCommand = exports.se_DeregisterDataLakeDelegatedAdministratorCommand = exports.se_DeleteSubscriberNotificationCommand = exports.se_DeleteSubscriberCommand = exports.se_DeleteDataLakeOrganizationConfigurationCommand = exports.se_DeleteDataLakeExceptionSubscriptionCommand = exports.se_DeleteDataLakeCommand = exports.se_DeleteCustomLogSourceCommand = exports.se_DeleteAwsLogSourceCommand = exports.se_CreateSubscriberNotificationCommand = exports.se_CreateSubscriberCommand = exports.se_CreateDataLakeOrganizationConfigurationCommand = exports.se_CreateDataLakeExceptionSubscriptionCommand = exports.se_CreateDataLakeCommand = exports.se_CreateCustomLogSourceCommand = exports.se_CreateAwsLogSourceCommand = void 0;
|
|
4
|
+
exports.de_UpdateSubscriberNotificationCommand = exports.de_UpdateSubscriberCommand = exports.de_UpdateDataLakeExceptionSubscriptionCommand = exports.de_UpdateDataLakeCommand = exports.de_RegisterDataLakeDelegatedAdministratorCommand = exports.de_ListSubscribersCommand = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -11,13 +11,10 @@ const se_CreateAwsLogSourceCommand = async (input, context) => {
|
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/aws";
|
|
14
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/aws";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
|
|
18
|
-
enableSingleDimension: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
-
enableTwoDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
-
inputOrder: (_) => (0, smithy_client_1._json)(_),
|
|
17
|
+
sources: (_) => (0, smithy_client_1._json)(_),
|
|
21
18
|
}));
|
|
22
19
|
return new protocol_http_1.HttpRequest({
|
|
23
20
|
protocol,
|
|
@@ -35,13 +32,13 @@ const se_CreateCustomLogSourceCommand = async (input, context) => {
|
|
|
35
32
|
const headers = {
|
|
36
33
|
"content-type": "application/json",
|
|
37
34
|
};
|
|
38
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/custom";
|
|
35
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/custom";
|
|
39
36
|
let body;
|
|
40
37
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
39
|
+
eventClasses: (_) => (0, smithy_client_1._json)(_),
|
|
40
|
+
sourceName: [],
|
|
41
|
+
sourceVersion: [],
|
|
45
42
|
}));
|
|
46
43
|
return new protocol_http_1.HttpRequest({
|
|
47
44
|
protocol,
|
|
@@ -54,7 +51,7 @@ const se_CreateCustomLogSourceCommand = async (input, context) => {
|
|
|
54
51
|
});
|
|
55
52
|
};
|
|
56
53
|
exports.se_CreateCustomLogSourceCommand = se_CreateCustomLogSourceCommand;
|
|
57
|
-
const
|
|
54
|
+
const se_CreateDataLakeCommand = async (input, context) => {
|
|
58
55
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
56
|
const headers = {
|
|
60
57
|
"content-type": "application/json",
|
|
@@ -63,30 +60,7 @@ const se_CreateDatalakeCommand = async (input, context) => {
|
|
|
63
60
|
let body;
|
|
64
61
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
62
|
configurations: (_) => (0, smithy_client_1._json)(_),
|
|
66
|
-
enableAll: [],
|
|
67
63
|
metaStoreManagerRoleArn: [],
|
|
68
|
-
regions: (_) => (0, smithy_client_1._json)(_),
|
|
69
|
-
}));
|
|
70
|
-
return new protocol_http_1.HttpRequest({
|
|
71
|
-
protocol,
|
|
72
|
-
hostname,
|
|
73
|
-
port,
|
|
74
|
-
method: "POST",
|
|
75
|
-
headers,
|
|
76
|
-
path: resolvedPath,
|
|
77
|
-
body,
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
exports.se_CreateDatalakeCommand = se_CreateDatalakeCommand;
|
|
81
|
-
const se_CreateDatalakeAutoEnableCommand = async (input, context) => {
|
|
82
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
|
-
const headers = {
|
|
84
|
-
"content-type": "application/json",
|
|
85
|
-
};
|
|
86
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/autoenable";
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
89
|
-
configurationForNewAccounts: (_) => (0, smithy_client_1._json)(_),
|
|
90
64
|
}));
|
|
91
65
|
return new protocol_http_1.HttpRequest({
|
|
92
66
|
protocol,
|
|
@@ -98,16 +72,18 @@ const se_CreateDatalakeAutoEnableCommand = async (input, context) => {
|
|
|
98
72
|
body,
|
|
99
73
|
});
|
|
100
74
|
};
|
|
101
|
-
exports.
|
|
102
|
-
const
|
|
75
|
+
exports.se_CreateDataLakeCommand = se_CreateDataLakeCommand;
|
|
76
|
+
const se_CreateDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
103
77
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
104
78
|
const headers = {
|
|
105
79
|
"content-type": "application/json",
|
|
106
80
|
};
|
|
107
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/
|
|
81
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
108
82
|
let body;
|
|
109
83
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
110
|
-
|
|
84
|
+
exceptionTimeToLive: [],
|
|
85
|
+
notificationEndpoint: [],
|
|
86
|
+
subscriptionProtocol: [],
|
|
111
87
|
}));
|
|
112
88
|
return new protocol_http_1.HttpRequest({
|
|
113
89
|
protocol,
|
|
@@ -119,17 +95,16 @@ const se_CreateDatalakeDelegatedAdminCommand = async (input, context) => {
|
|
|
119
95
|
body,
|
|
120
96
|
});
|
|
121
97
|
};
|
|
122
|
-
exports.
|
|
123
|
-
const
|
|
98
|
+
exports.se_CreateDataLakeExceptionSubscriptionCommand = se_CreateDataLakeExceptionSubscriptionCommand;
|
|
99
|
+
const se_CreateDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
124
100
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
125
101
|
const headers = {
|
|
126
102
|
"content-type": "application/json",
|
|
127
103
|
};
|
|
128
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/
|
|
104
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/organization/configuration";
|
|
129
105
|
let body;
|
|
130
106
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
131
|
-
|
|
132
|
-
subscriptionProtocol: [],
|
|
107
|
+
autoEnableNewAccount: (_) => (0, smithy_client_1._json)(_),
|
|
133
108
|
}));
|
|
134
109
|
return new protocol_http_1.HttpRequest({
|
|
135
110
|
protocol,
|
|
@@ -141,7 +116,7 @@ const se_CreateDatalakeExceptionsSubscriptionCommand = async (input, context) =>
|
|
|
141
116
|
body,
|
|
142
117
|
});
|
|
143
118
|
};
|
|
144
|
-
exports.
|
|
119
|
+
exports.se_CreateDataLakeOrganizationConfigurationCommand = se_CreateDataLakeOrganizationConfigurationCommand;
|
|
145
120
|
const se_CreateSubscriberCommand = async (input, context) => {
|
|
146
121
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
147
122
|
const headers = {
|
|
@@ -151,10 +126,9 @@ const se_CreateSubscriberCommand = async (input, context) => {
|
|
|
151
126
|
let body;
|
|
152
127
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
153
128
|
accessTypes: (_) => (0, smithy_client_1._json)(_),
|
|
154
|
-
|
|
155
|
-
externalId: [],
|
|
156
|
-
sourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
129
|
+
sources: (_) => (0, smithy_client_1._json)(_),
|
|
157
130
|
subscriberDescription: [],
|
|
131
|
+
subscriberIdentity: (_) => (0, smithy_client_1._json)(_),
|
|
158
132
|
subscriberName: [],
|
|
159
133
|
}));
|
|
160
134
|
return new protocol_http_1.HttpRequest({
|
|
@@ -168,22 +142,17 @@ const se_CreateSubscriberCommand = async (input, context) => {
|
|
|
168
142
|
});
|
|
169
143
|
};
|
|
170
144
|
exports.se_CreateSubscriberCommand = se_CreateSubscriberCommand;
|
|
171
|
-
const
|
|
145
|
+
const se_CreateSubscriberNotificationCommand = async (input, context) => {
|
|
172
146
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
173
147
|
const headers = {
|
|
174
148
|
"content-type": "application/json",
|
|
175
149
|
};
|
|
176
150
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
177
|
-
"/
|
|
178
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
151
|
+
"/v1/subscribers/{subscriberId}/notification";
|
|
152
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
179
153
|
let body;
|
|
180
154
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
181
|
-
|
|
182
|
-
httpsApiKeyName: [],
|
|
183
|
-
httpsApiKeyValue: [],
|
|
184
|
-
httpsMethod: [],
|
|
185
|
-
roleArn: [],
|
|
186
|
-
subscriptionEndpoint: [],
|
|
155
|
+
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
187
156
|
}));
|
|
188
157
|
return new protocol_http_1.HttpRequest({
|
|
189
158
|
protocol,
|
|
@@ -195,19 +164,16 @@ const se_CreateSubscriptionNotificationConfigurationCommand = async (input, cont
|
|
|
195
164
|
body,
|
|
196
165
|
});
|
|
197
166
|
};
|
|
198
|
-
exports.
|
|
167
|
+
exports.se_CreateSubscriberNotificationCommand = se_CreateSubscriberNotificationCommand;
|
|
199
168
|
const se_DeleteAwsLogSourceCommand = async (input, context) => {
|
|
200
169
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
201
170
|
const headers = {
|
|
202
171
|
"content-type": "application/json",
|
|
203
172
|
};
|
|
204
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/aws/delete";
|
|
173
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/aws/delete";
|
|
205
174
|
let body;
|
|
206
175
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
207
|
-
|
|
208
|
-
disableSingleDimension: (_) => (0, smithy_client_1._json)(_),
|
|
209
|
-
disableTwoDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
210
|
-
inputOrder: (_) => (0, smithy_client_1._json)(_),
|
|
176
|
+
sources: (_) => (0, smithy_client_1._json)(_),
|
|
211
177
|
}));
|
|
212
178
|
return new protocol_http_1.HttpRequest({
|
|
213
179
|
protocol,
|
|
@@ -223,9 +189,11 @@ exports.se_DeleteAwsLogSourceCommand = se_DeleteAwsLogSourceCommand;
|
|
|
223
189
|
const se_DeleteCustomLogSourceCommand = async (input, context) => {
|
|
224
190
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
225
191
|
const headers = {};
|
|
226
|
-
|
|
192
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
193
|
+
"/v1/datalake/logsources/custom/{sourceName}";
|
|
194
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sourceName", () => input.sourceName, "{sourceName}", false);
|
|
227
195
|
const query = (0, smithy_client_1.map)({
|
|
228
|
-
|
|
196
|
+
sourceVersion: [, input.sourceVersion],
|
|
229
197
|
});
|
|
230
198
|
let body;
|
|
231
199
|
return new protocol_http_1.HttpRequest({
|
|
@@ -240,34 +208,15 @@ const se_DeleteCustomLogSourceCommand = async (input, context) => {
|
|
|
240
208
|
});
|
|
241
209
|
};
|
|
242
210
|
exports.se_DeleteCustomLogSourceCommand = se_DeleteCustomLogSourceCommand;
|
|
243
|
-
const
|
|
244
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
245
|
-
const headers = {
|
|
246
|
-
"content-type": "application/json",
|
|
247
|
-
};
|
|
248
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
249
|
-
let body;
|
|
250
|
-
body = "";
|
|
251
|
-
return new protocol_http_1.HttpRequest({
|
|
252
|
-
protocol,
|
|
253
|
-
hostname,
|
|
254
|
-
port,
|
|
255
|
-
method: "DELETE",
|
|
256
|
-
headers,
|
|
257
|
-
path: resolvedPath,
|
|
258
|
-
body,
|
|
259
|
-
});
|
|
260
|
-
};
|
|
261
|
-
exports.se_DeleteDatalakeCommand = se_DeleteDatalakeCommand;
|
|
262
|
-
const se_DeleteDatalakeAutoEnableCommand = async (input, context) => {
|
|
211
|
+
const se_DeleteDataLakeCommand = async (input, context) => {
|
|
263
212
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
264
213
|
const headers = {
|
|
265
214
|
"content-type": "application/json",
|
|
266
215
|
};
|
|
267
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/
|
|
216
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delete";
|
|
268
217
|
let body;
|
|
269
218
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
270
|
-
|
|
219
|
+
regions: (_) => (0, smithy_client_1._json)(_),
|
|
271
220
|
}));
|
|
272
221
|
return new protocol_http_1.HttpRequest({
|
|
273
222
|
protocol,
|
|
@@ -279,13 +228,15 @@ const se_DeleteDatalakeAutoEnableCommand = async (input, context) => {
|
|
|
279
228
|
body,
|
|
280
229
|
});
|
|
281
230
|
};
|
|
282
|
-
exports.
|
|
283
|
-
const
|
|
231
|
+
exports.se_DeleteDataLakeCommand = se_DeleteDataLakeCommand;
|
|
232
|
+
const se_DeleteDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
284
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
285
|
-
const headers = {
|
|
286
|
-
|
|
287
|
-
|
|
234
|
+
const headers = {
|
|
235
|
+
"content-type": "application/json",
|
|
236
|
+
};
|
|
237
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
288
238
|
let body;
|
|
239
|
+
body = "";
|
|
289
240
|
return new protocol_http_1.HttpRequest({
|
|
290
241
|
protocol,
|
|
291
242
|
hostname,
|
|
@@ -296,33 +247,34 @@ const se_DeleteDatalakeDelegatedAdminCommand = async (input, context) => {
|
|
|
296
247
|
body,
|
|
297
248
|
});
|
|
298
249
|
};
|
|
299
|
-
exports.
|
|
300
|
-
const
|
|
250
|
+
exports.se_DeleteDataLakeExceptionSubscriptionCommand = se_DeleteDataLakeExceptionSubscriptionCommand;
|
|
251
|
+
const se_DeleteDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
301
252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
302
253
|
const headers = {
|
|
303
254
|
"content-type": "application/json",
|
|
304
255
|
};
|
|
305
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
256
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
257
|
+
"/v1/datalake/organization/configuration/delete";
|
|
306
258
|
let body;
|
|
307
|
-
body =
|
|
259
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
260
|
+
autoEnableNewAccount: (_) => (0, smithy_client_1._json)(_),
|
|
261
|
+
}));
|
|
308
262
|
return new protocol_http_1.HttpRequest({
|
|
309
263
|
protocol,
|
|
310
264
|
hostname,
|
|
311
265
|
port,
|
|
312
|
-
method: "
|
|
266
|
+
method: "POST",
|
|
313
267
|
headers,
|
|
314
268
|
path: resolvedPath,
|
|
315
269
|
body,
|
|
316
270
|
});
|
|
317
271
|
};
|
|
318
|
-
exports.
|
|
272
|
+
exports.se_DeleteDataLakeOrganizationConfigurationCommand = se_DeleteDataLakeOrganizationConfigurationCommand;
|
|
319
273
|
const se_DeleteSubscriberCommand = async (input, context) => {
|
|
320
274
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
321
275
|
const headers = {};
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
id: [, (0, smithy_client_1.expectNonNull)(input.id, `id`)],
|
|
325
|
-
});
|
|
276
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}";
|
|
277
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
326
278
|
let body;
|
|
327
279
|
return new protocol_http_1.HttpRequest({
|
|
328
280
|
protocol,
|
|
@@ -331,17 +283,16 @@ const se_DeleteSubscriberCommand = async (input, context) => {
|
|
|
331
283
|
method: "DELETE",
|
|
332
284
|
headers,
|
|
333
285
|
path: resolvedPath,
|
|
334
|
-
query,
|
|
335
286
|
body,
|
|
336
287
|
});
|
|
337
288
|
};
|
|
338
289
|
exports.se_DeleteSubscriberCommand = se_DeleteSubscriberCommand;
|
|
339
|
-
const
|
|
290
|
+
const se_DeleteSubscriberNotificationCommand = async (input, context) => {
|
|
340
291
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
292
|
const headers = {};
|
|
342
293
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
343
|
-
"/
|
|
344
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
294
|
+
"/v1/subscribers/{subscriberId}/notification";
|
|
295
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
345
296
|
let body;
|
|
346
297
|
return new protocol_http_1.HttpRequest({
|
|
347
298
|
protocol,
|
|
@@ -353,51 +304,32 @@ const se_DeleteSubscriptionNotificationConfigurationCommand = async (input, cont
|
|
|
353
304
|
body,
|
|
354
305
|
});
|
|
355
306
|
};
|
|
356
|
-
exports.
|
|
357
|
-
const
|
|
358
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
359
|
-
const headers = {
|
|
360
|
-
"content-type": "application/json",
|
|
361
|
-
};
|
|
362
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
363
|
-
let body;
|
|
364
|
-
body = "";
|
|
365
|
-
return new protocol_http_1.HttpRequest({
|
|
366
|
-
protocol,
|
|
367
|
-
hostname,
|
|
368
|
-
port,
|
|
369
|
-
method: "GET",
|
|
370
|
-
headers,
|
|
371
|
-
path: resolvedPath,
|
|
372
|
-
body,
|
|
373
|
-
});
|
|
374
|
-
};
|
|
375
|
-
exports.se_GetDatalakeCommand = se_GetDatalakeCommand;
|
|
376
|
-
const se_GetDatalakeAutoEnableCommand = async (input, context) => {
|
|
307
|
+
exports.se_DeleteSubscriberNotificationCommand = se_DeleteSubscriberNotificationCommand;
|
|
308
|
+
const se_DeregisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
|
|
377
309
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
378
310
|
const headers = {
|
|
379
311
|
"content-type": "application/json",
|
|
380
312
|
};
|
|
381
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/
|
|
313
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate";
|
|
382
314
|
let body;
|
|
383
315
|
body = "";
|
|
384
316
|
return new protocol_http_1.HttpRequest({
|
|
385
317
|
protocol,
|
|
386
318
|
hostname,
|
|
387
319
|
port,
|
|
388
|
-
method: "
|
|
320
|
+
method: "DELETE",
|
|
389
321
|
headers,
|
|
390
322
|
path: resolvedPath,
|
|
391
323
|
body,
|
|
392
324
|
});
|
|
393
325
|
};
|
|
394
|
-
exports.
|
|
395
|
-
const
|
|
326
|
+
exports.se_DeregisterDataLakeDelegatedAdministratorCommand = se_DeregisterDataLakeDelegatedAdministratorCommand;
|
|
327
|
+
const se_GetDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
396
328
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
329
|
const headers = {
|
|
398
330
|
"content-type": "application/json",
|
|
399
331
|
};
|
|
400
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/
|
|
332
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
401
333
|
let body;
|
|
402
334
|
body = "";
|
|
403
335
|
return new protocol_http_1.HttpRequest({
|
|
@@ -410,13 +342,13 @@ const se_GetDatalakeExceptionsExpiryCommand = async (input, context) => {
|
|
|
410
342
|
body,
|
|
411
343
|
});
|
|
412
344
|
};
|
|
413
|
-
exports.
|
|
414
|
-
const
|
|
345
|
+
exports.se_GetDataLakeExceptionSubscriptionCommand = se_GetDataLakeExceptionSubscriptionCommand;
|
|
346
|
+
const se_GetDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
415
347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
416
348
|
const headers = {
|
|
417
349
|
"content-type": "application/json",
|
|
418
350
|
};
|
|
419
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/
|
|
351
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/organization/configuration";
|
|
420
352
|
let body;
|
|
421
353
|
body = "";
|
|
422
354
|
return new protocol_http_1.HttpRequest({
|
|
@@ -429,17 +361,17 @@ const se_GetDatalakeExceptionsSubscriptionCommand = async (input, context) => {
|
|
|
429
361
|
body,
|
|
430
362
|
});
|
|
431
363
|
};
|
|
432
|
-
exports.
|
|
433
|
-
const
|
|
364
|
+
exports.se_GetDataLakeOrganizationConfigurationCommand = se_GetDataLakeOrganizationConfigurationCommand;
|
|
365
|
+
const se_GetDataLakeSourcesCommand = async (input, context) => {
|
|
434
366
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
435
367
|
const headers = {
|
|
436
368
|
"content-type": "application/json",
|
|
437
369
|
};
|
|
438
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/
|
|
370
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/sources";
|
|
439
371
|
let body;
|
|
440
372
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
441
|
-
|
|
442
|
-
|
|
373
|
+
accounts: (_) => (0, smithy_client_1._json)(_),
|
|
374
|
+
maxResults: [],
|
|
443
375
|
nextToken: [],
|
|
444
376
|
}));
|
|
445
377
|
return new protocol_http_1.HttpRequest({
|
|
@@ -452,12 +384,12 @@ const se_GetDatalakeStatusCommand = async (input, context) => {
|
|
|
452
384
|
body,
|
|
453
385
|
});
|
|
454
386
|
};
|
|
455
|
-
exports.
|
|
387
|
+
exports.se_GetDataLakeSourcesCommand = se_GetDataLakeSourcesCommand;
|
|
456
388
|
const se_GetSubscriberCommand = async (input, context) => {
|
|
457
389
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
458
390
|
const headers = {};
|
|
459
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{
|
|
460
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
391
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}";
|
|
392
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
461
393
|
let body;
|
|
462
394
|
return new protocol_http_1.HttpRequest({
|
|
463
395
|
protocol,
|
|
@@ -470,7 +402,7 @@ const se_GetSubscriberCommand = async (input, context) => {
|
|
|
470
402
|
});
|
|
471
403
|
};
|
|
472
404
|
exports.se_GetSubscriberCommand = se_GetSubscriberCommand;
|
|
473
|
-
const
|
|
405
|
+
const se_ListDataLakeExceptionsCommand = async (input, context) => {
|
|
474
406
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
475
407
|
const headers = {
|
|
476
408
|
"content-type": "application/json",
|
|
@@ -478,9 +410,9 @@ const se_ListDatalakeExceptionsCommand = async (input, context) => {
|
|
|
478
410
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions";
|
|
479
411
|
let body;
|
|
480
412
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
481
|
-
|
|
413
|
+
maxResults: [],
|
|
482
414
|
nextToken: [],
|
|
483
|
-
|
|
415
|
+
regions: (_) => (0, smithy_client_1._json)(_),
|
|
484
416
|
}));
|
|
485
417
|
return new protocol_http_1.HttpRequest({
|
|
486
418
|
protocol,
|
|
@@ -492,21 +424,40 @@ const se_ListDatalakeExceptionsCommand = async (input, context) => {
|
|
|
492
424
|
body,
|
|
493
425
|
});
|
|
494
426
|
};
|
|
495
|
-
exports.
|
|
427
|
+
exports.se_ListDataLakeExceptionsCommand = se_ListDataLakeExceptionsCommand;
|
|
428
|
+
const se_ListDataLakesCommand = async (input, context) => {
|
|
429
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
430
|
+
const headers = {};
|
|
431
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalakes";
|
|
432
|
+
const query = (0, smithy_client_1.map)({
|
|
433
|
+
regions: [() => input.regions !== void 0, () => (input.regions || []).map((_entry) => _entry)],
|
|
434
|
+
});
|
|
435
|
+
let body;
|
|
436
|
+
return new protocol_http_1.HttpRequest({
|
|
437
|
+
protocol,
|
|
438
|
+
hostname,
|
|
439
|
+
port,
|
|
440
|
+
method: "GET",
|
|
441
|
+
headers,
|
|
442
|
+
path: resolvedPath,
|
|
443
|
+
query,
|
|
444
|
+
body,
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
exports.se_ListDataLakesCommand = se_ListDataLakesCommand;
|
|
496
448
|
const se_ListLogSourcesCommand = async (input, context) => {
|
|
497
449
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
498
450
|
const headers = {
|
|
499
451
|
"content-type": "application/json",
|
|
500
452
|
};
|
|
501
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/list";
|
|
453
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/list";
|
|
502
454
|
let body;
|
|
503
455
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
504
|
-
|
|
505
|
-
listAllDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
506
|
-
listSingleDimension: (_) => (0, smithy_client_1._json)(_),
|
|
507
|
-
listTwoDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
456
|
+
accounts: (_) => (0, smithy_client_1._json)(_),
|
|
508
457
|
maxResults: [],
|
|
509
458
|
nextToken: [],
|
|
459
|
+
regions: (_) => (0, smithy_client_1._json)(_),
|
|
460
|
+
sources: (_) => (0, smithy_client_1._json)(_),
|
|
510
461
|
}));
|
|
511
462
|
return new protocol_http_1.HttpRequest({
|
|
512
463
|
protocol,
|
|
@@ -540,36 +491,36 @@ const se_ListSubscribersCommand = async (input, context) => {
|
|
|
540
491
|
});
|
|
541
492
|
};
|
|
542
493
|
exports.se_ListSubscribersCommand = se_ListSubscribersCommand;
|
|
543
|
-
const
|
|
494
|
+
const se_RegisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
|
|
544
495
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
545
496
|
const headers = {
|
|
546
497
|
"content-type": "application/json",
|
|
547
498
|
};
|
|
548
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
499
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate";
|
|
549
500
|
let body;
|
|
550
501
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
551
|
-
|
|
502
|
+
accountId: [],
|
|
552
503
|
}));
|
|
553
504
|
return new protocol_http_1.HttpRequest({
|
|
554
505
|
protocol,
|
|
555
506
|
hostname,
|
|
556
507
|
port,
|
|
557
|
-
method: "
|
|
508
|
+
method: "POST",
|
|
558
509
|
headers,
|
|
559
510
|
path: resolvedPath,
|
|
560
511
|
body,
|
|
561
512
|
});
|
|
562
513
|
};
|
|
563
|
-
exports.
|
|
564
|
-
const
|
|
514
|
+
exports.se_RegisterDataLakeDelegatedAdministratorCommand = se_RegisterDataLakeDelegatedAdministratorCommand;
|
|
515
|
+
const se_UpdateDataLakeCommand = async (input, context) => {
|
|
565
516
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
566
517
|
const headers = {
|
|
567
518
|
"content-type": "application/json",
|
|
568
519
|
};
|
|
569
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake
|
|
520
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
570
521
|
let body;
|
|
571
522
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
572
|
-
|
|
523
|
+
configurations: (_) => (0, smithy_client_1._json)(_),
|
|
573
524
|
}));
|
|
574
525
|
return new protocol_http_1.HttpRequest({
|
|
575
526
|
protocol,
|
|
@@ -581,8 +532,8 @@ const se_UpdateDatalakeExceptionsExpiryCommand = async (input, context) => {
|
|
|
581
532
|
body,
|
|
582
533
|
});
|
|
583
534
|
};
|
|
584
|
-
exports.
|
|
585
|
-
const
|
|
535
|
+
exports.se_UpdateDataLakeCommand = se_UpdateDataLakeCommand;
|
|
536
|
+
const se_UpdateDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
586
537
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
587
538
|
const headers = {
|
|
588
539
|
"content-type": "application/json",
|
|
@@ -590,6 +541,7 @@ const se_UpdateDatalakeExceptionsSubscriptionCommand = async (input, context) =>
|
|
|
590
541
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
591
542
|
let body;
|
|
592
543
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
544
|
+
exceptionTimeToLive: [],
|
|
593
545
|
notificationEndpoint: [],
|
|
594
546
|
subscriptionProtocol: [],
|
|
595
547
|
}));
|
|
@@ -603,19 +555,19 @@ const se_UpdateDatalakeExceptionsSubscriptionCommand = async (input, context) =>
|
|
|
603
555
|
body,
|
|
604
556
|
});
|
|
605
557
|
};
|
|
606
|
-
exports.
|
|
558
|
+
exports.se_UpdateDataLakeExceptionSubscriptionCommand = se_UpdateDataLakeExceptionSubscriptionCommand;
|
|
607
559
|
const se_UpdateSubscriberCommand = async (input, context) => {
|
|
608
560
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
561
|
const headers = {
|
|
610
562
|
"content-type": "application/json",
|
|
611
563
|
};
|
|
612
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{
|
|
613
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
564
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}";
|
|
565
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
614
566
|
let body;
|
|
615
567
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
616
|
-
|
|
617
|
-
sourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
568
|
+
sources: (_) => (0, smithy_client_1._json)(_),
|
|
618
569
|
subscriberDescription: [],
|
|
570
|
+
subscriberIdentity: (_) => (0, smithy_client_1._json)(_),
|
|
619
571
|
subscriberName: [],
|
|
620
572
|
}));
|
|
621
573
|
return new protocol_http_1.HttpRequest({
|
|
@@ -629,22 +581,17 @@ const se_UpdateSubscriberCommand = async (input, context) => {
|
|
|
629
581
|
});
|
|
630
582
|
};
|
|
631
583
|
exports.se_UpdateSubscriberCommand = se_UpdateSubscriberCommand;
|
|
632
|
-
const
|
|
584
|
+
const se_UpdateSubscriberNotificationCommand = async (input, context) => {
|
|
633
585
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
634
586
|
const headers = {
|
|
635
587
|
"content-type": "application/json",
|
|
636
588
|
};
|
|
637
589
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
638
|
-
"/
|
|
639
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
590
|
+
"/v1/subscribers/{subscriberId}/notification";
|
|
591
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
640
592
|
let body;
|
|
641
593
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
642
|
-
|
|
643
|
-
httpsApiKeyName: [],
|
|
644
|
-
httpsApiKeyValue: [],
|
|
645
|
-
httpsMethod: [],
|
|
646
|
-
roleArn: [],
|
|
647
|
-
subscriptionEndpoint: [],
|
|
594
|
+
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
648
595
|
}));
|
|
649
596
|
return new protocol_http_1.HttpRequest({
|
|
650
597
|
protocol,
|
|
@@ -656,7 +603,7 @@ const se_UpdateSubscriptionNotificationConfigurationCommand = async (input, cont
|
|
|
656
603
|
body,
|
|
657
604
|
});
|
|
658
605
|
};
|
|
659
|
-
exports.
|
|
606
|
+
exports.se_UpdateSubscriberNotificationCommand = se_UpdateSubscriberNotificationCommand;
|
|
660
607
|
const de_CreateAwsLogSourceCommand = async (output, context) => {
|
|
661
608
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
609
|
return de_CreateAwsLogSourceCommandError(output, context);
|
|
@@ -667,7 +614,6 @@ const de_CreateAwsLogSourceCommand = async (output, context) => {
|
|
|
667
614
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
668
615
|
const doc = (0, smithy_client_1.take)(data, {
|
|
669
616
|
failed: smithy_client_1._json,
|
|
670
|
-
processing: smithy_client_1._json,
|
|
671
617
|
});
|
|
672
618
|
Object.assign(contents, doc);
|
|
673
619
|
return contents;
|
|
@@ -683,21 +629,21 @@ const de_CreateAwsLogSourceCommandError = async (output, context) => {
|
|
|
683
629
|
case "AccessDeniedException":
|
|
684
630
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
685
631
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
686
|
-
case "
|
|
687
|
-
case "com.amazonaws.securitylake#
|
|
688
|
-
throw await
|
|
632
|
+
case "BadRequestException":
|
|
633
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
634
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
635
|
+
case "ConflictException":
|
|
636
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
637
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
689
638
|
case "InternalServerException":
|
|
690
639
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
691
640
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
692
641
|
case "ResourceNotFoundException":
|
|
693
642
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
694
643
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
695
|
-
case "
|
|
696
|
-
case "com.amazonaws.securitylake#
|
|
697
|
-
throw await
|
|
698
|
-
case "ValidationException":
|
|
699
|
-
case "com.amazonaws.securitylake#ValidationException":
|
|
700
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
|
+
case "ThrottlingException":
|
|
645
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
646
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
701
647
|
default:
|
|
702
648
|
const parsedBody = parsedOutput.body;
|
|
703
649
|
return throwDefaultError({
|
|
@@ -716,11 +662,7 @@ const de_CreateCustomLogSourceCommand = async (output, context) => {
|
|
|
716
662
|
});
|
|
717
663
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
718
664
|
const doc = (0, smithy_client_1.take)(data, {
|
|
719
|
-
|
|
720
|
-
glueCrawlerName: smithy_client_1.expectString,
|
|
721
|
-
glueDatabaseName: smithy_client_1.expectString,
|
|
722
|
-
glueTableName: smithy_client_1.expectString,
|
|
723
|
-
logProviderAccessRoleArn: smithy_client_1.expectString,
|
|
665
|
+
source: smithy_client_1._json,
|
|
724
666
|
});
|
|
725
667
|
Object.assign(contents, doc);
|
|
726
668
|
return contents;
|
|
@@ -736,24 +678,21 @@ const de_CreateCustomLogSourceCommandError = async (output, context) => {
|
|
|
736
678
|
case "AccessDeniedException":
|
|
737
679
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
738
680
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
739
|
-
case "
|
|
740
|
-
case "com.amazonaws.securitylake#
|
|
741
|
-
throw await
|
|
742
|
-
case "
|
|
743
|
-
case "com.amazonaws.securitylake#
|
|
744
|
-
throw await
|
|
745
|
-
case "ConflictSourceNamesException":
|
|
746
|
-
case "com.amazonaws.securitylake#ConflictSourceNamesException":
|
|
747
|
-
throw await de_ConflictSourceNamesExceptionRes(parsedOutput, context);
|
|
681
|
+
case "BadRequestException":
|
|
682
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
683
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
684
|
+
case "ConflictException":
|
|
685
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
686
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
748
687
|
case "InternalServerException":
|
|
749
688
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
750
689
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
751
690
|
case "ResourceNotFoundException":
|
|
752
691
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
753
692
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
754
|
-
case "
|
|
755
|
-
case "com.amazonaws.securitylake#
|
|
756
|
-
throw await
|
|
693
|
+
case "ThrottlingException":
|
|
694
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
695
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
757
696
|
default:
|
|
758
697
|
const parsedBody = parsedOutput.body;
|
|
759
698
|
return throwDefaultError({
|
|
@@ -763,18 +702,22 @@ const de_CreateCustomLogSourceCommandError = async (output, context) => {
|
|
|
763
702
|
});
|
|
764
703
|
}
|
|
765
704
|
};
|
|
766
|
-
const
|
|
705
|
+
const de_CreateDataLakeCommand = async (output, context) => {
|
|
767
706
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
|
-
return
|
|
707
|
+
return de_CreateDataLakeCommandError(output, context);
|
|
769
708
|
}
|
|
770
709
|
const contents = (0, smithy_client_1.map)({
|
|
771
710
|
$metadata: deserializeMetadata(output),
|
|
772
711
|
});
|
|
773
|
-
await
|
|
712
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
713
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
714
|
+
dataLakes: smithy_client_1._json,
|
|
715
|
+
});
|
|
716
|
+
Object.assign(contents, doc);
|
|
774
717
|
return contents;
|
|
775
718
|
};
|
|
776
|
-
exports.
|
|
777
|
-
const
|
|
719
|
+
exports.de_CreateDataLakeCommand = de_CreateDataLakeCommand;
|
|
720
|
+
const de_CreateDataLakeCommandError = async (output, context) => {
|
|
778
721
|
const parsedOutput = {
|
|
779
722
|
...output,
|
|
780
723
|
body: await parseErrorBody(output.body, context),
|
|
@@ -784,6 +727,9 @@ const de_CreateDatalakeCommandError = async (output, context) => {
|
|
|
784
727
|
case "AccessDeniedException":
|
|
785
728
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
786
729
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
730
|
+
case "BadRequestException":
|
|
731
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
732
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
787
733
|
case "ConflictException":
|
|
788
734
|
case "com.amazonaws.securitylake#ConflictException":
|
|
789
735
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
@@ -793,15 +739,9 @@ const de_CreateDatalakeCommandError = async (output, context) => {
|
|
|
793
739
|
case "ResourceNotFoundException":
|
|
794
740
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
795
741
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
796
|
-
case "ServiceQuotaExceededException":
|
|
797
|
-
case "com.amazonaws.securitylake#ServiceQuotaExceededException":
|
|
798
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
799
742
|
case "ThrottlingException":
|
|
800
743
|
case "com.amazonaws.securitylake#ThrottlingException":
|
|
801
744
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ValidationException":
|
|
803
|
-
case "com.amazonaws.securitylake#ValidationException":
|
|
804
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
805
745
|
default:
|
|
806
746
|
const parsedBody = parsedOutput.body;
|
|
807
747
|
return throwDefaultError({
|
|
@@ -811,9 +751,9 @@ const de_CreateDatalakeCommandError = async (output, context) => {
|
|
|
811
751
|
});
|
|
812
752
|
}
|
|
813
753
|
};
|
|
814
|
-
const
|
|
754
|
+
const de_CreateDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
815
755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
816
|
-
return
|
|
756
|
+
return de_CreateDataLakeExceptionSubscriptionCommandError(output, context);
|
|
817
757
|
}
|
|
818
758
|
const contents = (0, smithy_client_1.map)({
|
|
819
759
|
$metadata: deserializeMetadata(output),
|
|
@@ -821,47 +761,8 @@ const de_CreateDatalakeAutoEnableCommand = async (output, context) => {
|
|
|
821
761
|
await collectBody(output.body, context);
|
|
822
762
|
return contents;
|
|
823
763
|
};
|
|
824
|
-
exports.
|
|
825
|
-
const
|
|
826
|
-
const parsedOutput = {
|
|
827
|
-
...output,
|
|
828
|
-
body: await parseErrorBody(output.body, context),
|
|
829
|
-
};
|
|
830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
|
-
switch (errorCode) {
|
|
832
|
-
case "AccessDeniedException":
|
|
833
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
834
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
835
|
-
case "AccountNotFoundException":
|
|
836
|
-
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
837
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
838
|
-
case "InternalServerException":
|
|
839
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
840
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ValidationException":
|
|
842
|
-
case "com.amazonaws.securitylake#ValidationException":
|
|
843
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
844
|
-
default:
|
|
845
|
-
const parsedBody = parsedOutput.body;
|
|
846
|
-
return throwDefaultError({
|
|
847
|
-
output,
|
|
848
|
-
parsedBody,
|
|
849
|
-
errorCode,
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
const de_CreateDatalakeDelegatedAdminCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_CreateDatalakeDelegatedAdminCommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = (0, smithy_client_1.map)({
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
});
|
|
860
|
-
await collectBody(output.body, context);
|
|
861
|
-
return contents;
|
|
862
|
-
};
|
|
863
|
-
exports.de_CreateDatalakeDelegatedAdminCommand = de_CreateDatalakeDelegatedAdminCommand;
|
|
864
|
-
const de_CreateDatalakeDelegatedAdminCommandError = async (output, context) => {
|
|
764
|
+
exports.de_CreateDataLakeExceptionSubscriptionCommand = de_CreateDataLakeExceptionSubscriptionCommand;
|
|
765
|
+
const de_CreateDataLakeExceptionSubscriptionCommandError = async (output, context) => {
|
|
865
766
|
const parsedOutput = {
|
|
866
767
|
...output,
|
|
867
768
|
body: await parseErrorBody(output.body, context),
|
|
@@ -871,15 +772,21 @@ const de_CreateDatalakeDelegatedAdminCommandError = async (output, context) => {
|
|
|
871
772
|
case "AccessDeniedException":
|
|
872
773
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
873
774
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
775
|
+
case "BadRequestException":
|
|
776
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
777
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
778
|
+
case "ConflictException":
|
|
779
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
780
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
874
781
|
case "InternalServerException":
|
|
875
782
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
876
783
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
784
|
+
case "ResourceNotFoundException":
|
|
785
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
786
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
877
787
|
case "ThrottlingException":
|
|
878
788
|
case "com.amazonaws.securitylake#ThrottlingException":
|
|
879
789
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ValidationException":
|
|
881
|
-
case "com.amazonaws.securitylake#ValidationException":
|
|
882
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
883
790
|
default:
|
|
884
791
|
const parsedBody = parsedOutput.body;
|
|
885
792
|
return throwDefaultError({
|
|
@@ -889,9 +796,9 @@ const de_CreateDatalakeDelegatedAdminCommandError = async (output, context) => {
|
|
|
889
796
|
});
|
|
890
797
|
}
|
|
891
798
|
};
|
|
892
|
-
const
|
|
799
|
+
const de_CreateDataLakeOrganizationConfigurationCommand = async (output, context) => {
|
|
893
800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
-
return
|
|
801
|
+
return de_CreateDataLakeOrganizationConfigurationCommandError(output, context);
|
|
895
802
|
}
|
|
896
803
|
const contents = (0, smithy_client_1.map)({
|
|
897
804
|
$metadata: deserializeMetadata(output),
|
|
@@ -899,8 +806,8 @@ const de_CreateDatalakeExceptionsSubscriptionCommand = async (output, context) =
|
|
|
899
806
|
await collectBody(output.body, context);
|
|
900
807
|
return contents;
|
|
901
808
|
};
|
|
902
|
-
exports.
|
|
903
|
-
const
|
|
809
|
+
exports.de_CreateDataLakeOrganizationConfigurationCommand = de_CreateDataLakeOrganizationConfigurationCommand;
|
|
810
|
+
const de_CreateDataLakeOrganizationConfigurationCommandError = async (output, context) => {
|
|
904
811
|
const parsedOutput = {
|
|
905
812
|
...output,
|
|
906
813
|
body: await parseErrorBody(output.body, context),
|
|
@@ -910,15 +817,21 @@ const de_CreateDatalakeExceptionsSubscriptionCommandError = async (output, conte
|
|
|
910
817
|
case "AccessDeniedException":
|
|
911
818
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
912
819
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
913
|
-
case "
|
|
914
|
-
case "com.amazonaws.securitylake#
|
|
915
|
-
throw await
|
|
820
|
+
case "BadRequestException":
|
|
821
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
822
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
823
|
+
case "ConflictException":
|
|
824
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
825
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
916
826
|
case "InternalServerException":
|
|
917
827
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
918
828
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
919
|
-
case "
|
|
920
|
-
case "com.amazonaws.securitylake#
|
|
921
|
-
throw await
|
|
829
|
+
case "ResourceNotFoundException":
|
|
830
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
831
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
832
|
+
case "ThrottlingException":
|
|
833
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
834
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
922
835
|
default:
|
|
923
836
|
const parsedBody = parsedOutput.body;
|
|
924
837
|
return throwDefaultError({
|
|
@@ -937,12 +850,7 @@ const de_CreateSubscriberCommand = async (output, context) => {
|
|
|
937
850
|
});
|
|
938
851
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
939
852
|
const doc = (0, smithy_client_1.take)(data, {
|
|
940
|
-
|
|
941
|
-
resourceShareName: smithy_client_1.expectString,
|
|
942
|
-
roleArn: smithy_client_1.expectString,
|
|
943
|
-
s3BucketArn: smithy_client_1.expectString,
|
|
944
|
-
snsArn: smithy_client_1.expectString,
|
|
945
|
-
subscriptionId: smithy_client_1.expectString,
|
|
853
|
+
subscriber: (_) => de_SubscriberResource(_, context),
|
|
946
854
|
});
|
|
947
855
|
Object.assign(contents, doc);
|
|
948
856
|
return contents;
|
|
@@ -958,27 +866,21 @@ const de_CreateSubscriberCommandError = async (output, context) => {
|
|
|
958
866
|
case "AccessDeniedException":
|
|
959
867
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
960
868
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
961
|
-
case "
|
|
962
|
-
case "com.amazonaws.securitylake#
|
|
963
|
-
throw await
|
|
964
|
-
case "
|
|
965
|
-
case "com.amazonaws.securitylake#
|
|
966
|
-
throw await
|
|
967
|
-
case "ConflictSubscriptionException":
|
|
968
|
-
case "com.amazonaws.securitylake#ConflictSubscriptionException":
|
|
969
|
-
throw await de_ConflictSubscriptionExceptionRes(parsedOutput, context);
|
|
869
|
+
case "BadRequestException":
|
|
870
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
871
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
872
|
+
case "ConflictException":
|
|
873
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
874
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
970
875
|
case "InternalServerException":
|
|
971
876
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
972
877
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
973
|
-
case "InvalidInputException":
|
|
974
|
-
case "com.amazonaws.securitylake#InvalidInputException":
|
|
975
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
976
878
|
case "ResourceNotFoundException":
|
|
977
879
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
978
880
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
979
|
-
case "
|
|
980
|
-
case "com.amazonaws.securitylake#
|
|
981
|
-
throw await
|
|
881
|
+
case "ThrottlingException":
|
|
882
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
883
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
982
884
|
default:
|
|
983
885
|
const parsedBody = parsedOutput.body;
|
|
984
886
|
return throwDefaultError({
|
|
@@ -988,22 +890,22 @@ const de_CreateSubscriberCommandError = async (output, context) => {
|
|
|
988
890
|
});
|
|
989
891
|
}
|
|
990
892
|
};
|
|
991
|
-
const
|
|
893
|
+
const de_CreateSubscriberNotificationCommand = async (output, context) => {
|
|
992
894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
|
-
return
|
|
895
|
+
return de_CreateSubscriberNotificationCommandError(output, context);
|
|
994
896
|
}
|
|
995
897
|
const contents = (0, smithy_client_1.map)({
|
|
996
898
|
$metadata: deserializeMetadata(output),
|
|
997
899
|
});
|
|
998
900
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
999
901
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1000
|
-
|
|
902
|
+
subscriberEndpoint: smithy_client_1.expectString,
|
|
1001
903
|
});
|
|
1002
904
|
Object.assign(contents, doc);
|
|
1003
905
|
return contents;
|
|
1004
906
|
};
|
|
1005
|
-
exports.
|
|
1006
|
-
const
|
|
907
|
+
exports.de_CreateSubscriberNotificationCommand = de_CreateSubscriberNotificationCommand;
|
|
908
|
+
const de_CreateSubscriberNotificationCommandError = async (output, context) => {
|
|
1007
909
|
const parsedOutput = {
|
|
1008
910
|
...output,
|
|
1009
911
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1013,24 +915,21 @@ const de_CreateSubscriptionNotificationConfigurationCommandError = async (output
|
|
|
1013
915
|
case "AccessDeniedException":
|
|
1014
916
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1015
917
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "
|
|
1017
|
-
case "com.amazonaws.securitylake#
|
|
1018
|
-
throw await
|
|
1019
|
-
case "
|
|
1020
|
-
case "com.amazonaws.securitylake#
|
|
1021
|
-
throw await
|
|
918
|
+
case "BadRequestException":
|
|
919
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
920
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
921
|
+
case "ConflictException":
|
|
922
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
923
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1022
924
|
case "InternalServerException":
|
|
1023
925
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1024
926
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "InvalidInputException":
|
|
1026
|
-
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1027
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1028
927
|
case "ResourceNotFoundException":
|
|
1029
928
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1030
929
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "
|
|
1032
|
-
case "com.amazonaws.securitylake#
|
|
1033
|
-
throw await
|
|
930
|
+
case "ThrottlingException":
|
|
931
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
932
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1034
933
|
default:
|
|
1035
934
|
const parsedBody = parsedOutput.body;
|
|
1036
935
|
return throwDefaultError({
|
|
@@ -1050,7 +949,6 @@ const de_DeleteAwsLogSourceCommand = async (output, context) => {
|
|
|
1050
949
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1051
950
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1052
951
|
failed: smithy_client_1._json,
|
|
1053
|
-
processing: smithy_client_1._json,
|
|
1054
952
|
});
|
|
1055
953
|
Object.assign(contents, doc);
|
|
1056
954
|
return contents;
|
|
@@ -1066,15 +964,21 @@ const de_DeleteAwsLogSourceCommandError = async (output, context) => {
|
|
|
1066
964
|
case "AccessDeniedException":
|
|
1067
965
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1068
966
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "
|
|
1070
|
-
case "com.amazonaws.securitylake#
|
|
1071
|
-
throw await
|
|
967
|
+
case "BadRequestException":
|
|
968
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
969
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
970
|
+
case "ConflictException":
|
|
971
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
972
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1072
973
|
case "InternalServerException":
|
|
1073
974
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1074
975
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "
|
|
1076
|
-
case "com.amazonaws.securitylake#
|
|
1077
|
-
throw await
|
|
976
|
+
case "ResourceNotFoundException":
|
|
977
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
978
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
979
|
+
case "ThrottlingException":
|
|
980
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
981
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1078
982
|
default:
|
|
1079
983
|
const parsedBody = parsedOutput.body;
|
|
1080
984
|
return throwDefaultError({
|
|
@@ -1091,11 +995,7 @@ const de_DeleteCustomLogSourceCommand = async (output, context) => {
|
|
|
1091
995
|
const contents = (0, smithy_client_1.map)({
|
|
1092
996
|
$metadata: deserializeMetadata(output),
|
|
1093
997
|
});
|
|
1094
|
-
|
|
1095
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1096
|
-
customDataLocation: smithy_client_1.expectString,
|
|
1097
|
-
});
|
|
1098
|
-
Object.assign(contents, doc);
|
|
998
|
+
await collectBody(output.body, context);
|
|
1099
999
|
return contents;
|
|
1100
1000
|
};
|
|
1101
1001
|
exports.de_DeleteCustomLogSourceCommand = de_DeleteCustomLogSourceCommand;
|
|
@@ -1109,24 +1009,21 @@ const de_DeleteCustomLogSourceCommandError = async (output, context) => {
|
|
|
1109
1009
|
case "AccessDeniedException":
|
|
1110
1010
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1111
1011
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "
|
|
1113
|
-
case "com.amazonaws.securitylake#
|
|
1114
|
-
throw await
|
|
1115
|
-
case "
|
|
1116
|
-
case "com.amazonaws.securitylake#
|
|
1117
|
-
throw await
|
|
1118
|
-
case "ConflictSourceNamesException":
|
|
1119
|
-
case "com.amazonaws.securitylake#ConflictSourceNamesException":
|
|
1120
|
-
throw await de_ConflictSourceNamesExceptionRes(parsedOutput, context);
|
|
1012
|
+
case "BadRequestException":
|
|
1013
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1014
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1015
|
+
case "ConflictException":
|
|
1016
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1017
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1121
1018
|
case "InternalServerException":
|
|
1122
1019
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1123
1020
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1124
1021
|
case "ResourceNotFoundException":
|
|
1125
1022
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1126
1023
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "
|
|
1128
|
-
case "com.amazonaws.securitylake#
|
|
1129
|
-
throw await
|
|
1024
|
+
case "ThrottlingException":
|
|
1025
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1026
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1130
1027
|
default:
|
|
1131
1028
|
const parsedBody = parsedOutput.body;
|
|
1132
1029
|
return throwDefaultError({
|
|
@@ -1136,9 +1033,9 @@ const de_DeleteCustomLogSourceCommandError = async (output, context) => {
|
|
|
1136
1033
|
});
|
|
1137
1034
|
}
|
|
1138
1035
|
};
|
|
1139
|
-
const
|
|
1036
|
+
const de_DeleteDataLakeCommand = async (output, context) => {
|
|
1140
1037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1141
|
-
return
|
|
1038
|
+
return de_DeleteDataLakeCommandError(output, context);
|
|
1142
1039
|
}
|
|
1143
1040
|
const contents = (0, smithy_client_1.map)({
|
|
1144
1041
|
$metadata: deserializeMetadata(output),
|
|
@@ -1146,8 +1043,8 @@ const de_DeleteDatalakeCommand = async (output, context) => {
|
|
|
1146
1043
|
await collectBody(output.body, context);
|
|
1147
1044
|
return contents;
|
|
1148
1045
|
};
|
|
1149
|
-
exports.
|
|
1150
|
-
const
|
|
1046
|
+
exports.de_DeleteDataLakeCommand = de_DeleteDataLakeCommand;
|
|
1047
|
+
const de_DeleteDataLakeCommandError = async (output, context) => {
|
|
1151
1048
|
const parsedOutput = {
|
|
1152
1049
|
...output,
|
|
1153
1050
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1157,6 +1054,9 @@ const de_DeleteDatalakeCommandError = async (output, context) => {
|
|
|
1157
1054
|
case "AccessDeniedException":
|
|
1158
1055
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1159
1056
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1057
|
+
case "BadRequestException":
|
|
1058
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1059
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1160
1060
|
case "ConflictException":
|
|
1161
1061
|
case "com.amazonaws.securitylake#ConflictException":
|
|
1162
1062
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
@@ -1166,15 +1066,9 @@ const de_DeleteDatalakeCommandError = async (output, context) => {
|
|
|
1166
1066
|
case "ResourceNotFoundException":
|
|
1167
1067
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1168
1068
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ServiceQuotaExceededException":
|
|
1170
|
-
case "com.amazonaws.securitylake#ServiceQuotaExceededException":
|
|
1171
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1172
1069
|
case "ThrottlingException":
|
|
1173
1070
|
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1174
1071
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ValidationException":
|
|
1176
|
-
case "com.amazonaws.securitylake#ValidationException":
|
|
1177
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1178
1072
|
default:
|
|
1179
1073
|
const parsedBody = parsedOutput.body;
|
|
1180
1074
|
return throwDefaultError({
|
|
@@ -1184,9 +1078,9 @@ const de_DeleteDatalakeCommandError = async (output, context) => {
|
|
|
1184
1078
|
});
|
|
1185
1079
|
}
|
|
1186
1080
|
};
|
|
1187
|
-
const
|
|
1081
|
+
const de_DeleteDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
1188
1082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1189
|
-
return
|
|
1083
|
+
return de_DeleteDataLakeExceptionSubscriptionCommandError(output, context);
|
|
1190
1084
|
}
|
|
1191
1085
|
const contents = (0, smithy_client_1.map)({
|
|
1192
1086
|
$metadata: deserializeMetadata(output),
|
|
@@ -1194,8 +1088,8 @@ const de_DeleteDatalakeAutoEnableCommand = async (output, context) => {
|
|
|
1194
1088
|
await collectBody(output.body, context);
|
|
1195
1089
|
return contents;
|
|
1196
1090
|
};
|
|
1197
|
-
exports.
|
|
1198
|
-
const
|
|
1091
|
+
exports.de_DeleteDataLakeExceptionSubscriptionCommand = de_DeleteDataLakeExceptionSubscriptionCommand;
|
|
1092
|
+
const de_DeleteDataLakeExceptionSubscriptionCommandError = async (output, context) => {
|
|
1199
1093
|
const parsedOutput = {
|
|
1200
1094
|
...output,
|
|
1201
1095
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1205,15 +1099,21 @@ const de_DeleteDatalakeAutoEnableCommandError = async (output, context) => {
|
|
|
1205
1099
|
case "AccessDeniedException":
|
|
1206
1100
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1207
1101
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "
|
|
1209
|
-
case "com.amazonaws.securitylake#
|
|
1210
|
-
throw await
|
|
1102
|
+
case "BadRequestException":
|
|
1103
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1104
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1105
|
+
case "ConflictException":
|
|
1106
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1107
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1211
1108
|
case "InternalServerException":
|
|
1212
1109
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1213
1110
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "
|
|
1215
|
-
case "com.amazonaws.securitylake#
|
|
1216
|
-
throw await
|
|
1111
|
+
case "ResourceNotFoundException":
|
|
1112
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1113
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1114
|
+
case "ThrottlingException":
|
|
1115
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1116
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1217
1117
|
default:
|
|
1218
1118
|
const parsedBody = parsedOutput.body;
|
|
1219
1119
|
return throwDefaultError({
|
|
@@ -1223,9 +1123,9 @@ const de_DeleteDatalakeAutoEnableCommandError = async (output, context) => {
|
|
|
1223
1123
|
});
|
|
1224
1124
|
}
|
|
1225
1125
|
};
|
|
1226
|
-
const
|
|
1126
|
+
const de_DeleteDataLakeOrganizationConfigurationCommand = async (output, context) => {
|
|
1227
1127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1228
|
-
return
|
|
1128
|
+
return de_DeleteDataLakeOrganizationConfigurationCommandError(output, context);
|
|
1229
1129
|
}
|
|
1230
1130
|
const contents = (0, smithy_client_1.map)({
|
|
1231
1131
|
$metadata: deserializeMetadata(output),
|
|
@@ -1233,8 +1133,8 @@ const de_DeleteDatalakeDelegatedAdminCommand = async (output, context) => {
|
|
|
1233
1133
|
await collectBody(output.body, context);
|
|
1234
1134
|
return contents;
|
|
1235
1135
|
};
|
|
1236
|
-
exports.
|
|
1237
|
-
const
|
|
1136
|
+
exports.de_DeleteDataLakeOrganizationConfigurationCommand = de_DeleteDataLakeOrganizationConfigurationCommand;
|
|
1137
|
+
const de_DeleteDataLakeOrganizationConfigurationCommandError = async (output, context) => {
|
|
1238
1138
|
const parsedOutput = {
|
|
1239
1139
|
...output,
|
|
1240
1140
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1244,15 +1144,21 @@ const de_DeleteDatalakeDelegatedAdminCommandError = async (output, context) => {
|
|
|
1244
1144
|
case "AccessDeniedException":
|
|
1245
1145
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1246
1146
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1147
|
+
case "BadRequestException":
|
|
1148
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1149
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "ConflictException":
|
|
1151
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1152
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1247
1153
|
case "InternalServerException":
|
|
1248
1154
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1249
1155
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "ResourceNotFoundException":
|
|
1157
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1158
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
1159
|
case "ThrottlingException":
|
|
1251
1160
|
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1252
1161
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ValidationException":
|
|
1254
|
-
case "com.amazonaws.securitylake#ValidationException":
|
|
1255
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1256
1162
|
default:
|
|
1257
1163
|
const parsedBody = parsedOutput.body;
|
|
1258
1164
|
return throwDefaultError({
|
|
@@ -1262,22 +1168,18 @@ const de_DeleteDatalakeDelegatedAdminCommandError = async (output, context) => {
|
|
|
1262
1168
|
});
|
|
1263
1169
|
}
|
|
1264
1170
|
};
|
|
1265
|
-
const
|
|
1171
|
+
const de_DeleteSubscriberCommand = async (output, context) => {
|
|
1266
1172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
-
return
|
|
1173
|
+
return de_DeleteSubscriberCommandError(output, context);
|
|
1268
1174
|
}
|
|
1269
1175
|
const contents = (0, smithy_client_1.map)({
|
|
1270
1176
|
$metadata: deserializeMetadata(output),
|
|
1271
1177
|
});
|
|
1272
|
-
|
|
1273
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1274
|
-
status: smithy_client_1.expectString,
|
|
1275
|
-
});
|
|
1276
|
-
Object.assign(contents, doc);
|
|
1178
|
+
await collectBody(output.body, context);
|
|
1277
1179
|
return contents;
|
|
1278
1180
|
};
|
|
1279
|
-
exports.
|
|
1280
|
-
const
|
|
1181
|
+
exports.de_DeleteSubscriberCommand = de_DeleteSubscriberCommand;
|
|
1182
|
+
const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
1281
1183
|
const parsedOutput = {
|
|
1282
1184
|
...output,
|
|
1283
1185
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1287,15 +1189,21 @@ const de_DeleteDatalakeExceptionsSubscriptionCommandError = async (output, conte
|
|
|
1287
1189
|
case "AccessDeniedException":
|
|
1288
1190
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1289
1191
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "
|
|
1291
|
-
case "com.amazonaws.securitylake#
|
|
1292
|
-
throw await
|
|
1192
|
+
case "BadRequestException":
|
|
1193
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1194
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1195
|
+
case "ConflictException":
|
|
1196
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1197
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1293
1198
|
case "InternalServerException":
|
|
1294
1199
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1295
1200
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "
|
|
1297
|
-
case "com.amazonaws.securitylake#
|
|
1298
|
-
throw await
|
|
1201
|
+
case "ResourceNotFoundException":
|
|
1202
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1203
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
+
case "ThrottlingException":
|
|
1205
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1206
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1299
1207
|
default:
|
|
1300
1208
|
const parsedBody = parsedOutput.body;
|
|
1301
1209
|
return throwDefaultError({
|
|
@@ -1305,9 +1213,9 @@ const de_DeleteDatalakeExceptionsSubscriptionCommandError = async (output, conte
|
|
|
1305
1213
|
});
|
|
1306
1214
|
}
|
|
1307
1215
|
};
|
|
1308
|
-
const
|
|
1216
|
+
const de_DeleteSubscriberNotificationCommand = async (output, context) => {
|
|
1309
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
|
-
return
|
|
1218
|
+
return de_DeleteSubscriberNotificationCommandError(output, context);
|
|
1311
1219
|
}
|
|
1312
1220
|
const contents = (0, smithy_client_1.map)({
|
|
1313
1221
|
$metadata: deserializeMetadata(output),
|
|
@@ -1315,8 +1223,8 @@ const de_DeleteSubscriberCommand = async (output, context) => {
|
|
|
1315
1223
|
await collectBody(output.body, context);
|
|
1316
1224
|
return contents;
|
|
1317
1225
|
};
|
|
1318
|
-
exports.
|
|
1319
|
-
const
|
|
1226
|
+
exports.de_DeleteSubscriberNotificationCommand = de_DeleteSubscriberNotificationCommand;
|
|
1227
|
+
const de_DeleteSubscriberNotificationCommandError = async (output, context) => {
|
|
1320
1228
|
const parsedOutput = {
|
|
1321
1229
|
...output,
|
|
1322
1230
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1326,27 +1234,21 @@ const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
|
1326
1234
|
case "AccessDeniedException":
|
|
1327
1235
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1328
1236
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "
|
|
1330
|
-
case "com.amazonaws.securitylake#
|
|
1331
|
-
throw await
|
|
1332
|
-
case "
|
|
1333
|
-
case "com.amazonaws.securitylake#
|
|
1334
|
-
throw await
|
|
1335
|
-
case "ConcurrentModificationException":
|
|
1336
|
-
case "com.amazonaws.securitylake#ConcurrentModificationException":
|
|
1337
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1237
|
+
case "BadRequestException":
|
|
1238
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1239
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1240
|
+
case "ConflictException":
|
|
1241
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1242
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1338
1243
|
case "InternalServerException":
|
|
1339
1244
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1340
1245
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "InvalidInputException":
|
|
1342
|
-
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1343
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1344
1246
|
case "ResourceNotFoundException":
|
|
1345
1247
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1346
1248
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "
|
|
1348
|
-
case "com.amazonaws.securitylake#
|
|
1349
|
-
throw await
|
|
1249
|
+
case "ThrottlingException":
|
|
1250
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1251
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1350
1252
|
default:
|
|
1351
1253
|
const parsedBody = parsedOutput.body;
|
|
1352
1254
|
return throwDefaultError({
|
|
@@ -1356,9 +1258,9 @@ const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
|
1356
1258
|
});
|
|
1357
1259
|
}
|
|
1358
1260
|
};
|
|
1359
|
-
const
|
|
1261
|
+
const de_DeregisterDataLakeDelegatedAdministratorCommand = async (output, context) => {
|
|
1360
1262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1361
|
-
return
|
|
1263
|
+
return de_DeregisterDataLakeDelegatedAdministratorCommandError(output, context);
|
|
1362
1264
|
}
|
|
1363
1265
|
const contents = (0, smithy_client_1.map)({
|
|
1364
1266
|
$metadata: deserializeMetadata(output),
|
|
@@ -1366,8 +1268,8 @@ const de_DeleteSubscriptionNotificationConfigurationCommand = async (output, con
|
|
|
1366
1268
|
await collectBody(output.body, context);
|
|
1367
1269
|
return contents;
|
|
1368
1270
|
};
|
|
1369
|
-
exports.
|
|
1370
|
-
const
|
|
1271
|
+
exports.de_DeregisterDataLakeDelegatedAdministratorCommand = de_DeregisterDataLakeDelegatedAdministratorCommand;
|
|
1272
|
+
const de_DeregisterDataLakeDelegatedAdministratorCommandError = async (output, context) => {
|
|
1371
1273
|
const parsedOutput = {
|
|
1372
1274
|
...output,
|
|
1373
1275
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1377,25 +1279,22 @@ const de_DeleteSubscriptionNotificationConfigurationCommandError = async (output
|
|
|
1377
1279
|
case "AccessDeniedException":
|
|
1378
1280
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1379
1281
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "
|
|
1381
|
-
case "com.amazonaws.securitylake#
|
|
1382
|
-
throw await
|
|
1383
|
-
case "
|
|
1384
|
-
case "com.amazonaws.securitylake#
|
|
1385
|
-
throw await
|
|
1282
|
+
case "BadRequestException":
|
|
1283
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1284
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1285
|
+
case "ConflictException":
|
|
1286
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1287
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1386
1288
|
case "InternalServerException":
|
|
1387
1289
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1388
1290
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "InvalidInputException":
|
|
1390
|
-
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1391
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1392
1291
|
case "ResourceNotFoundException":
|
|
1393
1292
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1394
1293
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "
|
|
1396
|
-
case "com.amazonaws.securitylake#
|
|
1397
|
-
throw await
|
|
1398
|
-
default:
|
|
1294
|
+
case "ThrottlingException":
|
|
1295
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1296
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1297
|
+
default:
|
|
1399
1298
|
const parsedBody = parsedOutput.body;
|
|
1400
1299
|
return throwDefaultError({
|
|
1401
1300
|
output,
|
|
@@ -1404,22 +1303,24 @@ const de_DeleteSubscriptionNotificationConfigurationCommandError = async (output
|
|
|
1404
1303
|
});
|
|
1405
1304
|
}
|
|
1406
1305
|
};
|
|
1407
|
-
const
|
|
1306
|
+
const de_GetDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
1408
1307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
|
-
return
|
|
1308
|
+
return de_GetDataLakeExceptionSubscriptionCommandError(output, context);
|
|
1410
1309
|
}
|
|
1411
1310
|
const contents = (0, smithy_client_1.map)({
|
|
1412
1311
|
$metadata: deserializeMetadata(output),
|
|
1413
1312
|
});
|
|
1414
1313
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1415
1314
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1416
|
-
|
|
1315
|
+
exceptionTimeToLive: smithy_client_1.expectLong,
|
|
1316
|
+
notificationEndpoint: smithy_client_1.expectString,
|
|
1317
|
+
subscriptionProtocol: smithy_client_1.expectString,
|
|
1417
1318
|
});
|
|
1418
1319
|
Object.assign(contents, doc);
|
|
1419
1320
|
return contents;
|
|
1420
1321
|
};
|
|
1421
|
-
exports.
|
|
1422
|
-
const
|
|
1322
|
+
exports.de_GetDataLakeExceptionSubscriptionCommand = de_GetDataLakeExceptionSubscriptionCommand;
|
|
1323
|
+
const de_GetDataLakeExceptionSubscriptionCommandError = async (output, context) => {
|
|
1423
1324
|
const parsedOutput = {
|
|
1424
1325
|
...output,
|
|
1425
1326
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1429,18 +1330,21 @@ const de_GetDatalakeCommandError = async (output, context) => {
|
|
|
1429
1330
|
case "AccessDeniedException":
|
|
1430
1331
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1431
1332
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "
|
|
1433
|
-
case "com.amazonaws.securitylake#
|
|
1434
|
-
throw await
|
|
1333
|
+
case "BadRequestException":
|
|
1334
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1335
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1336
|
+
case "ConflictException":
|
|
1337
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1338
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1435
1339
|
case "InternalServerException":
|
|
1436
1340
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1437
1341
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1438
1342
|
case "ResourceNotFoundException":
|
|
1439
1343
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1440
1344
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "
|
|
1442
|
-
case "com.amazonaws.securitylake#
|
|
1443
|
-
throw await
|
|
1345
|
+
case "ThrottlingException":
|
|
1346
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1347
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1444
1348
|
default:
|
|
1445
1349
|
const parsedBody = parsedOutput.body;
|
|
1446
1350
|
return throwDefaultError({
|
|
@@ -1450,22 +1354,22 @@ const de_GetDatalakeCommandError = async (output, context) => {
|
|
|
1450
1354
|
});
|
|
1451
1355
|
}
|
|
1452
1356
|
};
|
|
1453
|
-
const
|
|
1357
|
+
const de_GetDataLakeOrganizationConfigurationCommand = async (output, context) => {
|
|
1454
1358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1455
|
-
return
|
|
1359
|
+
return de_GetDataLakeOrganizationConfigurationCommandError(output, context);
|
|
1456
1360
|
}
|
|
1457
1361
|
const contents = (0, smithy_client_1.map)({
|
|
1458
1362
|
$metadata: deserializeMetadata(output),
|
|
1459
1363
|
});
|
|
1460
1364
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1461
1365
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1462
|
-
|
|
1366
|
+
autoEnableNewAccount: smithy_client_1._json,
|
|
1463
1367
|
});
|
|
1464
1368
|
Object.assign(contents, doc);
|
|
1465
1369
|
return contents;
|
|
1466
1370
|
};
|
|
1467
|
-
exports.
|
|
1468
|
-
const
|
|
1371
|
+
exports.de_GetDataLakeOrganizationConfigurationCommand = de_GetDataLakeOrganizationConfigurationCommand;
|
|
1372
|
+
const de_GetDataLakeOrganizationConfigurationCommandError = async (output, context) => {
|
|
1469
1373
|
const parsedOutput = {
|
|
1470
1374
|
...output,
|
|
1471
1375
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1475,15 +1379,21 @@ const de_GetDatalakeAutoEnableCommandError = async (output, context) => {
|
|
|
1475
1379
|
case "AccessDeniedException":
|
|
1476
1380
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1477
1381
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "
|
|
1479
|
-
case "com.amazonaws.securitylake#
|
|
1480
|
-
throw await
|
|
1382
|
+
case "BadRequestException":
|
|
1383
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1384
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1385
|
+
case "ConflictException":
|
|
1386
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1387
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1481
1388
|
case "InternalServerException":
|
|
1482
1389
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1483
1390
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "
|
|
1485
|
-
case "com.amazonaws.securitylake#
|
|
1486
|
-
throw await
|
|
1391
|
+
case "ResourceNotFoundException":
|
|
1392
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1393
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1394
|
+
case "ThrottlingException":
|
|
1395
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1396
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1487
1397
|
default:
|
|
1488
1398
|
const parsedBody = parsedOutput.body;
|
|
1489
1399
|
return throwDefaultError({
|
|
@@ -1493,22 +1403,24 @@ const de_GetDatalakeAutoEnableCommandError = async (output, context) => {
|
|
|
1493
1403
|
});
|
|
1494
1404
|
}
|
|
1495
1405
|
};
|
|
1496
|
-
const
|
|
1406
|
+
const de_GetDataLakeSourcesCommand = async (output, context) => {
|
|
1497
1407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
|
-
return
|
|
1408
|
+
return de_GetDataLakeSourcesCommandError(output, context);
|
|
1499
1409
|
}
|
|
1500
1410
|
const contents = (0, smithy_client_1.map)({
|
|
1501
1411
|
$metadata: deserializeMetadata(output),
|
|
1502
1412
|
});
|
|
1503
1413
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1504
1414
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1505
|
-
|
|
1415
|
+
dataLakeArn: smithy_client_1.expectString,
|
|
1416
|
+
dataLakeSources: smithy_client_1._json,
|
|
1417
|
+
nextToken: smithy_client_1.expectString,
|
|
1506
1418
|
});
|
|
1507
1419
|
Object.assign(contents, doc);
|
|
1508
1420
|
return contents;
|
|
1509
1421
|
};
|
|
1510
|
-
exports.
|
|
1511
|
-
const
|
|
1422
|
+
exports.de_GetDataLakeSourcesCommand = de_GetDataLakeSourcesCommand;
|
|
1423
|
+
const de_GetDataLakeSourcesCommandError = async (output, context) => {
|
|
1512
1424
|
const parsedOutput = {
|
|
1513
1425
|
...output,
|
|
1514
1426
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1518,15 +1430,21 @@ const de_GetDatalakeExceptionsExpiryCommandError = async (output, context) => {
|
|
|
1518
1430
|
case "AccessDeniedException":
|
|
1519
1431
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1520
1432
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "
|
|
1522
|
-
case "com.amazonaws.securitylake#
|
|
1523
|
-
throw await
|
|
1433
|
+
case "BadRequestException":
|
|
1434
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1435
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1436
|
+
case "ConflictException":
|
|
1437
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1438
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1524
1439
|
case "InternalServerException":
|
|
1525
1440
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1526
1441
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "
|
|
1528
|
-
case "com.amazonaws.securitylake#
|
|
1529
|
-
throw await
|
|
1442
|
+
case "ResourceNotFoundException":
|
|
1443
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1444
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1445
|
+
case "ThrottlingException":
|
|
1446
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1447
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1530
1448
|
default:
|
|
1531
1449
|
const parsedBody = parsedOutput.body;
|
|
1532
1450
|
return throwDefaultError({
|
|
@@ -1536,22 +1454,22 @@ const de_GetDatalakeExceptionsExpiryCommandError = async (output, context) => {
|
|
|
1536
1454
|
});
|
|
1537
1455
|
}
|
|
1538
1456
|
};
|
|
1539
|
-
const
|
|
1457
|
+
const de_GetSubscriberCommand = async (output, context) => {
|
|
1540
1458
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1541
|
-
return
|
|
1459
|
+
return de_GetSubscriberCommandError(output, context);
|
|
1542
1460
|
}
|
|
1543
1461
|
const contents = (0, smithy_client_1.map)({
|
|
1544
1462
|
$metadata: deserializeMetadata(output),
|
|
1545
1463
|
});
|
|
1546
1464
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1547
1465
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1548
|
-
|
|
1466
|
+
subscriber: (_) => de_SubscriberResource(_, context),
|
|
1549
1467
|
});
|
|
1550
1468
|
Object.assign(contents, doc);
|
|
1551
1469
|
return contents;
|
|
1552
1470
|
};
|
|
1553
|
-
exports.
|
|
1554
|
-
const
|
|
1471
|
+
exports.de_GetSubscriberCommand = de_GetSubscriberCommand;
|
|
1472
|
+
const de_GetSubscriberCommandError = async (output, context) => {
|
|
1555
1473
|
const parsedOutput = {
|
|
1556
1474
|
...output,
|
|
1557
1475
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1561,15 +1479,21 @@ const de_GetDatalakeExceptionsSubscriptionCommandError = async (output, context)
|
|
|
1561
1479
|
case "AccessDeniedException":
|
|
1562
1480
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1563
1481
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "
|
|
1565
|
-
case "com.amazonaws.securitylake#
|
|
1566
|
-
throw await
|
|
1482
|
+
case "BadRequestException":
|
|
1483
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1484
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1485
|
+
case "ConflictException":
|
|
1486
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1487
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1567
1488
|
case "InternalServerException":
|
|
1568
1489
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1569
1490
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "
|
|
1571
|
-
case "com.amazonaws.securitylake#
|
|
1572
|
-
throw await
|
|
1491
|
+
case "ResourceNotFoundException":
|
|
1492
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1493
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1494
|
+
case "ThrottlingException":
|
|
1495
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1496
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1573
1497
|
default:
|
|
1574
1498
|
const parsedBody = parsedOutput.body;
|
|
1575
1499
|
return throwDefaultError({
|
|
@@ -1579,66 +1503,23 @@ const de_GetDatalakeExceptionsSubscriptionCommandError = async (output, context)
|
|
|
1579
1503
|
});
|
|
1580
1504
|
}
|
|
1581
1505
|
};
|
|
1582
|
-
const
|
|
1506
|
+
const de_ListDataLakeExceptionsCommand = async (output, context) => {
|
|
1583
1507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1584
|
-
return
|
|
1508
|
+
return de_ListDataLakeExceptionsCommandError(output, context);
|
|
1585
1509
|
}
|
|
1586
1510
|
const contents = (0, smithy_client_1.map)({
|
|
1587
1511
|
$metadata: deserializeMetadata(output),
|
|
1588
1512
|
});
|
|
1589
1513
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1590
1514
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1591
|
-
|
|
1515
|
+
exceptions: (_) => de_DataLakeExceptionList(_, context),
|
|
1592
1516
|
nextToken: smithy_client_1.expectString,
|
|
1593
1517
|
});
|
|
1594
1518
|
Object.assign(contents, doc);
|
|
1595
1519
|
return contents;
|
|
1596
1520
|
};
|
|
1597
|
-
exports.
|
|
1598
|
-
const
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context),
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "AccessDeniedException":
|
|
1606
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1607
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "AccountNotFoundException":
|
|
1609
|
-
case "com.amazonaws.securitylake#AccountNotFoundException":
|
|
1610
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "InternalServerException":
|
|
1612
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1613
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "ValidationException":
|
|
1615
|
-
case "com.amazonaws.securitylake#ValidationException":
|
|
1616
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1617
|
-
default:
|
|
1618
|
-
const parsedBody = parsedOutput.body;
|
|
1619
|
-
return throwDefaultError({
|
|
1620
|
-
output,
|
|
1621
|
-
parsedBody,
|
|
1622
|
-
errorCode,
|
|
1623
|
-
});
|
|
1624
|
-
}
|
|
1625
|
-
};
|
|
1626
|
-
const de_GetSubscriberCommand = async (output, context) => {
|
|
1627
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1628
|
-
return de_GetSubscriberCommandError(output, context);
|
|
1629
|
-
}
|
|
1630
|
-
const contents = (0, smithy_client_1.map)({
|
|
1631
|
-
$metadata: deserializeMetadata(output),
|
|
1632
|
-
});
|
|
1633
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1634
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1635
|
-
subscriber: (_) => de_SubscriberResource(_, context),
|
|
1636
|
-
});
|
|
1637
|
-
Object.assign(contents, doc);
|
|
1638
|
-
return contents;
|
|
1639
|
-
};
|
|
1640
|
-
exports.de_GetSubscriberCommand = de_GetSubscriberCommand;
|
|
1641
|
-
const de_GetSubscriberCommandError = async (output, context) => {
|
|
1521
|
+
exports.de_ListDataLakeExceptionsCommand = de_ListDataLakeExceptionsCommand;
|
|
1522
|
+
const de_ListDataLakeExceptionsCommandError = async (output, context) => {
|
|
1642
1523
|
const parsedOutput = {
|
|
1643
1524
|
...output,
|
|
1644
1525
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1648,18 +1529,21 @@ const de_GetSubscriberCommandError = async (output, context) => {
|
|
|
1648
1529
|
case "AccessDeniedException":
|
|
1649
1530
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1650
1531
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "
|
|
1652
|
-
case "com.amazonaws.securitylake#
|
|
1653
|
-
throw await
|
|
1532
|
+
case "BadRequestException":
|
|
1533
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1534
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1535
|
+
case "ConflictException":
|
|
1536
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1537
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1654
1538
|
case "InternalServerException":
|
|
1655
1539
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1656
1540
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "InvalidInputException":
|
|
1658
|
-
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1659
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1660
1541
|
case "ResourceNotFoundException":
|
|
1661
1542
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1662
1543
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1544
|
+
case "ThrottlingException":
|
|
1545
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1546
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1663
1547
|
default:
|
|
1664
1548
|
const parsedBody = parsedOutput.body;
|
|
1665
1549
|
return throwDefaultError({
|
|
@@ -1669,23 +1553,22 @@ const de_GetSubscriberCommandError = async (output, context) => {
|
|
|
1669
1553
|
});
|
|
1670
1554
|
}
|
|
1671
1555
|
};
|
|
1672
|
-
const
|
|
1556
|
+
const de_ListDataLakesCommand = async (output, context) => {
|
|
1673
1557
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1674
|
-
return
|
|
1558
|
+
return de_ListDataLakesCommandError(output, context);
|
|
1675
1559
|
}
|
|
1676
1560
|
const contents = (0, smithy_client_1.map)({
|
|
1677
1561
|
$metadata: deserializeMetadata(output),
|
|
1678
1562
|
});
|
|
1679
1563
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1680
1564
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1681
|
-
|
|
1682
|
-
nonRetryableFailures: (_) => de_FailuresResponseList(_, context),
|
|
1565
|
+
dataLakes: smithy_client_1._json,
|
|
1683
1566
|
});
|
|
1684
1567
|
Object.assign(contents, doc);
|
|
1685
1568
|
return contents;
|
|
1686
1569
|
};
|
|
1687
|
-
exports.
|
|
1688
|
-
const
|
|
1570
|
+
exports.de_ListDataLakesCommand = de_ListDataLakesCommand;
|
|
1571
|
+
const de_ListDataLakesCommandError = async (output, context) => {
|
|
1689
1572
|
const parsedOutput = {
|
|
1690
1573
|
...output,
|
|
1691
1574
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1695,15 +1578,21 @@ const de_ListDatalakeExceptionsCommandError = async (output, context) => {
|
|
|
1695
1578
|
case "AccessDeniedException":
|
|
1696
1579
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1697
1580
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "
|
|
1699
|
-
case "com.amazonaws.securitylake#
|
|
1700
|
-
throw await
|
|
1581
|
+
case "BadRequestException":
|
|
1582
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1583
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1584
|
+
case "ConflictException":
|
|
1585
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1586
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1701
1587
|
case "InternalServerException":
|
|
1702
1588
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1703
1589
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "
|
|
1705
|
-
case "com.amazonaws.securitylake#
|
|
1706
|
-
throw await
|
|
1590
|
+
case "ResourceNotFoundException":
|
|
1591
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1592
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1593
|
+
case "ThrottlingException":
|
|
1594
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1595
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1707
1596
|
default:
|
|
1708
1597
|
const parsedBody = parsedOutput.body;
|
|
1709
1598
|
return throwDefaultError({
|
|
@@ -1723,7 +1612,7 @@ const de_ListLogSourcesCommand = async (output, context) => {
|
|
|
1723
1612
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1724
1613
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1725
1614
|
nextToken: smithy_client_1.expectString,
|
|
1726
|
-
|
|
1615
|
+
sources: smithy_client_1._json,
|
|
1727
1616
|
});
|
|
1728
1617
|
Object.assign(contents, doc);
|
|
1729
1618
|
return contents;
|
|
@@ -1739,18 +1628,21 @@ const de_ListLogSourcesCommandError = async (output, context) => {
|
|
|
1739
1628
|
case "AccessDeniedException":
|
|
1740
1629
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1741
1630
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "
|
|
1743
|
-
case "com.amazonaws.securitylake#
|
|
1744
|
-
throw await
|
|
1631
|
+
case "BadRequestException":
|
|
1632
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1633
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1634
|
+
case "ConflictException":
|
|
1635
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1636
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1745
1637
|
case "InternalServerException":
|
|
1746
1638
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1747
1639
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1748
1640
|
case "ResourceNotFoundException":
|
|
1749
1641
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1750
1642
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "
|
|
1752
|
-
case "com.amazonaws.securitylake#
|
|
1753
|
-
throw await
|
|
1643
|
+
case "ThrottlingException":
|
|
1644
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1645
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1754
1646
|
default:
|
|
1755
1647
|
const parsedBody = parsedOutput.body;
|
|
1756
1648
|
return throwDefaultError({
|
|
@@ -1770,7 +1662,7 @@ const de_ListSubscribersCommand = async (output, context) => {
|
|
|
1770
1662
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1771
1663
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1772
1664
|
nextToken: smithy_client_1.expectString,
|
|
1773
|
-
subscribers: (_) =>
|
|
1665
|
+
subscribers: (_) => de_SubscriberResourceList(_, context),
|
|
1774
1666
|
});
|
|
1775
1667
|
Object.assign(contents, doc);
|
|
1776
1668
|
return contents;
|
|
@@ -1786,21 +1678,21 @@ const de_ListSubscribersCommandError = async (output, context) => {
|
|
|
1786
1678
|
case "AccessDeniedException":
|
|
1787
1679
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1788
1680
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "
|
|
1790
|
-
case "com.amazonaws.securitylake#
|
|
1791
|
-
throw await
|
|
1681
|
+
case "BadRequestException":
|
|
1682
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1683
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1684
|
+
case "ConflictException":
|
|
1685
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1686
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1792
1687
|
case "InternalServerException":
|
|
1793
1688
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1794
1689
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "InvalidInputException":
|
|
1796
|
-
case "com.amazonaws.securitylake#InvalidInputException":
|
|
1797
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1798
1690
|
case "ResourceNotFoundException":
|
|
1799
1691
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1800
1692
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "
|
|
1802
|
-
case "com.amazonaws.securitylake#
|
|
1803
|
-
throw await
|
|
1693
|
+
case "ThrottlingException":
|
|
1694
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1695
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1804
1696
|
default:
|
|
1805
1697
|
const parsedBody = parsedOutput.body;
|
|
1806
1698
|
return throwDefaultError({
|
|
@@ -1810,9 +1702,9 @@ const de_ListSubscribersCommandError = async (output, context) => {
|
|
|
1810
1702
|
});
|
|
1811
1703
|
}
|
|
1812
1704
|
};
|
|
1813
|
-
const
|
|
1705
|
+
const de_RegisterDataLakeDelegatedAdministratorCommand = async (output, context) => {
|
|
1814
1706
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1815
|
-
return
|
|
1707
|
+
return de_RegisterDataLakeDelegatedAdministratorCommandError(output, context);
|
|
1816
1708
|
}
|
|
1817
1709
|
const contents = (0, smithy_client_1.map)({
|
|
1818
1710
|
$metadata: deserializeMetadata(output),
|
|
@@ -1820,8 +1712,8 @@ const de_UpdateDatalakeCommand = async (output, context) => {
|
|
|
1820
1712
|
await collectBody(output.body, context);
|
|
1821
1713
|
return contents;
|
|
1822
1714
|
};
|
|
1823
|
-
exports.
|
|
1824
|
-
const
|
|
1715
|
+
exports.de_RegisterDataLakeDelegatedAdministratorCommand = de_RegisterDataLakeDelegatedAdministratorCommand;
|
|
1716
|
+
const de_RegisterDataLakeDelegatedAdministratorCommandError = async (output, context) => {
|
|
1825
1717
|
const parsedOutput = {
|
|
1826
1718
|
...output,
|
|
1827
1719
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1831,18 +1723,21 @@ const de_UpdateDatalakeCommandError = async (output, context) => {
|
|
|
1831
1723
|
case "AccessDeniedException":
|
|
1832
1724
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1833
1725
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "
|
|
1835
|
-
case "com.amazonaws.securitylake#
|
|
1836
|
-
throw await
|
|
1726
|
+
case "BadRequestException":
|
|
1727
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1728
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1729
|
+
case "ConflictException":
|
|
1730
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1731
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1837
1732
|
case "InternalServerException":
|
|
1838
1733
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1839
1734
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1840
1735
|
case "ResourceNotFoundException":
|
|
1841
1736
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1842
1737
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "
|
|
1844
|
-
case "com.amazonaws.securitylake#
|
|
1845
|
-
throw await
|
|
1738
|
+
case "ThrottlingException":
|
|
1739
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1740
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1846
1741
|
default:
|
|
1847
1742
|
const parsedBody = parsedOutput.body;
|
|
1848
1743
|
return throwDefaultError({
|
|
@@ -1852,18 +1747,22 @@ const de_UpdateDatalakeCommandError = async (output, context) => {
|
|
|
1852
1747
|
});
|
|
1853
1748
|
}
|
|
1854
1749
|
};
|
|
1855
|
-
const
|
|
1750
|
+
const de_UpdateDataLakeCommand = async (output, context) => {
|
|
1856
1751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1857
|
-
return
|
|
1752
|
+
return de_UpdateDataLakeCommandError(output, context);
|
|
1858
1753
|
}
|
|
1859
1754
|
const contents = (0, smithy_client_1.map)({
|
|
1860
1755
|
$metadata: deserializeMetadata(output),
|
|
1861
1756
|
});
|
|
1862
|
-
await
|
|
1757
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1758
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1759
|
+
dataLakes: smithy_client_1._json,
|
|
1760
|
+
});
|
|
1761
|
+
Object.assign(contents, doc);
|
|
1863
1762
|
return contents;
|
|
1864
1763
|
};
|
|
1865
|
-
exports.
|
|
1866
|
-
const
|
|
1764
|
+
exports.de_UpdateDataLakeCommand = de_UpdateDataLakeCommand;
|
|
1765
|
+
const de_UpdateDataLakeCommandError = async (output, context) => {
|
|
1867
1766
|
const parsedOutput = {
|
|
1868
1767
|
...output,
|
|
1869
1768
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1873,15 +1772,21 @@ const de_UpdateDatalakeExceptionsExpiryCommandError = async (output, context) =>
|
|
|
1873
1772
|
case "AccessDeniedException":
|
|
1874
1773
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1875
1774
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "
|
|
1877
|
-
case "com.amazonaws.securitylake#
|
|
1878
|
-
throw await
|
|
1775
|
+
case "BadRequestException":
|
|
1776
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1777
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1778
|
+
case "ConflictException":
|
|
1779
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1780
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1879
1781
|
case "InternalServerException":
|
|
1880
1782
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1881
1783
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "
|
|
1883
|
-
case "com.amazonaws.securitylake#
|
|
1884
|
-
throw await
|
|
1784
|
+
case "ResourceNotFoundException":
|
|
1785
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1786
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1787
|
+
case "ThrottlingException":
|
|
1788
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1789
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1885
1790
|
default:
|
|
1886
1791
|
const parsedBody = parsedOutput.body;
|
|
1887
1792
|
return throwDefaultError({
|
|
@@ -1891,9 +1796,9 @@ const de_UpdateDatalakeExceptionsExpiryCommandError = async (output, context) =>
|
|
|
1891
1796
|
});
|
|
1892
1797
|
}
|
|
1893
1798
|
};
|
|
1894
|
-
const
|
|
1799
|
+
const de_UpdateDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
1895
1800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1896
|
-
return
|
|
1801
|
+
return de_UpdateDataLakeExceptionSubscriptionCommandError(output, context);
|
|
1897
1802
|
}
|
|
1898
1803
|
const contents = (0, smithy_client_1.map)({
|
|
1899
1804
|
$metadata: deserializeMetadata(output),
|
|
@@ -1901,8 +1806,8 @@ const de_UpdateDatalakeExceptionsSubscriptionCommand = async (output, context) =
|
|
|
1901
1806
|
await collectBody(output.body, context);
|
|
1902
1807
|
return contents;
|
|
1903
1808
|
};
|
|
1904
|
-
exports.
|
|
1905
|
-
const
|
|
1809
|
+
exports.de_UpdateDataLakeExceptionSubscriptionCommand = de_UpdateDataLakeExceptionSubscriptionCommand;
|
|
1810
|
+
const de_UpdateDataLakeExceptionSubscriptionCommandError = async (output, context) => {
|
|
1906
1811
|
const parsedOutput = {
|
|
1907
1812
|
...output,
|
|
1908
1813
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1912,15 +1817,21 @@ const de_UpdateDatalakeExceptionsSubscriptionCommandError = async (output, conte
|
|
|
1912
1817
|
case "AccessDeniedException":
|
|
1913
1818
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1914
1819
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "
|
|
1916
|
-
case "com.amazonaws.securitylake#
|
|
1917
|
-
throw await
|
|
1820
|
+
case "BadRequestException":
|
|
1821
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1822
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1823
|
+
case "ConflictException":
|
|
1824
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1825
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1918
1826
|
case "InternalServerException":
|
|
1919
1827
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1920
1828
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1921
|
-
case "
|
|
1922
|
-
case "com.amazonaws.securitylake#
|
|
1923
|
-
throw await
|
|
1829
|
+
case "ResourceNotFoundException":
|
|
1830
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1831
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1832
|
+
case "ThrottlingException":
|
|
1833
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1834
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1924
1835
|
default:
|
|
1925
1836
|
const parsedBody = parsedOutput.body;
|
|
1926
1837
|
return throwDefaultError({
|
|
@@ -1955,24 +1866,21 @@ const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
|
1955
1866
|
case "AccessDeniedException":
|
|
1956
1867
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1957
1868
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "
|
|
1959
|
-
case "com.amazonaws.securitylake#
|
|
1960
|
-
throw await
|
|
1961
|
-
case "
|
|
1962
|
-
case "com.amazonaws.securitylake#
|
|
1963
|
-
throw await
|
|
1964
|
-
case "ConflictSubscriptionException":
|
|
1965
|
-
case "com.amazonaws.securitylake#ConflictSubscriptionException":
|
|
1966
|
-
throw await de_ConflictSubscriptionExceptionRes(parsedOutput, context);
|
|
1869
|
+
case "BadRequestException":
|
|
1870
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1871
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1872
|
+
case "ConflictException":
|
|
1873
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1874
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1967
1875
|
case "InternalServerException":
|
|
1968
1876
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
1969
1877
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "
|
|
1971
|
-
case "com.amazonaws.securitylake#
|
|
1972
|
-
throw await
|
|
1973
|
-
case "
|
|
1974
|
-
case "com.amazonaws.securitylake#
|
|
1975
|
-
throw await
|
|
1878
|
+
case "ResourceNotFoundException":
|
|
1879
|
+
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1880
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1881
|
+
case "ThrottlingException":
|
|
1882
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1883
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1976
1884
|
default:
|
|
1977
1885
|
const parsedBody = parsedOutput.body;
|
|
1978
1886
|
return throwDefaultError({
|
|
@@ -1982,22 +1890,22 @@ const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
|
1982
1890
|
});
|
|
1983
1891
|
}
|
|
1984
1892
|
};
|
|
1985
|
-
const
|
|
1893
|
+
const de_UpdateSubscriberNotificationCommand = async (output, context) => {
|
|
1986
1894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1987
|
-
return
|
|
1895
|
+
return de_UpdateSubscriberNotificationCommandError(output, context);
|
|
1988
1896
|
}
|
|
1989
1897
|
const contents = (0, smithy_client_1.map)({
|
|
1990
1898
|
$metadata: deserializeMetadata(output),
|
|
1991
1899
|
});
|
|
1992
1900
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1993
1901
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1994
|
-
|
|
1902
|
+
subscriberEndpoint: smithy_client_1.expectString,
|
|
1995
1903
|
});
|
|
1996
1904
|
Object.assign(contents, doc);
|
|
1997
1905
|
return contents;
|
|
1998
1906
|
};
|
|
1999
|
-
exports.
|
|
2000
|
-
const
|
|
1907
|
+
exports.de_UpdateSubscriberNotificationCommand = de_UpdateSubscriberNotificationCommand;
|
|
1908
|
+
const de_UpdateSubscriberNotificationCommandError = async (output, context) => {
|
|
2001
1909
|
const parsedOutput = {
|
|
2002
1910
|
...output,
|
|
2003
1911
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2007,24 +1915,21 @@ const de_UpdateSubscriptionNotificationConfigurationCommandError = async (output
|
|
|
2007
1915
|
case "AccessDeniedException":
|
|
2008
1916
|
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
2009
1917
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "
|
|
2011
|
-
case "com.amazonaws.securitylake#
|
|
2012
|
-
throw await
|
|
2013
|
-
case "
|
|
2014
|
-
case "com.amazonaws.securitylake#
|
|
2015
|
-
throw await
|
|
1918
|
+
case "BadRequestException":
|
|
1919
|
+
case "com.amazonaws.securitylake#BadRequestException":
|
|
1920
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1921
|
+
case "ConflictException":
|
|
1922
|
+
case "com.amazonaws.securitylake#ConflictException":
|
|
1923
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2016
1924
|
case "InternalServerException":
|
|
2017
1925
|
case "com.amazonaws.securitylake#InternalServerException":
|
|
2018
1926
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "InvalidInputException":
|
|
2020
|
-
case "com.amazonaws.securitylake#InvalidInputException":
|
|
2021
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2022
1927
|
case "ResourceNotFoundException":
|
|
2023
1928
|
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
2024
1929
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "
|
|
2026
|
-
case "com.amazonaws.securitylake#
|
|
2027
|
-
throw await
|
|
1930
|
+
case "ThrottlingException":
|
|
1931
|
+
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1932
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2028
1933
|
default:
|
|
2029
1934
|
const parsedBody = parsedOutput.body;
|
|
2030
1935
|
return throwDefaultError({
|
|
@@ -2049,40 +1954,14 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2049
1954
|
});
|
|
2050
1955
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2051
1956
|
};
|
|
2052
|
-
const
|
|
2053
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2054
|
-
const data = parsedOutput.body;
|
|
2055
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2056
|
-
message: smithy_client_1.expectString,
|
|
2057
|
-
});
|
|
2058
|
-
Object.assign(contents, doc);
|
|
2059
|
-
const exception = new models_0_1.AccountNotFoundException({
|
|
2060
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2061
|
-
...contents,
|
|
2062
|
-
});
|
|
2063
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2064
|
-
};
|
|
2065
|
-
const de_BucketNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2066
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2067
|
-
const data = parsedOutput.body;
|
|
2068
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2069
|
-
message: smithy_client_1.expectString,
|
|
2070
|
-
});
|
|
2071
|
-
Object.assign(contents, doc);
|
|
2072
|
-
const exception = new models_0_1.BucketNotFoundException({
|
|
2073
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2074
|
-
...contents,
|
|
2075
|
-
});
|
|
2076
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2077
|
-
};
|
|
2078
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
1957
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2079
1958
|
const contents = (0, smithy_client_1.map)({});
|
|
2080
1959
|
const data = parsedOutput.body;
|
|
2081
1960
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2082
1961
|
message: smithy_client_1.expectString,
|
|
2083
1962
|
});
|
|
2084
1963
|
Object.assign(contents, doc);
|
|
2085
|
-
const exception = new models_0_1.
|
|
1964
|
+
const exception = new models_0_1.BadRequestException({
|
|
2086
1965
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2087
1966
|
...contents,
|
|
2088
1967
|
});
|
|
@@ -2093,7 +1972,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2093
1972
|
const data = parsedOutput.body;
|
|
2094
1973
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2095
1974
|
message: smithy_client_1.expectString,
|
|
2096
|
-
|
|
1975
|
+
resourceName: smithy_client_1.expectString,
|
|
2097
1976
|
resourceType: smithy_client_1.expectString,
|
|
2098
1977
|
});
|
|
2099
1978
|
Object.assign(contents, doc);
|
|
@@ -2103,71 +1982,14 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2103
1982
|
});
|
|
2104
1983
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2105
1984
|
};
|
|
2106
|
-
const de_ConflictSourceNamesExceptionRes = async (parsedOutput, context) => {
|
|
2107
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2108
|
-
const data = parsedOutput.body;
|
|
2109
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2110
|
-
message: smithy_client_1.expectString,
|
|
2111
|
-
});
|
|
2112
|
-
Object.assign(contents, doc);
|
|
2113
|
-
const exception = new models_0_1.ConflictSourceNamesException({
|
|
2114
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2115
|
-
...contents,
|
|
2116
|
-
});
|
|
2117
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2118
|
-
};
|
|
2119
|
-
const de_ConflictSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
2120
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2121
|
-
const data = parsedOutput.body;
|
|
2122
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2123
|
-
message: smithy_client_1.expectString,
|
|
2124
|
-
});
|
|
2125
|
-
Object.assign(contents, doc);
|
|
2126
|
-
const exception = new models_0_1.ConflictSubscriptionException({
|
|
2127
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2128
|
-
...contents,
|
|
2129
|
-
});
|
|
2130
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2131
|
-
};
|
|
2132
|
-
const de_EventBridgeExceptionRes = async (parsedOutput, context) => {
|
|
2133
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2134
|
-
const data = parsedOutput.body;
|
|
2135
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2136
|
-
message: smithy_client_1.expectString,
|
|
2137
|
-
});
|
|
2138
|
-
Object.assign(contents, doc);
|
|
2139
|
-
const exception = new models_0_1.EventBridgeException({
|
|
2140
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2141
|
-
...contents,
|
|
2142
|
-
});
|
|
2143
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2144
|
-
};
|
|
2145
1985
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2146
|
-
const contents = (0, smithy_client_1.map)({
|
|
2147
|
-
retryAfterSeconds: [
|
|
2148
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2149
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2150
|
-
],
|
|
2151
|
-
});
|
|
2152
|
-
const data = parsedOutput.body;
|
|
2153
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2154
|
-
message: smithy_client_1.expectString,
|
|
2155
|
-
});
|
|
2156
|
-
Object.assign(contents, doc);
|
|
2157
|
-
const exception = new models_0_1.InternalServerException({
|
|
2158
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2159
|
-
...contents,
|
|
2160
|
-
});
|
|
2161
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2162
|
-
};
|
|
2163
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
2164
1986
|
const contents = (0, smithy_client_1.map)({});
|
|
2165
1987
|
const data = parsedOutput.body;
|
|
2166
1988
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2167
1989
|
message: smithy_client_1.expectString,
|
|
2168
1990
|
});
|
|
2169
1991
|
Object.assign(contents, doc);
|
|
2170
|
-
const exception = new models_0_1.
|
|
1992
|
+
const exception = new models_0_1.InternalServerException({
|
|
2171
1993
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2172
1994
|
...contents,
|
|
2173
1995
|
});
|
|
@@ -2178,7 +2000,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2178
2000
|
const data = parsedOutput.body;
|
|
2179
2001
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2180
2002
|
message: smithy_client_1.expectString,
|
|
2181
|
-
|
|
2003
|
+
resourceName: smithy_client_1.expectString,
|
|
2182
2004
|
resourceType: smithy_client_1.expectString,
|
|
2183
2005
|
});
|
|
2184
2006
|
Object.assign(contents, doc);
|
|
@@ -2188,36 +2010,6 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2188
2010
|
});
|
|
2189
2011
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2190
2012
|
};
|
|
2191
|
-
const de_S3ExceptionRes = async (parsedOutput, context) => {
|
|
2192
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2193
|
-
const data = parsedOutput.body;
|
|
2194
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2195
|
-
message: smithy_client_1.expectString,
|
|
2196
|
-
});
|
|
2197
|
-
Object.assign(contents, doc);
|
|
2198
|
-
const exception = new models_0_1.S3Exception({
|
|
2199
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2200
|
-
...contents,
|
|
2201
|
-
});
|
|
2202
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2203
|
-
};
|
|
2204
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2205
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2206
|
-
const data = parsedOutput.body;
|
|
2207
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2208
|
-
message: smithy_client_1.expectString,
|
|
2209
|
-
quotaCode: smithy_client_1.expectString,
|
|
2210
|
-
resourceId: smithy_client_1.expectString,
|
|
2211
|
-
resourceType: smithy_client_1.expectString,
|
|
2212
|
-
serviceCode: smithy_client_1.expectString,
|
|
2213
|
-
});
|
|
2214
|
-
Object.assign(contents, doc);
|
|
2215
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2216
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2217
|
-
...contents,
|
|
2218
|
-
});
|
|
2219
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2220
|
-
};
|
|
2221
2013
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2222
2014
|
const contents = (0, smithy_client_1.map)({
|
|
2223
2015
|
retryAfterSeconds: [
|
|
@@ -2238,79 +2030,49 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2238
2030
|
});
|
|
2239
2031
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2240
2032
|
};
|
|
2241
|
-
const
|
|
2242
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2243
|
-
const data = parsedOutput.body;
|
|
2244
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2245
|
-
fieldList: smithy_client_1._json,
|
|
2246
|
-
message: smithy_client_1.expectString,
|
|
2247
|
-
reason: smithy_client_1.expectString,
|
|
2248
|
-
});
|
|
2249
|
-
Object.assign(contents, doc);
|
|
2250
|
-
const exception = new models_0_1.ValidationException({
|
|
2251
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2252
|
-
...contents,
|
|
2253
|
-
});
|
|
2254
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2255
|
-
};
|
|
2256
|
-
const de_Failures = (output, context) => {
|
|
2033
|
+
const de_DataLakeException = (output, context) => {
|
|
2257
2034
|
return (0, smithy_client_1.take)(output, {
|
|
2258
|
-
|
|
2035
|
+
exception: smithy_client_1.expectString,
|
|
2036
|
+
region: smithy_client_1.expectString,
|
|
2259
2037
|
remediation: smithy_client_1.expectString,
|
|
2260
2038
|
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2261
2039
|
});
|
|
2262
2040
|
};
|
|
2263
|
-
const
|
|
2264
|
-
const retVal = (output || [])
|
|
2265
|
-
.filter((e) => e != null)
|
|
2266
|
-
.map((entry) => {
|
|
2267
|
-
return de_Failures(entry, context);
|
|
2268
|
-
});
|
|
2269
|
-
return retVal;
|
|
2270
|
-
};
|
|
2271
|
-
const de_FailuresResponse = (output, context) => {
|
|
2272
|
-
return (0, smithy_client_1.take)(output, {
|
|
2273
|
-
failures: (_) => de_Failureslist(_, context),
|
|
2274
|
-
region: smithy_client_1.expectString,
|
|
2275
|
-
});
|
|
2276
|
-
};
|
|
2277
|
-
const de_FailuresResponseList = (output, context) => {
|
|
2278
|
-
const retVal = (output || [])
|
|
2279
|
-
.filter((e) => e != null)
|
|
2280
|
-
.map((entry) => {
|
|
2281
|
-
return de_FailuresResponse(entry, context);
|
|
2282
|
-
});
|
|
2283
|
-
return retVal;
|
|
2284
|
-
};
|
|
2285
|
-
const de_SubscriberList = (output, context) => {
|
|
2041
|
+
const de_DataLakeExceptionList = (output, context) => {
|
|
2286
2042
|
const retVal = (output || [])
|
|
2287
2043
|
.filter((e) => e != null)
|
|
2288
2044
|
.map((entry) => {
|
|
2289
|
-
return
|
|
2045
|
+
return de_DataLakeException(entry, context);
|
|
2290
2046
|
});
|
|
2291
2047
|
return retVal;
|
|
2292
2048
|
};
|
|
2293
2049
|
const de_SubscriberResource = (output, context) => {
|
|
2294
2050
|
return (0, smithy_client_1.take)(output, {
|
|
2295
2051
|
accessTypes: smithy_client_1._json,
|
|
2296
|
-
accountId: smithy_client_1.expectString,
|
|
2297
2052
|
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2298
|
-
externalId: smithy_client_1.expectString,
|
|
2299
2053
|
resourceShareArn: smithy_client_1.expectString,
|
|
2300
2054
|
resourceShareName: smithy_client_1.expectString,
|
|
2301
2055
|
roleArn: smithy_client_1.expectString,
|
|
2302
2056
|
s3BucketArn: smithy_client_1.expectString,
|
|
2303
|
-
|
|
2304
|
-
|
|
2057
|
+
sources: smithy_client_1._json,
|
|
2058
|
+
subscriberArn: smithy_client_1.expectString,
|
|
2305
2059
|
subscriberDescription: smithy_client_1.expectString,
|
|
2060
|
+
subscriberEndpoint: smithy_client_1.expectString,
|
|
2061
|
+
subscriberId: smithy_client_1.expectString,
|
|
2062
|
+
subscriberIdentity: smithy_client_1._json,
|
|
2306
2063
|
subscriberName: smithy_client_1.expectString,
|
|
2307
|
-
|
|
2308
|
-
subscriptionId: smithy_client_1.expectString,
|
|
2309
|
-
subscriptionProtocol: smithy_client_1.expectString,
|
|
2310
|
-
subscriptionStatus: smithy_client_1.expectString,
|
|
2064
|
+
subscriberStatus: smithy_client_1.expectString,
|
|
2311
2065
|
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2312
2066
|
});
|
|
2313
2067
|
};
|
|
2068
|
+
const de_SubscriberResourceList = (output, context) => {
|
|
2069
|
+
const retVal = (output || [])
|
|
2070
|
+
.filter((e) => e != null)
|
|
2071
|
+
.map((entry) => {
|
|
2072
|
+
return de_SubscriberResource(entry, context);
|
|
2073
|
+
});
|
|
2074
|
+
return retVal;
|
|
2075
|
+
};
|
|
2314
2076
|
const deserializeMetadata = (output) => ({
|
|
2315
2077
|
httpStatusCode: output.statusCode,
|
|
2316
2078
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|