@aws-sdk/client-redshift-serverless 3.437.0 → 3.439.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist-cjs/RedshiftServerless.js +10 -0
- package/dist-cjs/commands/CreateCustomDomainAssociationCommand.js +51 -0
- package/dist-cjs/commands/DeleteCustomDomainAssociationCommand.js +51 -0
- package/dist-cjs/commands/GetCustomDomainAssociationCommand.js +51 -0
- package/dist-cjs/commands/ListCustomDomainAssociationsCommand.js +51 -0
- package/dist-cjs/commands/UpdateCustomDomainAssociationCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +16 -16
- package/dist-cjs/pagination/ListCustomDomainAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +323 -2
- package/dist-es/RedshiftServerless.js +10 -0
- package/dist-es/commands/CreateCustomDomainAssociationCommand.js +47 -0
- package/dist-es/commands/DeleteCustomDomainAssociationCommand.js +47 -0
- package/dist-es/commands/GetCustomDomainAssociationCommand.js +47 -0
- package/dist-es/commands/ListCustomDomainAssociationsCommand.js +47 -0
- package/dist-es/commands/UpdateCustomDomainAssociationCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +14 -14
- package/dist-es/pagination/ListCustomDomainAssociationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +311 -0
- package/dist-types/RedshiftServerless.d.ts +35 -0
- package/dist-types/RedshiftServerlessClient.d.ts +7 -2
- package/dist-types/commands/CreateCustomDomainAssociationCommand.d.ts +96 -0
- package/dist-types/commands/CreateWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/DeleteCustomDomainAssociationCommand.d.ts +90 -0
- package/dist-types/commands/DeleteWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/GetCredentialsCommand.d.ts +2 -1
- package/dist-types/commands/GetCustomDomainAssociationCommand.d.ts +95 -0
- package/dist-types/commands/GetWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/ListCustomDomainAssociationsCommand.d.ts +99 -0
- package/dist-types/commands/ListWorkgroupsCommand.d.ts +3 -0
- package/dist-types/commands/UpdateCustomDomainAssociationCommand.d.ts +96 -0
- package/dist-types/commands/UpdateWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +261 -20
- package/dist-types/pagination/ListCustomDomainAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
- package/dist-types/ts3.4/RedshiftServerless.d.ts +85 -0
- package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCustomDomainAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -10
- package/dist-types/ts3.4/pagination/ListCustomDomainAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/package.json +6 -5
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListCustomDomainAssociationsCommand, se_ListCustomDomainAssociationsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListCustomDomainAssociationsCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListCustomDomainAssociationsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "RedshiftServerlessClient";
|
|
26
|
+
const commandName = "ListCustomDomainAssociationsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "RedshiftServerless",
|
|
35
|
+
operation: "ListCustomDomainAssociations",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListCustomDomainAssociationsCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListCustomDomainAssociationsCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateCustomDomainAssociationCommand, se_UpdateCustomDomainAssociationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateCustomDomainAssociationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateCustomDomainAssociationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "RedshiftServerlessClient";
|
|
26
|
+
const commandName = "UpdateCustomDomainAssociationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "RedshiftServerless",
|
|
35
|
+
operation: "UpdateCustomDomainAssociation",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateCustomDomainAssociationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateCustomDomainAssociationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from "./ConvertRecoveryPointToSnapshotCommand";
|
|
2
|
+
export * from "./CreateCustomDomainAssociationCommand";
|
|
2
3
|
export * from "./CreateEndpointAccessCommand";
|
|
3
4
|
export * from "./CreateNamespaceCommand";
|
|
4
5
|
export * from "./CreateSnapshotCommand";
|
|
5
6
|
export * from "./CreateUsageLimitCommand";
|
|
6
7
|
export * from "./CreateWorkgroupCommand";
|
|
8
|
+
export * from "./DeleteCustomDomainAssociationCommand";
|
|
7
9
|
export * from "./DeleteEndpointAccessCommand";
|
|
8
10
|
export * from "./DeleteNamespaceCommand";
|
|
9
11
|
export * from "./DeleteResourcePolicyCommand";
|
|
@@ -11,6 +13,7 @@ export * from "./DeleteSnapshotCommand";
|
|
|
11
13
|
export * from "./DeleteUsageLimitCommand";
|
|
12
14
|
export * from "./DeleteWorkgroupCommand";
|
|
13
15
|
export * from "./GetCredentialsCommand";
|
|
16
|
+
export * from "./GetCustomDomainAssociationCommand";
|
|
14
17
|
export * from "./GetEndpointAccessCommand";
|
|
15
18
|
export * from "./GetNamespaceCommand";
|
|
16
19
|
export * from "./GetRecoveryPointCommand";
|
|
@@ -19,6 +22,7 @@ export * from "./GetSnapshotCommand";
|
|
|
19
22
|
export * from "./GetTableRestoreStatusCommand";
|
|
20
23
|
export * from "./GetUsageLimitCommand";
|
|
21
24
|
export * from "./GetWorkgroupCommand";
|
|
25
|
+
export * from "./ListCustomDomainAssociationsCommand";
|
|
22
26
|
export * from "./ListEndpointAccessCommand";
|
|
23
27
|
export * from "./ListNamespacesCommand";
|
|
24
28
|
export * from "./ListRecoveryPointsCommand";
|
|
@@ -33,6 +37,7 @@ export * from "./RestoreFromSnapshotCommand";
|
|
|
33
37
|
export * from "./RestoreTableFromSnapshotCommand";
|
|
34
38
|
export * from "./TagResourceCommand";
|
|
35
39
|
export * from "./UntagResourceCommand";
|
|
40
|
+
export * from "./UpdateCustomDomainAssociationCommand";
|
|
36
41
|
export * from "./UpdateEndpointAccessCommand";
|
|
37
42
|
export * from "./UpdateNamespaceCommand";
|
|
38
43
|
export * from "./UpdateSnapshotCommand";
|
package/dist-es/index.js
CHANGED
|
@@ -96,6 +96,20 @@ export class ValidationException extends __BaseException {
|
|
|
96
96
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
+
export class ThrottlingException extends __BaseException {
|
|
100
|
+
constructor(opts) {
|
|
101
|
+
super({
|
|
102
|
+
name: "ThrottlingException",
|
|
103
|
+
$fault: "client",
|
|
104
|
+
...opts,
|
|
105
|
+
});
|
|
106
|
+
this.name = "ThrottlingException";
|
|
107
|
+
this.$fault = "client";
|
|
108
|
+
this.$retryable = {};
|
|
109
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
110
|
+
this.code = opts.code;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
99
113
|
export const LogExport = {
|
|
100
114
|
CONNECTION_LOG: "connectionlog",
|
|
101
115
|
USER_ACTIVITY_LOG: "useractivitylog",
|
|
@@ -151,20 +165,6 @@ export class InvalidPaginationException extends __BaseException {
|
|
|
151
165
|
Object.setPrototypeOf(this, InvalidPaginationException.prototype);
|
|
152
166
|
}
|
|
153
167
|
}
|
|
154
|
-
export class ThrottlingException extends __BaseException {
|
|
155
|
-
constructor(opts) {
|
|
156
|
-
super({
|
|
157
|
-
name: "ThrottlingException",
|
|
158
|
-
$fault: "client",
|
|
159
|
-
...opts,
|
|
160
|
-
});
|
|
161
|
-
this.name = "ThrottlingException";
|
|
162
|
-
this.$fault = "client";
|
|
163
|
-
this.$retryable = {};
|
|
164
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
165
|
-
this.code = opts.code;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
168
|
export const CreateNamespaceRequestFilterSensitiveLog = (obj) => ({
|
|
169
169
|
...obj,
|
|
170
170
|
...(obj.adminUsername && { adminUsername: SENSITIVE_STRING }),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListCustomDomainAssociationsCommand, } from "../commands/ListCustomDomainAssociationsCommand";
|
|
2
|
+
import { RedshiftServerlessClient } from "../RedshiftServerlessClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListCustomDomainAssociationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListCustomDomainAssociations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof RedshiftServerlessClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected RedshiftServerless | RedshiftServerlessClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -8,6 +8,12 @@ export const se_ConvertRecoveryPointToSnapshotCommand = async (input, context) =
|
|
|
8
8
|
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
|
+
export const se_CreateCustomDomainAssociationCommand = async (input, context) => {
|
|
12
|
+
const headers = sharedHeaders("CreateCustomDomainAssociation");
|
|
13
|
+
let body;
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
+
};
|
|
11
17
|
export const se_CreateEndpointAccessCommand = async (input, context) => {
|
|
12
18
|
const headers = sharedHeaders("CreateEndpointAccess");
|
|
13
19
|
let body;
|
|
@@ -38,6 +44,12 @@ export const se_CreateWorkgroupCommand = async (input, context) => {
|
|
|
38
44
|
body = JSON.stringify(_json(input));
|
|
39
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
46
|
};
|
|
47
|
+
export const se_DeleteCustomDomainAssociationCommand = async (input, context) => {
|
|
48
|
+
const headers = sharedHeaders("DeleteCustomDomainAssociation");
|
|
49
|
+
let body;
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
|
+
};
|
|
41
53
|
export const se_DeleteEndpointAccessCommand = async (input, context) => {
|
|
42
54
|
const headers = sharedHeaders("DeleteEndpointAccess");
|
|
43
55
|
let body;
|
|
@@ -80,6 +92,12 @@ export const se_GetCredentialsCommand = async (input, context) => {
|
|
|
80
92
|
body = JSON.stringify(_json(input));
|
|
81
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
94
|
};
|
|
95
|
+
export const se_GetCustomDomainAssociationCommand = async (input, context) => {
|
|
96
|
+
const headers = sharedHeaders("GetCustomDomainAssociation");
|
|
97
|
+
let body;
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
+
};
|
|
83
101
|
export const se_GetEndpointAccessCommand = async (input, context) => {
|
|
84
102
|
const headers = sharedHeaders("GetEndpointAccess");
|
|
85
103
|
let body;
|
|
@@ -128,6 +146,12 @@ export const se_GetWorkgroupCommand = async (input, context) => {
|
|
|
128
146
|
body = JSON.stringify(_json(input));
|
|
129
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
148
|
};
|
|
149
|
+
export const se_ListCustomDomainAssociationsCommand = async (input, context) => {
|
|
150
|
+
const headers = sharedHeaders("ListCustomDomainAssociations");
|
|
151
|
+
let body;
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
153
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
+
};
|
|
131
155
|
export const se_ListEndpointAccessCommand = async (input, context) => {
|
|
132
156
|
const headers = sharedHeaders("ListEndpointAccess");
|
|
133
157
|
let body;
|
|
@@ -212,6 +236,12 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
212
236
|
body = JSON.stringify(_json(input));
|
|
213
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
238
|
};
|
|
239
|
+
export const se_UpdateCustomDomainAssociationCommand = async (input, context) => {
|
|
240
|
+
const headers = sharedHeaders("UpdateCustomDomainAssociation");
|
|
241
|
+
let body;
|
|
242
|
+
body = JSON.stringify(_json(input));
|
|
243
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
244
|
+
};
|
|
215
245
|
export const se_UpdateEndpointAccessCommand = async (input, context) => {
|
|
216
246
|
const headers = sharedHeaders("UpdateEndpointAccess");
|
|
217
247
|
let body;
|
|
@@ -289,6 +319,53 @@ const de_ConvertRecoveryPointToSnapshotCommandError = async (output, context) =>
|
|
|
289
319
|
});
|
|
290
320
|
}
|
|
291
321
|
};
|
|
322
|
+
export const de_CreateCustomDomainAssociationCommand = async (output, context) => {
|
|
323
|
+
if (output.statusCode >= 300) {
|
|
324
|
+
return de_CreateCustomDomainAssociationCommandError(output, context);
|
|
325
|
+
}
|
|
326
|
+
const data = await parseBody(output.body, context);
|
|
327
|
+
let contents = {};
|
|
328
|
+
contents = de_CreateCustomDomainAssociationResponse(data, context);
|
|
329
|
+
const response = {
|
|
330
|
+
$metadata: deserializeMetadata(output),
|
|
331
|
+
...contents,
|
|
332
|
+
};
|
|
333
|
+
return response;
|
|
334
|
+
};
|
|
335
|
+
const de_CreateCustomDomainAssociationCommandError = async (output, context) => {
|
|
336
|
+
const parsedOutput = {
|
|
337
|
+
...output,
|
|
338
|
+
body: await parseErrorBody(output.body, context),
|
|
339
|
+
};
|
|
340
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
341
|
+
switch (errorCode) {
|
|
342
|
+
case "AccessDeniedException":
|
|
343
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
344
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
345
|
+
case "ConflictException":
|
|
346
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
347
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
348
|
+
case "InternalServerException":
|
|
349
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
350
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
351
|
+
case "ResourceNotFoundException":
|
|
352
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
353
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
354
|
+
case "ThrottlingException":
|
|
355
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
356
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
357
|
+
case "ValidationException":
|
|
358
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
359
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
360
|
+
default:
|
|
361
|
+
const parsedBody = parsedOutput.body;
|
|
362
|
+
return throwDefaultError({
|
|
363
|
+
output,
|
|
364
|
+
parsedBody,
|
|
365
|
+
errorCode,
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
};
|
|
292
369
|
export const de_CreateEndpointAccessCommand = async (output, context) => {
|
|
293
370
|
if (output.statusCode >= 300) {
|
|
294
371
|
return de_CreateEndpointAccessCommandError(output, context);
|
|
@@ -515,6 +592,53 @@ const de_CreateWorkgroupCommandError = async (output, context) => {
|
|
|
515
592
|
});
|
|
516
593
|
}
|
|
517
594
|
};
|
|
595
|
+
export const de_DeleteCustomDomainAssociationCommand = async (output, context) => {
|
|
596
|
+
if (output.statusCode >= 300) {
|
|
597
|
+
return de_DeleteCustomDomainAssociationCommandError(output, context);
|
|
598
|
+
}
|
|
599
|
+
const data = await parseBody(output.body, context);
|
|
600
|
+
let contents = {};
|
|
601
|
+
contents = _json(data);
|
|
602
|
+
const response = {
|
|
603
|
+
$metadata: deserializeMetadata(output),
|
|
604
|
+
...contents,
|
|
605
|
+
};
|
|
606
|
+
return response;
|
|
607
|
+
};
|
|
608
|
+
const de_DeleteCustomDomainAssociationCommandError = async (output, context) => {
|
|
609
|
+
const parsedOutput = {
|
|
610
|
+
...output,
|
|
611
|
+
body: await parseErrorBody(output.body, context),
|
|
612
|
+
};
|
|
613
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
+
switch (errorCode) {
|
|
615
|
+
case "AccessDeniedException":
|
|
616
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
617
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
618
|
+
case "ConflictException":
|
|
619
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
620
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
621
|
+
case "InternalServerException":
|
|
622
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
623
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
|
+
case "ResourceNotFoundException":
|
|
625
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
626
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
627
|
+
case "ThrottlingException":
|
|
628
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
629
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
630
|
+
case "ValidationException":
|
|
631
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
632
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
633
|
+
default:
|
|
634
|
+
const parsedBody = parsedOutput.body;
|
|
635
|
+
return throwDefaultError({
|
|
636
|
+
output,
|
|
637
|
+
parsedBody,
|
|
638
|
+
errorCode,
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
};
|
|
518
642
|
export const de_DeleteEndpointAccessCommand = async (output, context) => {
|
|
519
643
|
if (output.statusCode >= 300) {
|
|
520
644
|
return de_DeleteEndpointAccessCommandError(output, context);
|
|
@@ -796,6 +920,53 @@ const de_GetCredentialsCommandError = async (output, context) => {
|
|
|
796
920
|
});
|
|
797
921
|
}
|
|
798
922
|
};
|
|
923
|
+
export const de_GetCustomDomainAssociationCommand = async (output, context) => {
|
|
924
|
+
if (output.statusCode >= 300) {
|
|
925
|
+
return de_GetCustomDomainAssociationCommandError(output, context);
|
|
926
|
+
}
|
|
927
|
+
const data = await parseBody(output.body, context);
|
|
928
|
+
let contents = {};
|
|
929
|
+
contents = de_GetCustomDomainAssociationResponse(data, context);
|
|
930
|
+
const response = {
|
|
931
|
+
$metadata: deserializeMetadata(output),
|
|
932
|
+
...contents,
|
|
933
|
+
};
|
|
934
|
+
return response;
|
|
935
|
+
};
|
|
936
|
+
const de_GetCustomDomainAssociationCommandError = async (output, context) => {
|
|
937
|
+
const parsedOutput = {
|
|
938
|
+
...output,
|
|
939
|
+
body: await parseErrorBody(output.body, context),
|
|
940
|
+
};
|
|
941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
+
switch (errorCode) {
|
|
943
|
+
case "AccessDeniedException":
|
|
944
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
945
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
946
|
+
case "ConflictException":
|
|
947
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
948
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
949
|
+
case "InternalServerException":
|
|
950
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
951
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
952
|
+
case "ResourceNotFoundException":
|
|
953
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
954
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
955
|
+
case "ThrottlingException":
|
|
956
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
957
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
958
|
+
case "ValidationException":
|
|
959
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
960
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
961
|
+
default:
|
|
962
|
+
const parsedBody = parsedOutput.body;
|
|
963
|
+
return throwDefaultError({
|
|
964
|
+
output,
|
|
965
|
+
parsedBody,
|
|
966
|
+
errorCode,
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
};
|
|
799
970
|
export const de_GetEndpointAccessCommand = async (output, context) => {
|
|
800
971
|
if (output.statusCode >= 300) {
|
|
801
972
|
return de_GetEndpointAccessCommandError(output, context);
|
|
@@ -1106,6 +1277,50 @@ const de_GetWorkgroupCommandError = async (output, context) => {
|
|
|
1106
1277
|
});
|
|
1107
1278
|
}
|
|
1108
1279
|
};
|
|
1280
|
+
export const de_ListCustomDomainAssociationsCommand = async (output, context) => {
|
|
1281
|
+
if (output.statusCode >= 300) {
|
|
1282
|
+
return de_ListCustomDomainAssociationsCommandError(output, context);
|
|
1283
|
+
}
|
|
1284
|
+
const data = await parseBody(output.body, context);
|
|
1285
|
+
let contents = {};
|
|
1286
|
+
contents = de_ListCustomDomainAssociationsResponse(data, context);
|
|
1287
|
+
const response = {
|
|
1288
|
+
$metadata: deserializeMetadata(output),
|
|
1289
|
+
...contents,
|
|
1290
|
+
};
|
|
1291
|
+
return response;
|
|
1292
|
+
};
|
|
1293
|
+
const de_ListCustomDomainAssociationsCommandError = async (output, context) => {
|
|
1294
|
+
const parsedOutput = {
|
|
1295
|
+
...output,
|
|
1296
|
+
body: await parseErrorBody(output.body, context),
|
|
1297
|
+
};
|
|
1298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
+
switch (errorCode) {
|
|
1300
|
+
case "AccessDeniedException":
|
|
1301
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1302
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1303
|
+
case "InternalServerException":
|
|
1304
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1305
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1306
|
+
case "InvalidPaginationException":
|
|
1307
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1308
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1309
|
+
case "ThrottlingException":
|
|
1310
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1311
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1312
|
+
case "ValidationException":
|
|
1313
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1314
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1315
|
+
default:
|
|
1316
|
+
const parsedBody = parsedOutput.body;
|
|
1317
|
+
return throwDefaultError({
|
|
1318
|
+
output,
|
|
1319
|
+
parsedBody,
|
|
1320
|
+
errorCode,
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1109
1324
|
export const de_ListEndpointAccessCommand = async (output, context) => {
|
|
1110
1325
|
if (output.statusCode >= 300) {
|
|
1111
1326
|
return de_ListEndpointAccessCommandError(output, context);
|
|
@@ -1668,6 +1883,53 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1668
1883
|
});
|
|
1669
1884
|
}
|
|
1670
1885
|
};
|
|
1886
|
+
export const de_UpdateCustomDomainAssociationCommand = async (output, context) => {
|
|
1887
|
+
if (output.statusCode >= 300) {
|
|
1888
|
+
return de_UpdateCustomDomainAssociationCommandError(output, context);
|
|
1889
|
+
}
|
|
1890
|
+
const data = await parseBody(output.body, context);
|
|
1891
|
+
let contents = {};
|
|
1892
|
+
contents = de_UpdateCustomDomainAssociationResponse(data, context);
|
|
1893
|
+
const response = {
|
|
1894
|
+
$metadata: deserializeMetadata(output),
|
|
1895
|
+
...contents,
|
|
1896
|
+
};
|
|
1897
|
+
return response;
|
|
1898
|
+
};
|
|
1899
|
+
const de_UpdateCustomDomainAssociationCommandError = async (output, context) => {
|
|
1900
|
+
const parsedOutput = {
|
|
1901
|
+
...output,
|
|
1902
|
+
body: await parseErrorBody(output.body, context),
|
|
1903
|
+
};
|
|
1904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
|
+
switch (errorCode) {
|
|
1906
|
+
case "AccessDeniedException":
|
|
1907
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1908
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1909
|
+
case "ConflictException":
|
|
1910
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1911
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1912
|
+
case "InternalServerException":
|
|
1913
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1914
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1915
|
+
case "ResourceNotFoundException":
|
|
1916
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1917
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1918
|
+
case "ThrottlingException":
|
|
1919
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1920
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1921
|
+
case "ValidationException":
|
|
1922
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1923
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1924
|
+
default:
|
|
1925
|
+
const parsedBody = parsedOutput.body;
|
|
1926
|
+
return throwDefaultError({
|
|
1927
|
+
output,
|
|
1928
|
+
parsedBody,
|
|
1929
|
+
errorCode,
|
|
1930
|
+
});
|
|
1931
|
+
}
|
|
1932
|
+
};
|
|
1671
1933
|
export const de_UpdateEndpointAccessCommand = async (output, context) => {
|
|
1672
1934
|
if (output.statusCode >= 300) {
|
|
1673
1935
|
return de_UpdateEndpointAccessCommandError(output, context);
|
|
@@ -1990,11 +2252,35 @@ const se_ListSnapshotsRequest = (input, context) => {
|
|
|
1990
2252
|
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
1991
2253
|
});
|
|
1992
2254
|
};
|
|
2255
|
+
const de_Association = (output, context) => {
|
|
2256
|
+
return take(output, {
|
|
2257
|
+
customDomainCertificateArn: __expectString,
|
|
2258
|
+
customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2259
|
+
customDomainName: __expectString,
|
|
2260
|
+
workgroupName: __expectString,
|
|
2261
|
+
});
|
|
2262
|
+
};
|
|
2263
|
+
const de_AssociationList = (output, context) => {
|
|
2264
|
+
const retVal = (output || [])
|
|
2265
|
+
.filter((e) => e != null)
|
|
2266
|
+
.map((entry) => {
|
|
2267
|
+
return de_Association(entry, context);
|
|
2268
|
+
});
|
|
2269
|
+
return retVal;
|
|
2270
|
+
};
|
|
1993
2271
|
const de_ConvertRecoveryPointToSnapshotResponse = (output, context) => {
|
|
1994
2272
|
return take(output, {
|
|
1995
2273
|
snapshot: (_) => de_Snapshot(_, context),
|
|
1996
2274
|
});
|
|
1997
2275
|
};
|
|
2276
|
+
const de_CreateCustomDomainAssociationResponse = (output, context) => {
|
|
2277
|
+
return take(output, {
|
|
2278
|
+
customDomainCertificateArn: __expectString,
|
|
2279
|
+
customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2280
|
+
customDomainName: __expectString,
|
|
2281
|
+
workgroupName: __expectString,
|
|
2282
|
+
});
|
|
2283
|
+
};
|
|
1998
2284
|
const de_CreateEndpointAccessResponse = (output, context) => {
|
|
1999
2285
|
return take(output, {
|
|
2000
2286
|
endpoint: (_) => de_EndpointAccess(_, context),
|
|
@@ -2065,6 +2351,14 @@ const de_GetCredentialsResponse = (output, context) => {
|
|
|
2065
2351
|
nextRefreshTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2066
2352
|
});
|
|
2067
2353
|
};
|
|
2354
|
+
const de_GetCustomDomainAssociationResponse = (output, context) => {
|
|
2355
|
+
return take(output, {
|
|
2356
|
+
customDomainCertificateArn: __expectString,
|
|
2357
|
+
customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2358
|
+
customDomainName: __expectString,
|
|
2359
|
+
workgroupName: __expectString,
|
|
2360
|
+
});
|
|
2361
|
+
};
|
|
2068
2362
|
const de_GetEndpointAccessResponse = (output, context) => {
|
|
2069
2363
|
return take(output, {
|
|
2070
2364
|
endpoint: (_) => de_EndpointAccess(_, context),
|
|
@@ -2095,6 +2389,12 @@ const de_GetWorkgroupResponse = (output, context) => {
|
|
|
2095
2389
|
workgroup: (_) => de_Workgroup(_, context),
|
|
2096
2390
|
});
|
|
2097
2391
|
};
|
|
2392
|
+
const de_ListCustomDomainAssociationsResponse = (output, context) => {
|
|
2393
|
+
return take(output, {
|
|
2394
|
+
associations: (_) => de_AssociationList(_, context),
|
|
2395
|
+
nextToken: __expectString,
|
|
2396
|
+
});
|
|
2397
|
+
};
|
|
2098
2398
|
const de_ListEndpointAccessResponse = (output, context) => {
|
|
2099
2399
|
return take(output, {
|
|
2100
2400
|
endpoints: (_) => de_EndpointAccessList(_, context),
|
|
@@ -2253,6 +2553,14 @@ const de_TableRestoreStatusList = (output, context) => {
|
|
|
2253
2553
|
});
|
|
2254
2554
|
return retVal;
|
|
2255
2555
|
};
|
|
2556
|
+
const de_UpdateCustomDomainAssociationResponse = (output, context) => {
|
|
2557
|
+
return take(output, {
|
|
2558
|
+
customDomainCertificateArn: __expectString,
|
|
2559
|
+
customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2560
|
+
customDomainName: __expectString,
|
|
2561
|
+
workgroupName: __expectString,
|
|
2562
|
+
});
|
|
2563
|
+
};
|
|
2256
2564
|
const de_UpdateEndpointAccessResponse = (output, context) => {
|
|
2257
2565
|
return take(output, {
|
|
2258
2566
|
endpoint: (_) => de_EndpointAccess(_, context),
|
|
@@ -2278,6 +2586,9 @@ const de_Workgroup = (output, context) => {
|
|
|
2278
2586
|
baseCapacity: __expectInt32,
|
|
2279
2587
|
configParameters: _json,
|
|
2280
2588
|
creationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2589
|
+
customDomainCertificateArn: __expectString,
|
|
2590
|
+
customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2591
|
+
customDomainName: __expectString,
|
|
2281
2592
|
endpoint: _json,
|
|
2282
2593
|
enhancedVpcRouting: __expectBoolean,
|
|
2283
2594
|
namespaceName: __expectString,
|