@aws-sdk/client-dsql 3.901.0 → 3.906.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/index.js +888 -1083
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,1130 +1,935 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
var utilWaiter = require('@smithy/util-waiter');
|
|
21
|
+
|
|
22
|
+
const resolveClientEndpointParameters = (options) => {
|
|
23
|
+
return Object.assign(options, {
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "dsql",
|
|
26
|
+
});
|
|
10
27
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
32
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
-
ClusterStatus: () => ClusterStatus,
|
|
26
|
-
ConflictException: () => ConflictException,
|
|
27
|
-
CreateClusterCommand: () => CreateClusterCommand,
|
|
28
|
-
DSQL: () => DSQL,
|
|
29
|
-
DSQLClient: () => DSQLClient,
|
|
30
|
-
DSQLServiceException: () => DSQLServiceException,
|
|
31
|
-
DeleteClusterCommand: () => DeleteClusterCommand,
|
|
32
|
-
EncryptionStatus: () => EncryptionStatus,
|
|
33
|
-
EncryptionType: () => EncryptionType,
|
|
34
|
-
GetClusterCommand: () => GetClusterCommand,
|
|
35
|
-
GetVpcEndpointServiceNameCommand: () => GetVpcEndpointServiceNameCommand,
|
|
36
|
-
InternalServerException: () => InternalServerException,
|
|
37
|
-
ListClustersCommand: () => ListClustersCommand,
|
|
38
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
39
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
40
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
41
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
42
|
-
ThrottlingException: () => ThrottlingException,
|
|
43
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
44
|
-
UpdateClusterCommand: () => UpdateClusterCommand,
|
|
45
|
-
ValidationException: () => ValidationException,
|
|
46
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
47
|
-
__Client: () => import_smithy_client.Client,
|
|
48
|
-
paginateListClusters: () => paginateListClusters,
|
|
49
|
-
waitForClusterActive: () => waitForClusterActive,
|
|
50
|
-
waitForClusterNotExists: () => waitForClusterNotExists,
|
|
51
|
-
waitUntilClusterActive: () => waitUntilClusterActive,
|
|
52
|
-
waitUntilClusterNotExists: () => waitUntilClusterNotExists
|
|
53
|
-
});
|
|
54
|
-
module.exports = __toCommonJS(index_exports);
|
|
55
|
-
|
|
56
|
-
// src/DSQLClient.ts
|
|
57
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
58
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
59
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
60
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
61
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
62
|
-
var import_core = require("@smithy/core");
|
|
63
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
64
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
65
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
66
33
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
80
71
|
};
|
|
81
72
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
88
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
89
78
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
79
|
+
class DSQLClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultDSQLHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
118
107
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
124
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
125
|
-
credentials: config.credentials()
|
|
126
|
-
};
|
|
127
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
128
|
-
|
|
129
|
-
// src/runtimeExtensions.ts
|
|
130
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
131
|
-
const extensionConfiguration = Object.assign(
|
|
132
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
133
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
134
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
135
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
136
|
-
);
|
|
137
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
138
|
-
return Object.assign(
|
|
139
|
-
runtimeConfig,
|
|
140
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
141
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
142
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
143
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
144
|
-
);
|
|
145
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
146
112
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDSQLHttpAuthSchemeParametersProvider,
|
|
178
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
179
|
-
"aws.auth#sigv4": config.credentials
|
|
180
|
-
}), "identityProviderConfigProvider")
|
|
181
|
-
})
|
|
182
|
-
);
|
|
183
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
187
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
188
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
189
|
-
*/
|
|
190
|
-
destroy() {
|
|
191
|
-
super.destroy();
|
|
192
|
-
}
|
|
113
|
+
class DSQLServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, DSQLServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends DSQLServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const ClusterStatus = {
|
|
133
|
+
ACTIVE: "ACTIVE",
|
|
134
|
+
CREATING: "CREATING",
|
|
135
|
+
DELETED: "DELETED",
|
|
136
|
+
DELETING: "DELETING",
|
|
137
|
+
FAILED: "FAILED",
|
|
138
|
+
IDLE: "IDLE",
|
|
139
|
+
INACTIVE: "INACTIVE",
|
|
140
|
+
PENDING_DELETE: "PENDING_DELETE",
|
|
141
|
+
PENDING_SETUP: "PENDING_SETUP",
|
|
142
|
+
UPDATING: "UPDATING",
|
|
193
143
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* @internal
|
|
217
|
-
*/
|
|
218
|
-
constructor(options) {
|
|
219
|
-
super(options);
|
|
220
|
-
Object.setPrototypeOf(this, _DSQLServiceException.prototype);
|
|
221
|
-
}
|
|
144
|
+
class ConflictException extends DSQLServiceException {
|
|
145
|
+
name = "ConflictException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
resourceId;
|
|
148
|
+
resourceType;
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "ConflictException",
|
|
152
|
+
$fault: "client",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
156
|
+
this.resourceId = opts.resourceId;
|
|
157
|
+
this.resourceType = opts.resourceType;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
const EncryptionStatus = {
|
|
161
|
+
ENABLED: "ENABLED",
|
|
162
|
+
ENABLING: "ENABLING",
|
|
163
|
+
KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE",
|
|
164
|
+
UPDATING: "UPDATING",
|
|
222
165
|
};
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
166
|
+
const EncryptionType = {
|
|
167
|
+
AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
|
|
168
|
+
CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
|
|
169
|
+
};
|
|
170
|
+
class InternalServerException extends DSQLServiceException {
|
|
171
|
+
name = "InternalServerException";
|
|
172
|
+
$fault = "server";
|
|
173
|
+
$retryable = {};
|
|
174
|
+
retryAfterSeconds;
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "InternalServerException",
|
|
178
|
+
$fault: "server",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
182
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class ServiceQuotaExceededException extends DSQLServiceException {
|
|
186
|
+
name = "ServiceQuotaExceededException";
|
|
187
|
+
$fault = "client";
|
|
188
|
+
resourceId;
|
|
189
|
+
resourceType;
|
|
190
|
+
serviceCode;
|
|
191
|
+
quotaCode;
|
|
192
|
+
constructor(opts) {
|
|
193
|
+
super({
|
|
194
|
+
name: "ServiceQuotaExceededException",
|
|
195
|
+
$fault: "client",
|
|
196
|
+
...opts,
|
|
197
|
+
});
|
|
198
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
199
|
+
this.resourceId = opts.resourceId;
|
|
200
|
+
this.resourceType = opts.resourceType;
|
|
201
|
+
this.serviceCode = opts.serviceCode;
|
|
202
|
+
this.quotaCode = opts.quotaCode;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class ThrottlingException extends DSQLServiceException {
|
|
206
|
+
name = "ThrottlingException";
|
|
207
|
+
$fault = "client";
|
|
208
|
+
$retryable = {
|
|
209
|
+
throttling: true,
|
|
210
|
+
};
|
|
211
|
+
serviceCode;
|
|
212
|
+
quotaCode;
|
|
213
|
+
retryAfterSeconds;
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "ThrottlingException",
|
|
217
|
+
$fault: "client",
|
|
218
|
+
...opts,
|
|
219
|
+
});
|
|
220
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
221
|
+
this.serviceCode = opts.serviceCode;
|
|
222
|
+
this.quotaCode = opts.quotaCode;
|
|
223
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
const ValidationExceptionReason = {
|
|
227
|
+
CANNOT_PARSE: "cannotParse",
|
|
228
|
+
DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled",
|
|
229
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
230
|
+
OTHER: "other",
|
|
231
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
232
|
+
};
|
|
233
|
+
class ValidationException extends DSQLServiceException {
|
|
234
|
+
name = "ValidationException";
|
|
235
|
+
$fault = "client";
|
|
236
|
+
reason;
|
|
237
|
+
fieldList;
|
|
238
|
+
constructor(opts) {
|
|
239
|
+
super({
|
|
240
|
+
name: "ValidationException",
|
|
241
|
+
$fault: "client",
|
|
242
|
+
...opts,
|
|
243
|
+
});
|
|
244
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
245
|
+
this.reason = opts.reason;
|
|
246
|
+
this.fieldList = opts.fieldList;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
class ResourceNotFoundException extends DSQLServiceException {
|
|
250
|
+
name = "ResourceNotFoundException";
|
|
251
|
+
$fault = "client";
|
|
252
|
+
resourceId;
|
|
253
|
+
resourceType;
|
|
254
|
+
constructor(opts) {
|
|
255
|
+
super({
|
|
256
|
+
name: "ResourceNotFoundException",
|
|
257
|
+
$fault: "client",
|
|
258
|
+
...opts,
|
|
259
|
+
});
|
|
260
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
261
|
+
this.resourceId = opts.resourceId;
|
|
262
|
+
this.resourceType = opts.resourceType;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const se_CreateClusterCommand = async (input, context) => {
|
|
267
|
+
const b = core.requestBuilder(input, context);
|
|
268
|
+
const headers = {
|
|
269
|
+
"content-type": "application/json",
|
|
270
|
+
};
|
|
271
|
+
b.bp("/cluster");
|
|
272
|
+
let body;
|
|
273
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
274
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
275
|
+
deletionProtectionEnabled: [],
|
|
276
|
+
kmsEncryptionKey: [],
|
|
277
|
+
multiRegionProperties: (_) => smithyClient._json(_),
|
|
278
|
+
tags: (_) => smithyClient._json(_),
|
|
279
|
+
}));
|
|
280
|
+
b.m("POST").h(headers).b(body);
|
|
281
|
+
return b.build();
|
|
282
|
+
};
|
|
283
|
+
const se_DeleteClusterCommand = async (input, context) => {
|
|
284
|
+
const b = core.requestBuilder(input, context);
|
|
285
|
+
const headers = {};
|
|
286
|
+
b.bp("/cluster/{identifier}");
|
|
287
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
288
|
+
const query = smithyClient.map({
|
|
289
|
+
[_ct]: [, input[_cT] ?? uuid.v4()],
|
|
239
290
|
});
|
|
240
|
-
|
|
241
|
-
|
|
291
|
+
let body;
|
|
292
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
293
|
+
return b.build();
|
|
294
|
+
};
|
|
295
|
+
const se_GetClusterCommand = async (input, context) => {
|
|
296
|
+
const b = core.requestBuilder(input, context);
|
|
297
|
+
const headers = {};
|
|
298
|
+
b.bp("/cluster/{identifier}");
|
|
299
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
300
|
+
let body;
|
|
301
|
+
b.m("GET").h(headers).b(body);
|
|
302
|
+
return b.build();
|
|
242
303
|
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
PENDING_DELETE: "PENDING_DELETE",
|
|
252
|
-
PENDING_SETUP: "PENDING_SETUP",
|
|
253
|
-
UPDATING: "UPDATING"
|
|
304
|
+
const se_GetVpcEndpointServiceNameCommand = async (input, context) => {
|
|
305
|
+
const b = core.requestBuilder(input, context);
|
|
306
|
+
const headers = {};
|
|
307
|
+
b.bp("/clusters/{identifier}/vpc-endpoint-service-name");
|
|
308
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
309
|
+
let body;
|
|
310
|
+
b.m("GET").h(headers).b(body);
|
|
311
|
+
return b.build();
|
|
254
312
|
};
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
* <p>Resource Id</p>
|
|
263
|
-
* @public
|
|
264
|
-
*/
|
|
265
|
-
resourceId;
|
|
266
|
-
/**
|
|
267
|
-
* <p>Resource Type</p>
|
|
268
|
-
* @public
|
|
269
|
-
*/
|
|
270
|
-
resourceType;
|
|
271
|
-
/**
|
|
272
|
-
* @internal
|
|
273
|
-
*/
|
|
274
|
-
constructor(opts) {
|
|
275
|
-
super({
|
|
276
|
-
name: "ConflictException",
|
|
277
|
-
$fault: "client",
|
|
278
|
-
...opts
|
|
313
|
+
const se_ListClustersCommand = async (input, context) => {
|
|
314
|
+
const b = core.requestBuilder(input, context);
|
|
315
|
+
const headers = {};
|
|
316
|
+
b.bp("/cluster");
|
|
317
|
+
const query = smithyClient.map({
|
|
318
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
319
|
+
[_nt]: [, input[_nT]],
|
|
279
320
|
});
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
321
|
+
let body;
|
|
322
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
323
|
+
return b.build();
|
|
284
324
|
};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
325
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
326
|
+
const b = core.requestBuilder(input, context);
|
|
327
|
+
const headers = {};
|
|
328
|
+
b.bp("/tags/{resourceArn}");
|
|
329
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
330
|
+
let body;
|
|
331
|
+
b.m("GET").h(headers).b(body);
|
|
332
|
+
return b.build();
|
|
290
333
|
};
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
334
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
335
|
+
const b = core.requestBuilder(input, context);
|
|
336
|
+
const headers = {
|
|
337
|
+
"content-type": "application/json",
|
|
338
|
+
};
|
|
339
|
+
b.bp("/tags/{resourceArn}");
|
|
340
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
341
|
+
let body;
|
|
342
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
343
|
+
tags: (_) => smithyClient._json(_),
|
|
344
|
+
}));
|
|
345
|
+
b.m("POST").h(headers).b(body);
|
|
346
|
+
return b.build();
|
|
294
347
|
};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* <p>Retry after seconds.</p>
|
|
304
|
-
* @public
|
|
305
|
-
*/
|
|
306
|
-
retryAfterSeconds;
|
|
307
|
-
/**
|
|
308
|
-
* @internal
|
|
309
|
-
*/
|
|
310
|
-
constructor(opts) {
|
|
311
|
-
super({
|
|
312
|
-
name: "InternalServerException",
|
|
313
|
-
$fault: "server",
|
|
314
|
-
...opts
|
|
348
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
349
|
+
const b = core.requestBuilder(input, context);
|
|
350
|
+
const headers = {};
|
|
351
|
+
b.bp("/tags/{resourceArn}");
|
|
352
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
353
|
+
const query = smithyClient.map({
|
|
354
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
315
355
|
});
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
356
|
+
let body;
|
|
357
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
358
|
+
return b.build();
|
|
319
359
|
};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
* @public
|
|
344
|
-
*/
|
|
345
|
-
quotaCode;
|
|
346
|
-
/**
|
|
347
|
-
* @internal
|
|
348
|
-
*/
|
|
349
|
-
constructor(opts) {
|
|
350
|
-
super({
|
|
351
|
-
name: "ServiceQuotaExceededException",
|
|
352
|
-
$fault: "client",
|
|
353
|
-
...opts
|
|
360
|
+
const se_UpdateClusterCommand = async (input, context) => {
|
|
361
|
+
const b = core.requestBuilder(input, context);
|
|
362
|
+
const headers = {
|
|
363
|
+
"content-type": "application/json",
|
|
364
|
+
};
|
|
365
|
+
b.bp("/cluster/{identifier}");
|
|
366
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
367
|
+
let body;
|
|
368
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
369
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
370
|
+
deletionProtectionEnabled: [],
|
|
371
|
+
kmsEncryptionKey: [],
|
|
372
|
+
multiRegionProperties: (_) => smithyClient._json(_),
|
|
373
|
+
}));
|
|
374
|
+
b.m("POST").h(headers).b(body);
|
|
375
|
+
return b.build();
|
|
376
|
+
};
|
|
377
|
+
const de_CreateClusterCommand = async (output, context) => {
|
|
378
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
379
|
+
return de_CommandError(output, context);
|
|
380
|
+
}
|
|
381
|
+
const contents = smithyClient.map({
|
|
382
|
+
$metadata: deserializeMetadata(output),
|
|
354
383
|
});
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
384
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
385
|
+
const doc = smithyClient.take(data, {
|
|
386
|
+
arn: smithyClient.expectString,
|
|
387
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
388
|
+
deletionProtectionEnabled: smithyClient.expectBoolean,
|
|
389
|
+
encryptionDetails: smithyClient._json,
|
|
390
|
+
identifier: smithyClient.expectString,
|
|
391
|
+
multiRegionProperties: smithyClient._json,
|
|
392
|
+
status: smithyClient.expectString,
|
|
393
|
+
});
|
|
394
|
+
Object.assign(contents, doc);
|
|
395
|
+
return contents;
|
|
361
396
|
};
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
$retryable = {
|
|
369
|
-
throttling: true
|
|
370
|
-
};
|
|
371
|
-
/**
|
|
372
|
-
* <p>The request exceeds a service quota.</p>
|
|
373
|
-
* @public
|
|
374
|
-
*/
|
|
375
|
-
serviceCode;
|
|
376
|
-
/**
|
|
377
|
-
* <p>The request exceeds a request rate quota.</p>
|
|
378
|
-
* @public
|
|
379
|
-
*/
|
|
380
|
-
quotaCode;
|
|
381
|
-
/**
|
|
382
|
-
* <p>The request exceeds a request rate quota. Retry after seconds.</p>
|
|
383
|
-
* @public
|
|
384
|
-
*/
|
|
385
|
-
retryAfterSeconds;
|
|
386
|
-
/**
|
|
387
|
-
* @internal
|
|
388
|
-
*/
|
|
389
|
-
constructor(opts) {
|
|
390
|
-
super({
|
|
391
|
-
name: "ThrottlingException",
|
|
392
|
-
$fault: "client",
|
|
393
|
-
...opts
|
|
397
|
+
const de_DeleteClusterCommand = async (output, context) => {
|
|
398
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
399
|
+
return de_CommandError(output, context);
|
|
400
|
+
}
|
|
401
|
+
const contents = smithyClient.map({
|
|
402
|
+
$metadata: deserializeMetadata(output),
|
|
394
403
|
});
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
404
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
405
|
+
const doc = smithyClient.take(data, {
|
|
406
|
+
arn: smithyClient.expectString,
|
|
407
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
408
|
+
identifier: smithyClient.expectString,
|
|
409
|
+
status: smithyClient.expectString,
|
|
410
|
+
});
|
|
411
|
+
Object.assign(contents, doc);
|
|
412
|
+
return contents;
|
|
400
413
|
};
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
414
|
+
const de_GetClusterCommand = async (output, context) => {
|
|
415
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
|
+
return de_CommandError(output, context);
|
|
417
|
+
}
|
|
418
|
+
const contents = smithyClient.map({
|
|
419
|
+
$metadata: deserializeMetadata(output),
|
|
420
|
+
});
|
|
421
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
422
|
+
const doc = smithyClient.take(data, {
|
|
423
|
+
arn: smithyClient.expectString,
|
|
424
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
425
|
+
deletionProtectionEnabled: smithyClient.expectBoolean,
|
|
426
|
+
encryptionDetails: smithyClient._json,
|
|
427
|
+
identifier: smithyClient.expectString,
|
|
428
|
+
multiRegionProperties: smithyClient._json,
|
|
429
|
+
status: smithyClient.expectString,
|
|
430
|
+
tags: smithyClient._json,
|
|
431
|
+
});
|
|
432
|
+
Object.assign(contents, doc);
|
|
433
|
+
return contents;
|
|
407
434
|
};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
reason;
|
|
419
|
-
/**
|
|
420
|
-
* <p>A list of fields that didn't validate.</p>
|
|
421
|
-
* @public
|
|
422
|
-
*/
|
|
423
|
-
fieldList;
|
|
424
|
-
/**
|
|
425
|
-
* @internal
|
|
426
|
-
*/
|
|
427
|
-
constructor(opts) {
|
|
428
|
-
super({
|
|
429
|
-
name: "ValidationException",
|
|
430
|
-
$fault: "client",
|
|
431
|
-
...opts
|
|
435
|
+
const de_GetVpcEndpointServiceNameCommand = async (output, context) => {
|
|
436
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
437
|
+
return de_CommandError(output, context);
|
|
438
|
+
}
|
|
439
|
+
const contents = smithyClient.map({
|
|
440
|
+
$metadata: deserializeMetadata(output),
|
|
441
|
+
});
|
|
442
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
443
|
+
const doc = smithyClient.take(data, {
|
|
444
|
+
serviceName: smithyClient.expectString,
|
|
432
445
|
});
|
|
433
|
-
Object.
|
|
434
|
-
|
|
435
|
-
this.fieldList = opts.fieldList;
|
|
436
|
-
}
|
|
446
|
+
Object.assign(contents, doc);
|
|
447
|
+
return contents;
|
|
437
448
|
};
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* <p>The resource type could not be found.</p>
|
|
451
|
-
* @public
|
|
452
|
-
*/
|
|
453
|
-
resourceType;
|
|
454
|
-
/**
|
|
455
|
-
* @internal
|
|
456
|
-
*/
|
|
457
|
-
constructor(opts) {
|
|
458
|
-
super({
|
|
459
|
-
name: "ResourceNotFoundException",
|
|
460
|
-
$fault: "client",
|
|
461
|
-
...opts
|
|
449
|
+
const de_ListClustersCommand = async (output, context) => {
|
|
450
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
451
|
+
return de_CommandError(output, context);
|
|
452
|
+
}
|
|
453
|
+
const contents = smithyClient.map({
|
|
454
|
+
$metadata: deserializeMetadata(output),
|
|
455
|
+
});
|
|
456
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
457
|
+
const doc = smithyClient.take(data, {
|
|
458
|
+
clusters: smithyClient._json,
|
|
459
|
+
nextToken: smithyClient.expectString,
|
|
462
460
|
});
|
|
463
|
-
Object.
|
|
464
|
-
|
|
465
|
-
this.resourceType = opts.resourceType;
|
|
466
|
-
}
|
|
461
|
+
Object.assign(contents, doc);
|
|
462
|
+
return contents;
|
|
467
463
|
};
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
kmsEncryptionKey: [],
|
|
482
|
-
multiRegionProperties: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "multiRegionProperties"),
|
|
483
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
484
|
-
})
|
|
485
|
-
);
|
|
486
|
-
b.m("POST").h(headers).b(body);
|
|
487
|
-
return b.build();
|
|
488
|
-
}, "se_CreateClusterCommand");
|
|
489
|
-
var se_DeleteClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
490
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
491
|
-
const headers = {};
|
|
492
|
-
b.bp("/cluster/{identifier}");
|
|
493
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
494
|
-
const query = (0, import_smithy_client.map)({
|
|
495
|
-
[_ct]: [, input[_cT] ?? (0, import_uuid.v4)()]
|
|
496
|
-
});
|
|
497
|
-
let body;
|
|
498
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
499
|
-
return b.build();
|
|
500
|
-
}, "se_DeleteClusterCommand");
|
|
501
|
-
var se_GetClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
502
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
503
|
-
const headers = {};
|
|
504
|
-
b.bp("/cluster/{identifier}");
|
|
505
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
506
|
-
let body;
|
|
507
|
-
b.m("GET").h(headers).b(body);
|
|
508
|
-
return b.build();
|
|
509
|
-
}, "se_GetClusterCommand");
|
|
510
|
-
var se_GetVpcEndpointServiceNameCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
511
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
512
|
-
const headers = {};
|
|
513
|
-
b.bp("/clusters/{identifier}/vpc-endpoint-service-name");
|
|
514
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
515
|
-
let body;
|
|
516
|
-
b.m("GET").h(headers).b(body);
|
|
517
|
-
return b.build();
|
|
518
|
-
}, "se_GetVpcEndpointServiceNameCommand");
|
|
519
|
-
var se_ListClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
520
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
521
|
-
const headers = {};
|
|
522
|
-
b.bp("/cluster");
|
|
523
|
-
const query = (0, import_smithy_client.map)({
|
|
524
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
525
|
-
[_nt]: [, input[_nT]]
|
|
526
|
-
});
|
|
527
|
-
let body;
|
|
528
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
529
|
-
return b.build();
|
|
530
|
-
}, "se_ListClustersCommand");
|
|
531
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
532
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
533
|
-
const headers = {};
|
|
534
|
-
b.bp("/tags/{resourceArn}");
|
|
535
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
536
|
-
let body;
|
|
537
|
-
b.m("GET").h(headers).b(body);
|
|
538
|
-
return b.build();
|
|
539
|
-
}, "se_ListTagsForResourceCommand");
|
|
540
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
541
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
542
|
-
const headers = {
|
|
543
|
-
"content-type": "application/json"
|
|
544
|
-
};
|
|
545
|
-
b.bp("/tags/{resourceArn}");
|
|
546
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
547
|
-
let body;
|
|
548
|
-
body = JSON.stringify(
|
|
549
|
-
(0, import_smithy_client.take)(input, {
|
|
550
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
551
|
-
})
|
|
552
|
-
);
|
|
553
|
-
b.m("POST").h(headers).b(body);
|
|
554
|
-
return b.build();
|
|
555
|
-
}, "se_TagResourceCommand");
|
|
556
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
557
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
558
|
-
const headers = {};
|
|
559
|
-
b.bp("/tags/{resourceArn}");
|
|
560
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
561
|
-
const query = (0, import_smithy_client.map)({
|
|
562
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
563
|
-
});
|
|
564
|
-
let body;
|
|
565
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
566
|
-
return b.build();
|
|
567
|
-
}, "se_UntagResourceCommand");
|
|
568
|
-
var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
569
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
570
|
-
const headers = {
|
|
571
|
-
"content-type": "application/json"
|
|
572
|
-
};
|
|
573
|
-
b.bp("/cluster/{identifier}");
|
|
574
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
575
|
-
let body;
|
|
576
|
-
body = JSON.stringify(
|
|
577
|
-
(0, import_smithy_client.take)(input, {
|
|
578
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
579
|
-
deletionProtectionEnabled: [],
|
|
580
|
-
kmsEncryptionKey: [],
|
|
581
|
-
multiRegionProperties: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "multiRegionProperties")
|
|
582
|
-
})
|
|
583
|
-
);
|
|
584
|
-
b.m("POST").h(headers).b(body);
|
|
585
|
-
return b.build();
|
|
586
|
-
}, "se_UpdateClusterCommand");
|
|
587
|
-
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
588
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
589
|
-
return de_CommandError(output, context);
|
|
590
|
-
}
|
|
591
|
-
const contents = (0, import_smithy_client.map)({
|
|
592
|
-
$metadata: deserializeMetadata(output)
|
|
593
|
-
});
|
|
594
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
595
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
596
|
-
arn: import_smithy_client.expectString,
|
|
597
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
598
|
-
deletionProtectionEnabled: import_smithy_client.expectBoolean,
|
|
599
|
-
encryptionDetails: import_smithy_client._json,
|
|
600
|
-
identifier: import_smithy_client.expectString,
|
|
601
|
-
multiRegionProperties: import_smithy_client._json,
|
|
602
|
-
status: import_smithy_client.expectString
|
|
603
|
-
});
|
|
604
|
-
Object.assign(contents, doc);
|
|
605
|
-
return contents;
|
|
606
|
-
}, "de_CreateClusterCommand");
|
|
607
|
-
var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
608
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
609
|
-
return de_CommandError(output, context);
|
|
610
|
-
}
|
|
611
|
-
const contents = (0, import_smithy_client.map)({
|
|
612
|
-
$metadata: deserializeMetadata(output)
|
|
613
|
-
});
|
|
614
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
615
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
616
|
-
arn: import_smithy_client.expectString,
|
|
617
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
618
|
-
identifier: import_smithy_client.expectString,
|
|
619
|
-
status: import_smithy_client.expectString
|
|
620
|
-
});
|
|
621
|
-
Object.assign(contents, doc);
|
|
622
|
-
return contents;
|
|
623
|
-
}, "de_DeleteClusterCommand");
|
|
624
|
-
var de_GetClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
625
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
626
|
-
return de_CommandError(output, context);
|
|
627
|
-
}
|
|
628
|
-
const contents = (0, import_smithy_client.map)({
|
|
629
|
-
$metadata: deserializeMetadata(output)
|
|
630
|
-
});
|
|
631
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
632
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
633
|
-
arn: import_smithy_client.expectString,
|
|
634
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
635
|
-
deletionProtectionEnabled: import_smithy_client.expectBoolean,
|
|
636
|
-
encryptionDetails: import_smithy_client._json,
|
|
637
|
-
identifier: import_smithy_client.expectString,
|
|
638
|
-
multiRegionProperties: import_smithy_client._json,
|
|
639
|
-
status: import_smithy_client.expectString,
|
|
640
|
-
tags: import_smithy_client._json
|
|
641
|
-
});
|
|
642
|
-
Object.assign(contents, doc);
|
|
643
|
-
return contents;
|
|
644
|
-
}, "de_GetClusterCommand");
|
|
645
|
-
var de_GetVpcEndpointServiceNameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
646
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
647
|
-
return de_CommandError(output, context);
|
|
648
|
-
}
|
|
649
|
-
const contents = (0, import_smithy_client.map)({
|
|
650
|
-
$metadata: deserializeMetadata(output)
|
|
651
|
-
});
|
|
652
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
653
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
654
|
-
serviceName: import_smithy_client.expectString
|
|
655
|
-
});
|
|
656
|
-
Object.assign(contents, doc);
|
|
657
|
-
return contents;
|
|
658
|
-
}, "de_GetVpcEndpointServiceNameCommand");
|
|
659
|
-
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
660
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
|
-
return de_CommandError(output, context);
|
|
662
|
-
}
|
|
663
|
-
const contents = (0, import_smithy_client.map)({
|
|
664
|
-
$metadata: deserializeMetadata(output)
|
|
665
|
-
});
|
|
666
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
667
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
668
|
-
clusters: import_smithy_client._json,
|
|
669
|
-
nextToken: import_smithy_client.expectString
|
|
670
|
-
});
|
|
671
|
-
Object.assign(contents, doc);
|
|
672
|
-
return contents;
|
|
673
|
-
}, "de_ListClustersCommand");
|
|
674
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
675
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
|
-
return de_CommandError(output, context);
|
|
677
|
-
}
|
|
678
|
-
const contents = (0, import_smithy_client.map)({
|
|
679
|
-
$metadata: deserializeMetadata(output)
|
|
680
|
-
});
|
|
681
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
682
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
683
|
-
tags: import_smithy_client._json
|
|
684
|
-
});
|
|
685
|
-
Object.assign(contents, doc);
|
|
686
|
-
return contents;
|
|
687
|
-
}, "de_ListTagsForResourceCommand");
|
|
688
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
689
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
690
|
-
return de_CommandError(output, context);
|
|
691
|
-
}
|
|
692
|
-
const contents = (0, import_smithy_client.map)({
|
|
693
|
-
$metadata: deserializeMetadata(output)
|
|
694
|
-
});
|
|
695
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
696
|
-
return contents;
|
|
697
|
-
}, "de_TagResourceCommand");
|
|
698
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
699
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
-
return de_CommandError(output, context);
|
|
701
|
-
}
|
|
702
|
-
const contents = (0, import_smithy_client.map)({
|
|
703
|
-
$metadata: deserializeMetadata(output)
|
|
704
|
-
});
|
|
705
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
706
|
-
return contents;
|
|
707
|
-
}, "de_UntagResourceCommand");
|
|
708
|
-
var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
709
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
710
|
-
return de_CommandError(output, context);
|
|
711
|
-
}
|
|
712
|
-
const contents = (0, import_smithy_client.map)({
|
|
713
|
-
$metadata: deserializeMetadata(output)
|
|
714
|
-
});
|
|
715
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
716
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
717
|
-
arn: import_smithy_client.expectString,
|
|
718
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
719
|
-
identifier: import_smithy_client.expectString,
|
|
720
|
-
status: import_smithy_client.expectString
|
|
721
|
-
});
|
|
722
|
-
Object.assign(contents, doc);
|
|
723
|
-
return contents;
|
|
724
|
-
}, "de_UpdateClusterCommand");
|
|
725
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
726
|
-
const parsedOutput = {
|
|
727
|
-
...output,
|
|
728
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
729
|
-
};
|
|
730
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
731
|
-
switch (errorCode) {
|
|
732
|
-
case "AccessDeniedException":
|
|
733
|
-
case "com.amazonaws.dsql#AccessDeniedException":
|
|
734
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ConflictException":
|
|
736
|
-
case "com.amazonaws.dsql#ConflictException":
|
|
737
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
738
|
-
case "InternalServerException":
|
|
739
|
-
case "com.amazonaws.dsql#InternalServerException":
|
|
740
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ServiceQuotaExceededException":
|
|
742
|
-
case "com.amazonaws.dsql#ServiceQuotaExceededException":
|
|
743
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ThrottlingException":
|
|
745
|
-
case "com.amazonaws.dsql#ThrottlingException":
|
|
746
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ValidationException":
|
|
748
|
-
case "com.amazonaws.dsql#ValidationException":
|
|
749
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ResourceNotFoundException":
|
|
751
|
-
case "com.amazonaws.dsql#ResourceNotFoundException":
|
|
752
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
753
|
-
default:
|
|
754
|
-
const parsedBody = parsedOutput.body;
|
|
755
|
-
return throwDefaultError({
|
|
756
|
-
output,
|
|
757
|
-
parsedBody,
|
|
758
|
-
errorCode
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
}, "de_CommandError");
|
|
762
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(DSQLServiceException);
|
|
763
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
764
|
-
const contents = (0, import_smithy_client.map)({});
|
|
765
|
-
const data = parsedOutput.body;
|
|
766
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
767
|
-
message: import_smithy_client.expectString
|
|
768
|
-
});
|
|
769
|
-
Object.assign(contents, doc);
|
|
770
|
-
const exception = new AccessDeniedException({
|
|
771
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
772
|
-
...contents
|
|
773
|
-
});
|
|
774
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
775
|
-
}, "de_AccessDeniedExceptionRes");
|
|
776
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
777
|
-
const contents = (0, import_smithy_client.map)({});
|
|
778
|
-
const data = parsedOutput.body;
|
|
779
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
780
|
-
message: import_smithy_client.expectString,
|
|
781
|
-
resourceId: import_smithy_client.expectString,
|
|
782
|
-
resourceType: import_smithy_client.expectString
|
|
783
|
-
});
|
|
784
|
-
Object.assign(contents, doc);
|
|
785
|
-
const exception = new ConflictException({
|
|
786
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
787
|
-
...contents
|
|
788
|
-
});
|
|
789
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
790
|
-
}, "de_ConflictExceptionRes");
|
|
791
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
792
|
-
const contents = (0, import_smithy_client.map)({
|
|
793
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
794
|
-
});
|
|
795
|
-
const data = parsedOutput.body;
|
|
796
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
797
|
-
message: import_smithy_client.expectString
|
|
798
|
-
});
|
|
799
|
-
Object.assign(contents, doc);
|
|
800
|
-
const exception = new InternalServerException({
|
|
801
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
802
|
-
...contents
|
|
803
|
-
});
|
|
804
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
805
|
-
}, "de_InternalServerExceptionRes");
|
|
806
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
807
|
-
const contents = (0, import_smithy_client.map)({});
|
|
808
|
-
const data = parsedOutput.body;
|
|
809
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
810
|
-
message: import_smithy_client.expectString,
|
|
811
|
-
resourceId: import_smithy_client.expectString,
|
|
812
|
-
resourceType: import_smithy_client.expectString
|
|
813
|
-
});
|
|
814
|
-
Object.assign(contents, doc);
|
|
815
|
-
const exception = new ResourceNotFoundException({
|
|
816
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
817
|
-
...contents
|
|
818
|
-
});
|
|
819
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
820
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
821
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
822
|
-
const contents = (0, import_smithy_client.map)({});
|
|
823
|
-
const data = parsedOutput.body;
|
|
824
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
825
|
-
message: import_smithy_client.expectString,
|
|
826
|
-
quotaCode: import_smithy_client.expectString,
|
|
827
|
-
resourceId: import_smithy_client.expectString,
|
|
828
|
-
resourceType: import_smithy_client.expectString,
|
|
829
|
-
serviceCode: import_smithy_client.expectString
|
|
830
|
-
});
|
|
831
|
-
Object.assign(contents, doc);
|
|
832
|
-
const exception = new ServiceQuotaExceededException({
|
|
833
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
834
|
-
...contents
|
|
835
|
-
});
|
|
836
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
837
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
838
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
839
|
-
const contents = (0, import_smithy_client.map)({
|
|
840
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
841
|
-
});
|
|
842
|
-
const data = parsedOutput.body;
|
|
843
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
844
|
-
message: import_smithy_client.expectString,
|
|
845
|
-
quotaCode: import_smithy_client.expectString,
|
|
846
|
-
serviceCode: import_smithy_client.expectString
|
|
847
|
-
});
|
|
848
|
-
Object.assign(contents, doc);
|
|
849
|
-
const exception = new ThrottlingException({
|
|
850
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
851
|
-
...contents
|
|
852
|
-
});
|
|
853
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
854
|
-
}, "de_ThrottlingExceptionRes");
|
|
855
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
856
|
-
const contents = (0, import_smithy_client.map)({});
|
|
857
|
-
const data = parsedOutput.body;
|
|
858
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
859
|
-
fieldList: import_smithy_client._json,
|
|
860
|
-
message: import_smithy_client.expectString,
|
|
861
|
-
reason: import_smithy_client.expectString
|
|
862
|
-
});
|
|
863
|
-
Object.assign(contents, doc);
|
|
864
|
-
const exception = new ValidationException({
|
|
865
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
866
|
-
...contents
|
|
867
|
-
});
|
|
868
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
869
|
-
}, "de_ValidationExceptionRes");
|
|
870
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
871
|
-
httpStatusCode: output.statusCode,
|
|
872
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
873
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
874
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
875
|
-
}), "deserializeMetadata");
|
|
876
|
-
var _cT = "clientToken";
|
|
877
|
-
var _ct = "client-token";
|
|
878
|
-
var _mR = "maxResults";
|
|
879
|
-
var _mr = "max-results";
|
|
880
|
-
var _nT = "nextToken";
|
|
881
|
-
var _nt = "next-token";
|
|
882
|
-
var _rAS = "retryAfterSeconds";
|
|
883
|
-
var _ra = "retry-after";
|
|
884
|
-
var _tK = "tagKeys";
|
|
885
|
-
|
|
886
|
-
// src/commands/CreateClusterCommand.ts
|
|
887
|
-
var CreateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
888
|
-
return [
|
|
889
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
890
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
891
|
-
];
|
|
892
|
-
}).s("DSQL", "CreateCluster", {}).n("DSQLClient", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
|
|
893
|
-
static {
|
|
894
|
-
__name(this, "CreateClusterCommand");
|
|
895
|
-
}
|
|
464
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
465
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
466
|
+
return de_CommandError(output, context);
|
|
467
|
+
}
|
|
468
|
+
const contents = smithyClient.map({
|
|
469
|
+
$metadata: deserializeMetadata(output),
|
|
470
|
+
});
|
|
471
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
472
|
+
const doc = smithyClient.take(data, {
|
|
473
|
+
tags: smithyClient._json,
|
|
474
|
+
});
|
|
475
|
+
Object.assign(contents, doc);
|
|
476
|
+
return contents;
|
|
896
477
|
};
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
];
|
|
907
|
-
}).s("DSQL", "DeleteCluster", {}).n("DSQLClient", "DeleteClusterCommand").f(void 0, void 0).ser(se_DeleteClusterCommand).de(de_DeleteClusterCommand).build() {
|
|
908
|
-
static {
|
|
909
|
-
__name(this, "DeleteClusterCommand");
|
|
910
|
-
}
|
|
478
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
479
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
+
return de_CommandError(output, context);
|
|
481
|
+
}
|
|
482
|
+
const contents = smithyClient.map({
|
|
483
|
+
$metadata: deserializeMetadata(output),
|
|
484
|
+
});
|
|
485
|
+
await smithyClient.collectBody(output.body, context);
|
|
486
|
+
return contents;
|
|
911
487
|
};
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
];
|
|
922
|
-
}).s("DSQL", "GetCluster", {}).n("DSQLClient", "GetClusterCommand").f(void 0, void 0).ser(se_GetClusterCommand).de(de_GetClusterCommand).build() {
|
|
923
|
-
static {
|
|
924
|
-
__name(this, "GetClusterCommand");
|
|
925
|
-
}
|
|
488
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
489
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
490
|
+
return de_CommandError(output, context);
|
|
491
|
+
}
|
|
492
|
+
const contents = smithyClient.map({
|
|
493
|
+
$metadata: deserializeMetadata(output),
|
|
494
|
+
});
|
|
495
|
+
await smithyClient.collectBody(output.body, context);
|
|
496
|
+
return contents;
|
|
926
497
|
};
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
(
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
498
|
+
const de_UpdateClusterCommand = async (output, context) => {
|
|
499
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
500
|
+
return de_CommandError(output, context);
|
|
501
|
+
}
|
|
502
|
+
const contents = smithyClient.map({
|
|
503
|
+
$metadata: deserializeMetadata(output),
|
|
504
|
+
});
|
|
505
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
506
|
+
const doc = smithyClient.take(data, {
|
|
507
|
+
arn: smithyClient.expectString,
|
|
508
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
509
|
+
identifier: smithyClient.expectString,
|
|
510
|
+
status: smithyClient.expectString,
|
|
511
|
+
});
|
|
512
|
+
Object.assign(contents, doc);
|
|
513
|
+
return contents;
|
|
941
514
|
};
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
515
|
+
const de_CommandError = async (output, context) => {
|
|
516
|
+
const parsedOutput = {
|
|
517
|
+
...output,
|
|
518
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
519
|
+
};
|
|
520
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
|
+
switch (errorCode) {
|
|
522
|
+
case "AccessDeniedException":
|
|
523
|
+
case "com.amazonaws.dsql#AccessDeniedException":
|
|
524
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
525
|
+
case "ConflictException":
|
|
526
|
+
case "com.amazonaws.dsql#ConflictException":
|
|
527
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
528
|
+
case "InternalServerException":
|
|
529
|
+
case "com.amazonaws.dsql#InternalServerException":
|
|
530
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
531
|
+
case "ServiceQuotaExceededException":
|
|
532
|
+
case "com.amazonaws.dsql#ServiceQuotaExceededException":
|
|
533
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
534
|
+
case "ThrottlingException":
|
|
535
|
+
case "com.amazonaws.dsql#ThrottlingException":
|
|
536
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
537
|
+
case "ValidationException":
|
|
538
|
+
case "com.amazonaws.dsql#ValidationException":
|
|
539
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
540
|
+
case "ResourceNotFoundException":
|
|
541
|
+
case "com.amazonaws.dsql#ResourceNotFoundException":
|
|
542
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
543
|
+
default:
|
|
544
|
+
const parsedBody = parsedOutput.body;
|
|
545
|
+
return throwDefaultError({
|
|
546
|
+
output,
|
|
547
|
+
parsedBody,
|
|
548
|
+
errorCode,
|
|
549
|
+
});
|
|
550
|
+
}
|
|
956
551
|
};
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
}
|
|
552
|
+
const throwDefaultError = smithyClient.withBaseException(DSQLServiceException);
|
|
553
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
554
|
+
const contents = smithyClient.map({});
|
|
555
|
+
const data = parsedOutput.body;
|
|
556
|
+
const doc = smithyClient.take(data, {
|
|
557
|
+
message: smithyClient.expectString,
|
|
558
|
+
});
|
|
559
|
+
Object.assign(contents, doc);
|
|
560
|
+
const exception = new AccessDeniedException({
|
|
561
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
562
|
+
...contents,
|
|
563
|
+
});
|
|
564
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
971
565
|
};
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
566
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
567
|
+
const contents = smithyClient.map({});
|
|
568
|
+
const data = parsedOutput.body;
|
|
569
|
+
const doc = smithyClient.take(data, {
|
|
570
|
+
message: smithyClient.expectString,
|
|
571
|
+
resourceId: smithyClient.expectString,
|
|
572
|
+
resourceType: smithyClient.expectString,
|
|
573
|
+
});
|
|
574
|
+
Object.assign(contents, doc);
|
|
575
|
+
const exception = new ConflictException({
|
|
576
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
577
|
+
...contents,
|
|
578
|
+
});
|
|
579
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
986
580
|
};
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
581
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
582
|
+
const contents = smithyClient.map({
|
|
583
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
584
|
+
});
|
|
585
|
+
const data = parsedOutput.body;
|
|
586
|
+
const doc = smithyClient.take(data, {
|
|
587
|
+
message: smithyClient.expectString,
|
|
588
|
+
});
|
|
589
|
+
Object.assign(contents, doc);
|
|
590
|
+
const exception = new InternalServerException({
|
|
591
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
592
|
+
...contents,
|
|
593
|
+
});
|
|
594
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1001
595
|
};
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
596
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
597
|
+
const contents = smithyClient.map({});
|
|
598
|
+
const data = parsedOutput.body;
|
|
599
|
+
const doc = smithyClient.take(data, {
|
|
600
|
+
message: smithyClient.expectString,
|
|
601
|
+
resourceId: smithyClient.expectString,
|
|
602
|
+
resourceType: smithyClient.expectString,
|
|
603
|
+
});
|
|
604
|
+
Object.assign(contents, doc);
|
|
605
|
+
const exception = new ResourceNotFoundException({
|
|
606
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
607
|
+
...contents,
|
|
608
|
+
});
|
|
609
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1016
610
|
};
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
611
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
612
|
+
const contents = smithyClient.map({});
|
|
613
|
+
const data = parsedOutput.body;
|
|
614
|
+
const doc = smithyClient.take(data, {
|
|
615
|
+
message: smithyClient.expectString,
|
|
616
|
+
quotaCode: smithyClient.expectString,
|
|
617
|
+
resourceId: smithyClient.expectString,
|
|
618
|
+
resourceType: smithyClient.expectString,
|
|
619
|
+
serviceCode: smithyClient.expectString,
|
|
620
|
+
});
|
|
621
|
+
Object.assign(contents, doc);
|
|
622
|
+
const exception = new ServiceQuotaExceededException({
|
|
623
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
624
|
+
...contents,
|
|
625
|
+
});
|
|
626
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1029
627
|
};
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
628
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
629
|
+
const contents = smithyClient.map({
|
|
630
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
631
|
+
});
|
|
632
|
+
const data = parsedOutput.body;
|
|
633
|
+
const doc = smithyClient.take(data, {
|
|
634
|
+
message: smithyClient.expectString,
|
|
635
|
+
quotaCode: smithyClient.expectString,
|
|
636
|
+
serviceCode: smithyClient.expectString,
|
|
637
|
+
});
|
|
638
|
+
Object.assign(contents, doc);
|
|
639
|
+
const exception = new ThrottlingException({
|
|
640
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
641
|
+
...contents,
|
|
642
|
+
});
|
|
643
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1034
644
|
};
|
|
1035
|
-
(
|
|
1036
|
-
|
|
1037
|
-
|
|
645
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
646
|
+
const contents = smithyClient.map({});
|
|
647
|
+
const data = parsedOutput.body;
|
|
648
|
+
const doc = smithyClient.take(data, {
|
|
649
|
+
fieldList: smithyClient._json,
|
|
650
|
+
message: smithyClient.expectString,
|
|
651
|
+
reason: smithyClient.expectString,
|
|
652
|
+
});
|
|
653
|
+
Object.assign(contents, doc);
|
|
654
|
+
const exception = new ValidationException({
|
|
655
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
656
|
+
...contents,
|
|
657
|
+
});
|
|
658
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
659
|
+
};
|
|
660
|
+
const deserializeMetadata = (output) => ({
|
|
661
|
+
httpStatusCode: output.statusCode,
|
|
662
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
663
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
664
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
665
|
+
});
|
|
666
|
+
const _cT = "clientToken";
|
|
667
|
+
const _ct = "client-token";
|
|
668
|
+
const _mR = "maxResults";
|
|
669
|
+
const _mr = "max-results";
|
|
670
|
+
const _nT = "nextToken";
|
|
671
|
+
const _nt = "next-token";
|
|
672
|
+
const _rAS = "retryAfterSeconds";
|
|
673
|
+
const _ra = "retry-after";
|
|
674
|
+
const _tK = "tagKeys";
|
|
675
|
+
|
|
676
|
+
class CreateClusterCommand extends smithyClient.Command
|
|
677
|
+
.classBuilder()
|
|
678
|
+
.ep(commonParams)
|
|
679
|
+
.m(function (Command, cs, config, o) {
|
|
680
|
+
return [
|
|
681
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
682
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
683
|
+
];
|
|
684
|
+
})
|
|
685
|
+
.s("DSQL", "CreateCluster", {})
|
|
686
|
+
.n("DSQLClient", "CreateClusterCommand")
|
|
687
|
+
.f(void 0, void 0)
|
|
688
|
+
.ser(se_CreateClusterCommand)
|
|
689
|
+
.de(de_CreateClusterCommand)
|
|
690
|
+
.build() {
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
class DeleteClusterCommand extends smithyClient.Command
|
|
694
|
+
.classBuilder()
|
|
695
|
+
.ep(commonParams)
|
|
696
|
+
.m(function (Command, cs, config, o) {
|
|
697
|
+
return [
|
|
698
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
699
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
700
|
+
];
|
|
701
|
+
})
|
|
702
|
+
.s("DSQL", "DeleteCluster", {})
|
|
703
|
+
.n("DSQLClient", "DeleteClusterCommand")
|
|
704
|
+
.f(void 0, void 0)
|
|
705
|
+
.ser(se_DeleteClusterCommand)
|
|
706
|
+
.de(de_DeleteClusterCommand)
|
|
707
|
+
.build() {
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
class GetClusterCommand extends smithyClient.Command
|
|
711
|
+
.classBuilder()
|
|
712
|
+
.ep(commonParams)
|
|
713
|
+
.m(function (Command, cs, config, o) {
|
|
714
|
+
return [
|
|
715
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
716
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
717
|
+
];
|
|
718
|
+
})
|
|
719
|
+
.s("DSQL", "GetCluster", {})
|
|
720
|
+
.n("DSQLClient", "GetClusterCommand")
|
|
721
|
+
.f(void 0, void 0)
|
|
722
|
+
.ser(se_GetClusterCommand)
|
|
723
|
+
.de(de_GetClusterCommand)
|
|
724
|
+
.build() {
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
class GetVpcEndpointServiceNameCommand extends smithyClient.Command
|
|
728
|
+
.classBuilder()
|
|
729
|
+
.ep(commonParams)
|
|
730
|
+
.m(function (Command, cs, config, o) {
|
|
731
|
+
return [
|
|
732
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
733
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
734
|
+
];
|
|
735
|
+
})
|
|
736
|
+
.s("DSQL", "GetVpcEndpointServiceName", {})
|
|
737
|
+
.n("DSQLClient", "GetVpcEndpointServiceNameCommand")
|
|
738
|
+
.f(void 0, void 0)
|
|
739
|
+
.ser(se_GetVpcEndpointServiceNameCommand)
|
|
740
|
+
.de(de_GetVpcEndpointServiceNameCommand)
|
|
741
|
+
.build() {
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
class ListClustersCommand extends smithyClient.Command
|
|
745
|
+
.classBuilder()
|
|
746
|
+
.ep(commonParams)
|
|
747
|
+
.m(function (Command, cs, config, o) {
|
|
748
|
+
return [
|
|
749
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
750
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
751
|
+
];
|
|
752
|
+
})
|
|
753
|
+
.s("DSQL", "ListClusters", {})
|
|
754
|
+
.n("DSQLClient", "ListClustersCommand")
|
|
755
|
+
.f(void 0, void 0)
|
|
756
|
+
.ser(se_ListClustersCommand)
|
|
757
|
+
.de(de_ListClustersCommand)
|
|
758
|
+
.build() {
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
762
|
+
.classBuilder()
|
|
763
|
+
.ep(commonParams)
|
|
764
|
+
.m(function (Command, cs, config, o) {
|
|
765
|
+
return [
|
|
766
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
767
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
768
|
+
];
|
|
769
|
+
})
|
|
770
|
+
.s("DSQL", "ListTagsForResource", {})
|
|
771
|
+
.n("DSQLClient", "ListTagsForResourceCommand")
|
|
772
|
+
.f(void 0, void 0)
|
|
773
|
+
.ser(se_ListTagsForResourceCommand)
|
|
774
|
+
.de(de_ListTagsForResourceCommand)
|
|
775
|
+
.build() {
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
class TagResourceCommand extends smithyClient.Command
|
|
779
|
+
.classBuilder()
|
|
780
|
+
.ep(commonParams)
|
|
781
|
+
.m(function (Command, cs, config, o) {
|
|
782
|
+
return [
|
|
783
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
784
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
785
|
+
];
|
|
786
|
+
})
|
|
787
|
+
.s("DSQL", "TagResource", {})
|
|
788
|
+
.n("DSQLClient", "TagResourceCommand")
|
|
789
|
+
.f(void 0, void 0)
|
|
790
|
+
.ser(se_TagResourceCommand)
|
|
791
|
+
.de(de_TagResourceCommand)
|
|
792
|
+
.build() {
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
796
|
+
.classBuilder()
|
|
797
|
+
.ep(commonParams)
|
|
798
|
+
.m(function (Command, cs, config, o) {
|
|
799
|
+
return [
|
|
800
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
801
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
802
|
+
];
|
|
803
|
+
})
|
|
804
|
+
.s("DSQL", "UntagResource", {})
|
|
805
|
+
.n("DSQLClient", "UntagResourceCommand")
|
|
806
|
+
.f(void 0, void 0)
|
|
807
|
+
.ser(se_UntagResourceCommand)
|
|
808
|
+
.de(de_UntagResourceCommand)
|
|
809
|
+
.build() {
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
class UpdateClusterCommand extends smithyClient.Command
|
|
813
|
+
.classBuilder()
|
|
814
|
+
.ep(commonParams)
|
|
815
|
+
.m(function (Command, cs, config, o) {
|
|
816
|
+
return [
|
|
817
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
818
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
819
|
+
];
|
|
820
|
+
})
|
|
821
|
+
.s("DSQL", "UpdateCluster", {})
|
|
822
|
+
.n("DSQLClient", "UpdateClusterCommand")
|
|
823
|
+
.f(void 0, void 0)
|
|
824
|
+
.ser(se_UpdateClusterCommand)
|
|
825
|
+
.de(de_UpdateClusterCommand)
|
|
826
|
+
.build() {
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
const commands = {
|
|
830
|
+
CreateClusterCommand,
|
|
831
|
+
DeleteClusterCommand,
|
|
832
|
+
GetClusterCommand,
|
|
833
|
+
GetVpcEndpointServiceNameCommand,
|
|
834
|
+
ListClustersCommand,
|
|
835
|
+
ListTagsForResourceCommand,
|
|
836
|
+
TagResourceCommand,
|
|
837
|
+
UntagResourceCommand,
|
|
838
|
+
UpdateClusterCommand,
|
|
839
|
+
};
|
|
840
|
+
class DSQL extends DSQLClient {
|
|
841
|
+
}
|
|
842
|
+
smithyClient.createAggregatedClient(commands, DSQL);
|
|
1038
843
|
|
|
1039
|
-
|
|
844
|
+
const paginateListClusters = core.createPaginator(DSQLClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
|
|
1040
845
|
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
1044
|
-
let reason;
|
|
1045
|
-
try {
|
|
1046
|
-
const result = await client.send(new GetClusterCommand(input));
|
|
1047
|
-
reason = result;
|
|
846
|
+
const checkState$1 = async (client, input) => {
|
|
847
|
+
let reason;
|
|
1048
848
|
try {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
849
|
+
const result = await client.send(new GetClusterCommand(input));
|
|
850
|
+
reason = result;
|
|
851
|
+
try {
|
|
852
|
+
const returnComparator = () => {
|
|
853
|
+
return result.status;
|
|
854
|
+
};
|
|
855
|
+
if (returnComparator() === "ACTIVE") {
|
|
856
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
catch (e) { }
|
|
1056
860
|
}
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
// src/waiters/waitForClusterNotExists.ts
|
|
861
|
+
catch (exception) {
|
|
862
|
+
reason = exception;
|
|
863
|
+
}
|
|
864
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
865
|
+
};
|
|
866
|
+
const waitForClusterActive = async (params, input) => {
|
|
867
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
868
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
869
|
+
};
|
|
870
|
+
const waitUntilClusterActive = async (params, input) => {
|
|
871
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
872
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
873
|
+
return utilWaiter.checkExceptions(result);
|
|
874
|
+
};
|
|
1073
875
|
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
876
|
+
const checkState = async (client, input) => {
|
|
877
|
+
let reason;
|
|
878
|
+
try {
|
|
879
|
+
const result = await client.send(new GetClusterCommand(input));
|
|
880
|
+
reason = result;
|
|
881
|
+
}
|
|
882
|
+
catch (exception) {
|
|
883
|
+
reason = exception;
|
|
884
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
885
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
886
|
+
}
|
|
1083
887
|
}
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
}, "waitUntilClusterNotExists");
|
|
1096
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
888
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
889
|
+
};
|
|
890
|
+
const waitForClusterNotExists = async (params, input) => {
|
|
891
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
892
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
893
|
+
};
|
|
894
|
+
const waitUntilClusterNotExists = async (params, input) => {
|
|
895
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
896
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
897
|
+
return utilWaiter.checkExceptions(result);
|
|
898
|
+
};
|
|
1097
899
|
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
DSQLClient,
|
|
1102
|
-
DSQL,
|
|
1103
|
-
$Command,
|
|
1104
|
-
CreateClusterCommand,
|
|
1105
|
-
DeleteClusterCommand,
|
|
1106
|
-
GetClusterCommand,
|
|
1107
|
-
GetVpcEndpointServiceNameCommand,
|
|
1108
|
-
ListClustersCommand,
|
|
1109
|
-
ListTagsForResourceCommand,
|
|
1110
|
-
TagResourceCommand,
|
|
1111
|
-
UntagResourceCommand,
|
|
1112
|
-
UpdateClusterCommand,
|
|
1113
|
-
paginateListClusters,
|
|
1114
|
-
waitForClusterActive,
|
|
1115
|
-
waitUntilClusterActive,
|
|
1116
|
-
waitForClusterNotExists,
|
|
1117
|
-
waitUntilClusterNotExists,
|
|
1118
|
-
AccessDeniedException,
|
|
1119
|
-
ClusterStatus,
|
|
1120
|
-
ConflictException,
|
|
1121
|
-
EncryptionStatus,
|
|
1122
|
-
EncryptionType,
|
|
1123
|
-
InternalServerException,
|
|
1124
|
-
ServiceQuotaExceededException,
|
|
1125
|
-
ThrottlingException,
|
|
1126
|
-
ValidationExceptionReason,
|
|
1127
|
-
ValidationException,
|
|
1128
|
-
ResourceNotFoundException
|
|
900
|
+
Object.defineProperty(exports, "$Command", {
|
|
901
|
+
enumerable: true,
|
|
902
|
+
get: function () { return smithyClient.Command; }
|
|
1129
903
|
});
|
|
1130
|
-
|
|
904
|
+
Object.defineProperty(exports, "__Client", {
|
|
905
|
+
enumerable: true,
|
|
906
|
+
get: function () { return smithyClient.Client; }
|
|
907
|
+
});
|
|
908
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
909
|
+
exports.ClusterStatus = ClusterStatus;
|
|
910
|
+
exports.ConflictException = ConflictException;
|
|
911
|
+
exports.CreateClusterCommand = CreateClusterCommand;
|
|
912
|
+
exports.DSQL = DSQL;
|
|
913
|
+
exports.DSQLClient = DSQLClient;
|
|
914
|
+
exports.DSQLServiceException = DSQLServiceException;
|
|
915
|
+
exports.DeleteClusterCommand = DeleteClusterCommand;
|
|
916
|
+
exports.EncryptionStatus = EncryptionStatus;
|
|
917
|
+
exports.EncryptionType = EncryptionType;
|
|
918
|
+
exports.GetClusterCommand = GetClusterCommand;
|
|
919
|
+
exports.GetVpcEndpointServiceNameCommand = GetVpcEndpointServiceNameCommand;
|
|
920
|
+
exports.InternalServerException = InternalServerException;
|
|
921
|
+
exports.ListClustersCommand = ListClustersCommand;
|
|
922
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
923
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
924
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
925
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
926
|
+
exports.ThrottlingException = ThrottlingException;
|
|
927
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
928
|
+
exports.UpdateClusterCommand = UpdateClusterCommand;
|
|
929
|
+
exports.ValidationException = ValidationException;
|
|
930
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
931
|
+
exports.paginateListClusters = paginateListClusters;
|
|
932
|
+
exports.waitForClusterActive = waitForClusterActive;
|
|
933
|
+
exports.waitForClusterNotExists = waitForClusterNotExists;
|
|
934
|
+
exports.waitUntilClusterActive = waitUntilClusterActive;
|
|
935
|
+
exports.waitUntilClusterNotExists = waitUntilClusterNotExists;
|