@aws-sdk/client-redshift-serverless 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/ConvertRecoveryPointToSnapshotCommand.js +2 -2
- package/dist-cjs/commands/CreateEndpointAccessCommand.js +2 -2
- package/dist-cjs/commands/CreateNamespaceCommand.js +2 -2
- package/dist-cjs/commands/CreateSnapshotCommand.js +2 -2
- package/dist-cjs/commands/CreateUsageLimitCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkgroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteEndpointAccessCommand.js +2 -2
- package/dist-cjs/commands/DeleteNamespaceCommand.js +2 -2
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteSnapshotCommand.js +2 -2
- package/dist-cjs/commands/DeleteUsageLimitCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkgroupCommand.js +2 -2
- package/dist-cjs/commands/GetCredentialsCommand.js +2 -2
- package/dist-cjs/commands/GetEndpointAccessCommand.js +2 -2
- package/dist-cjs/commands/GetNamespaceCommand.js +2 -2
- package/dist-cjs/commands/GetRecoveryPointCommand.js +2 -2
- package/dist-cjs/commands/GetResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/GetSnapshotCommand.js +2 -2
- package/dist-cjs/commands/GetTableRestoreStatusCommand.js +2 -2
- package/dist-cjs/commands/GetUsageLimitCommand.js +2 -2
- package/dist-cjs/commands/GetWorkgroupCommand.js +2 -2
- package/dist-cjs/commands/ListEndpointAccessCommand.js +2 -2
- package/dist-cjs/commands/ListNamespacesCommand.js +2 -2
- package/dist-cjs/commands/ListRecoveryPointsCommand.js +2 -2
- package/dist-cjs/commands/ListSnapshotsCommand.js +2 -2
- package/dist-cjs/commands/ListTableRestoreStatusCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListUsageLimitsCommand.js +2 -2
- package/dist-cjs/commands/ListWorkgroupsCommand.js +2 -2
- package/dist-cjs/commands/PutResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/RestoreFromRecoveryPointCommand.js +2 -2
- package/dist-cjs/commands/RestoreFromSnapshotCommand.js +2 -2
- package/dist-cjs/commands/RestoreTableFromSnapshotCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateEndpointAccessCommand.js +2 -2
- package/dist-cjs/commands/UpdateNamespaceCommand.js +2 -2
- package/dist-cjs/commands/UpdateSnapshotCommand.js +2 -2
- package/dist-cjs/commands/UpdateUsageLimitCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkgroupCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +714 -728
- package/dist-es/commands/ConvertRecoveryPointToSnapshotCommand.js +3 -3
- package/dist-es/commands/CreateEndpointAccessCommand.js +3 -3
- package/dist-es/commands/CreateNamespaceCommand.js +3 -3
- package/dist-es/commands/CreateSnapshotCommand.js +3 -3
- package/dist-es/commands/CreateUsageLimitCommand.js +3 -3
- package/dist-es/commands/CreateWorkgroupCommand.js +3 -3
- package/dist-es/commands/DeleteEndpointAccessCommand.js +3 -3
- package/dist-es/commands/DeleteNamespaceCommand.js +3 -3
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist-es/commands/DeleteSnapshotCommand.js +3 -3
- package/dist-es/commands/DeleteUsageLimitCommand.js +3 -3
- package/dist-es/commands/DeleteWorkgroupCommand.js +3 -3
- package/dist-es/commands/GetCredentialsCommand.js +3 -3
- package/dist-es/commands/GetEndpointAccessCommand.js +3 -3
- package/dist-es/commands/GetNamespaceCommand.js +3 -3
- package/dist-es/commands/GetRecoveryPointCommand.js +3 -3
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -3
- package/dist-es/commands/GetSnapshotCommand.js +3 -3
- package/dist-es/commands/GetTableRestoreStatusCommand.js +3 -3
- package/dist-es/commands/GetUsageLimitCommand.js +3 -3
- package/dist-es/commands/GetWorkgroupCommand.js +3 -3
- package/dist-es/commands/ListEndpointAccessCommand.js +3 -3
- package/dist-es/commands/ListNamespacesCommand.js +3 -3
- package/dist-es/commands/ListRecoveryPointsCommand.js +3 -3
- package/dist-es/commands/ListSnapshotsCommand.js +3 -3
- package/dist-es/commands/ListTableRestoreStatusCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListUsageLimitsCommand.js +3 -3
- package/dist-es/commands/ListWorkgroupsCommand.js +3 -3
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -3
- package/dist-es/commands/RestoreFromRecoveryPointCommand.js +3 -3
- package/dist-es/commands/RestoreFromSnapshotCommand.js +3 -3
- package/dist-es/commands/RestoreTableFromSnapshotCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateEndpointAccessCommand.js +3 -3
- package/dist-es/commands/UpdateNamespaceCommand.js +3 -3
- package/dist-es/commands/UpdateSnapshotCommand.js +3 -3
- package/dist-es/commands/UpdateUsageLimitCommand.js +3 -3
- package/dist-es/commands/UpdateWorkgroupCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +632 -646
- package/dist-types/protocols/Aws_json1_1.d.ts +320 -80
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +80 -80
- package/package.json +29 -29
|
@@ -1,426 +1,426 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_DeleteSnapshotCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteNamespaceCommand = exports.de_DeleteEndpointAccessCommand = exports.de_CreateWorkgroupCommand = exports.de_CreateUsageLimitCommand = exports.de_CreateSnapshotCommand = exports.de_CreateNamespaceCommand = exports.de_CreateEndpointAccessCommand = exports.de_ConvertRecoveryPointToSnapshotCommand = exports.se_UpdateWorkgroupCommand = exports.se_UpdateUsageLimitCommand = exports.se_UpdateSnapshotCommand = exports.se_UpdateNamespaceCommand = exports.se_UpdateEndpointAccessCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RestoreTableFromSnapshotCommand = exports.se_RestoreFromSnapshotCommand = exports.se_RestoreFromRecoveryPointCommand = exports.se_PutResourcePolicyCommand = exports.se_ListWorkgroupsCommand = exports.se_ListUsageLimitsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListTableRestoreStatusCommand = exports.se_ListSnapshotsCommand = exports.se_ListRecoveryPointsCommand = exports.se_ListNamespacesCommand = exports.se_ListEndpointAccessCommand = exports.se_GetWorkgroupCommand = exports.se_GetUsageLimitCommand = exports.se_GetTableRestoreStatusCommand = exports.se_GetSnapshotCommand = exports.se_GetResourcePolicyCommand = exports.se_GetRecoveryPointCommand = exports.se_GetNamespaceCommand = exports.se_GetEndpointAccessCommand = exports.se_GetCredentialsCommand = exports.se_DeleteWorkgroupCommand = exports.se_DeleteUsageLimitCommand = exports.se_DeleteSnapshotCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteNamespaceCommand = exports.se_DeleteEndpointAccessCommand = exports.se_CreateWorkgroupCommand = exports.se_CreateUsageLimitCommand = exports.se_CreateSnapshotCommand = exports.se_CreateNamespaceCommand = exports.se_CreateEndpointAccessCommand = exports.se_ConvertRecoveryPointToSnapshotCommand = void 0;
|
|
4
|
+
exports.de_UpdateWorkgroupCommand = exports.de_UpdateUsageLimitCommand = exports.de_UpdateSnapshotCommand = exports.de_UpdateNamespaceCommand = exports.de_UpdateEndpointAccessCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RestoreTableFromSnapshotCommand = exports.de_RestoreFromSnapshotCommand = exports.de_RestoreFromRecoveryPointCommand = exports.de_PutResourcePolicyCommand = exports.de_ListWorkgroupsCommand = exports.de_ListUsageLimitsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListTableRestoreStatusCommand = exports.de_ListSnapshotsCommand = exports.de_ListRecoveryPointsCommand = exports.de_ListNamespacesCommand = exports.de_ListEndpointAccessCommand = exports.de_GetWorkgroupCommand = exports.de_GetUsageLimitCommand = exports.de_GetTableRestoreStatusCommand = exports.de_GetSnapshotCommand = exports.de_GetResourcePolicyCommand = exports.de_GetRecoveryPointCommand = exports.de_GetNamespaceCommand = exports.de_GetEndpointAccessCommand = exports.de_GetCredentialsCommand = exports.de_DeleteWorkgroupCommand = exports.de_DeleteUsageLimitCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const RedshiftServerlessServiceException_1 = require("../models/RedshiftServerlessServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_ConvertRecoveryPointToSnapshotCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-amz-json-1.1",
|
|
12
12
|
"x-amz-target": "RedshiftServerless.ConvertRecoveryPointToSnapshot",
|
|
13
13
|
};
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(se_ConvertRecoveryPointToSnapshotRequest(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
const
|
|
18
|
+
exports.se_ConvertRecoveryPointToSnapshotCommand = se_ConvertRecoveryPointToSnapshotCommand;
|
|
19
|
+
const se_CreateEndpointAccessCommand = async (input, context) => {
|
|
20
20
|
const headers = {
|
|
21
21
|
"content-type": "application/x-amz-json-1.1",
|
|
22
22
|
"x-amz-target": "RedshiftServerless.CreateEndpointAccess",
|
|
23
23
|
};
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify(se_CreateEndpointAccessRequest(input, context));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_CreateEndpointAccessCommand = se_CreateEndpointAccessCommand;
|
|
29
|
+
const se_CreateNamespaceCommand = async (input, context) => {
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/x-amz-json-1.1",
|
|
32
32
|
"x-amz-target": "RedshiftServerless.CreateNamespace",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify(se_CreateNamespaceRequest(input, context));
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_CreateNamespaceCommand = se_CreateNamespaceCommand;
|
|
39
|
+
const se_CreateSnapshotCommand = async (input, context) => {
|
|
40
40
|
const headers = {
|
|
41
41
|
"content-type": "application/x-amz-json-1.1",
|
|
42
42
|
"x-amz-target": "RedshiftServerless.CreateSnapshot",
|
|
43
43
|
};
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(se_CreateSnapshotRequest(input, context));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_CreateSnapshotCommand = se_CreateSnapshotCommand;
|
|
49
|
+
const se_CreateUsageLimitCommand = async (input, context) => {
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/x-amz-json-1.1",
|
|
52
52
|
"x-amz-target": "RedshiftServerless.CreateUsageLimit",
|
|
53
53
|
};
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify(se_CreateUsageLimitRequest(input, context));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_CreateUsageLimitCommand = se_CreateUsageLimitCommand;
|
|
59
|
+
const se_CreateWorkgroupCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "RedshiftServerless.CreateWorkgroup",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_CreateWorkgroupRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_CreateWorkgroupCommand = se_CreateWorkgroupCommand;
|
|
69
|
+
const se_DeleteEndpointAccessCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "RedshiftServerless.DeleteEndpointAccess",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_DeleteEndpointAccessRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
78
|
+
exports.se_DeleteEndpointAccessCommand = se_DeleteEndpointAccessCommand;
|
|
79
|
+
const se_DeleteNamespaceCommand = async (input, context) => {
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/x-amz-json-1.1",
|
|
82
82
|
"x-amz-target": "RedshiftServerless.DeleteNamespace",
|
|
83
83
|
};
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
85
|
+
body = JSON.stringify(se_DeleteNamespaceRequest(input, context));
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
88
|
+
exports.se_DeleteNamespaceCommand = se_DeleteNamespaceCommand;
|
|
89
|
+
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
90
90
|
const headers = {
|
|
91
91
|
"content-type": "application/x-amz-json-1.1",
|
|
92
92
|
"x-amz-target": "RedshiftServerless.DeleteResourcePolicy",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify(se_DeleteResourcePolicyRequest(input, context));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
99
|
+
const se_DeleteSnapshotCommand = async (input, context) => {
|
|
100
100
|
const headers = {
|
|
101
101
|
"content-type": "application/x-amz-json-1.1",
|
|
102
102
|
"x-amz-target": "RedshiftServerless.DeleteSnapshot",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(se_DeleteSnapshotRequest(input, context));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_DeleteSnapshotCommand = se_DeleteSnapshotCommand;
|
|
109
|
+
const se_DeleteUsageLimitCommand = async (input, context) => {
|
|
110
110
|
const headers = {
|
|
111
111
|
"content-type": "application/x-amz-json-1.1",
|
|
112
112
|
"x-amz-target": "RedshiftServerless.DeleteUsageLimit",
|
|
113
113
|
};
|
|
114
114
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
115
|
+
body = JSON.stringify(se_DeleteUsageLimitRequest(input, context));
|
|
116
116
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
117
|
};
|
|
118
|
-
exports.
|
|
119
|
-
const
|
|
118
|
+
exports.se_DeleteUsageLimitCommand = se_DeleteUsageLimitCommand;
|
|
119
|
+
const se_DeleteWorkgroupCommand = async (input, context) => {
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/x-amz-json-1.1",
|
|
122
122
|
"x-amz-target": "RedshiftServerless.DeleteWorkgroup",
|
|
123
123
|
};
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify(se_DeleteWorkgroupRequest(input, context));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
|
-
exports.
|
|
129
|
-
const
|
|
128
|
+
exports.se_DeleteWorkgroupCommand = se_DeleteWorkgroupCommand;
|
|
129
|
+
const se_GetCredentialsCommand = async (input, context) => {
|
|
130
130
|
const headers = {
|
|
131
131
|
"content-type": "application/x-amz-json-1.1",
|
|
132
132
|
"x-amz-target": "RedshiftServerless.GetCredentials",
|
|
133
133
|
};
|
|
134
134
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
135
|
+
body = JSON.stringify(se_GetCredentialsRequest(input, context));
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
|
-
exports.
|
|
139
|
-
const
|
|
138
|
+
exports.se_GetCredentialsCommand = se_GetCredentialsCommand;
|
|
139
|
+
const se_GetEndpointAccessCommand = async (input, context) => {
|
|
140
140
|
const headers = {
|
|
141
141
|
"content-type": "application/x-amz-json-1.1",
|
|
142
142
|
"x-amz-target": "RedshiftServerless.GetEndpointAccess",
|
|
143
143
|
};
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify(se_GetEndpointAccessRequest(input, context));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
148
|
+
exports.se_GetEndpointAccessCommand = se_GetEndpointAccessCommand;
|
|
149
|
+
const se_GetNamespaceCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "RedshiftServerless.GetNamespace",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_GetNamespaceRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
exports.
|
|
159
|
-
const
|
|
158
|
+
exports.se_GetNamespaceCommand = se_GetNamespaceCommand;
|
|
159
|
+
const se_GetRecoveryPointCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.1",
|
|
162
162
|
"x-amz-target": "RedshiftServerless.GetRecoveryPoint",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_GetRecoveryPointRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
exports.
|
|
169
|
-
const
|
|
168
|
+
exports.se_GetRecoveryPointCommand = se_GetRecoveryPointCommand;
|
|
169
|
+
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
170
170
|
const headers = {
|
|
171
171
|
"content-type": "application/x-amz-json-1.1",
|
|
172
172
|
"x-amz-target": "RedshiftServerless.GetResourcePolicy",
|
|
173
173
|
};
|
|
174
174
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
175
|
+
body = JSON.stringify(se_GetResourcePolicyRequest(input, context));
|
|
176
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
177
|
};
|
|
178
|
-
exports.
|
|
179
|
-
const
|
|
178
|
+
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
179
|
+
const se_GetSnapshotCommand = async (input, context) => {
|
|
180
180
|
const headers = {
|
|
181
181
|
"content-type": "application/x-amz-json-1.1",
|
|
182
182
|
"x-amz-target": "RedshiftServerless.GetSnapshot",
|
|
183
183
|
};
|
|
184
184
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
185
|
+
body = JSON.stringify(se_GetSnapshotRequest(input, context));
|
|
186
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
187
|
};
|
|
188
|
-
exports.
|
|
189
|
-
const
|
|
188
|
+
exports.se_GetSnapshotCommand = se_GetSnapshotCommand;
|
|
189
|
+
const se_GetTableRestoreStatusCommand = async (input, context) => {
|
|
190
190
|
const headers = {
|
|
191
191
|
"content-type": "application/x-amz-json-1.1",
|
|
192
192
|
"x-amz-target": "RedshiftServerless.GetTableRestoreStatus",
|
|
193
193
|
};
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify(se_GetTableRestoreStatusRequest(input, context));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
198
|
+
exports.se_GetTableRestoreStatusCommand = se_GetTableRestoreStatusCommand;
|
|
199
|
+
const se_GetUsageLimitCommand = async (input, context) => {
|
|
200
200
|
const headers = {
|
|
201
201
|
"content-type": "application/x-amz-json-1.1",
|
|
202
202
|
"x-amz-target": "RedshiftServerless.GetUsageLimit",
|
|
203
203
|
};
|
|
204
204
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
205
|
+
body = JSON.stringify(se_GetUsageLimitRequest(input, context));
|
|
206
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_GetUsageLimitCommand = se_GetUsageLimitCommand;
|
|
209
|
+
const se_GetWorkgroupCommand = async (input, context) => {
|
|
210
210
|
const headers = {
|
|
211
211
|
"content-type": "application/x-amz-json-1.1",
|
|
212
212
|
"x-amz-target": "RedshiftServerless.GetWorkgroup",
|
|
213
213
|
};
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify(se_GetWorkgroupRequest(input, context));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
218
|
+
exports.se_GetWorkgroupCommand = se_GetWorkgroupCommand;
|
|
219
|
+
const se_ListEndpointAccessCommand = async (input, context) => {
|
|
220
220
|
const headers = {
|
|
221
221
|
"content-type": "application/x-amz-json-1.1",
|
|
222
222
|
"x-amz-target": "RedshiftServerless.ListEndpointAccess",
|
|
223
223
|
};
|
|
224
224
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
225
|
+
body = JSON.stringify(se_ListEndpointAccessRequest(input, context));
|
|
226
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
227
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
228
|
+
exports.se_ListEndpointAccessCommand = se_ListEndpointAccessCommand;
|
|
229
|
+
const se_ListNamespacesCommand = async (input, context) => {
|
|
230
230
|
const headers = {
|
|
231
231
|
"content-type": "application/x-amz-json-1.1",
|
|
232
232
|
"x-amz-target": "RedshiftServerless.ListNamespaces",
|
|
233
233
|
};
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
235
|
+
body = JSON.stringify(se_ListNamespacesRequest(input, context));
|
|
236
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
237
|
};
|
|
238
|
-
exports.
|
|
239
|
-
const
|
|
238
|
+
exports.se_ListNamespacesCommand = se_ListNamespacesCommand;
|
|
239
|
+
const se_ListRecoveryPointsCommand = async (input, context) => {
|
|
240
240
|
const headers = {
|
|
241
241
|
"content-type": "application/x-amz-json-1.1",
|
|
242
242
|
"x-amz-target": "RedshiftServerless.ListRecoveryPoints",
|
|
243
243
|
};
|
|
244
244
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
245
|
+
body = JSON.stringify(se_ListRecoveryPointsRequest(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.se_ListRecoveryPointsCommand = se_ListRecoveryPointsCommand;
|
|
249
|
+
const se_ListSnapshotsCommand = async (input, context) => {
|
|
250
250
|
const headers = {
|
|
251
251
|
"content-type": "application/x-amz-json-1.1",
|
|
252
252
|
"x-amz-target": "RedshiftServerless.ListSnapshots",
|
|
253
253
|
};
|
|
254
254
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
255
|
+
body = JSON.stringify(se_ListSnapshotsRequest(input, context));
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
|
-
exports.
|
|
259
|
-
const
|
|
258
|
+
exports.se_ListSnapshotsCommand = se_ListSnapshotsCommand;
|
|
259
|
+
const se_ListTableRestoreStatusCommand = async (input, context) => {
|
|
260
260
|
const headers = {
|
|
261
261
|
"content-type": "application/x-amz-json-1.1",
|
|
262
262
|
"x-amz-target": "RedshiftServerless.ListTableRestoreStatus",
|
|
263
263
|
};
|
|
264
264
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
265
|
+
body = JSON.stringify(se_ListTableRestoreStatusRequest(input, context));
|
|
266
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
267
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
268
|
+
exports.se_ListTableRestoreStatusCommand = se_ListTableRestoreStatusCommand;
|
|
269
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
270
270
|
const headers = {
|
|
271
271
|
"content-type": "application/x-amz-json-1.1",
|
|
272
272
|
"x-amz-target": "RedshiftServerless.ListTagsForResource",
|
|
273
273
|
};
|
|
274
274
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
275
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
276
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
277
|
};
|
|
278
|
-
exports.
|
|
279
|
-
const
|
|
278
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
279
|
+
const se_ListUsageLimitsCommand = async (input, context) => {
|
|
280
280
|
const headers = {
|
|
281
281
|
"content-type": "application/x-amz-json-1.1",
|
|
282
282
|
"x-amz-target": "RedshiftServerless.ListUsageLimits",
|
|
283
283
|
};
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify(se_ListUsageLimitsRequest(input, context));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
|
-
exports.
|
|
289
|
-
const
|
|
288
|
+
exports.se_ListUsageLimitsCommand = se_ListUsageLimitsCommand;
|
|
289
|
+
const se_ListWorkgroupsCommand = async (input, context) => {
|
|
290
290
|
const headers = {
|
|
291
291
|
"content-type": "application/x-amz-json-1.1",
|
|
292
292
|
"x-amz-target": "RedshiftServerless.ListWorkgroups",
|
|
293
293
|
};
|
|
294
294
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
295
|
+
body = JSON.stringify(se_ListWorkgroupsRequest(input, context));
|
|
296
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
297
|
};
|
|
298
|
-
exports.
|
|
299
|
-
const
|
|
298
|
+
exports.se_ListWorkgroupsCommand = se_ListWorkgroupsCommand;
|
|
299
|
+
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
300
300
|
const headers = {
|
|
301
301
|
"content-type": "application/x-amz-json-1.1",
|
|
302
302
|
"x-amz-target": "RedshiftServerless.PutResourcePolicy",
|
|
303
303
|
};
|
|
304
304
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
305
|
+
body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
|
|
306
306
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
307
|
};
|
|
308
|
-
exports.
|
|
309
|
-
const
|
|
308
|
+
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
309
|
+
const se_RestoreFromRecoveryPointCommand = async (input, context) => {
|
|
310
310
|
const headers = {
|
|
311
311
|
"content-type": "application/x-amz-json-1.1",
|
|
312
312
|
"x-amz-target": "RedshiftServerless.RestoreFromRecoveryPoint",
|
|
313
313
|
};
|
|
314
314
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
315
|
+
body = JSON.stringify(se_RestoreFromRecoveryPointRequest(input, context));
|
|
316
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
317
|
};
|
|
318
|
-
exports.
|
|
319
|
-
const
|
|
318
|
+
exports.se_RestoreFromRecoveryPointCommand = se_RestoreFromRecoveryPointCommand;
|
|
319
|
+
const se_RestoreFromSnapshotCommand = async (input, context) => {
|
|
320
320
|
const headers = {
|
|
321
321
|
"content-type": "application/x-amz-json-1.1",
|
|
322
322
|
"x-amz-target": "RedshiftServerless.RestoreFromSnapshot",
|
|
323
323
|
};
|
|
324
324
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
325
|
+
body = JSON.stringify(se_RestoreFromSnapshotRequest(input, context));
|
|
326
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
327
|
};
|
|
328
|
-
exports.
|
|
329
|
-
const
|
|
328
|
+
exports.se_RestoreFromSnapshotCommand = se_RestoreFromSnapshotCommand;
|
|
329
|
+
const se_RestoreTableFromSnapshotCommand = async (input, context) => {
|
|
330
330
|
const headers = {
|
|
331
331
|
"content-type": "application/x-amz-json-1.1",
|
|
332
332
|
"x-amz-target": "RedshiftServerless.RestoreTableFromSnapshot",
|
|
333
333
|
};
|
|
334
334
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
335
|
+
body = JSON.stringify(se_RestoreTableFromSnapshotRequest(input, context));
|
|
336
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
337
|
};
|
|
338
|
-
exports.
|
|
339
|
-
const
|
|
338
|
+
exports.se_RestoreTableFromSnapshotCommand = se_RestoreTableFromSnapshotCommand;
|
|
339
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
340
340
|
const headers = {
|
|
341
341
|
"content-type": "application/x-amz-json-1.1",
|
|
342
342
|
"x-amz-target": "RedshiftServerless.TagResource",
|
|
343
343
|
};
|
|
344
344
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
345
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
346
346
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
347
|
};
|
|
348
|
-
exports.
|
|
349
|
-
const
|
|
348
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
349
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
350
350
|
const headers = {
|
|
351
351
|
"content-type": "application/x-amz-json-1.1",
|
|
352
352
|
"x-amz-target": "RedshiftServerless.UntagResource",
|
|
353
353
|
};
|
|
354
354
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
355
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
356
356
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
357
|
};
|
|
358
|
-
exports.
|
|
359
|
-
const
|
|
358
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
359
|
+
const se_UpdateEndpointAccessCommand = async (input, context) => {
|
|
360
360
|
const headers = {
|
|
361
361
|
"content-type": "application/x-amz-json-1.1",
|
|
362
362
|
"x-amz-target": "RedshiftServerless.UpdateEndpointAccess",
|
|
363
363
|
};
|
|
364
364
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
365
|
+
body = JSON.stringify(se_UpdateEndpointAccessRequest(input, context));
|
|
366
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
367
|
};
|
|
368
|
-
exports.
|
|
369
|
-
const
|
|
368
|
+
exports.se_UpdateEndpointAccessCommand = se_UpdateEndpointAccessCommand;
|
|
369
|
+
const se_UpdateNamespaceCommand = async (input, context) => {
|
|
370
370
|
const headers = {
|
|
371
371
|
"content-type": "application/x-amz-json-1.1",
|
|
372
372
|
"x-amz-target": "RedshiftServerless.UpdateNamespace",
|
|
373
373
|
};
|
|
374
374
|
let body;
|
|
375
|
-
body = JSON.stringify(
|
|
375
|
+
body = JSON.stringify(se_UpdateNamespaceRequest(input, context));
|
|
376
376
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
377
|
};
|
|
378
|
-
exports.
|
|
379
|
-
const
|
|
378
|
+
exports.se_UpdateNamespaceCommand = se_UpdateNamespaceCommand;
|
|
379
|
+
const se_UpdateSnapshotCommand = async (input, context) => {
|
|
380
380
|
const headers = {
|
|
381
381
|
"content-type": "application/x-amz-json-1.1",
|
|
382
382
|
"x-amz-target": "RedshiftServerless.UpdateSnapshot",
|
|
383
383
|
};
|
|
384
384
|
let body;
|
|
385
|
-
body = JSON.stringify(
|
|
385
|
+
body = JSON.stringify(se_UpdateSnapshotRequest(input, context));
|
|
386
386
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
387
|
};
|
|
388
|
-
exports.
|
|
389
|
-
const
|
|
388
|
+
exports.se_UpdateSnapshotCommand = se_UpdateSnapshotCommand;
|
|
389
|
+
const se_UpdateUsageLimitCommand = async (input, context) => {
|
|
390
390
|
const headers = {
|
|
391
391
|
"content-type": "application/x-amz-json-1.1",
|
|
392
392
|
"x-amz-target": "RedshiftServerless.UpdateUsageLimit",
|
|
393
393
|
};
|
|
394
394
|
let body;
|
|
395
|
-
body = JSON.stringify(
|
|
395
|
+
body = JSON.stringify(se_UpdateUsageLimitRequest(input, context));
|
|
396
396
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
397
|
};
|
|
398
|
-
exports.
|
|
399
|
-
const
|
|
398
|
+
exports.se_UpdateUsageLimitCommand = se_UpdateUsageLimitCommand;
|
|
399
|
+
const se_UpdateWorkgroupCommand = async (input, context) => {
|
|
400
400
|
const headers = {
|
|
401
401
|
"content-type": "application/x-amz-json-1.1",
|
|
402
402
|
"x-amz-target": "RedshiftServerless.UpdateWorkgroup",
|
|
403
403
|
};
|
|
404
404
|
let body;
|
|
405
|
-
body = JSON.stringify(
|
|
405
|
+
body = JSON.stringify(se_UpdateWorkgroupRequest(input, context));
|
|
406
406
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
407
|
};
|
|
408
|
-
exports.
|
|
409
|
-
const
|
|
408
|
+
exports.se_UpdateWorkgroupCommand = se_UpdateWorkgroupCommand;
|
|
409
|
+
const de_ConvertRecoveryPointToSnapshotCommand = async (output, context) => {
|
|
410
410
|
if (output.statusCode >= 300) {
|
|
411
|
-
return
|
|
411
|
+
return de_ConvertRecoveryPointToSnapshotCommandError(output, context);
|
|
412
412
|
}
|
|
413
413
|
const data = await parseBody(output.body, context);
|
|
414
414
|
let contents = {};
|
|
415
|
-
contents =
|
|
415
|
+
contents = de_ConvertRecoveryPointToSnapshotResponse(data, context);
|
|
416
416
|
const response = {
|
|
417
417
|
$metadata: deserializeMetadata(output),
|
|
418
418
|
...contents,
|
|
419
419
|
};
|
|
420
420
|
return Promise.resolve(response);
|
|
421
421
|
};
|
|
422
|
-
exports.
|
|
423
|
-
const
|
|
422
|
+
exports.de_ConvertRecoveryPointToSnapshotCommand = de_ConvertRecoveryPointToSnapshotCommand;
|
|
423
|
+
const de_ConvertRecoveryPointToSnapshotCommandError = async (output, context) => {
|
|
424
424
|
const parsedOutput = {
|
|
425
425
|
...output,
|
|
426
426
|
body: await parseErrorBody(output.body, context),
|
|
@@ -429,22 +429,22 @@ const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (
|
|
|
429
429
|
switch (errorCode) {
|
|
430
430
|
case "ConflictException":
|
|
431
431
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
432
|
-
throw await
|
|
432
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
433
433
|
case "InternalServerException":
|
|
434
434
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
435
|
-
throw await
|
|
435
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
436
436
|
case "ResourceNotFoundException":
|
|
437
437
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
438
|
-
throw await
|
|
438
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
439
439
|
case "ServiceQuotaExceededException":
|
|
440
440
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
441
|
-
throw await
|
|
441
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
442
442
|
case "TooManyTagsException":
|
|
443
443
|
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
444
|
-
throw await
|
|
444
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
445
445
|
case "ValidationException":
|
|
446
446
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
447
|
-
throw await
|
|
447
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
448
448
|
default:
|
|
449
449
|
const parsedBody = parsedOutput.body;
|
|
450
450
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -455,21 +455,21 @@ const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (
|
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
|
-
const
|
|
458
|
+
const de_CreateEndpointAccessCommand = async (output, context) => {
|
|
459
459
|
if (output.statusCode >= 300) {
|
|
460
|
-
return
|
|
460
|
+
return de_CreateEndpointAccessCommandError(output, context);
|
|
461
461
|
}
|
|
462
462
|
const data = await parseBody(output.body, context);
|
|
463
463
|
let contents = {};
|
|
464
|
-
contents =
|
|
464
|
+
contents = de_CreateEndpointAccessResponse(data, context);
|
|
465
465
|
const response = {
|
|
466
466
|
$metadata: deserializeMetadata(output),
|
|
467
467
|
...contents,
|
|
468
468
|
};
|
|
469
469
|
return Promise.resolve(response);
|
|
470
470
|
};
|
|
471
|
-
exports.
|
|
472
|
-
const
|
|
471
|
+
exports.de_CreateEndpointAccessCommand = de_CreateEndpointAccessCommand;
|
|
472
|
+
const de_CreateEndpointAccessCommandError = async (output, context) => {
|
|
473
473
|
const parsedOutput = {
|
|
474
474
|
...output,
|
|
475
475
|
body: await parseErrorBody(output.body, context),
|
|
@@ -478,22 +478,22 @@ const deserializeAws_json1_1CreateEndpointAccessCommandError = async (output, co
|
|
|
478
478
|
switch (errorCode) {
|
|
479
479
|
case "AccessDeniedException":
|
|
480
480
|
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
481
|
-
throw await
|
|
481
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
482
482
|
case "ConflictException":
|
|
483
483
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
484
|
-
throw await
|
|
484
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
485
485
|
case "InternalServerException":
|
|
486
486
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
487
|
-
throw await
|
|
487
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
488
488
|
case "ResourceNotFoundException":
|
|
489
489
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
490
|
-
throw await
|
|
490
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
491
491
|
case "ServiceQuotaExceededException":
|
|
492
492
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
493
|
-
throw await
|
|
493
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
494
494
|
case "ValidationException":
|
|
495
495
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
496
|
-
throw await
|
|
496
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
497
497
|
default:
|
|
498
498
|
const parsedBody = parsedOutput.body;
|
|
499
499
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -504,21 +504,21 @@ const deserializeAws_json1_1CreateEndpointAccessCommandError = async (output, co
|
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
506
|
};
|
|
507
|
-
const
|
|
507
|
+
const de_CreateNamespaceCommand = async (output, context) => {
|
|
508
508
|
if (output.statusCode >= 300) {
|
|
509
|
-
return
|
|
509
|
+
return de_CreateNamespaceCommandError(output, context);
|
|
510
510
|
}
|
|
511
511
|
const data = await parseBody(output.body, context);
|
|
512
512
|
let contents = {};
|
|
513
|
-
contents =
|
|
513
|
+
contents = de_CreateNamespaceResponse(data, context);
|
|
514
514
|
const response = {
|
|
515
515
|
$metadata: deserializeMetadata(output),
|
|
516
516
|
...contents,
|
|
517
517
|
};
|
|
518
518
|
return Promise.resolve(response);
|
|
519
519
|
};
|
|
520
|
-
exports.
|
|
521
|
-
const
|
|
520
|
+
exports.de_CreateNamespaceCommand = de_CreateNamespaceCommand;
|
|
521
|
+
const de_CreateNamespaceCommandError = async (output, context) => {
|
|
522
522
|
const parsedOutput = {
|
|
523
523
|
...output,
|
|
524
524
|
body: await parseErrorBody(output.body, context),
|
|
@@ -527,16 +527,16 @@ const deserializeAws_json1_1CreateNamespaceCommandError = async (output, context
|
|
|
527
527
|
switch (errorCode) {
|
|
528
528
|
case "ConflictException":
|
|
529
529
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
530
|
-
throw await
|
|
530
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
531
531
|
case "InternalServerException":
|
|
532
532
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
533
|
-
throw await
|
|
533
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
534
534
|
case "TooManyTagsException":
|
|
535
535
|
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
536
|
-
throw await
|
|
536
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
537
537
|
case "ValidationException":
|
|
538
538
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
539
|
-
throw await
|
|
539
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
540
540
|
default:
|
|
541
541
|
const parsedBody = parsedOutput.body;
|
|
542
542
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -547,21 +547,21 @@ const deserializeAws_json1_1CreateNamespaceCommandError = async (output, context
|
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
|
-
const
|
|
550
|
+
const de_CreateSnapshotCommand = async (output, context) => {
|
|
551
551
|
if (output.statusCode >= 300) {
|
|
552
|
-
return
|
|
552
|
+
return de_CreateSnapshotCommandError(output, context);
|
|
553
553
|
}
|
|
554
554
|
const data = await parseBody(output.body, context);
|
|
555
555
|
let contents = {};
|
|
556
|
-
contents =
|
|
556
|
+
contents = de_CreateSnapshotResponse(data, context);
|
|
557
557
|
const response = {
|
|
558
558
|
$metadata: deserializeMetadata(output),
|
|
559
559
|
...contents,
|
|
560
560
|
};
|
|
561
561
|
return Promise.resolve(response);
|
|
562
562
|
};
|
|
563
|
-
exports.
|
|
564
|
-
const
|
|
563
|
+
exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
|
|
564
|
+
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
565
565
|
const parsedOutput = {
|
|
566
566
|
...output,
|
|
567
567
|
body: await parseErrorBody(output.body, context),
|
|
@@ -570,22 +570,22 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
570
570
|
switch (errorCode) {
|
|
571
571
|
case "ConflictException":
|
|
572
572
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
573
|
-
throw await
|
|
573
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
574
574
|
case "InternalServerException":
|
|
575
575
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
576
|
-
throw await
|
|
576
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
577
577
|
case "ResourceNotFoundException":
|
|
578
578
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
579
|
-
throw await
|
|
579
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
580
580
|
case "ServiceQuotaExceededException":
|
|
581
581
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
582
|
-
throw await
|
|
582
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
583
583
|
case "TooManyTagsException":
|
|
584
584
|
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
585
|
-
throw await
|
|
585
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
586
586
|
case "ValidationException":
|
|
587
587
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
588
|
-
throw await
|
|
588
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
589
589
|
default:
|
|
590
590
|
const parsedBody = parsedOutput.body;
|
|
591
591
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -596,21 +596,21 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
598
|
};
|
|
599
|
-
const
|
|
599
|
+
const de_CreateUsageLimitCommand = async (output, context) => {
|
|
600
600
|
if (output.statusCode >= 300) {
|
|
601
|
-
return
|
|
601
|
+
return de_CreateUsageLimitCommandError(output, context);
|
|
602
602
|
}
|
|
603
603
|
const data = await parseBody(output.body, context);
|
|
604
604
|
let contents = {};
|
|
605
|
-
contents =
|
|
605
|
+
contents = de_CreateUsageLimitResponse(data, context);
|
|
606
606
|
const response = {
|
|
607
607
|
$metadata: deserializeMetadata(output),
|
|
608
608
|
...contents,
|
|
609
609
|
};
|
|
610
610
|
return Promise.resolve(response);
|
|
611
611
|
};
|
|
612
|
-
exports.
|
|
613
|
-
const
|
|
612
|
+
exports.de_CreateUsageLimitCommand = de_CreateUsageLimitCommand;
|
|
613
|
+
const de_CreateUsageLimitCommandError = async (output, context) => {
|
|
614
614
|
const parsedOutput = {
|
|
615
615
|
...output,
|
|
616
616
|
body: await parseErrorBody(output.body, context),
|
|
@@ -619,19 +619,19 @@ const deserializeAws_json1_1CreateUsageLimitCommandError = async (output, contex
|
|
|
619
619
|
switch (errorCode) {
|
|
620
620
|
case "ConflictException":
|
|
621
621
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
622
|
-
throw await
|
|
622
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
623
623
|
case "InternalServerException":
|
|
624
624
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
625
|
-
throw await
|
|
625
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
626
626
|
case "ResourceNotFoundException":
|
|
627
627
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
628
|
-
throw await
|
|
628
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
629
629
|
case "ServiceQuotaExceededException":
|
|
630
630
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
631
|
-
throw await
|
|
631
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
632
632
|
case "ValidationException":
|
|
633
633
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
634
|
-
throw await
|
|
634
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
635
635
|
default:
|
|
636
636
|
const parsedBody = parsedOutput.body;
|
|
637
637
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -642,21 +642,21 @@ const deserializeAws_json1_1CreateUsageLimitCommandError = async (output, contex
|
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
|
-
const
|
|
645
|
+
const de_CreateWorkgroupCommand = async (output, context) => {
|
|
646
646
|
if (output.statusCode >= 300) {
|
|
647
|
-
return
|
|
647
|
+
return de_CreateWorkgroupCommandError(output, context);
|
|
648
648
|
}
|
|
649
649
|
const data = await parseBody(output.body, context);
|
|
650
650
|
let contents = {};
|
|
651
|
-
contents =
|
|
651
|
+
contents = de_CreateWorkgroupResponse(data, context);
|
|
652
652
|
const response = {
|
|
653
653
|
$metadata: deserializeMetadata(output),
|
|
654
654
|
...contents,
|
|
655
655
|
};
|
|
656
656
|
return Promise.resolve(response);
|
|
657
657
|
};
|
|
658
|
-
exports.
|
|
659
|
-
const
|
|
658
|
+
exports.de_CreateWorkgroupCommand = de_CreateWorkgroupCommand;
|
|
659
|
+
const de_CreateWorkgroupCommandError = async (output, context) => {
|
|
660
660
|
const parsedOutput = {
|
|
661
661
|
...output,
|
|
662
662
|
body: await parseErrorBody(output.body, context),
|
|
@@ -665,22 +665,22 @@ const deserializeAws_json1_1CreateWorkgroupCommandError = async (output, context
|
|
|
665
665
|
switch (errorCode) {
|
|
666
666
|
case "ConflictException":
|
|
667
667
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
668
|
-
throw await
|
|
668
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
669
669
|
case "InsufficientCapacityException":
|
|
670
670
|
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
671
|
-
throw await
|
|
671
|
+
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
672
672
|
case "InternalServerException":
|
|
673
673
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
674
|
-
throw await
|
|
674
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
675
675
|
case "ResourceNotFoundException":
|
|
676
676
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
677
|
-
throw await
|
|
677
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
678
678
|
case "TooManyTagsException":
|
|
679
679
|
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
680
|
-
throw await
|
|
680
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
681
681
|
case "ValidationException":
|
|
682
682
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
683
|
-
throw await
|
|
683
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
684
|
default:
|
|
685
685
|
const parsedBody = parsedOutput.body;
|
|
686
686
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -691,21 +691,21 @@ const deserializeAws_json1_1CreateWorkgroupCommandError = async (output, context
|
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
693
|
};
|
|
694
|
-
const
|
|
694
|
+
const de_DeleteEndpointAccessCommand = async (output, context) => {
|
|
695
695
|
if (output.statusCode >= 300) {
|
|
696
|
-
return
|
|
696
|
+
return de_DeleteEndpointAccessCommandError(output, context);
|
|
697
697
|
}
|
|
698
698
|
const data = await parseBody(output.body, context);
|
|
699
699
|
let contents = {};
|
|
700
|
-
contents =
|
|
700
|
+
contents = de_DeleteEndpointAccessResponse(data, context);
|
|
701
701
|
const response = {
|
|
702
702
|
$metadata: deserializeMetadata(output),
|
|
703
703
|
...contents,
|
|
704
704
|
};
|
|
705
705
|
return Promise.resolve(response);
|
|
706
706
|
};
|
|
707
|
-
exports.
|
|
708
|
-
const
|
|
707
|
+
exports.de_DeleteEndpointAccessCommand = de_DeleteEndpointAccessCommand;
|
|
708
|
+
const de_DeleteEndpointAccessCommandError = async (output, context) => {
|
|
709
709
|
const parsedOutput = {
|
|
710
710
|
...output,
|
|
711
711
|
body: await parseErrorBody(output.body, context),
|
|
@@ -714,16 +714,16 @@ const deserializeAws_json1_1DeleteEndpointAccessCommandError = async (output, co
|
|
|
714
714
|
switch (errorCode) {
|
|
715
715
|
case "ConflictException":
|
|
716
716
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
717
|
-
throw await
|
|
717
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
718
718
|
case "InternalServerException":
|
|
719
719
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
720
|
-
throw await
|
|
720
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
721
721
|
case "ResourceNotFoundException":
|
|
722
722
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
723
|
-
throw await
|
|
723
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
724
724
|
case "ValidationException":
|
|
725
725
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
726
|
-
throw await
|
|
726
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
727
727
|
default:
|
|
728
728
|
const parsedBody = parsedOutput.body;
|
|
729
729
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -734,21 +734,21 @@ const deserializeAws_json1_1DeleteEndpointAccessCommandError = async (output, co
|
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
736
|
};
|
|
737
|
-
const
|
|
737
|
+
const de_DeleteNamespaceCommand = async (output, context) => {
|
|
738
738
|
if (output.statusCode >= 300) {
|
|
739
|
-
return
|
|
739
|
+
return de_DeleteNamespaceCommandError(output, context);
|
|
740
740
|
}
|
|
741
741
|
const data = await parseBody(output.body, context);
|
|
742
742
|
let contents = {};
|
|
743
|
-
contents =
|
|
743
|
+
contents = de_DeleteNamespaceResponse(data, context);
|
|
744
744
|
const response = {
|
|
745
745
|
$metadata: deserializeMetadata(output),
|
|
746
746
|
...contents,
|
|
747
747
|
};
|
|
748
748
|
return Promise.resolve(response);
|
|
749
749
|
};
|
|
750
|
-
exports.
|
|
751
|
-
const
|
|
750
|
+
exports.de_DeleteNamespaceCommand = de_DeleteNamespaceCommand;
|
|
751
|
+
const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
752
752
|
const parsedOutput = {
|
|
753
753
|
...output,
|
|
754
754
|
body: await parseErrorBody(output.body, context),
|
|
@@ -757,16 +757,16 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
757
757
|
switch (errorCode) {
|
|
758
758
|
case "ConflictException":
|
|
759
759
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
760
|
-
throw await
|
|
760
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
761
761
|
case "InternalServerException":
|
|
762
762
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
763
|
-
throw await
|
|
763
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
764
764
|
case "ResourceNotFoundException":
|
|
765
765
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
766
|
-
throw await
|
|
766
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
767
767
|
case "ValidationException":
|
|
768
768
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
769
|
-
throw await
|
|
769
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
770
770
|
default:
|
|
771
771
|
const parsedBody = parsedOutput.body;
|
|
772
772
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -777,21 +777,21 @@ const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context
|
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
const
|
|
780
|
+
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
781
781
|
if (output.statusCode >= 300) {
|
|
782
|
-
return
|
|
782
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
783
783
|
}
|
|
784
784
|
const data = await parseBody(output.body, context);
|
|
785
785
|
let contents = {};
|
|
786
|
-
contents =
|
|
786
|
+
contents = de_DeleteResourcePolicyResponse(data, context);
|
|
787
787
|
const response = {
|
|
788
788
|
$metadata: deserializeMetadata(output),
|
|
789
789
|
...contents,
|
|
790
790
|
};
|
|
791
791
|
return Promise.resolve(response);
|
|
792
792
|
};
|
|
793
|
-
exports.
|
|
794
|
-
const
|
|
793
|
+
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
794
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
795
795
|
const parsedOutput = {
|
|
796
796
|
...output,
|
|
797
797
|
body: await parseErrorBody(output.body, context),
|
|
@@ -800,13 +800,13 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
800
800
|
switch (errorCode) {
|
|
801
801
|
case "InternalServerException":
|
|
802
802
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
803
|
-
throw await
|
|
803
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
804
804
|
case "ResourceNotFoundException":
|
|
805
805
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
806
|
-
throw await
|
|
806
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
807
807
|
case "ValidationException":
|
|
808
808
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
809
|
-
throw await
|
|
809
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
810
810
|
default:
|
|
811
811
|
const parsedBody = parsedOutput.body;
|
|
812
812
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -817,21 +817,21 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
};
|
|
820
|
-
const
|
|
820
|
+
const de_DeleteSnapshotCommand = async (output, context) => {
|
|
821
821
|
if (output.statusCode >= 300) {
|
|
822
|
-
return
|
|
822
|
+
return de_DeleteSnapshotCommandError(output, context);
|
|
823
823
|
}
|
|
824
824
|
const data = await parseBody(output.body, context);
|
|
825
825
|
let contents = {};
|
|
826
|
-
contents =
|
|
826
|
+
contents = de_DeleteSnapshotResponse(data, context);
|
|
827
827
|
const response = {
|
|
828
828
|
$metadata: deserializeMetadata(output),
|
|
829
829
|
...contents,
|
|
830
830
|
};
|
|
831
831
|
return Promise.resolve(response);
|
|
832
832
|
};
|
|
833
|
-
exports.
|
|
834
|
-
const
|
|
833
|
+
exports.de_DeleteSnapshotCommand = de_DeleteSnapshotCommand;
|
|
834
|
+
const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
835
835
|
const parsedOutput = {
|
|
836
836
|
...output,
|
|
837
837
|
body: await parseErrorBody(output.body, context),
|
|
@@ -840,16 +840,16 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
840
840
|
switch (errorCode) {
|
|
841
841
|
case "ConflictException":
|
|
842
842
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
843
|
-
throw await
|
|
843
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
844
844
|
case "InternalServerException":
|
|
845
845
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
846
|
-
throw await
|
|
846
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
847
847
|
case "ResourceNotFoundException":
|
|
848
848
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
849
|
-
throw await
|
|
849
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
850
850
|
case "ValidationException":
|
|
851
851
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
852
|
-
throw await
|
|
852
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
853
853
|
default:
|
|
854
854
|
const parsedBody = parsedOutput.body;
|
|
855
855
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -860,21 +860,21 @@ const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context)
|
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
862
|
};
|
|
863
|
-
const
|
|
863
|
+
const de_DeleteUsageLimitCommand = async (output, context) => {
|
|
864
864
|
if (output.statusCode >= 300) {
|
|
865
|
-
return
|
|
865
|
+
return de_DeleteUsageLimitCommandError(output, context);
|
|
866
866
|
}
|
|
867
867
|
const data = await parseBody(output.body, context);
|
|
868
868
|
let contents = {};
|
|
869
|
-
contents =
|
|
869
|
+
contents = de_DeleteUsageLimitResponse(data, context);
|
|
870
870
|
const response = {
|
|
871
871
|
$metadata: deserializeMetadata(output),
|
|
872
872
|
...contents,
|
|
873
873
|
};
|
|
874
874
|
return Promise.resolve(response);
|
|
875
875
|
};
|
|
876
|
-
exports.
|
|
877
|
-
const
|
|
876
|
+
exports.de_DeleteUsageLimitCommand = de_DeleteUsageLimitCommand;
|
|
877
|
+
const de_DeleteUsageLimitCommandError = async (output, context) => {
|
|
878
878
|
const parsedOutput = {
|
|
879
879
|
...output,
|
|
880
880
|
body: await parseErrorBody(output.body, context),
|
|
@@ -883,16 +883,16 @@ const deserializeAws_json1_1DeleteUsageLimitCommandError = async (output, contex
|
|
|
883
883
|
switch (errorCode) {
|
|
884
884
|
case "ConflictException":
|
|
885
885
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
886
|
-
throw await
|
|
886
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
887
887
|
case "InternalServerException":
|
|
888
888
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
889
|
-
throw await
|
|
889
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
890
890
|
case "ResourceNotFoundException":
|
|
891
891
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
892
|
-
throw await
|
|
892
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
893
893
|
case "ValidationException":
|
|
894
894
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
895
|
-
throw await
|
|
895
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
896
896
|
default:
|
|
897
897
|
const parsedBody = parsedOutput.body;
|
|
898
898
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -903,21 +903,21 @@ const deserializeAws_json1_1DeleteUsageLimitCommandError = async (output, contex
|
|
|
903
903
|
});
|
|
904
904
|
}
|
|
905
905
|
};
|
|
906
|
-
const
|
|
906
|
+
const de_DeleteWorkgroupCommand = async (output, context) => {
|
|
907
907
|
if (output.statusCode >= 300) {
|
|
908
|
-
return
|
|
908
|
+
return de_DeleteWorkgroupCommandError(output, context);
|
|
909
909
|
}
|
|
910
910
|
const data = await parseBody(output.body, context);
|
|
911
911
|
let contents = {};
|
|
912
|
-
contents =
|
|
912
|
+
contents = de_DeleteWorkgroupResponse(data, context);
|
|
913
913
|
const response = {
|
|
914
914
|
$metadata: deserializeMetadata(output),
|
|
915
915
|
...contents,
|
|
916
916
|
};
|
|
917
917
|
return Promise.resolve(response);
|
|
918
918
|
};
|
|
919
|
-
exports.
|
|
920
|
-
const
|
|
919
|
+
exports.de_DeleteWorkgroupCommand = de_DeleteWorkgroupCommand;
|
|
920
|
+
const de_DeleteWorkgroupCommandError = async (output, context) => {
|
|
921
921
|
const parsedOutput = {
|
|
922
922
|
...output,
|
|
923
923
|
body: await parseErrorBody(output.body, context),
|
|
@@ -926,16 +926,16 @@ const deserializeAws_json1_1DeleteWorkgroupCommandError = async (output, context
|
|
|
926
926
|
switch (errorCode) {
|
|
927
927
|
case "ConflictException":
|
|
928
928
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
929
|
-
throw await
|
|
929
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
930
930
|
case "InternalServerException":
|
|
931
931
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
932
|
-
throw await
|
|
932
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
933
933
|
case "ResourceNotFoundException":
|
|
934
934
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
935
|
-
throw await
|
|
935
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
936
936
|
case "ValidationException":
|
|
937
937
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
938
|
-
throw await
|
|
938
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
939
939
|
default:
|
|
940
940
|
const parsedBody = parsedOutput.body;
|
|
941
941
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -946,21 +946,21 @@ const deserializeAws_json1_1DeleteWorkgroupCommandError = async (output, context
|
|
|
946
946
|
});
|
|
947
947
|
}
|
|
948
948
|
};
|
|
949
|
-
const
|
|
949
|
+
const de_GetCredentialsCommand = async (output, context) => {
|
|
950
950
|
if (output.statusCode >= 300) {
|
|
951
|
-
return
|
|
951
|
+
return de_GetCredentialsCommandError(output, context);
|
|
952
952
|
}
|
|
953
953
|
const data = await parseBody(output.body, context);
|
|
954
954
|
let contents = {};
|
|
955
|
-
contents =
|
|
955
|
+
contents = de_GetCredentialsResponse(data, context);
|
|
956
956
|
const response = {
|
|
957
957
|
$metadata: deserializeMetadata(output),
|
|
958
958
|
...contents,
|
|
959
959
|
};
|
|
960
960
|
return Promise.resolve(response);
|
|
961
961
|
};
|
|
962
|
-
exports.
|
|
963
|
-
const
|
|
962
|
+
exports.de_GetCredentialsCommand = de_GetCredentialsCommand;
|
|
963
|
+
const de_GetCredentialsCommandError = async (output, context) => {
|
|
964
964
|
const parsedOutput = {
|
|
965
965
|
...output,
|
|
966
966
|
body: await parseErrorBody(output.body, context),
|
|
@@ -969,13 +969,13 @@ const deserializeAws_json1_1GetCredentialsCommandError = async (output, context)
|
|
|
969
969
|
switch (errorCode) {
|
|
970
970
|
case "InternalServerException":
|
|
971
971
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
972
|
-
throw await
|
|
972
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
973
973
|
case "ResourceNotFoundException":
|
|
974
974
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
975
|
-
throw await
|
|
975
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
976
976
|
case "ValidationException":
|
|
977
977
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
978
|
-
throw await
|
|
978
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
979
979
|
default:
|
|
980
980
|
const parsedBody = parsedOutput.body;
|
|
981
981
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -986,21 +986,21 @@ const deserializeAws_json1_1GetCredentialsCommandError = async (output, context)
|
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
};
|
|
989
|
-
const
|
|
989
|
+
const de_GetEndpointAccessCommand = async (output, context) => {
|
|
990
990
|
if (output.statusCode >= 300) {
|
|
991
|
-
return
|
|
991
|
+
return de_GetEndpointAccessCommandError(output, context);
|
|
992
992
|
}
|
|
993
993
|
const data = await parseBody(output.body, context);
|
|
994
994
|
let contents = {};
|
|
995
|
-
contents =
|
|
995
|
+
contents = de_GetEndpointAccessResponse(data, context);
|
|
996
996
|
const response = {
|
|
997
997
|
$metadata: deserializeMetadata(output),
|
|
998
998
|
...contents,
|
|
999
999
|
};
|
|
1000
1000
|
return Promise.resolve(response);
|
|
1001
1001
|
};
|
|
1002
|
-
exports.
|
|
1003
|
-
const
|
|
1002
|
+
exports.de_GetEndpointAccessCommand = de_GetEndpointAccessCommand;
|
|
1003
|
+
const de_GetEndpointAccessCommandError = async (output, context) => {
|
|
1004
1004
|
const parsedOutput = {
|
|
1005
1005
|
...output,
|
|
1006
1006
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1009,16 +1009,16 @@ const deserializeAws_json1_1GetEndpointAccessCommandError = async (output, conte
|
|
|
1009
1009
|
switch (errorCode) {
|
|
1010
1010
|
case "ConflictException":
|
|
1011
1011
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1012
|
-
throw await
|
|
1012
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1013
1013
|
case "InternalServerException":
|
|
1014
1014
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1015
|
-
throw await
|
|
1015
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1016
1016
|
case "ResourceNotFoundException":
|
|
1017
1017
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1018
|
-
throw await
|
|
1018
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1019
1019
|
case "ValidationException":
|
|
1020
1020
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1021
|
-
throw await
|
|
1021
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1022
1022
|
default:
|
|
1023
1023
|
const parsedBody = parsedOutput.body;
|
|
1024
1024
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1029,21 +1029,21 @@ const deserializeAws_json1_1GetEndpointAccessCommandError = async (output, conte
|
|
|
1029
1029
|
});
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
|
-
const
|
|
1032
|
+
const de_GetNamespaceCommand = async (output, context) => {
|
|
1033
1033
|
if (output.statusCode >= 300) {
|
|
1034
|
-
return
|
|
1034
|
+
return de_GetNamespaceCommandError(output, context);
|
|
1035
1035
|
}
|
|
1036
1036
|
const data = await parseBody(output.body, context);
|
|
1037
1037
|
let contents = {};
|
|
1038
|
-
contents =
|
|
1038
|
+
contents = de_GetNamespaceResponse(data, context);
|
|
1039
1039
|
const response = {
|
|
1040
1040
|
$metadata: deserializeMetadata(output),
|
|
1041
1041
|
...contents,
|
|
1042
1042
|
};
|
|
1043
1043
|
return Promise.resolve(response);
|
|
1044
1044
|
};
|
|
1045
|
-
exports.
|
|
1046
|
-
const
|
|
1045
|
+
exports.de_GetNamespaceCommand = de_GetNamespaceCommand;
|
|
1046
|
+
const de_GetNamespaceCommandError = async (output, context) => {
|
|
1047
1047
|
const parsedOutput = {
|
|
1048
1048
|
...output,
|
|
1049
1049
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1052,13 +1052,13 @@ const deserializeAws_json1_1GetNamespaceCommandError = async (output, context) =
|
|
|
1052
1052
|
switch (errorCode) {
|
|
1053
1053
|
case "InternalServerException":
|
|
1054
1054
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1055
|
-
throw await
|
|
1055
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1056
1056
|
case "ResourceNotFoundException":
|
|
1057
1057
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1058
|
-
throw await
|
|
1058
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1059
1059
|
case "ValidationException":
|
|
1060
1060
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1061
|
-
throw await
|
|
1061
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1062
1062
|
default:
|
|
1063
1063
|
const parsedBody = parsedOutput.body;
|
|
1064
1064
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1069,21 +1069,21 @@ const deserializeAws_json1_1GetNamespaceCommandError = async (output, context) =
|
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
|
-
const
|
|
1072
|
+
const de_GetRecoveryPointCommand = async (output, context) => {
|
|
1073
1073
|
if (output.statusCode >= 300) {
|
|
1074
|
-
return
|
|
1074
|
+
return de_GetRecoveryPointCommandError(output, context);
|
|
1075
1075
|
}
|
|
1076
1076
|
const data = await parseBody(output.body, context);
|
|
1077
1077
|
let contents = {};
|
|
1078
|
-
contents =
|
|
1078
|
+
contents = de_GetRecoveryPointResponse(data, context);
|
|
1079
1079
|
const response = {
|
|
1080
1080
|
$metadata: deserializeMetadata(output),
|
|
1081
1081
|
...contents,
|
|
1082
1082
|
};
|
|
1083
1083
|
return Promise.resolve(response);
|
|
1084
1084
|
};
|
|
1085
|
-
exports.
|
|
1086
|
-
const
|
|
1085
|
+
exports.de_GetRecoveryPointCommand = de_GetRecoveryPointCommand;
|
|
1086
|
+
const de_GetRecoveryPointCommandError = async (output, context) => {
|
|
1087
1087
|
const parsedOutput = {
|
|
1088
1088
|
...output,
|
|
1089
1089
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1092,16 +1092,16 @@ const deserializeAws_json1_1GetRecoveryPointCommandError = async (output, contex
|
|
|
1092
1092
|
switch (errorCode) {
|
|
1093
1093
|
case "ConflictException":
|
|
1094
1094
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1095
|
-
throw await
|
|
1095
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1096
1096
|
case "InternalServerException":
|
|
1097
1097
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1098
|
-
throw await
|
|
1098
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1099
1099
|
case "ResourceNotFoundException":
|
|
1100
1100
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1101
|
-
throw await
|
|
1101
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1102
1102
|
case "ValidationException":
|
|
1103
1103
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1104
|
-
throw await
|
|
1104
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1105
1105
|
default:
|
|
1106
1106
|
const parsedBody = parsedOutput.body;
|
|
1107
1107
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1112,21 +1112,21 @@ const deserializeAws_json1_1GetRecoveryPointCommandError = async (output, contex
|
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
1114
|
};
|
|
1115
|
-
const
|
|
1115
|
+
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1116
1116
|
if (output.statusCode >= 300) {
|
|
1117
|
-
return
|
|
1117
|
+
return de_GetResourcePolicyCommandError(output, context);
|
|
1118
1118
|
}
|
|
1119
1119
|
const data = await parseBody(output.body, context);
|
|
1120
1120
|
let contents = {};
|
|
1121
|
-
contents =
|
|
1121
|
+
contents = de_GetResourcePolicyResponse(data, context);
|
|
1122
1122
|
const response = {
|
|
1123
1123
|
$metadata: deserializeMetadata(output),
|
|
1124
1124
|
...contents,
|
|
1125
1125
|
};
|
|
1126
1126
|
return Promise.resolve(response);
|
|
1127
1127
|
};
|
|
1128
|
-
exports.
|
|
1129
|
-
const
|
|
1128
|
+
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
1129
|
+
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1130
1130
|
const parsedOutput = {
|
|
1131
1131
|
...output,
|
|
1132
1132
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1135,13 +1135,13 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
1135
1135
|
switch (errorCode) {
|
|
1136
1136
|
case "InternalServerException":
|
|
1137
1137
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1138
|
-
throw await
|
|
1138
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1139
1139
|
case "ResourceNotFoundException":
|
|
1140
1140
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1141
|
-
throw await
|
|
1141
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1142
1142
|
case "ValidationException":
|
|
1143
1143
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1144
|
-
throw await
|
|
1144
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
1145
|
default:
|
|
1146
1146
|
const parsedBody = parsedOutput.body;
|
|
1147
1147
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1152,21 +1152,21 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
|
-
const
|
|
1155
|
+
const de_GetSnapshotCommand = async (output, context) => {
|
|
1156
1156
|
if (output.statusCode >= 300) {
|
|
1157
|
-
return
|
|
1157
|
+
return de_GetSnapshotCommandError(output, context);
|
|
1158
1158
|
}
|
|
1159
1159
|
const data = await parseBody(output.body, context);
|
|
1160
1160
|
let contents = {};
|
|
1161
|
-
contents =
|
|
1161
|
+
contents = de_GetSnapshotResponse(data, context);
|
|
1162
1162
|
const response = {
|
|
1163
1163
|
$metadata: deserializeMetadata(output),
|
|
1164
1164
|
...contents,
|
|
1165
1165
|
};
|
|
1166
1166
|
return Promise.resolve(response);
|
|
1167
1167
|
};
|
|
1168
|
-
exports.
|
|
1169
|
-
const
|
|
1168
|
+
exports.de_GetSnapshotCommand = de_GetSnapshotCommand;
|
|
1169
|
+
const de_GetSnapshotCommandError = async (output, context) => {
|
|
1170
1170
|
const parsedOutput = {
|
|
1171
1171
|
...output,
|
|
1172
1172
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1175,13 +1175,13 @@ const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) =>
|
|
|
1175
1175
|
switch (errorCode) {
|
|
1176
1176
|
case "InternalServerException":
|
|
1177
1177
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1178
|
-
throw await
|
|
1178
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1179
1179
|
case "ResourceNotFoundException":
|
|
1180
1180
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1181
|
-
throw await
|
|
1181
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1182
1182
|
case "ValidationException":
|
|
1183
1183
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1184
|
-
throw await
|
|
1184
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1185
1185
|
default:
|
|
1186
1186
|
const parsedBody = parsedOutput.body;
|
|
1187
1187
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1192,21 +1192,21 @@ const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) =>
|
|
|
1192
1192
|
});
|
|
1193
1193
|
}
|
|
1194
1194
|
};
|
|
1195
|
-
const
|
|
1195
|
+
const de_GetTableRestoreStatusCommand = async (output, context) => {
|
|
1196
1196
|
if (output.statusCode >= 300) {
|
|
1197
|
-
return
|
|
1197
|
+
return de_GetTableRestoreStatusCommandError(output, context);
|
|
1198
1198
|
}
|
|
1199
1199
|
const data = await parseBody(output.body, context);
|
|
1200
1200
|
let contents = {};
|
|
1201
|
-
contents =
|
|
1201
|
+
contents = de_GetTableRestoreStatusResponse(data, context);
|
|
1202
1202
|
const response = {
|
|
1203
1203
|
$metadata: deserializeMetadata(output),
|
|
1204
1204
|
...contents,
|
|
1205
1205
|
};
|
|
1206
1206
|
return Promise.resolve(response);
|
|
1207
1207
|
};
|
|
1208
|
-
exports.
|
|
1209
|
-
const
|
|
1208
|
+
exports.de_GetTableRestoreStatusCommand = de_GetTableRestoreStatusCommand;
|
|
1209
|
+
const de_GetTableRestoreStatusCommandError = async (output, context) => {
|
|
1210
1210
|
const parsedOutput = {
|
|
1211
1211
|
...output,
|
|
1212
1212
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1215,10 +1215,10 @@ const deserializeAws_json1_1GetTableRestoreStatusCommandError = async (output, c
|
|
|
1215
1215
|
switch (errorCode) {
|
|
1216
1216
|
case "ResourceNotFoundException":
|
|
1217
1217
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1218
|
-
throw await
|
|
1218
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1219
1219
|
case "ValidationException":
|
|
1220
1220
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1221
|
-
throw await
|
|
1221
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1222
1222
|
default:
|
|
1223
1223
|
const parsedBody = parsedOutput.body;
|
|
1224
1224
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1229,21 +1229,21 @@ const deserializeAws_json1_1GetTableRestoreStatusCommandError = async (output, c
|
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
1231
|
};
|
|
1232
|
-
const
|
|
1232
|
+
const de_GetUsageLimitCommand = async (output, context) => {
|
|
1233
1233
|
if (output.statusCode >= 300) {
|
|
1234
|
-
return
|
|
1234
|
+
return de_GetUsageLimitCommandError(output, context);
|
|
1235
1235
|
}
|
|
1236
1236
|
const data = await parseBody(output.body, context);
|
|
1237
1237
|
let contents = {};
|
|
1238
|
-
contents =
|
|
1238
|
+
contents = de_GetUsageLimitResponse(data, context);
|
|
1239
1239
|
const response = {
|
|
1240
1240
|
$metadata: deserializeMetadata(output),
|
|
1241
1241
|
...contents,
|
|
1242
1242
|
};
|
|
1243
1243
|
return Promise.resolve(response);
|
|
1244
1244
|
};
|
|
1245
|
-
exports.
|
|
1246
|
-
const
|
|
1245
|
+
exports.de_GetUsageLimitCommand = de_GetUsageLimitCommand;
|
|
1246
|
+
const de_GetUsageLimitCommandError = async (output, context) => {
|
|
1247
1247
|
const parsedOutput = {
|
|
1248
1248
|
...output,
|
|
1249
1249
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1252,16 +1252,16 @@ const deserializeAws_json1_1GetUsageLimitCommandError = async (output, context)
|
|
|
1252
1252
|
switch (errorCode) {
|
|
1253
1253
|
case "ConflictException":
|
|
1254
1254
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1255
|
-
throw await
|
|
1255
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1256
1256
|
case "InternalServerException":
|
|
1257
1257
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1258
|
-
throw await
|
|
1258
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1259
1259
|
case "ResourceNotFoundException":
|
|
1260
1260
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1261
|
-
throw await
|
|
1261
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1262
1262
|
case "ValidationException":
|
|
1263
1263
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1264
|
-
throw await
|
|
1264
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1265
1265
|
default:
|
|
1266
1266
|
const parsedBody = parsedOutput.body;
|
|
1267
1267
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1272,21 +1272,21 @@ const deserializeAws_json1_1GetUsageLimitCommandError = async (output, context)
|
|
|
1272
1272
|
});
|
|
1273
1273
|
}
|
|
1274
1274
|
};
|
|
1275
|
-
const
|
|
1275
|
+
const de_GetWorkgroupCommand = async (output, context) => {
|
|
1276
1276
|
if (output.statusCode >= 300) {
|
|
1277
|
-
return
|
|
1277
|
+
return de_GetWorkgroupCommandError(output, context);
|
|
1278
1278
|
}
|
|
1279
1279
|
const data = await parseBody(output.body, context);
|
|
1280
1280
|
let contents = {};
|
|
1281
|
-
contents =
|
|
1281
|
+
contents = de_GetWorkgroupResponse(data, context);
|
|
1282
1282
|
const response = {
|
|
1283
1283
|
$metadata: deserializeMetadata(output),
|
|
1284
1284
|
...contents,
|
|
1285
1285
|
};
|
|
1286
1286
|
return Promise.resolve(response);
|
|
1287
1287
|
};
|
|
1288
|
-
exports.
|
|
1289
|
-
const
|
|
1288
|
+
exports.de_GetWorkgroupCommand = de_GetWorkgroupCommand;
|
|
1289
|
+
const de_GetWorkgroupCommandError = async (output, context) => {
|
|
1290
1290
|
const parsedOutput = {
|
|
1291
1291
|
...output,
|
|
1292
1292
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1295,13 +1295,13 @@ const deserializeAws_json1_1GetWorkgroupCommandError = async (output, context) =
|
|
|
1295
1295
|
switch (errorCode) {
|
|
1296
1296
|
case "InternalServerException":
|
|
1297
1297
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1298
|
-
throw await
|
|
1298
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1299
1299
|
case "ResourceNotFoundException":
|
|
1300
1300
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1301
|
-
throw await
|
|
1301
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1302
1302
|
case "ValidationException":
|
|
1303
1303
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1304
|
-
throw await
|
|
1304
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1305
1305
|
default:
|
|
1306
1306
|
const parsedBody = parsedOutput.body;
|
|
1307
1307
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1312,21 +1312,21 @@ const deserializeAws_json1_1GetWorkgroupCommandError = async (output, context) =
|
|
|
1312
1312
|
});
|
|
1313
1313
|
}
|
|
1314
1314
|
};
|
|
1315
|
-
const
|
|
1315
|
+
const de_ListEndpointAccessCommand = async (output, context) => {
|
|
1316
1316
|
if (output.statusCode >= 300) {
|
|
1317
|
-
return
|
|
1317
|
+
return de_ListEndpointAccessCommandError(output, context);
|
|
1318
1318
|
}
|
|
1319
1319
|
const data = await parseBody(output.body, context);
|
|
1320
1320
|
let contents = {};
|
|
1321
|
-
contents =
|
|
1321
|
+
contents = de_ListEndpointAccessResponse(data, context);
|
|
1322
1322
|
const response = {
|
|
1323
1323
|
$metadata: deserializeMetadata(output),
|
|
1324
1324
|
...contents,
|
|
1325
1325
|
};
|
|
1326
1326
|
return Promise.resolve(response);
|
|
1327
1327
|
};
|
|
1328
|
-
exports.
|
|
1329
|
-
const
|
|
1328
|
+
exports.de_ListEndpointAccessCommand = de_ListEndpointAccessCommand;
|
|
1329
|
+
const de_ListEndpointAccessCommandError = async (output, context) => {
|
|
1330
1330
|
const parsedOutput = {
|
|
1331
1331
|
...output,
|
|
1332
1332
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1335,16 +1335,16 @@ const deserializeAws_json1_1ListEndpointAccessCommandError = async (output, cont
|
|
|
1335
1335
|
switch (errorCode) {
|
|
1336
1336
|
case "ConflictException":
|
|
1337
1337
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1338
|
-
throw await
|
|
1338
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1339
1339
|
case "InternalServerException":
|
|
1340
1340
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1341
|
-
throw await
|
|
1341
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1342
1342
|
case "ResourceNotFoundException":
|
|
1343
1343
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1344
|
-
throw await
|
|
1344
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1345
1345
|
case "ValidationException":
|
|
1346
1346
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1347
|
-
throw await
|
|
1347
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1348
1348
|
default:
|
|
1349
1349
|
const parsedBody = parsedOutput.body;
|
|
1350
1350
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1355,21 +1355,21 @@ const deserializeAws_json1_1ListEndpointAccessCommandError = async (output, cont
|
|
|
1355
1355
|
});
|
|
1356
1356
|
}
|
|
1357
1357
|
};
|
|
1358
|
-
const
|
|
1358
|
+
const de_ListNamespacesCommand = async (output, context) => {
|
|
1359
1359
|
if (output.statusCode >= 300) {
|
|
1360
|
-
return
|
|
1360
|
+
return de_ListNamespacesCommandError(output, context);
|
|
1361
1361
|
}
|
|
1362
1362
|
const data = await parseBody(output.body, context);
|
|
1363
1363
|
let contents = {};
|
|
1364
|
-
contents =
|
|
1364
|
+
contents = de_ListNamespacesResponse(data, context);
|
|
1365
1365
|
const response = {
|
|
1366
1366
|
$metadata: deserializeMetadata(output),
|
|
1367
1367
|
...contents,
|
|
1368
1368
|
};
|
|
1369
1369
|
return Promise.resolve(response);
|
|
1370
1370
|
};
|
|
1371
|
-
exports.
|
|
1372
|
-
const
|
|
1371
|
+
exports.de_ListNamespacesCommand = de_ListNamespacesCommand;
|
|
1372
|
+
const de_ListNamespacesCommandError = async (output, context) => {
|
|
1373
1373
|
const parsedOutput = {
|
|
1374
1374
|
...output,
|
|
1375
1375
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1378,10 +1378,10 @@ const deserializeAws_json1_1ListNamespacesCommandError = async (output, context)
|
|
|
1378
1378
|
switch (errorCode) {
|
|
1379
1379
|
case "InternalServerException":
|
|
1380
1380
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1381
|
-
throw await
|
|
1381
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1382
1382
|
case "ValidationException":
|
|
1383
1383
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1384
|
-
throw await
|
|
1384
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1385
1385
|
default:
|
|
1386
1386
|
const parsedBody = parsedOutput.body;
|
|
1387
1387
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1392,21 +1392,21 @@ const deserializeAws_json1_1ListNamespacesCommandError = async (output, context)
|
|
|
1392
1392
|
});
|
|
1393
1393
|
}
|
|
1394
1394
|
};
|
|
1395
|
-
const
|
|
1395
|
+
const de_ListRecoveryPointsCommand = async (output, context) => {
|
|
1396
1396
|
if (output.statusCode >= 300) {
|
|
1397
|
-
return
|
|
1397
|
+
return de_ListRecoveryPointsCommandError(output, context);
|
|
1398
1398
|
}
|
|
1399
1399
|
const data = await parseBody(output.body, context);
|
|
1400
1400
|
let contents = {};
|
|
1401
|
-
contents =
|
|
1401
|
+
contents = de_ListRecoveryPointsResponse(data, context);
|
|
1402
1402
|
const response = {
|
|
1403
1403
|
$metadata: deserializeMetadata(output),
|
|
1404
1404
|
...contents,
|
|
1405
1405
|
};
|
|
1406
1406
|
return Promise.resolve(response);
|
|
1407
1407
|
};
|
|
1408
|
-
exports.
|
|
1409
|
-
const
|
|
1408
|
+
exports.de_ListRecoveryPointsCommand = de_ListRecoveryPointsCommand;
|
|
1409
|
+
const de_ListRecoveryPointsCommandError = async (output, context) => {
|
|
1410
1410
|
const parsedOutput = {
|
|
1411
1411
|
...output,
|
|
1412
1412
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1415,10 +1415,10 @@ const deserializeAws_json1_1ListRecoveryPointsCommandError = async (output, cont
|
|
|
1415
1415
|
switch (errorCode) {
|
|
1416
1416
|
case "InternalServerException":
|
|
1417
1417
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1418
|
-
throw await
|
|
1418
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1419
1419
|
case "ValidationException":
|
|
1420
1420
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1421
|
-
throw await
|
|
1421
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1422
1422
|
default:
|
|
1423
1423
|
const parsedBody = parsedOutput.body;
|
|
1424
1424
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1429,21 +1429,21 @@ const deserializeAws_json1_1ListRecoveryPointsCommandError = async (output, cont
|
|
|
1429
1429
|
});
|
|
1430
1430
|
}
|
|
1431
1431
|
};
|
|
1432
|
-
const
|
|
1432
|
+
const de_ListSnapshotsCommand = async (output, context) => {
|
|
1433
1433
|
if (output.statusCode >= 300) {
|
|
1434
|
-
return
|
|
1434
|
+
return de_ListSnapshotsCommandError(output, context);
|
|
1435
1435
|
}
|
|
1436
1436
|
const data = await parseBody(output.body, context);
|
|
1437
1437
|
let contents = {};
|
|
1438
|
-
contents =
|
|
1438
|
+
contents = de_ListSnapshotsResponse(data, context);
|
|
1439
1439
|
const response = {
|
|
1440
1440
|
$metadata: deserializeMetadata(output),
|
|
1441
1441
|
...contents,
|
|
1442
1442
|
};
|
|
1443
1443
|
return Promise.resolve(response);
|
|
1444
1444
|
};
|
|
1445
|
-
exports.
|
|
1446
|
-
const
|
|
1445
|
+
exports.de_ListSnapshotsCommand = de_ListSnapshotsCommand;
|
|
1446
|
+
const de_ListSnapshotsCommandError = async (output, context) => {
|
|
1447
1447
|
const parsedOutput = {
|
|
1448
1448
|
...output,
|
|
1449
1449
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1452,13 +1452,13 @@ const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context)
|
|
|
1452
1452
|
switch (errorCode) {
|
|
1453
1453
|
case "InternalServerException":
|
|
1454
1454
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1455
|
-
throw await
|
|
1455
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1456
1456
|
case "ResourceNotFoundException":
|
|
1457
1457
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1458
|
-
throw await
|
|
1458
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1459
1459
|
case "ValidationException":
|
|
1460
1460
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1461
|
-
throw await
|
|
1461
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1462
1462
|
default:
|
|
1463
1463
|
const parsedBody = parsedOutput.body;
|
|
1464
1464
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1469,21 +1469,21 @@ const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context)
|
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
};
|
|
1472
|
-
const
|
|
1472
|
+
const de_ListTableRestoreStatusCommand = async (output, context) => {
|
|
1473
1473
|
if (output.statusCode >= 300) {
|
|
1474
|
-
return
|
|
1474
|
+
return de_ListTableRestoreStatusCommandError(output, context);
|
|
1475
1475
|
}
|
|
1476
1476
|
const data = await parseBody(output.body, context);
|
|
1477
1477
|
let contents = {};
|
|
1478
|
-
contents =
|
|
1478
|
+
contents = de_ListTableRestoreStatusResponse(data, context);
|
|
1479
1479
|
const response = {
|
|
1480
1480
|
$metadata: deserializeMetadata(output),
|
|
1481
1481
|
...contents,
|
|
1482
1482
|
};
|
|
1483
1483
|
return Promise.resolve(response);
|
|
1484
1484
|
};
|
|
1485
|
-
exports.
|
|
1486
|
-
const
|
|
1485
|
+
exports.de_ListTableRestoreStatusCommand = de_ListTableRestoreStatusCommand;
|
|
1486
|
+
const de_ListTableRestoreStatusCommandError = async (output, context) => {
|
|
1487
1487
|
const parsedOutput = {
|
|
1488
1488
|
...output,
|
|
1489
1489
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1492,13 +1492,13 @@ const deserializeAws_json1_1ListTableRestoreStatusCommandError = async (output,
|
|
|
1492
1492
|
switch (errorCode) {
|
|
1493
1493
|
case "InvalidPaginationException":
|
|
1494
1494
|
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1495
|
-
throw await
|
|
1495
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1496
1496
|
case "ResourceNotFoundException":
|
|
1497
1497
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1498
|
-
throw await
|
|
1498
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1499
1499
|
case "ValidationException":
|
|
1500
1500
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1501
|
-
throw await
|
|
1501
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1502
1502
|
default:
|
|
1503
1503
|
const parsedBody = parsedOutput.body;
|
|
1504
1504
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1509,21 +1509,21 @@ const deserializeAws_json1_1ListTableRestoreStatusCommandError = async (output,
|
|
|
1509
1509
|
});
|
|
1510
1510
|
}
|
|
1511
1511
|
};
|
|
1512
|
-
const
|
|
1512
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1513
1513
|
if (output.statusCode >= 300) {
|
|
1514
|
-
return
|
|
1514
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1515
1515
|
}
|
|
1516
1516
|
const data = await parseBody(output.body, context);
|
|
1517
1517
|
let contents = {};
|
|
1518
|
-
contents =
|
|
1518
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
1519
1519
|
const response = {
|
|
1520
1520
|
$metadata: deserializeMetadata(output),
|
|
1521
1521
|
...contents,
|
|
1522
1522
|
};
|
|
1523
1523
|
return Promise.resolve(response);
|
|
1524
1524
|
};
|
|
1525
|
-
exports.
|
|
1526
|
-
const
|
|
1525
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1526
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1527
1527
|
const parsedOutput = {
|
|
1528
1528
|
...output,
|
|
1529
1529
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1532,16 +1532,16 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1532
1532
|
switch (errorCode) {
|
|
1533
1533
|
case "InternalServerException":
|
|
1534
1534
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1535
|
-
throw await
|
|
1535
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1536
1536
|
case "ResourceNotFoundException":
|
|
1537
1537
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1538
|
-
throw await
|
|
1538
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1539
1539
|
case "ThrottlingException":
|
|
1540
1540
|
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1541
|
-
throw await
|
|
1541
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1542
1542
|
case "ValidationException":
|
|
1543
1543
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1544
|
-
throw await
|
|
1544
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1545
1545
|
default:
|
|
1546
1546
|
const parsedBody = parsedOutput.body;
|
|
1547
1547
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1552,21 +1552,21 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1552
1552
|
});
|
|
1553
1553
|
}
|
|
1554
1554
|
};
|
|
1555
|
-
const
|
|
1555
|
+
const de_ListUsageLimitsCommand = async (output, context) => {
|
|
1556
1556
|
if (output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1557
|
+
return de_ListUsageLimitsCommandError(output, context);
|
|
1558
1558
|
}
|
|
1559
1559
|
const data = await parseBody(output.body, context);
|
|
1560
1560
|
let contents = {};
|
|
1561
|
-
contents =
|
|
1561
|
+
contents = de_ListUsageLimitsResponse(data, context);
|
|
1562
1562
|
const response = {
|
|
1563
1563
|
$metadata: deserializeMetadata(output),
|
|
1564
1564
|
...contents,
|
|
1565
1565
|
};
|
|
1566
1566
|
return Promise.resolve(response);
|
|
1567
1567
|
};
|
|
1568
|
-
exports.
|
|
1569
|
-
const
|
|
1568
|
+
exports.de_ListUsageLimitsCommand = de_ListUsageLimitsCommand;
|
|
1569
|
+
const de_ListUsageLimitsCommandError = async (output, context) => {
|
|
1570
1570
|
const parsedOutput = {
|
|
1571
1571
|
...output,
|
|
1572
1572
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1575,19 +1575,19 @@ const deserializeAws_json1_1ListUsageLimitsCommandError = async (output, context
|
|
|
1575
1575
|
switch (errorCode) {
|
|
1576
1576
|
case "ConflictException":
|
|
1577
1577
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1578
|
-
throw await
|
|
1578
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1579
1579
|
case "InternalServerException":
|
|
1580
1580
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1581
|
-
throw await
|
|
1581
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1582
1582
|
case "InvalidPaginationException":
|
|
1583
1583
|
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1584
|
-
throw await
|
|
1584
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1585
1585
|
case "ResourceNotFoundException":
|
|
1586
1586
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1587
|
-
throw await
|
|
1587
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1588
1588
|
case "ValidationException":
|
|
1589
1589
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1590
|
-
throw await
|
|
1590
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1591
1591
|
default:
|
|
1592
1592
|
const parsedBody = parsedOutput.body;
|
|
1593
1593
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1598,21 +1598,21 @@ const deserializeAws_json1_1ListUsageLimitsCommandError = async (output, context
|
|
|
1598
1598
|
});
|
|
1599
1599
|
}
|
|
1600
1600
|
};
|
|
1601
|
-
const
|
|
1601
|
+
const de_ListWorkgroupsCommand = async (output, context) => {
|
|
1602
1602
|
if (output.statusCode >= 300) {
|
|
1603
|
-
return
|
|
1603
|
+
return de_ListWorkgroupsCommandError(output, context);
|
|
1604
1604
|
}
|
|
1605
1605
|
const data = await parseBody(output.body, context);
|
|
1606
1606
|
let contents = {};
|
|
1607
|
-
contents =
|
|
1607
|
+
contents = de_ListWorkgroupsResponse(data, context);
|
|
1608
1608
|
const response = {
|
|
1609
1609
|
$metadata: deserializeMetadata(output),
|
|
1610
1610
|
...contents,
|
|
1611
1611
|
};
|
|
1612
1612
|
return Promise.resolve(response);
|
|
1613
1613
|
};
|
|
1614
|
-
exports.
|
|
1615
|
-
const
|
|
1614
|
+
exports.de_ListWorkgroupsCommand = de_ListWorkgroupsCommand;
|
|
1615
|
+
const de_ListWorkgroupsCommandError = async (output, context) => {
|
|
1616
1616
|
const parsedOutput = {
|
|
1617
1617
|
...output,
|
|
1618
1618
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1621,10 +1621,10 @@ const deserializeAws_json1_1ListWorkgroupsCommandError = async (output, context)
|
|
|
1621
1621
|
switch (errorCode) {
|
|
1622
1622
|
case "InternalServerException":
|
|
1623
1623
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1624
|
-
throw await
|
|
1624
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1625
1625
|
case "ValidationException":
|
|
1626
1626
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1627
|
-
throw await
|
|
1627
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1628
1628
|
default:
|
|
1629
1629
|
const parsedBody = parsedOutput.body;
|
|
1630
1630
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1635,21 +1635,21 @@ const deserializeAws_json1_1ListWorkgroupsCommandError = async (output, context)
|
|
|
1635
1635
|
});
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
|
-
const
|
|
1638
|
+
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1639
1639
|
if (output.statusCode >= 300) {
|
|
1640
|
-
return
|
|
1640
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
1641
1641
|
}
|
|
1642
1642
|
const data = await parseBody(output.body, context);
|
|
1643
1643
|
let contents = {};
|
|
1644
|
-
contents =
|
|
1644
|
+
contents = de_PutResourcePolicyResponse(data, context);
|
|
1645
1645
|
const response = {
|
|
1646
1646
|
$metadata: deserializeMetadata(output),
|
|
1647
1647
|
...contents,
|
|
1648
1648
|
};
|
|
1649
1649
|
return Promise.resolve(response);
|
|
1650
1650
|
};
|
|
1651
|
-
exports.
|
|
1652
|
-
const
|
|
1651
|
+
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
1652
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1653
1653
|
const parsedOutput = {
|
|
1654
1654
|
...output,
|
|
1655
1655
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1658,19 +1658,19 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1658
1658
|
switch (errorCode) {
|
|
1659
1659
|
case "ConflictException":
|
|
1660
1660
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1661
|
-
throw await
|
|
1661
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1662
1662
|
case "InternalServerException":
|
|
1663
1663
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1664
|
-
throw await
|
|
1664
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1665
1665
|
case "ResourceNotFoundException":
|
|
1666
1666
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1667
|
-
throw await
|
|
1667
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1668
1668
|
case "ServiceQuotaExceededException":
|
|
1669
1669
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
1670
|
-
throw await
|
|
1670
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1671
1671
|
case "ValidationException":
|
|
1672
1672
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1673
|
-
throw await
|
|
1673
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1674
1674
|
default:
|
|
1675
1675
|
const parsedBody = parsedOutput.body;
|
|
1676
1676
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1681,21 +1681,21 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1681
1681
|
});
|
|
1682
1682
|
}
|
|
1683
1683
|
};
|
|
1684
|
-
const
|
|
1684
|
+
const de_RestoreFromRecoveryPointCommand = async (output, context) => {
|
|
1685
1685
|
if (output.statusCode >= 300) {
|
|
1686
|
-
return
|
|
1686
|
+
return de_RestoreFromRecoveryPointCommandError(output, context);
|
|
1687
1687
|
}
|
|
1688
1688
|
const data = await parseBody(output.body, context);
|
|
1689
1689
|
let contents = {};
|
|
1690
|
-
contents =
|
|
1690
|
+
contents = de_RestoreFromRecoveryPointResponse(data, context);
|
|
1691
1691
|
const response = {
|
|
1692
1692
|
$metadata: deserializeMetadata(output),
|
|
1693
1693
|
...contents,
|
|
1694
1694
|
};
|
|
1695
1695
|
return Promise.resolve(response);
|
|
1696
1696
|
};
|
|
1697
|
-
exports.
|
|
1698
|
-
const
|
|
1697
|
+
exports.de_RestoreFromRecoveryPointCommand = de_RestoreFromRecoveryPointCommand;
|
|
1698
|
+
const de_RestoreFromRecoveryPointCommandError = async (output, context) => {
|
|
1699
1699
|
const parsedOutput = {
|
|
1700
1700
|
...output,
|
|
1701
1701
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1704,16 +1704,16 @@ const deserializeAws_json1_1RestoreFromRecoveryPointCommandError = async (output
|
|
|
1704
1704
|
switch (errorCode) {
|
|
1705
1705
|
case "ConflictException":
|
|
1706
1706
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1707
|
-
throw await
|
|
1707
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1708
1708
|
case "InternalServerException":
|
|
1709
1709
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1710
|
-
throw await
|
|
1710
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1711
1711
|
case "ResourceNotFoundException":
|
|
1712
1712
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1713
|
-
throw await
|
|
1713
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1714
1714
|
case "ValidationException":
|
|
1715
1715
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1716
|
-
throw await
|
|
1716
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1717
1717
|
default:
|
|
1718
1718
|
const parsedBody = parsedOutput.body;
|
|
1719
1719
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1724,21 +1724,21 @@ const deserializeAws_json1_1RestoreFromRecoveryPointCommandError = async (output
|
|
|
1724
1724
|
});
|
|
1725
1725
|
}
|
|
1726
1726
|
};
|
|
1727
|
-
const
|
|
1727
|
+
const de_RestoreFromSnapshotCommand = async (output, context) => {
|
|
1728
1728
|
if (output.statusCode >= 300) {
|
|
1729
|
-
return
|
|
1729
|
+
return de_RestoreFromSnapshotCommandError(output, context);
|
|
1730
1730
|
}
|
|
1731
1731
|
const data = await parseBody(output.body, context);
|
|
1732
1732
|
let contents = {};
|
|
1733
|
-
contents =
|
|
1733
|
+
contents = de_RestoreFromSnapshotResponse(data, context);
|
|
1734
1734
|
const response = {
|
|
1735
1735
|
$metadata: deserializeMetadata(output),
|
|
1736
1736
|
...contents,
|
|
1737
1737
|
};
|
|
1738
1738
|
return Promise.resolve(response);
|
|
1739
1739
|
};
|
|
1740
|
-
exports.
|
|
1741
|
-
const
|
|
1740
|
+
exports.de_RestoreFromSnapshotCommand = de_RestoreFromSnapshotCommand;
|
|
1741
|
+
const de_RestoreFromSnapshotCommandError = async (output, context) => {
|
|
1742
1742
|
const parsedOutput = {
|
|
1743
1743
|
...output,
|
|
1744
1744
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1747,19 +1747,19 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
1747
1747
|
switch (errorCode) {
|
|
1748
1748
|
case "ConflictException":
|
|
1749
1749
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1750
|
-
throw await
|
|
1750
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1751
1751
|
case "InternalServerException":
|
|
1752
1752
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1753
|
-
throw await
|
|
1753
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1754
1754
|
case "ResourceNotFoundException":
|
|
1755
1755
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1756
|
-
throw await
|
|
1756
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1757
1757
|
case "ServiceQuotaExceededException":
|
|
1758
1758
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
1759
|
-
throw await
|
|
1759
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1760
1760
|
case "ValidationException":
|
|
1761
1761
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1762
|
-
throw await
|
|
1762
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1763
1763
|
default:
|
|
1764
1764
|
const parsedBody = parsedOutput.body;
|
|
1765
1765
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1770,21 +1770,21 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
1770
1770
|
});
|
|
1771
1771
|
}
|
|
1772
1772
|
};
|
|
1773
|
-
const
|
|
1773
|
+
const de_RestoreTableFromSnapshotCommand = async (output, context) => {
|
|
1774
1774
|
if (output.statusCode >= 300) {
|
|
1775
|
-
return
|
|
1775
|
+
return de_RestoreTableFromSnapshotCommandError(output, context);
|
|
1776
1776
|
}
|
|
1777
1777
|
const data = await parseBody(output.body, context);
|
|
1778
1778
|
let contents = {};
|
|
1779
|
-
contents =
|
|
1779
|
+
contents = de_RestoreTableFromSnapshotResponse(data, context);
|
|
1780
1780
|
const response = {
|
|
1781
1781
|
$metadata: deserializeMetadata(output),
|
|
1782
1782
|
...contents,
|
|
1783
1783
|
};
|
|
1784
1784
|
return Promise.resolve(response);
|
|
1785
1785
|
};
|
|
1786
|
-
exports.
|
|
1787
|
-
const
|
|
1786
|
+
exports.de_RestoreTableFromSnapshotCommand = de_RestoreTableFromSnapshotCommand;
|
|
1787
|
+
const de_RestoreTableFromSnapshotCommandError = async (output, context) => {
|
|
1788
1788
|
const parsedOutput = {
|
|
1789
1789
|
...output,
|
|
1790
1790
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1793,16 +1793,16 @@ const deserializeAws_json1_1RestoreTableFromSnapshotCommandError = async (output
|
|
|
1793
1793
|
switch (errorCode) {
|
|
1794
1794
|
case "ConflictException":
|
|
1795
1795
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1796
|
-
throw await
|
|
1796
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1797
1797
|
case "InternalServerException":
|
|
1798
1798
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1799
|
-
throw await
|
|
1799
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1800
1800
|
case "ResourceNotFoundException":
|
|
1801
1801
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1802
|
-
throw await
|
|
1802
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1803
1803
|
case "ValidationException":
|
|
1804
1804
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1805
|
-
throw await
|
|
1805
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1806
1806
|
default:
|
|
1807
1807
|
const parsedBody = parsedOutput.body;
|
|
1808
1808
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1813,21 +1813,21 @@ const deserializeAws_json1_1RestoreTableFromSnapshotCommandError = async (output
|
|
|
1813
1813
|
});
|
|
1814
1814
|
}
|
|
1815
1815
|
};
|
|
1816
|
-
const
|
|
1816
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1817
1817
|
if (output.statusCode >= 300) {
|
|
1818
|
-
return
|
|
1818
|
+
return de_TagResourceCommandError(output, context);
|
|
1819
1819
|
}
|
|
1820
1820
|
const data = await parseBody(output.body, context);
|
|
1821
1821
|
let contents = {};
|
|
1822
|
-
contents =
|
|
1822
|
+
contents = de_TagResourceResponse(data, context);
|
|
1823
1823
|
const response = {
|
|
1824
1824
|
$metadata: deserializeMetadata(output),
|
|
1825
1825
|
...contents,
|
|
1826
1826
|
};
|
|
1827
1827
|
return Promise.resolve(response);
|
|
1828
1828
|
};
|
|
1829
|
-
exports.
|
|
1830
|
-
const
|
|
1829
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1830
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1831
1831
|
const parsedOutput = {
|
|
1832
1832
|
...output,
|
|
1833
1833
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1836,19 +1836,19 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1836
1836
|
switch (errorCode) {
|
|
1837
1837
|
case "InternalServerException":
|
|
1838
1838
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1839
|
-
throw await
|
|
1839
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1840
1840
|
case "ResourceNotFoundException":
|
|
1841
1841
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1842
|
-
throw await
|
|
1842
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1843
1843
|
case "ThrottlingException":
|
|
1844
1844
|
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1845
|
-
throw await
|
|
1845
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1846
1846
|
case "TooManyTagsException":
|
|
1847
1847
|
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
1848
|
-
throw await
|
|
1848
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1849
1849
|
case "ValidationException":
|
|
1850
1850
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1851
|
-
throw await
|
|
1851
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1852
1852
|
default:
|
|
1853
1853
|
const parsedBody = parsedOutput.body;
|
|
1854
1854
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1859,21 +1859,21 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
1861
|
};
|
|
1862
|
-
const
|
|
1862
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1863
1863
|
if (output.statusCode >= 300) {
|
|
1864
|
-
return
|
|
1864
|
+
return de_UntagResourceCommandError(output, context);
|
|
1865
1865
|
}
|
|
1866
1866
|
const data = await parseBody(output.body, context);
|
|
1867
1867
|
let contents = {};
|
|
1868
|
-
contents =
|
|
1868
|
+
contents = de_UntagResourceResponse(data, context);
|
|
1869
1869
|
const response = {
|
|
1870
1870
|
$metadata: deserializeMetadata(output),
|
|
1871
1871
|
...contents,
|
|
1872
1872
|
};
|
|
1873
1873
|
return Promise.resolve(response);
|
|
1874
1874
|
};
|
|
1875
|
-
exports.
|
|
1876
|
-
const
|
|
1875
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1876
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1877
1877
|
const parsedOutput = {
|
|
1878
1878
|
...output,
|
|
1879
1879
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1882,16 +1882,16 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1882
1882
|
switch (errorCode) {
|
|
1883
1883
|
case "InternalServerException":
|
|
1884
1884
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1885
|
-
throw await
|
|
1885
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1886
1886
|
case "ResourceNotFoundException":
|
|
1887
1887
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1888
|
-
throw await
|
|
1888
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1889
1889
|
case "ThrottlingException":
|
|
1890
1890
|
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1891
|
-
throw await
|
|
1891
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1892
1892
|
case "ValidationException":
|
|
1893
1893
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1894
|
-
throw await
|
|
1894
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1895
1895
|
default:
|
|
1896
1896
|
const parsedBody = parsedOutput.body;
|
|
1897
1897
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1902,21 +1902,21 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1902
1902
|
});
|
|
1903
1903
|
}
|
|
1904
1904
|
};
|
|
1905
|
-
const
|
|
1905
|
+
const de_UpdateEndpointAccessCommand = async (output, context) => {
|
|
1906
1906
|
if (output.statusCode >= 300) {
|
|
1907
|
-
return
|
|
1907
|
+
return de_UpdateEndpointAccessCommandError(output, context);
|
|
1908
1908
|
}
|
|
1909
1909
|
const data = await parseBody(output.body, context);
|
|
1910
1910
|
let contents = {};
|
|
1911
|
-
contents =
|
|
1911
|
+
contents = de_UpdateEndpointAccessResponse(data, context);
|
|
1912
1912
|
const response = {
|
|
1913
1913
|
$metadata: deserializeMetadata(output),
|
|
1914
1914
|
...contents,
|
|
1915
1915
|
};
|
|
1916
1916
|
return Promise.resolve(response);
|
|
1917
1917
|
};
|
|
1918
|
-
exports.
|
|
1919
|
-
const
|
|
1918
|
+
exports.de_UpdateEndpointAccessCommand = de_UpdateEndpointAccessCommand;
|
|
1919
|
+
const de_UpdateEndpointAccessCommandError = async (output, context) => {
|
|
1920
1920
|
const parsedOutput = {
|
|
1921
1921
|
...output,
|
|
1922
1922
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1925,19 +1925,19 @@ const deserializeAws_json1_1UpdateEndpointAccessCommandError = async (output, co
|
|
|
1925
1925
|
switch (errorCode) {
|
|
1926
1926
|
case "AccessDeniedException":
|
|
1927
1927
|
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1928
|
-
throw await
|
|
1928
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1929
1929
|
case "ConflictException":
|
|
1930
1930
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1931
|
-
throw await
|
|
1931
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1932
1932
|
case "InternalServerException":
|
|
1933
1933
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1934
|
-
throw await
|
|
1934
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1935
1935
|
case "ResourceNotFoundException":
|
|
1936
1936
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1937
|
-
throw await
|
|
1937
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1938
1938
|
case "ValidationException":
|
|
1939
1939
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1940
|
-
throw await
|
|
1940
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1941
1941
|
default:
|
|
1942
1942
|
const parsedBody = parsedOutput.body;
|
|
1943
1943
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1948,21 +1948,21 @@ const deserializeAws_json1_1UpdateEndpointAccessCommandError = async (output, co
|
|
|
1948
1948
|
});
|
|
1949
1949
|
}
|
|
1950
1950
|
};
|
|
1951
|
-
const
|
|
1951
|
+
const de_UpdateNamespaceCommand = async (output, context) => {
|
|
1952
1952
|
if (output.statusCode >= 300) {
|
|
1953
|
-
return
|
|
1953
|
+
return de_UpdateNamespaceCommandError(output, context);
|
|
1954
1954
|
}
|
|
1955
1955
|
const data = await parseBody(output.body, context);
|
|
1956
1956
|
let contents = {};
|
|
1957
|
-
contents =
|
|
1957
|
+
contents = de_UpdateNamespaceResponse(data, context);
|
|
1958
1958
|
const response = {
|
|
1959
1959
|
$metadata: deserializeMetadata(output),
|
|
1960
1960
|
...contents,
|
|
1961
1961
|
};
|
|
1962
1962
|
return Promise.resolve(response);
|
|
1963
1963
|
};
|
|
1964
|
-
exports.
|
|
1965
|
-
const
|
|
1964
|
+
exports.de_UpdateNamespaceCommand = de_UpdateNamespaceCommand;
|
|
1965
|
+
const de_UpdateNamespaceCommandError = async (output, context) => {
|
|
1966
1966
|
const parsedOutput = {
|
|
1967
1967
|
...output,
|
|
1968
1968
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1971,16 +1971,16 @@ const deserializeAws_json1_1UpdateNamespaceCommandError = async (output, context
|
|
|
1971
1971
|
switch (errorCode) {
|
|
1972
1972
|
case "ConflictException":
|
|
1973
1973
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1974
|
-
throw await
|
|
1974
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1975
1975
|
case "InternalServerException":
|
|
1976
1976
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1977
|
-
throw await
|
|
1977
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1978
1978
|
case "ResourceNotFoundException":
|
|
1979
1979
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1980
|
-
throw await
|
|
1980
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1981
1981
|
case "ValidationException":
|
|
1982
1982
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1983
|
-
throw await
|
|
1983
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1984
1984
|
default:
|
|
1985
1985
|
const parsedBody = parsedOutput.body;
|
|
1986
1986
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1991,21 +1991,21 @@ const deserializeAws_json1_1UpdateNamespaceCommandError = async (output, context
|
|
|
1991
1991
|
});
|
|
1992
1992
|
}
|
|
1993
1993
|
};
|
|
1994
|
-
const
|
|
1994
|
+
const de_UpdateSnapshotCommand = async (output, context) => {
|
|
1995
1995
|
if (output.statusCode >= 300) {
|
|
1996
|
-
return
|
|
1996
|
+
return de_UpdateSnapshotCommandError(output, context);
|
|
1997
1997
|
}
|
|
1998
1998
|
const data = await parseBody(output.body, context);
|
|
1999
1999
|
let contents = {};
|
|
2000
|
-
contents =
|
|
2000
|
+
contents = de_UpdateSnapshotResponse(data, context);
|
|
2001
2001
|
const response = {
|
|
2002
2002
|
$metadata: deserializeMetadata(output),
|
|
2003
2003
|
...contents,
|
|
2004
2004
|
};
|
|
2005
2005
|
return Promise.resolve(response);
|
|
2006
2006
|
};
|
|
2007
|
-
exports.
|
|
2008
|
-
const
|
|
2007
|
+
exports.de_UpdateSnapshotCommand = de_UpdateSnapshotCommand;
|
|
2008
|
+
const de_UpdateSnapshotCommandError = async (output, context) => {
|
|
2009
2009
|
const parsedOutput = {
|
|
2010
2010
|
...output,
|
|
2011
2011
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2014,16 +2014,16 @@ const deserializeAws_json1_1UpdateSnapshotCommandError = async (output, context)
|
|
|
2014
2014
|
switch (errorCode) {
|
|
2015
2015
|
case "ConflictException":
|
|
2016
2016
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2017
|
-
throw await
|
|
2017
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2018
2018
|
case "InternalServerException":
|
|
2019
2019
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2020
|
-
throw await
|
|
2020
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2021
2021
|
case "ResourceNotFoundException":
|
|
2022
2022
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2023
|
-
throw await
|
|
2023
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2024
2024
|
case "ValidationException":
|
|
2025
2025
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2026
|
-
throw await
|
|
2026
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2027
2027
|
default:
|
|
2028
2028
|
const parsedBody = parsedOutput.body;
|
|
2029
2029
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2034,21 +2034,21 @@ const deserializeAws_json1_1UpdateSnapshotCommandError = async (output, context)
|
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
2036
2036
|
};
|
|
2037
|
-
const
|
|
2037
|
+
const de_UpdateUsageLimitCommand = async (output, context) => {
|
|
2038
2038
|
if (output.statusCode >= 300) {
|
|
2039
|
-
return
|
|
2039
|
+
return de_UpdateUsageLimitCommandError(output, context);
|
|
2040
2040
|
}
|
|
2041
2041
|
const data = await parseBody(output.body, context);
|
|
2042
2042
|
let contents = {};
|
|
2043
|
-
contents =
|
|
2043
|
+
contents = de_UpdateUsageLimitResponse(data, context);
|
|
2044
2044
|
const response = {
|
|
2045
2045
|
$metadata: deserializeMetadata(output),
|
|
2046
2046
|
...contents,
|
|
2047
2047
|
};
|
|
2048
2048
|
return Promise.resolve(response);
|
|
2049
2049
|
};
|
|
2050
|
-
exports.
|
|
2051
|
-
const
|
|
2050
|
+
exports.de_UpdateUsageLimitCommand = de_UpdateUsageLimitCommand;
|
|
2051
|
+
const de_UpdateUsageLimitCommandError = async (output, context) => {
|
|
2052
2052
|
const parsedOutput = {
|
|
2053
2053
|
...output,
|
|
2054
2054
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2057,16 +2057,16 @@ const deserializeAws_json1_1UpdateUsageLimitCommandError = async (output, contex
|
|
|
2057
2057
|
switch (errorCode) {
|
|
2058
2058
|
case "ConflictException":
|
|
2059
2059
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2060
|
-
throw await
|
|
2060
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2061
2061
|
case "InternalServerException":
|
|
2062
2062
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2063
|
-
throw await
|
|
2063
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2064
2064
|
case "ResourceNotFoundException":
|
|
2065
2065
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2066
|
-
throw await
|
|
2066
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2067
2067
|
case "ValidationException":
|
|
2068
2068
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2069
|
-
throw await
|
|
2069
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2070
2070
|
default:
|
|
2071
2071
|
const parsedBody = parsedOutput.body;
|
|
2072
2072
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2077,21 +2077,21 @@ const deserializeAws_json1_1UpdateUsageLimitCommandError = async (output, contex
|
|
|
2077
2077
|
});
|
|
2078
2078
|
}
|
|
2079
2079
|
};
|
|
2080
|
-
const
|
|
2080
|
+
const de_UpdateWorkgroupCommand = async (output, context) => {
|
|
2081
2081
|
if (output.statusCode >= 300) {
|
|
2082
|
-
return
|
|
2082
|
+
return de_UpdateWorkgroupCommandError(output, context);
|
|
2083
2083
|
}
|
|
2084
2084
|
const data = await parseBody(output.body, context);
|
|
2085
2085
|
let contents = {};
|
|
2086
|
-
contents =
|
|
2086
|
+
contents = de_UpdateWorkgroupResponse(data, context);
|
|
2087
2087
|
const response = {
|
|
2088
2088
|
$metadata: deserializeMetadata(output),
|
|
2089
2089
|
...contents,
|
|
2090
2090
|
};
|
|
2091
2091
|
return Promise.resolve(response);
|
|
2092
2092
|
};
|
|
2093
|
-
exports.
|
|
2094
|
-
const
|
|
2093
|
+
exports.de_UpdateWorkgroupCommand = de_UpdateWorkgroupCommand;
|
|
2094
|
+
const de_UpdateWorkgroupCommandError = async (output, context) => {
|
|
2095
2095
|
const parsedOutput = {
|
|
2096
2096
|
...output,
|
|
2097
2097
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2100,19 +2100,19 @@ const deserializeAws_json1_1UpdateWorkgroupCommandError = async (output, context
|
|
|
2100
2100
|
switch (errorCode) {
|
|
2101
2101
|
case "ConflictException":
|
|
2102
2102
|
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2103
|
-
throw await
|
|
2103
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2104
2104
|
case "InsufficientCapacityException":
|
|
2105
2105
|
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
2106
|
-
throw await
|
|
2106
|
+
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
2107
2107
|
case "InternalServerException":
|
|
2108
2108
|
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2109
|
-
throw await
|
|
2109
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2110
2110
|
case "ResourceNotFoundException":
|
|
2111
2111
|
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2112
|
-
throw await
|
|
2112
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2113
2113
|
case "ValidationException":
|
|
2114
2114
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2115
|
-
throw await
|
|
2115
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2116
2116
|
default:
|
|
2117
2117
|
const parsedBody = parsedOutput.body;
|
|
2118
2118
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2123,149 +2123,149 @@ const deserializeAws_json1_1UpdateWorkgroupCommandError = async (output, context
|
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
2125
2125
|
};
|
|
2126
|
-
const
|
|
2126
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2127
2127
|
const body = parsedOutput.body;
|
|
2128
|
-
const deserialized =
|
|
2128
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
2129
2129
|
const exception = new models_0_1.AccessDeniedException({
|
|
2130
2130
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2131
2131
|
...deserialized,
|
|
2132
2132
|
});
|
|
2133
2133
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2134
2134
|
};
|
|
2135
|
-
const
|
|
2135
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2136
2136
|
const body = parsedOutput.body;
|
|
2137
|
-
const deserialized =
|
|
2137
|
+
const deserialized = de_ConflictException(body, context);
|
|
2138
2138
|
const exception = new models_0_1.ConflictException({
|
|
2139
2139
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2140
2140
|
...deserialized,
|
|
2141
2141
|
});
|
|
2142
2142
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2143
2143
|
};
|
|
2144
|
-
const
|
|
2144
|
+
const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
2145
2145
|
const body = parsedOutput.body;
|
|
2146
|
-
const deserialized =
|
|
2146
|
+
const deserialized = de_InsufficientCapacityException(body, context);
|
|
2147
2147
|
const exception = new models_0_1.InsufficientCapacityException({
|
|
2148
2148
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2149
2149
|
...deserialized,
|
|
2150
2150
|
});
|
|
2151
2151
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2152
2152
|
};
|
|
2153
|
-
const
|
|
2153
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2154
2154
|
const body = parsedOutput.body;
|
|
2155
|
-
const deserialized =
|
|
2155
|
+
const deserialized = de_InternalServerException(body, context);
|
|
2156
2156
|
const exception = new models_0_1.InternalServerException({
|
|
2157
2157
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2158
2158
|
...deserialized,
|
|
2159
2159
|
});
|
|
2160
2160
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2161
2161
|
};
|
|
2162
|
-
const
|
|
2162
|
+
const de_InvalidPaginationExceptionRes = async (parsedOutput, context) => {
|
|
2163
2163
|
const body = parsedOutput.body;
|
|
2164
|
-
const deserialized =
|
|
2164
|
+
const deserialized = de_InvalidPaginationException(body, context);
|
|
2165
2165
|
const exception = new models_0_1.InvalidPaginationException({
|
|
2166
2166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2167
2167
|
...deserialized,
|
|
2168
2168
|
});
|
|
2169
2169
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2170
2170
|
};
|
|
2171
|
-
const
|
|
2171
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2172
2172
|
const body = parsedOutput.body;
|
|
2173
|
-
const deserialized =
|
|
2173
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
2174
2174
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2175
2175
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2176
2176
|
...deserialized,
|
|
2177
2177
|
});
|
|
2178
2178
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2179
2179
|
};
|
|
2180
|
-
const
|
|
2180
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2181
2181
|
const body = parsedOutput.body;
|
|
2182
|
-
const deserialized =
|
|
2182
|
+
const deserialized = de_ServiceQuotaExceededException(body, context);
|
|
2183
2183
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2184
2184
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2185
2185
|
...deserialized,
|
|
2186
2186
|
});
|
|
2187
2187
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2188
2188
|
};
|
|
2189
|
-
const
|
|
2189
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2190
2190
|
const body = parsedOutput.body;
|
|
2191
|
-
const deserialized =
|
|
2191
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
2192
2192
|
const exception = new models_0_1.ThrottlingException({
|
|
2193
2193
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2194
2194
|
...deserialized,
|
|
2195
2195
|
});
|
|
2196
2196
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2197
2197
|
};
|
|
2198
|
-
const
|
|
2198
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2199
2199
|
const body = parsedOutput.body;
|
|
2200
|
-
const deserialized =
|
|
2200
|
+
const deserialized = de_TooManyTagsException(body, context);
|
|
2201
2201
|
const exception = new models_0_1.TooManyTagsException({
|
|
2202
2202
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2203
2203
|
...deserialized,
|
|
2204
2204
|
});
|
|
2205
2205
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2206
2206
|
};
|
|
2207
|
-
const
|
|
2207
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2208
2208
|
const body = parsedOutput.body;
|
|
2209
|
-
const deserialized =
|
|
2209
|
+
const deserialized = de_ValidationException(body, context);
|
|
2210
2210
|
const exception = new models_0_1.ValidationException({
|
|
2211
2211
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2212
2212
|
...deserialized,
|
|
2213
2213
|
});
|
|
2214
2214
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2215
2215
|
};
|
|
2216
|
-
const
|
|
2216
|
+
const se_ConfigParameter = (input, context) => {
|
|
2217
2217
|
return {
|
|
2218
2218
|
...(input.parameterKey != null && { parameterKey: input.parameterKey }),
|
|
2219
2219
|
...(input.parameterValue != null && { parameterValue: input.parameterValue }),
|
|
2220
2220
|
};
|
|
2221
2221
|
};
|
|
2222
|
-
const
|
|
2222
|
+
const se_ConfigParameterList = (input, context) => {
|
|
2223
2223
|
return input
|
|
2224
2224
|
.filter((e) => e != null)
|
|
2225
2225
|
.map((entry) => {
|
|
2226
|
-
return
|
|
2226
|
+
return se_ConfigParameter(entry, context);
|
|
2227
2227
|
});
|
|
2228
2228
|
};
|
|
2229
|
-
const
|
|
2229
|
+
const se_ConvertRecoveryPointToSnapshotRequest = (input, context) => {
|
|
2230
2230
|
return {
|
|
2231
2231
|
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2232
2232
|
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2233
2233
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2234
|
-
...(input.tags != null && { tags:
|
|
2234
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2235
2235
|
};
|
|
2236
2236
|
};
|
|
2237
|
-
const
|
|
2237
|
+
const se_CreateEndpointAccessRequest = (input, context) => {
|
|
2238
2238
|
return {
|
|
2239
2239
|
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2240
|
-
...(input.subnetIds != null && { subnetIds:
|
|
2240
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIdList(input.subnetIds, context) }),
|
|
2241
2241
|
...(input.vpcSecurityGroupIds != null && {
|
|
2242
|
-
vpcSecurityGroupIds:
|
|
2242
|
+
vpcSecurityGroupIds: se_VpcSecurityGroupIdList(input.vpcSecurityGroupIds, context),
|
|
2243
2243
|
}),
|
|
2244
2244
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2245
2245
|
};
|
|
2246
2246
|
};
|
|
2247
|
-
const
|
|
2247
|
+
const se_CreateNamespaceRequest = (input, context) => {
|
|
2248
2248
|
return {
|
|
2249
2249
|
...(input.adminUserPassword != null && { adminUserPassword: input.adminUserPassword }),
|
|
2250
2250
|
...(input.adminUsername != null && { adminUsername: input.adminUsername }),
|
|
2251
2251
|
...(input.dbName != null && { dbName: input.dbName }),
|
|
2252
2252
|
...(input.defaultIamRoleArn != null && { defaultIamRoleArn: input.defaultIamRoleArn }),
|
|
2253
|
-
...(input.iamRoles != null && { iamRoles:
|
|
2253
|
+
...(input.iamRoles != null && { iamRoles: se_IamRoleArnList(input.iamRoles, context) }),
|
|
2254
2254
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2255
|
-
...(input.logExports != null && { logExports:
|
|
2255
|
+
...(input.logExports != null && { logExports: se_LogExportList(input.logExports, context) }),
|
|
2256
2256
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2257
|
-
...(input.tags != null && { tags:
|
|
2257
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2258
2258
|
};
|
|
2259
2259
|
};
|
|
2260
|
-
const
|
|
2260
|
+
const se_CreateSnapshotRequest = (input, context) => {
|
|
2261
2261
|
return {
|
|
2262
2262
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2263
2263
|
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2264
2264
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2265
|
-
...(input.tags != null && { tags:
|
|
2265
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2266
2266
|
};
|
|
2267
2267
|
};
|
|
2268
|
-
const
|
|
2268
|
+
const se_CreateUsageLimitRequest = (input, context) => {
|
|
2269
2269
|
return {
|
|
2270
2270
|
...(input.amount != null && { amount: input.amount }),
|
|
2271
2271
|
...(input.breachAction != null && { breachAction: input.breachAction }),
|
|
@@ -2274,30 +2274,30 @@ const serializeAws_json1_1CreateUsageLimitRequest = (input, context) => {
|
|
|
2274
2274
|
...(input.usageType != null && { usageType: input.usageType }),
|
|
2275
2275
|
};
|
|
2276
2276
|
};
|
|
2277
|
-
const
|
|
2277
|
+
const se_CreateWorkgroupRequest = (input, context) => {
|
|
2278
2278
|
return {
|
|
2279
2279
|
...(input.baseCapacity != null && { baseCapacity: input.baseCapacity }),
|
|
2280
2280
|
...(input.configParameters != null && {
|
|
2281
|
-
configParameters:
|
|
2281
|
+
configParameters: se_ConfigParameterList(input.configParameters, context),
|
|
2282
2282
|
}),
|
|
2283
2283
|
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2284
2284
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2285
2285
|
...(input.port != null && { port: input.port }),
|
|
2286
2286
|
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2287
2287
|
...(input.securityGroupIds != null && {
|
|
2288
|
-
securityGroupIds:
|
|
2288
|
+
securityGroupIds: se_SecurityGroupIdList(input.securityGroupIds, context),
|
|
2289
2289
|
}),
|
|
2290
|
-
...(input.subnetIds != null && { subnetIds:
|
|
2291
|
-
...(input.tags != null && { tags:
|
|
2290
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIdList(input.subnetIds, context) }),
|
|
2291
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2292
2292
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2293
2293
|
};
|
|
2294
2294
|
};
|
|
2295
|
-
const
|
|
2295
|
+
const se_DeleteEndpointAccessRequest = (input, context) => {
|
|
2296
2296
|
return {
|
|
2297
2297
|
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2298
2298
|
};
|
|
2299
2299
|
};
|
|
2300
|
-
const
|
|
2300
|
+
const se_DeleteNamespaceRequest = (input, context) => {
|
|
2301
2301
|
return {
|
|
2302
2302
|
...(input.finalSnapshotName != null && { finalSnapshotName: input.finalSnapshotName }),
|
|
2303
2303
|
...(input.finalSnapshotRetentionPeriod != null && {
|
|
@@ -2306,83 +2306,83 @@ const serializeAws_json1_1DeleteNamespaceRequest = (input, context) => {
|
|
|
2306
2306
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2307
2307
|
};
|
|
2308
2308
|
};
|
|
2309
|
-
const
|
|
2309
|
+
const se_DeleteResourcePolicyRequest = (input, context) => {
|
|
2310
2310
|
return {
|
|
2311
2311
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2312
2312
|
};
|
|
2313
2313
|
};
|
|
2314
|
-
const
|
|
2314
|
+
const se_DeleteSnapshotRequest = (input, context) => {
|
|
2315
2315
|
return {
|
|
2316
2316
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2317
2317
|
};
|
|
2318
2318
|
};
|
|
2319
|
-
const
|
|
2319
|
+
const se_DeleteUsageLimitRequest = (input, context) => {
|
|
2320
2320
|
return {
|
|
2321
2321
|
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
2322
2322
|
};
|
|
2323
2323
|
};
|
|
2324
|
-
const
|
|
2324
|
+
const se_DeleteWorkgroupRequest = (input, context) => {
|
|
2325
2325
|
return {
|
|
2326
2326
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2327
2327
|
};
|
|
2328
2328
|
};
|
|
2329
|
-
const
|
|
2329
|
+
const se_GetCredentialsRequest = (input, context) => {
|
|
2330
2330
|
return {
|
|
2331
2331
|
...(input.dbName != null && { dbName: input.dbName }),
|
|
2332
2332
|
...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
|
|
2333
2333
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2334
2334
|
};
|
|
2335
2335
|
};
|
|
2336
|
-
const
|
|
2336
|
+
const se_GetEndpointAccessRequest = (input, context) => {
|
|
2337
2337
|
return {
|
|
2338
2338
|
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2339
2339
|
};
|
|
2340
2340
|
};
|
|
2341
|
-
const
|
|
2341
|
+
const se_GetNamespaceRequest = (input, context) => {
|
|
2342
2342
|
return {
|
|
2343
2343
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2344
2344
|
};
|
|
2345
2345
|
};
|
|
2346
|
-
const
|
|
2346
|
+
const se_GetRecoveryPointRequest = (input, context) => {
|
|
2347
2347
|
return {
|
|
2348
2348
|
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2349
2349
|
};
|
|
2350
2350
|
};
|
|
2351
|
-
const
|
|
2351
|
+
const se_GetResourcePolicyRequest = (input, context) => {
|
|
2352
2352
|
return {
|
|
2353
2353
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2354
2354
|
};
|
|
2355
2355
|
};
|
|
2356
|
-
const
|
|
2356
|
+
const se_GetSnapshotRequest = (input, context) => {
|
|
2357
2357
|
return {
|
|
2358
2358
|
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2359
2359
|
...(input.snapshotArn != null && { snapshotArn: input.snapshotArn }),
|
|
2360
2360
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2361
2361
|
};
|
|
2362
2362
|
};
|
|
2363
|
-
const
|
|
2363
|
+
const se_GetTableRestoreStatusRequest = (input, context) => {
|
|
2364
2364
|
return {
|
|
2365
2365
|
...(input.tableRestoreRequestId != null && { tableRestoreRequestId: input.tableRestoreRequestId }),
|
|
2366
2366
|
};
|
|
2367
2367
|
};
|
|
2368
|
-
const
|
|
2368
|
+
const se_GetUsageLimitRequest = (input, context) => {
|
|
2369
2369
|
return {
|
|
2370
2370
|
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
2371
2371
|
};
|
|
2372
2372
|
};
|
|
2373
|
-
const
|
|
2373
|
+
const se_GetWorkgroupRequest = (input, context) => {
|
|
2374
2374
|
return {
|
|
2375
2375
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2376
2376
|
};
|
|
2377
2377
|
};
|
|
2378
|
-
const
|
|
2378
|
+
const se_IamRoleArnList = (input, context) => {
|
|
2379
2379
|
return input
|
|
2380
2380
|
.filter((e) => e != null)
|
|
2381
2381
|
.map((entry) => {
|
|
2382
2382
|
return entry;
|
|
2383
2383
|
});
|
|
2384
2384
|
};
|
|
2385
|
-
const
|
|
2385
|
+
const se_ListEndpointAccessRequest = (input, context) => {
|
|
2386
2386
|
return {
|
|
2387
2387
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2388
2388
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
@@ -2390,13 +2390,13 @@ const serializeAws_json1_1ListEndpointAccessRequest = (input, context) => {
|
|
|
2390
2390
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2391
2391
|
};
|
|
2392
2392
|
};
|
|
2393
|
-
const
|
|
2393
|
+
const se_ListNamespacesRequest = (input, context) => {
|
|
2394
2394
|
return {
|
|
2395
2395
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2396
2396
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2397
2397
|
};
|
|
2398
2398
|
};
|
|
2399
|
-
const
|
|
2399
|
+
const se_ListRecoveryPointsRequest = (input, context) => {
|
|
2400
2400
|
return {
|
|
2401
2401
|
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2402
2402
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
@@ -2406,7 +2406,7 @@ const serializeAws_json1_1ListRecoveryPointsRequest = (input, context) => {
|
|
|
2406
2406
|
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2407
2407
|
};
|
|
2408
2408
|
};
|
|
2409
|
-
const
|
|
2409
|
+
const se_ListSnapshotsRequest = (input, context) => {
|
|
2410
2410
|
return {
|
|
2411
2411
|
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2412
2412
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
@@ -2417,7 +2417,7 @@ const serializeAws_json1_1ListSnapshotsRequest = (input, context) => {
|
|
|
2417
2417
|
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2418
2418
|
};
|
|
2419
2419
|
};
|
|
2420
|
-
const
|
|
2420
|
+
const se_ListTableRestoreStatusRequest = (input, context) => {
|
|
2421
2421
|
return {
|
|
2422
2422
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2423
2423
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
@@ -2425,12 +2425,12 @@ const serializeAws_json1_1ListTableRestoreStatusRequest = (input, context) => {
|
|
|
2425
2425
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2426
2426
|
};
|
|
2427
2427
|
};
|
|
2428
|
-
const
|
|
2428
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2429
2429
|
return {
|
|
2430
2430
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2431
2431
|
};
|
|
2432
2432
|
};
|
|
2433
|
-
const
|
|
2433
|
+
const se_ListUsageLimitsRequest = (input, context) => {
|
|
2434
2434
|
return {
|
|
2435
2435
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2436
2436
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
@@ -2438,33 +2438,33 @@ const serializeAws_json1_1ListUsageLimitsRequest = (input, context) => {
|
|
|
2438
2438
|
...(input.usageType != null && { usageType: input.usageType }),
|
|
2439
2439
|
};
|
|
2440
2440
|
};
|
|
2441
|
-
const
|
|
2441
|
+
const se_ListWorkgroupsRequest = (input, context) => {
|
|
2442
2442
|
return {
|
|
2443
2443
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2444
2444
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2445
2445
|
};
|
|
2446
2446
|
};
|
|
2447
|
-
const
|
|
2447
|
+
const se_LogExportList = (input, context) => {
|
|
2448
2448
|
return input
|
|
2449
2449
|
.filter((e) => e != null)
|
|
2450
2450
|
.map((entry) => {
|
|
2451
2451
|
return entry;
|
|
2452
2452
|
});
|
|
2453
2453
|
};
|
|
2454
|
-
const
|
|
2454
|
+
const se_PutResourcePolicyRequest = (input, context) => {
|
|
2455
2455
|
return {
|
|
2456
2456
|
...(input.policy != null && { policy: input.policy }),
|
|
2457
2457
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2458
2458
|
};
|
|
2459
2459
|
};
|
|
2460
|
-
const
|
|
2460
|
+
const se_RestoreFromRecoveryPointRequest = (input, context) => {
|
|
2461
2461
|
return {
|
|
2462
2462
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2463
2463
|
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2464
2464
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2465
2465
|
};
|
|
2466
2466
|
};
|
|
2467
|
-
const
|
|
2467
|
+
const se_RestoreFromSnapshotRequest = (input, context) => {
|
|
2468
2468
|
return {
|
|
2469
2469
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2470
2470
|
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
@@ -2473,7 +2473,7 @@ const serializeAws_json1_1RestoreFromSnapshotRequest = (input, context) => {
|
|
|
2473
2473
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2474
2474
|
};
|
|
2475
2475
|
};
|
|
2476
|
-
const
|
|
2476
|
+
const se_RestoreTableFromSnapshotRequest = (input, context) => {
|
|
2477
2477
|
return {
|
|
2478
2478
|
...(input.activateCaseSensitiveIdentifier != null && {
|
|
2479
2479
|
activateCaseSensitiveIdentifier: input.activateCaseSensitiveIdentifier,
|
|
@@ -2489,114 +2489,114 @@ const serializeAws_json1_1RestoreTableFromSnapshotRequest = (input, context) =>
|
|
|
2489
2489
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2490
2490
|
};
|
|
2491
2491
|
};
|
|
2492
|
-
const
|
|
2492
|
+
const se_SecurityGroupIdList = (input, context) => {
|
|
2493
2493
|
return input
|
|
2494
2494
|
.filter((e) => e != null)
|
|
2495
2495
|
.map((entry) => {
|
|
2496
2496
|
return entry;
|
|
2497
2497
|
});
|
|
2498
2498
|
};
|
|
2499
|
-
const
|
|
2499
|
+
const se_SubnetIdList = (input, context) => {
|
|
2500
2500
|
return input
|
|
2501
2501
|
.filter((e) => e != null)
|
|
2502
2502
|
.map((entry) => {
|
|
2503
2503
|
return entry;
|
|
2504
2504
|
});
|
|
2505
2505
|
};
|
|
2506
|
-
const
|
|
2506
|
+
const se_Tag = (input, context) => {
|
|
2507
2507
|
return {
|
|
2508
2508
|
...(input.key != null && { key: input.key }),
|
|
2509
2509
|
...(input.value != null && { value: input.value }),
|
|
2510
2510
|
};
|
|
2511
2511
|
};
|
|
2512
|
-
const
|
|
2512
|
+
const se_TagKeyList = (input, context) => {
|
|
2513
2513
|
return input
|
|
2514
2514
|
.filter((e) => e != null)
|
|
2515
2515
|
.map((entry) => {
|
|
2516
2516
|
return entry;
|
|
2517
2517
|
});
|
|
2518
2518
|
};
|
|
2519
|
-
const
|
|
2519
|
+
const se_TagList = (input, context) => {
|
|
2520
2520
|
return input
|
|
2521
2521
|
.filter((e) => e != null)
|
|
2522
2522
|
.map((entry) => {
|
|
2523
|
-
return
|
|
2523
|
+
return se_Tag(entry, context);
|
|
2524
2524
|
});
|
|
2525
2525
|
};
|
|
2526
|
-
const
|
|
2526
|
+
const se_TagResourceRequest = (input, context) => {
|
|
2527
2527
|
return {
|
|
2528
2528
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2529
|
-
...(input.tags != null && { tags:
|
|
2529
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2530
2530
|
};
|
|
2531
2531
|
};
|
|
2532
|
-
const
|
|
2532
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
2533
2533
|
return {
|
|
2534
2534
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2535
|
-
...(input.tagKeys != null && { tagKeys:
|
|
2535
|
+
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
2536
2536
|
};
|
|
2537
2537
|
};
|
|
2538
|
-
const
|
|
2538
|
+
const se_UpdateEndpointAccessRequest = (input, context) => {
|
|
2539
2539
|
return {
|
|
2540
2540
|
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2541
2541
|
...(input.vpcSecurityGroupIds != null && {
|
|
2542
|
-
vpcSecurityGroupIds:
|
|
2542
|
+
vpcSecurityGroupIds: se_VpcSecurityGroupIdList(input.vpcSecurityGroupIds, context),
|
|
2543
2543
|
}),
|
|
2544
2544
|
};
|
|
2545
2545
|
};
|
|
2546
|
-
const
|
|
2546
|
+
const se_UpdateNamespaceRequest = (input, context) => {
|
|
2547
2547
|
return {
|
|
2548
2548
|
...(input.adminUserPassword != null && { adminUserPassword: input.adminUserPassword }),
|
|
2549
2549
|
...(input.adminUsername != null && { adminUsername: input.adminUsername }),
|
|
2550
2550
|
...(input.defaultIamRoleArn != null && { defaultIamRoleArn: input.defaultIamRoleArn }),
|
|
2551
|
-
...(input.iamRoles != null && { iamRoles:
|
|
2551
|
+
...(input.iamRoles != null && { iamRoles: se_IamRoleArnList(input.iamRoles, context) }),
|
|
2552
2552
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2553
|
-
...(input.logExports != null && { logExports:
|
|
2553
|
+
...(input.logExports != null && { logExports: se_LogExportList(input.logExports, context) }),
|
|
2554
2554
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2555
2555
|
};
|
|
2556
2556
|
};
|
|
2557
|
-
const
|
|
2557
|
+
const se_UpdateSnapshotRequest = (input, context) => {
|
|
2558
2558
|
return {
|
|
2559
2559
|
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2560
2560
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2561
2561
|
};
|
|
2562
2562
|
};
|
|
2563
|
-
const
|
|
2563
|
+
const se_UpdateUsageLimitRequest = (input, context) => {
|
|
2564
2564
|
return {
|
|
2565
2565
|
...(input.amount != null && { amount: input.amount }),
|
|
2566
2566
|
...(input.breachAction != null && { breachAction: input.breachAction }),
|
|
2567
2567
|
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
2568
2568
|
};
|
|
2569
2569
|
};
|
|
2570
|
-
const
|
|
2570
|
+
const se_UpdateWorkgroupRequest = (input, context) => {
|
|
2571
2571
|
return {
|
|
2572
2572
|
...(input.baseCapacity != null && { baseCapacity: input.baseCapacity }),
|
|
2573
2573
|
...(input.configParameters != null && {
|
|
2574
|
-
configParameters:
|
|
2574
|
+
configParameters: se_ConfigParameterList(input.configParameters, context),
|
|
2575
2575
|
}),
|
|
2576
2576
|
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2577
2577
|
...(input.port != null && { port: input.port }),
|
|
2578
2578
|
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2579
2579
|
...(input.securityGroupIds != null && {
|
|
2580
|
-
securityGroupIds:
|
|
2580
|
+
securityGroupIds: se_SecurityGroupIdList(input.securityGroupIds, context),
|
|
2581
2581
|
}),
|
|
2582
|
-
...(input.subnetIds != null && { subnetIds:
|
|
2582
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIdList(input.subnetIds, context) }),
|
|
2583
2583
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2584
2584
|
};
|
|
2585
2585
|
};
|
|
2586
|
-
const
|
|
2586
|
+
const se_VpcSecurityGroupIdList = (input, context) => {
|
|
2587
2587
|
return input
|
|
2588
2588
|
.filter((e) => e != null)
|
|
2589
2589
|
.map((entry) => {
|
|
2590
2590
|
return entry;
|
|
2591
2591
|
});
|
|
2592
2592
|
};
|
|
2593
|
-
const
|
|
2593
|
+
const de_AccessDeniedException = (output, context) => {
|
|
2594
2594
|
return {
|
|
2595
2595
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
2596
2596
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2597
2597
|
};
|
|
2598
2598
|
};
|
|
2599
|
-
const
|
|
2599
|
+
const de_AccountIdList = (output, context) => {
|
|
2600
2600
|
const retVal = (output || [])
|
|
2601
2601
|
.filter((e) => e != null)
|
|
2602
2602
|
.map((entry) => {
|
|
@@ -2607,94 +2607,94 @@ const deserializeAws_json1_1AccountIdList = (output, context) => {
|
|
|
2607
2607
|
});
|
|
2608
2608
|
return retVal;
|
|
2609
2609
|
};
|
|
2610
|
-
const
|
|
2610
|
+
const de_ConfigParameter = (output, context) => {
|
|
2611
2611
|
return {
|
|
2612
2612
|
parameterKey: (0, smithy_client_1.expectString)(output.parameterKey),
|
|
2613
2613
|
parameterValue: (0, smithy_client_1.expectString)(output.parameterValue),
|
|
2614
2614
|
};
|
|
2615
2615
|
};
|
|
2616
|
-
const
|
|
2616
|
+
const de_ConfigParameterList = (output, context) => {
|
|
2617
2617
|
const retVal = (output || [])
|
|
2618
2618
|
.filter((e) => e != null)
|
|
2619
2619
|
.map((entry) => {
|
|
2620
2620
|
if (entry === null) {
|
|
2621
2621
|
return null;
|
|
2622
2622
|
}
|
|
2623
|
-
return
|
|
2623
|
+
return de_ConfigParameter(entry, context);
|
|
2624
2624
|
});
|
|
2625
2625
|
return retVal;
|
|
2626
2626
|
};
|
|
2627
|
-
const
|
|
2627
|
+
const de_ConflictException = (output, context) => {
|
|
2628
2628
|
return {
|
|
2629
2629
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2630
2630
|
};
|
|
2631
2631
|
};
|
|
2632
|
-
const
|
|
2632
|
+
const de_ConvertRecoveryPointToSnapshotResponse = (output, context) => {
|
|
2633
2633
|
return {
|
|
2634
|
-
snapshot: output.snapshot != null ?
|
|
2634
|
+
snapshot: output.snapshot != null ? de_Snapshot(output.snapshot, context) : undefined,
|
|
2635
2635
|
};
|
|
2636
2636
|
};
|
|
2637
|
-
const
|
|
2637
|
+
const de_CreateEndpointAccessResponse = (output, context) => {
|
|
2638
2638
|
return {
|
|
2639
|
-
endpoint: output.endpoint != null ?
|
|
2639
|
+
endpoint: output.endpoint != null ? de_EndpointAccess(output.endpoint, context) : undefined,
|
|
2640
2640
|
};
|
|
2641
2641
|
};
|
|
2642
|
-
const
|
|
2642
|
+
const de_CreateNamespaceResponse = (output, context) => {
|
|
2643
2643
|
return {
|
|
2644
|
-
namespace: output.namespace != null ?
|
|
2644
|
+
namespace: output.namespace != null ? de_Namespace(output.namespace, context) : undefined,
|
|
2645
2645
|
};
|
|
2646
2646
|
};
|
|
2647
|
-
const
|
|
2647
|
+
const de_CreateSnapshotResponse = (output, context) => {
|
|
2648
2648
|
return {
|
|
2649
|
-
snapshot: output.snapshot != null ?
|
|
2649
|
+
snapshot: output.snapshot != null ? de_Snapshot(output.snapshot, context) : undefined,
|
|
2650
2650
|
};
|
|
2651
2651
|
};
|
|
2652
|
-
const
|
|
2652
|
+
const de_CreateUsageLimitResponse = (output, context) => {
|
|
2653
2653
|
return {
|
|
2654
|
-
usageLimit: output.usageLimit != null ?
|
|
2654
|
+
usageLimit: output.usageLimit != null ? de_UsageLimit(output.usageLimit, context) : undefined,
|
|
2655
2655
|
};
|
|
2656
2656
|
};
|
|
2657
|
-
const
|
|
2657
|
+
const de_CreateWorkgroupResponse = (output, context) => {
|
|
2658
2658
|
return {
|
|
2659
|
-
workgroup: output.workgroup != null ?
|
|
2659
|
+
workgroup: output.workgroup != null ? de_Workgroup(output.workgroup, context) : undefined,
|
|
2660
2660
|
};
|
|
2661
2661
|
};
|
|
2662
|
-
const
|
|
2662
|
+
const de_DeleteEndpointAccessResponse = (output, context) => {
|
|
2663
2663
|
return {
|
|
2664
|
-
endpoint: output.endpoint != null ?
|
|
2664
|
+
endpoint: output.endpoint != null ? de_EndpointAccess(output.endpoint, context) : undefined,
|
|
2665
2665
|
};
|
|
2666
2666
|
};
|
|
2667
|
-
const
|
|
2667
|
+
const de_DeleteNamespaceResponse = (output, context) => {
|
|
2668
2668
|
return {
|
|
2669
|
-
namespace: output.namespace != null ?
|
|
2669
|
+
namespace: output.namespace != null ? de_Namespace(output.namespace, context) : undefined,
|
|
2670
2670
|
};
|
|
2671
2671
|
};
|
|
2672
|
-
const
|
|
2672
|
+
const de_DeleteResourcePolicyResponse = (output, context) => {
|
|
2673
2673
|
return {};
|
|
2674
2674
|
};
|
|
2675
|
-
const
|
|
2675
|
+
const de_DeleteSnapshotResponse = (output, context) => {
|
|
2676
2676
|
return {
|
|
2677
|
-
snapshot: output.snapshot != null ?
|
|
2677
|
+
snapshot: output.snapshot != null ? de_Snapshot(output.snapshot, context) : undefined,
|
|
2678
2678
|
};
|
|
2679
2679
|
};
|
|
2680
|
-
const
|
|
2680
|
+
const de_DeleteUsageLimitResponse = (output, context) => {
|
|
2681
2681
|
return {
|
|
2682
|
-
usageLimit: output.usageLimit != null ?
|
|
2682
|
+
usageLimit: output.usageLimit != null ? de_UsageLimit(output.usageLimit, context) : undefined,
|
|
2683
2683
|
};
|
|
2684
2684
|
};
|
|
2685
|
-
const
|
|
2685
|
+
const de_DeleteWorkgroupResponse = (output, context) => {
|
|
2686
2686
|
return {
|
|
2687
|
-
workgroup: output.workgroup != null ?
|
|
2687
|
+
workgroup: output.workgroup != null ? de_Workgroup(output.workgroup, context) : undefined,
|
|
2688
2688
|
};
|
|
2689
2689
|
};
|
|
2690
|
-
const
|
|
2690
|
+
const de_Endpoint = (output, context) => {
|
|
2691
2691
|
return {
|
|
2692
2692
|
address: (0, smithy_client_1.expectString)(output.address),
|
|
2693
2693
|
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
2694
|
-
vpcEndpoints: output.vpcEndpoints != null ?
|
|
2694
|
+
vpcEndpoints: output.vpcEndpoints != null ? de_VpcEndpointList(output.vpcEndpoints, context) : undefined,
|
|
2695
2695
|
};
|
|
2696
2696
|
};
|
|
2697
|
-
const
|
|
2697
|
+
const de_EndpointAccess = (output, context) => {
|
|
2698
2698
|
return {
|
|
2699
2699
|
address: (0, smithy_client_1.expectString)(output.address),
|
|
2700
2700
|
endpointArn: (0, smithy_client_1.expectString)(output.endpointArn),
|
|
@@ -2704,26 +2704,26 @@ const deserializeAws_json1_1EndpointAccess = (output, context) => {
|
|
|
2704
2704
|
endpointName: (0, smithy_client_1.expectString)(output.endpointName),
|
|
2705
2705
|
endpointStatus: (0, smithy_client_1.expectString)(output.endpointStatus),
|
|
2706
2706
|
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
2707
|
-
subnetIds: output.subnetIds != null ?
|
|
2708
|
-
vpcEndpoint: output.vpcEndpoint != null ?
|
|
2707
|
+
subnetIds: output.subnetIds != null ? de_SubnetIdList(output.subnetIds, context) : undefined,
|
|
2708
|
+
vpcEndpoint: output.vpcEndpoint != null ? de_VpcEndpoint(output.vpcEndpoint, context) : undefined,
|
|
2709
2709
|
vpcSecurityGroups: output.vpcSecurityGroups != null
|
|
2710
|
-
?
|
|
2710
|
+
? de_VpcSecurityGroupMembershipList(output.vpcSecurityGroups, context)
|
|
2711
2711
|
: undefined,
|
|
2712
2712
|
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
2713
2713
|
};
|
|
2714
2714
|
};
|
|
2715
|
-
const
|
|
2715
|
+
const de_EndpointAccessList = (output, context) => {
|
|
2716
2716
|
const retVal = (output || [])
|
|
2717
2717
|
.filter((e) => e != null)
|
|
2718
2718
|
.map((entry) => {
|
|
2719
2719
|
if (entry === null) {
|
|
2720
2720
|
return null;
|
|
2721
2721
|
}
|
|
2722
|
-
return
|
|
2722
|
+
return de_EndpointAccess(entry, context);
|
|
2723
2723
|
});
|
|
2724
2724
|
return retVal;
|
|
2725
2725
|
};
|
|
2726
|
-
const
|
|
2726
|
+
const de_GetCredentialsResponse = (output, context) => {
|
|
2727
2727
|
return {
|
|
2728
2728
|
dbPassword: (0, smithy_client_1.expectString)(output.dbPassword),
|
|
2729
2729
|
dbUser: (0, smithy_client_1.expectString)(output.dbUser),
|
|
@@ -2733,49 +2733,47 @@ const deserializeAws_json1_1GetCredentialsResponse = (output, context) => {
|
|
|
2733
2733
|
: undefined,
|
|
2734
2734
|
};
|
|
2735
2735
|
};
|
|
2736
|
-
const
|
|
2736
|
+
const de_GetEndpointAccessResponse = (output, context) => {
|
|
2737
2737
|
return {
|
|
2738
|
-
endpoint: output.endpoint != null ?
|
|
2738
|
+
endpoint: output.endpoint != null ? de_EndpointAccess(output.endpoint, context) : undefined,
|
|
2739
2739
|
};
|
|
2740
2740
|
};
|
|
2741
|
-
const
|
|
2741
|
+
const de_GetNamespaceResponse = (output, context) => {
|
|
2742
2742
|
return {
|
|
2743
|
-
namespace: output.namespace != null ?
|
|
2743
|
+
namespace: output.namespace != null ? de_Namespace(output.namespace, context) : undefined,
|
|
2744
2744
|
};
|
|
2745
2745
|
};
|
|
2746
|
-
const
|
|
2746
|
+
const de_GetRecoveryPointResponse = (output, context) => {
|
|
2747
2747
|
return {
|
|
2748
|
-
recoveryPoint: output.recoveryPoint != null ?
|
|
2748
|
+
recoveryPoint: output.recoveryPoint != null ? de_RecoveryPoint(output.recoveryPoint, context) : undefined,
|
|
2749
2749
|
};
|
|
2750
2750
|
};
|
|
2751
|
-
const
|
|
2751
|
+
const de_GetResourcePolicyResponse = (output, context) => {
|
|
2752
2752
|
return {
|
|
2753
|
-
resourcePolicy: output.resourcePolicy != null ?
|
|
2753
|
+
resourcePolicy: output.resourcePolicy != null ? de_ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
2754
2754
|
};
|
|
2755
2755
|
};
|
|
2756
|
-
const
|
|
2756
|
+
const de_GetSnapshotResponse = (output, context) => {
|
|
2757
2757
|
return {
|
|
2758
|
-
snapshot: output.snapshot != null ?
|
|
2758
|
+
snapshot: output.snapshot != null ? de_Snapshot(output.snapshot, context) : undefined,
|
|
2759
2759
|
};
|
|
2760
2760
|
};
|
|
2761
|
-
const
|
|
2761
|
+
const de_GetTableRestoreStatusResponse = (output, context) => {
|
|
2762
2762
|
return {
|
|
2763
|
-
tableRestoreStatus: output.tableRestoreStatus != null
|
|
2764
|
-
? deserializeAws_json1_1TableRestoreStatus(output.tableRestoreStatus, context)
|
|
2765
|
-
: undefined,
|
|
2763
|
+
tableRestoreStatus: output.tableRestoreStatus != null ? de_TableRestoreStatus(output.tableRestoreStatus, context) : undefined,
|
|
2766
2764
|
};
|
|
2767
2765
|
};
|
|
2768
|
-
const
|
|
2766
|
+
const de_GetUsageLimitResponse = (output, context) => {
|
|
2769
2767
|
return {
|
|
2770
|
-
usageLimit: output.usageLimit != null ?
|
|
2768
|
+
usageLimit: output.usageLimit != null ? de_UsageLimit(output.usageLimit, context) : undefined,
|
|
2771
2769
|
};
|
|
2772
2770
|
};
|
|
2773
|
-
const
|
|
2771
|
+
const de_GetWorkgroupResponse = (output, context) => {
|
|
2774
2772
|
return {
|
|
2775
|
-
workgroup: output.workgroup != null ?
|
|
2773
|
+
workgroup: output.workgroup != null ? de_Workgroup(output.workgroup, context) : undefined,
|
|
2776
2774
|
};
|
|
2777
2775
|
};
|
|
2778
|
-
const
|
|
2776
|
+
const de_IamRoleArnList = (output, context) => {
|
|
2779
2777
|
const retVal = (output || [])
|
|
2780
2778
|
.filter((e) => e != null)
|
|
2781
2779
|
.map((entry) => {
|
|
@@ -2786,73 +2784,69 @@ const deserializeAws_json1_1IamRoleArnList = (output, context) => {
|
|
|
2786
2784
|
});
|
|
2787
2785
|
return retVal;
|
|
2788
2786
|
};
|
|
2789
|
-
const
|
|
2787
|
+
const de_InsufficientCapacityException = (output, context) => {
|
|
2790
2788
|
return {
|
|
2791
2789
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2792
2790
|
};
|
|
2793
2791
|
};
|
|
2794
|
-
const
|
|
2792
|
+
const de_InternalServerException = (output, context) => {
|
|
2795
2793
|
return {
|
|
2796
2794
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2797
2795
|
};
|
|
2798
2796
|
};
|
|
2799
|
-
const
|
|
2797
|
+
const de_InvalidPaginationException = (output, context) => {
|
|
2800
2798
|
return {
|
|
2801
2799
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2802
2800
|
};
|
|
2803
2801
|
};
|
|
2804
|
-
const
|
|
2802
|
+
const de_ListEndpointAccessResponse = (output, context) => {
|
|
2805
2803
|
return {
|
|
2806
|
-
endpoints: output.endpoints != null ?
|
|
2804
|
+
endpoints: output.endpoints != null ? de_EndpointAccessList(output.endpoints, context) : undefined,
|
|
2807
2805
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2808
2806
|
};
|
|
2809
2807
|
};
|
|
2810
|
-
const
|
|
2808
|
+
const de_ListNamespacesResponse = (output, context) => {
|
|
2811
2809
|
return {
|
|
2812
|
-
namespaces: output.namespaces != null ?
|
|
2810
|
+
namespaces: output.namespaces != null ? de_NamespaceList(output.namespaces, context) : undefined,
|
|
2813
2811
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2814
2812
|
};
|
|
2815
2813
|
};
|
|
2816
|
-
const
|
|
2814
|
+
const de_ListRecoveryPointsResponse = (output, context) => {
|
|
2817
2815
|
return {
|
|
2818
2816
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2819
|
-
recoveryPoints: output.recoveryPoints != null
|
|
2820
|
-
? deserializeAws_json1_1RecoveryPointList(output.recoveryPoints, context)
|
|
2821
|
-
: undefined,
|
|
2817
|
+
recoveryPoints: output.recoveryPoints != null ? de_RecoveryPointList(output.recoveryPoints, context) : undefined,
|
|
2822
2818
|
};
|
|
2823
2819
|
};
|
|
2824
|
-
const
|
|
2820
|
+
const de_ListSnapshotsResponse = (output, context) => {
|
|
2825
2821
|
return {
|
|
2826
2822
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2827
|
-
snapshots: output.snapshots != null ?
|
|
2823
|
+
snapshots: output.snapshots != null ? de_SnapshotList(output.snapshots, context) : undefined,
|
|
2828
2824
|
};
|
|
2829
2825
|
};
|
|
2830
|
-
const
|
|
2826
|
+
const de_ListTableRestoreStatusResponse = (output, context) => {
|
|
2831
2827
|
return {
|
|
2832
2828
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2833
|
-
tableRestoreStatuses: output.tableRestoreStatuses != null
|
|
2834
|
-
? deserializeAws_json1_1TableRestoreStatusList(output.tableRestoreStatuses, context)
|
|
2835
|
-
: undefined,
|
|
2829
|
+
tableRestoreStatuses: output.tableRestoreStatuses != null ? de_TableRestoreStatusList(output.tableRestoreStatuses, context) : undefined,
|
|
2836
2830
|
};
|
|
2837
2831
|
};
|
|
2838
|
-
const
|
|
2832
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2839
2833
|
return {
|
|
2840
|
-
tags: output.tags != null ?
|
|
2834
|
+
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
2841
2835
|
};
|
|
2842
2836
|
};
|
|
2843
|
-
const
|
|
2837
|
+
const de_ListUsageLimitsResponse = (output, context) => {
|
|
2844
2838
|
return {
|
|
2845
2839
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2846
|
-
usageLimits: output.usageLimits != null ?
|
|
2840
|
+
usageLimits: output.usageLimits != null ? de_UsageLimits(output.usageLimits, context) : undefined,
|
|
2847
2841
|
};
|
|
2848
2842
|
};
|
|
2849
|
-
const
|
|
2843
|
+
const de_ListWorkgroupsResponse = (output, context) => {
|
|
2850
2844
|
return {
|
|
2851
2845
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2852
|
-
workgroups: output.workgroups != null ?
|
|
2846
|
+
workgroups: output.workgroups != null ? de_WorkgroupList(output.workgroups, context) : undefined,
|
|
2853
2847
|
};
|
|
2854
2848
|
};
|
|
2855
|
-
const
|
|
2849
|
+
const de_LogExportList = (output, context) => {
|
|
2856
2850
|
const retVal = (output || [])
|
|
2857
2851
|
.filter((e) => e != null)
|
|
2858
2852
|
.map((entry) => {
|
|
@@ -2863,33 +2857,33 @@ const deserializeAws_json1_1LogExportList = (output, context) => {
|
|
|
2863
2857
|
});
|
|
2864
2858
|
return retVal;
|
|
2865
2859
|
};
|
|
2866
|
-
const
|
|
2860
|
+
const de_Namespace = (output, context) => {
|
|
2867
2861
|
return {
|
|
2868
2862
|
adminUsername: (0, smithy_client_1.expectString)(output.adminUsername),
|
|
2869
2863
|
creationDate: output.creationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationDate)) : undefined,
|
|
2870
2864
|
dbName: (0, smithy_client_1.expectString)(output.dbName),
|
|
2871
2865
|
defaultIamRoleArn: (0, smithy_client_1.expectString)(output.defaultIamRoleArn),
|
|
2872
|
-
iamRoles: output.iamRoles != null ?
|
|
2866
|
+
iamRoles: output.iamRoles != null ? de_IamRoleArnList(output.iamRoles, context) : undefined,
|
|
2873
2867
|
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
2874
|
-
logExports: output.logExports != null ?
|
|
2868
|
+
logExports: output.logExports != null ? de_LogExportList(output.logExports, context) : undefined,
|
|
2875
2869
|
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2876
2870
|
namespaceId: (0, smithy_client_1.expectString)(output.namespaceId),
|
|
2877
2871
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2878
2872
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2879
2873
|
};
|
|
2880
2874
|
};
|
|
2881
|
-
const
|
|
2875
|
+
const de_NamespaceList = (output, context) => {
|
|
2882
2876
|
const retVal = (output || [])
|
|
2883
2877
|
.filter((e) => e != null)
|
|
2884
2878
|
.map((entry) => {
|
|
2885
2879
|
if (entry === null) {
|
|
2886
2880
|
return null;
|
|
2887
2881
|
}
|
|
2888
|
-
return
|
|
2882
|
+
return de_Namespace(entry, context);
|
|
2889
2883
|
});
|
|
2890
2884
|
return retVal;
|
|
2891
2885
|
};
|
|
2892
|
-
const
|
|
2886
|
+
const de_NetworkInterface = (output, context) => {
|
|
2893
2887
|
return {
|
|
2894
2888
|
availabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
|
|
2895
2889
|
networkInterfaceId: (0, smithy_client_1.expectString)(output.networkInterfaceId),
|
|
@@ -2897,23 +2891,23 @@ const deserializeAws_json1_1NetworkInterface = (output, context) => {
|
|
|
2897
2891
|
subnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
2898
2892
|
};
|
|
2899
2893
|
};
|
|
2900
|
-
const
|
|
2894
|
+
const de_NetworkInterfaceList = (output, context) => {
|
|
2901
2895
|
const retVal = (output || [])
|
|
2902
2896
|
.filter((e) => e != null)
|
|
2903
2897
|
.map((entry) => {
|
|
2904
2898
|
if (entry === null) {
|
|
2905
2899
|
return null;
|
|
2906
2900
|
}
|
|
2907
|
-
return
|
|
2901
|
+
return de_NetworkInterface(entry, context);
|
|
2908
2902
|
});
|
|
2909
2903
|
return retVal;
|
|
2910
2904
|
};
|
|
2911
|
-
const
|
|
2905
|
+
const de_PutResourcePolicyResponse = (output, context) => {
|
|
2912
2906
|
return {
|
|
2913
|
-
resourcePolicy: output.resourcePolicy != null ?
|
|
2907
|
+
resourcePolicy: output.resourcePolicy != null ? de_ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
2914
2908
|
};
|
|
2915
2909
|
};
|
|
2916
|
-
const
|
|
2910
|
+
const de_RecoveryPoint = (output, context) => {
|
|
2917
2911
|
return {
|
|
2918
2912
|
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2919
2913
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
@@ -2925,50 +2919,48 @@ const deserializeAws_json1_1RecoveryPoint = (output, context) => {
|
|
|
2925
2919
|
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
2926
2920
|
};
|
|
2927
2921
|
};
|
|
2928
|
-
const
|
|
2922
|
+
const de_RecoveryPointList = (output, context) => {
|
|
2929
2923
|
const retVal = (output || [])
|
|
2930
2924
|
.filter((e) => e != null)
|
|
2931
2925
|
.map((entry) => {
|
|
2932
2926
|
if (entry === null) {
|
|
2933
2927
|
return null;
|
|
2934
2928
|
}
|
|
2935
|
-
return
|
|
2929
|
+
return de_RecoveryPoint(entry, context);
|
|
2936
2930
|
});
|
|
2937
2931
|
return retVal;
|
|
2938
2932
|
};
|
|
2939
|
-
const
|
|
2933
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
2940
2934
|
return {
|
|
2941
2935
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2942
2936
|
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
2943
2937
|
};
|
|
2944
2938
|
};
|
|
2945
|
-
const
|
|
2939
|
+
const de_ResourcePolicy = (output, context) => {
|
|
2946
2940
|
return {
|
|
2947
2941
|
policy: (0, smithy_client_1.expectString)(output.policy),
|
|
2948
2942
|
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
2949
2943
|
};
|
|
2950
2944
|
};
|
|
2951
|
-
const
|
|
2945
|
+
const de_RestoreFromRecoveryPointResponse = (output, context) => {
|
|
2952
2946
|
return {
|
|
2953
|
-
namespace: output.namespace != null ?
|
|
2947
|
+
namespace: output.namespace != null ? de_Namespace(output.namespace, context) : undefined,
|
|
2954
2948
|
recoveryPointId: (0, smithy_client_1.expectString)(output.recoveryPointId),
|
|
2955
2949
|
};
|
|
2956
2950
|
};
|
|
2957
|
-
const
|
|
2951
|
+
const de_RestoreFromSnapshotResponse = (output, context) => {
|
|
2958
2952
|
return {
|
|
2959
|
-
namespace: output.namespace != null ?
|
|
2953
|
+
namespace: output.namespace != null ? de_Namespace(output.namespace, context) : undefined,
|
|
2960
2954
|
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
2961
2955
|
snapshotName: (0, smithy_client_1.expectString)(output.snapshotName),
|
|
2962
2956
|
};
|
|
2963
2957
|
};
|
|
2964
|
-
const
|
|
2958
|
+
const de_RestoreTableFromSnapshotResponse = (output, context) => {
|
|
2965
2959
|
return {
|
|
2966
|
-
tableRestoreStatus: output.tableRestoreStatus != null
|
|
2967
|
-
? deserializeAws_json1_1TableRestoreStatus(output.tableRestoreStatus, context)
|
|
2968
|
-
: undefined,
|
|
2960
|
+
tableRestoreStatus: output.tableRestoreStatus != null ? de_TableRestoreStatus(output.tableRestoreStatus, context) : undefined,
|
|
2969
2961
|
};
|
|
2970
2962
|
};
|
|
2971
|
-
const
|
|
2963
|
+
const de_SecurityGroupIdList = (output, context) => {
|
|
2972
2964
|
const retVal = (output || [])
|
|
2973
2965
|
.filter((e) => e != null)
|
|
2974
2966
|
.map((entry) => {
|
|
@@ -2979,18 +2971,18 @@ const deserializeAws_json1_1SecurityGroupIdList = (output, context) => {
|
|
|
2979
2971
|
});
|
|
2980
2972
|
return retVal;
|
|
2981
2973
|
};
|
|
2982
|
-
const
|
|
2974
|
+
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2983
2975
|
return {
|
|
2984
2976
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2985
2977
|
};
|
|
2986
2978
|
};
|
|
2987
|
-
const
|
|
2979
|
+
const de_Snapshot = (output, context) => {
|
|
2988
2980
|
return {
|
|
2989
2981
|
accountsWithProvisionedRestoreAccess: output.accountsWithProvisionedRestoreAccess != null
|
|
2990
|
-
?
|
|
2982
|
+
? de_AccountIdList(output.accountsWithProvisionedRestoreAccess, context)
|
|
2991
2983
|
: undefined,
|
|
2992
2984
|
accountsWithRestoreAccess: output.accountsWithRestoreAccess != null
|
|
2993
|
-
?
|
|
2985
|
+
? de_AccountIdList(output.accountsWithRestoreAccess, context)
|
|
2994
2986
|
: undefined,
|
|
2995
2987
|
actualIncrementalBackupSizeInMegaBytes: (0, smithy_client_1.limitedParseDouble)(output.actualIncrementalBackupSizeInMegaBytes),
|
|
2996
2988
|
adminUsername: (0, smithy_client_1.expectString)(output.adminUsername),
|
|
@@ -3016,18 +3008,18 @@ const deserializeAws_json1_1Snapshot = (output, context) => {
|
|
|
3016
3008
|
totalBackupSizeInMegaBytes: (0, smithy_client_1.limitedParseDouble)(output.totalBackupSizeInMegaBytes),
|
|
3017
3009
|
};
|
|
3018
3010
|
};
|
|
3019
|
-
const
|
|
3011
|
+
const de_SnapshotList = (output, context) => {
|
|
3020
3012
|
const retVal = (output || [])
|
|
3021
3013
|
.filter((e) => e != null)
|
|
3022
3014
|
.map((entry) => {
|
|
3023
3015
|
if (entry === null) {
|
|
3024
3016
|
return null;
|
|
3025
3017
|
}
|
|
3026
|
-
return
|
|
3018
|
+
return de_Snapshot(entry, context);
|
|
3027
3019
|
});
|
|
3028
3020
|
return retVal;
|
|
3029
3021
|
};
|
|
3030
|
-
const
|
|
3022
|
+
const de_SubnetIdList = (output, context) => {
|
|
3031
3023
|
const retVal = (output || [])
|
|
3032
3024
|
.filter((e) => e != null)
|
|
3033
3025
|
.map((entry) => {
|
|
@@ -3038,7 +3030,7 @@ const deserializeAws_json1_1SubnetIdList = (output, context) => {
|
|
|
3038
3030
|
});
|
|
3039
3031
|
return retVal;
|
|
3040
3032
|
};
|
|
3041
|
-
const
|
|
3033
|
+
const de_TableRestoreStatus = (output, context) => {
|
|
3042
3034
|
return {
|
|
3043
3035
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3044
3036
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
@@ -3059,78 +3051,78 @@ const deserializeAws_json1_1TableRestoreStatus = (output, context) => {
|
|
|
3059
3051
|
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
3060
3052
|
};
|
|
3061
3053
|
};
|
|
3062
|
-
const
|
|
3054
|
+
const de_TableRestoreStatusList = (output, context) => {
|
|
3063
3055
|
const retVal = (output || [])
|
|
3064
3056
|
.filter((e) => e != null)
|
|
3065
3057
|
.map((entry) => {
|
|
3066
3058
|
if (entry === null) {
|
|
3067
3059
|
return null;
|
|
3068
3060
|
}
|
|
3069
|
-
return
|
|
3061
|
+
return de_TableRestoreStatus(entry, context);
|
|
3070
3062
|
});
|
|
3071
3063
|
return retVal;
|
|
3072
3064
|
};
|
|
3073
|
-
const
|
|
3065
|
+
const de_Tag = (output, context) => {
|
|
3074
3066
|
return {
|
|
3075
3067
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
3076
3068
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
3077
3069
|
};
|
|
3078
3070
|
};
|
|
3079
|
-
const
|
|
3071
|
+
const de_TagList = (output, context) => {
|
|
3080
3072
|
const retVal = (output || [])
|
|
3081
3073
|
.filter((e) => e != null)
|
|
3082
3074
|
.map((entry) => {
|
|
3083
3075
|
if (entry === null) {
|
|
3084
3076
|
return null;
|
|
3085
3077
|
}
|
|
3086
|
-
return
|
|
3078
|
+
return de_Tag(entry, context);
|
|
3087
3079
|
});
|
|
3088
3080
|
return retVal;
|
|
3089
3081
|
};
|
|
3090
|
-
const
|
|
3082
|
+
const de_TagResourceResponse = (output, context) => {
|
|
3091
3083
|
return {};
|
|
3092
3084
|
};
|
|
3093
|
-
const
|
|
3085
|
+
const de_ThrottlingException = (output, context) => {
|
|
3094
3086
|
return {
|
|
3095
3087
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
3096
3088
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3097
3089
|
};
|
|
3098
3090
|
};
|
|
3099
|
-
const
|
|
3091
|
+
const de_TooManyTagsException = (output, context) => {
|
|
3100
3092
|
return {
|
|
3101
3093
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3102
3094
|
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
3103
3095
|
};
|
|
3104
3096
|
};
|
|
3105
|
-
const
|
|
3097
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
3106
3098
|
return {};
|
|
3107
3099
|
};
|
|
3108
|
-
const
|
|
3100
|
+
const de_UpdateEndpointAccessResponse = (output, context) => {
|
|
3109
3101
|
return {
|
|
3110
|
-
endpoint: output.endpoint != null ?
|
|
3102
|
+
endpoint: output.endpoint != null ? de_EndpointAccess(output.endpoint, context) : undefined,
|
|
3111
3103
|
};
|
|
3112
3104
|
};
|
|
3113
|
-
const
|
|
3105
|
+
const de_UpdateNamespaceResponse = (output, context) => {
|
|
3114
3106
|
return {
|
|
3115
|
-
namespace: output.namespace != null ?
|
|
3107
|
+
namespace: output.namespace != null ? de_Namespace(output.namespace, context) : undefined,
|
|
3116
3108
|
};
|
|
3117
3109
|
};
|
|
3118
|
-
const
|
|
3110
|
+
const de_UpdateSnapshotResponse = (output, context) => {
|
|
3119
3111
|
return {
|
|
3120
|
-
snapshot: output.snapshot != null ?
|
|
3112
|
+
snapshot: output.snapshot != null ? de_Snapshot(output.snapshot, context) : undefined,
|
|
3121
3113
|
};
|
|
3122
3114
|
};
|
|
3123
|
-
const
|
|
3115
|
+
const de_UpdateUsageLimitResponse = (output, context) => {
|
|
3124
3116
|
return {
|
|
3125
|
-
usageLimit: output.usageLimit != null ?
|
|
3117
|
+
usageLimit: output.usageLimit != null ? de_UsageLimit(output.usageLimit, context) : undefined,
|
|
3126
3118
|
};
|
|
3127
3119
|
};
|
|
3128
|
-
const
|
|
3120
|
+
const de_UpdateWorkgroupResponse = (output, context) => {
|
|
3129
3121
|
return {
|
|
3130
|
-
workgroup: output.workgroup != null ?
|
|
3122
|
+
workgroup: output.workgroup != null ? de_Workgroup(output.workgroup, context) : undefined,
|
|
3131
3123
|
};
|
|
3132
3124
|
};
|
|
3133
|
-
const
|
|
3125
|
+
const de_UsageLimit = (output, context) => {
|
|
3134
3126
|
return {
|
|
3135
3127
|
amount: (0, smithy_client_1.expectLong)(output.amount),
|
|
3136
3128
|
breachAction: (0, smithy_client_1.expectString)(output.breachAction),
|
|
@@ -3141,89 +3133,83 @@ const deserializeAws_json1_1UsageLimit = (output, context) => {
|
|
|
3141
3133
|
usageType: (0, smithy_client_1.expectString)(output.usageType),
|
|
3142
3134
|
};
|
|
3143
3135
|
};
|
|
3144
|
-
const
|
|
3136
|
+
const de_UsageLimits = (output, context) => {
|
|
3145
3137
|
const retVal = (output || [])
|
|
3146
3138
|
.filter((e) => e != null)
|
|
3147
3139
|
.map((entry) => {
|
|
3148
3140
|
if (entry === null) {
|
|
3149
3141
|
return null;
|
|
3150
3142
|
}
|
|
3151
|
-
return
|
|
3143
|
+
return de_UsageLimit(entry, context);
|
|
3152
3144
|
});
|
|
3153
3145
|
return retVal;
|
|
3154
3146
|
};
|
|
3155
|
-
const
|
|
3147
|
+
const de_ValidationException = (output, context) => {
|
|
3156
3148
|
return {
|
|
3157
3149
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3158
3150
|
};
|
|
3159
3151
|
};
|
|
3160
|
-
const
|
|
3152
|
+
const de_VpcEndpoint = (output, context) => {
|
|
3161
3153
|
return {
|
|
3162
|
-
networkInterfaces: output.networkInterfaces != null
|
|
3163
|
-
? deserializeAws_json1_1NetworkInterfaceList(output.networkInterfaces, context)
|
|
3164
|
-
: undefined,
|
|
3154
|
+
networkInterfaces: output.networkInterfaces != null ? de_NetworkInterfaceList(output.networkInterfaces, context) : undefined,
|
|
3165
3155
|
vpcEndpointId: (0, smithy_client_1.expectString)(output.vpcEndpointId),
|
|
3166
3156
|
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3167
3157
|
};
|
|
3168
3158
|
};
|
|
3169
|
-
const
|
|
3159
|
+
const de_VpcEndpointList = (output, context) => {
|
|
3170
3160
|
const retVal = (output || [])
|
|
3171
3161
|
.filter((e) => e != null)
|
|
3172
3162
|
.map((entry) => {
|
|
3173
3163
|
if (entry === null) {
|
|
3174
3164
|
return null;
|
|
3175
3165
|
}
|
|
3176
|
-
return
|
|
3166
|
+
return de_VpcEndpoint(entry, context);
|
|
3177
3167
|
});
|
|
3178
3168
|
return retVal;
|
|
3179
3169
|
};
|
|
3180
|
-
const
|
|
3170
|
+
const de_VpcSecurityGroupMembership = (output, context) => {
|
|
3181
3171
|
return {
|
|
3182
3172
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3183
3173
|
vpcSecurityGroupId: (0, smithy_client_1.expectString)(output.vpcSecurityGroupId),
|
|
3184
3174
|
};
|
|
3185
3175
|
};
|
|
3186
|
-
const
|
|
3176
|
+
const de_VpcSecurityGroupMembershipList = (output, context) => {
|
|
3187
3177
|
const retVal = (output || [])
|
|
3188
3178
|
.filter((e) => e != null)
|
|
3189
3179
|
.map((entry) => {
|
|
3190
3180
|
if (entry === null) {
|
|
3191
3181
|
return null;
|
|
3192
3182
|
}
|
|
3193
|
-
return
|
|
3183
|
+
return de_VpcSecurityGroupMembership(entry, context);
|
|
3194
3184
|
});
|
|
3195
3185
|
return retVal;
|
|
3196
3186
|
};
|
|
3197
|
-
const
|
|
3187
|
+
const de_Workgroup = (output, context) => {
|
|
3198
3188
|
return {
|
|
3199
3189
|
baseCapacity: (0, smithy_client_1.expectInt32)(output.baseCapacity),
|
|
3200
|
-
configParameters: output.configParameters != null
|
|
3201
|
-
? deserializeAws_json1_1ConfigParameterList(output.configParameters, context)
|
|
3202
|
-
: undefined,
|
|
3190
|
+
configParameters: output.configParameters != null ? de_ConfigParameterList(output.configParameters, context) : undefined,
|
|
3203
3191
|
creationDate: output.creationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationDate)) : undefined,
|
|
3204
|
-
endpoint: output.endpoint != null ?
|
|
3192
|
+
endpoint: output.endpoint != null ? de_Endpoint(output.endpoint, context) : undefined,
|
|
3205
3193
|
enhancedVpcRouting: (0, smithy_client_1.expectBoolean)(output.enhancedVpcRouting),
|
|
3206
3194
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
3207
3195
|
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
3208
3196
|
publiclyAccessible: (0, smithy_client_1.expectBoolean)(output.publiclyAccessible),
|
|
3209
|
-
securityGroupIds: output.securityGroupIds != null
|
|
3210
|
-
? deserializeAws_json1_1SecurityGroupIdList(output.securityGroupIds, context)
|
|
3211
|
-
: undefined,
|
|
3197
|
+
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIdList(output.securityGroupIds, context) : undefined,
|
|
3212
3198
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3213
|
-
subnetIds: output.subnetIds != null ?
|
|
3199
|
+
subnetIds: output.subnetIds != null ? de_SubnetIdList(output.subnetIds, context) : undefined,
|
|
3214
3200
|
workgroupArn: (0, smithy_client_1.expectString)(output.workgroupArn),
|
|
3215
3201
|
workgroupId: (0, smithy_client_1.expectString)(output.workgroupId),
|
|
3216
3202
|
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
3217
3203
|
};
|
|
3218
3204
|
};
|
|
3219
|
-
const
|
|
3205
|
+
const de_WorkgroupList = (output, context) => {
|
|
3220
3206
|
const retVal = (output || [])
|
|
3221
3207
|
.filter((e) => e != null)
|
|
3222
3208
|
.map((entry) => {
|
|
3223
3209
|
if (entry === null) {
|
|
3224
3210
|
return null;
|
|
3225
3211
|
}
|
|
3226
|
-
return
|
|
3212
|
+
return de_Workgroup(entry, context);
|
|
3227
3213
|
});
|
|
3228
3214
|
return retVal;
|
|
3229
3215
|
};
|