@aws-sdk/client-ssm-sap 3.490.0 → 3.495.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/SsmSap.js +1 -47
- package/dist-cjs/SsmSapClient.js +1 -43
- package/dist-cjs/commands/DeleteResourcePermissionCommand.js +1 -28
- package/dist-cjs/commands/DeregisterApplicationCommand.js +1 -28
- package/dist-cjs/commands/GetApplicationCommand.js +1 -28
- package/dist-cjs/commands/GetComponentCommand.js +1 -28
- package/dist-cjs/commands/GetDatabaseCommand.js +1 -29
- package/dist-cjs/commands/GetOperationCommand.js +1 -28
- package/dist-cjs/commands/GetResourcePermissionCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
- package/dist-cjs/commands/ListComponentsCommand.js +1 -28
- package/dist-cjs/commands/ListDatabasesCommand.js +1 -28
- package/dist-cjs/commands/ListOperationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutResourcePermissionCommand.js +1 -28
- package/dist-cjs/commands/RegisterApplicationCommand.js +1 -29
- package/dist-cjs/commands/StartApplicationRefreshCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApplicationSettingsCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -21
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2024 -11
- package/dist-cjs/models/SsmSapServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -213
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListComponentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDatabasesPaginator.js +1 -7
- package/dist-cjs/pagination/ListOperationsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1217
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2025 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AllocationType: () => AllocationType,
|
|
25
|
+
ApplicationCredentialFilterSensitiveLog: () => ApplicationCredentialFilterSensitiveLog,
|
|
26
|
+
ApplicationDiscoveryStatus: () => ApplicationDiscoveryStatus,
|
|
27
|
+
ApplicationStatus: () => ApplicationStatus,
|
|
28
|
+
ApplicationType: () => ApplicationType,
|
|
29
|
+
BackintMode: () => BackintMode,
|
|
30
|
+
ClusterStatus: () => ClusterStatus,
|
|
31
|
+
ComponentStatus: () => ComponentStatus,
|
|
32
|
+
ComponentType: () => ComponentType,
|
|
33
|
+
ConflictException: () => ConflictException,
|
|
34
|
+
CredentialType: () => CredentialType,
|
|
35
|
+
DatabaseConnectionMethod: () => DatabaseConnectionMethod,
|
|
36
|
+
DatabaseFilterSensitiveLog: () => DatabaseFilterSensitiveLog,
|
|
37
|
+
DatabaseStatus: () => DatabaseStatus,
|
|
38
|
+
DatabaseType: () => DatabaseType,
|
|
39
|
+
DeleteResourcePermissionCommand: () => DeleteResourcePermissionCommand,
|
|
40
|
+
DeregisterApplicationCommand: () => DeregisterApplicationCommand,
|
|
41
|
+
FilterOperator: () => FilterOperator,
|
|
42
|
+
GetApplicationCommand: () => GetApplicationCommand,
|
|
43
|
+
GetComponentCommand: () => GetComponentCommand,
|
|
44
|
+
GetDatabaseCommand: () => GetDatabaseCommand,
|
|
45
|
+
GetDatabaseOutputFilterSensitiveLog: () => GetDatabaseOutputFilterSensitiveLog,
|
|
46
|
+
GetOperationCommand: () => GetOperationCommand,
|
|
47
|
+
GetResourcePermissionCommand: () => GetResourcePermissionCommand,
|
|
48
|
+
HostRole: () => HostRole,
|
|
49
|
+
InternalServerException: () => InternalServerException,
|
|
50
|
+
ListApplicationsCommand: () => ListApplicationsCommand,
|
|
51
|
+
ListComponentsCommand: () => ListComponentsCommand,
|
|
52
|
+
ListDatabasesCommand: () => ListDatabasesCommand,
|
|
53
|
+
ListOperationsCommand: () => ListOperationsCommand,
|
|
54
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
55
|
+
OperationMode: () => OperationMode,
|
|
56
|
+
OperationStatus: () => OperationStatus,
|
|
57
|
+
PermissionActionType: () => PermissionActionType,
|
|
58
|
+
PutResourcePermissionCommand: () => PutResourcePermissionCommand,
|
|
59
|
+
RegisterApplicationCommand: () => RegisterApplicationCommand,
|
|
60
|
+
RegisterApplicationInputFilterSensitiveLog: () => RegisterApplicationInputFilterSensitiveLog,
|
|
61
|
+
ReplicationMode: () => ReplicationMode,
|
|
62
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
63
|
+
SsmSap: () => SsmSap,
|
|
64
|
+
SsmSapClient: () => SsmSapClient,
|
|
65
|
+
SsmSapServiceException: () => SsmSapServiceException,
|
|
66
|
+
StartApplicationRefreshCommand: () => StartApplicationRefreshCommand,
|
|
67
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
68
|
+
UnauthorizedException: () => UnauthorizedException,
|
|
69
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
70
|
+
UpdateApplicationSettingsCommand: () => UpdateApplicationSettingsCommand,
|
|
71
|
+
UpdateApplicationSettingsInputFilterSensitiveLog: () => UpdateApplicationSettingsInputFilterSensitiveLog,
|
|
72
|
+
ValidationException: () => ValidationException,
|
|
73
|
+
__Client: () => import_smithy_client.Client,
|
|
74
|
+
paginateListApplications: () => paginateListApplications,
|
|
75
|
+
paginateListComponents: () => paginateListComponents,
|
|
76
|
+
paginateListDatabases: () => paginateListDatabases,
|
|
77
|
+
paginateListOperations: () => paginateListOperations
|
|
78
|
+
});
|
|
79
|
+
module.exports = __toCommonJS(src_exports);
|
|
80
|
+
|
|
81
|
+
// src/SsmSapClient.ts
|
|
82
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
83
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
84
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
85
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
86
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
87
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
88
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
89
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
90
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
// src/endpoint/EndpointParameters.ts
|
|
94
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
95
|
+
return {
|
|
96
|
+
...options,
|
|
97
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
98
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
99
|
+
defaultSigningName: "ssm-sap"
|
|
100
|
+
};
|
|
101
|
+
}, "resolveClientEndpointParameters");
|
|
102
|
+
var commonParams = {
|
|
103
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
104
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
105
|
+
Region: { type: "builtInParams", name: "region" },
|
|
106
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// src/SsmSapClient.ts
|
|
110
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
111
|
+
|
|
112
|
+
// src/runtimeExtensions.ts
|
|
113
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
114
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
115
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
116
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
117
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
118
|
+
const extensionConfiguration = {
|
|
119
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
120
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
121
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
122
|
+
};
|
|
123
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
124
|
+
return {
|
|
125
|
+
...runtimeConfig,
|
|
126
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
127
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
128
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
129
|
+
};
|
|
130
|
+
}, "resolveRuntimeExtensions");
|
|
131
|
+
|
|
132
|
+
// src/SsmSapClient.ts
|
|
133
|
+
var _SsmSapClient = class _SsmSapClient extends import_smithy_client.Client {
|
|
134
|
+
constructor(...[configuration]) {
|
|
135
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
136
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
137
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
138
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
139
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
140
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
141
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
142
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
143
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
144
|
+
super(_config_8);
|
|
145
|
+
this.config = _config_8;
|
|
146
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
147
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
148
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
149
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
150
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
151
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
152
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
156
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
157
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
158
|
+
*/
|
|
159
|
+
destroy() {
|
|
160
|
+
super.destroy();
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
__name(_SsmSapClient, "SsmSapClient");
|
|
164
|
+
var SsmSapClient = _SsmSapClient;
|
|
165
|
+
|
|
166
|
+
// src/SsmSap.ts
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
// src/commands/DeleteResourcePermissionCommand.ts
|
|
170
|
+
|
|
171
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
172
|
+
|
|
173
|
+
var import_types = require("@smithy/types");
|
|
174
|
+
|
|
175
|
+
// src/protocols/Aws_restJson1.ts
|
|
176
|
+
var import_core = require("@smithy/core");
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
// src/models/models_0.ts
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
// src/models/SsmSapServiceException.ts
|
|
183
|
+
|
|
184
|
+
var _SsmSapServiceException = class _SsmSapServiceException extends import_smithy_client.ServiceException {
|
|
185
|
+
/**
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
constructor(options) {
|
|
189
|
+
super(options);
|
|
190
|
+
Object.setPrototypeOf(this, _SsmSapServiceException.prototype);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
__name(_SsmSapServiceException, "SsmSapServiceException");
|
|
194
|
+
var SsmSapServiceException = _SsmSapServiceException;
|
|
195
|
+
|
|
196
|
+
// src/models/models_0.ts
|
|
197
|
+
var AllocationType = {
|
|
198
|
+
ELASTIC_IP: "ELASTIC_IP",
|
|
199
|
+
OVERLAY: "OVERLAY",
|
|
200
|
+
UNKNOWN: "UNKNOWN",
|
|
201
|
+
VPC_SUBNET: "VPC_SUBNET"
|
|
202
|
+
};
|
|
203
|
+
var ApplicationDiscoveryStatus = {
|
|
204
|
+
DELETING: "DELETING",
|
|
205
|
+
REFRESH_FAILED: "REFRESH_FAILED",
|
|
206
|
+
REGISTERING: "REGISTERING",
|
|
207
|
+
REGISTRATION_FAILED: "REGISTRATION_FAILED",
|
|
208
|
+
SUCCESS: "SUCCESS"
|
|
209
|
+
};
|
|
210
|
+
var ApplicationStatus = {
|
|
211
|
+
ACTIVATED: "ACTIVATED",
|
|
212
|
+
DELETING: "DELETING",
|
|
213
|
+
FAILED: "FAILED",
|
|
214
|
+
REGISTERING: "REGISTERING",
|
|
215
|
+
STARTING: "STARTING",
|
|
216
|
+
STOPPED: "STOPPED",
|
|
217
|
+
STOPPING: "STOPPING",
|
|
218
|
+
UNKNOWN: "UNKNOWN"
|
|
219
|
+
};
|
|
220
|
+
var ApplicationType = {
|
|
221
|
+
HANA: "HANA",
|
|
222
|
+
SAP_ABAP: "SAP_ABAP"
|
|
223
|
+
};
|
|
224
|
+
var CredentialType = {
|
|
225
|
+
ADMIN: "ADMIN"
|
|
226
|
+
};
|
|
227
|
+
var BackintMode = {
|
|
228
|
+
AWSBackup: "AWSBackup"
|
|
229
|
+
};
|
|
230
|
+
var ClusterStatus = {
|
|
231
|
+
MAINTENANCE: "MAINTENANCE",
|
|
232
|
+
NONE: "NONE",
|
|
233
|
+
OFFLINE: "OFFLINE",
|
|
234
|
+
ONLINE: "ONLINE",
|
|
235
|
+
STANDBY: "STANDBY"
|
|
236
|
+
};
|
|
237
|
+
var ComponentType = {
|
|
238
|
+
ABAP: "ABAP",
|
|
239
|
+
ASCS: "ASCS",
|
|
240
|
+
DIALOG: "DIALOG",
|
|
241
|
+
ERS: "ERS",
|
|
242
|
+
HANA: "HANA",
|
|
243
|
+
HANA_NODE: "HANA_NODE",
|
|
244
|
+
WD: "WD",
|
|
245
|
+
WEBDISP: "WEBDISP"
|
|
246
|
+
};
|
|
247
|
+
var DatabaseConnectionMethod = {
|
|
248
|
+
DIRECT: "DIRECT",
|
|
249
|
+
OVERLAY: "OVERLAY"
|
|
250
|
+
};
|
|
251
|
+
var HostRole = {
|
|
252
|
+
LEADER: "LEADER",
|
|
253
|
+
STANDBY: "STANDBY",
|
|
254
|
+
UNKNOWN: "UNKNOWN",
|
|
255
|
+
WORKER: "WORKER"
|
|
256
|
+
};
|
|
257
|
+
var OperationMode = {
|
|
258
|
+
DELTA_DATASHIPPING: "DELTA_DATASHIPPING",
|
|
259
|
+
LOGREPLAY: "LOGREPLAY",
|
|
260
|
+
LOGREPLAY_READACCESS: "LOGREPLAY_READACCESS",
|
|
261
|
+
NONE: "NONE",
|
|
262
|
+
PRIMARY: "PRIMARY"
|
|
263
|
+
};
|
|
264
|
+
var ReplicationMode = {
|
|
265
|
+
ASYNC: "ASYNC",
|
|
266
|
+
NONE: "NONE",
|
|
267
|
+
PRIMARY: "PRIMARY",
|
|
268
|
+
SYNC: "SYNC",
|
|
269
|
+
SYNCMEM: "SYNCMEM"
|
|
270
|
+
};
|
|
271
|
+
var ComponentStatus = {
|
|
272
|
+
ACTIVATED: "ACTIVATED",
|
|
273
|
+
RUNNING: "RUNNING",
|
|
274
|
+
RUNNING_WITH_ERROR: "RUNNING_WITH_ERROR",
|
|
275
|
+
STARTING: "STARTING",
|
|
276
|
+
STOPPED: "STOPPED",
|
|
277
|
+
STOPPING: "STOPPING",
|
|
278
|
+
UNDEFINED: "UNDEFINED"
|
|
279
|
+
};
|
|
280
|
+
var _ConflictException = class _ConflictException extends SsmSapServiceException {
|
|
281
|
+
/**
|
|
282
|
+
* @internal
|
|
283
|
+
*/
|
|
284
|
+
constructor(opts) {
|
|
285
|
+
super({
|
|
286
|
+
name: "ConflictException",
|
|
287
|
+
$fault: "client",
|
|
288
|
+
...opts
|
|
289
|
+
});
|
|
290
|
+
this.name = "ConflictException";
|
|
291
|
+
this.$fault = "client";
|
|
292
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
293
|
+
this.Message = opts.Message;
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
__name(_ConflictException, "ConflictException");
|
|
297
|
+
var ConflictException = _ConflictException;
|
|
298
|
+
var DatabaseType = {
|
|
299
|
+
SYSTEM: "SYSTEM",
|
|
300
|
+
TENANT: "TENANT"
|
|
301
|
+
};
|
|
302
|
+
var DatabaseStatus = {
|
|
303
|
+
ERROR: "ERROR",
|
|
304
|
+
RUNNING: "RUNNING",
|
|
305
|
+
STARTING: "STARTING",
|
|
306
|
+
STOPPED: "STOPPED",
|
|
307
|
+
UNKNOWN: "UNKNOWN",
|
|
308
|
+
WARNING: "WARNING"
|
|
309
|
+
};
|
|
310
|
+
var PermissionActionType = {
|
|
311
|
+
RESTORE: "RESTORE"
|
|
312
|
+
};
|
|
313
|
+
var _InternalServerException = class _InternalServerException extends SsmSapServiceException {
|
|
314
|
+
/**
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
constructor(opts) {
|
|
318
|
+
super({
|
|
319
|
+
name: "InternalServerException",
|
|
320
|
+
$fault: "server",
|
|
321
|
+
...opts
|
|
322
|
+
});
|
|
323
|
+
this.name = "InternalServerException";
|
|
324
|
+
this.$fault = "server";
|
|
325
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
326
|
+
this.Message = opts.Message;
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
__name(_InternalServerException, "InternalServerException");
|
|
330
|
+
var InternalServerException = _InternalServerException;
|
|
331
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends SsmSapServiceException {
|
|
332
|
+
/**
|
|
333
|
+
* @internal
|
|
334
|
+
*/
|
|
335
|
+
constructor(opts) {
|
|
336
|
+
super({
|
|
337
|
+
name: "ResourceNotFoundException",
|
|
338
|
+
$fault: "client",
|
|
339
|
+
...opts
|
|
340
|
+
});
|
|
341
|
+
this.name = "ResourceNotFoundException";
|
|
342
|
+
this.$fault = "client";
|
|
343
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
344
|
+
this.Message = opts.Message;
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
348
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
349
|
+
var _ValidationException = class _ValidationException extends SsmSapServiceException {
|
|
350
|
+
/**
|
|
351
|
+
* @internal
|
|
352
|
+
*/
|
|
353
|
+
constructor(opts) {
|
|
354
|
+
super({
|
|
355
|
+
name: "ValidationException",
|
|
356
|
+
$fault: "client",
|
|
357
|
+
...opts
|
|
358
|
+
});
|
|
359
|
+
this.name = "ValidationException";
|
|
360
|
+
this.$fault = "client";
|
|
361
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
362
|
+
this.Message = opts.Message;
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
__name(_ValidationException, "ValidationException");
|
|
366
|
+
var ValidationException = _ValidationException;
|
|
367
|
+
var _UnauthorizedException = class _UnauthorizedException extends SsmSapServiceException {
|
|
368
|
+
/**
|
|
369
|
+
* @internal
|
|
370
|
+
*/
|
|
371
|
+
constructor(opts) {
|
|
372
|
+
super({
|
|
373
|
+
name: "UnauthorizedException",
|
|
374
|
+
$fault: "client",
|
|
375
|
+
...opts
|
|
376
|
+
});
|
|
377
|
+
this.name = "UnauthorizedException";
|
|
378
|
+
this.$fault = "client";
|
|
379
|
+
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
380
|
+
this.Message = opts.Message;
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
__name(_UnauthorizedException, "UnauthorizedException");
|
|
384
|
+
var UnauthorizedException = _UnauthorizedException;
|
|
385
|
+
var FilterOperator = {
|
|
386
|
+
EQUALS: "Equals",
|
|
387
|
+
GREATER_THAN_OR_EQUALS: "GreaterThanOrEquals",
|
|
388
|
+
LESS_THAN_OR_EQUALS: "LessThanOrEquals"
|
|
389
|
+
};
|
|
390
|
+
var OperationStatus = {
|
|
391
|
+
ERROR: "ERROR",
|
|
392
|
+
INPROGRESS: "INPROGRESS",
|
|
393
|
+
SUCCESS: "SUCCESS"
|
|
394
|
+
};
|
|
395
|
+
var ApplicationCredentialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
396
|
+
...obj,
|
|
397
|
+
...obj.SecretId && { SecretId: import_smithy_client.SENSITIVE_STRING }
|
|
398
|
+
}), "ApplicationCredentialFilterSensitiveLog");
|
|
399
|
+
var DatabaseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
400
|
+
...obj,
|
|
401
|
+
...obj.Credentials && { Credentials: obj.Credentials.map((item) => ApplicationCredentialFilterSensitiveLog(item)) }
|
|
402
|
+
}), "DatabaseFilterSensitiveLog");
|
|
403
|
+
var GetDatabaseOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
404
|
+
...obj,
|
|
405
|
+
...obj.Database && { Database: DatabaseFilterSensitiveLog(obj.Database) }
|
|
406
|
+
}), "GetDatabaseOutputFilterSensitiveLog");
|
|
407
|
+
var RegisterApplicationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
408
|
+
...obj,
|
|
409
|
+
...obj.Credentials && { Credentials: obj.Credentials.map((item) => ApplicationCredentialFilterSensitiveLog(item)) }
|
|
410
|
+
}), "RegisterApplicationInputFilterSensitiveLog");
|
|
411
|
+
var UpdateApplicationSettingsInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
412
|
+
...obj,
|
|
413
|
+
...obj.CredentialsToAddOrUpdate && {
|
|
414
|
+
CredentialsToAddOrUpdate: obj.CredentialsToAddOrUpdate.map((item) => ApplicationCredentialFilterSensitiveLog(item))
|
|
415
|
+
},
|
|
416
|
+
...obj.CredentialsToRemove && {
|
|
417
|
+
CredentialsToRemove: obj.CredentialsToRemove.map((item) => ApplicationCredentialFilterSensitiveLog(item))
|
|
418
|
+
}
|
|
419
|
+
}), "UpdateApplicationSettingsInputFilterSensitiveLog");
|
|
420
|
+
|
|
421
|
+
// src/protocols/Aws_restJson1.ts
|
|
422
|
+
var se_DeleteResourcePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
423
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
424
|
+
const headers = {
|
|
425
|
+
"content-type": "application/json"
|
|
426
|
+
};
|
|
427
|
+
b.bp("/delete-resource-permission");
|
|
428
|
+
let body;
|
|
429
|
+
body = JSON.stringify(
|
|
430
|
+
(0, import_smithy_client.take)(input, {
|
|
431
|
+
ActionType: [],
|
|
432
|
+
ResourceArn: [],
|
|
433
|
+
SourceResourceArn: []
|
|
434
|
+
})
|
|
435
|
+
);
|
|
436
|
+
b.m("POST").h(headers).b(body);
|
|
437
|
+
return b.build();
|
|
438
|
+
}, "se_DeleteResourcePermissionCommand");
|
|
439
|
+
var se_DeregisterApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
440
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
441
|
+
const headers = {
|
|
442
|
+
"content-type": "application/json"
|
|
443
|
+
};
|
|
444
|
+
b.bp("/deregister-application");
|
|
445
|
+
let body;
|
|
446
|
+
body = JSON.stringify(
|
|
447
|
+
(0, import_smithy_client.take)(input, {
|
|
448
|
+
ApplicationId: []
|
|
449
|
+
})
|
|
450
|
+
);
|
|
451
|
+
b.m("POST").h(headers).b(body);
|
|
452
|
+
return b.build();
|
|
453
|
+
}, "se_DeregisterApplicationCommand");
|
|
454
|
+
var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
455
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
456
|
+
const headers = {
|
|
457
|
+
"content-type": "application/json"
|
|
458
|
+
};
|
|
459
|
+
b.bp("/get-application");
|
|
460
|
+
let body;
|
|
461
|
+
body = JSON.stringify(
|
|
462
|
+
(0, import_smithy_client.take)(input, {
|
|
463
|
+
AppRegistryArn: [],
|
|
464
|
+
ApplicationArn: [],
|
|
465
|
+
ApplicationId: []
|
|
466
|
+
})
|
|
467
|
+
);
|
|
468
|
+
b.m("POST").h(headers).b(body);
|
|
469
|
+
return b.build();
|
|
470
|
+
}, "se_GetApplicationCommand");
|
|
471
|
+
var se_GetComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
472
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
473
|
+
const headers = {
|
|
474
|
+
"content-type": "application/json"
|
|
475
|
+
};
|
|
476
|
+
b.bp("/get-component");
|
|
477
|
+
let body;
|
|
478
|
+
body = JSON.stringify(
|
|
479
|
+
(0, import_smithy_client.take)(input, {
|
|
480
|
+
ApplicationId: [],
|
|
481
|
+
ComponentId: []
|
|
482
|
+
})
|
|
483
|
+
);
|
|
484
|
+
b.m("POST").h(headers).b(body);
|
|
485
|
+
return b.build();
|
|
486
|
+
}, "se_GetComponentCommand");
|
|
487
|
+
var se_GetDatabaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
488
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
489
|
+
const headers = {
|
|
490
|
+
"content-type": "application/json"
|
|
491
|
+
};
|
|
492
|
+
b.bp("/get-database");
|
|
493
|
+
let body;
|
|
494
|
+
body = JSON.stringify(
|
|
495
|
+
(0, import_smithy_client.take)(input, {
|
|
496
|
+
ApplicationId: [],
|
|
497
|
+
ComponentId: [],
|
|
498
|
+
DatabaseArn: [],
|
|
499
|
+
DatabaseId: []
|
|
500
|
+
})
|
|
501
|
+
);
|
|
502
|
+
b.m("POST").h(headers).b(body);
|
|
503
|
+
return b.build();
|
|
504
|
+
}, "se_GetDatabaseCommand");
|
|
505
|
+
var se_GetOperationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
506
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
507
|
+
const headers = {
|
|
508
|
+
"content-type": "application/json"
|
|
509
|
+
};
|
|
510
|
+
b.bp("/get-operation");
|
|
511
|
+
let body;
|
|
512
|
+
body = JSON.stringify(
|
|
513
|
+
(0, import_smithy_client.take)(input, {
|
|
514
|
+
OperationId: []
|
|
515
|
+
})
|
|
516
|
+
);
|
|
517
|
+
b.m("POST").h(headers).b(body);
|
|
518
|
+
return b.build();
|
|
519
|
+
}, "se_GetOperationCommand");
|
|
520
|
+
var se_GetResourcePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
521
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
522
|
+
const headers = {
|
|
523
|
+
"content-type": "application/json"
|
|
524
|
+
};
|
|
525
|
+
b.bp("/get-resource-permission");
|
|
526
|
+
let body;
|
|
527
|
+
body = JSON.stringify(
|
|
528
|
+
(0, import_smithy_client.take)(input, {
|
|
529
|
+
ActionType: [],
|
|
530
|
+
ResourceArn: []
|
|
531
|
+
})
|
|
532
|
+
);
|
|
533
|
+
b.m("POST").h(headers).b(body);
|
|
534
|
+
return b.build();
|
|
535
|
+
}, "se_GetResourcePermissionCommand");
|
|
536
|
+
var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
537
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
538
|
+
const headers = {
|
|
539
|
+
"content-type": "application/json"
|
|
540
|
+
};
|
|
541
|
+
b.bp("/list-applications");
|
|
542
|
+
let body;
|
|
543
|
+
body = JSON.stringify(
|
|
544
|
+
(0, import_smithy_client.take)(input, {
|
|
545
|
+
Filters: (_) => (0, import_smithy_client._json)(_),
|
|
546
|
+
MaxResults: [],
|
|
547
|
+
NextToken: []
|
|
548
|
+
})
|
|
549
|
+
);
|
|
550
|
+
b.m("POST").h(headers).b(body);
|
|
551
|
+
return b.build();
|
|
552
|
+
}, "se_ListApplicationsCommand");
|
|
553
|
+
var se_ListComponentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
554
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
555
|
+
const headers = {
|
|
556
|
+
"content-type": "application/json"
|
|
557
|
+
};
|
|
558
|
+
b.bp("/list-components");
|
|
559
|
+
let body;
|
|
560
|
+
body = JSON.stringify(
|
|
561
|
+
(0, import_smithy_client.take)(input, {
|
|
562
|
+
ApplicationId: [],
|
|
563
|
+
MaxResults: [],
|
|
564
|
+
NextToken: []
|
|
565
|
+
})
|
|
566
|
+
);
|
|
567
|
+
b.m("POST").h(headers).b(body);
|
|
568
|
+
return b.build();
|
|
569
|
+
}, "se_ListComponentsCommand");
|
|
570
|
+
var se_ListDatabasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
571
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
572
|
+
const headers = {
|
|
573
|
+
"content-type": "application/json"
|
|
574
|
+
};
|
|
575
|
+
b.bp("/list-databases");
|
|
576
|
+
let body;
|
|
577
|
+
body = JSON.stringify(
|
|
578
|
+
(0, import_smithy_client.take)(input, {
|
|
579
|
+
ApplicationId: [],
|
|
580
|
+
ComponentId: [],
|
|
581
|
+
MaxResults: [],
|
|
582
|
+
NextToken: []
|
|
583
|
+
})
|
|
584
|
+
);
|
|
585
|
+
b.m("POST").h(headers).b(body);
|
|
586
|
+
return b.build();
|
|
587
|
+
}, "se_ListDatabasesCommand");
|
|
588
|
+
var se_ListOperationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
589
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
590
|
+
const headers = {
|
|
591
|
+
"content-type": "application/json"
|
|
592
|
+
};
|
|
593
|
+
b.bp("/list-operations");
|
|
594
|
+
let body;
|
|
595
|
+
body = JSON.stringify(
|
|
596
|
+
(0, import_smithy_client.take)(input, {
|
|
597
|
+
ApplicationId: [],
|
|
598
|
+
Filters: (_) => (0, import_smithy_client._json)(_),
|
|
599
|
+
MaxResults: [],
|
|
600
|
+
NextToken: []
|
|
601
|
+
})
|
|
602
|
+
);
|
|
603
|
+
b.m("POST").h(headers).b(body);
|
|
604
|
+
return b.build();
|
|
605
|
+
}, "se_ListOperationsCommand");
|
|
606
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
607
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
608
|
+
const headers = {};
|
|
609
|
+
b.bp("/tags/{resourceArn}");
|
|
610
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
611
|
+
let body;
|
|
612
|
+
b.m("GET").h(headers).b(body);
|
|
613
|
+
return b.build();
|
|
614
|
+
}, "se_ListTagsForResourceCommand");
|
|
615
|
+
var se_PutResourcePermissionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
616
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
617
|
+
const headers = {
|
|
618
|
+
"content-type": "application/json"
|
|
619
|
+
};
|
|
620
|
+
b.bp("/put-resource-permission");
|
|
621
|
+
let body;
|
|
622
|
+
body = JSON.stringify(
|
|
623
|
+
(0, import_smithy_client.take)(input, {
|
|
624
|
+
ActionType: [],
|
|
625
|
+
ResourceArn: [],
|
|
626
|
+
SourceResourceArn: []
|
|
627
|
+
})
|
|
628
|
+
);
|
|
629
|
+
b.m("POST").h(headers).b(body);
|
|
630
|
+
return b.build();
|
|
631
|
+
}, "se_PutResourcePermissionCommand");
|
|
632
|
+
var se_RegisterApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
633
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
634
|
+
const headers = {
|
|
635
|
+
"content-type": "application/json"
|
|
636
|
+
};
|
|
637
|
+
b.bp("/register-application");
|
|
638
|
+
let body;
|
|
639
|
+
body = JSON.stringify(
|
|
640
|
+
(0, import_smithy_client.take)(input, {
|
|
641
|
+
ApplicationId: [],
|
|
642
|
+
ApplicationType: [],
|
|
643
|
+
Credentials: (_) => (0, import_smithy_client._json)(_),
|
|
644
|
+
DatabaseArn: [],
|
|
645
|
+
Instances: (_) => (0, import_smithy_client._json)(_),
|
|
646
|
+
SapInstanceNumber: [],
|
|
647
|
+
Sid: [],
|
|
648
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
649
|
+
})
|
|
650
|
+
);
|
|
651
|
+
b.m("POST").h(headers).b(body);
|
|
652
|
+
return b.build();
|
|
653
|
+
}, "se_RegisterApplicationCommand");
|
|
654
|
+
var se_StartApplicationRefreshCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
655
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
656
|
+
const headers = {
|
|
657
|
+
"content-type": "application/json"
|
|
658
|
+
};
|
|
659
|
+
b.bp("/start-application-refresh");
|
|
660
|
+
let body;
|
|
661
|
+
body = JSON.stringify(
|
|
662
|
+
(0, import_smithy_client.take)(input, {
|
|
663
|
+
ApplicationId: []
|
|
664
|
+
})
|
|
665
|
+
);
|
|
666
|
+
b.m("POST").h(headers).b(body);
|
|
667
|
+
return b.build();
|
|
668
|
+
}, "se_StartApplicationRefreshCommand");
|
|
669
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
670
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
671
|
+
const headers = {
|
|
672
|
+
"content-type": "application/json"
|
|
673
|
+
};
|
|
674
|
+
b.bp("/tags/{resourceArn}");
|
|
675
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
676
|
+
let body;
|
|
677
|
+
body = JSON.stringify(
|
|
678
|
+
(0, import_smithy_client.take)(input, {
|
|
679
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
680
|
+
})
|
|
681
|
+
);
|
|
682
|
+
b.m("POST").h(headers).b(body);
|
|
683
|
+
return b.build();
|
|
684
|
+
}, "se_TagResourceCommand");
|
|
685
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
686
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
687
|
+
const headers = {};
|
|
688
|
+
b.bp("/tags/{resourceArn}");
|
|
689
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
690
|
+
const query = (0, import_smithy_client.map)({
|
|
691
|
+
[_tK]: [
|
|
692
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
693
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
694
|
+
]
|
|
695
|
+
});
|
|
696
|
+
let body;
|
|
697
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
698
|
+
return b.build();
|
|
699
|
+
}, "se_UntagResourceCommand");
|
|
700
|
+
var se_UpdateApplicationSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
701
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
702
|
+
const headers = {
|
|
703
|
+
"content-type": "application/json"
|
|
704
|
+
};
|
|
705
|
+
b.bp("/update-application-settings");
|
|
706
|
+
let body;
|
|
707
|
+
body = JSON.stringify(
|
|
708
|
+
(0, import_smithy_client.take)(input, {
|
|
709
|
+
ApplicationId: [],
|
|
710
|
+
Backint: (_) => (0, import_smithy_client._json)(_),
|
|
711
|
+
CredentialsToAddOrUpdate: (_) => (0, import_smithy_client._json)(_),
|
|
712
|
+
CredentialsToRemove: (_) => (0, import_smithy_client._json)(_),
|
|
713
|
+
DatabaseArn: []
|
|
714
|
+
})
|
|
715
|
+
);
|
|
716
|
+
b.m("POST").h(headers).b(body);
|
|
717
|
+
return b.build();
|
|
718
|
+
}, "se_UpdateApplicationSettingsCommand");
|
|
719
|
+
var de_DeleteResourcePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
720
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
|
+
return de_DeleteResourcePermissionCommandError(output, context);
|
|
722
|
+
}
|
|
723
|
+
const contents = (0, import_smithy_client.map)({
|
|
724
|
+
$metadata: deserializeMetadata(output)
|
|
725
|
+
});
|
|
726
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
727
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
728
|
+
Policy: import_smithy_client.expectString
|
|
729
|
+
});
|
|
730
|
+
Object.assign(contents, doc);
|
|
731
|
+
return contents;
|
|
732
|
+
}, "de_DeleteResourcePermissionCommand");
|
|
733
|
+
var de_DeleteResourcePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
734
|
+
const parsedOutput = {
|
|
735
|
+
...output,
|
|
736
|
+
body: await parseErrorBody(output.body, context)
|
|
737
|
+
};
|
|
738
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
|
+
switch (errorCode) {
|
|
740
|
+
case "InternalServerException":
|
|
741
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
742
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
743
|
+
case "ResourceNotFoundException":
|
|
744
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
745
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
746
|
+
case "ValidationException":
|
|
747
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
748
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
749
|
+
default:
|
|
750
|
+
const parsedBody = parsedOutput.body;
|
|
751
|
+
return throwDefaultError({
|
|
752
|
+
output,
|
|
753
|
+
parsedBody,
|
|
754
|
+
errorCode
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
}, "de_DeleteResourcePermissionCommandError");
|
|
758
|
+
var de_DeregisterApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
759
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
760
|
+
return de_DeregisterApplicationCommandError(output, context);
|
|
761
|
+
}
|
|
762
|
+
const contents = (0, import_smithy_client.map)({
|
|
763
|
+
$metadata: deserializeMetadata(output)
|
|
764
|
+
});
|
|
765
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
766
|
+
return contents;
|
|
767
|
+
}, "de_DeregisterApplicationCommand");
|
|
768
|
+
var de_DeregisterApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
769
|
+
const parsedOutput = {
|
|
770
|
+
...output,
|
|
771
|
+
body: await parseErrorBody(output.body, context)
|
|
772
|
+
};
|
|
773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
+
switch (errorCode) {
|
|
775
|
+
case "InternalServerException":
|
|
776
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
777
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
778
|
+
case "UnauthorizedException":
|
|
779
|
+
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
780
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
781
|
+
case "ValidationException":
|
|
782
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
783
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
784
|
+
default:
|
|
785
|
+
const parsedBody = parsedOutput.body;
|
|
786
|
+
return throwDefaultError({
|
|
787
|
+
output,
|
|
788
|
+
parsedBody,
|
|
789
|
+
errorCode
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
}, "de_DeregisterApplicationCommandError");
|
|
793
|
+
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
794
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
+
return de_GetApplicationCommandError(output, context);
|
|
796
|
+
}
|
|
797
|
+
const contents = (0, import_smithy_client.map)({
|
|
798
|
+
$metadata: deserializeMetadata(output)
|
|
799
|
+
});
|
|
800
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
801
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
802
|
+
Application: (_) => de_Application(_, context),
|
|
803
|
+
Tags: import_smithy_client._json
|
|
804
|
+
});
|
|
805
|
+
Object.assign(contents, doc);
|
|
806
|
+
return contents;
|
|
807
|
+
}, "de_GetApplicationCommand");
|
|
808
|
+
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
809
|
+
const parsedOutput = {
|
|
810
|
+
...output,
|
|
811
|
+
body: await parseErrorBody(output.body, context)
|
|
812
|
+
};
|
|
813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
|
+
switch (errorCode) {
|
|
815
|
+
case "InternalServerException":
|
|
816
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
817
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
818
|
+
case "ValidationException":
|
|
819
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
820
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
821
|
+
default:
|
|
822
|
+
const parsedBody = parsedOutput.body;
|
|
823
|
+
return throwDefaultError({
|
|
824
|
+
output,
|
|
825
|
+
parsedBody,
|
|
826
|
+
errorCode
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
}, "de_GetApplicationCommandError");
|
|
830
|
+
var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
+
return de_GetComponentCommandError(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 parseBody(output.body, context)), "body");
|
|
838
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
839
|
+
Component: (_) => de_Component(_, context),
|
|
840
|
+
Tags: import_smithy_client._json
|
|
841
|
+
});
|
|
842
|
+
Object.assign(contents, doc);
|
|
843
|
+
return contents;
|
|
844
|
+
}, "de_GetComponentCommand");
|
|
845
|
+
var de_GetComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
846
|
+
const parsedOutput = {
|
|
847
|
+
...output,
|
|
848
|
+
body: await parseErrorBody(output.body, context)
|
|
849
|
+
};
|
|
850
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
+
switch (errorCode) {
|
|
852
|
+
case "InternalServerException":
|
|
853
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
854
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
855
|
+
case "UnauthorizedException":
|
|
856
|
+
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
857
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
858
|
+
case "ValidationException":
|
|
859
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
860
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
861
|
+
default:
|
|
862
|
+
const parsedBody = parsedOutput.body;
|
|
863
|
+
return throwDefaultError({
|
|
864
|
+
output,
|
|
865
|
+
parsedBody,
|
|
866
|
+
errorCode
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
}, "de_GetComponentCommandError");
|
|
870
|
+
var de_GetDatabaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
|
+
return de_GetDatabaseCommandError(output, context);
|
|
873
|
+
}
|
|
874
|
+
const contents = (0, import_smithy_client.map)({
|
|
875
|
+
$metadata: deserializeMetadata(output)
|
|
876
|
+
});
|
|
877
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
878
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
879
|
+
Database: (_) => de_Database(_, context),
|
|
880
|
+
Tags: import_smithy_client._json
|
|
881
|
+
});
|
|
882
|
+
Object.assign(contents, doc);
|
|
883
|
+
return contents;
|
|
884
|
+
}, "de_GetDatabaseCommand");
|
|
885
|
+
var de_GetDatabaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
886
|
+
const parsedOutput = {
|
|
887
|
+
...output,
|
|
888
|
+
body: await parseErrorBody(output.body, context)
|
|
889
|
+
};
|
|
890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
|
+
switch (errorCode) {
|
|
892
|
+
case "InternalServerException":
|
|
893
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
894
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
895
|
+
case "ValidationException":
|
|
896
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
897
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
898
|
+
default:
|
|
899
|
+
const parsedBody = parsedOutput.body;
|
|
900
|
+
return throwDefaultError({
|
|
901
|
+
output,
|
|
902
|
+
parsedBody,
|
|
903
|
+
errorCode
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
}, "de_GetDatabaseCommandError");
|
|
907
|
+
var de_GetOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
908
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
909
|
+
return de_GetOperationCommandError(output, context);
|
|
910
|
+
}
|
|
911
|
+
const contents = (0, import_smithy_client.map)({
|
|
912
|
+
$metadata: deserializeMetadata(output)
|
|
913
|
+
});
|
|
914
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
915
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
916
|
+
Operation: (_) => de_Operation(_, context)
|
|
917
|
+
});
|
|
918
|
+
Object.assign(contents, doc);
|
|
919
|
+
return contents;
|
|
920
|
+
}, "de_GetOperationCommand");
|
|
921
|
+
var de_GetOperationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
922
|
+
const parsedOutput = {
|
|
923
|
+
...output,
|
|
924
|
+
body: await parseErrorBody(output.body, context)
|
|
925
|
+
};
|
|
926
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
+
switch (errorCode) {
|
|
928
|
+
case "InternalServerException":
|
|
929
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
930
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
|
+
case "ValidationException":
|
|
932
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
933
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
934
|
+
default:
|
|
935
|
+
const parsedBody = parsedOutput.body;
|
|
936
|
+
return throwDefaultError({
|
|
937
|
+
output,
|
|
938
|
+
parsedBody,
|
|
939
|
+
errorCode
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
}, "de_GetOperationCommandError");
|
|
943
|
+
var de_GetResourcePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
945
|
+
return de_GetResourcePermissionCommandError(output, context);
|
|
946
|
+
}
|
|
947
|
+
const contents = (0, import_smithy_client.map)({
|
|
948
|
+
$metadata: deserializeMetadata(output)
|
|
949
|
+
});
|
|
950
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
951
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
952
|
+
Policy: import_smithy_client.expectString
|
|
953
|
+
});
|
|
954
|
+
Object.assign(contents, doc);
|
|
955
|
+
return contents;
|
|
956
|
+
}, "de_GetResourcePermissionCommand");
|
|
957
|
+
var de_GetResourcePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
958
|
+
const parsedOutput = {
|
|
959
|
+
...output,
|
|
960
|
+
body: await parseErrorBody(output.body, context)
|
|
961
|
+
};
|
|
962
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
+
switch (errorCode) {
|
|
964
|
+
case "InternalServerException":
|
|
965
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
966
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
967
|
+
case "ResourceNotFoundException":
|
|
968
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
969
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
970
|
+
case "ValidationException":
|
|
971
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
972
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
|
+
default:
|
|
974
|
+
const parsedBody = parsedOutput.body;
|
|
975
|
+
return throwDefaultError({
|
|
976
|
+
output,
|
|
977
|
+
parsedBody,
|
|
978
|
+
errorCode
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
}, "de_GetResourcePermissionCommandError");
|
|
982
|
+
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
983
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
+
return de_ListApplicationsCommandError(output, context);
|
|
985
|
+
}
|
|
986
|
+
const contents = (0, import_smithy_client.map)({
|
|
987
|
+
$metadata: deserializeMetadata(output)
|
|
988
|
+
});
|
|
989
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
990
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
991
|
+
Applications: import_smithy_client._json,
|
|
992
|
+
NextToken: import_smithy_client.expectString
|
|
993
|
+
});
|
|
994
|
+
Object.assign(contents, doc);
|
|
995
|
+
return contents;
|
|
996
|
+
}, "de_ListApplicationsCommand");
|
|
997
|
+
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
998
|
+
const parsedOutput = {
|
|
999
|
+
...output,
|
|
1000
|
+
body: await parseErrorBody(output.body, context)
|
|
1001
|
+
};
|
|
1002
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
|
+
switch (errorCode) {
|
|
1004
|
+
case "InternalServerException":
|
|
1005
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1006
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1007
|
+
case "ResourceNotFoundException":
|
|
1008
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1009
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1010
|
+
case "ValidationException":
|
|
1011
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1012
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1013
|
+
default:
|
|
1014
|
+
const parsedBody = parsedOutput.body;
|
|
1015
|
+
return throwDefaultError({
|
|
1016
|
+
output,
|
|
1017
|
+
parsedBody,
|
|
1018
|
+
errorCode
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
}, "de_ListApplicationsCommandError");
|
|
1022
|
+
var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1024
|
+
return de_ListComponentsCommandError(output, context);
|
|
1025
|
+
}
|
|
1026
|
+
const contents = (0, import_smithy_client.map)({
|
|
1027
|
+
$metadata: deserializeMetadata(output)
|
|
1028
|
+
});
|
|
1029
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1030
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1031
|
+
Components: import_smithy_client._json,
|
|
1032
|
+
NextToken: import_smithy_client.expectString
|
|
1033
|
+
});
|
|
1034
|
+
Object.assign(contents, doc);
|
|
1035
|
+
return contents;
|
|
1036
|
+
}, "de_ListComponentsCommand");
|
|
1037
|
+
var de_ListComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
+
const parsedOutput = {
|
|
1039
|
+
...output,
|
|
1040
|
+
body: await parseErrorBody(output.body, context)
|
|
1041
|
+
};
|
|
1042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
+
switch (errorCode) {
|
|
1044
|
+
case "InternalServerException":
|
|
1045
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1046
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1047
|
+
case "ResourceNotFoundException":
|
|
1048
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1049
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1050
|
+
case "UnauthorizedException":
|
|
1051
|
+
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
1052
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1053
|
+
case "ValidationException":
|
|
1054
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1055
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1056
|
+
default:
|
|
1057
|
+
const parsedBody = parsedOutput.body;
|
|
1058
|
+
return throwDefaultError({
|
|
1059
|
+
output,
|
|
1060
|
+
parsedBody,
|
|
1061
|
+
errorCode
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
}, "de_ListComponentsCommandError");
|
|
1065
|
+
var de_ListDatabasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1067
|
+
return de_ListDatabasesCommandError(output, context);
|
|
1068
|
+
}
|
|
1069
|
+
const contents = (0, import_smithy_client.map)({
|
|
1070
|
+
$metadata: deserializeMetadata(output)
|
|
1071
|
+
});
|
|
1072
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1073
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1074
|
+
Databases: import_smithy_client._json,
|
|
1075
|
+
NextToken: import_smithy_client.expectString
|
|
1076
|
+
});
|
|
1077
|
+
Object.assign(contents, doc);
|
|
1078
|
+
return contents;
|
|
1079
|
+
}, "de_ListDatabasesCommand");
|
|
1080
|
+
var de_ListDatabasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1081
|
+
const parsedOutput = {
|
|
1082
|
+
...output,
|
|
1083
|
+
body: await parseErrorBody(output.body, context)
|
|
1084
|
+
};
|
|
1085
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
|
+
switch (errorCode) {
|
|
1087
|
+
case "InternalServerException":
|
|
1088
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1089
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1090
|
+
case "ResourceNotFoundException":
|
|
1091
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1092
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1093
|
+
case "ValidationException":
|
|
1094
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1095
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1096
|
+
default:
|
|
1097
|
+
const parsedBody = parsedOutput.body;
|
|
1098
|
+
return throwDefaultError({
|
|
1099
|
+
output,
|
|
1100
|
+
parsedBody,
|
|
1101
|
+
errorCode
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
}, "de_ListDatabasesCommandError");
|
|
1105
|
+
var de_ListOperationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1106
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1107
|
+
return de_ListOperationsCommandError(output, context);
|
|
1108
|
+
}
|
|
1109
|
+
const contents = (0, import_smithy_client.map)({
|
|
1110
|
+
$metadata: deserializeMetadata(output)
|
|
1111
|
+
});
|
|
1112
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1113
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1114
|
+
NextToken: import_smithy_client.expectString,
|
|
1115
|
+
Operations: (_) => de_OperationList(_, context)
|
|
1116
|
+
});
|
|
1117
|
+
Object.assign(contents, doc);
|
|
1118
|
+
return contents;
|
|
1119
|
+
}, "de_ListOperationsCommand");
|
|
1120
|
+
var de_ListOperationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1121
|
+
const parsedOutput = {
|
|
1122
|
+
...output,
|
|
1123
|
+
body: await parseErrorBody(output.body, context)
|
|
1124
|
+
};
|
|
1125
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
+
switch (errorCode) {
|
|
1127
|
+
case "InternalServerException":
|
|
1128
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1129
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1130
|
+
case "ValidationException":
|
|
1131
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1132
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1133
|
+
default:
|
|
1134
|
+
const parsedBody = parsedOutput.body;
|
|
1135
|
+
return throwDefaultError({
|
|
1136
|
+
output,
|
|
1137
|
+
parsedBody,
|
|
1138
|
+
errorCode
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
}, "de_ListOperationsCommandError");
|
|
1142
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1144
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1145
|
+
}
|
|
1146
|
+
const contents = (0, import_smithy_client.map)({
|
|
1147
|
+
$metadata: deserializeMetadata(output)
|
|
1148
|
+
});
|
|
1149
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1150
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1151
|
+
tags: import_smithy_client._json
|
|
1152
|
+
});
|
|
1153
|
+
Object.assign(contents, doc);
|
|
1154
|
+
return contents;
|
|
1155
|
+
}, "de_ListTagsForResourceCommand");
|
|
1156
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
+
const parsedOutput = {
|
|
1158
|
+
...output,
|
|
1159
|
+
body: await parseErrorBody(output.body, context)
|
|
1160
|
+
};
|
|
1161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
+
switch (errorCode) {
|
|
1163
|
+
case "ConflictException":
|
|
1164
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
1165
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1166
|
+
case "ResourceNotFoundException":
|
|
1167
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1168
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1169
|
+
case "ValidationException":
|
|
1170
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1171
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1172
|
+
default:
|
|
1173
|
+
const parsedBody = parsedOutput.body;
|
|
1174
|
+
return throwDefaultError({
|
|
1175
|
+
output,
|
|
1176
|
+
parsedBody,
|
|
1177
|
+
errorCode
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1181
|
+
var de_PutResourcePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1182
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1183
|
+
return de_PutResourcePermissionCommandError(output, context);
|
|
1184
|
+
}
|
|
1185
|
+
const contents = (0, import_smithy_client.map)({
|
|
1186
|
+
$metadata: deserializeMetadata(output)
|
|
1187
|
+
});
|
|
1188
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1189
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1190
|
+
Policy: import_smithy_client.expectString
|
|
1191
|
+
});
|
|
1192
|
+
Object.assign(contents, doc);
|
|
1193
|
+
return contents;
|
|
1194
|
+
}, "de_PutResourcePermissionCommand");
|
|
1195
|
+
var de_PutResourcePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1196
|
+
const parsedOutput = {
|
|
1197
|
+
...output,
|
|
1198
|
+
body: await parseErrorBody(output.body, context)
|
|
1199
|
+
};
|
|
1200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
+
switch (errorCode) {
|
|
1202
|
+
case "InternalServerException":
|
|
1203
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1204
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1205
|
+
case "ResourceNotFoundException":
|
|
1206
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1207
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1208
|
+
case "ValidationException":
|
|
1209
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1210
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1211
|
+
default:
|
|
1212
|
+
const parsedBody = parsedOutput.body;
|
|
1213
|
+
return throwDefaultError({
|
|
1214
|
+
output,
|
|
1215
|
+
parsedBody,
|
|
1216
|
+
errorCode
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1219
|
+
}, "de_PutResourcePermissionCommandError");
|
|
1220
|
+
var de_RegisterApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1221
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
|
+
return de_RegisterApplicationCommandError(output, context);
|
|
1223
|
+
}
|
|
1224
|
+
const contents = (0, import_smithy_client.map)({
|
|
1225
|
+
$metadata: deserializeMetadata(output)
|
|
1226
|
+
});
|
|
1227
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1228
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1229
|
+
Application: (_) => de_Application(_, context),
|
|
1230
|
+
OperationId: import_smithy_client.expectString
|
|
1231
|
+
});
|
|
1232
|
+
Object.assign(contents, doc);
|
|
1233
|
+
return contents;
|
|
1234
|
+
}, "de_RegisterApplicationCommand");
|
|
1235
|
+
var de_RegisterApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1236
|
+
const parsedOutput = {
|
|
1237
|
+
...output,
|
|
1238
|
+
body: await parseErrorBody(output.body, context)
|
|
1239
|
+
};
|
|
1240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
+
switch (errorCode) {
|
|
1242
|
+
case "ConflictException":
|
|
1243
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
1244
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1245
|
+
case "InternalServerException":
|
|
1246
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1247
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1248
|
+
case "ResourceNotFoundException":
|
|
1249
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1250
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1251
|
+
case "ValidationException":
|
|
1252
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1253
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1254
|
+
default:
|
|
1255
|
+
const parsedBody = parsedOutput.body;
|
|
1256
|
+
return throwDefaultError({
|
|
1257
|
+
output,
|
|
1258
|
+
parsedBody,
|
|
1259
|
+
errorCode
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
}, "de_RegisterApplicationCommandError");
|
|
1263
|
+
var de_StartApplicationRefreshCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1264
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
+
return de_StartApplicationRefreshCommandError(output, context);
|
|
1266
|
+
}
|
|
1267
|
+
const contents = (0, import_smithy_client.map)({
|
|
1268
|
+
$metadata: deserializeMetadata(output)
|
|
1269
|
+
});
|
|
1270
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1271
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1272
|
+
OperationId: import_smithy_client.expectString
|
|
1273
|
+
});
|
|
1274
|
+
Object.assign(contents, doc);
|
|
1275
|
+
return contents;
|
|
1276
|
+
}, "de_StartApplicationRefreshCommand");
|
|
1277
|
+
var de_StartApplicationRefreshCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1278
|
+
const parsedOutput = {
|
|
1279
|
+
...output,
|
|
1280
|
+
body: await parseErrorBody(output.body, context)
|
|
1281
|
+
};
|
|
1282
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
|
+
switch (errorCode) {
|
|
1284
|
+
case "ConflictException":
|
|
1285
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
1286
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1287
|
+
case "InternalServerException":
|
|
1288
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1289
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1290
|
+
case "ResourceNotFoundException":
|
|
1291
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1292
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1293
|
+
case "UnauthorizedException":
|
|
1294
|
+
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
1295
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1296
|
+
case "ValidationException":
|
|
1297
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1298
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1299
|
+
default:
|
|
1300
|
+
const parsedBody = parsedOutput.body;
|
|
1301
|
+
return throwDefaultError({
|
|
1302
|
+
output,
|
|
1303
|
+
parsedBody,
|
|
1304
|
+
errorCode
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
}, "de_StartApplicationRefreshCommandError");
|
|
1308
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1309
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
|
+
return de_TagResourceCommandError(output, context);
|
|
1311
|
+
}
|
|
1312
|
+
const contents = (0, import_smithy_client.map)({
|
|
1313
|
+
$metadata: deserializeMetadata(output)
|
|
1314
|
+
});
|
|
1315
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1316
|
+
return contents;
|
|
1317
|
+
}, "de_TagResourceCommand");
|
|
1318
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
|
+
const parsedOutput = {
|
|
1320
|
+
...output,
|
|
1321
|
+
body: await parseErrorBody(output.body, context)
|
|
1322
|
+
};
|
|
1323
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
+
switch (errorCode) {
|
|
1325
|
+
case "ConflictException":
|
|
1326
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
1327
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1328
|
+
case "ResourceNotFoundException":
|
|
1329
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1330
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1331
|
+
case "ValidationException":
|
|
1332
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1333
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
|
+
default:
|
|
1335
|
+
const parsedBody = parsedOutput.body;
|
|
1336
|
+
return throwDefaultError({
|
|
1337
|
+
output,
|
|
1338
|
+
parsedBody,
|
|
1339
|
+
errorCode
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
}, "de_TagResourceCommandError");
|
|
1343
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1344
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
+
return de_UntagResourceCommandError(output, context);
|
|
1346
|
+
}
|
|
1347
|
+
const contents = (0, import_smithy_client.map)({
|
|
1348
|
+
$metadata: deserializeMetadata(output)
|
|
1349
|
+
});
|
|
1350
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1351
|
+
return contents;
|
|
1352
|
+
}, "de_UntagResourceCommand");
|
|
1353
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1354
|
+
const parsedOutput = {
|
|
1355
|
+
...output,
|
|
1356
|
+
body: await parseErrorBody(output.body, context)
|
|
1357
|
+
};
|
|
1358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
+
switch (errorCode) {
|
|
1360
|
+
case "ConflictException":
|
|
1361
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
1362
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1363
|
+
case "ResourceNotFoundException":
|
|
1364
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1365
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1366
|
+
case "ValidationException":
|
|
1367
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1368
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1369
|
+
default:
|
|
1370
|
+
const parsedBody = parsedOutput.body;
|
|
1371
|
+
return throwDefaultError({
|
|
1372
|
+
output,
|
|
1373
|
+
parsedBody,
|
|
1374
|
+
errorCode
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1377
|
+
}, "de_UntagResourceCommandError");
|
|
1378
|
+
var de_UpdateApplicationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1379
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
|
+
return de_UpdateApplicationSettingsCommandError(output, context);
|
|
1381
|
+
}
|
|
1382
|
+
const contents = (0, import_smithy_client.map)({
|
|
1383
|
+
$metadata: deserializeMetadata(output)
|
|
1384
|
+
});
|
|
1385
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1386
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1387
|
+
Message: import_smithy_client.expectString,
|
|
1388
|
+
OperationIds: import_smithy_client._json
|
|
1389
|
+
});
|
|
1390
|
+
Object.assign(contents, doc);
|
|
1391
|
+
return contents;
|
|
1392
|
+
}, "de_UpdateApplicationSettingsCommand");
|
|
1393
|
+
var de_UpdateApplicationSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1394
|
+
const parsedOutput = {
|
|
1395
|
+
...output,
|
|
1396
|
+
body: await parseErrorBody(output.body, context)
|
|
1397
|
+
};
|
|
1398
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
+
switch (errorCode) {
|
|
1400
|
+
case "ConflictException":
|
|
1401
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
1402
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1403
|
+
case "InternalServerException":
|
|
1404
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1405
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1406
|
+
case "ResourceNotFoundException":
|
|
1407
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1408
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1409
|
+
case "UnauthorizedException":
|
|
1410
|
+
case "com.amazonaws.ssmsap#UnauthorizedException":
|
|
1411
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1412
|
+
case "ValidationException":
|
|
1413
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
1414
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1415
|
+
default:
|
|
1416
|
+
const parsedBody = parsedOutput.body;
|
|
1417
|
+
return throwDefaultError({
|
|
1418
|
+
output,
|
|
1419
|
+
parsedBody,
|
|
1420
|
+
errorCode
|
|
1421
|
+
});
|
|
1422
|
+
}
|
|
1423
|
+
}, "de_UpdateApplicationSettingsCommandError");
|
|
1424
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(SsmSapServiceException);
|
|
1425
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1426
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1427
|
+
const data = parsedOutput.body;
|
|
1428
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1429
|
+
Message: import_smithy_client.expectString
|
|
1430
|
+
});
|
|
1431
|
+
Object.assign(contents, doc);
|
|
1432
|
+
const exception = new ConflictException({
|
|
1433
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1434
|
+
...contents
|
|
1435
|
+
});
|
|
1436
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1437
|
+
}, "de_ConflictExceptionRes");
|
|
1438
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1439
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1440
|
+
const data = parsedOutput.body;
|
|
1441
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1442
|
+
Message: import_smithy_client.expectString
|
|
1443
|
+
});
|
|
1444
|
+
Object.assign(contents, doc);
|
|
1445
|
+
const exception = new InternalServerException({
|
|
1446
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1447
|
+
...contents
|
|
1448
|
+
});
|
|
1449
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1450
|
+
}, "de_InternalServerExceptionRes");
|
|
1451
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1452
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1453
|
+
const data = parsedOutput.body;
|
|
1454
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1455
|
+
Message: import_smithy_client.expectString
|
|
1456
|
+
});
|
|
1457
|
+
Object.assign(contents, doc);
|
|
1458
|
+
const exception = new ResourceNotFoundException({
|
|
1459
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1460
|
+
...contents
|
|
1461
|
+
});
|
|
1462
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1463
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1464
|
+
var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1465
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1466
|
+
const data = parsedOutput.body;
|
|
1467
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1468
|
+
Message: import_smithy_client.expectString
|
|
1469
|
+
});
|
|
1470
|
+
Object.assign(contents, doc);
|
|
1471
|
+
const exception = new UnauthorizedException({
|
|
1472
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1473
|
+
...contents
|
|
1474
|
+
});
|
|
1475
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1476
|
+
}, "de_UnauthorizedExceptionRes");
|
|
1477
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1478
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1479
|
+
const data = parsedOutput.body;
|
|
1480
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1481
|
+
Message: import_smithy_client.expectString
|
|
1482
|
+
});
|
|
1483
|
+
Object.assign(contents, doc);
|
|
1484
|
+
const exception = new ValidationException({
|
|
1485
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1486
|
+
...contents
|
|
1487
|
+
});
|
|
1488
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1489
|
+
}, "de_ValidationExceptionRes");
|
|
1490
|
+
var de_Application = /* @__PURE__ */ __name((output, context) => {
|
|
1491
|
+
return (0, import_smithy_client.take)(output, {
|
|
1492
|
+
AppRegistryArn: import_smithy_client.expectString,
|
|
1493
|
+
Arn: import_smithy_client.expectString,
|
|
1494
|
+
Components: import_smithy_client._json,
|
|
1495
|
+
DiscoveryStatus: import_smithy_client.expectString,
|
|
1496
|
+
Id: import_smithy_client.expectString,
|
|
1497
|
+
LastUpdated: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1498
|
+
Status: import_smithy_client.expectString,
|
|
1499
|
+
StatusMessage: import_smithy_client.expectString,
|
|
1500
|
+
Type: import_smithy_client.expectString
|
|
1501
|
+
});
|
|
1502
|
+
}, "de_Application");
|
|
1503
|
+
var de_Component = /* @__PURE__ */ __name((output, context) => {
|
|
1504
|
+
return (0, import_smithy_client.take)(output, {
|
|
1505
|
+
ApplicationId: import_smithy_client.expectString,
|
|
1506
|
+
Arn: import_smithy_client.expectString,
|
|
1507
|
+
AssociatedHost: import_smithy_client._json,
|
|
1508
|
+
ChildComponents: import_smithy_client._json,
|
|
1509
|
+
ComponentId: import_smithy_client.expectString,
|
|
1510
|
+
ComponentType: import_smithy_client.expectString,
|
|
1511
|
+
DatabaseConnection: import_smithy_client._json,
|
|
1512
|
+
Databases: import_smithy_client._json,
|
|
1513
|
+
HdbVersion: import_smithy_client.expectString,
|
|
1514
|
+
Hosts: import_smithy_client._json,
|
|
1515
|
+
LastUpdated: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1516
|
+
ParentComponent: import_smithy_client.expectString,
|
|
1517
|
+
PrimaryHost: import_smithy_client.expectString,
|
|
1518
|
+
Resilience: import_smithy_client._json,
|
|
1519
|
+
SapFeature: import_smithy_client.expectString,
|
|
1520
|
+
SapHostname: import_smithy_client.expectString,
|
|
1521
|
+
SapKernelVersion: import_smithy_client.expectString,
|
|
1522
|
+
Sid: import_smithy_client.expectString,
|
|
1523
|
+
Status: import_smithy_client.expectString,
|
|
1524
|
+
SystemNumber: import_smithy_client.expectString
|
|
1525
|
+
});
|
|
1526
|
+
}, "de_Component");
|
|
1527
|
+
var de_Database = /* @__PURE__ */ __name((output, context) => {
|
|
1528
|
+
return (0, import_smithy_client.take)(output, {
|
|
1529
|
+
ApplicationId: import_smithy_client.expectString,
|
|
1530
|
+
Arn: import_smithy_client.expectString,
|
|
1531
|
+
ComponentId: import_smithy_client.expectString,
|
|
1532
|
+
Credentials: import_smithy_client._json,
|
|
1533
|
+
DatabaseId: import_smithy_client.expectString,
|
|
1534
|
+
DatabaseName: import_smithy_client.expectString,
|
|
1535
|
+
DatabaseType: import_smithy_client.expectString,
|
|
1536
|
+
LastUpdated: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1537
|
+
PrimaryHost: import_smithy_client.expectString,
|
|
1538
|
+
SQLPort: import_smithy_client.expectInt32,
|
|
1539
|
+
Status: import_smithy_client.expectString
|
|
1540
|
+
});
|
|
1541
|
+
}, "de_Database");
|
|
1542
|
+
var de_Operation = /* @__PURE__ */ __name((output, context) => {
|
|
1543
|
+
return (0, import_smithy_client.take)(output, {
|
|
1544
|
+
EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1545
|
+
Id: import_smithy_client.expectString,
|
|
1546
|
+
LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1547
|
+
Properties: (_) => de_OperationProperties(_, context),
|
|
1548
|
+
ResourceArn: import_smithy_client.expectString,
|
|
1549
|
+
ResourceId: import_smithy_client.expectString,
|
|
1550
|
+
ResourceType: import_smithy_client.expectString,
|
|
1551
|
+
StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1552
|
+
Status: import_smithy_client.expectString,
|
|
1553
|
+
StatusMessage: import_smithy_client.expectString,
|
|
1554
|
+
Type: import_smithy_client.expectString
|
|
1555
|
+
});
|
|
1556
|
+
}, "de_Operation");
|
|
1557
|
+
var de_OperationList = /* @__PURE__ */ __name((output, context) => {
|
|
1558
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1559
|
+
return de_Operation(entry, context);
|
|
1560
|
+
});
|
|
1561
|
+
return retVal;
|
|
1562
|
+
}, "de_OperationList");
|
|
1563
|
+
var de_OperationProperties = /* @__PURE__ */ __name((output, context) => {
|
|
1564
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1565
|
+
if (value === null) {
|
|
1566
|
+
acc[key] = null;
|
|
1567
|
+
return acc;
|
|
1568
|
+
}
|
|
1569
|
+
acc[key] = (0, import_smithy_client.expectString)(value);
|
|
1570
|
+
return acc;
|
|
1571
|
+
}, {});
|
|
1572
|
+
}, "de_OperationProperties");
|
|
1573
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1574
|
+
httpStatusCode: output.statusCode,
|
|
1575
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1576
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1577
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1578
|
+
}), "deserializeMetadata");
|
|
1579
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1580
|
+
var _tK = "tagKeys";
|
|
1581
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1582
|
+
if (encoded.length) {
|
|
1583
|
+
return JSON.parse(encoded);
|
|
1584
|
+
}
|
|
1585
|
+
return {};
|
|
1586
|
+
}), "parseBody");
|
|
1587
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1588
|
+
const value = await parseBody(errorBody, context);
|
|
1589
|
+
value.message = value.message ?? value.Message;
|
|
1590
|
+
return value;
|
|
1591
|
+
}, "parseErrorBody");
|
|
1592
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1593
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1594
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1595
|
+
let cleanValue = rawValue;
|
|
1596
|
+
if (typeof cleanValue === "number") {
|
|
1597
|
+
cleanValue = cleanValue.toString();
|
|
1598
|
+
}
|
|
1599
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1600
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1601
|
+
}
|
|
1602
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1603
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1604
|
+
}
|
|
1605
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1606
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1607
|
+
}
|
|
1608
|
+
return cleanValue;
|
|
1609
|
+
}, "sanitizeErrorCode");
|
|
1610
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1611
|
+
if (headerKey !== void 0) {
|
|
1612
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1613
|
+
}
|
|
1614
|
+
if (data.code !== void 0) {
|
|
1615
|
+
return sanitizeErrorCode(data.code);
|
|
1616
|
+
}
|
|
1617
|
+
if (data["__type"] !== void 0) {
|
|
1618
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1619
|
+
}
|
|
1620
|
+
}, "loadRestJsonErrorCode");
|
|
1621
|
+
|
|
1622
|
+
// src/commands/DeleteResourcePermissionCommand.ts
|
|
1623
|
+
var _DeleteResourcePermissionCommand = class _DeleteResourcePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1624
|
+
...commonParams
|
|
1625
|
+
}).m(function(Command, cs, config, o) {
|
|
1626
|
+
return [
|
|
1627
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1628
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1629
|
+
];
|
|
1630
|
+
}).s("SsmSap", "DeleteResourcePermission", {}).n("SsmSapClient", "DeleteResourcePermissionCommand").f(void 0, void 0).ser(se_DeleteResourcePermissionCommand).de(de_DeleteResourcePermissionCommand).build() {
|
|
1631
|
+
};
|
|
1632
|
+
__name(_DeleteResourcePermissionCommand, "DeleteResourcePermissionCommand");
|
|
1633
|
+
var DeleteResourcePermissionCommand = _DeleteResourcePermissionCommand;
|
|
1634
|
+
|
|
1635
|
+
// src/commands/DeregisterApplicationCommand.ts
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
var _DeregisterApplicationCommand = class _DeregisterApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1641
|
+
...commonParams
|
|
1642
|
+
}).m(function(Command, cs, config, o) {
|
|
1643
|
+
return [
|
|
1644
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1645
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1646
|
+
];
|
|
1647
|
+
}).s("SsmSap", "DeregisterApplication", {}).n("SsmSapClient", "DeregisterApplicationCommand").f(void 0, void 0).ser(se_DeregisterApplicationCommand).de(de_DeregisterApplicationCommand).build() {
|
|
1648
|
+
};
|
|
1649
|
+
__name(_DeregisterApplicationCommand, "DeregisterApplicationCommand");
|
|
1650
|
+
var DeregisterApplicationCommand = _DeregisterApplicationCommand;
|
|
1651
|
+
|
|
1652
|
+
// src/commands/GetApplicationCommand.ts
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
var _GetApplicationCommand = class _GetApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1658
|
+
...commonParams
|
|
1659
|
+
}).m(function(Command, cs, config, o) {
|
|
1660
|
+
return [
|
|
1661
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1662
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1663
|
+
];
|
|
1664
|
+
}).s("SsmSap", "GetApplication", {}).n("SsmSapClient", "GetApplicationCommand").f(void 0, void 0).ser(se_GetApplicationCommand).de(de_GetApplicationCommand).build() {
|
|
1665
|
+
};
|
|
1666
|
+
__name(_GetApplicationCommand, "GetApplicationCommand");
|
|
1667
|
+
var GetApplicationCommand = _GetApplicationCommand;
|
|
1668
|
+
|
|
1669
|
+
// src/commands/GetComponentCommand.ts
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
var _GetComponentCommand = class _GetComponentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1675
|
+
...commonParams
|
|
1676
|
+
}).m(function(Command, cs, config, o) {
|
|
1677
|
+
return [
|
|
1678
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1679
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1680
|
+
];
|
|
1681
|
+
}).s("SsmSap", "GetComponent", {}).n("SsmSapClient", "GetComponentCommand").f(void 0, void 0).ser(se_GetComponentCommand).de(de_GetComponentCommand).build() {
|
|
1682
|
+
};
|
|
1683
|
+
__name(_GetComponentCommand, "GetComponentCommand");
|
|
1684
|
+
var GetComponentCommand = _GetComponentCommand;
|
|
1685
|
+
|
|
1686
|
+
// src/commands/GetDatabaseCommand.ts
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
var _GetDatabaseCommand = class _GetDatabaseCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1692
|
+
...commonParams
|
|
1693
|
+
}).m(function(Command, cs, config, o) {
|
|
1694
|
+
return [
|
|
1695
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1696
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1697
|
+
];
|
|
1698
|
+
}).s("SsmSap", "GetDatabase", {}).n("SsmSapClient", "GetDatabaseCommand").f(void 0, GetDatabaseOutputFilterSensitiveLog).ser(se_GetDatabaseCommand).de(de_GetDatabaseCommand).build() {
|
|
1699
|
+
};
|
|
1700
|
+
__name(_GetDatabaseCommand, "GetDatabaseCommand");
|
|
1701
|
+
var GetDatabaseCommand = _GetDatabaseCommand;
|
|
1702
|
+
|
|
1703
|
+
// src/commands/GetOperationCommand.ts
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
var _GetOperationCommand = class _GetOperationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1709
|
+
...commonParams
|
|
1710
|
+
}).m(function(Command, cs, config, o) {
|
|
1711
|
+
return [
|
|
1712
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1713
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1714
|
+
];
|
|
1715
|
+
}).s("SsmSap", "GetOperation", {}).n("SsmSapClient", "GetOperationCommand").f(void 0, void 0).ser(se_GetOperationCommand).de(de_GetOperationCommand).build() {
|
|
1716
|
+
};
|
|
1717
|
+
__name(_GetOperationCommand, "GetOperationCommand");
|
|
1718
|
+
var GetOperationCommand = _GetOperationCommand;
|
|
1719
|
+
|
|
1720
|
+
// src/commands/GetResourcePermissionCommand.ts
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
var _GetResourcePermissionCommand = class _GetResourcePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1726
|
+
...commonParams
|
|
1727
|
+
}).m(function(Command, cs, config, o) {
|
|
1728
|
+
return [
|
|
1729
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1730
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1731
|
+
];
|
|
1732
|
+
}).s("SsmSap", "GetResourcePermission", {}).n("SsmSapClient", "GetResourcePermissionCommand").f(void 0, void 0).ser(se_GetResourcePermissionCommand).de(de_GetResourcePermissionCommand).build() {
|
|
1733
|
+
};
|
|
1734
|
+
__name(_GetResourcePermissionCommand, "GetResourcePermissionCommand");
|
|
1735
|
+
var GetResourcePermissionCommand = _GetResourcePermissionCommand;
|
|
1736
|
+
|
|
1737
|
+
// src/commands/ListApplicationsCommand.ts
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
var _ListApplicationsCommand = class _ListApplicationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1743
|
+
...commonParams
|
|
1744
|
+
}).m(function(Command, cs, config, o) {
|
|
1745
|
+
return [
|
|
1746
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1747
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1748
|
+
];
|
|
1749
|
+
}).s("SsmSap", "ListApplications", {}).n("SsmSapClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
|
|
1750
|
+
};
|
|
1751
|
+
__name(_ListApplicationsCommand, "ListApplicationsCommand");
|
|
1752
|
+
var ListApplicationsCommand = _ListApplicationsCommand;
|
|
1753
|
+
|
|
1754
|
+
// src/commands/ListComponentsCommand.ts
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
var _ListComponentsCommand = class _ListComponentsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1760
|
+
...commonParams
|
|
1761
|
+
}).m(function(Command, cs, config, o) {
|
|
1762
|
+
return [
|
|
1763
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1764
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1765
|
+
];
|
|
1766
|
+
}).s("SsmSap", "ListComponents", {}).n("SsmSapClient", "ListComponentsCommand").f(void 0, void 0).ser(se_ListComponentsCommand).de(de_ListComponentsCommand).build() {
|
|
1767
|
+
};
|
|
1768
|
+
__name(_ListComponentsCommand, "ListComponentsCommand");
|
|
1769
|
+
var ListComponentsCommand = _ListComponentsCommand;
|
|
1770
|
+
|
|
1771
|
+
// src/commands/ListDatabasesCommand.ts
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
var _ListDatabasesCommand = class _ListDatabasesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1777
|
+
...commonParams
|
|
1778
|
+
}).m(function(Command, cs, config, o) {
|
|
1779
|
+
return [
|
|
1780
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1781
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1782
|
+
];
|
|
1783
|
+
}).s("SsmSap", "ListDatabases", {}).n("SsmSapClient", "ListDatabasesCommand").f(void 0, void 0).ser(se_ListDatabasesCommand).de(de_ListDatabasesCommand).build() {
|
|
1784
|
+
};
|
|
1785
|
+
__name(_ListDatabasesCommand, "ListDatabasesCommand");
|
|
1786
|
+
var ListDatabasesCommand = _ListDatabasesCommand;
|
|
1787
|
+
|
|
1788
|
+
// src/commands/ListOperationsCommand.ts
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
var _ListOperationsCommand = class _ListOperationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1794
|
+
...commonParams
|
|
1795
|
+
}).m(function(Command, cs, config, o) {
|
|
1796
|
+
return [
|
|
1797
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1798
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1799
|
+
];
|
|
1800
|
+
}).s("SsmSap", "ListOperations", {}).n("SsmSapClient", "ListOperationsCommand").f(void 0, void 0).ser(se_ListOperationsCommand).de(de_ListOperationsCommand).build() {
|
|
1801
|
+
};
|
|
1802
|
+
__name(_ListOperationsCommand, "ListOperationsCommand");
|
|
1803
|
+
var ListOperationsCommand = _ListOperationsCommand;
|
|
1804
|
+
|
|
1805
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1811
|
+
...commonParams
|
|
1812
|
+
}).m(function(Command, cs, config, o) {
|
|
1813
|
+
return [
|
|
1814
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1815
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1816
|
+
];
|
|
1817
|
+
}).s("SsmSap", "ListTagsForResource", {}).n("SsmSapClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1818
|
+
};
|
|
1819
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1820
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1821
|
+
|
|
1822
|
+
// src/commands/PutResourcePermissionCommand.ts
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
var _PutResourcePermissionCommand = class _PutResourcePermissionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1828
|
+
...commonParams
|
|
1829
|
+
}).m(function(Command, cs, config, o) {
|
|
1830
|
+
return [
|
|
1831
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1832
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1833
|
+
];
|
|
1834
|
+
}).s("SsmSap", "PutResourcePermission", {}).n("SsmSapClient", "PutResourcePermissionCommand").f(void 0, void 0).ser(se_PutResourcePermissionCommand).de(de_PutResourcePermissionCommand).build() {
|
|
1835
|
+
};
|
|
1836
|
+
__name(_PutResourcePermissionCommand, "PutResourcePermissionCommand");
|
|
1837
|
+
var PutResourcePermissionCommand = _PutResourcePermissionCommand;
|
|
1838
|
+
|
|
1839
|
+
// src/commands/RegisterApplicationCommand.ts
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
var _RegisterApplicationCommand = class _RegisterApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1845
|
+
...commonParams
|
|
1846
|
+
}).m(function(Command, cs, config, o) {
|
|
1847
|
+
return [
|
|
1848
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1849
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1850
|
+
];
|
|
1851
|
+
}).s("SsmSap", "RegisterApplication", {}).n("SsmSapClient", "RegisterApplicationCommand").f(RegisterApplicationInputFilterSensitiveLog, void 0).ser(se_RegisterApplicationCommand).de(de_RegisterApplicationCommand).build() {
|
|
1852
|
+
};
|
|
1853
|
+
__name(_RegisterApplicationCommand, "RegisterApplicationCommand");
|
|
1854
|
+
var RegisterApplicationCommand = _RegisterApplicationCommand;
|
|
1855
|
+
|
|
1856
|
+
// src/commands/StartApplicationRefreshCommand.ts
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
var _StartApplicationRefreshCommand = class _StartApplicationRefreshCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1862
|
+
...commonParams
|
|
1863
|
+
}).m(function(Command, cs, config, o) {
|
|
1864
|
+
return [
|
|
1865
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1866
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1867
|
+
];
|
|
1868
|
+
}).s("SsmSap", "StartApplicationRefresh", {}).n("SsmSapClient", "StartApplicationRefreshCommand").f(void 0, void 0).ser(se_StartApplicationRefreshCommand).de(de_StartApplicationRefreshCommand).build() {
|
|
1869
|
+
};
|
|
1870
|
+
__name(_StartApplicationRefreshCommand, "StartApplicationRefreshCommand");
|
|
1871
|
+
var StartApplicationRefreshCommand = _StartApplicationRefreshCommand;
|
|
1872
|
+
|
|
1873
|
+
// src/commands/TagResourceCommand.ts
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1879
|
+
...commonParams
|
|
1880
|
+
}).m(function(Command, cs, config, o) {
|
|
1881
|
+
return [
|
|
1882
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1883
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1884
|
+
];
|
|
1885
|
+
}).s("SsmSap", "TagResource", {}).n("SsmSapClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1886
|
+
};
|
|
1887
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1888
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1889
|
+
|
|
1890
|
+
// src/commands/UntagResourceCommand.ts
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1896
|
+
...commonParams
|
|
1897
|
+
}).m(function(Command, cs, config, o) {
|
|
1898
|
+
return [
|
|
1899
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1900
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1901
|
+
];
|
|
1902
|
+
}).s("SsmSap", "UntagResource", {}).n("SsmSapClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1903
|
+
};
|
|
1904
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1905
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1906
|
+
|
|
1907
|
+
// src/commands/UpdateApplicationSettingsCommand.ts
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
var _UpdateApplicationSettingsCommand = class _UpdateApplicationSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1913
|
+
...commonParams
|
|
1914
|
+
}).m(function(Command, cs, config, o) {
|
|
1915
|
+
return [
|
|
1916
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1917
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1918
|
+
];
|
|
1919
|
+
}).s("SsmSap", "UpdateApplicationSettings", {}).n("SsmSapClient", "UpdateApplicationSettingsCommand").f(UpdateApplicationSettingsInputFilterSensitiveLog, void 0).ser(se_UpdateApplicationSettingsCommand).de(de_UpdateApplicationSettingsCommand).build() {
|
|
1920
|
+
};
|
|
1921
|
+
__name(_UpdateApplicationSettingsCommand, "UpdateApplicationSettingsCommand");
|
|
1922
|
+
var UpdateApplicationSettingsCommand = _UpdateApplicationSettingsCommand;
|
|
1923
|
+
|
|
1924
|
+
// src/SsmSap.ts
|
|
1925
|
+
var commands = {
|
|
1926
|
+
DeleteResourcePermissionCommand,
|
|
1927
|
+
DeregisterApplicationCommand,
|
|
1928
|
+
GetApplicationCommand,
|
|
1929
|
+
GetComponentCommand,
|
|
1930
|
+
GetDatabaseCommand,
|
|
1931
|
+
GetOperationCommand,
|
|
1932
|
+
GetResourcePermissionCommand,
|
|
1933
|
+
ListApplicationsCommand,
|
|
1934
|
+
ListComponentsCommand,
|
|
1935
|
+
ListDatabasesCommand,
|
|
1936
|
+
ListOperationsCommand,
|
|
1937
|
+
ListTagsForResourceCommand,
|
|
1938
|
+
PutResourcePermissionCommand,
|
|
1939
|
+
RegisterApplicationCommand,
|
|
1940
|
+
StartApplicationRefreshCommand,
|
|
1941
|
+
TagResourceCommand,
|
|
1942
|
+
UntagResourceCommand,
|
|
1943
|
+
UpdateApplicationSettingsCommand
|
|
1944
|
+
};
|
|
1945
|
+
var _SsmSap = class _SsmSap extends SsmSapClient {
|
|
1946
|
+
};
|
|
1947
|
+
__name(_SsmSap, "SsmSap");
|
|
1948
|
+
var SsmSap = _SsmSap;
|
|
1949
|
+
(0, import_smithy_client.createAggregatedClient)(commands, SsmSap);
|
|
1950
|
+
|
|
1951
|
+
// src/pagination/ListApplicationsPaginator.ts
|
|
1952
|
+
|
|
1953
|
+
var paginateListApplications = (0, import_core.createPaginator)(SsmSapClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1954
|
+
|
|
1955
|
+
// src/pagination/ListComponentsPaginator.ts
|
|
1956
|
+
|
|
1957
|
+
var paginateListComponents = (0, import_core.createPaginator)(SsmSapClient, ListComponentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1958
|
+
|
|
1959
|
+
// src/pagination/ListDatabasesPaginator.ts
|
|
1960
|
+
|
|
1961
|
+
var paginateListDatabases = (0, import_core.createPaginator)(SsmSapClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1962
|
+
|
|
1963
|
+
// src/pagination/ListOperationsPaginator.ts
|
|
1964
|
+
|
|
1965
|
+
var paginateListOperations = (0, import_core.createPaginator)(SsmSapClient, ListOperationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1966
|
+
|
|
1967
|
+
// src/index.ts
|
|
1968
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1969
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1970
|
+
0 && (module.exports = {
|
|
1971
|
+
AllocationType,
|
|
1972
|
+
ApplicationCredentialFilterSensitiveLog,
|
|
1973
|
+
ApplicationDiscoveryStatus,
|
|
1974
|
+
ApplicationStatus,
|
|
1975
|
+
ApplicationType,
|
|
1976
|
+
BackintMode,
|
|
1977
|
+
ClusterStatus,
|
|
1978
|
+
ComponentStatus,
|
|
1979
|
+
ComponentType,
|
|
1980
|
+
ConflictException,
|
|
1981
|
+
CredentialType,
|
|
1982
|
+
DatabaseConnectionMethod,
|
|
1983
|
+
DatabaseFilterSensitiveLog,
|
|
1984
|
+
DatabaseStatus,
|
|
1985
|
+
DatabaseType,
|
|
1986
|
+
DeleteResourcePermissionCommand,
|
|
1987
|
+
DeregisterApplicationCommand,
|
|
1988
|
+
FilterOperator,
|
|
1989
|
+
GetApplicationCommand,
|
|
1990
|
+
GetComponentCommand,
|
|
1991
|
+
GetDatabaseCommand,
|
|
1992
|
+
GetDatabaseOutputFilterSensitiveLog,
|
|
1993
|
+
GetOperationCommand,
|
|
1994
|
+
GetResourcePermissionCommand,
|
|
1995
|
+
HostRole,
|
|
1996
|
+
InternalServerException,
|
|
1997
|
+
ListApplicationsCommand,
|
|
1998
|
+
ListComponentsCommand,
|
|
1999
|
+
ListDatabasesCommand,
|
|
2000
|
+
ListOperationsCommand,
|
|
2001
|
+
ListTagsForResourceCommand,
|
|
2002
|
+
OperationMode,
|
|
2003
|
+
OperationStatus,
|
|
2004
|
+
PermissionActionType,
|
|
2005
|
+
PutResourcePermissionCommand,
|
|
2006
|
+
RegisterApplicationCommand,
|
|
2007
|
+
RegisterApplicationInputFilterSensitiveLog,
|
|
2008
|
+
ReplicationMode,
|
|
2009
|
+
ResourceNotFoundException,
|
|
2010
|
+
SsmSap,
|
|
2011
|
+
SsmSapClient,
|
|
2012
|
+
SsmSapServiceException,
|
|
2013
|
+
StartApplicationRefreshCommand,
|
|
2014
|
+
TagResourceCommand,
|
|
2015
|
+
UnauthorizedException,
|
|
2016
|
+
UntagResourceCommand,
|
|
2017
|
+
UpdateApplicationSettingsCommand,
|
|
2018
|
+
UpdateApplicationSettingsInputFilterSensitiveLog,
|
|
2019
|
+
ValidationException,
|
|
2020
|
+
__Client,
|
|
2021
|
+
paginateListApplications,
|
|
2022
|
+
paginateListComponents,
|
|
2023
|
+
paginateListDatabases,
|
|
2024
|
+
paginateListOperations
|
|
2025
|
+
});
|