@aws-sdk/client-docdb-elastic 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 +1285 -1456
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,1511 +1,1340 @@
|
|
|
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
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "docdb-elastic",
|
|
26
|
+
});
|
|
10
27
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
33
|
};
|
|
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
|
-
ApplyPendingMaintenanceActionCommand: () => ApplyPendingMaintenanceActionCommand,
|
|
26
|
-
Auth: () => Auth,
|
|
27
|
-
ConflictException: () => ConflictException,
|
|
28
|
-
CopyClusterSnapshotCommand: () => CopyClusterSnapshotCommand,
|
|
29
|
-
CreateClusterCommand: () => CreateClusterCommand,
|
|
30
|
-
CreateClusterInputFilterSensitiveLog: () => CreateClusterInputFilterSensitiveLog,
|
|
31
|
-
CreateClusterSnapshotCommand: () => CreateClusterSnapshotCommand,
|
|
32
|
-
DeleteClusterCommand: () => DeleteClusterCommand,
|
|
33
|
-
DeleteClusterSnapshotCommand: () => DeleteClusterSnapshotCommand,
|
|
34
|
-
DocDBElastic: () => DocDBElastic,
|
|
35
|
-
DocDBElasticClient: () => DocDBElasticClient,
|
|
36
|
-
DocDBElasticServiceException: () => DocDBElasticServiceException,
|
|
37
|
-
GetClusterCommand: () => GetClusterCommand,
|
|
38
|
-
GetClusterSnapshotCommand: () => GetClusterSnapshotCommand,
|
|
39
|
-
GetPendingMaintenanceActionCommand: () => GetPendingMaintenanceActionCommand,
|
|
40
|
-
InternalServerException: () => InternalServerException,
|
|
41
|
-
ListClusterSnapshotsCommand: () => ListClusterSnapshotsCommand,
|
|
42
|
-
ListClustersCommand: () => ListClustersCommand,
|
|
43
|
-
ListPendingMaintenanceActionsCommand: () => ListPendingMaintenanceActionsCommand,
|
|
44
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
45
|
-
OptInType: () => OptInType,
|
|
46
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
47
|
-
RestoreClusterFromSnapshotCommand: () => RestoreClusterFromSnapshotCommand,
|
|
48
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
49
|
-
SnapshotType: () => SnapshotType,
|
|
50
|
-
StartClusterCommand: () => StartClusterCommand,
|
|
51
|
-
Status: () => Status,
|
|
52
|
-
StopClusterCommand: () => StopClusterCommand,
|
|
53
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
54
|
-
ThrottlingException: () => ThrottlingException,
|
|
55
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
56
|
-
UpdateClusterCommand: () => UpdateClusterCommand,
|
|
57
|
-
UpdateClusterInputFilterSensitiveLog: () => UpdateClusterInputFilterSensitiveLog,
|
|
58
|
-
ValidationException: () => ValidationException,
|
|
59
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
60
|
-
__Client: () => import_smithy_client.Client,
|
|
61
|
-
paginateListClusterSnapshots: () => paginateListClusterSnapshots,
|
|
62
|
-
paginateListClusters: () => paginateListClusters,
|
|
63
|
-
paginateListPendingMaintenanceActions: () => paginateListPendingMaintenanceActions
|
|
64
|
-
});
|
|
65
|
-
module.exports = __toCommonJS(index_exports);
|
|
66
|
-
|
|
67
|
-
// src/DocDBElasticClient.ts
|
|
68
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
69
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
70
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
71
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
72
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
73
|
-
var import_core = require("@smithy/core");
|
|
74
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
75
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
76
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
77
34
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
93
72
|
};
|
|
94
73
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
101
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
102
79
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
80
|
+
class DocDBElasticClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultDocDBElasticHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
131
108
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
137
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
138
|
-
credentials: config.credentials()
|
|
139
|
-
};
|
|
140
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
141
|
-
|
|
142
|
-
// src/runtimeExtensions.ts
|
|
143
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
144
|
-
const extensionConfiguration = Object.assign(
|
|
145
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
146
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
147
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
148
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
149
|
-
);
|
|
150
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
151
|
-
return Object.assign(
|
|
152
|
-
runtimeConfig,
|
|
153
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
154
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
155
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
156
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
157
|
-
);
|
|
158
|
-
}, "resolveRuntimeExtensions");
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
159
113
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
185
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
186
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
187
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
188
|
-
this.middlewareStack.use(
|
|
189
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
190
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDocDBElasticHttpAuthSchemeParametersProvider,
|
|
191
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
192
|
-
"aws.auth#sigv4": config.credentials
|
|
193
|
-
}), "identityProviderConfigProvider")
|
|
194
|
-
})
|
|
195
|
-
);
|
|
196
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
200
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
201
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
202
|
-
*/
|
|
203
|
-
destroy() {
|
|
204
|
-
super.destroy();
|
|
205
|
-
}
|
|
114
|
+
class DocDBElasticServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, DocDBElasticServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class AccessDeniedException extends DocDBElasticServiceException {
|
|
122
|
+
name = "AccessDeniedException";
|
|
123
|
+
$fault = "client";
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const OptInType = {
|
|
134
|
+
APPLY_ON: "APPLY_ON",
|
|
135
|
+
IMMEDIATE: "IMMEDIATE",
|
|
136
|
+
NEXT_MAINTENANCE: "NEXT_MAINTENANCE",
|
|
137
|
+
UNDO_OPT_IN: "UNDO_OPT_IN",
|
|
206
138
|
};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
139
|
+
class ConflictException extends DocDBElasticServiceException {
|
|
140
|
+
name = "ConflictException";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
resourceId;
|
|
143
|
+
resourceType;
|
|
144
|
+
constructor(opts) {
|
|
145
|
+
super({
|
|
146
|
+
name: "ConflictException",
|
|
147
|
+
$fault: "client",
|
|
148
|
+
...opts,
|
|
149
|
+
});
|
|
150
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
151
|
+
this.resourceId = opts.resourceId;
|
|
152
|
+
this.resourceType = opts.resourceType;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
class InternalServerException extends DocDBElasticServiceException {
|
|
156
|
+
name = "InternalServerException";
|
|
157
|
+
$fault = "server";
|
|
158
|
+
$retryable = {};
|
|
159
|
+
constructor(opts) {
|
|
160
|
+
super({
|
|
161
|
+
name: "InternalServerException",
|
|
162
|
+
$fault: "server",
|
|
163
|
+
...opts,
|
|
164
|
+
});
|
|
165
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
class ResourceNotFoundException extends DocDBElasticServiceException {
|
|
169
|
+
name = "ResourceNotFoundException";
|
|
170
|
+
$fault = "client";
|
|
171
|
+
resourceId;
|
|
172
|
+
resourceType;
|
|
173
|
+
constructor(opts) {
|
|
174
|
+
super({
|
|
175
|
+
name: "ResourceNotFoundException",
|
|
176
|
+
$fault: "client",
|
|
177
|
+
...opts,
|
|
178
|
+
});
|
|
179
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
180
|
+
this.resourceId = opts.resourceId;
|
|
181
|
+
this.resourceType = opts.resourceType;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
class ThrottlingException extends DocDBElasticServiceException {
|
|
185
|
+
name = "ThrottlingException";
|
|
186
|
+
$fault = "client";
|
|
187
|
+
$retryable = {};
|
|
188
|
+
retryAfterSeconds;
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "ThrottlingException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts,
|
|
194
|
+
});
|
|
195
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
196
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
const ValidationExceptionReason = {
|
|
200
|
+
CANNOT_PARSE: "cannotParse",
|
|
201
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
202
|
+
OTHER: "other",
|
|
203
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
235
204
|
};
|
|
205
|
+
class ValidationException extends DocDBElasticServiceException {
|
|
206
|
+
name = "ValidationException";
|
|
207
|
+
$fault = "client";
|
|
208
|
+
reason;
|
|
209
|
+
fieldList;
|
|
210
|
+
constructor(opts) {
|
|
211
|
+
super({
|
|
212
|
+
name: "ValidationException",
|
|
213
|
+
$fault: "client",
|
|
214
|
+
...opts,
|
|
215
|
+
});
|
|
216
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
217
|
+
this.reason = opts.reason;
|
|
218
|
+
this.fieldList = opts.fieldList;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
const Auth = {
|
|
222
|
+
PLAIN_TEXT: "PLAIN_TEXT",
|
|
223
|
+
SECRET_ARN: "SECRET_ARN",
|
|
224
|
+
};
|
|
225
|
+
const SnapshotType = {
|
|
226
|
+
AUTOMATED: "AUTOMATED",
|
|
227
|
+
MANUAL: "MANUAL",
|
|
228
|
+
};
|
|
229
|
+
const Status = {
|
|
230
|
+
ACTIVE: "ACTIVE",
|
|
231
|
+
COPYING: "COPYING",
|
|
232
|
+
CREATING: "CREATING",
|
|
233
|
+
DELETING: "DELETING",
|
|
234
|
+
INACCESSIBLE_ENCRYPTION_CREDENTIALS_RECOVERABLE: "INACCESSIBLE_ENCRYPTION_CREDENTIALS_RECOVERABLE",
|
|
235
|
+
INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS",
|
|
236
|
+
INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN",
|
|
237
|
+
INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT",
|
|
238
|
+
INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK",
|
|
239
|
+
INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID",
|
|
240
|
+
INVALID_SUBNET_ID: "INVALID_SUBNET_ID",
|
|
241
|
+
IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED",
|
|
242
|
+
MAINTENANCE: "MAINTENANCE",
|
|
243
|
+
MERGING: "MERGING",
|
|
244
|
+
MODIFYING: "MODIFYING",
|
|
245
|
+
SPLITTING: "SPLITTING",
|
|
246
|
+
STARTING: "STARTING",
|
|
247
|
+
STOPPED: "STOPPED",
|
|
248
|
+
STOPPING: "STOPPING",
|
|
249
|
+
UPDATING: "UPDATING",
|
|
250
|
+
VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED",
|
|
251
|
+
};
|
|
252
|
+
class ServiceQuotaExceededException extends DocDBElasticServiceException {
|
|
253
|
+
name = "ServiceQuotaExceededException";
|
|
254
|
+
$fault = "client";
|
|
255
|
+
constructor(opts) {
|
|
256
|
+
super({
|
|
257
|
+
name: "ServiceQuotaExceededException",
|
|
258
|
+
$fault: "client",
|
|
259
|
+
...opts,
|
|
260
|
+
});
|
|
261
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
const CreateClusterInputFilterSensitiveLog = (obj) => ({
|
|
265
|
+
...obj,
|
|
266
|
+
...(obj.adminUserPassword && { adminUserPassword: smithyClient.SENSITIVE_STRING }),
|
|
267
|
+
});
|
|
268
|
+
const UpdateClusterInputFilterSensitiveLog = (obj) => ({
|
|
269
|
+
...obj,
|
|
270
|
+
...(obj.adminUserPassword && { adminUserPassword: smithyClient.SENSITIVE_STRING }),
|
|
271
|
+
});
|
|
236
272
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
273
|
+
const se_ApplyPendingMaintenanceActionCommand = async (input, context) => {
|
|
274
|
+
const b = core.requestBuilder(input, context);
|
|
275
|
+
const headers = {
|
|
276
|
+
"content-type": "application/json",
|
|
277
|
+
};
|
|
278
|
+
b.bp("/pending-action");
|
|
279
|
+
let body;
|
|
280
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
281
|
+
applyAction: [],
|
|
282
|
+
applyOn: [],
|
|
283
|
+
optInType: [],
|
|
284
|
+
resourceArn: [],
|
|
285
|
+
}));
|
|
286
|
+
b.m("POST").h(headers).b(body);
|
|
287
|
+
return b.build();
|
|
288
|
+
};
|
|
289
|
+
const se_CopyClusterSnapshotCommand = async (input, context) => {
|
|
290
|
+
const b = core.requestBuilder(input, context);
|
|
291
|
+
const headers = {
|
|
292
|
+
"content-type": "application/json",
|
|
293
|
+
};
|
|
294
|
+
b.bp("/cluster-snapshot/{snapshotArn}/copy");
|
|
295
|
+
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
296
|
+
let body;
|
|
297
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
298
|
+
copyTags: [],
|
|
299
|
+
kmsKeyId: [],
|
|
300
|
+
tags: (_) => smithyClient._json(_),
|
|
301
|
+
targetSnapshotName: [],
|
|
302
|
+
}));
|
|
303
|
+
b.m("POST").h(headers).b(body);
|
|
304
|
+
return b.build();
|
|
305
|
+
};
|
|
306
|
+
const se_CreateClusterCommand = async (input, context) => {
|
|
307
|
+
const b = core.requestBuilder(input, context);
|
|
308
|
+
const headers = {
|
|
309
|
+
"content-type": "application/json",
|
|
310
|
+
};
|
|
311
|
+
b.bp("/cluster");
|
|
312
|
+
let body;
|
|
313
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
314
|
+
adminUserName: [],
|
|
315
|
+
adminUserPassword: [],
|
|
316
|
+
authType: [],
|
|
317
|
+
backupRetentionPeriod: [],
|
|
318
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
319
|
+
clusterName: [],
|
|
320
|
+
kmsKeyId: [],
|
|
321
|
+
preferredBackupWindow: [],
|
|
322
|
+
preferredMaintenanceWindow: [],
|
|
323
|
+
shardCapacity: [],
|
|
324
|
+
shardCount: [],
|
|
325
|
+
shardInstanceCount: [],
|
|
326
|
+
subnetIds: (_) => smithyClient._json(_),
|
|
327
|
+
tags: (_) => smithyClient._json(_),
|
|
328
|
+
vpcSecurityGroupIds: (_) => smithyClient._json(_),
|
|
329
|
+
}));
|
|
330
|
+
b.m("POST").h(headers).b(body);
|
|
331
|
+
return b.build();
|
|
332
|
+
};
|
|
333
|
+
const se_CreateClusterSnapshotCommand = async (input, context) => {
|
|
334
|
+
const b = core.requestBuilder(input, context);
|
|
335
|
+
const headers = {
|
|
336
|
+
"content-type": "application/json",
|
|
337
|
+
};
|
|
338
|
+
b.bp("/cluster-snapshot");
|
|
339
|
+
let body;
|
|
340
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
341
|
+
clusterArn: [],
|
|
342
|
+
snapshotName: [],
|
|
343
|
+
tags: (_) => smithyClient._json(_),
|
|
344
|
+
}));
|
|
345
|
+
b.m("POST").h(headers).b(body);
|
|
346
|
+
return b.build();
|
|
256
347
|
};
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
348
|
+
const se_DeleteClusterCommand = async (input, context) => {
|
|
349
|
+
const b = core.requestBuilder(input, context);
|
|
350
|
+
const headers = {};
|
|
351
|
+
b.bp("/cluster/{clusterArn}");
|
|
352
|
+
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
353
|
+
let body;
|
|
354
|
+
b.m("DELETE").h(headers).b(body);
|
|
355
|
+
return b.build();
|
|
262
356
|
};
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
357
|
+
const se_DeleteClusterSnapshotCommand = async (input, context) => {
|
|
358
|
+
const b = core.requestBuilder(input, context);
|
|
359
|
+
const headers = {};
|
|
360
|
+
b.bp("/cluster-snapshot/{snapshotArn}");
|
|
361
|
+
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
362
|
+
let body;
|
|
363
|
+
b.m("DELETE").h(headers).b(body);
|
|
364
|
+
return b.build();
|
|
365
|
+
};
|
|
366
|
+
const se_GetClusterCommand = async (input, context) => {
|
|
367
|
+
const b = core.requestBuilder(input, context);
|
|
368
|
+
const headers = {};
|
|
369
|
+
b.bp("/cluster/{clusterArn}");
|
|
370
|
+
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
371
|
+
let body;
|
|
372
|
+
b.m("GET").h(headers).b(body);
|
|
373
|
+
return b.build();
|
|
374
|
+
};
|
|
375
|
+
const se_GetClusterSnapshotCommand = async (input, context) => {
|
|
376
|
+
const b = core.requestBuilder(input, context);
|
|
377
|
+
const headers = {};
|
|
378
|
+
b.bp("/cluster-snapshot/{snapshotArn}");
|
|
379
|
+
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
380
|
+
let body;
|
|
381
|
+
b.m("GET").h(headers).b(body);
|
|
382
|
+
return b.build();
|
|
383
|
+
};
|
|
384
|
+
const se_GetPendingMaintenanceActionCommand = async (input, context) => {
|
|
385
|
+
const b = core.requestBuilder(input, context);
|
|
386
|
+
const headers = {};
|
|
387
|
+
b.bp("/pending-action/{resourceArn}");
|
|
388
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
389
|
+
let body;
|
|
390
|
+
b.m("GET").h(headers).b(body);
|
|
391
|
+
return b.build();
|
|
392
|
+
};
|
|
393
|
+
const se_ListClustersCommand = async (input, context) => {
|
|
394
|
+
const b = core.requestBuilder(input, context);
|
|
395
|
+
const headers = {};
|
|
396
|
+
b.bp("/clusters");
|
|
397
|
+
const query = smithyClient.map({
|
|
398
|
+
[_nT]: [, input[_nT]],
|
|
399
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
287
400
|
});
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
401
|
+
let body;
|
|
402
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
403
|
+
return b.build();
|
|
292
404
|
};
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
*/
|
|
303
|
-
constructor(opts) {
|
|
304
|
-
super({
|
|
305
|
-
name: "InternalServerException",
|
|
306
|
-
$fault: "server",
|
|
307
|
-
...opts
|
|
405
|
+
const se_ListClusterSnapshotsCommand = async (input, context) => {
|
|
406
|
+
const b = core.requestBuilder(input, context);
|
|
407
|
+
const headers = {};
|
|
408
|
+
b.bp("/cluster-snapshots");
|
|
409
|
+
const query = smithyClient.map({
|
|
410
|
+
[_cA]: [, input[_cA]],
|
|
411
|
+
[_nT]: [, input[_nT]],
|
|
412
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
413
|
+
[_sT]: [, input[_sT]],
|
|
308
414
|
});
|
|
309
|
-
|
|
310
|
-
|
|
415
|
+
let body;
|
|
416
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
417
|
+
return b.build();
|
|
311
418
|
};
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
* <p>The ID of the resource that could not be located.</p>
|
|
320
|
-
* @public
|
|
321
|
-
*/
|
|
322
|
-
resourceId;
|
|
323
|
-
/**
|
|
324
|
-
* <p>The type of the resource that could not be found.</p>
|
|
325
|
-
* @public
|
|
326
|
-
*/
|
|
327
|
-
resourceType;
|
|
328
|
-
/**
|
|
329
|
-
* @internal
|
|
330
|
-
*/
|
|
331
|
-
constructor(opts) {
|
|
332
|
-
super({
|
|
333
|
-
name: "ResourceNotFoundException",
|
|
334
|
-
$fault: "client",
|
|
335
|
-
...opts
|
|
419
|
+
const se_ListPendingMaintenanceActionsCommand = async (input, context) => {
|
|
420
|
+
const b = core.requestBuilder(input, context);
|
|
421
|
+
const headers = {};
|
|
422
|
+
b.bp("/pending-actions");
|
|
423
|
+
const query = smithyClient.map({
|
|
424
|
+
[_nT]: [, input[_nT]],
|
|
425
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
336
426
|
});
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
427
|
+
let body;
|
|
428
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
429
|
+
return b.build();
|
|
430
|
+
};
|
|
431
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
432
|
+
const b = core.requestBuilder(input, context);
|
|
433
|
+
const headers = {};
|
|
434
|
+
b.bp("/tags/{resourceArn}");
|
|
435
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
436
|
+
let body;
|
|
437
|
+
b.m("GET").h(headers).b(body);
|
|
438
|
+
return b.build();
|
|
439
|
+
};
|
|
440
|
+
const se_RestoreClusterFromSnapshotCommand = async (input, context) => {
|
|
441
|
+
const b = core.requestBuilder(input, context);
|
|
442
|
+
const headers = {
|
|
443
|
+
"content-type": "application/json",
|
|
444
|
+
};
|
|
445
|
+
b.bp("/cluster-snapshot/{snapshotArn}/restore");
|
|
446
|
+
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
447
|
+
let body;
|
|
448
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
449
|
+
clusterName: [],
|
|
450
|
+
kmsKeyId: [],
|
|
451
|
+
shardCapacity: [],
|
|
452
|
+
shardInstanceCount: [],
|
|
453
|
+
subnetIds: (_) => smithyClient._json(_),
|
|
454
|
+
tags: (_) => smithyClient._json(_),
|
|
455
|
+
vpcSecurityGroupIds: (_) => smithyClient._json(_),
|
|
456
|
+
}));
|
|
457
|
+
b.m("POST").h(headers).b(body);
|
|
458
|
+
return b.build();
|
|
341
459
|
};
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
460
|
+
const se_StartClusterCommand = async (input, context) => {
|
|
461
|
+
const b = core.requestBuilder(input, context);
|
|
462
|
+
const headers = {};
|
|
463
|
+
b.bp("/cluster/{clusterArn}/start");
|
|
464
|
+
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
465
|
+
let body;
|
|
466
|
+
b.m("POST").h(headers).b(body);
|
|
467
|
+
return b.build();
|
|
468
|
+
};
|
|
469
|
+
const se_StopClusterCommand = async (input, context) => {
|
|
470
|
+
const b = core.requestBuilder(input, context);
|
|
471
|
+
const headers = {};
|
|
472
|
+
b.bp("/cluster/{clusterArn}/stop");
|
|
473
|
+
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
474
|
+
let body;
|
|
475
|
+
b.m("POST").h(headers).b(body);
|
|
476
|
+
return b.build();
|
|
477
|
+
};
|
|
478
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
479
|
+
const b = core.requestBuilder(input, context);
|
|
480
|
+
const headers = {
|
|
481
|
+
"content-type": "application/json",
|
|
482
|
+
};
|
|
483
|
+
b.bp("/tags/{resourceArn}");
|
|
484
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
485
|
+
let body;
|
|
486
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
487
|
+
tags: (_) => smithyClient._json(_),
|
|
488
|
+
}));
|
|
489
|
+
b.m("POST").h(headers).b(body);
|
|
490
|
+
return b.build();
|
|
491
|
+
};
|
|
492
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
493
|
+
const b = core.requestBuilder(input, context);
|
|
494
|
+
const headers = {};
|
|
495
|
+
b.bp("/tags/{resourceArn}");
|
|
496
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
497
|
+
const query = smithyClient.map({
|
|
498
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
362
499
|
});
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
500
|
+
let body;
|
|
501
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
502
|
+
return b.build();
|
|
366
503
|
};
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
504
|
+
const se_UpdateClusterCommand = async (input, context) => {
|
|
505
|
+
const b = core.requestBuilder(input, context);
|
|
506
|
+
const headers = {
|
|
507
|
+
"content-type": "application/json",
|
|
508
|
+
};
|
|
509
|
+
b.bp("/cluster/{clusterArn}");
|
|
510
|
+
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
511
|
+
let body;
|
|
512
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
513
|
+
adminUserPassword: [],
|
|
514
|
+
authType: [],
|
|
515
|
+
backupRetentionPeriod: [],
|
|
516
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
517
|
+
preferredBackupWindow: [],
|
|
518
|
+
preferredMaintenanceWindow: [],
|
|
519
|
+
shardCapacity: [],
|
|
520
|
+
shardCount: [],
|
|
521
|
+
shardInstanceCount: [],
|
|
522
|
+
subnetIds: (_) => smithyClient._json(_),
|
|
523
|
+
vpcSecurityGroupIds: (_) => smithyClient._json(_),
|
|
524
|
+
}));
|
|
525
|
+
b.m("PUT").h(headers).b(body);
|
|
526
|
+
return b.build();
|
|
372
527
|
};
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
*/
|
|
384
|
-
reason;
|
|
385
|
-
/**
|
|
386
|
-
* <p>A list of the fields in which the validation exception occurred.</p>
|
|
387
|
-
* @public
|
|
388
|
-
*/
|
|
389
|
-
fieldList;
|
|
390
|
-
/**
|
|
391
|
-
* @internal
|
|
392
|
-
*/
|
|
393
|
-
constructor(opts) {
|
|
394
|
-
super({
|
|
395
|
-
name: "ValidationException",
|
|
396
|
-
$fault: "client",
|
|
397
|
-
...opts
|
|
528
|
+
const de_ApplyPendingMaintenanceActionCommand = async (output, context) => {
|
|
529
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
530
|
+
return de_CommandError(output, context);
|
|
531
|
+
}
|
|
532
|
+
const contents = smithyClient.map({
|
|
533
|
+
$metadata: deserializeMetadata(output),
|
|
534
|
+
});
|
|
535
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
536
|
+
const doc = smithyClient.take(data, {
|
|
537
|
+
resourcePendingMaintenanceAction: smithyClient._json,
|
|
398
538
|
});
|
|
399
|
-
Object.
|
|
400
|
-
|
|
401
|
-
this.fieldList = opts.fieldList;
|
|
402
|
-
}
|
|
539
|
+
Object.assign(contents, doc);
|
|
540
|
+
return contents;
|
|
403
541
|
};
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
542
|
+
const de_CopyClusterSnapshotCommand = async (output, context) => {
|
|
543
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
+
return de_CommandError(output, context);
|
|
545
|
+
}
|
|
546
|
+
const contents = smithyClient.map({
|
|
547
|
+
$metadata: deserializeMetadata(output),
|
|
548
|
+
});
|
|
549
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
550
|
+
const doc = smithyClient.take(data, {
|
|
551
|
+
snapshot: smithyClient._json,
|
|
552
|
+
});
|
|
553
|
+
Object.assign(contents, doc);
|
|
554
|
+
return contents;
|
|
407
555
|
};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
556
|
+
const de_CreateClusterCommand = async (output, context) => {
|
|
557
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
558
|
+
return de_CommandError(output, context);
|
|
559
|
+
}
|
|
560
|
+
const contents = smithyClient.map({
|
|
561
|
+
$metadata: deserializeMetadata(output),
|
|
562
|
+
});
|
|
563
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
564
|
+
const doc = smithyClient.take(data, {
|
|
565
|
+
cluster: smithyClient._json,
|
|
566
|
+
});
|
|
567
|
+
Object.assign(contents, doc);
|
|
568
|
+
return contents;
|
|
411
569
|
};
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
MAINTENANCE: "MAINTENANCE",
|
|
426
|
-
MERGING: "MERGING",
|
|
427
|
-
MODIFYING: "MODIFYING",
|
|
428
|
-
SPLITTING: "SPLITTING",
|
|
429
|
-
STARTING: "STARTING",
|
|
430
|
-
STOPPED: "STOPPED",
|
|
431
|
-
STOPPING: "STOPPING",
|
|
432
|
-
UPDATING: "UPDATING",
|
|
433
|
-
VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED"
|
|
570
|
+
const de_CreateClusterSnapshotCommand = async (output, context) => {
|
|
571
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
572
|
+
return de_CommandError(output, context);
|
|
573
|
+
}
|
|
574
|
+
const contents = smithyClient.map({
|
|
575
|
+
$metadata: deserializeMetadata(output),
|
|
576
|
+
});
|
|
577
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
578
|
+
const doc = smithyClient.take(data, {
|
|
579
|
+
snapshot: smithyClient._json,
|
|
580
|
+
});
|
|
581
|
+
Object.assign(contents, doc);
|
|
582
|
+
return contents;
|
|
434
583
|
};
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
super({
|
|
446
|
-
name: "ServiceQuotaExceededException",
|
|
447
|
-
$fault: "client",
|
|
448
|
-
...opts
|
|
584
|
+
const de_DeleteClusterCommand = async (output, context) => {
|
|
585
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
586
|
+
return de_CommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const contents = smithyClient.map({
|
|
589
|
+
$metadata: deserializeMetadata(output),
|
|
590
|
+
});
|
|
591
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
592
|
+
const doc = smithyClient.take(data, {
|
|
593
|
+
cluster: smithyClient._json,
|
|
449
594
|
});
|
|
450
|
-
Object.
|
|
451
|
-
|
|
595
|
+
Object.assign(contents, doc);
|
|
596
|
+
return contents;
|
|
452
597
|
};
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
"content-type": "application/json"
|
|
467
|
-
};
|
|
468
|
-
b.bp("/pending-action");
|
|
469
|
-
let body;
|
|
470
|
-
body = JSON.stringify(
|
|
471
|
-
(0, import_smithy_client.take)(input, {
|
|
472
|
-
applyAction: [],
|
|
473
|
-
applyOn: [],
|
|
474
|
-
optInType: [],
|
|
475
|
-
resourceArn: []
|
|
476
|
-
})
|
|
477
|
-
);
|
|
478
|
-
b.m("POST").h(headers).b(body);
|
|
479
|
-
return b.build();
|
|
480
|
-
}, "se_ApplyPendingMaintenanceActionCommand");
|
|
481
|
-
var se_CopyClusterSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
482
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
483
|
-
const headers = {
|
|
484
|
-
"content-type": "application/json"
|
|
485
|
-
};
|
|
486
|
-
b.bp("/cluster-snapshot/{snapshotArn}/copy");
|
|
487
|
-
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
488
|
-
let body;
|
|
489
|
-
body = JSON.stringify(
|
|
490
|
-
(0, import_smithy_client.take)(input, {
|
|
491
|
-
copyTags: [],
|
|
492
|
-
kmsKeyId: [],
|
|
493
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
|
|
494
|
-
targetSnapshotName: []
|
|
495
|
-
})
|
|
496
|
-
);
|
|
497
|
-
b.m("POST").h(headers).b(body);
|
|
498
|
-
return b.build();
|
|
499
|
-
}, "se_CopyClusterSnapshotCommand");
|
|
500
|
-
var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
501
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
502
|
-
const headers = {
|
|
503
|
-
"content-type": "application/json"
|
|
504
|
-
};
|
|
505
|
-
b.bp("/cluster");
|
|
506
|
-
let body;
|
|
507
|
-
body = JSON.stringify(
|
|
508
|
-
(0, import_smithy_client.take)(input, {
|
|
509
|
-
adminUserName: [],
|
|
510
|
-
adminUserPassword: [],
|
|
511
|
-
authType: [],
|
|
512
|
-
backupRetentionPeriod: [],
|
|
513
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
514
|
-
clusterName: [],
|
|
515
|
-
kmsKeyId: [],
|
|
516
|
-
preferredBackupWindow: [],
|
|
517
|
-
preferredMaintenanceWindow: [],
|
|
518
|
-
shardCapacity: [],
|
|
519
|
-
shardCount: [],
|
|
520
|
-
shardInstanceCount: [],
|
|
521
|
-
subnetIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "subnetIds"),
|
|
522
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
|
|
523
|
-
vpcSecurityGroupIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "vpcSecurityGroupIds")
|
|
524
|
-
})
|
|
525
|
-
);
|
|
526
|
-
b.m("POST").h(headers).b(body);
|
|
527
|
-
return b.build();
|
|
528
|
-
}, "se_CreateClusterCommand");
|
|
529
|
-
var se_CreateClusterSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
530
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
531
|
-
const headers = {
|
|
532
|
-
"content-type": "application/json"
|
|
533
|
-
};
|
|
534
|
-
b.bp("/cluster-snapshot");
|
|
535
|
-
let body;
|
|
536
|
-
body = JSON.stringify(
|
|
537
|
-
(0, import_smithy_client.take)(input, {
|
|
538
|
-
clusterArn: [],
|
|
539
|
-
snapshotName: [],
|
|
540
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
541
|
-
})
|
|
542
|
-
);
|
|
543
|
-
b.m("POST").h(headers).b(body);
|
|
544
|
-
return b.build();
|
|
545
|
-
}, "se_CreateClusterSnapshotCommand");
|
|
546
|
-
var se_DeleteClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
547
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
548
|
-
const headers = {};
|
|
549
|
-
b.bp("/cluster/{clusterArn}");
|
|
550
|
-
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
551
|
-
let body;
|
|
552
|
-
b.m("DELETE").h(headers).b(body);
|
|
553
|
-
return b.build();
|
|
554
|
-
}, "se_DeleteClusterCommand");
|
|
555
|
-
var se_DeleteClusterSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
556
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
557
|
-
const headers = {};
|
|
558
|
-
b.bp("/cluster-snapshot/{snapshotArn}");
|
|
559
|
-
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
560
|
-
let body;
|
|
561
|
-
b.m("DELETE").h(headers).b(body);
|
|
562
|
-
return b.build();
|
|
563
|
-
}, "se_DeleteClusterSnapshotCommand");
|
|
564
|
-
var se_GetClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
565
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
566
|
-
const headers = {};
|
|
567
|
-
b.bp("/cluster/{clusterArn}");
|
|
568
|
-
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
569
|
-
let body;
|
|
570
|
-
b.m("GET").h(headers).b(body);
|
|
571
|
-
return b.build();
|
|
572
|
-
}, "se_GetClusterCommand");
|
|
573
|
-
var se_GetClusterSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
574
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
575
|
-
const headers = {};
|
|
576
|
-
b.bp("/cluster-snapshot/{snapshotArn}");
|
|
577
|
-
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
578
|
-
let body;
|
|
579
|
-
b.m("GET").h(headers).b(body);
|
|
580
|
-
return b.build();
|
|
581
|
-
}, "se_GetClusterSnapshotCommand");
|
|
582
|
-
var se_GetPendingMaintenanceActionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
583
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
584
|
-
const headers = {};
|
|
585
|
-
b.bp("/pending-action/{resourceArn}");
|
|
586
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
587
|
-
let body;
|
|
588
|
-
b.m("GET").h(headers).b(body);
|
|
589
|
-
return b.build();
|
|
590
|
-
}, "se_GetPendingMaintenanceActionCommand");
|
|
591
|
-
var se_ListClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
592
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
593
|
-
const headers = {};
|
|
594
|
-
b.bp("/clusters");
|
|
595
|
-
const query = (0, import_smithy_client.map)({
|
|
596
|
-
[_nT]: [, input[_nT]],
|
|
597
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
598
|
-
});
|
|
599
|
-
let body;
|
|
600
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
601
|
-
return b.build();
|
|
602
|
-
}, "se_ListClustersCommand");
|
|
603
|
-
var se_ListClusterSnapshotsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
604
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
605
|
-
const headers = {};
|
|
606
|
-
b.bp("/cluster-snapshots");
|
|
607
|
-
const query = (0, import_smithy_client.map)({
|
|
608
|
-
[_cA]: [, input[_cA]],
|
|
609
|
-
[_nT]: [, input[_nT]],
|
|
610
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
611
|
-
[_sT]: [, input[_sT]]
|
|
612
|
-
});
|
|
613
|
-
let body;
|
|
614
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
615
|
-
return b.build();
|
|
616
|
-
}, "se_ListClusterSnapshotsCommand");
|
|
617
|
-
var se_ListPendingMaintenanceActionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
618
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
619
|
-
const headers = {};
|
|
620
|
-
b.bp("/pending-actions");
|
|
621
|
-
const query = (0, import_smithy_client.map)({
|
|
622
|
-
[_nT]: [, input[_nT]],
|
|
623
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
624
|
-
});
|
|
625
|
-
let body;
|
|
626
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
627
|
-
return b.build();
|
|
628
|
-
}, "se_ListPendingMaintenanceActionsCommand");
|
|
629
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
630
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
631
|
-
const headers = {};
|
|
632
|
-
b.bp("/tags/{resourceArn}");
|
|
633
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
634
|
-
let body;
|
|
635
|
-
b.m("GET").h(headers).b(body);
|
|
636
|
-
return b.build();
|
|
637
|
-
}, "se_ListTagsForResourceCommand");
|
|
638
|
-
var se_RestoreClusterFromSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
639
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
640
|
-
const headers = {
|
|
641
|
-
"content-type": "application/json"
|
|
642
|
-
};
|
|
643
|
-
b.bp("/cluster-snapshot/{snapshotArn}/restore");
|
|
644
|
-
b.p("snapshotArn", () => input.snapshotArn, "{snapshotArn}", false);
|
|
645
|
-
let body;
|
|
646
|
-
body = JSON.stringify(
|
|
647
|
-
(0, import_smithy_client.take)(input, {
|
|
648
|
-
clusterName: [],
|
|
649
|
-
kmsKeyId: [],
|
|
650
|
-
shardCapacity: [],
|
|
651
|
-
shardInstanceCount: [],
|
|
652
|
-
subnetIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "subnetIds"),
|
|
653
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
|
|
654
|
-
vpcSecurityGroupIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "vpcSecurityGroupIds")
|
|
655
|
-
})
|
|
656
|
-
);
|
|
657
|
-
b.m("POST").h(headers).b(body);
|
|
658
|
-
return b.build();
|
|
659
|
-
}, "se_RestoreClusterFromSnapshotCommand");
|
|
660
|
-
var se_StartClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
661
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
662
|
-
const headers = {};
|
|
663
|
-
b.bp("/cluster/{clusterArn}/start");
|
|
664
|
-
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
665
|
-
let body;
|
|
666
|
-
b.m("POST").h(headers).b(body);
|
|
667
|
-
return b.build();
|
|
668
|
-
}, "se_StartClusterCommand");
|
|
669
|
-
var se_StopClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
670
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
671
|
-
const headers = {};
|
|
672
|
-
b.bp("/cluster/{clusterArn}/stop");
|
|
673
|
-
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
674
|
-
let body;
|
|
675
|
-
b.m("POST").h(headers).b(body);
|
|
676
|
-
return b.build();
|
|
677
|
-
}, "se_StopClusterCommand");
|
|
678
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
679
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
680
|
-
const headers = {
|
|
681
|
-
"content-type": "application/json"
|
|
682
|
-
};
|
|
683
|
-
b.bp("/tags/{resourceArn}");
|
|
684
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
685
|
-
let body;
|
|
686
|
-
body = JSON.stringify(
|
|
687
|
-
(0, import_smithy_client.take)(input, {
|
|
688
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
689
|
-
})
|
|
690
|
-
);
|
|
691
|
-
b.m("POST").h(headers).b(body);
|
|
692
|
-
return b.build();
|
|
693
|
-
}, "se_TagResourceCommand");
|
|
694
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
695
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
696
|
-
const headers = {};
|
|
697
|
-
b.bp("/tags/{resourceArn}");
|
|
698
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
699
|
-
const query = (0, import_smithy_client.map)({
|
|
700
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
701
|
-
});
|
|
702
|
-
let body;
|
|
703
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
704
|
-
return b.build();
|
|
705
|
-
}, "se_UntagResourceCommand");
|
|
706
|
-
var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
707
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
708
|
-
const headers = {
|
|
709
|
-
"content-type": "application/json"
|
|
710
|
-
};
|
|
711
|
-
b.bp("/cluster/{clusterArn}");
|
|
712
|
-
b.p("clusterArn", () => input.clusterArn, "{clusterArn}", false);
|
|
713
|
-
let body;
|
|
714
|
-
body = JSON.stringify(
|
|
715
|
-
(0, import_smithy_client.take)(input, {
|
|
716
|
-
adminUserPassword: [],
|
|
717
|
-
authType: [],
|
|
718
|
-
backupRetentionPeriod: [],
|
|
719
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
720
|
-
preferredBackupWindow: [],
|
|
721
|
-
preferredMaintenanceWindow: [],
|
|
722
|
-
shardCapacity: [],
|
|
723
|
-
shardCount: [],
|
|
724
|
-
shardInstanceCount: [],
|
|
725
|
-
subnetIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "subnetIds"),
|
|
726
|
-
vpcSecurityGroupIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "vpcSecurityGroupIds")
|
|
727
|
-
})
|
|
728
|
-
);
|
|
729
|
-
b.m("PUT").h(headers).b(body);
|
|
730
|
-
return b.build();
|
|
731
|
-
}, "se_UpdateClusterCommand");
|
|
732
|
-
var de_ApplyPendingMaintenanceActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
733
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
-
return de_CommandError(output, context);
|
|
735
|
-
}
|
|
736
|
-
const contents = (0, import_smithy_client.map)({
|
|
737
|
-
$metadata: deserializeMetadata(output)
|
|
738
|
-
});
|
|
739
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
740
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
741
|
-
resourcePendingMaintenanceAction: import_smithy_client._json
|
|
742
|
-
});
|
|
743
|
-
Object.assign(contents, doc);
|
|
744
|
-
return contents;
|
|
745
|
-
}, "de_ApplyPendingMaintenanceActionCommand");
|
|
746
|
-
var de_CopyClusterSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
747
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
748
|
-
return de_CommandError(output, context);
|
|
749
|
-
}
|
|
750
|
-
const contents = (0, import_smithy_client.map)({
|
|
751
|
-
$metadata: deserializeMetadata(output)
|
|
752
|
-
});
|
|
753
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
754
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
755
|
-
snapshot: import_smithy_client._json
|
|
756
|
-
});
|
|
757
|
-
Object.assign(contents, doc);
|
|
758
|
-
return contents;
|
|
759
|
-
}, "de_CopyClusterSnapshotCommand");
|
|
760
|
-
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
761
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
762
|
-
return de_CommandError(output, context);
|
|
763
|
-
}
|
|
764
|
-
const contents = (0, import_smithy_client.map)({
|
|
765
|
-
$metadata: deserializeMetadata(output)
|
|
766
|
-
});
|
|
767
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
768
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
769
|
-
cluster: import_smithy_client._json
|
|
770
|
-
});
|
|
771
|
-
Object.assign(contents, doc);
|
|
772
|
-
return contents;
|
|
773
|
-
}, "de_CreateClusterCommand");
|
|
774
|
-
var de_CreateClusterSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
775
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
776
|
-
return de_CommandError(output, context);
|
|
777
|
-
}
|
|
778
|
-
const contents = (0, import_smithy_client.map)({
|
|
779
|
-
$metadata: deserializeMetadata(output)
|
|
780
|
-
});
|
|
781
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
782
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
783
|
-
snapshot: import_smithy_client._json
|
|
784
|
-
});
|
|
785
|
-
Object.assign(contents, doc);
|
|
786
|
-
return contents;
|
|
787
|
-
}, "de_CreateClusterSnapshotCommand");
|
|
788
|
-
var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
789
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
-
return de_CommandError(output, context);
|
|
791
|
-
}
|
|
792
|
-
const contents = (0, import_smithy_client.map)({
|
|
793
|
-
$metadata: deserializeMetadata(output)
|
|
794
|
-
});
|
|
795
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
796
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
797
|
-
cluster: import_smithy_client._json
|
|
798
|
-
});
|
|
799
|
-
Object.assign(contents, doc);
|
|
800
|
-
return contents;
|
|
801
|
-
}, "de_DeleteClusterCommand");
|
|
802
|
-
var de_DeleteClusterSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
803
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
804
|
-
return de_CommandError(output, context);
|
|
805
|
-
}
|
|
806
|
-
const contents = (0, import_smithy_client.map)({
|
|
807
|
-
$metadata: deserializeMetadata(output)
|
|
808
|
-
});
|
|
809
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
810
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
811
|
-
snapshot: import_smithy_client._json
|
|
812
|
-
});
|
|
813
|
-
Object.assign(contents, doc);
|
|
814
|
-
return contents;
|
|
815
|
-
}, "de_DeleteClusterSnapshotCommand");
|
|
816
|
-
var de_GetClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
817
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
818
|
-
return de_CommandError(output, context);
|
|
819
|
-
}
|
|
820
|
-
const contents = (0, import_smithy_client.map)({
|
|
821
|
-
$metadata: deserializeMetadata(output)
|
|
822
|
-
});
|
|
823
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
824
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
825
|
-
cluster: import_smithy_client._json
|
|
826
|
-
});
|
|
827
|
-
Object.assign(contents, doc);
|
|
828
|
-
return contents;
|
|
829
|
-
}, "de_GetClusterCommand");
|
|
830
|
-
var de_GetClusterSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return de_CommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const contents = (0, import_smithy_client.map)({
|
|
835
|
-
$metadata: deserializeMetadata(output)
|
|
836
|
-
});
|
|
837
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
838
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
839
|
-
snapshot: import_smithy_client._json
|
|
840
|
-
});
|
|
841
|
-
Object.assign(contents, doc);
|
|
842
|
-
return contents;
|
|
843
|
-
}, "de_GetClusterSnapshotCommand");
|
|
844
|
-
var de_GetPendingMaintenanceActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return de_CommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const contents = (0, import_smithy_client.map)({
|
|
849
|
-
$metadata: deserializeMetadata(output)
|
|
850
|
-
});
|
|
851
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
852
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
853
|
-
resourcePendingMaintenanceAction: import_smithy_client._json
|
|
854
|
-
});
|
|
855
|
-
Object.assign(contents, doc);
|
|
856
|
-
return contents;
|
|
857
|
-
}, "de_GetPendingMaintenanceActionCommand");
|
|
858
|
-
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
859
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
|
-
return de_CommandError(output, context);
|
|
861
|
-
}
|
|
862
|
-
const contents = (0, import_smithy_client.map)({
|
|
863
|
-
$metadata: deserializeMetadata(output)
|
|
864
|
-
});
|
|
865
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
866
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
867
|
-
clusters: import_smithy_client._json,
|
|
868
|
-
nextToken: import_smithy_client.expectString
|
|
869
|
-
});
|
|
870
|
-
Object.assign(contents, doc);
|
|
871
|
-
return contents;
|
|
872
|
-
}, "de_ListClustersCommand");
|
|
873
|
-
var de_ListClusterSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
874
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
875
|
-
return de_CommandError(output, context);
|
|
876
|
-
}
|
|
877
|
-
const contents = (0, import_smithy_client.map)({
|
|
878
|
-
$metadata: deserializeMetadata(output)
|
|
879
|
-
});
|
|
880
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
881
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
882
|
-
nextToken: import_smithy_client.expectString,
|
|
883
|
-
snapshots: import_smithy_client._json
|
|
884
|
-
});
|
|
885
|
-
Object.assign(contents, doc);
|
|
886
|
-
return contents;
|
|
887
|
-
}, "de_ListClusterSnapshotsCommand");
|
|
888
|
-
var de_ListPendingMaintenanceActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
889
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
890
|
-
return de_CommandError(output, context);
|
|
891
|
-
}
|
|
892
|
-
const contents = (0, import_smithy_client.map)({
|
|
893
|
-
$metadata: deserializeMetadata(output)
|
|
894
|
-
});
|
|
895
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
896
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
897
|
-
nextToken: import_smithy_client.expectString,
|
|
898
|
-
resourcePendingMaintenanceActions: import_smithy_client._json
|
|
899
|
-
});
|
|
900
|
-
Object.assign(contents, doc);
|
|
901
|
-
return contents;
|
|
902
|
-
}, "de_ListPendingMaintenanceActionsCommand");
|
|
903
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
904
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
-
return de_CommandError(output, context);
|
|
906
|
-
}
|
|
907
|
-
const contents = (0, import_smithy_client.map)({
|
|
908
|
-
$metadata: deserializeMetadata(output)
|
|
909
|
-
});
|
|
910
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
911
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
912
|
-
tags: import_smithy_client._json
|
|
913
|
-
});
|
|
914
|
-
Object.assign(contents, doc);
|
|
915
|
-
return contents;
|
|
916
|
-
}, "de_ListTagsForResourceCommand");
|
|
917
|
-
var de_RestoreClusterFromSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
918
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
919
|
-
return de_CommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
const contents = (0, import_smithy_client.map)({
|
|
922
|
-
$metadata: deserializeMetadata(output)
|
|
923
|
-
});
|
|
924
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
925
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
926
|
-
cluster: import_smithy_client._json
|
|
927
|
-
});
|
|
928
|
-
Object.assign(contents, doc);
|
|
929
|
-
return contents;
|
|
930
|
-
}, "de_RestoreClusterFromSnapshotCommand");
|
|
931
|
-
var de_StartClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
932
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
|
-
return de_CommandError(output, context);
|
|
934
|
-
}
|
|
935
|
-
const contents = (0, import_smithy_client.map)({
|
|
936
|
-
$metadata: deserializeMetadata(output)
|
|
937
|
-
});
|
|
938
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
939
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
940
|
-
cluster: import_smithy_client._json
|
|
941
|
-
});
|
|
942
|
-
Object.assign(contents, doc);
|
|
943
|
-
return contents;
|
|
944
|
-
}, "de_StartClusterCommand");
|
|
945
|
-
var de_StopClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
946
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return de_CommandError(output, context);
|
|
948
|
-
}
|
|
949
|
-
const contents = (0, import_smithy_client.map)({
|
|
950
|
-
$metadata: deserializeMetadata(output)
|
|
951
|
-
});
|
|
952
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
953
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
954
|
-
cluster: import_smithy_client._json
|
|
955
|
-
});
|
|
956
|
-
Object.assign(contents, doc);
|
|
957
|
-
return contents;
|
|
958
|
-
}, "de_StopClusterCommand");
|
|
959
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
|
-
return de_CommandError(output, context);
|
|
962
|
-
}
|
|
963
|
-
const contents = (0, import_smithy_client.map)({
|
|
964
|
-
$metadata: deserializeMetadata(output)
|
|
965
|
-
});
|
|
966
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
967
|
-
return contents;
|
|
968
|
-
}, "de_TagResourceCommand");
|
|
969
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
970
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
|
-
return de_CommandError(output, context);
|
|
972
|
-
}
|
|
973
|
-
const contents = (0, import_smithy_client.map)({
|
|
974
|
-
$metadata: deserializeMetadata(output)
|
|
975
|
-
});
|
|
976
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
977
|
-
return contents;
|
|
978
|
-
}, "de_UntagResourceCommand");
|
|
979
|
-
var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
980
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
981
|
-
return de_CommandError(output, context);
|
|
982
|
-
}
|
|
983
|
-
const contents = (0, import_smithy_client.map)({
|
|
984
|
-
$metadata: deserializeMetadata(output)
|
|
985
|
-
});
|
|
986
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
987
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
988
|
-
cluster: import_smithy_client._json
|
|
989
|
-
});
|
|
990
|
-
Object.assign(contents, doc);
|
|
991
|
-
return contents;
|
|
992
|
-
}, "de_UpdateClusterCommand");
|
|
993
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
994
|
-
const parsedOutput = {
|
|
995
|
-
...output,
|
|
996
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
997
|
-
};
|
|
998
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
999
|
-
switch (errorCode) {
|
|
1000
|
-
case "AccessDeniedException":
|
|
1001
|
-
case "com.amazonaws.docdbelastic#AccessDeniedException":
|
|
1002
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ConflictException":
|
|
1004
|
-
case "com.amazonaws.docdbelastic#ConflictException":
|
|
1005
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "InternalServerException":
|
|
1007
|
-
case "com.amazonaws.docdbelastic#InternalServerException":
|
|
1008
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "ResourceNotFoundException":
|
|
1010
|
-
case "com.amazonaws.docdbelastic#ResourceNotFoundException":
|
|
1011
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "ThrottlingException":
|
|
1013
|
-
case "com.amazonaws.docdbelastic#ThrottlingException":
|
|
1014
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ValidationException":
|
|
1016
|
-
case "com.amazonaws.docdbelastic#ValidationException":
|
|
1017
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ServiceQuotaExceededException":
|
|
1019
|
-
case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
|
|
1020
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
}, "de_CommandError");
|
|
1030
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(DocDBElasticServiceException);
|
|
1031
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1032
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1033
|
-
const data = parsedOutput.body;
|
|
1034
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1035
|
-
message: import_smithy_client.expectString
|
|
1036
|
-
});
|
|
1037
|
-
Object.assign(contents, doc);
|
|
1038
|
-
const exception = new AccessDeniedException({
|
|
1039
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1040
|
-
...contents
|
|
1041
|
-
});
|
|
1042
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1043
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1044
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1045
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1046
|
-
const data = parsedOutput.body;
|
|
1047
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1048
|
-
message: import_smithy_client.expectString,
|
|
1049
|
-
resourceId: import_smithy_client.expectString,
|
|
1050
|
-
resourceType: import_smithy_client.expectString
|
|
1051
|
-
});
|
|
1052
|
-
Object.assign(contents, doc);
|
|
1053
|
-
const exception = new ConflictException({
|
|
1054
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1055
|
-
...contents
|
|
1056
|
-
});
|
|
1057
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1058
|
-
}, "de_ConflictExceptionRes");
|
|
1059
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1060
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1061
|
-
const data = parsedOutput.body;
|
|
1062
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1063
|
-
message: import_smithy_client.expectString
|
|
1064
|
-
});
|
|
1065
|
-
Object.assign(contents, doc);
|
|
1066
|
-
const exception = new InternalServerException({
|
|
1067
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1068
|
-
...contents
|
|
1069
|
-
});
|
|
1070
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1071
|
-
}, "de_InternalServerExceptionRes");
|
|
1072
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1073
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1074
|
-
const data = parsedOutput.body;
|
|
1075
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1076
|
-
message: import_smithy_client.expectString,
|
|
1077
|
-
resourceId: import_smithy_client.expectString,
|
|
1078
|
-
resourceType: import_smithy_client.expectString
|
|
1079
|
-
});
|
|
1080
|
-
Object.assign(contents, doc);
|
|
1081
|
-
const exception = new ResourceNotFoundException({
|
|
1082
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1083
|
-
...contents
|
|
1084
|
-
});
|
|
1085
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1086
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1087
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1088
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1089
|
-
const data = parsedOutput.body;
|
|
1090
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1091
|
-
message: import_smithy_client.expectString
|
|
1092
|
-
});
|
|
1093
|
-
Object.assign(contents, doc);
|
|
1094
|
-
const exception = new ServiceQuotaExceededException({
|
|
1095
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1096
|
-
...contents
|
|
1097
|
-
});
|
|
1098
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1099
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1100
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1101
|
-
const contents = (0, import_smithy_client.map)({
|
|
1102
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1103
|
-
});
|
|
1104
|
-
const data = parsedOutput.body;
|
|
1105
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1106
|
-
message: import_smithy_client.expectString
|
|
1107
|
-
});
|
|
1108
|
-
Object.assign(contents, doc);
|
|
1109
|
-
const exception = new ThrottlingException({
|
|
1110
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1111
|
-
...contents
|
|
1112
|
-
});
|
|
1113
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1114
|
-
}, "de_ThrottlingExceptionRes");
|
|
1115
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1116
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1117
|
-
const data = parsedOutput.body;
|
|
1118
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1119
|
-
fieldList: import_smithy_client._json,
|
|
1120
|
-
message: import_smithy_client.expectString,
|
|
1121
|
-
reason: import_smithy_client.expectString
|
|
1122
|
-
});
|
|
1123
|
-
Object.assign(contents, doc);
|
|
1124
|
-
const exception = new ValidationException({
|
|
1125
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1126
|
-
...contents
|
|
1127
|
-
});
|
|
1128
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1129
|
-
}, "de_ValidationExceptionRes");
|
|
1130
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1131
|
-
httpStatusCode: output.statusCode,
|
|
1132
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1133
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1134
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1135
|
-
}), "deserializeMetadata");
|
|
1136
|
-
var _cA = "clusterArn";
|
|
1137
|
-
var _mR = "maxResults";
|
|
1138
|
-
var _nT = "nextToken";
|
|
1139
|
-
var _rAS = "retryAfterSeconds";
|
|
1140
|
-
var _ra = "retry-after";
|
|
1141
|
-
var _sT = "snapshotType";
|
|
1142
|
-
var _tK = "tagKeys";
|
|
1143
|
-
|
|
1144
|
-
// src/commands/ApplyPendingMaintenanceActionCommand.ts
|
|
1145
|
-
var ApplyPendingMaintenanceActionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1146
|
-
return [
|
|
1147
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1148
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1149
|
-
];
|
|
1150
|
-
}).s("ChimeraDbLionfishServiceLambda", "ApplyPendingMaintenanceAction", {}).n("DocDBElasticClient", "ApplyPendingMaintenanceActionCommand").f(void 0, void 0).ser(se_ApplyPendingMaintenanceActionCommand).de(de_ApplyPendingMaintenanceActionCommand).build() {
|
|
1151
|
-
static {
|
|
1152
|
-
__name(this, "ApplyPendingMaintenanceActionCommand");
|
|
1153
|
-
}
|
|
598
|
+
const de_DeleteClusterSnapshotCommand = async (output, context) => {
|
|
599
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
+
return de_CommandError(output, context);
|
|
601
|
+
}
|
|
602
|
+
const contents = smithyClient.map({
|
|
603
|
+
$metadata: deserializeMetadata(output),
|
|
604
|
+
});
|
|
605
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
606
|
+
const doc = smithyClient.take(data, {
|
|
607
|
+
snapshot: smithyClient._json,
|
|
608
|
+
});
|
|
609
|
+
Object.assign(contents, doc);
|
|
610
|
+
return contents;
|
|
1154
611
|
};
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
(
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
})
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
}
|
|
612
|
+
const de_GetClusterCommand = async (output, context) => {
|
|
613
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
|
+
return de_CommandError(output, context);
|
|
615
|
+
}
|
|
616
|
+
const contents = smithyClient.map({
|
|
617
|
+
$metadata: deserializeMetadata(output),
|
|
618
|
+
});
|
|
619
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
620
|
+
const doc = smithyClient.take(data, {
|
|
621
|
+
cluster: smithyClient._json,
|
|
622
|
+
});
|
|
623
|
+
Object.assign(contents, doc);
|
|
624
|
+
return contents;
|
|
1169
625
|
};
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
(
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
})
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
}
|
|
626
|
+
const de_GetClusterSnapshotCommand = async (output, context) => {
|
|
627
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
628
|
+
return de_CommandError(output, context);
|
|
629
|
+
}
|
|
630
|
+
const contents = smithyClient.map({
|
|
631
|
+
$metadata: deserializeMetadata(output),
|
|
632
|
+
});
|
|
633
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
634
|
+
const doc = smithyClient.take(data, {
|
|
635
|
+
snapshot: smithyClient._json,
|
|
636
|
+
});
|
|
637
|
+
Object.assign(contents, doc);
|
|
638
|
+
return contents;
|
|
1184
639
|
};
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
(
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
})
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
}
|
|
640
|
+
const de_GetPendingMaintenanceActionCommand = async (output, context) => {
|
|
641
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
+
return de_CommandError(output, context);
|
|
643
|
+
}
|
|
644
|
+
const contents = smithyClient.map({
|
|
645
|
+
$metadata: deserializeMetadata(output),
|
|
646
|
+
});
|
|
647
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
648
|
+
const doc = smithyClient.take(data, {
|
|
649
|
+
resourcePendingMaintenanceAction: smithyClient._json,
|
|
650
|
+
});
|
|
651
|
+
Object.assign(contents, doc);
|
|
652
|
+
return contents;
|
|
1199
653
|
};
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
(
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
654
|
+
const de_ListClustersCommand = async (output, context) => {
|
|
655
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
+
return de_CommandError(output, context);
|
|
657
|
+
}
|
|
658
|
+
const contents = smithyClient.map({
|
|
659
|
+
$metadata: deserializeMetadata(output),
|
|
660
|
+
});
|
|
661
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
662
|
+
const doc = smithyClient.take(data, {
|
|
663
|
+
clusters: smithyClient._json,
|
|
664
|
+
nextToken: smithyClient.expectString,
|
|
665
|
+
});
|
|
666
|
+
Object.assign(contents, doc);
|
|
667
|
+
return contents;
|
|
1214
668
|
};
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
(
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
669
|
+
const de_ListClusterSnapshotsCommand = async (output, context) => {
|
|
670
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
671
|
+
return de_CommandError(output, context);
|
|
672
|
+
}
|
|
673
|
+
const contents = smithyClient.map({
|
|
674
|
+
$metadata: deserializeMetadata(output),
|
|
675
|
+
});
|
|
676
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
677
|
+
const doc = smithyClient.take(data, {
|
|
678
|
+
nextToken: smithyClient.expectString,
|
|
679
|
+
snapshots: smithyClient._json,
|
|
680
|
+
});
|
|
681
|
+
Object.assign(contents, doc);
|
|
682
|
+
return contents;
|
|
1229
683
|
};
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
(
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
684
|
+
const de_ListPendingMaintenanceActionsCommand = async (output, context) => {
|
|
685
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
686
|
+
return de_CommandError(output, context);
|
|
687
|
+
}
|
|
688
|
+
const contents = smithyClient.map({
|
|
689
|
+
$metadata: deserializeMetadata(output),
|
|
690
|
+
});
|
|
691
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
692
|
+
const doc = smithyClient.take(data, {
|
|
693
|
+
nextToken: smithyClient.expectString,
|
|
694
|
+
resourcePendingMaintenanceActions: smithyClient._json,
|
|
695
|
+
});
|
|
696
|
+
Object.assign(contents, doc);
|
|
697
|
+
return contents;
|
|
1244
698
|
};
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
(
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
})
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
}
|
|
699
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
700
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
701
|
+
return de_CommandError(output, context);
|
|
702
|
+
}
|
|
703
|
+
const contents = smithyClient.map({
|
|
704
|
+
$metadata: deserializeMetadata(output),
|
|
705
|
+
});
|
|
706
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
707
|
+
const doc = smithyClient.take(data, {
|
|
708
|
+
tags: smithyClient._json,
|
|
709
|
+
});
|
|
710
|
+
Object.assign(contents, doc);
|
|
711
|
+
return contents;
|
|
1259
712
|
};
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
(
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
})
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
}
|
|
713
|
+
const de_RestoreClusterFromSnapshotCommand = async (output, context) => {
|
|
714
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
+
return de_CommandError(output, context);
|
|
716
|
+
}
|
|
717
|
+
const contents = smithyClient.map({
|
|
718
|
+
$metadata: deserializeMetadata(output),
|
|
719
|
+
});
|
|
720
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
721
|
+
const doc = smithyClient.take(data, {
|
|
722
|
+
cluster: smithyClient._json,
|
|
723
|
+
});
|
|
724
|
+
Object.assign(contents, doc);
|
|
725
|
+
return contents;
|
|
1274
726
|
};
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
(
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
})
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
}
|
|
727
|
+
const de_StartClusterCommand = async (output, context) => {
|
|
728
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
729
|
+
return de_CommandError(output, context);
|
|
730
|
+
}
|
|
731
|
+
const contents = smithyClient.map({
|
|
732
|
+
$metadata: deserializeMetadata(output),
|
|
733
|
+
});
|
|
734
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
735
|
+
const doc = smithyClient.take(data, {
|
|
736
|
+
cluster: smithyClient._json,
|
|
737
|
+
});
|
|
738
|
+
Object.assign(contents, doc);
|
|
739
|
+
return contents;
|
|
1289
740
|
};
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
(
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
})
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
}
|
|
741
|
+
const de_StopClusterCommand = async (output, context) => {
|
|
742
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
+
return de_CommandError(output, context);
|
|
744
|
+
}
|
|
745
|
+
const contents = smithyClient.map({
|
|
746
|
+
$metadata: deserializeMetadata(output),
|
|
747
|
+
});
|
|
748
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
749
|
+
const doc = smithyClient.take(data, {
|
|
750
|
+
cluster: smithyClient._json,
|
|
751
|
+
});
|
|
752
|
+
Object.assign(contents, doc);
|
|
753
|
+
return contents;
|
|
1304
754
|
};
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
];
|
|
1315
|
-
}).s("ChimeraDbLionfishServiceLambda", "ListPendingMaintenanceActions", {}).n("DocDBElasticClient", "ListPendingMaintenanceActionsCommand").f(void 0, void 0).ser(se_ListPendingMaintenanceActionsCommand).de(de_ListPendingMaintenanceActionsCommand).build() {
|
|
1316
|
-
static {
|
|
1317
|
-
__name(this, "ListPendingMaintenanceActionsCommand");
|
|
1318
|
-
}
|
|
755
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
756
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
+
return de_CommandError(output, context);
|
|
758
|
+
}
|
|
759
|
+
const contents = smithyClient.map({
|
|
760
|
+
$metadata: deserializeMetadata(output),
|
|
761
|
+
});
|
|
762
|
+
await smithyClient.collectBody(output.body, context);
|
|
763
|
+
return contents;
|
|
1319
764
|
};
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
];
|
|
1330
|
-
}).s("ChimeraDbLionfishServiceLambda", "ListTagsForResource", {}).n("DocDBElasticClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1331
|
-
static {
|
|
1332
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1333
|
-
}
|
|
765
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
766
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
+
return de_CommandError(output, context);
|
|
768
|
+
}
|
|
769
|
+
const contents = smithyClient.map({
|
|
770
|
+
$metadata: deserializeMetadata(output),
|
|
771
|
+
});
|
|
772
|
+
await smithyClient.collectBody(output.body, context);
|
|
773
|
+
return contents;
|
|
1334
774
|
};
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
(
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
})
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
}
|
|
775
|
+
const de_UpdateClusterCommand = async (output, context) => {
|
|
776
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
|
+
return de_CommandError(output, context);
|
|
778
|
+
}
|
|
779
|
+
const contents = smithyClient.map({
|
|
780
|
+
$metadata: deserializeMetadata(output),
|
|
781
|
+
});
|
|
782
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
783
|
+
const doc = smithyClient.take(data, {
|
|
784
|
+
cluster: smithyClient._json,
|
|
785
|
+
});
|
|
786
|
+
Object.assign(contents, doc);
|
|
787
|
+
return contents;
|
|
1349
788
|
};
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
789
|
+
const de_CommandError = async (output, context) => {
|
|
790
|
+
const parsedOutput = {
|
|
791
|
+
...output,
|
|
792
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
793
|
+
};
|
|
794
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
|
+
switch (errorCode) {
|
|
796
|
+
case "AccessDeniedException":
|
|
797
|
+
case "com.amazonaws.docdbelastic#AccessDeniedException":
|
|
798
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
799
|
+
case "ConflictException":
|
|
800
|
+
case "com.amazonaws.docdbelastic#ConflictException":
|
|
801
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
802
|
+
case "InternalServerException":
|
|
803
|
+
case "com.amazonaws.docdbelastic#InternalServerException":
|
|
804
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
805
|
+
case "ResourceNotFoundException":
|
|
806
|
+
case "com.amazonaws.docdbelastic#ResourceNotFoundException":
|
|
807
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
808
|
+
case "ThrottlingException":
|
|
809
|
+
case "com.amazonaws.docdbelastic#ThrottlingException":
|
|
810
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
811
|
+
case "ValidationException":
|
|
812
|
+
case "com.amazonaws.docdbelastic#ValidationException":
|
|
813
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
814
|
+
case "ServiceQuotaExceededException":
|
|
815
|
+
case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
|
|
816
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
817
|
+
default:
|
|
818
|
+
const parsedBody = parsedOutput.body;
|
|
819
|
+
return throwDefaultError({
|
|
820
|
+
output,
|
|
821
|
+
parsedBody,
|
|
822
|
+
errorCode,
|
|
823
|
+
});
|
|
824
|
+
}
|
|
1364
825
|
};
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
}
|
|
826
|
+
const throwDefaultError = smithyClient.withBaseException(DocDBElasticServiceException);
|
|
827
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
828
|
+
const contents = smithyClient.map({});
|
|
829
|
+
const data = parsedOutput.body;
|
|
830
|
+
const doc = smithyClient.take(data, {
|
|
831
|
+
message: smithyClient.expectString,
|
|
832
|
+
});
|
|
833
|
+
Object.assign(contents, doc);
|
|
834
|
+
const exception = new AccessDeniedException({
|
|
835
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
836
|
+
...contents,
|
|
837
|
+
});
|
|
838
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1379
839
|
};
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
840
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
841
|
+
const contents = smithyClient.map({});
|
|
842
|
+
const data = parsedOutput.body;
|
|
843
|
+
const doc = smithyClient.take(data, {
|
|
844
|
+
message: smithyClient.expectString,
|
|
845
|
+
resourceId: smithyClient.expectString,
|
|
846
|
+
resourceType: smithyClient.expectString,
|
|
847
|
+
});
|
|
848
|
+
Object.assign(contents, doc);
|
|
849
|
+
const exception = new ConflictException({
|
|
850
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
851
|
+
...contents,
|
|
852
|
+
});
|
|
853
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1394
854
|
};
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
})
|
|
1406
|
-
|
|
1407
|
-
__name(this, "UntagResourceCommand");
|
|
1408
|
-
}
|
|
855
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
856
|
+
const contents = smithyClient.map({});
|
|
857
|
+
const data = parsedOutput.body;
|
|
858
|
+
const doc = smithyClient.take(data, {
|
|
859
|
+
message: smithyClient.expectString,
|
|
860
|
+
});
|
|
861
|
+
Object.assign(contents, doc);
|
|
862
|
+
const exception = new InternalServerException({
|
|
863
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
864
|
+
...contents,
|
|
865
|
+
});
|
|
866
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1409
867
|
};
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
868
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
869
|
+
const contents = smithyClient.map({});
|
|
870
|
+
const data = parsedOutput.body;
|
|
871
|
+
const doc = smithyClient.take(data, {
|
|
872
|
+
message: smithyClient.expectString,
|
|
873
|
+
resourceId: smithyClient.expectString,
|
|
874
|
+
resourceType: smithyClient.expectString,
|
|
875
|
+
});
|
|
876
|
+
Object.assign(contents, doc);
|
|
877
|
+
const exception = new ResourceNotFoundException({
|
|
878
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
879
|
+
...contents,
|
|
880
|
+
});
|
|
881
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1424
882
|
};
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
883
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
884
|
+
const contents = smithyClient.map({});
|
|
885
|
+
const data = parsedOutput.body;
|
|
886
|
+
const doc = smithyClient.take(data, {
|
|
887
|
+
message: smithyClient.expectString,
|
|
888
|
+
});
|
|
889
|
+
Object.assign(contents, doc);
|
|
890
|
+
const exception = new ServiceQuotaExceededException({
|
|
891
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
892
|
+
...contents,
|
|
893
|
+
});
|
|
894
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
895
|
+
};
|
|
896
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
897
|
+
const contents = smithyClient.map({
|
|
898
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
899
|
+
});
|
|
900
|
+
const data = parsedOutput.body;
|
|
901
|
+
const doc = smithyClient.take(data, {
|
|
902
|
+
message: smithyClient.expectString,
|
|
903
|
+
});
|
|
904
|
+
Object.assign(contents, doc);
|
|
905
|
+
const exception = new ThrottlingException({
|
|
906
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
907
|
+
...contents,
|
|
908
|
+
});
|
|
909
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1447
910
|
};
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
911
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
912
|
+
const contents = smithyClient.map({});
|
|
913
|
+
const data = parsedOutput.body;
|
|
914
|
+
const doc = smithyClient.take(data, {
|
|
915
|
+
fieldList: smithyClient._json,
|
|
916
|
+
message: smithyClient.expectString,
|
|
917
|
+
reason: smithyClient.expectString,
|
|
918
|
+
});
|
|
919
|
+
Object.assign(contents, doc);
|
|
920
|
+
const exception = new ValidationException({
|
|
921
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
922
|
+
...contents,
|
|
923
|
+
});
|
|
924
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1452
925
|
};
|
|
1453
|
-
(
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
926
|
+
const deserializeMetadata = (output) => ({
|
|
927
|
+
httpStatusCode: output.statusCode,
|
|
928
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
929
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
930
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
931
|
+
});
|
|
932
|
+
const _cA = "clusterArn";
|
|
933
|
+
const _mR = "maxResults";
|
|
934
|
+
const _nT = "nextToken";
|
|
935
|
+
const _rAS = "retryAfterSeconds";
|
|
936
|
+
const _ra = "retry-after";
|
|
937
|
+
const _sT = "snapshotType";
|
|
938
|
+
const _tK = "tagKeys";
|
|
939
|
+
|
|
940
|
+
class ApplyPendingMaintenanceActionCommand extends smithyClient.Command
|
|
941
|
+
.classBuilder()
|
|
942
|
+
.ep(commonParams)
|
|
943
|
+
.m(function (Command, cs, config, o) {
|
|
944
|
+
return [
|
|
945
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
946
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
947
|
+
];
|
|
948
|
+
})
|
|
949
|
+
.s("ChimeraDbLionfishServiceLambda", "ApplyPendingMaintenanceAction", {})
|
|
950
|
+
.n("DocDBElasticClient", "ApplyPendingMaintenanceActionCommand")
|
|
951
|
+
.f(void 0, void 0)
|
|
952
|
+
.ser(se_ApplyPendingMaintenanceActionCommand)
|
|
953
|
+
.de(de_ApplyPendingMaintenanceActionCommand)
|
|
954
|
+
.build() {
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
class CopyClusterSnapshotCommand extends smithyClient.Command
|
|
958
|
+
.classBuilder()
|
|
959
|
+
.ep(commonParams)
|
|
960
|
+
.m(function (Command, cs, config, o) {
|
|
961
|
+
return [
|
|
962
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
963
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
964
|
+
];
|
|
965
|
+
})
|
|
966
|
+
.s("ChimeraDbLionfishServiceLambda", "CopyClusterSnapshot", {})
|
|
967
|
+
.n("DocDBElasticClient", "CopyClusterSnapshotCommand")
|
|
968
|
+
.f(void 0, void 0)
|
|
969
|
+
.ser(se_CopyClusterSnapshotCommand)
|
|
970
|
+
.de(de_CopyClusterSnapshotCommand)
|
|
971
|
+
.build() {
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
class CreateClusterCommand extends smithyClient.Command
|
|
975
|
+
.classBuilder()
|
|
976
|
+
.ep(commonParams)
|
|
977
|
+
.m(function (Command, cs, config, o) {
|
|
978
|
+
return [
|
|
979
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
980
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
981
|
+
];
|
|
982
|
+
})
|
|
983
|
+
.s("ChimeraDbLionfishServiceLambda", "CreateCluster", {})
|
|
984
|
+
.n("DocDBElasticClient", "CreateClusterCommand")
|
|
985
|
+
.f(CreateClusterInputFilterSensitiveLog, void 0)
|
|
986
|
+
.ser(se_CreateClusterCommand)
|
|
987
|
+
.de(de_CreateClusterCommand)
|
|
988
|
+
.build() {
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
class CreateClusterSnapshotCommand extends smithyClient.Command
|
|
992
|
+
.classBuilder()
|
|
993
|
+
.ep(commonParams)
|
|
994
|
+
.m(function (Command, cs, config, o) {
|
|
995
|
+
return [
|
|
996
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
997
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
998
|
+
];
|
|
999
|
+
})
|
|
1000
|
+
.s("ChimeraDbLionfishServiceLambda", "CreateClusterSnapshot", {})
|
|
1001
|
+
.n("DocDBElasticClient", "CreateClusterSnapshotCommand")
|
|
1002
|
+
.f(void 0, void 0)
|
|
1003
|
+
.ser(se_CreateClusterSnapshotCommand)
|
|
1004
|
+
.de(de_CreateClusterSnapshotCommand)
|
|
1005
|
+
.build() {
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
class DeleteClusterCommand extends smithyClient.Command
|
|
1009
|
+
.classBuilder()
|
|
1010
|
+
.ep(commonParams)
|
|
1011
|
+
.m(function (Command, cs, config, o) {
|
|
1012
|
+
return [
|
|
1013
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1014
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1015
|
+
];
|
|
1016
|
+
})
|
|
1017
|
+
.s("ChimeraDbLionfishServiceLambda", "DeleteCluster", {})
|
|
1018
|
+
.n("DocDBElasticClient", "DeleteClusterCommand")
|
|
1019
|
+
.f(void 0, void 0)
|
|
1020
|
+
.ser(se_DeleteClusterCommand)
|
|
1021
|
+
.de(de_DeleteClusterCommand)
|
|
1022
|
+
.build() {
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
class DeleteClusterSnapshotCommand extends smithyClient.Command
|
|
1026
|
+
.classBuilder()
|
|
1027
|
+
.ep(commonParams)
|
|
1028
|
+
.m(function (Command, cs, config, o) {
|
|
1029
|
+
return [
|
|
1030
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1031
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1032
|
+
];
|
|
1033
|
+
})
|
|
1034
|
+
.s("ChimeraDbLionfishServiceLambda", "DeleteClusterSnapshot", {})
|
|
1035
|
+
.n("DocDBElasticClient", "DeleteClusterSnapshotCommand")
|
|
1036
|
+
.f(void 0, void 0)
|
|
1037
|
+
.ser(se_DeleteClusterSnapshotCommand)
|
|
1038
|
+
.de(de_DeleteClusterSnapshotCommand)
|
|
1039
|
+
.build() {
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
class GetClusterCommand extends smithyClient.Command
|
|
1043
|
+
.classBuilder()
|
|
1044
|
+
.ep(commonParams)
|
|
1045
|
+
.m(function (Command, cs, config, o) {
|
|
1046
|
+
return [
|
|
1047
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1048
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1049
|
+
];
|
|
1050
|
+
})
|
|
1051
|
+
.s("ChimeraDbLionfishServiceLambda", "GetCluster", {})
|
|
1052
|
+
.n("DocDBElasticClient", "GetClusterCommand")
|
|
1053
|
+
.f(void 0, void 0)
|
|
1054
|
+
.ser(se_GetClusterCommand)
|
|
1055
|
+
.de(de_GetClusterCommand)
|
|
1056
|
+
.build() {
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
class GetClusterSnapshotCommand extends smithyClient.Command
|
|
1060
|
+
.classBuilder()
|
|
1061
|
+
.ep(commonParams)
|
|
1062
|
+
.m(function (Command, cs, config, o) {
|
|
1063
|
+
return [
|
|
1064
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1065
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1066
|
+
];
|
|
1067
|
+
})
|
|
1068
|
+
.s("ChimeraDbLionfishServiceLambda", "GetClusterSnapshot", {})
|
|
1069
|
+
.n("DocDBElasticClient", "GetClusterSnapshotCommand")
|
|
1070
|
+
.f(void 0, void 0)
|
|
1071
|
+
.ser(se_GetClusterSnapshotCommand)
|
|
1072
|
+
.de(de_GetClusterSnapshotCommand)
|
|
1073
|
+
.build() {
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
class GetPendingMaintenanceActionCommand extends smithyClient.Command
|
|
1077
|
+
.classBuilder()
|
|
1078
|
+
.ep(commonParams)
|
|
1079
|
+
.m(function (Command, cs, config, o) {
|
|
1080
|
+
return [
|
|
1081
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1082
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1083
|
+
];
|
|
1084
|
+
})
|
|
1085
|
+
.s("ChimeraDbLionfishServiceLambda", "GetPendingMaintenanceAction", {})
|
|
1086
|
+
.n("DocDBElasticClient", "GetPendingMaintenanceActionCommand")
|
|
1087
|
+
.f(void 0, void 0)
|
|
1088
|
+
.ser(se_GetPendingMaintenanceActionCommand)
|
|
1089
|
+
.de(de_GetPendingMaintenanceActionCommand)
|
|
1090
|
+
.build() {
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
class ListClustersCommand extends smithyClient.Command
|
|
1094
|
+
.classBuilder()
|
|
1095
|
+
.ep(commonParams)
|
|
1096
|
+
.m(function (Command, cs, config, o) {
|
|
1097
|
+
return [
|
|
1098
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1099
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1100
|
+
];
|
|
1101
|
+
})
|
|
1102
|
+
.s("ChimeraDbLionfishServiceLambda", "ListClusters", {})
|
|
1103
|
+
.n("DocDBElasticClient", "ListClustersCommand")
|
|
1104
|
+
.f(void 0, void 0)
|
|
1105
|
+
.ser(se_ListClustersCommand)
|
|
1106
|
+
.de(de_ListClustersCommand)
|
|
1107
|
+
.build() {
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
class ListClusterSnapshotsCommand extends smithyClient.Command
|
|
1111
|
+
.classBuilder()
|
|
1112
|
+
.ep(commonParams)
|
|
1113
|
+
.m(function (Command, cs, config, o) {
|
|
1114
|
+
return [
|
|
1115
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1116
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1117
|
+
];
|
|
1118
|
+
})
|
|
1119
|
+
.s("ChimeraDbLionfishServiceLambda", "ListClusterSnapshots", {})
|
|
1120
|
+
.n("DocDBElasticClient", "ListClusterSnapshotsCommand")
|
|
1121
|
+
.f(void 0, void 0)
|
|
1122
|
+
.ser(se_ListClusterSnapshotsCommand)
|
|
1123
|
+
.de(de_ListClusterSnapshotsCommand)
|
|
1124
|
+
.build() {
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
class ListPendingMaintenanceActionsCommand extends smithyClient.Command
|
|
1128
|
+
.classBuilder()
|
|
1129
|
+
.ep(commonParams)
|
|
1130
|
+
.m(function (Command, cs, config, o) {
|
|
1131
|
+
return [
|
|
1132
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1133
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1134
|
+
];
|
|
1135
|
+
})
|
|
1136
|
+
.s("ChimeraDbLionfishServiceLambda", "ListPendingMaintenanceActions", {})
|
|
1137
|
+
.n("DocDBElasticClient", "ListPendingMaintenanceActionsCommand")
|
|
1138
|
+
.f(void 0, void 0)
|
|
1139
|
+
.ser(se_ListPendingMaintenanceActionsCommand)
|
|
1140
|
+
.de(de_ListPendingMaintenanceActionsCommand)
|
|
1141
|
+
.build() {
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1145
|
+
.classBuilder()
|
|
1146
|
+
.ep(commonParams)
|
|
1147
|
+
.m(function (Command, cs, config, o) {
|
|
1148
|
+
return [
|
|
1149
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1150
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1151
|
+
];
|
|
1152
|
+
})
|
|
1153
|
+
.s("ChimeraDbLionfishServiceLambda", "ListTagsForResource", {})
|
|
1154
|
+
.n("DocDBElasticClient", "ListTagsForResourceCommand")
|
|
1155
|
+
.f(void 0, void 0)
|
|
1156
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1157
|
+
.de(de_ListTagsForResourceCommand)
|
|
1158
|
+
.build() {
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
class RestoreClusterFromSnapshotCommand extends smithyClient.Command
|
|
1162
|
+
.classBuilder()
|
|
1163
|
+
.ep(commonParams)
|
|
1164
|
+
.m(function (Command, cs, config, o) {
|
|
1165
|
+
return [
|
|
1166
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1167
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1168
|
+
];
|
|
1169
|
+
})
|
|
1170
|
+
.s("ChimeraDbLionfishServiceLambda", "RestoreClusterFromSnapshot", {})
|
|
1171
|
+
.n("DocDBElasticClient", "RestoreClusterFromSnapshotCommand")
|
|
1172
|
+
.f(void 0, void 0)
|
|
1173
|
+
.ser(se_RestoreClusterFromSnapshotCommand)
|
|
1174
|
+
.de(de_RestoreClusterFromSnapshotCommand)
|
|
1175
|
+
.build() {
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
class StartClusterCommand extends smithyClient.Command
|
|
1179
|
+
.classBuilder()
|
|
1180
|
+
.ep(commonParams)
|
|
1181
|
+
.m(function (Command, cs, config, o) {
|
|
1182
|
+
return [
|
|
1183
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1184
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1185
|
+
];
|
|
1186
|
+
})
|
|
1187
|
+
.s("ChimeraDbLionfishServiceLambda", "StartCluster", {})
|
|
1188
|
+
.n("DocDBElasticClient", "StartClusterCommand")
|
|
1189
|
+
.f(void 0, void 0)
|
|
1190
|
+
.ser(se_StartClusterCommand)
|
|
1191
|
+
.de(de_StartClusterCommand)
|
|
1192
|
+
.build() {
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
class StopClusterCommand extends smithyClient.Command
|
|
1196
|
+
.classBuilder()
|
|
1197
|
+
.ep(commonParams)
|
|
1198
|
+
.m(function (Command, cs, config, o) {
|
|
1199
|
+
return [
|
|
1200
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1201
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1202
|
+
];
|
|
1203
|
+
})
|
|
1204
|
+
.s("ChimeraDbLionfishServiceLambda", "StopCluster", {})
|
|
1205
|
+
.n("DocDBElasticClient", "StopClusterCommand")
|
|
1206
|
+
.f(void 0, void 0)
|
|
1207
|
+
.ser(se_StopClusterCommand)
|
|
1208
|
+
.de(de_StopClusterCommand)
|
|
1209
|
+
.build() {
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1213
|
+
.classBuilder()
|
|
1214
|
+
.ep(commonParams)
|
|
1215
|
+
.m(function (Command, cs, config, o) {
|
|
1216
|
+
return [
|
|
1217
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1218
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1219
|
+
];
|
|
1220
|
+
})
|
|
1221
|
+
.s("ChimeraDbLionfishServiceLambda", "TagResource", {})
|
|
1222
|
+
.n("DocDBElasticClient", "TagResourceCommand")
|
|
1223
|
+
.f(void 0, void 0)
|
|
1224
|
+
.ser(se_TagResourceCommand)
|
|
1225
|
+
.de(de_TagResourceCommand)
|
|
1226
|
+
.build() {
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1230
|
+
.classBuilder()
|
|
1231
|
+
.ep(commonParams)
|
|
1232
|
+
.m(function (Command, cs, config, o) {
|
|
1233
|
+
return [
|
|
1234
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1235
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1236
|
+
];
|
|
1237
|
+
})
|
|
1238
|
+
.s("ChimeraDbLionfishServiceLambda", "UntagResource", {})
|
|
1239
|
+
.n("DocDBElasticClient", "UntagResourceCommand")
|
|
1240
|
+
.f(void 0, void 0)
|
|
1241
|
+
.ser(se_UntagResourceCommand)
|
|
1242
|
+
.de(de_UntagResourceCommand)
|
|
1243
|
+
.build() {
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
class UpdateClusterCommand extends smithyClient.Command
|
|
1247
|
+
.classBuilder()
|
|
1248
|
+
.ep(commonParams)
|
|
1249
|
+
.m(function (Command, cs, config, o) {
|
|
1250
|
+
return [
|
|
1251
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1252
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1253
|
+
];
|
|
1254
|
+
})
|
|
1255
|
+
.s("ChimeraDbLionfishServiceLambda", "UpdateCluster", {})
|
|
1256
|
+
.n("DocDBElasticClient", "UpdateClusterCommand")
|
|
1257
|
+
.f(UpdateClusterInputFilterSensitiveLog, void 0)
|
|
1258
|
+
.ser(se_UpdateClusterCommand)
|
|
1259
|
+
.de(de_UpdateClusterCommand)
|
|
1260
|
+
.build() {
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
const commands = {
|
|
1264
|
+
ApplyPendingMaintenanceActionCommand,
|
|
1265
|
+
CopyClusterSnapshotCommand,
|
|
1266
|
+
CreateClusterCommand,
|
|
1267
|
+
CreateClusterSnapshotCommand,
|
|
1268
|
+
DeleteClusterCommand,
|
|
1269
|
+
DeleteClusterSnapshotCommand,
|
|
1270
|
+
GetClusterCommand,
|
|
1271
|
+
GetClusterSnapshotCommand,
|
|
1272
|
+
GetPendingMaintenanceActionCommand,
|
|
1273
|
+
ListClustersCommand,
|
|
1274
|
+
ListClusterSnapshotsCommand,
|
|
1275
|
+
ListPendingMaintenanceActionsCommand,
|
|
1276
|
+
ListTagsForResourceCommand,
|
|
1277
|
+
RestoreClusterFromSnapshotCommand,
|
|
1278
|
+
StartClusterCommand,
|
|
1279
|
+
StopClusterCommand,
|
|
1280
|
+
TagResourceCommand,
|
|
1281
|
+
UntagResourceCommand,
|
|
1282
|
+
UpdateClusterCommand,
|
|
1283
|
+
};
|
|
1284
|
+
class DocDBElastic extends DocDBElasticClient {
|
|
1285
|
+
}
|
|
1286
|
+
smithyClient.createAggregatedClient(commands, DocDBElastic);
|
|
1460
1287
|
|
|
1461
|
-
|
|
1288
|
+
const paginateListClusterSnapshots = core.createPaginator(DocDBElasticClient, ListClusterSnapshotsCommand, "nextToken", "nextToken", "maxResults");
|
|
1462
1289
|
|
|
1463
|
-
|
|
1290
|
+
const paginateListClusters = core.createPaginator(DocDBElasticClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
|
|
1464
1291
|
|
|
1465
|
-
|
|
1466
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1292
|
+
const paginateListPendingMaintenanceActions = core.createPaginator(DocDBElasticClient, ListPendingMaintenanceActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
1467
1293
|
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
DocDBElasticClient,
|
|
1472
|
-
DocDBElastic,
|
|
1473
|
-
$Command,
|
|
1474
|
-
ApplyPendingMaintenanceActionCommand,
|
|
1475
|
-
CopyClusterSnapshotCommand,
|
|
1476
|
-
CreateClusterCommand,
|
|
1477
|
-
CreateClusterSnapshotCommand,
|
|
1478
|
-
DeleteClusterCommand,
|
|
1479
|
-
DeleteClusterSnapshotCommand,
|
|
1480
|
-
GetClusterCommand,
|
|
1481
|
-
GetClusterSnapshotCommand,
|
|
1482
|
-
GetPendingMaintenanceActionCommand,
|
|
1483
|
-
ListClusterSnapshotsCommand,
|
|
1484
|
-
ListClustersCommand,
|
|
1485
|
-
ListPendingMaintenanceActionsCommand,
|
|
1486
|
-
ListTagsForResourceCommand,
|
|
1487
|
-
RestoreClusterFromSnapshotCommand,
|
|
1488
|
-
StartClusterCommand,
|
|
1489
|
-
StopClusterCommand,
|
|
1490
|
-
TagResourceCommand,
|
|
1491
|
-
UntagResourceCommand,
|
|
1492
|
-
UpdateClusterCommand,
|
|
1493
|
-
paginateListClusterSnapshots,
|
|
1494
|
-
paginateListClusters,
|
|
1495
|
-
paginateListPendingMaintenanceActions,
|
|
1496
|
-
AccessDeniedException,
|
|
1497
|
-
OptInType,
|
|
1498
|
-
ConflictException,
|
|
1499
|
-
InternalServerException,
|
|
1500
|
-
ResourceNotFoundException,
|
|
1501
|
-
ThrottlingException,
|
|
1502
|
-
ValidationExceptionReason,
|
|
1503
|
-
ValidationException,
|
|
1504
|
-
Auth,
|
|
1505
|
-
SnapshotType,
|
|
1506
|
-
Status,
|
|
1507
|
-
ServiceQuotaExceededException,
|
|
1508
|
-
CreateClusterInputFilterSensitiveLog,
|
|
1509
|
-
UpdateClusterInputFilterSensitiveLog
|
|
1294
|
+
Object.defineProperty(exports, "$Command", {
|
|
1295
|
+
enumerable: true,
|
|
1296
|
+
get: function () { return smithyClient.Command; }
|
|
1510
1297
|
});
|
|
1511
|
-
|
|
1298
|
+
Object.defineProperty(exports, "__Client", {
|
|
1299
|
+
enumerable: true,
|
|
1300
|
+
get: function () { return smithyClient.Client; }
|
|
1301
|
+
});
|
|
1302
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1303
|
+
exports.ApplyPendingMaintenanceActionCommand = ApplyPendingMaintenanceActionCommand;
|
|
1304
|
+
exports.Auth = Auth;
|
|
1305
|
+
exports.ConflictException = ConflictException;
|
|
1306
|
+
exports.CopyClusterSnapshotCommand = CopyClusterSnapshotCommand;
|
|
1307
|
+
exports.CreateClusterCommand = CreateClusterCommand;
|
|
1308
|
+
exports.CreateClusterInputFilterSensitiveLog = CreateClusterInputFilterSensitiveLog;
|
|
1309
|
+
exports.CreateClusterSnapshotCommand = CreateClusterSnapshotCommand;
|
|
1310
|
+
exports.DeleteClusterCommand = DeleteClusterCommand;
|
|
1311
|
+
exports.DeleteClusterSnapshotCommand = DeleteClusterSnapshotCommand;
|
|
1312
|
+
exports.DocDBElastic = DocDBElastic;
|
|
1313
|
+
exports.DocDBElasticClient = DocDBElasticClient;
|
|
1314
|
+
exports.DocDBElasticServiceException = DocDBElasticServiceException;
|
|
1315
|
+
exports.GetClusterCommand = GetClusterCommand;
|
|
1316
|
+
exports.GetClusterSnapshotCommand = GetClusterSnapshotCommand;
|
|
1317
|
+
exports.GetPendingMaintenanceActionCommand = GetPendingMaintenanceActionCommand;
|
|
1318
|
+
exports.InternalServerException = InternalServerException;
|
|
1319
|
+
exports.ListClusterSnapshotsCommand = ListClusterSnapshotsCommand;
|
|
1320
|
+
exports.ListClustersCommand = ListClustersCommand;
|
|
1321
|
+
exports.ListPendingMaintenanceActionsCommand = ListPendingMaintenanceActionsCommand;
|
|
1322
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1323
|
+
exports.OptInType = OptInType;
|
|
1324
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1325
|
+
exports.RestoreClusterFromSnapshotCommand = RestoreClusterFromSnapshotCommand;
|
|
1326
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1327
|
+
exports.SnapshotType = SnapshotType;
|
|
1328
|
+
exports.StartClusterCommand = StartClusterCommand;
|
|
1329
|
+
exports.Status = Status;
|
|
1330
|
+
exports.StopClusterCommand = StopClusterCommand;
|
|
1331
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1332
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1333
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1334
|
+
exports.UpdateClusterCommand = UpdateClusterCommand;
|
|
1335
|
+
exports.UpdateClusterInputFilterSensitiveLog = UpdateClusterInputFilterSensitiveLog;
|
|
1336
|
+
exports.ValidationException = ValidationException;
|
|
1337
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
1338
|
+
exports.paginateListClusterSnapshots = paginateListClusterSnapshots;
|
|
1339
|
+
exports.paginateListClusters = paginateListClusters;
|
|
1340
|
+
exports.paginateListPendingMaintenanceActions = paginateListPendingMaintenanceActions;
|