@aws-sdk/client-redshift-serverless 3.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +225 -0
- package/dist-cjs/RedshiftServerless.js +562 -0
- package/dist-cjs/RedshiftServerlessClient.js +37 -0
- package/dist-cjs/commands/ConvertRecoveryPointToSnapshotCommand.js +36 -0
- package/dist-cjs/commands/CreateEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/CreateNamespaceCommand.js +36 -0
- package/dist-cjs/commands/CreateSnapshotCommand.js +36 -0
- package/dist-cjs/commands/CreateUsageLimitCommand.js +36 -0
- package/dist-cjs/commands/CreateWorkgroupCommand.js +36 -0
- package/dist-cjs/commands/DeleteEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/DeleteNamespaceCommand.js +36 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/DeleteSnapshotCommand.js +36 -0
- package/dist-cjs/commands/DeleteUsageLimitCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkgroupCommand.js +36 -0
- package/dist-cjs/commands/GetCredentialsCommand.js +36 -0
- package/dist-cjs/commands/GetEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/GetNamespaceCommand.js +36 -0
- package/dist-cjs/commands/GetRecoveryPointCommand.js +36 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/GetSnapshotCommand.js +36 -0
- package/dist-cjs/commands/GetUsageLimitCommand.js +36 -0
- package/dist-cjs/commands/GetWorkgroupCommand.js +36 -0
- package/dist-cjs/commands/ListEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/ListNamespacesCommand.js +36 -0
- package/dist-cjs/commands/ListRecoveryPointsCommand.js +36 -0
- package/dist-cjs/commands/ListSnapshotsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/ListUsageLimitsCommand.js +36 -0
- package/dist-cjs/commands/ListWorkgroupsCommand.js +36 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/RestoreFromRecoveryPointCommand.js +36 -0
- package/dist-cjs/commands/RestoreFromSnapshotCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/UpdateNamespaceCommand.js +36 -0
- package/dist-cjs/commands/UpdateSnapshotCommand.js +36 -0
- package/dist-cjs/commands/UpdateUsageLimitCommand.js +36 -0
- package/dist-cjs/commands/UpdateWorkgroupCommand.js +36 -0
- package/dist-cjs/commands/index.js +40 -0
- package/dist-cjs/endpoints.js +131 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/RedshiftServerlessServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +725 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListEndpointAccessPaginator.js +36 -0
- package/dist-cjs/pagination/ListNamespacesPaginator.js +36 -0
- package/dist-cjs/pagination/ListRecoveryPointsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSnapshotsPaginator.js +36 -0
- package/dist-cjs/pagination/ListUsageLimitsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWorkgroupsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +10 -0
- package/dist-cjs/protocols/Aws_json1_1.js +3265 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/RedshiftServerless.js +565 -0
- package/dist-es/RedshiftServerlessClient.js +39 -0
- package/dist-es/commands/ConvertRecoveryPointToSnapshotCommand.js +39 -0
- package/dist-es/commands/CreateEndpointAccessCommand.js +39 -0
- package/dist-es/commands/CreateNamespaceCommand.js +39 -0
- package/dist-es/commands/CreateSnapshotCommand.js +39 -0
- package/dist-es/commands/CreateUsageLimitCommand.js +39 -0
- package/dist-es/commands/CreateWorkgroupCommand.js +39 -0
- package/dist-es/commands/DeleteEndpointAccessCommand.js +39 -0
- package/dist-es/commands/DeleteNamespaceCommand.js +39 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +39 -0
- package/dist-es/commands/DeleteSnapshotCommand.js +39 -0
- package/dist-es/commands/DeleteUsageLimitCommand.js +39 -0
- package/dist-es/commands/DeleteWorkgroupCommand.js +39 -0
- package/dist-es/commands/GetCredentialsCommand.js +39 -0
- package/dist-es/commands/GetEndpointAccessCommand.js +39 -0
- package/dist-es/commands/GetNamespaceCommand.js +39 -0
- package/dist-es/commands/GetRecoveryPointCommand.js +39 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +39 -0
- package/dist-es/commands/GetSnapshotCommand.js +39 -0
- package/dist-es/commands/GetUsageLimitCommand.js +39 -0
- package/dist-es/commands/GetWorkgroupCommand.js +39 -0
- package/dist-es/commands/ListEndpointAccessCommand.js +39 -0
- package/dist-es/commands/ListNamespacesCommand.js +39 -0
- package/dist-es/commands/ListRecoveryPointsCommand.js +39 -0
- package/dist-es/commands/ListSnapshotsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/ListUsageLimitsCommand.js +39 -0
- package/dist-es/commands/ListWorkgroupsCommand.js +39 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +39 -0
- package/dist-es/commands/RestoreFromRecoveryPointCommand.js +39 -0
- package/dist-es/commands/RestoreFromSnapshotCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateEndpointAccessCommand.js +39 -0
- package/dist-es/commands/UpdateNamespaceCommand.js +39 -0
- package/dist-es/commands/UpdateSnapshotCommand.js +39 -0
- package/dist-es/commands/UpdateUsageLimitCommand.js +39 -0
- package/dist-es/commands/UpdateWorkgroupCommand.js +39 -0
- package/dist-es/commands/index.js +37 -0
- package/dist-es/endpoints.js +127 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/RedshiftServerlessServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +523 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListEndpointAccessPaginator.js +75 -0
- package/dist-es/pagination/ListNamespacesPaginator.js +75 -0
- package/dist-es/pagination/ListRecoveryPointsPaginator.js +75 -0
- package/dist-es/pagination/ListSnapshotsPaginator.js +75 -0
- package/dist-es/pagination/ListUsageLimitsPaginator.js +75 -0
- package/dist-es/pagination/ListWorkgroupsPaginator.js +75 -0
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_json1_1.js +3784 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/RedshiftServerless.d.ts +302 -0
- package/dist-types/RedshiftServerlessClient.d.ts +198 -0
- package/dist-types/commands/ConvertRecoveryPointToSnapshotCommand.d.ts +36 -0
- package/dist-types/commands/CreateEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/CreateNamespaceCommand.d.ts +35 -0
- package/dist-types/commands/CreateSnapshotCommand.d.ts +38 -0
- package/dist-types/commands/CreateUsageLimitCommand.d.ts +36 -0
- package/dist-types/commands/CreateWorkgroupCommand.d.ts +35 -0
- package/dist-types/commands/DeleteEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/DeleteNamespaceCommand.d.ts +36 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +35 -0
- package/dist-types/commands/DeleteSnapshotCommand.d.ts +35 -0
- package/dist-types/commands/DeleteUsageLimitCommand.d.ts +35 -0
- package/dist-types/commands/DeleteWorkgroupCommand.d.ts +35 -0
- package/dist-types/commands/GetCredentialsCommand.d.ts +48 -0
- package/dist-types/commands/GetEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/GetNamespaceCommand.d.ts +35 -0
- package/dist-types/commands/GetRecoveryPointCommand.d.ts +35 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +35 -0
- package/dist-types/commands/GetSnapshotCommand.d.ts +35 -0
- package/dist-types/commands/GetUsageLimitCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkgroupCommand.d.ts +35 -0
- package/dist-types/commands/ListEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/ListNamespacesCommand.d.ts +35 -0
- package/dist-types/commands/ListRecoveryPointsCommand.d.ts +35 -0
- package/dist-types/commands/ListSnapshotsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/ListUsageLimitsCommand.d.ts +35 -0
- package/dist-types/commands/ListWorkgroupsCommand.d.ts +35 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +35 -0
- package/dist-types/commands/RestoreFromRecoveryPointCommand.d.ts +35 -0
- package/dist-types/commands/RestoreFromSnapshotCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/UpdateNamespaceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateSnapshotCommand.d.ts +35 -0
- package/dist-types/commands/UpdateUsageLimitCommand.d.ts +35 -0
- package/dist-types/commands/UpdateWorkgroupCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +37 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/RedshiftServerlessServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1960 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListEndpointAccessPaginator.d.ts +4 -0
- package/dist-types/pagination/ListNamespacesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRecoveryPointsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSnapshotsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListUsageLimitsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWorkgroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +113 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/RedshiftServerless.d.ts +190 -0
- package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +110 -0
- package/dist-types/ts3.4/commands/ConvertRecoveryPointToSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateNamespaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateUsageLimitCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateWorkgroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteNamespaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteUsageLimitCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWorkgroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCredentialsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetNamespaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRecoveryPointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetUsageLimitCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetWorkgroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListNamespacesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecoveryPointsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSnapshotsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUsageLimitsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWorkgroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreFromRecoveryPointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreFromSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateNamespaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateUsageLimitCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateWorkgroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +37 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/RedshiftServerlessServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1140 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListEndpointAccessPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListNamespacesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRecoveryPointsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListSnapshotsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListUsageLimitsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWorkgroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +113 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +94 -0
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RedshiftServerless = void 0;
|
|
4
|
+
const ConvertRecoveryPointToSnapshotCommand_1 = require("./commands/ConvertRecoveryPointToSnapshotCommand");
|
|
5
|
+
const CreateEndpointAccessCommand_1 = require("./commands/CreateEndpointAccessCommand");
|
|
6
|
+
const CreateNamespaceCommand_1 = require("./commands/CreateNamespaceCommand");
|
|
7
|
+
const CreateSnapshotCommand_1 = require("./commands/CreateSnapshotCommand");
|
|
8
|
+
const CreateUsageLimitCommand_1 = require("./commands/CreateUsageLimitCommand");
|
|
9
|
+
const CreateWorkgroupCommand_1 = require("./commands/CreateWorkgroupCommand");
|
|
10
|
+
const DeleteEndpointAccessCommand_1 = require("./commands/DeleteEndpointAccessCommand");
|
|
11
|
+
const DeleteNamespaceCommand_1 = require("./commands/DeleteNamespaceCommand");
|
|
12
|
+
const DeleteResourcePolicyCommand_1 = require("./commands/DeleteResourcePolicyCommand");
|
|
13
|
+
const DeleteSnapshotCommand_1 = require("./commands/DeleteSnapshotCommand");
|
|
14
|
+
const DeleteUsageLimitCommand_1 = require("./commands/DeleteUsageLimitCommand");
|
|
15
|
+
const DeleteWorkgroupCommand_1 = require("./commands/DeleteWorkgroupCommand");
|
|
16
|
+
const GetCredentialsCommand_1 = require("./commands/GetCredentialsCommand");
|
|
17
|
+
const GetEndpointAccessCommand_1 = require("./commands/GetEndpointAccessCommand");
|
|
18
|
+
const GetNamespaceCommand_1 = require("./commands/GetNamespaceCommand");
|
|
19
|
+
const GetRecoveryPointCommand_1 = require("./commands/GetRecoveryPointCommand");
|
|
20
|
+
const GetResourcePolicyCommand_1 = require("./commands/GetResourcePolicyCommand");
|
|
21
|
+
const GetSnapshotCommand_1 = require("./commands/GetSnapshotCommand");
|
|
22
|
+
const GetUsageLimitCommand_1 = require("./commands/GetUsageLimitCommand");
|
|
23
|
+
const GetWorkgroupCommand_1 = require("./commands/GetWorkgroupCommand");
|
|
24
|
+
const ListEndpointAccessCommand_1 = require("./commands/ListEndpointAccessCommand");
|
|
25
|
+
const ListNamespacesCommand_1 = require("./commands/ListNamespacesCommand");
|
|
26
|
+
const ListRecoveryPointsCommand_1 = require("./commands/ListRecoveryPointsCommand");
|
|
27
|
+
const ListSnapshotsCommand_1 = require("./commands/ListSnapshotsCommand");
|
|
28
|
+
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
29
|
+
const ListUsageLimitsCommand_1 = require("./commands/ListUsageLimitsCommand");
|
|
30
|
+
const ListWorkgroupsCommand_1 = require("./commands/ListWorkgroupsCommand");
|
|
31
|
+
const PutResourcePolicyCommand_1 = require("./commands/PutResourcePolicyCommand");
|
|
32
|
+
const RestoreFromRecoveryPointCommand_1 = require("./commands/RestoreFromRecoveryPointCommand");
|
|
33
|
+
const RestoreFromSnapshotCommand_1 = require("./commands/RestoreFromSnapshotCommand");
|
|
34
|
+
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
35
|
+
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
36
|
+
const UpdateEndpointAccessCommand_1 = require("./commands/UpdateEndpointAccessCommand");
|
|
37
|
+
const UpdateNamespaceCommand_1 = require("./commands/UpdateNamespaceCommand");
|
|
38
|
+
const UpdateSnapshotCommand_1 = require("./commands/UpdateSnapshotCommand");
|
|
39
|
+
const UpdateUsageLimitCommand_1 = require("./commands/UpdateUsageLimitCommand");
|
|
40
|
+
const UpdateWorkgroupCommand_1 = require("./commands/UpdateWorkgroupCommand");
|
|
41
|
+
const RedshiftServerlessClient_1 = require("./RedshiftServerlessClient");
|
|
42
|
+
class RedshiftServerless extends RedshiftServerlessClient_1.RedshiftServerlessClient {
|
|
43
|
+
convertRecoveryPointToSnapshot(args, optionsOrCb, cb) {
|
|
44
|
+
const command = new ConvertRecoveryPointToSnapshotCommand_1.ConvertRecoveryPointToSnapshotCommand(args);
|
|
45
|
+
if (typeof optionsOrCb === "function") {
|
|
46
|
+
this.send(command, optionsOrCb);
|
|
47
|
+
}
|
|
48
|
+
else if (typeof cb === "function") {
|
|
49
|
+
if (typeof optionsOrCb !== "object")
|
|
50
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return this.send(command, optionsOrCb);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
createEndpointAccess(args, optionsOrCb, cb) {
|
|
58
|
+
const command = new CreateEndpointAccessCommand_1.CreateEndpointAccessCommand(args);
|
|
59
|
+
if (typeof optionsOrCb === "function") {
|
|
60
|
+
this.send(command, optionsOrCb);
|
|
61
|
+
}
|
|
62
|
+
else if (typeof cb === "function") {
|
|
63
|
+
if (typeof optionsOrCb !== "object")
|
|
64
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return this.send(command, optionsOrCb);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
createNamespace(args, optionsOrCb, cb) {
|
|
72
|
+
const command = new CreateNamespaceCommand_1.CreateNamespaceCommand(args);
|
|
73
|
+
if (typeof optionsOrCb === "function") {
|
|
74
|
+
this.send(command, optionsOrCb);
|
|
75
|
+
}
|
|
76
|
+
else if (typeof cb === "function") {
|
|
77
|
+
if (typeof optionsOrCb !== "object")
|
|
78
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
return this.send(command, optionsOrCb);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
createSnapshot(args, optionsOrCb, cb) {
|
|
86
|
+
const command = new CreateSnapshotCommand_1.CreateSnapshotCommand(args);
|
|
87
|
+
if (typeof optionsOrCb === "function") {
|
|
88
|
+
this.send(command, optionsOrCb);
|
|
89
|
+
}
|
|
90
|
+
else if (typeof cb === "function") {
|
|
91
|
+
if (typeof optionsOrCb !== "object")
|
|
92
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return this.send(command, optionsOrCb);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
createUsageLimit(args, optionsOrCb, cb) {
|
|
100
|
+
const command = new CreateUsageLimitCommand_1.CreateUsageLimitCommand(args);
|
|
101
|
+
if (typeof optionsOrCb === "function") {
|
|
102
|
+
this.send(command, optionsOrCb);
|
|
103
|
+
}
|
|
104
|
+
else if (typeof cb === "function") {
|
|
105
|
+
if (typeof optionsOrCb !== "object")
|
|
106
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
return this.send(command, optionsOrCb);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
createWorkgroup(args, optionsOrCb, cb) {
|
|
114
|
+
const command = new CreateWorkgroupCommand_1.CreateWorkgroupCommand(args);
|
|
115
|
+
if (typeof optionsOrCb === "function") {
|
|
116
|
+
this.send(command, optionsOrCb);
|
|
117
|
+
}
|
|
118
|
+
else if (typeof cb === "function") {
|
|
119
|
+
if (typeof optionsOrCb !== "object")
|
|
120
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
return this.send(command, optionsOrCb);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
deleteEndpointAccess(args, optionsOrCb, cb) {
|
|
128
|
+
const command = new DeleteEndpointAccessCommand_1.DeleteEndpointAccessCommand(args);
|
|
129
|
+
if (typeof optionsOrCb === "function") {
|
|
130
|
+
this.send(command, optionsOrCb);
|
|
131
|
+
}
|
|
132
|
+
else if (typeof cb === "function") {
|
|
133
|
+
if (typeof optionsOrCb !== "object")
|
|
134
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
return this.send(command, optionsOrCb);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
deleteNamespace(args, optionsOrCb, cb) {
|
|
142
|
+
const command = new DeleteNamespaceCommand_1.DeleteNamespaceCommand(args);
|
|
143
|
+
if (typeof optionsOrCb === "function") {
|
|
144
|
+
this.send(command, optionsOrCb);
|
|
145
|
+
}
|
|
146
|
+
else if (typeof cb === "function") {
|
|
147
|
+
if (typeof optionsOrCb !== "object")
|
|
148
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
return this.send(command, optionsOrCb);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
156
|
+
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
157
|
+
if (typeof optionsOrCb === "function") {
|
|
158
|
+
this.send(command, optionsOrCb);
|
|
159
|
+
}
|
|
160
|
+
else if (typeof cb === "function") {
|
|
161
|
+
if (typeof optionsOrCb !== "object")
|
|
162
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
return this.send(command, optionsOrCb);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
deleteSnapshot(args, optionsOrCb, cb) {
|
|
170
|
+
const command = new DeleteSnapshotCommand_1.DeleteSnapshotCommand(args);
|
|
171
|
+
if (typeof optionsOrCb === "function") {
|
|
172
|
+
this.send(command, optionsOrCb);
|
|
173
|
+
}
|
|
174
|
+
else if (typeof cb === "function") {
|
|
175
|
+
if (typeof optionsOrCb !== "object")
|
|
176
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
return this.send(command, optionsOrCb);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
deleteUsageLimit(args, optionsOrCb, cb) {
|
|
184
|
+
const command = new DeleteUsageLimitCommand_1.DeleteUsageLimitCommand(args);
|
|
185
|
+
if (typeof optionsOrCb === "function") {
|
|
186
|
+
this.send(command, optionsOrCb);
|
|
187
|
+
}
|
|
188
|
+
else if (typeof cb === "function") {
|
|
189
|
+
if (typeof optionsOrCb !== "object")
|
|
190
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
191
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
return this.send(command, optionsOrCb);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
deleteWorkgroup(args, optionsOrCb, cb) {
|
|
198
|
+
const command = new DeleteWorkgroupCommand_1.DeleteWorkgroupCommand(args);
|
|
199
|
+
if (typeof optionsOrCb === "function") {
|
|
200
|
+
this.send(command, optionsOrCb);
|
|
201
|
+
}
|
|
202
|
+
else if (typeof cb === "function") {
|
|
203
|
+
if (typeof optionsOrCb !== "object")
|
|
204
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
205
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
return this.send(command, optionsOrCb);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
getCredentials(args, optionsOrCb, cb) {
|
|
212
|
+
const command = new GetCredentialsCommand_1.GetCredentialsCommand(args);
|
|
213
|
+
if (typeof optionsOrCb === "function") {
|
|
214
|
+
this.send(command, optionsOrCb);
|
|
215
|
+
}
|
|
216
|
+
else if (typeof cb === "function") {
|
|
217
|
+
if (typeof optionsOrCb !== "object")
|
|
218
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
return this.send(command, optionsOrCb);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
getEndpointAccess(args, optionsOrCb, cb) {
|
|
226
|
+
const command = new GetEndpointAccessCommand_1.GetEndpointAccessCommand(args);
|
|
227
|
+
if (typeof optionsOrCb === "function") {
|
|
228
|
+
this.send(command, optionsOrCb);
|
|
229
|
+
}
|
|
230
|
+
else if (typeof cb === "function") {
|
|
231
|
+
if (typeof optionsOrCb !== "object")
|
|
232
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
233
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
return this.send(command, optionsOrCb);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
getNamespace(args, optionsOrCb, cb) {
|
|
240
|
+
const command = new GetNamespaceCommand_1.GetNamespaceCommand(args);
|
|
241
|
+
if (typeof optionsOrCb === "function") {
|
|
242
|
+
this.send(command, optionsOrCb);
|
|
243
|
+
}
|
|
244
|
+
else if (typeof cb === "function") {
|
|
245
|
+
if (typeof optionsOrCb !== "object")
|
|
246
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
247
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
return this.send(command, optionsOrCb);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
getRecoveryPoint(args, optionsOrCb, cb) {
|
|
254
|
+
const command = new GetRecoveryPointCommand_1.GetRecoveryPointCommand(args);
|
|
255
|
+
if (typeof optionsOrCb === "function") {
|
|
256
|
+
this.send(command, optionsOrCb);
|
|
257
|
+
}
|
|
258
|
+
else if (typeof cb === "function") {
|
|
259
|
+
if (typeof optionsOrCb !== "object")
|
|
260
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
261
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
return this.send(command, optionsOrCb);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
getResourcePolicy(args, optionsOrCb, cb) {
|
|
268
|
+
const command = new GetResourcePolicyCommand_1.GetResourcePolicyCommand(args);
|
|
269
|
+
if (typeof optionsOrCb === "function") {
|
|
270
|
+
this.send(command, optionsOrCb);
|
|
271
|
+
}
|
|
272
|
+
else if (typeof cb === "function") {
|
|
273
|
+
if (typeof optionsOrCb !== "object")
|
|
274
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
275
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
return this.send(command, optionsOrCb);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
getSnapshot(args, optionsOrCb, cb) {
|
|
282
|
+
const command = new GetSnapshotCommand_1.GetSnapshotCommand(args);
|
|
283
|
+
if (typeof optionsOrCb === "function") {
|
|
284
|
+
this.send(command, optionsOrCb);
|
|
285
|
+
}
|
|
286
|
+
else if (typeof cb === "function") {
|
|
287
|
+
if (typeof optionsOrCb !== "object")
|
|
288
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
289
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
return this.send(command, optionsOrCb);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
getUsageLimit(args, optionsOrCb, cb) {
|
|
296
|
+
const command = new GetUsageLimitCommand_1.GetUsageLimitCommand(args);
|
|
297
|
+
if (typeof optionsOrCb === "function") {
|
|
298
|
+
this.send(command, optionsOrCb);
|
|
299
|
+
}
|
|
300
|
+
else if (typeof cb === "function") {
|
|
301
|
+
if (typeof optionsOrCb !== "object")
|
|
302
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
return this.send(command, optionsOrCb);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
getWorkgroup(args, optionsOrCb, cb) {
|
|
310
|
+
const command = new GetWorkgroupCommand_1.GetWorkgroupCommand(args);
|
|
311
|
+
if (typeof optionsOrCb === "function") {
|
|
312
|
+
this.send(command, optionsOrCb);
|
|
313
|
+
}
|
|
314
|
+
else if (typeof cb === "function") {
|
|
315
|
+
if (typeof optionsOrCb !== "object")
|
|
316
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
317
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
return this.send(command, optionsOrCb);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
listEndpointAccess(args, optionsOrCb, cb) {
|
|
324
|
+
const command = new ListEndpointAccessCommand_1.ListEndpointAccessCommand(args);
|
|
325
|
+
if (typeof optionsOrCb === "function") {
|
|
326
|
+
this.send(command, optionsOrCb);
|
|
327
|
+
}
|
|
328
|
+
else if (typeof cb === "function") {
|
|
329
|
+
if (typeof optionsOrCb !== "object")
|
|
330
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
331
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
return this.send(command, optionsOrCb);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
listNamespaces(args, optionsOrCb, cb) {
|
|
338
|
+
const command = new ListNamespacesCommand_1.ListNamespacesCommand(args);
|
|
339
|
+
if (typeof optionsOrCb === "function") {
|
|
340
|
+
this.send(command, optionsOrCb);
|
|
341
|
+
}
|
|
342
|
+
else if (typeof cb === "function") {
|
|
343
|
+
if (typeof optionsOrCb !== "object")
|
|
344
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
345
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
346
|
+
}
|
|
347
|
+
else {
|
|
348
|
+
return this.send(command, optionsOrCb);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
listRecoveryPoints(args, optionsOrCb, cb) {
|
|
352
|
+
const command = new ListRecoveryPointsCommand_1.ListRecoveryPointsCommand(args);
|
|
353
|
+
if (typeof optionsOrCb === "function") {
|
|
354
|
+
this.send(command, optionsOrCb);
|
|
355
|
+
}
|
|
356
|
+
else if (typeof cb === "function") {
|
|
357
|
+
if (typeof optionsOrCb !== "object")
|
|
358
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
359
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
return this.send(command, optionsOrCb);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
listSnapshots(args, optionsOrCb, cb) {
|
|
366
|
+
const command = new ListSnapshotsCommand_1.ListSnapshotsCommand(args);
|
|
367
|
+
if (typeof optionsOrCb === "function") {
|
|
368
|
+
this.send(command, optionsOrCb);
|
|
369
|
+
}
|
|
370
|
+
else if (typeof cb === "function") {
|
|
371
|
+
if (typeof optionsOrCb !== "object")
|
|
372
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
373
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
return this.send(command, optionsOrCb);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
380
|
+
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
381
|
+
if (typeof optionsOrCb === "function") {
|
|
382
|
+
this.send(command, optionsOrCb);
|
|
383
|
+
}
|
|
384
|
+
else if (typeof cb === "function") {
|
|
385
|
+
if (typeof optionsOrCb !== "object")
|
|
386
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
387
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
return this.send(command, optionsOrCb);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
listUsageLimits(args, optionsOrCb, cb) {
|
|
394
|
+
const command = new ListUsageLimitsCommand_1.ListUsageLimitsCommand(args);
|
|
395
|
+
if (typeof optionsOrCb === "function") {
|
|
396
|
+
this.send(command, optionsOrCb);
|
|
397
|
+
}
|
|
398
|
+
else if (typeof cb === "function") {
|
|
399
|
+
if (typeof optionsOrCb !== "object")
|
|
400
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
401
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
return this.send(command, optionsOrCb);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
listWorkgroups(args, optionsOrCb, cb) {
|
|
408
|
+
const command = new ListWorkgroupsCommand_1.ListWorkgroupsCommand(args);
|
|
409
|
+
if (typeof optionsOrCb === "function") {
|
|
410
|
+
this.send(command, optionsOrCb);
|
|
411
|
+
}
|
|
412
|
+
else if (typeof cb === "function") {
|
|
413
|
+
if (typeof optionsOrCb !== "object")
|
|
414
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
415
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
return this.send(command, optionsOrCb);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
putResourcePolicy(args, optionsOrCb, cb) {
|
|
422
|
+
const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
|
|
423
|
+
if (typeof optionsOrCb === "function") {
|
|
424
|
+
this.send(command, optionsOrCb);
|
|
425
|
+
}
|
|
426
|
+
else if (typeof cb === "function") {
|
|
427
|
+
if (typeof optionsOrCb !== "object")
|
|
428
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
429
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
return this.send(command, optionsOrCb);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
restoreFromRecoveryPoint(args, optionsOrCb, cb) {
|
|
436
|
+
const command = new RestoreFromRecoveryPointCommand_1.RestoreFromRecoveryPointCommand(args);
|
|
437
|
+
if (typeof optionsOrCb === "function") {
|
|
438
|
+
this.send(command, optionsOrCb);
|
|
439
|
+
}
|
|
440
|
+
else if (typeof cb === "function") {
|
|
441
|
+
if (typeof optionsOrCb !== "object")
|
|
442
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
443
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
return this.send(command, optionsOrCb);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
restoreFromSnapshot(args, optionsOrCb, cb) {
|
|
450
|
+
const command = new RestoreFromSnapshotCommand_1.RestoreFromSnapshotCommand(args);
|
|
451
|
+
if (typeof optionsOrCb === "function") {
|
|
452
|
+
this.send(command, optionsOrCb);
|
|
453
|
+
}
|
|
454
|
+
else if (typeof cb === "function") {
|
|
455
|
+
if (typeof optionsOrCb !== "object")
|
|
456
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
457
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
458
|
+
}
|
|
459
|
+
else {
|
|
460
|
+
return this.send(command, optionsOrCb);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
tagResource(args, optionsOrCb, cb) {
|
|
464
|
+
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
465
|
+
if (typeof optionsOrCb === "function") {
|
|
466
|
+
this.send(command, optionsOrCb);
|
|
467
|
+
}
|
|
468
|
+
else if (typeof cb === "function") {
|
|
469
|
+
if (typeof optionsOrCb !== "object")
|
|
470
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
471
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
return this.send(command, optionsOrCb);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
untagResource(args, optionsOrCb, cb) {
|
|
478
|
+
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
479
|
+
if (typeof optionsOrCb === "function") {
|
|
480
|
+
this.send(command, optionsOrCb);
|
|
481
|
+
}
|
|
482
|
+
else if (typeof cb === "function") {
|
|
483
|
+
if (typeof optionsOrCb !== "object")
|
|
484
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
485
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
return this.send(command, optionsOrCb);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
updateEndpointAccess(args, optionsOrCb, cb) {
|
|
492
|
+
const command = new UpdateEndpointAccessCommand_1.UpdateEndpointAccessCommand(args);
|
|
493
|
+
if (typeof optionsOrCb === "function") {
|
|
494
|
+
this.send(command, optionsOrCb);
|
|
495
|
+
}
|
|
496
|
+
else if (typeof cb === "function") {
|
|
497
|
+
if (typeof optionsOrCb !== "object")
|
|
498
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
499
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
return this.send(command, optionsOrCb);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
updateNamespace(args, optionsOrCb, cb) {
|
|
506
|
+
const command = new UpdateNamespaceCommand_1.UpdateNamespaceCommand(args);
|
|
507
|
+
if (typeof optionsOrCb === "function") {
|
|
508
|
+
this.send(command, optionsOrCb);
|
|
509
|
+
}
|
|
510
|
+
else if (typeof cb === "function") {
|
|
511
|
+
if (typeof optionsOrCb !== "object")
|
|
512
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
513
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
return this.send(command, optionsOrCb);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
updateSnapshot(args, optionsOrCb, cb) {
|
|
520
|
+
const command = new UpdateSnapshotCommand_1.UpdateSnapshotCommand(args);
|
|
521
|
+
if (typeof optionsOrCb === "function") {
|
|
522
|
+
this.send(command, optionsOrCb);
|
|
523
|
+
}
|
|
524
|
+
else if (typeof cb === "function") {
|
|
525
|
+
if (typeof optionsOrCb !== "object")
|
|
526
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
527
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
return this.send(command, optionsOrCb);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
updateUsageLimit(args, optionsOrCb, cb) {
|
|
534
|
+
const command = new UpdateUsageLimitCommand_1.UpdateUsageLimitCommand(args);
|
|
535
|
+
if (typeof optionsOrCb === "function") {
|
|
536
|
+
this.send(command, optionsOrCb);
|
|
537
|
+
}
|
|
538
|
+
else if (typeof cb === "function") {
|
|
539
|
+
if (typeof optionsOrCb !== "object")
|
|
540
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
541
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
return this.send(command, optionsOrCb);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
updateWorkgroup(args, optionsOrCb, cb) {
|
|
548
|
+
const command = new UpdateWorkgroupCommand_1.UpdateWorkgroupCommand(args);
|
|
549
|
+
if (typeof optionsOrCb === "function") {
|
|
550
|
+
this.send(command, optionsOrCb);
|
|
551
|
+
}
|
|
552
|
+
else if (typeof cb === "function") {
|
|
553
|
+
if (typeof optionsOrCb !== "object")
|
|
554
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
555
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
return this.send(command, optionsOrCb);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
exports.RedshiftServerless = RedshiftServerless;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RedshiftServerlessClient = void 0;
|
|
4
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
+
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
6
|
+
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
7
|
+
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
8
|
+
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
9
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
10
|
+
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
11
|
+
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
14
|
+
class RedshiftServerlessClient extends smithy_client_1.Client {
|
|
15
|
+
constructor(configuration) {
|
|
16
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
17
|
+
const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
|
|
18
|
+
const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
|
|
19
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
20
|
+
const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
|
|
21
|
+
const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
|
|
22
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
23
|
+
super(_config_6);
|
|
24
|
+
this.config = _config_6;
|
|
25
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
26
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
27
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
28
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
30
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
31
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
32
|
+
}
|
|
33
|
+
destroy() {
|
|
34
|
+
super.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.RedshiftServerlessClient = RedshiftServerlessClient;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConvertRecoveryPointToSnapshotCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ConvertRecoveryPointToSnapshotCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "RedshiftServerlessClient";
|
|
18
|
+
const commandName = "ConvertRecoveryPointToSnapshotCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ConvertRecoveryPointToSnapshotRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ConvertRecoveryPointToSnapshotResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ConvertRecoveryPointToSnapshotCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ConvertRecoveryPointToSnapshotCommand = ConvertRecoveryPointToSnapshotCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateEndpointAccessCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class CreateEndpointAccessCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "RedshiftServerlessClient";
|
|
18
|
+
const commandName = "CreateEndpointAccessCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateEndpointAccessRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateEndpointAccessResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1CreateEndpointAccessCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1CreateEndpointAccessCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateEndpointAccessCommand = CreateEndpointAccessCommand;
|