@aws-sdk/client-cloudcontrol 3.901.0 → 3.907.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1263 -1510
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1566 +1,1319 @@
|
|
|
1
|
-
|
|
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);
|
|
1
|
+
'use strict';
|
|
20
2
|
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
GetResourceCommand: () => GetResourceCommand,
|
|
40
|
-
GetResourceOutputFilterSensitiveLog: () => GetResourceOutputFilterSensitiveLog,
|
|
41
|
-
GetResourceRequestStatusCommand: () => GetResourceRequestStatusCommand,
|
|
42
|
-
GetResourceRequestStatusOutputFilterSensitiveLog: () => GetResourceRequestStatusOutputFilterSensitiveLog,
|
|
43
|
-
HandlerErrorCode: () => HandlerErrorCode,
|
|
44
|
-
HandlerFailureException: () => HandlerFailureException,
|
|
45
|
-
HandlerInternalFailureException: () => HandlerInternalFailureException,
|
|
46
|
-
InvalidCredentialsException: () => InvalidCredentialsException,
|
|
47
|
-
InvalidRequestException: () => InvalidRequestException,
|
|
48
|
-
ListResourceRequestsCommand: () => ListResourceRequestsCommand,
|
|
49
|
-
ListResourceRequestsOutputFilterSensitiveLog: () => ListResourceRequestsOutputFilterSensitiveLog,
|
|
50
|
-
ListResourcesCommand: () => ListResourcesCommand,
|
|
51
|
-
ListResourcesInputFilterSensitiveLog: () => ListResourcesInputFilterSensitiveLog,
|
|
52
|
-
ListResourcesOutputFilterSensitiveLog: () => ListResourcesOutputFilterSensitiveLog,
|
|
53
|
-
NetworkFailureException: () => NetworkFailureException,
|
|
54
|
-
NotStabilizedException: () => NotStabilizedException,
|
|
55
|
-
NotUpdatableException: () => NotUpdatableException,
|
|
56
|
-
Operation: () => Operation,
|
|
57
|
-
OperationStatus: () => OperationStatus,
|
|
58
|
-
PrivateTypeException: () => PrivateTypeException,
|
|
59
|
-
ProgressEventFilterSensitiveLog: () => ProgressEventFilterSensitiveLog,
|
|
60
|
-
RequestTokenNotFoundException: () => RequestTokenNotFoundException,
|
|
61
|
-
ResourceConflictException: () => ResourceConflictException,
|
|
62
|
-
ResourceDescriptionFilterSensitiveLog: () => ResourceDescriptionFilterSensitiveLog,
|
|
63
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
64
|
-
ServiceInternalErrorException: () => ServiceInternalErrorException,
|
|
65
|
-
ServiceLimitExceededException: () => ServiceLimitExceededException,
|
|
66
|
-
ThrottlingException: () => ThrottlingException,
|
|
67
|
-
TypeNotFoundException: () => TypeNotFoundException,
|
|
68
|
-
UnsupportedActionException: () => UnsupportedActionException,
|
|
69
|
-
UpdateResourceCommand: () => UpdateResourceCommand,
|
|
70
|
-
UpdateResourceInputFilterSensitiveLog: () => UpdateResourceInputFilterSensitiveLog,
|
|
71
|
-
UpdateResourceOutputFilterSensitiveLog: () => UpdateResourceOutputFilterSensitiveLog,
|
|
72
|
-
__Client: () => import_smithy_client.Client,
|
|
73
|
-
paginateListResourceRequests: () => paginateListResourceRequests,
|
|
74
|
-
paginateListResources: () => paginateListResources,
|
|
75
|
-
waitForResourceRequestSuccess: () => waitForResourceRequestSuccess,
|
|
76
|
-
waitUntilResourceRequestSuccess: () => waitUntilResourceRequestSuccess
|
|
77
|
-
});
|
|
78
|
-
module.exports = __toCommonJS(index_exports);
|
|
79
|
-
|
|
80
|
-
// src/CloudControlClient.ts
|
|
81
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
82
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
83
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
84
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
85
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
86
|
-
var import_core = require("@smithy/core");
|
|
87
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
88
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
89
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
var utilWaiter = require('@smithy/util-waiter');
|
|
90
21
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
104
|
-
Region: { type: "builtInParams", name: "region" },
|
|
105
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
22
|
+
const resolveClientEndpointParameters = (options) => {
|
|
23
|
+
return Object.assign(options, {
|
|
24
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
25
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
26
|
+
defaultSigningName: "cloudcontrolapi",
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const commonParams = {
|
|
30
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
31
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
32
|
+
Region: { type: "builtInParams", name: "region" },
|
|
33
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
106
34
|
};
|
|
107
35
|
|
|
108
|
-
|
|
109
|
-
|
|
36
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
37
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
38
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
39
|
+
let _credentials = runtimeConfig.credentials;
|
|
40
|
+
return {
|
|
41
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
42
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
43
|
+
if (index === -1) {
|
|
44
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
httpAuthSchemes() {
|
|
51
|
+
return _httpAuthSchemes;
|
|
52
|
+
},
|
|
53
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
54
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
55
|
+
},
|
|
56
|
+
httpAuthSchemeProvider() {
|
|
57
|
+
return _httpAuthSchemeProvider;
|
|
58
|
+
},
|
|
59
|
+
setCredentials(credentials) {
|
|
60
|
+
_credentials = credentials;
|
|
61
|
+
},
|
|
62
|
+
credentials() {
|
|
63
|
+
return _credentials;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
68
|
+
return {
|
|
69
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
70
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
71
|
+
credentials: config.credentials(),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
110
74
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
75
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
76
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
77
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
78
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
79
|
+
};
|
|
115
80
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
81
|
+
class CloudControlClient extends smithyClient.Client {
|
|
82
|
+
config;
|
|
83
|
+
constructor(...[configuration]) {
|
|
84
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
85
|
+
super(_config_0);
|
|
86
|
+
this.initConfig = _config_0;
|
|
87
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
88
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
89
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
90
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
91
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
92
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
93
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
94
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
95
|
+
this.config = _config_8;
|
|
96
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
103
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultCloudControlHttpAuthSchemeParametersProvider,
|
|
104
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
105
|
+
"aws.auth#sigv4": config.credentials,
|
|
106
|
+
}),
|
|
107
|
+
}));
|
|
108
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
109
|
+
}
|
|
110
|
+
destroy() {
|
|
111
|
+
super.destroy();
|
|
144
112
|
}
|
|
145
|
-
|
|
146
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
147
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
148
|
-
return {
|
|
149
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
150
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
151
|
-
credentials: config.credentials()
|
|
152
|
-
};
|
|
153
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
113
|
+
}
|
|
154
114
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
162
|
-
);
|
|
163
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
164
|
-
return Object.assign(
|
|
165
|
-
runtimeConfig,
|
|
166
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
167
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
168
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
169
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
170
|
-
);
|
|
171
|
-
}, "resolveRuntimeExtensions");
|
|
115
|
+
class CloudControlServiceException extends smithyClient.ServiceException {
|
|
116
|
+
constructor(options) {
|
|
117
|
+
super(options);
|
|
118
|
+
Object.setPrototypeOf(this, CloudControlServiceException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
172
121
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
205
|
-
"aws.auth#sigv4": config.credentials
|
|
206
|
-
}), "identityProviderConfigProvider")
|
|
207
|
-
})
|
|
208
|
-
);
|
|
209
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
213
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
214
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
215
|
-
*/
|
|
216
|
-
destroy() {
|
|
217
|
-
super.destroy();
|
|
218
|
-
}
|
|
122
|
+
class AlreadyExistsException extends CloudControlServiceException {
|
|
123
|
+
name = "AlreadyExistsException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
Message;
|
|
126
|
+
constructor(opts) {
|
|
127
|
+
super({
|
|
128
|
+
name: "AlreadyExistsException",
|
|
129
|
+
$fault: "client",
|
|
130
|
+
...opts,
|
|
131
|
+
});
|
|
132
|
+
Object.setPrototypeOf(this, AlreadyExistsException.prototype);
|
|
133
|
+
this.Message = opts.Message;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
const HandlerErrorCode = {
|
|
137
|
+
ACCESS_DENIED: "AccessDenied",
|
|
138
|
+
ALREADY_EXISTS: "AlreadyExists",
|
|
139
|
+
GENERAL_SERVICE_EXCEPTION: "GeneralServiceException",
|
|
140
|
+
INTERNAL_FAILURE: "InternalFailure",
|
|
141
|
+
INVALID_CREDENTIALS: "InvalidCredentials",
|
|
142
|
+
INVALID_REQUEST: "InvalidRequest",
|
|
143
|
+
NETWORK_FAILURE: "NetworkFailure",
|
|
144
|
+
NOT_FOUND: "NotFound",
|
|
145
|
+
NOT_STABILIZED: "NotStabilized",
|
|
146
|
+
NOT_UPDATABLE: "NotUpdatable",
|
|
147
|
+
RESOURCE_CONFLICT: "ResourceConflict",
|
|
148
|
+
SERVICE_INTERNAL_ERROR: "ServiceInternalError",
|
|
149
|
+
SERVICE_LIMIT_EXCEEDED: "ServiceLimitExceeded",
|
|
150
|
+
SERVICE_TIMEOUT: "ServiceTimeout",
|
|
151
|
+
THROTTLING: "Throttling",
|
|
152
|
+
UNAUTHORIZED_TAGGING_OPERATION: "UnauthorizedTaggingOperation",
|
|
219
153
|
};
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
// src/models/CloudControlServiceException.ts
|
|
233
|
-
|
|
234
|
-
var CloudControlServiceException = class _CloudControlServiceException extends import_smithy_client.ServiceException {
|
|
235
|
-
static {
|
|
236
|
-
__name(this, "CloudControlServiceException");
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* @internal
|
|
240
|
-
*/
|
|
241
|
-
constructor(options) {
|
|
242
|
-
super(options);
|
|
243
|
-
Object.setPrototypeOf(this, _CloudControlServiceException.prototype);
|
|
244
|
-
}
|
|
154
|
+
const Operation = {
|
|
155
|
+
CREATE: "CREATE",
|
|
156
|
+
DELETE: "DELETE",
|
|
157
|
+
UPDATE: "UPDATE",
|
|
158
|
+
};
|
|
159
|
+
const OperationStatus = {
|
|
160
|
+
CANCEL_COMPLETE: "CANCEL_COMPLETE",
|
|
161
|
+
CANCEL_IN_PROGRESS: "CANCEL_IN_PROGRESS",
|
|
162
|
+
FAILED: "FAILED",
|
|
163
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
164
|
+
PENDING: "PENDING",
|
|
165
|
+
SUCCESS: "SUCCESS",
|
|
245
166
|
};
|
|
167
|
+
class ConcurrentModificationException extends CloudControlServiceException {
|
|
168
|
+
name = "ConcurrentModificationException";
|
|
169
|
+
$fault = "server";
|
|
170
|
+
Message;
|
|
171
|
+
constructor(opts) {
|
|
172
|
+
super({
|
|
173
|
+
name: "ConcurrentModificationException",
|
|
174
|
+
$fault: "server",
|
|
175
|
+
...opts,
|
|
176
|
+
});
|
|
177
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
178
|
+
this.Message = opts.Message;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
class RequestTokenNotFoundException extends CloudControlServiceException {
|
|
182
|
+
name = "RequestTokenNotFoundException";
|
|
183
|
+
$fault = "client";
|
|
184
|
+
Message;
|
|
185
|
+
constructor(opts) {
|
|
186
|
+
super({
|
|
187
|
+
name: "RequestTokenNotFoundException",
|
|
188
|
+
$fault: "client",
|
|
189
|
+
...opts,
|
|
190
|
+
});
|
|
191
|
+
Object.setPrototypeOf(this, RequestTokenNotFoundException.prototype);
|
|
192
|
+
this.Message = opts.Message;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
class ClientTokenConflictException extends CloudControlServiceException {
|
|
196
|
+
name = "ClientTokenConflictException";
|
|
197
|
+
$fault = "client";
|
|
198
|
+
Message;
|
|
199
|
+
constructor(opts) {
|
|
200
|
+
super({
|
|
201
|
+
name: "ClientTokenConflictException",
|
|
202
|
+
$fault: "client",
|
|
203
|
+
...opts,
|
|
204
|
+
});
|
|
205
|
+
Object.setPrototypeOf(this, ClientTokenConflictException.prototype);
|
|
206
|
+
this.Message = opts.Message;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
class ConcurrentOperationException extends CloudControlServiceException {
|
|
210
|
+
name = "ConcurrentOperationException";
|
|
211
|
+
$fault = "client";
|
|
212
|
+
Message;
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "ConcurrentOperationException",
|
|
216
|
+
$fault: "client",
|
|
217
|
+
...opts,
|
|
218
|
+
});
|
|
219
|
+
Object.setPrototypeOf(this, ConcurrentOperationException.prototype);
|
|
220
|
+
this.Message = opts.Message;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
class GeneralServiceException extends CloudControlServiceException {
|
|
224
|
+
name = "GeneralServiceException";
|
|
225
|
+
$fault = "client";
|
|
226
|
+
Message;
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "GeneralServiceException",
|
|
230
|
+
$fault: "client",
|
|
231
|
+
...opts,
|
|
232
|
+
});
|
|
233
|
+
Object.setPrototypeOf(this, GeneralServiceException.prototype);
|
|
234
|
+
this.Message = opts.Message;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
class HandlerFailureException extends CloudControlServiceException {
|
|
238
|
+
name = "HandlerFailureException";
|
|
239
|
+
$fault = "server";
|
|
240
|
+
Message;
|
|
241
|
+
constructor(opts) {
|
|
242
|
+
super({
|
|
243
|
+
name: "HandlerFailureException",
|
|
244
|
+
$fault: "server",
|
|
245
|
+
...opts,
|
|
246
|
+
});
|
|
247
|
+
Object.setPrototypeOf(this, HandlerFailureException.prototype);
|
|
248
|
+
this.Message = opts.Message;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
class HandlerInternalFailureException extends CloudControlServiceException {
|
|
252
|
+
name = "HandlerInternalFailureException";
|
|
253
|
+
$fault = "server";
|
|
254
|
+
Message;
|
|
255
|
+
constructor(opts) {
|
|
256
|
+
super({
|
|
257
|
+
name: "HandlerInternalFailureException",
|
|
258
|
+
$fault: "server",
|
|
259
|
+
...opts,
|
|
260
|
+
});
|
|
261
|
+
Object.setPrototypeOf(this, HandlerInternalFailureException.prototype);
|
|
262
|
+
this.Message = opts.Message;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
class InvalidCredentialsException extends CloudControlServiceException {
|
|
266
|
+
name = "InvalidCredentialsException";
|
|
267
|
+
$fault = "client";
|
|
268
|
+
Message;
|
|
269
|
+
constructor(opts) {
|
|
270
|
+
super({
|
|
271
|
+
name: "InvalidCredentialsException",
|
|
272
|
+
$fault: "client",
|
|
273
|
+
...opts,
|
|
274
|
+
});
|
|
275
|
+
Object.setPrototypeOf(this, InvalidCredentialsException.prototype);
|
|
276
|
+
this.Message = opts.Message;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
class InvalidRequestException extends CloudControlServiceException {
|
|
280
|
+
name = "InvalidRequestException";
|
|
281
|
+
$fault = "client";
|
|
282
|
+
Message;
|
|
283
|
+
constructor(opts) {
|
|
284
|
+
super({
|
|
285
|
+
name: "InvalidRequestException",
|
|
286
|
+
$fault: "client",
|
|
287
|
+
...opts,
|
|
288
|
+
});
|
|
289
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
290
|
+
this.Message = opts.Message;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
class NetworkFailureException extends CloudControlServiceException {
|
|
294
|
+
name = "NetworkFailureException";
|
|
295
|
+
$fault = "server";
|
|
296
|
+
Message;
|
|
297
|
+
constructor(opts) {
|
|
298
|
+
super({
|
|
299
|
+
name: "NetworkFailureException",
|
|
300
|
+
$fault: "server",
|
|
301
|
+
...opts,
|
|
302
|
+
});
|
|
303
|
+
Object.setPrototypeOf(this, NetworkFailureException.prototype);
|
|
304
|
+
this.Message = opts.Message;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
class NotStabilizedException extends CloudControlServiceException {
|
|
308
|
+
name = "NotStabilizedException";
|
|
309
|
+
$fault = "client";
|
|
310
|
+
Message;
|
|
311
|
+
constructor(opts) {
|
|
312
|
+
super({
|
|
313
|
+
name: "NotStabilizedException",
|
|
314
|
+
$fault: "client",
|
|
315
|
+
...opts,
|
|
316
|
+
});
|
|
317
|
+
Object.setPrototypeOf(this, NotStabilizedException.prototype);
|
|
318
|
+
this.Message = opts.Message;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
class NotUpdatableException extends CloudControlServiceException {
|
|
322
|
+
name = "NotUpdatableException";
|
|
323
|
+
$fault = "client";
|
|
324
|
+
Message;
|
|
325
|
+
constructor(opts) {
|
|
326
|
+
super({
|
|
327
|
+
name: "NotUpdatableException",
|
|
328
|
+
$fault: "client",
|
|
329
|
+
...opts,
|
|
330
|
+
});
|
|
331
|
+
Object.setPrototypeOf(this, NotUpdatableException.prototype);
|
|
332
|
+
this.Message = opts.Message;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
class PrivateTypeException extends CloudControlServiceException {
|
|
336
|
+
name = "PrivateTypeException";
|
|
337
|
+
$fault = "client";
|
|
338
|
+
Message;
|
|
339
|
+
constructor(opts) {
|
|
340
|
+
super({
|
|
341
|
+
name: "PrivateTypeException",
|
|
342
|
+
$fault: "client",
|
|
343
|
+
...opts,
|
|
344
|
+
});
|
|
345
|
+
Object.setPrototypeOf(this, PrivateTypeException.prototype);
|
|
346
|
+
this.Message = opts.Message;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
class ResourceConflictException extends CloudControlServiceException {
|
|
350
|
+
name = "ResourceConflictException";
|
|
351
|
+
$fault = "client";
|
|
352
|
+
Message;
|
|
353
|
+
constructor(opts) {
|
|
354
|
+
super({
|
|
355
|
+
name: "ResourceConflictException",
|
|
356
|
+
$fault: "client",
|
|
357
|
+
...opts,
|
|
358
|
+
});
|
|
359
|
+
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
360
|
+
this.Message = opts.Message;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
class ResourceNotFoundException extends CloudControlServiceException {
|
|
364
|
+
name = "ResourceNotFoundException";
|
|
365
|
+
$fault = "client";
|
|
366
|
+
Message;
|
|
367
|
+
constructor(opts) {
|
|
368
|
+
super({
|
|
369
|
+
name: "ResourceNotFoundException",
|
|
370
|
+
$fault: "client",
|
|
371
|
+
...opts,
|
|
372
|
+
});
|
|
373
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
374
|
+
this.Message = opts.Message;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
class ServiceInternalErrorException extends CloudControlServiceException {
|
|
378
|
+
name = "ServiceInternalErrorException";
|
|
379
|
+
$fault = "server";
|
|
380
|
+
Message;
|
|
381
|
+
constructor(opts) {
|
|
382
|
+
super({
|
|
383
|
+
name: "ServiceInternalErrorException",
|
|
384
|
+
$fault: "server",
|
|
385
|
+
...opts,
|
|
386
|
+
});
|
|
387
|
+
Object.setPrototypeOf(this, ServiceInternalErrorException.prototype);
|
|
388
|
+
this.Message = opts.Message;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
class ServiceLimitExceededException extends CloudControlServiceException {
|
|
392
|
+
name = "ServiceLimitExceededException";
|
|
393
|
+
$fault = "client";
|
|
394
|
+
Message;
|
|
395
|
+
constructor(opts) {
|
|
396
|
+
super({
|
|
397
|
+
name: "ServiceLimitExceededException",
|
|
398
|
+
$fault: "client",
|
|
399
|
+
...opts,
|
|
400
|
+
});
|
|
401
|
+
Object.setPrototypeOf(this, ServiceLimitExceededException.prototype);
|
|
402
|
+
this.Message = opts.Message;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
class ThrottlingException extends CloudControlServiceException {
|
|
406
|
+
name = "ThrottlingException";
|
|
407
|
+
$fault = "client";
|
|
408
|
+
Message;
|
|
409
|
+
constructor(opts) {
|
|
410
|
+
super({
|
|
411
|
+
name: "ThrottlingException",
|
|
412
|
+
$fault: "client",
|
|
413
|
+
...opts,
|
|
414
|
+
});
|
|
415
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
416
|
+
this.Message = opts.Message;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
class TypeNotFoundException extends CloudControlServiceException {
|
|
420
|
+
name = "TypeNotFoundException";
|
|
421
|
+
$fault = "client";
|
|
422
|
+
Message;
|
|
423
|
+
constructor(opts) {
|
|
424
|
+
super({
|
|
425
|
+
name: "TypeNotFoundException",
|
|
426
|
+
$fault: "client",
|
|
427
|
+
...opts,
|
|
428
|
+
});
|
|
429
|
+
Object.setPrototypeOf(this, TypeNotFoundException.prototype);
|
|
430
|
+
this.Message = opts.Message;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
class UnsupportedActionException extends CloudControlServiceException {
|
|
434
|
+
name = "UnsupportedActionException";
|
|
435
|
+
$fault = "client";
|
|
436
|
+
Message;
|
|
437
|
+
constructor(opts) {
|
|
438
|
+
super({
|
|
439
|
+
name: "UnsupportedActionException",
|
|
440
|
+
$fault: "client",
|
|
441
|
+
...opts,
|
|
442
|
+
});
|
|
443
|
+
Object.setPrototypeOf(this, UnsupportedActionException.prototype);
|
|
444
|
+
this.Message = opts.Message;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
const ProgressEventFilterSensitiveLog = (obj) => ({
|
|
448
|
+
...obj,
|
|
449
|
+
...(obj.ResourceModel && { ResourceModel: smithyClient.SENSITIVE_STRING }),
|
|
450
|
+
});
|
|
451
|
+
const CancelResourceRequestOutputFilterSensitiveLog = (obj) => ({
|
|
452
|
+
...obj,
|
|
453
|
+
...(obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }),
|
|
454
|
+
});
|
|
455
|
+
const CreateResourceInputFilterSensitiveLog = (obj) => ({
|
|
456
|
+
...obj,
|
|
457
|
+
...(obj.DesiredState && { DesiredState: smithyClient.SENSITIVE_STRING }),
|
|
458
|
+
});
|
|
459
|
+
const CreateResourceOutputFilterSensitiveLog = (obj) => ({
|
|
460
|
+
...obj,
|
|
461
|
+
...(obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }),
|
|
462
|
+
});
|
|
463
|
+
const DeleteResourceOutputFilterSensitiveLog = (obj) => ({
|
|
464
|
+
...obj,
|
|
465
|
+
...(obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }),
|
|
466
|
+
});
|
|
467
|
+
const ResourceDescriptionFilterSensitiveLog = (obj) => ({
|
|
468
|
+
...obj,
|
|
469
|
+
...(obj.Properties && { Properties: smithyClient.SENSITIVE_STRING }),
|
|
470
|
+
});
|
|
471
|
+
const GetResourceOutputFilterSensitiveLog = (obj) => ({
|
|
472
|
+
...obj,
|
|
473
|
+
...(obj.ResourceDescription && {
|
|
474
|
+
ResourceDescription: ResourceDescriptionFilterSensitiveLog(obj.ResourceDescription),
|
|
475
|
+
}),
|
|
476
|
+
});
|
|
477
|
+
const GetResourceRequestStatusOutputFilterSensitiveLog = (obj) => ({
|
|
478
|
+
...obj,
|
|
479
|
+
...(obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }),
|
|
480
|
+
});
|
|
481
|
+
const ListResourceRequestsOutputFilterSensitiveLog = (obj) => ({
|
|
482
|
+
...obj,
|
|
483
|
+
...(obj.ResourceRequestStatusSummaries && {
|
|
484
|
+
ResourceRequestStatusSummaries: obj.ResourceRequestStatusSummaries.map((item) => ProgressEventFilterSensitiveLog(item)),
|
|
485
|
+
}),
|
|
486
|
+
});
|
|
487
|
+
const ListResourcesInputFilterSensitiveLog = (obj) => ({
|
|
488
|
+
...obj,
|
|
489
|
+
...(obj.ResourceModel && { ResourceModel: smithyClient.SENSITIVE_STRING }),
|
|
490
|
+
});
|
|
491
|
+
const ListResourcesOutputFilterSensitiveLog = (obj) => ({
|
|
492
|
+
...obj,
|
|
493
|
+
...(obj.ResourceDescriptions && {
|
|
494
|
+
ResourceDescriptions: obj.ResourceDescriptions.map((item) => ResourceDescriptionFilterSensitiveLog(item)),
|
|
495
|
+
}),
|
|
496
|
+
});
|
|
497
|
+
const UpdateResourceInputFilterSensitiveLog = (obj) => ({
|
|
498
|
+
...obj,
|
|
499
|
+
...(obj.PatchDocument && { PatchDocument: smithyClient.SENSITIVE_STRING }),
|
|
500
|
+
});
|
|
501
|
+
const UpdateResourceOutputFilterSensitiveLog = (obj) => ({
|
|
502
|
+
...obj,
|
|
503
|
+
...(obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }),
|
|
504
|
+
});
|
|
246
505
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
506
|
+
const se_CancelResourceRequestCommand = async (input, context) => {
|
|
507
|
+
const headers = sharedHeaders("CancelResourceRequest");
|
|
508
|
+
let body;
|
|
509
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
510
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
511
|
+
};
|
|
512
|
+
const se_CreateResourceCommand = async (input, context) => {
|
|
513
|
+
const headers = sharedHeaders("CreateResource");
|
|
514
|
+
let body;
|
|
515
|
+
body = JSON.stringify(se_CreateResourceInput(input));
|
|
516
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
517
|
+
};
|
|
518
|
+
const se_DeleteResourceCommand = async (input, context) => {
|
|
519
|
+
const headers = sharedHeaders("DeleteResource");
|
|
520
|
+
let body;
|
|
521
|
+
body = JSON.stringify(se_DeleteResourceInput(input));
|
|
522
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
523
|
+
};
|
|
524
|
+
const se_GetResourceCommand = async (input, context) => {
|
|
525
|
+
const headers = sharedHeaders("GetResource");
|
|
526
|
+
let body;
|
|
527
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
528
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
529
|
+
};
|
|
530
|
+
const se_GetResourceRequestStatusCommand = async (input, context) => {
|
|
531
|
+
const headers = sharedHeaders("GetResourceRequestStatus");
|
|
532
|
+
let body;
|
|
533
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
534
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
535
|
+
};
|
|
536
|
+
const se_ListResourceRequestsCommand = async (input, context) => {
|
|
537
|
+
const headers = sharedHeaders("ListResourceRequests");
|
|
538
|
+
let body;
|
|
539
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
540
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
541
|
+
};
|
|
542
|
+
const se_ListResourcesCommand = async (input, context) => {
|
|
543
|
+
const headers = sharedHeaders("ListResources");
|
|
544
|
+
let body;
|
|
545
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
546
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
547
|
+
};
|
|
548
|
+
const se_UpdateResourceCommand = async (input, context) => {
|
|
549
|
+
const headers = sharedHeaders("UpdateResource");
|
|
550
|
+
let body;
|
|
551
|
+
body = JSON.stringify(se_UpdateResourceInput(input));
|
|
552
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
553
|
+
};
|
|
554
|
+
const de_CancelResourceRequestCommand = async (output, context) => {
|
|
555
|
+
if (output.statusCode >= 300) {
|
|
556
|
+
return de_CommandError(output, context);
|
|
557
|
+
}
|
|
558
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
559
|
+
let contents = {};
|
|
560
|
+
contents = de_CancelResourceRequestOutput(data);
|
|
561
|
+
const response = {
|
|
562
|
+
$metadata: deserializeMetadata(output),
|
|
563
|
+
...contents,
|
|
564
|
+
};
|
|
565
|
+
return response;
|
|
566
|
+
};
|
|
567
|
+
const de_CreateResourceCommand = async (output, context) => {
|
|
568
|
+
if (output.statusCode >= 300) {
|
|
569
|
+
return de_CommandError(output, context);
|
|
570
|
+
}
|
|
571
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
572
|
+
let contents = {};
|
|
573
|
+
contents = de_CreateResourceOutput(data);
|
|
574
|
+
const response = {
|
|
575
|
+
$metadata: deserializeMetadata(output),
|
|
576
|
+
...contents,
|
|
577
|
+
};
|
|
578
|
+
return response;
|
|
579
|
+
};
|
|
580
|
+
const de_DeleteResourceCommand = async (output, context) => {
|
|
581
|
+
if (output.statusCode >= 300) {
|
|
582
|
+
return de_CommandError(output, context);
|
|
583
|
+
}
|
|
584
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
585
|
+
let contents = {};
|
|
586
|
+
contents = de_DeleteResourceOutput(data);
|
|
587
|
+
const response = {
|
|
588
|
+
$metadata: deserializeMetadata(output),
|
|
589
|
+
...contents,
|
|
590
|
+
};
|
|
591
|
+
return response;
|
|
592
|
+
};
|
|
593
|
+
const de_GetResourceCommand = async (output, context) => {
|
|
594
|
+
if (output.statusCode >= 300) {
|
|
595
|
+
return de_CommandError(output, context);
|
|
596
|
+
}
|
|
597
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
598
|
+
let contents = {};
|
|
599
|
+
contents = smithyClient._json(data);
|
|
600
|
+
const response = {
|
|
601
|
+
$metadata: deserializeMetadata(output),
|
|
602
|
+
...contents,
|
|
603
|
+
};
|
|
604
|
+
return response;
|
|
605
|
+
};
|
|
606
|
+
const de_GetResourceRequestStatusCommand = async (output, context) => {
|
|
607
|
+
if (output.statusCode >= 300) {
|
|
608
|
+
return de_CommandError(output, context);
|
|
609
|
+
}
|
|
610
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
611
|
+
let contents = {};
|
|
612
|
+
contents = de_GetResourceRequestStatusOutput(data);
|
|
613
|
+
const response = {
|
|
614
|
+
$metadata: deserializeMetadata(output),
|
|
615
|
+
...contents,
|
|
616
|
+
};
|
|
617
|
+
return response;
|
|
618
|
+
};
|
|
619
|
+
const de_ListResourceRequestsCommand = async (output, context) => {
|
|
620
|
+
if (output.statusCode >= 300) {
|
|
621
|
+
return de_CommandError(output, context);
|
|
622
|
+
}
|
|
623
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
624
|
+
let contents = {};
|
|
625
|
+
contents = de_ListResourceRequestsOutput(data);
|
|
626
|
+
const response = {
|
|
627
|
+
$metadata: deserializeMetadata(output),
|
|
628
|
+
...contents,
|
|
629
|
+
};
|
|
630
|
+
return response;
|
|
631
|
+
};
|
|
632
|
+
const de_ListResourcesCommand = async (output, context) => {
|
|
633
|
+
if (output.statusCode >= 300) {
|
|
634
|
+
return de_CommandError(output, context);
|
|
635
|
+
}
|
|
636
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
637
|
+
let contents = {};
|
|
638
|
+
contents = smithyClient._json(data);
|
|
639
|
+
const response = {
|
|
640
|
+
$metadata: deserializeMetadata(output),
|
|
641
|
+
...contents,
|
|
642
|
+
};
|
|
643
|
+
return response;
|
|
644
|
+
};
|
|
645
|
+
const de_UpdateResourceCommand = async (output, context) => {
|
|
646
|
+
if (output.statusCode >= 300) {
|
|
647
|
+
return de_CommandError(output, context);
|
|
648
|
+
}
|
|
649
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
650
|
+
let contents = {};
|
|
651
|
+
contents = de_UpdateResourceOutput(data);
|
|
652
|
+
const response = {
|
|
653
|
+
$metadata: deserializeMetadata(output),
|
|
654
|
+
...contents,
|
|
655
|
+
};
|
|
656
|
+
return response;
|
|
657
|
+
};
|
|
658
|
+
const de_CommandError = async (output, context) => {
|
|
659
|
+
const parsedOutput = {
|
|
660
|
+
...output,
|
|
661
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
662
|
+
};
|
|
663
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
|
+
switch (errorCode) {
|
|
665
|
+
case "ConcurrentModificationException":
|
|
666
|
+
case "com.amazonaws.cloudcontrol#ConcurrentModificationException":
|
|
667
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput);
|
|
668
|
+
case "RequestTokenNotFoundException":
|
|
669
|
+
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
670
|
+
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput);
|
|
671
|
+
case "AlreadyExistsException":
|
|
672
|
+
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
673
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput);
|
|
674
|
+
case "ClientTokenConflictException":
|
|
675
|
+
case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
|
|
676
|
+
throw await de_ClientTokenConflictExceptionRes(parsedOutput);
|
|
677
|
+
case "ConcurrentOperationException":
|
|
678
|
+
case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
|
|
679
|
+
throw await de_ConcurrentOperationExceptionRes(parsedOutput);
|
|
680
|
+
case "GeneralServiceException":
|
|
681
|
+
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
682
|
+
throw await de_GeneralServiceExceptionRes(parsedOutput);
|
|
683
|
+
case "HandlerFailureException":
|
|
684
|
+
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
685
|
+
throw await de_HandlerFailureExceptionRes(parsedOutput);
|
|
686
|
+
case "HandlerInternalFailureException":
|
|
687
|
+
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
688
|
+
throw await de_HandlerInternalFailureExceptionRes(parsedOutput);
|
|
689
|
+
case "InvalidCredentialsException":
|
|
690
|
+
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
691
|
+
throw await de_InvalidCredentialsExceptionRes(parsedOutput);
|
|
692
|
+
case "InvalidRequestException":
|
|
693
|
+
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
694
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
|
695
|
+
case "NetworkFailureException":
|
|
696
|
+
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
697
|
+
throw await de_NetworkFailureExceptionRes(parsedOutput);
|
|
698
|
+
case "NotStabilizedException":
|
|
699
|
+
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
700
|
+
throw await de_NotStabilizedExceptionRes(parsedOutput);
|
|
701
|
+
case "NotUpdatableException":
|
|
702
|
+
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
703
|
+
throw await de_NotUpdatableExceptionRes(parsedOutput);
|
|
704
|
+
case "PrivateTypeException":
|
|
705
|
+
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
706
|
+
throw await de_PrivateTypeExceptionRes(parsedOutput);
|
|
707
|
+
case "ResourceConflictException":
|
|
708
|
+
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
709
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput);
|
|
710
|
+
case "ResourceNotFoundException":
|
|
711
|
+
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
712
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
713
|
+
case "ServiceInternalErrorException":
|
|
714
|
+
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
715
|
+
throw await de_ServiceInternalErrorExceptionRes(parsedOutput);
|
|
716
|
+
case "ServiceLimitExceededException":
|
|
717
|
+
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
718
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput);
|
|
719
|
+
case "ThrottlingException":
|
|
720
|
+
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
721
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
722
|
+
case "TypeNotFoundException":
|
|
723
|
+
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
724
|
+
throw await de_TypeNotFoundExceptionRes(parsedOutput);
|
|
725
|
+
case "UnsupportedActionException":
|
|
726
|
+
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
727
|
+
throw await de_UnsupportedActionExceptionRes(parsedOutput);
|
|
728
|
+
default:
|
|
729
|
+
const parsedBody = parsedOutput.body;
|
|
730
|
+
return throwDefaultError({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
errorCode,
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
};
|
|
737
|
+
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
738
|
+
const body = parsedOutput.body;
|
|
739
|
+
const deserialized = smithyClient._json(body);
|
|
740
|
+
const exception = new AlreadyExistsException({
|
|
741
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
742
|
+
...deserialized,
|
|
263
743
|
});
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
INTERNAL_FAILURE: "InternalFailure",
|
|
273
|
-
INVALID_CREDENTIALS: "InvalidCredentials",
|
|
274
|
-
INVALID_REQUEST: "InvalidRequest",
|
|
275
|
-
NETWORK_FAILURE: "NetworkFailure",
|
|
276
|
-
NOT_FOUND: "NotFound",
|
|
277
|
-
NOT_STABILIZED: "NotStabilized",
|
|
278
|
-
NOT_UPDATABLE: "NotUpdatable",
|
|
279
|
-
RESOURCE_CONFLICT: "ResourceConflict",
|
|
280
|
-
SERVICE_INTERNAL_ERROR: "ServiceInternalError",
|
|
281
|
-
SERVICE_LIMIT_EXCEEDED: "ServiceLimitExceeded",
|
|
282
|
-
SERVICE_TIMEOUT: "ServiceTimeout",
|
|
283
|
-
THROTTLING: "Throttling",
|
|
284
|
-
UNAUTHORIZED_TAGGING_OPERATION: "UnauthorizedTaggingOperation"
|
|
285
|
-
};
|
|
286
|
-
var Operation = {
|
|
287
|
-
CREATE: "CREATE",
|
|
288
|
-
DELETE: "DELETE",
|
|
289
|
-
UPDATE: "UPDATE"
|
|
290
|
-
};
|
|
291
|
-
var OperationStatus = {
|
|
292
|
-
CANCEL_COMPLETE: "CANCEL_COMPLETE",
|
|
293
|
-
CANCEL_IN_PROGRESS: "CANCEL_IN_PROGRESS",
|
|
294
|
-
FAILED: "FAILED",
|
|
295
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
296
|
-
PENDING: "PENDING",
|
|
297
|
-
SUCCESS: "SUCCESS"
|
|
298
|
-
};
|
|
299
|
-
var ConcurrentModificationException = class _ConcurrentModificationException extends CloudControlServiceException {
|
|
300
|
-
static {
|
|
301
|
-
__name(this, "ConcurrentModificationException");
|
|
302
|
-
}
|
|
303
|
-
name = "ConcurrentModificationException";
|
|
304
|
-
$fault = "server";
|
|
305
|
-
Message;
|
|
306
|
-
/**
|
|
307
|
-
* @internal
|
|
308
|
-
*/
|
|
309
|
-
constructor(opts) {
|
|
310
|
-
super({
|
|
311
|
-
name: "ConcurrentModificationException",
|
|
312
|
-
$fault: "server",
|
|
313
|
-
...opts
|
|
744
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
745
|
+
};
|
|
746
|
+
const de_ClientTokenConflictExceptionRes = async (parsedOutput, context) => {
|
|
747
|
+
const body = parsedOutput.body;
|
|
748
|
+
const deserialized = smithyClient._json(body);
|
|
749
|
+
const exception = new ClientTokenConflictException({
|
|
750
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
751
|
+
...deserialized,
|
|
314
752
|
});
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
name = "RequestTokenNotFoundException";
|
|
324
|
-
$fault = "client";
|
|
325
|
-
Message;
|
|
326
|
-
/**
|
|
327
|
-
* @internal
|
|
328
|
-
*/
|
|
329
|
-
constructor(opts) {
|
|
330
|
-
super({
|
|
331
|
-
name: "RequestTokenNotFoundException",
|
|
332
|
-
$fault: "client",
|
|
333
|
-
...opts
|
|
753
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
754
|
+
};
|
|
755
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
756
|
+
const body = parsedOutput.body;
|
|
757
|
+
const deserialized = smithyClient._json(body);
|
|
758
|
+
const exception = new ConcurrentModificationException({
|
|
759
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
760
|
+
...deserialized,
|
|
334
761
|
});
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
name = "ClientTokenConflictException";
|
|
344
|
-
$fault = "client";
|
|
345
|
-
Message;
|
|
346
|
-
/**
|
|
347
|
-
* @internal
|
|
348
|
-
*/
|
|
349
|
-
constructor(opts) {
|
|
350
|
-
super({
|
|
351
|
-
name: "ClientTokenConflictException",
|
|
352
|
-
$fault: "client",
|
|
353
|
-
...opts
|
|
762
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
763
|
+
};
|
|
764
|
+
const de_ConcurrentOperationExceptionRes = async (parsedOutput, context) => {
|
|
765
|
+
const body = parsedOutput.body;
|
|
766
|
+
const deserialized = smithyClient._json(body);
|
|
767
|
+
const exception = new ConcurrentOperationException({
|
|
768
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
769
|
+
...deserialized,
|
|
354
770
|
});
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
name = "ConcurrentOperationException";
|
|
364
|
-
$fault = "client";
|
|
365
|
-
Message;
|
|
366
|
-
/**
|
|
367
|
-
* @internal
|
|
368
|
-
*/
|
|
369
|
-
constructor(opts) {
|
|
370
|
-
super({
|
|
371
|
-
name: "ConcurrentOperationException",
|
|
372
|
-
$fault: "client",
|
|
373
|
-
...opts
|
|
771
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
772
|
+
};
|
|
773
|
+
const de_GeneralServiceExceptionRes = async (parsedOutput, context) => {
|
|
774
|
+
const body = parsedOutput.body;
|
|
775
|
+
const deserialized = smithyClient._json(body);
|
|
776
|
+
const exception = new GeneralServiceException({
|
|
777
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
778
|
+
...deserialized,
|
|
374
779
|
});
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
name = "GeneralServiceException";
|
|
384
|
-
$fault = "client";
|
|
385
|
-
Message;
|
|
386
|
-
/**
|
|
387
|
-
* @internal
|
|
388
|
-
*/
|
|
389
|
-
constructor(opts) {
|
|
390
|
-
super({
|
|
391
|
-
name: "GeneralServiceException",
|
|
392
|
-
$fault: "client",
|
|
393
|
-
...opts
|
|
780
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
781
|
+
};
|
|
782
|
+
const de_HandlerFailureExceptionRes = async (parsedOutput, context) => {
|
|
783
|
+
const body = parsedOutput.body;
|
|
784
|
+
const deserialized = smithyClient._json(body);
|
|
785
|
+
const exception = new HandlerFailureException({
|
|
786
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
787
|
+
...deserialized,
|
|
394
788
|
});
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
name = "HandlerFailureException";
|
|
404
|
-
$fault = "server";
|
|
405
|
-
Message;
|
|
406
|
-
/**
|
|
407
|
-
* @internal
|
|
408
|
-
*/
|
|
409
|
-
constructor(opts) {
|
|
410
|
-
super({
|
|
411
|
-
name: "HandlerFailureException",
|
|
412
|
-
$fault: "server",
|
|
413
|
-
...opts
|
|
789
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
790
|
+
};
|
|
791
|
+
const de_HandlerInternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
792
|
+
const body = parsedOutput.body;
|
|
793
|
+
const deserialized = smithyClient._json(body);
|
|
794
|
+
const exception = new HandlerInternalFailureException({
|
|
795
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
796
|
+
...deserialized,
|
|
414
797
|
});
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
name = "HandlerInternalFailureException";
|
|
424
|
-
$fault = "server";
|
|
425
|
-
Message;
|
|
426
|
-
/**
|
|
427
|
-
* @internal
|
|
428
|
-
*/
|
|
429
|
-
constructor(opts) {
|
|
430
|
-
super({
|
|
431
|
-
name: "HandlerInternalFailureException",
|
|
432
|
-
$fault: "server",
|
|
433
|
-
...opts
|
|
798
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
799
|
+
};
|
|
800
|
+
const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
|
|
801
|
+
const body = parsedOutput.body;
|
|
802
|
+
const deserialized = smithyClient._json(body);
|
|
803
|
+
const exception = new InvalidCredentialsException({
|
|
804
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
805
|
+
...deserialized,
|
|
434
806
|
});
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
name = "InvalidCredentialsException";
|
|
444
|
-
$fault = "client";
|
|
445
|
-
Message;
|
|
446
|
-
/**
|
|
447
|
-
* @internal
|
|
448
|
-
*/
|
|
449
|
-
constructor(opts) {
|
|
450
|
-
super({
|
|
451
|
-
name: "InvalidCredentialsException",
|
|
452
|
-
$fault: "client",
|
|
453
|
-
...opts
|
|
807
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
808
|
+
};
|
|
809
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
810
|
+
const body = parsedOutput.body;
|
|
811
|
+
const deserialized = smithyClient._json(body);
|
|
812
|
+
const exception = new InvalidRequestException({
|
|
813
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
814
|
+
...deserialized,
|
|
454
815
|
});
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
name = "InvalidRequestException";
|
|
464
|
-
$fault = "client";
|
|
465
|
-
Message;
|
|
466
|
-
/**
|
|
467
|
-
* @internal
|
|
468
|
-
*/
|
|
469
|
-
constructor(opts) {
|
|
470
|
-
super({
|
|
471
|
-
name: "InvalidRequestException",
|
|
472
|
-
$fault: "client",
|
|
473
|
-
...opts
|
|
816
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
817
|
+
};
|
|
818
|
+
const de_NetworkFailureExceptionRes = async (parsedOutput, context) => {
|
|
819
|
+
const body = parsedOutput.body;
|
|
820
|
+
const deserialized = smithyClient._json(body);
|
|
821
|
+
const exception = new NetworkFailureException({
|
|
822
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
823
|
+
...deserialized,
|
|
474
824
|
});
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
name = "NetworkFailureException";
|
|
484
|
-
$fault = "server";
|
|
485
|
-
Message;
|
|
486
|
-
/**
|
|
487
|
-
* @internal
|
|
488
|
-
*/
|
|
489
|
-
constructor(opts) {
|
|
490
|
-
super({
|
|
491
|
-
name: "NetworkFailureException",
|
|
492
|
-
$fault: "server",
|
|
493
|
-
...opts
|
|
825
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
826
|
+
};
|
|
827
|
+
const de_NotStabilizedExceptionRes = async (parsedOutput, context) => {
|
|
828
|
+
const body = parsedOutput.body;
|
|
829
|
+
const deserialized = smithyClient._json(body);
|
|
830
|
+
const exception = new NotStabilizedException({
|
|
831
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
832
|
+
...deserialized,
|
|
494
833
|
});
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
name = "NotStabilizedException";
|
|
504
|
-
$fault = "client";
|
|
505
|
-
Message;
|
|
506
|
-
/**
|
|
507
|
-
* @internal
|
|
508
|
-
*/
|
|
509
|
-
constructor(opts) {
|
|
510
|
-
super({
|
|
511
|
-
name: "NotStabilizedException",
|
|
512
|
-
$fault: "client",
|
|
513
|
-
...opts
|
|
834
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
835
|
+
};
|
|
836
|
+
const de_NotUpdatableExceptionRes = async (parsedOutput, context) => {
|
|
837
|
+
const body = parsedOutput.body;
|
|
838
|
+
const deserialized = smithyClient._json(body);
|
|
839
|
+
const exception = new NotUpdatableException({
|
|
840
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
841
|
+
...deserialized,
|
|
514
842
|
});
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
name = "NotUpdatableException";
|
|
524
|
-
$fault = "client";
|
|
525
|
-
Message;
|
|
526
|
-
/**
|
|
527
|
-
* @internal
|
|
528
|
-
*/
|
|
529
|
-
constructor(opts) {
|
|
530
|
-
super({
|
|
531
|
-
name: "NotUpdatableException",
|
|
532
|
-
$fault: "client",
|
|
533
|
-
...opts
|
|
843
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
844
|
+
};
|
|
845
|
+
const de_PrivateTypeExceptionRes = async (parsedOutput, context) => {
|
|
846
|
+
const body = parsedOutput.body;
|
|
847
|
+
const deserialized = smithyClient._json(body);
|
|
848
|
+
const exception = new PrivateTypeException({
|
|
849
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
850
|
+
...deserialized,
|
|
534
851
|
});
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
name = "PrivateTypeException";
|
|
544
|
-
$fault = "client";
|
|
545
|
-
Message;
|
|
546
|
-
/**
|
|
547
|
-
* @internal
|
|
548
|
-
*/
|
|
549
|
-
constructor(opts) {
|
|
550
|
-
super({
|
|
551
|
-
name: "PrivateTypeException",
|
|
552
|
-
$fault: "client",
|
|
553
|
-
...opts
|
|
852
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
853
|
+
};
|
|
854
|
+
const de_RequestTokenNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
855
|
+
const body = parsedOutput.body;
|
|
856
|
+
const deserialized = smithyClient._json(body);
|
|
857
|
+
const exception = new RequestTokenNotFoundException({
|
|
858
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
859
|
+
...deserialized,
|
|
554
860
|
});
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
name = "ResourceConflictException";
|
|
564
|
-
$fault = "client";
|
|
565
|
-
Message;
|
|
566
|
-
/**
|
|
567
|
-
* @internal
|
|
568
|
-
*/
|
|
569
|
-
constructor(opts) {
|
|
570
|
-
super({
|
|
571
|
-
name: "ResourceConflictException",
|
|
572
|
-
$fault: "client",
|
|
573
|
-
...opts
|
|
861
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
862
|
+
};
|
|
863
|
+
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
864
|
+
const body = parsedOutput.body;
|
|
865
|
+
const deserialized = smithyClient._json(body);
|
|
866
|
+
const exception = new ResourceConflictException({
|
|
867
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
868
|
+
...deserialized,
|
|
574
869
|
});
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
name = "ResourceNotFoundException";
|
|
584
|
-
$fault = "client";
|
|
585
|
-
Message;
|
|
586
|
-
/**
|
|
587
|
-
* @internal
|
|
588
|
-
*/
|
|
589
|
-
constructor(opts) {
|
|
590
|
-
super({
|
|
591
|
-
name: "ResourceNotFoundException",
|
|
592
|
-
$fault: "client",
|
|
593
|
-
...opts
|
|
870
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
871
|
+
};
|
|
872
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
873
|
+
const body = parsedOutput.body;
|
|
874
|
+
const deserialized = smithyClient._json(body);
|
|
875
|
+
const exception = new ResourceNotFoundException({
|
|
876
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
877
|
+
...deserialized,
|
|
594
878
|
});
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
name = "ServiceInternalErrorException";
|
|
604
|
-
$fault = "server";
|
|
605
|
-
Message;
|
|
606
|
-
/**
|
|
607
|
-
* @internal
|
|
608
|
-
*/
|
|
609
|
-
constructor(opts) {
|
|
610
|
-
super({
|
|
611
|
-
name: "ServiceInternalErrorException",
|
|
612
|
-
$fault: "server",
|
|
613
|
-
...opts
|
|
879
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
880
|
+
};
|
|
881
|
+
const de_ServiceInternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
882
|
+
const body = parsedOutput.body;
|
|
883
|
+
const deserialized = smithyClient._json(body);
|
|
884
|
+
const exception = new ServiceInternalErrorException({
|
|
885
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
886
|
+
...deserialized,
|
|
614
887
|
});
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
name = "ServiceLimitExceededException";
|
|
624
|
-
$fault = "client";
|
|
625
|
-
Message;
|
|
626
|
-
/**
|
|
627
|
-
* @internal
|
|
628
|
-
*/
|
|
629
|
-
constructor(opts) {
|
|
630
|
-
super({
|
|
631
|
-
name: "ServiceLimitExceededException",
|
|
632
|
-
$fault: "client",
|
|
633
|
-
...opts
|
|
888
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
889
|
+
};
|
|
890
|
+
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
891
|
+
const body = parsedOutput.body;
|
|
892
|
+
const deserialized = smithyClient._json(body);
|
|
893
|
+
const exception = new ServiceLimitExceededException({
|
|
894
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
895
|
+
...deserialized,
|
|
634
896
|
});
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
name = "ThrottlingException";
|
|
644
|
-
$fault = "client";
|
|
645
|
-
Message;
|
|
646
|
-
/**
|
|
647
|
-
* @internal
|
|
648
|
-
*/
|
|
649
|
-
constructor(opts) {
|
|
650
|
-
super({
|
|
651
|
-
name: "ThrottlingException",
|
|
652
|
-
$fault: "client",
|
|
653
|
-
...opts
|
|
897
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
898
|
+
};
|
|
899
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
900
|
+
const body = parsedOutput.body;
|
|
901
|
+
const deserialized = smithyClient._json(body);
|
|
902
|
+
const exception = new ThrottlingException({
|
|
903
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
904
|
+
...deserialized,
|
|
654
905
|
});
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
name = "TypeNotFoundException";
|
|
664
|
-
$fault = "client";
|
|
665
|
-
Message;
|
|
666
|
-
/**
|
|
667
|
-
* @internal
|
|
668
|
-
*/
|
|
669
|
-
constructor(opts) {
|
|
670
|
-
super({
|
|
671
|
-
name: "TypeNotFoundException",
|
|
672
|
-
$fault: "client",
|
|
673
|
-
...opts
|
|
906
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
907
|
+
};
|
|
908
|
+
const de_TypeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
909
|
+
const body = parsedOutput.body;
|
|
910
|
+
const deserialized = smithyClient._json(body);
|
|
911
|
+
const exception = new TypeNotFoundException({
|
|
912
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
913
|
+
...deserialized,
|
|
674
914
|
});
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
name = "UnsupportedActionException";
|
|
684
|
-
$fault = "client";
|
|
685
|
-
Message;
|
|
686
|
-
/**
|
|
687
|
-
* @internal
|
|
688
|
-
*/
|
|
689
|
-
constructor(opts) {
|
|
690
|
-
super({
|
|
691
|
-
name: "UnsupportedActionException",
|
|
692
|
-
$fault: "client",
|
|
693
|
-
...opts
|
|
915
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
916
|
+
};
|
|
917
|
+
const de_UnsupportedActionExceptionRes = async (parsedOutput, context) => {
|
|
918
|
+
const body = parsedOutput.body;
|
|
919
|
+
const deserialized = smithyClient._json(body);
|
|
920
|
+
const exception = new UnsupportedActionException({
|
|
921
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
922
|
+
...deserialized,
|
|
694
923
|
});
|
|
695
|
-
|
|
696
|
-
this.Message = opts.Message;
|
|
697
|
-
}
|
|
698
|
-
};
|
|
699
|
-
var ProgressEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
700
|
-
...obj,
|
|
701
|
-
...obj.ResourceModel && { ResourceModel: import_smithy_client.SENSITIVE_STRING }
|
|
702
|
-
}), "ProgressEventFilterSensitiveLog");
|
|
703
|
-
var CancelResourceRequestOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
704
|
-
...obj,
|
|
705
|
-
...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
|
|
706
|
-
}), "CancelResourceRequestOutputFilterSensitiveLog");
|
|
707
|
-
var CreateResourceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
708
|
-
...obj,
|
|
709
|
-
...obj.DesiredState && { DesiredState: import_smithy_client.SENSITIVE_STRING }
|
|
710
|
-
}), "CreateResourceInputFilterSensitiveLog");
|
|
711
|
-
var CreateResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
712
|
-
...obj,
|
|
713
|
-
...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
|
|
714
|
-
}), "CreateResourceOutputFilterSensitiveLog");
|
|
715
|
-
var DeleteResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
716
|
-
...obj,
|
|
717
|
-
...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
|
|
718
|
-
}), "DeleteResourceOutputFilterSensitiveLog");
|
|
719
|
-
var ResourceDescriptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
720
|
-
...obj,
|
|
721
|
-
...obj.Properties && { Properties: import_smithy_client.SENSITIVE_STRING }
|
|
722
|
-
}), "ResourceDescriptionFilterSensitiveLog");
|
|
723
|
-
var GetResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
724
|
-
...obj,
|
|
725
|
-
...obj.ResourceDescription && {
|
|
726
|
-
ResourceDescription: ResourceDescriptionFilterSensitiveLog(obj.ResourceDescription)
|
|
727
|
-
}
|
|
728
|
-
}), "GetResourceOutputFilterSensitiveLog");
|
|
729
|
-
var GetResourceRequestStatusOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
730
|
-
...obj,
|
|
731
|
-
...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
|
|
732
|
-
}), "GetResourceRequestStatusOutputFilterSensitiveLog");
|
|
733
|
-
var ListResourceRequestsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
734
|
-
...obj,
|
|
735
|
-
...obj.ResourceRequestStatusSummaries && {
|
|
736
|
-
ResourceRequestStatusSummaries: obj.ResourceRequestStatusSummaries.map(
|
|
737
|
-
(item) => ProgressEventFilterSensitiveLog(item)
|
|
738
|
-
)
|
|
739
|
-
}
|
|
740
|
-
}), "ListResourceRequestsOutputFilterSensitiveLog");
|
|
741
|
-
var ListResourcesInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
742
|
-
...obj,
|
|
743
|
-
...obj.ResourceModel && { ResourceModel: import_smithy_client.SENSITIVE_STRING }
|
|
744
|
-
}), "ListResourcesInputFilterSensitiveLog");
|
|
745
|
-
var ListResourcesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
746
|
-
...obj,
|
|
747
|
-
...obj.ResourceDescriptions && {
|
|
748
|
-
ResourceDescriptions: obj.ResourceDescriptions.map((item) => ResourceDescriptionFilterSensitiveLog(item))
|
|
749
|
-
}
|
|
750
|
-
}), "ListResourcesOutputFilterSensitiveLog");
|
|
751
|
-
var UpdateResourceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
752
|
-
...obj,
|
|
753
|
-
...obj.PatchDocument && { PatchDocument: import_smithy_client.SENSITIVE_STRING }
|
|
754
|
-
}), "UpdateResourceInputFilterSensitiveLog");
|
|
755
|
-
var UpdateResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
756
|
-
...obj,
|
|
757
|
-
...obj.ProgressEvent && { ProgressEvent: ProgressEventFilterSensitiveLog(obj.ProgressEvent) }
|
|
758
|
-
}), "UpdateResourceOutputFilterSensitiveLog");
|
|
759
|
-
|
|
760
|
-
// src/protocols/Aws_json1_0.ts
|
|
761
|
-
var import_core2 = require("@aws-sdk/core");
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
var import_uuid = require("@smithy/uuid");
|
|
765
|
-
var se_CancelResourceRequestCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
766
|
-
const headers = sharedHeaders("CancelResourceRequest");
|
|
767
|
-
let body;
|
|
768
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
769
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
770
|
-
}, "se_CancelResourceRequestCommand");
|
|
771
|
-
var se_CreateResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
772
|
-
const headers = sharedHeaders("CreateResource");
|
|
773
|
-
let body;
|
|
774
|
-
body = JSON.stringify(se_CreateResourceInput(input, context));
|
|
775
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
776
|
-
}, "se_CreateResourceCommand");
|
|
777
|
-
var se_DeleteResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
778
|
-
const headers = sharedHeaders("DeleteResource");
|
|
779
|
-
let body;
|
|
780
|
-
body = JSON.stringify(se_DeleteResourceInput(input, context));
|
|
781
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
782
|
-
}, "se_DeleteResourceCommand");
|
|
783
|
-
var se_GetResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
784
|
-
const headers = sharedHeaders("GetResource");
|
|
785
|
-
let body;
|
|
786
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
787
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
788
|
-
}, "se_GetResourceCommand");
|
|
789
|
-
var se_GetResourceRequestStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
790
|
-
const headers = sharedHeaders("GetResourceRequestStatus");
|
|
791
|
-
let body;
|
|
792
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
793
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
794
|
-
}, "se_GetResourceRequestStatusCommand");
|
|
795
|
-
var se_ListResourceRequestsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
796
|
-
const headers = sharedHeaders("ListResourceRequests");
|
|
797
|
-
let body;
|
|
798
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
799
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
800
|
-
}, "se_ListResourceRequestsCommand");
|
|
801
|
-
var se_ListResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
802
|
-
const headers = sharedHeaders("ListResources");
|
|
803
|
-
let body;
|
|
804
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
805
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
806
|
-
}, "se_ListResourcesCommand");
|
|
807
|
-
var se_UpdateResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
808
|
-
const headers = sharedHeaders("UpdateResource");
|
|
809
|
-
let body;
|
|
810
|
-
body = JSON.stringify(se_UpdateResourceInput(input, context));
|
|
811
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
812
|
-
}, "se_UpdateResourceCommand");
|
|
813
|
-
var de_CancelResourceRequestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
814
|
-
if (output.statusCode >= 300) {
|
|
815
|
-
return de_CommandError(output, context);
|
|
816
|
-
}
|
|
817
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
818
|
-
let contents = {};
|
|
819
|
-
contents = de_CancelResourceRequestOutput(data, context);
|
|
820
|
-
const response = {
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
...contents
|
|
823
|
-
};
|
|
824
|
-
return response;
|
|
825
|
-
}, "de_CancelResourceRequestCommand");
|
|
826
|
-
var de_CreateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
827
|
-
if (output.statusCode >= 300) {
|
|
828
|
-
return de_CommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
831
|
-
let contents = {};
|
|
832
|
-
contents = de_CreateResourceOutput(data, context);
|
|
833
|
-
const response = {
|
|
834
|
-
$metadata: deserializeMetadata(output),
|
|
835
|
-
...contents
|
|
836
|
-
};
|
|
837
|
-
return response;
|
|
838
|
-
}, "de_CreateResourceCommand");
|
|
839
|
-
var de_DeleteResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
840
|
-
if (output.statusCode >= 300) {
|
|
841
|
-
return de_CommandError(output, context);
|
|
842
|
-
}
|
|
843
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
844
|
-
let contents = {};
|
|
845
|
-
contents = de_DeleteResourceOutput(data, context);
|
|
846
|
-
const response = {
|
|
847
|
-
$metadata: deserializeMetadata(output),
|
|
848
|
-
...contents
|
|
849
|
-
};
|
|
850
|
-
return response;
|
|
851
|
-
}, "de_DeleteResourceCommand");
|
|
852
|
-
var de_GetResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
853
|
-
if (output.statusCode >= 300) {
|
|
854
|
-
return de_CommandError(output, context);
|
|
855
|
-
}
|
|
856
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
857
|
-
let contents = {};
|
|
858
|
-
contents = (0, import_smithy_client._json)(data);
|
|
859
|
-
const response = {
|
|
860
|
-
$metadata: deserializeMetadata(output),
|
|
861
|
-
...contents
|
|
862
|
-
};
|
|
863
|
-
return response;
|
|
864
|
-
}, "de_GetResourceCommand");
|
|
865
|
-
var de_GetResourceRequestStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
866
|
-
if (output.statusCode >= 300) {
|
|
867
|
-
return de_CommandError(output, context);
|
|
868
|
-
}
|
|
869
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
870
|
-
let contents = {};
|
|
871
|
-
contents = de_GetResourceRequestStatusOutput(data, context);
|
|
872
|
-
const response = {
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
...contents
|
|
875
|
-
};
|
|
876
|
-
return response;
|
|
877
|
-
}, "de_GetResourceRequestStatusCommand");
|
|
878
|
-
var de_ListResourceRequestsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
879
|
-
if (output.statusCode >= 300) {
|
|
880
|
-
return de_CommandError(output, context);
|
|
881
|
-
}
|
|
882
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
883
|
-
let contents = {};
|
|
884
|
-
contents = de_ListResourceRequestsOutput(data, context);
|
|
885
|
-
const response = {
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
...contents
|
|
888
|
-
};
|
|
889
|
-
return response;
|
|
890
|
-
}, "de_ListResourceRequestsCommand");
|
|
891
|
-
var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
-
if (output.statusCode >= 300) {
|
|
893
|
-
return de_CommandError(output, context);
|
|
894
|
-
}
|
|
895
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
896
|
-
let contents = {};
|
|
897
|
-
contents = (0, import_smithy_client._json)(data);
|
|
898
|
-
const response = {
|
|
899
|
-
$metadata: deserializeMetadata(output),
|
|
900
|
-
...contents
|
|
901
|
-
};
|
|
902
|
-
return response;
|
|
903
|
-
}, "de_ListResourcesCommand");
|
|
904
|
-
var de_UpdateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
905
|
-
if (output.statusCode >= 300) {
|
|
906
|
-
return de_CommandError(output, context);
|
|
907
|
-
}
|
|
908
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
909
|
-
let contents = {};
|
|
910
|
-
contents = de_UpdateResourceOutput(data, context);
|
|
911
|
-
const response = {
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
...contents
|
|
914
|
-
};
|
|
915
|
-
return response;
|
|
916
|
-
}, "de_UpdateResourceCommand");
|
|
917
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
918
|
-
const parsedOutput = {
|
|
919
|
-
...output,
|
|
920
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
921
|
-
};
|
|
922
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
923
|
-
switch (errorCode) {
|
|
924
|
-
case "ConcurrentModificationException":
|
|
925
|
-
case "com.amazonaws.cloudcontrol#ConcurrentModificationException":
|
|
926
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
927
|
-
case "RequestTokenNotFoundException":
|
|
928
|
-
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
929
|
-
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
930
|
-
case "AlreadyExistsException":
|
|
931
|
-
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
932
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ClientTokenConflictException":
|
|
934
|
-
case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
|
|
935
|
-
throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ConcurrentOperationException":
|
|
937
|
-
case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
|
|
938
|
-
throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
|
|
939
|
-
case "GeneralServiceException":
|
|
940
|
-
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
941
|
-
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
942
|
-
case "HandlerFailureException":
|
|
943
|
-
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
944
|
-
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
945
|
-
case "HandlerInternalFailureException":
|
|
946
|
-
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
947
|
-
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
948
|
-
case "InvalidCredentialsException":
|
|
949
|
-
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
950
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
951
|
-
case "InvalidRequestException":
|
|
952
|
-
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
953
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
954
|
-
case "NetworkFailureException":
|
|
955
|
-
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
956
|
-
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
957
|
-
case "NotStabilizedException":
|
|
958
|
-
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
959
|
-
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
960
|
-
case "NotUpdatableException":
|
|
961
|
-
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
962
|
-
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
963
|
-
case "PrivateTypeException":
|
|
964
|
-
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
965
|
-
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ResourceConflictException":
|
|
967
|
-
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
968
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ResourceNotFoundException":
|
|
970
|
-
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
971
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ServiceInternalErrorException":
|
|
973
|
-
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
974
|
-
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ServiceLimitExceededException":
|
|
976
|
-
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
977
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ThrottlingException":
|
|
979
|
-
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
980
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
981
|
-
case "TypeNotFoundException":
|
|
982
|
-
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
983
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
984
|
-
case "UnsupportedActionException":
|
|
985
|
-
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
986
|
-
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
987
|
-
default:
|
|
988
|
-
const parsedBody = parsedOutput.body;
|
|
989
|
-
return throwDefaultError({
|
|
990
|
-
output,
|
|
991
|
-
parsedBody,
|
|
992
|
-
errorCode
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
}, "de_CommandError");
|
|
996
|
-
var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
997
|
-
const body = parsedOutput.body;
|
|
998
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
999
|
-
const exception = new AlreadyExistsException({
|
|
1000
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1001
|
-
...deserialized
|
|
1002
|
-
});
|
|
1003
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1004
|
-
}, "de_AlreadyExistsExceptionRes");
|
|
1005
|
-
var de_ClientTokenConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1006
|
-
const body = parsedOutput.body;
|
|
1007
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1008
|
-
const exception = new ClientTokenConflictException({
|
|
1009
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1010
|
-
...deserialized
|
|
1011
|
-
});
|
|
1012
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1013
|
-
}, "de_ClientTokenConflictExceptionRes");
|
|
1014
|
-
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1015
|
-
const body = parsedOutput.body;
|
|
1016
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1017
|
-
const exception = new ConcurrentModificationException({
|
|
1018
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1019
|
-
...deserialized
|
|
1020
|
-
});
|
|
1021
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1022
|
-
}, "de_ConcurrentModificationExceptionRes");
|
|
1023
|
-
var de_ConcurrentOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1024
|
-
const body = parsedOutput.body;
|
|
1025
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1026
|
-
const exception = new ConcurrentOperationException({
|
|
1027
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1028
|
-
...deserialized
|
|
1029
|
-
});
|
|
1030
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1031
|
-
}, "de_ConcurrentOperationExceptionRes");
|
|
1032
|
-
var de_GeneralServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1033
|
-
const body = parsedOutput.body;
|
|
1034
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1035
|
-
const exception = new GeneralServiceException({
|
|
1036
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1037
|
-
...deserialized
|
|
1038
|
-
});
|
|
1039
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1040
|
-
}, "de_GeneralServiceExceptionRes");
|
|
1041
|
-
var de_HandlerFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1042
|
-
const body = parsedOutput.body;
|
|
1043
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1044
|
-
const exception = new HandlerFailureException({
|
|
1045
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1046
|
-
...deserialized
|
|
1047
|
-
});
|
|
1048
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1049
|
-
}, "de_HandlerFailureExceptionRes");
|
|
1050
|
-
var de_HandlerInternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1051
|
-
const body = parsedOutput.body;
|
|
1052
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1053
|
-
const exception = new HandlerInternalFailureException({
|
|
1054
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1055
|
-
...deserialized
|
|
1056
|
-
});
|
|
1057
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1058
|
-
}, "de_HandlerInternalFailureExceptionRes");
|
|
1059
|
-
var de_InvalidCredentialsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1060
|
-
const body = parsedOutput.body;
|
|
1061
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1062
|
-
const exception = new InvalidCredentialsException({
|
|
1063
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1064
|
-
...deserialized
|
|
1065
|
-
});
|
|
1066
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1067
|
-
}, "de_InvalidCredentialsExceptionRes");
|
|
1068
|
-
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1069
|
-
const body = parsedOutput.body;
|
|
1070
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1071
|
-
const exception = new InvalidRequestException({
|
|
1072
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1073
|
-
...deserialized
|
|
1074
|
-
});
|
|
1075
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1076
|
-
}, "de_InvalidRequestExceptionRes");
|
|
1077
|
-
var de_NetworkFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1078
|
-
const body = parsedOutput.body;
|
|
1079
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1080
|
-
const exception = new NetworkFailureException({
|
|
1081
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1082
|
-
...deserialized
|
|
1083
|
-
});
|
|
1084
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1085
|
-
}, "de_NetworkFailureExceptionRes");
|
|
1086
|
-
var de_NotStabilizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1087
|
-
const body = parsedOutput.body;
|
|
1088
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1089
|
-
const exception = new NotStabilizedException({
|
|
1090
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1091
|
-
...deserialized
|
|
1092
|
-
});
|
|
1093
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1094
|
-
}, "de_NotStabilizedExceptionRes");
|
|
1095
|
-
var de_NotUpdatableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1096
|
-
const body = parsedOutput.body;
|
|
1097
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1098
|
-
const exception = new NotUpdatableException({
|
|
1099
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1100
|
-
...deserialized
|
|
1101
|
-
});
|
|
1102
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1103
|
-
}, "de_NotUpdatableExceptionRes");
|
|
1104
|
-
var de_PrivateTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1105
|
-
const body = parsedOutput.body;
|
|
1106
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1107
|
-
const exception = new PrivateTypeException({
|
|
1108
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1109
|
-
...deserialized
|
|
1110
|
-
});
|
|
1111
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1112
|
-
}, "de_PrivateTypeExceptionRes");
|
|
1113
|
-
var de_RequestTokenNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1114
|
-
const body = parsedOutput.body;
|
|
1115
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1116
|
-
const exception = new RequestTokenNotFoundException({
|
|
1117
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1118
|
-
...deserialized
|
|
1119
|
-
});
|
|
1120
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1121
|
-
}, "de_RequestTokenNotFoundExceptionRes");
|
|
1122
|
-
var de_ResourceConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1123
|
-
const body = parsedOutput.body;
|
|
1124
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1125
|
-
const exception = new ResourceConflictException({
|
|
1126
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1127
|
-
...deserialized
|
|
1128
|
-
});
|
|
1129
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1130
|
-
}, "de_ResourceConflictExceptionRes");
|
|
1131
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1132
|
-
const body = parsedOutput.body;
|
|
1133
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1134
|
-
const exception = new ResourceNotFoundException({
|
|
1135
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1136
|
-
...deserialized
|
|
1137
|
-
});
|
|
1138
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1139
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1140
|
-
var de_ServiceInternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1141
|
-
const body = parsedOutput.body;
|
|
1142
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1143
|
-
const exception = new ServiceInternalErrorException({
|
|
1144
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1145
|
-
...deserialized
|
|
1146
|
-
});
|
|
1147
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1148
|
-
}, "de_ServiceInternalErrorExceptionRes");
|
|
1149
|
-
var de_ServiceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1150
|
-
const body = parsedOutput.body;
|
|
1151
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1152
|
-
const exception = new ServiceLimitExceededException({
|
|
1153
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1154
|
-
...deserialized
|
|
1155
|
-
});
|
|
1156
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1157
|
-
}, "de_ServiceLimitExceededExceptionRes");
|
|
1158
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1159
|
-
const body = parsedOutput.body;
|
|
1160
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1161
|
-
const exception = new ThrottlingException({
|
|
1162
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1163
|
-
...deserialized
|
|
1164
|
-
});
|
|
1165
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1166
|
-
}, "de_ThrottlingExceptionRes");
|
|
1167
|
-
var de_TypeNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1168
|
-
const body = parsedOutput.body;
|
|
1169
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1170
|
-
const exception = new TypeNotFoundException({
|
|
1171
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1172
|
-
...deserialized
|
|
1173
|
-
});
|
|
1174
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1175
|
-
}, "de_TypeNotFoundExceptionRes");
|
|
1176
|
-
var de_UnsupportedActionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1177
|
-
const body = parsedOutput.body;
|
|
1178
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1179
|
-
const exception = new UnsupportedActionException({
|
|
1180
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1181
|
-
...deserialized
|
|
1182
|
-
});
|
|
1183
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1184
|
-
}, "de_UnsupportedActionExceptionRes");
|
|
1185
|
-
var se_CreateResourceInput = /* @__PURE__ */ __name((input, context) => {
|
|
1186
|
-
return (0, import_smithy_client.take)(input, {
|
|
1187
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1188
|
-
DesiredState: [],
|
|
1189
|
-
RoleArn: [],
|
|
1190
|
-
TypeName: [],
|
|
1191
|
-
TypeVersionId: []
|
|
1192
|
-
});
|
|
1193
|
-
}, "se_CreateResourceInput");
|
|
1194
|
-
var se_DeleteResourceInput = /* @__PURE__ */ __name((input, context) => {
|
|
1195
|
-
return (0, import_smithy_client.take)(input, {
|
|
1196
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1197
|
-
Identifier: [],
|
|
1198
|
-
RoleArn: [],
|
|
1199
|
-
TypeName: [],
|
|
1200
|
-
TypeVersionId: []
|
|
1201
|
-
});
|
|
1202
|
-
}, "se_DeleteResourceInput");
|
|
1203
|
-
var se_UpdateResourceInput = /* @__PURE__ */ __name((input, context) => {
|
|
1204
|
-
return (0, import_smithy_client.take)(input, {
|
|
1205
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1206
|
-
Identifier: [],
|
|
1207
|
-
PatchDocument: [],
|
|
1208
|
-
RoleArn: [],
|
|
1209
|
-
TypeName: [],
|
|
1210
|
-
TypeVersionId: []
|
|
1211
|
-
});
|
|
1212
|
-
}, "se_UpdateResourceInput");
|
|
1213
|
-
var de_CancelResourceRequestOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1214
|
-
return (0, import_smithy_client.take)(output, {
|
|
1215
|
-
ProgressEvent: /* @__PURE__ */ __name((_) => de_ProgressEvent(_, context), "ProgressEvent")
|
|
1216
|
-
});
|
|
1217
|
-
}, "de_CancelResourceRequestOutput");
|
|
1218
|
-
var de_CreateResourceOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1219
|
-
return (0, import_smithy_client.take)(output, {
|
|
1220
|
-
ProgressEvent: /* @__PURE__ */ __name((_) => de_ProgressEvent(_, context), "ProgressEvent")
|
|
1221
|
-
});
|
|
1222
|
-
}, "de_CreateResourceOutput");
|
|
1223
|
-
var de_DeleteResourceOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1224
|
-
return (0, import_smithy_client.take)(output, {
|
|
1225
|
-
ProgressEvent: /* @__PURE__ */ __name((_) => de_ProgressEvent(_, context), "ProgressEvent")
|
|
1226
|
-
});
|
|
1227
|
-
}, "de_DeleteResourceOutput");
|
|
1228
|
-
var de_GetResourceRequestStatusOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1229
|
-
return (0, import_smithy_client.take)(output, {
|
|
1230
|
-
HooksProgressEvent: /* @__PURE__ */ __name((_) => de_HooksProgressEvent(_, context), "HooksProgressEvent"),
|
|
1231
|
-
ProgressEvent: /* @__PURE__ */ __name((_) => de_ProgressEvent(_, context), "ProgressEvent")
|
|
1232
|
-
});
|
|
1233
|
-
}, "de_GetResourceRequestStatusOutput");
|
|
1234
|
-
var de_HookProgressEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1235
|
-
return (0, import_smithy_client.take)(output, {
|
|
1236
|
-
FailureMode: import_smithy_client.expectString,
|
|
1237
|
-
HookEventTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "HookEventTime"),
|
|
1238
|
-
HookStatus: import_smithy_client.expectString,
|
|
1239
|
-
HookStatusMessage: import_smithy_client.expectString,
|
|
1240
|
-
HookTypeArn: import_smithy_client.expectString,
|
|
1241
|
-
HookTypeName: import_smithy_client.expectString,
|
|
1242
|
-
HookTypeVersionId: import_smithy_client.expectString,
|
|
1243
|
-
InvocationPoint: import_smithy_client.expectString
|
|
1244
|
-
});
|
|
1245
|
-
}, "de_HookProgressEvent");
|
|
1246
|
-
var de_HooksProgressEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1247
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1248
|
-
return de_HookProgressEvent(entry, context);
|
|
1249
|
-
});
|
|
1250
|
-
return retVal;
|
|
1251
|
-
}, "de_HooksProgressEvent");
|
|
1252
|
-
var de_ListResourceRequestsOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1253
|
-
return (0, import_smithy_client.take)(output, {
|
|
1254
|
-
NextToken: import_smithy_client.expectString,
|
|
1255
|
-
ResourceRequestStatusSummaries: /* @__PURE__ */ __name((_) => de_ResourceRequestStatusSummaries(_, context), "ResourceRequestStatusSummaries")
|
|
1256
|
-
});
|
|
1257
|
-
}, "de_ListResourceRequestsOutput");
|
|
1258
|
-
var de_ProgressEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1259
|
-
return (0, import_smithy_client.take)(output, {
|
|
1260
|
-
ErrorCode: import_smithy_client.expectString,
|
|
1261
|
-
EventTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EventTime"),
|
|
1262
|
-
HooksRequestToken: import_smithy_client.expectString,
|
|
1263
|
-
Identifier: import_smithy_client.expectString,
|
|
1264
|
-
Operation: import_smithy_client.expectString,
|
|
1265
|
-
OperationStatus: import_smithy_client.expectString,
|
|
1266
|
-
RequestToken: import_smithy_client.expectString,
|
|
1267
|
-
ResourceModel: import_smithy_client.expectString,
|
|
1268
|
-
RetryAfter: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "RetryAfter"),
|
|
1269
|
-
StatusMessage: import_smithy_client.expectString,
|
|
1270
|
-
TypeName: import_smithy_client.expectString
|
|
1271
|
-
});
|
|
1272
|
-
}, "de_ProgressEvent");
|
|
1273
|
-
var de_ResourceRequestStatusSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1274
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1275
|
-
return de_ProgressEvent(entry, context);
|
|
1276
|
-
});
|
|
1277
|
-
return retVal;
|
|
1278
|
-
}, "de_ResourceRequestStatusSummaries");
|
|
1279
|
-
var de_UpdateResourceOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1280
|
-
return (0, import_smithy_client.take)(output, {
|
|
1281
|
-
ProgressEvent: /* @__PURE__ */ __name((_) => de_ProgressEvent(_, context), "ProgressEvent")
|
|
1282
|
-
});
|
|
1283
|
-
}, "de_UpdateResourceOutput");
|
|
1284
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1285
|
-
httpStatusCode: output.statusCode,
|
|
1286
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1287
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1288
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1289
|
-
}), "deserializeMetadata");
|
|
1290
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudControlServiceException);
|
|
1291
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1292
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1293
|
-
const contents = {
|
|
1294
|
-
protocol,
|
|
1295
|
-
hostname,
|
|
1296
|
-
port,
|
|
1297
|
-
method: "POST",
|
|
1298
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1299
|
-
headers
|
|
1300
|
-
};
|
|
1301
|
-
if (resolvedHostname !== void 0) {
|
|
1302
|
-
contents.hostname = resolvedHostname;
|
|
1303
|
-
}
|
|
1304
|
-
if (body !== void 0) {
|
|
1305
|
-
contents.body = body;
|
|
1306
|
-
}
|
|
1307
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
1308
|
-
}, "buildHttpRpcRequest");
|
|
1309
|
-
function sharedHeaders(operation) {
|
|
1310
|
-
return {
|
|
1311
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1312
|
-
"x-amz-target": `CloudApiService.${operation}`
|
|
1313
|
-
};
|
|
1314
|
-
}
|
|
1315
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
1316
|
-
|
|
1317
|
-
// src/commands/CancelResourceRequestCommand.ts
|
|
1318
|
-
var CancelResourceRequestCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1319
|
-
return [
|
|
1320
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1321
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1322
|
-
];
|
|
1323
|
-
}).s("CloudApiService", "CancelResourceRequest", {}).n("CloudControlClient", "CancelResourceRequestCommand").f(void 0, CancelResourceRequestOutputFilterSensitiveLog).ser(se_CancelResourceRequestCommand).de(de_CancelResourceRequestCommand).build() {
|
|
1324
|
-
static {
|
|
1325
|
-
__name(this, "CancelResourceRequestCommand");
|
|
1326
|
-
}
|
|
924
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1327
925
|
};
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1337
|
-
];
|
|
1338
|
-
}).s("CloudApiService", "CreateResource", {}).n("CloudControlClient", "CreateResourceCommand").f(CreateResourceInputFilterSensitiveLog, CreateResourceOutputFilterSensitiveLog).ser(se_CreateResourceCommand).de(de_CreateResourceCommand).build() {
|
|
1339
|
-
static {
|
|
1340
|
-
__name(this, "CreateResourceCommand");
|
|
1341
|
-
}
|
|
926
|
+
const se_CreateResourceInput = (input, context) => {
|
|
927
|
+
return smithyClient.take(input, {
|
|
928
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
929
|
+
DesiredState: [],
|
|
930
|
+
RoleArn: [],
|
|
931
|
+
TypeName: [],
|
|
932
|
+
TypeVersionId: [],
|
|
933
|
+
});
|
|
1342
934
|
};
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1352
|
-
];
|
|
1353
|
-
}).s("CloudApiService", "DeleteResource", {}).n("CloudControlClient", "DeleteResourceCommand").f(void 0, DeleteResourceOutputFilterSensitiveLog).ser(se_DeleteResourceCommand).de(de_DeleteResourceCommand).build() {
|
|
1354
|
-
static {
|
|
1355
|
-
__name(this, "DeleteResourceCommand");
|
|
1356
|
-
}
|
|
935
|
+
const se_DeleteResourceInput = (input, context) => {
|
|
936
|
+
return smithyClient.take(input, {
|
|
937
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
938
|
+
Identifier: [],
|
|
939
|
+
RoleArn: [],
|
|
940
|
+
TypeName: [],
|
|
941
|
+
TypeVersionId: [],
|
|
942
|
+
});
|
|
1357
943
|
};
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
];
|
|
1368
|
-
}).s("CloudApiService", "GetResource", {}).n("CloudControlClient", "GetResourceCommand").f(void 0, GetResourceOutputFilterSensitiveLog).ser(se_GetResourceCommand).de(de_GetResourceCommand).build() {
|
|
1369
|
-
static {
|
|
1370
|
-
__name(this, "GetResourceCommand");
|
|
1371
|
-
}
|
|
944
|
+
const se_UpdateResourceInput = (input, context) => {
|
|
945
|
+
return smithyClient.take(input, {
|
|
946
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
947
|
+
Identifier: [],
|
|
948
|
+
PatchDocument: [],
|
|
949
|
+
RoleArn: [],
|
|
950
|
+
TypeName: [],
|
|
951
|
+
TypeVersionId: [],
|
|
952
|
+
});
|
|
1372
953
|
};
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
var GetResourceRequestStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1379
|
-
return [
|
|
1380
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1381
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1382
|
-
];
|
|
1383
|
-
}).s("CloudApiService", "GetResourceRequestStatus", {}).n("CloudControlClient", "GetResourceRequestStatusCommand").f(void 0, GetResourceRequestStatusOutputFilterSensitiveLog).ser(se_GetResourceRequestStatusCommand).de(de_GetResourceRequestStatusCommand).build() {
|
|
1384
|
-
static {
|
|
1385
|
-
__name(this, "GetResourceRequestStatusCommand");
|
|
1386
|
-
}
|
|
954
|
+
const de_CancelResourceRequestOutput = (output, context) => {
|
|
955
|
+
return smithyClient.take(output, {
|
|
956
|
+
ProgressEvent: (_) => de_ProgressEvent(_),
|
|
957
|
+
});
|
|
1387
958
|
};
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
var ListResourceRequestsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1394
|
-
return [
|
|
1395
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1396
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1397
|
-
];
|
|
1398
|
-
}).s("CloudApiService", "ListResourceRequests", {}).n("CloudControlClient", "ListResourceRequestsCommand").f(void 0, ListResourceRequestsOutputFilterSensitiveLog).ser(se_ListResourceRequestsCommand).de(de_ListResourceRequestsCommand).build() {
|
|
1399
|
-
static {
|
|
1400
|
-
__name(this, "ListResourceRequestsCommand");
|
|
1401
|
-
}
|
|
959
|
+
const de_CreateResourceOutput = (output, context) => {
|
|
960
|
+
return smithyClient.take(output, {
|
|
961
|
+
ProgressEvent: (_) => de_ProgressEvent(_),
|
|
962
|
+
});
|
|
1402
963
|
};
|
|
964
|
+
const de_DeleteResourceOutput = (output, context) => {
|
|
965
|
+
return smithyClient.take(output, {
|
|
966
|
+
ProgressEvent: (_) => de_ProgressEvent(_),
|
|
967
|
+
});
|
|
968
|
+
};
|
|
969
|
+
const de_GetResourceRequestStatusOutput = (output, context) => {
|
|
970
|
+
return smithyClient.take(output, {
|
|
971
|
+
HooksProgressEvent: (_) => de_HooksProgressEvent(_),
|
|
972
|
+
ProgressEvent: (_) => de_ProgressEvent(_),
|
|
973
|
+
});
|
|
974
|
+
};
|
|
975
|
+
const de_HookProgressEvent = (output, context) => {
|
|
976
|
+
return smithyClient.take(output, {
|
|
977
|
+
FailureMode: smithyClient.expectString,
|
|
978
|
+
HookEventTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
979
|
+
HookStatus: smithyClient.expectString,
|
|
980
|
+
HookStatusMessage: smithyClient.expectString,
|
|
981
|
+
HookTypeArn: smithyClient.expectString,
|
|
982
|
+
HookTypeName: smithyClient.expectString,
|
|
983
|
+
HookTypeVersionId: smithyClient.expectString,
|
|
984
|
+
InvocationPoint: smithyClient.expectString,
|
|
985
|
+
});
|
|
986
|
+
};
|
|
987
|
+
const de_HooksProgressEvent = (output, context) => {
|
|
988
|
+
const retVal = (output || [])
|
|
989
|
+
.filter((e) => e != null)
|
|
990
|
+
.map((entry) => {
|
|
991
|
+
return de_HookProgressEvent(entry);
|
|
992
|
+
});
|
|
993
|
+
return retVal;
|
|
994
|
+
};
|
|
995
|
+
const de_ListResourceRequestsOutput = (output, context) => {
|
|
996
|
+
return smithyClient.take(output, {
|
|
997
|
+
NextToken: smithyClient.expectString,
|
|
998
|
+
ResourceRequestStatusSummaries: (_) => de_ResourceRequestStatusSummaries(_),
|
|
999
|
+
});
|
|
1000
|
+
};
|
|
1001
|
+
const de_ProgressEvent = (output, context) => {
|
|
1002
|
+
return smithyClient.take(output, {
|
|
1003
|
+
ErrorCode: smithyClient.expectString,
|
|
1004
|
+
EventTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1005
|
+
HooksRequestToken: smithyClient.expectString,
|
|
1006
|
+
Identifier: smithyClient.expectString,
|
|
1007
|
+
Operation: smithyClient.expectString,
|
|
1008
|
+
OperationStatus: smithyClient.expectString,
|
|
1009
|
+
RequestToken: smithyClient.expectString,
|
|
1010
|
+
ResourceModel: smithyClient.expectString,
|
|
1011
|
+
RetryAfter: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1012
|
+
StatusMessage: smithyClient.expectString,
|
|
1013
|
+
TypeName: smithyClient.expectString,
|
|
1014
|
+
});
|
|
1015
|
+
};
|
|
1016
|
+
const de_ResourceRequestStatusSummaries = (output, context) => {
|
|
1017
|
+
const retVal = (output || [])
|
|
1018
|
+
.filter((e) => e != null)
|
|
1019
|
+
.map((entry) => {
|
|
1020
|
+
return de_ProgressEvent(entry);
|
|
1021
|
+
});
|
|
1022
|
+
return retVal;
|
|
1023
|
+
};
|
|
1024
|
+
const de_UpdateResourceOutput = (output, context) => {
|
|
1025
|
+
return smithyClient.take(output, {
|
|
1026
|
+
ProgressEvent: (_) => de_ProgressEvent(_),
|
|
1027
|
+
});
|
|
1028
|
+
};
|
|
1029
|
+
const deserializeMetadata = (output) => ({
|
|
1030
|
+
httpStatusCode: output.statusCode,
|
|
1031
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1032
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1033
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1034
|
+
});
|
|
1035
|
+
const throwDefaultError = smithyClient.withBaseException(CloudControlServiceException);
|
|
1036
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1037
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1038
|
+
const contents = {
|
|
1039
|
+
protocol,
|
|
1040
|
+
hostname,
|
|
1041
|
+
port,
|
|
1042
|
+
method: "POST",
|
|
1043
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1044
|
+
headers,
|
|
1045
|
+
};
|
|
1046
|
+
if (body !== undefined) {
|
|
1047
|
+
contents.body = body;
|
|
1048
|
+
}
|
|
1049
|
+
return new protocolHttp.HttpRequest(contents);
|
|
1050
|
+
};
|
|
1051
|
+
function sharedHeaders(operation) {
|
|
1052
|
+
return {
|
|
1053
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1054
|
+
"x-amz-target": `CloudApiService.${operation}`,
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1403
1057
|
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1058
|
+
class CancelResourceRequestCommand extends smithyClient.Command
|
|
1059
|
+
.classBuilder()
|
|
1060
|
+
.ep(commonParams)
|
|
1061
|
+
.m(function (Command, cs, config, o) {
|
|
1062
|
+
return [
|
|
1063
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1064
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1065
|
+
];
|
|
1066
|
+
})
|
|
1067
|
+
.s("CloudApiService", "CancelResourceRequest", {})
|
|
1068
|
+
.n("CloudControlClient", "CancelResourceRequestCommand")
|
|
1069
|
+
.f(void 0, CancelResourceRequestOutputFilterSensitiveLog)
|
|
1070
|
+
.ser(se_CancelResourceRequestCommand)
|
|
1071
|
+
.de(de_CancelResourceRequestCommand)
|
|
1072
|
+
.build() {
|
|
1073
|
+
}
|
|
1407
1074
|
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
(
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
}
|
|
1075
|
+
class CreateResourceCommand extends smithyClient.Command
|
|
1076
|
+
.classBuilder()
|
|
1077
|
+
.ep(commonParams)
|
|
1078
|
+
.m(function (Command, cs, config, o) {
|
|
1079
|
+
return [
|
|
1080
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1081
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1082
|
+
];
|
|
1083
|
+
})
|
|
1084
|
+
.s("CloudApiService", "CreateResource", {})
|
|
1085
|
+
.n("CloudControlClient", "CreateResourceCommand")
|
|
1086
|
+
.f(CreateResourceInputFilterSensitiveLog, CreateResourceOutputFilterSensitiveLog)
|
|
1087
|
+
.ser(se_CreateResourceCommand)
|
|
1088
|
+
.de(de_CreateResourceCommand)
|
|
1089
|
+
.build() {
|
|
1090
|
+
}
|
|
1418
1091
|
|
|
1419
|
-
|
|
1092
|
+
class DeleteResourceCommand extends smithyClient.Command
|
|
1093
|
+
.classBuilder()
|
|
1094
|
+
.ep(commonParams)
|
|
1095
|
+
.m(function (Command, cs, config, o) {
|
|
1096
|
+
return [
|
|
1097
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1098
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1099
|
+
];
|
|
1100
|
+
})
|
|
1101
|
+
.s("CloudApiService", "DeleteResource", {})
|
|
1102
|
+
.n("CloudControlClient", "DeleteResourceCommand")
|
|
1103
|
+
.f(void 0, DeleteResourceOutputFilterSensitiveLog)
|
|
1104
|
+
.ser(se_DeleteResourceCommand)
|
|
1105
|
+
.de(de_DeleteResourceCommand)
|
|
1106
|
+
.build() {
|
|
1107
|
+
}
|
|
1420
1108
|
|
|
1109
|
+
class GetResourceCommand extends smithyClient.Command
|
|
1110
|
+
.classBuilder()
|
|
1111
|
+
.ep(commonParams)
|
|
1112
|
+
.m(function (Command, cs, config, o) {
|
|
1113
|
+
return [
|
|
1114
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1115
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1116
|
+
];
|
|
1117
|
+
})
|
|
1118
|
+
.s("CloudApiService", "GetResource", {})
|
|
1119
|
+
.n("CloudControlClient", "GetResourceCommand")
|
|
1120
|
+
.f(void 0, GetResourceOutputFilterSensitiveLog)
|
|
1121
|
+
.ser(se_GetResourceCommand)
|
|
1122
|
+
.de(de_GetResourceCommand)
|
|
1123
|
+
.build() {
|
|
1124
|
+
}
|
|
1421
1125
|
|
|
1126
|
+
class GetResourceRequestStatusCommand extends smithyClient.Command
|
|
1127
|
+
.classBuilder()
|
|
1128
|
+
.ep(commonParams)
|
|
1129
|
+
.m(function (Command, cs, config, o) {
|
|
1130
|
+
return [
|
|
1131
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1132
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1133
|
+
];
|
|
1134
|
+
})
|
|
1135
|
+
.s("CloudApiService", "GetResourceRequestStatus", {})
|
|
1136
|
+
.n("CloudControlClient", "GetResourceRequestStatusCommand")
|
|
1137
|
+
.f(void 0, GetResourceRequestStatusOutputFilterSensitiveLog)
|
|
1138
|
+
.ser(se_GetResourceRequestStatusCommand)
|
|
1139
|
+
.de(de_GetResourceRequestStatusCommand)
|
|
1140
|
+
.build() {
|
|
1141
|
+
}
|
|
1422
1142
|
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
(
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
}
|
|
1143
|
+
class ListResourceRequestsCommand extends smithyClient.Command
|
|
1144
|
+
.classBuilder()
|
|
1145
|
+
.ep(commonParams)
|
|
1146
|
+
.m(function (Command, cs, config, o) {
|
|
1147
|
+
return [
|
|
1148
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1149
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1150
|
+
];
|
|
1151
|
+
})
|
|
1152
|
+
.s("CloudApiService", "ListResourceRequests", {})
|
|
1153
|
+
.n("CloudControlClient", "ListResourceRequestsCommand")
|
|
1154
|
+
.f(void 0, ListResourceRequestsOutputFilterSensitiveLog)
|
|
1155
|
+
.ser(se_ListResourceRequestsCommand)
|
|
1156
|
+
.de(de_ListResourceRequestsCommand)
|
|
1157
|
+
.build() {
|
|
1158
|
+
}
|
|
1433
1159
|
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}
|
|
1450
|
-
(0, import_smithy_client.createAggregatedClient)(commands, CloudControl);
|
|
1160
|
+
class ListResourcesCommand extends smithyClient.Command
|
|
1161
|
+
.classBuilder()
|
|
1162
|
+
.ep(commonParams)
|
|
1163
|
+
.m(function (Command, cs, config, o) {
|
|
1164
|
+
return [
|
|
1165
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1166
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1167
|
+
];
|
|
1168
|
+
})
|
|
1169
|
+
.s("CloudApiService", "ListResources", {})
|
|
1170
|
+
.n("CloudControlClient", "ListResourcesCommand")
|
|
1171
|
+
.f(ListResourcesInputFilterSensitiveLog, ListResourcesOutputFilterSensitiveLog)
|
|
1172
|
+
.ser(se_ListResourcesCommand)
|
|
1173
|
+
.de(de_ListResourcesCommand)
|
|
1174
|
+
.build() {
|
|
1175
|
+
}
|
|
1451
1176
|
|
|
1452
|
-
|
|
1177
|
+
class UpdateResourceCommand extends smithyClient.Command
|
|
1178
|
+
.classBuilder()
|
|
1179
|
+
.ep(commonParams)
|
|
1180
|
+
.m(function (Command, cs, config, o) {
|
|
1181
|
+
return [
|
|
1182
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1183
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1184
|
+
];
|
|
1185
|
+
})
|
|
1186
|
+
.s("CloudApiService", "UpdateResource", {})
|
|
1187
|
+
.n("CloudControlClient", "UpdateResourceCommand")
|
|
1188
|
+
.f(UpdateResourceInputFilterSensitiveLog, UpdateResourceOutputFilterSensitiveLog)
|
|
1189
|
+
.ser(se_UpdateResourceCommand)
|
|
1190
|
+
.de(de_UpdateResourceCommand)
|
|
1191
|
+
.build() {
|
|
1192
|
+
}
|
|
1453
1193
|
|
|
1454
|
-
|
|
1194
|
+
const commands = {
|
|
1195
|
+
CancelResourceRequestCommand,
|
|
1196
|
+
CreateResourceCommand,
|
|
1197
|
+
DeleteResourceCommand,
|
|
1198
|
+
GetResourceCommand,
|
|
1199
|
+
GetResourceRequestStatusCommand,
|
|
1200
|
+
ListResourceRequestsCommand,
|
|
1201
|
+
ListResourcesCommand,
|
|
1202
|
+
UpdateResourceCommand,
|
|
1203
|
+
};
|
|
1204
|
+
class CloudControl extends CloudControlClient {
|
|
1205
|
+
}
|
|
1206
|
+
smithyClient.createAggregatedClient(commands, CloudControl);
|
|
1455
1207
|
|
|
1456
|
-
|
|
1208
|
+
const paginateListResourceRequests = core.createPaginator(CloudControlClient, ListResourceRequestsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1457
1209
|
|
|
1458
|
-
|
|
1210
|
+
const paginateListResources = core.createPaginator(CloudControlClient, ListResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1459
1211
|
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
1463
|
-
let reason;
|
|
1464
|
-
try {
|
|
1465
|
-
const result = await client.send(new GetResourceRequestStatusCommand(input));
|
|
1466
|
-
reason = result;
|
|
1467
|
-
try {
|
|
1468
|
-
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1469
|
-
return result.ProgressEvent.OperationStatus;
|
|
1470
|
-
}, "returnComparator");
|
|
1471
|
-
if (returnComparator() === "SUCCESS") {
|
|
1472
|
-
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
1473
|
-
}
|
|
1474
|
-
} catch (e) {
|
|
1475
|
-
}
|
|
1212
|
+
const checkState = async (client, input) => {
|
|
1213
|
+
let reason;
|
|
1476
1214
|
try {
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1215
|
+
const result = await client.send(new GetResourceRequestStatusCommand(input));
|
|
1216
|
+
reason = result;
|
|
1217
|
+
try {
|
|
1218
|
+
const returnComparator = () => {
|
|
1219
|
+
return result.ProgressEvent.OperationStatus;
|
|
1220
|
+
};
|
|
1221
|
+
if (returnComparator() === "SUCCESS") {
|
|
1222
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
catch (e) { }
|
|
1226
|
+
try {
|
|
1227
|
+
const returnComparator = () => {
|
|
1228
|
+
return result.ProgressEvent.OperationStatus;
|
|
1229
|
+
};
|
|
1230
|
+
if (returnComparator() === "FAILED") {
|
|
1231
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
catch (e) { }
|
|
1235
|
+
try {
|
|
1236
|
+
const returnComparator = () => {
|
|
1237
|
+
return result.ProgressEvent.OperationStatus;
|
|
1238
|
+
};
|
|
1239
|
+
if (returnComparator() === "CANCEL_COMPLETE") {
|
|
1240
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
catch (e) { }
|
|
1484
1244
|
}
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
return result.ProgressEvent.OperationStatus;
|
|
1488
|
-
}, "returnComparator");
|
|
1489
|
-
if (returnComparator() === "CANCEL_COMPLETE") {
|
|
1490
|
-
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1491
|
-
}
|
|
1492
|
-
} catch (e) {
|
|
1245
|
+
catch (exception) {
|
|
1246
|
+
reason = exception;
|
|
1493
1247
|
}
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
},
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
},
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
1506
|
-
return (0, import_util_waiter.checkExceptions)(result);
|
|
1507
|
-
}, "waitUntilResourceRequestSuccess");
|
|
1508
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1248
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
1249
|
+
};
|
|
1250
|
+
const waitForResourceRequestSuccess = async (params, input) => {
|
|
1251
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
1252
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1253
|
+
};
|
|
1254
|
+
const waitUntilResourceRequestSuccess = async (params, input) => {
|
|
1255
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
1256
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1257
|
+
return utilWaiter.checkExceptions(result);
|
|
1258
|
+
};
|
|
1509
1259
|
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
CloudControlClient,
|
|
1514
|
-
CloudControl,
|
|
1515
|
-
$Command,
|
|
1516
|
-
CancelResourceRequestCommand,
|
|
1517
|
-
CreateResourceCommand,
|
|
1518
|
-
DeleteResourceCommand,
|
|
1519
|
-
GetResourceCommand,
|
|
1520
|
-
GetResourceRequestStatusCommand,
|
|
1521
|
-
ListResourceRequestsCommand,
|
|
1522
|
-
ListResourcesCommand,
|
|
1523
|
-
UpdateResourceCommand,
|
|
1524
|
-
paginateListResourceRequests,
|
|
1525
|
-
paginateListResources,
|
|
1526
|
-
waitForResourceRequestSuccess,
|
|
1527
|
-
waitUntilResourceRequestSuccess,
|
|
1528
|
-
AlreadyExistsException,
|
|
1529
|
-
HandlerErrorCode,
|
|
1530
|
-
Operation,
|
|
1531
|
-
OperationStatus,
|
|
1532
|
-
ConcurrentModificationException,
|
|
1533
|
-
RequestTokenNotFoundException,
|
|
1534
|
-
ClientTokenConflictException,
|
|
1535
|
-
ConcurrentOperationException,
|
|
1536
|
-
GeneralServiceException,
|
|
1537
|
-
HandlerFailureException,
|
|
1538
|
-
HandlerInternalFailureException,
|
|
1539
|
-
InvalidCredentialsException,
|
|
1540
|
-
InvalidRequestException,
|
|
1541
|
-
NetworkFailureException,
|
|
1542
|
-
NotStabilizedException,
|
|
1543
|
-
NotUpdatableException,
|
|
1544
|
-
PrivateTypeException,
|
|
1545
|
-
ResourceConflictException,
|
|
1546
|
-
ResourceNotFoundException,
|
|
1547
|
-
ServiceInternalErrorException,
|
|
1548
|
-
ServiceLimitExceededException,
|
|
1549
|
-
ThrottlingException,
|
|
1550
|
-
TypeNotFoundException,
|
|
1551
|
-
UnsupportedActionException,
|
|
1552
|
-
ProgressEventFilterSensitiveLog,
|
|
1553
|
-
CancelResourceRequestOutputFilterSensitiveLog,
|
|
1554
|
-
CreateResourceInputFilterSensitiveLog,
|
|
1555
|
-
CreateResourceOutputFilterSensitiveLog,
|
|
1556
|
-
DeleteResourceOutputFilterSensitiveLog,
|
|
1557
|
-
ResourceDescriptionFilterSensitiveLog,
|
|
1558
|
-
GetResourceOutputFilterSensitiveLog,
|
|
1559
|
-
GetResourceRequestStatusOutputFilterSensitiveLog,
|
|
1560
|
-
ListResourceRequestsOutputFilterSensitiveLog,
|
|
1561
|
-
ListResourcesInputFilterSensitiveLog,
|
|
1562
|
-
ListResourcesOutputFilterSensitiveLog,
|
|
1563
|
-
UpdateResourceInputFilterSensitiveLog,
|
|
1564
|
-
UpdateResourceOutputFilterSensitiveLog
|
|
1260
|
+
Object.defineProperty(exports, "$Command", {
|
|
1261
|
+
enumerable: true,
|
|
1262
|
+
get: function () { return smithyClient.Command; }
|
|
1565
1263
|
});
|
|
1566
|
-
|
|
1264
|
+
Object.defineProperty(exports, "__Client", {
|
|
1265
|
+
enumerable: true,
|
|
1266
|
+
get: function () { return smithyClient.Client; }
|
|
1267
|
+
});
|
|
1268
|
+
exports.AlreadyExistsException = AlreadyExistsException;
|
|
1269
|
+
exports.CancelResourceRequestCommand = CancelResourceRequestCommand;
|
|
1270
|
+
exports.CancelResourceRequestOutputFilterSensitiveLog = CancelResourceRequestOutputFilterSensitiveLog;
|
|
1271
|
+
exports.ClientTokenConflictException = ClientTokenConflictException;
|
|
1272
|
+
exports.CloudControl = CloudControl;
|
|
1273
|
+
exports.CloudControlClient = CloudControlClient;
|
|
1274
|
+
exports.CloudControlServiceException = CloudControlServiceException;
|
|
1275
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
1276
|
+
exports.ConcurrentOperationException = ConcurrentOperationException;
|
|
1277
|
+
exports.CreateResourceCommand = CreateResourceCommand;
|
|
1278
|
+
exports.CreateResourceInputFilterSensitiveLog = CreateResourceInputFilterSensitiveLog;
|
|
1279
|
+
exports.CreateResourceOutputFilterSensitiveLog = CreateResourceOutputFilterSensitiveLog;
|
|
1280
|
+
exports.DeleteResourceCommand = DeleteResourceCommand;
|
|
1281
|
+
exports.DeleteResourceOutputFilterSensitiveLog = DeleteResourceOutputFilterSensitiveLog;
|
|
1282
|
+
exports.GeneralServiceException = GeneralServiceException;
|
|
1283
|
+
exports.GetResourceCommand = GetResourceCommand;
|
|
1284
|
+
exports.GetResourceOutputFilterSensitiveLog = GetResourceOutputFilterSensitiveLog;
|
|
1285
|
+
exports.GetResourceRequestStatusCommand = GetResourceRequestStatusCommand;
|
|
1286
|
+
exports.GetResourceRequestStatusOutputFilterSensitiveLog = GetResourceRequestStatusOutputFilterSensitiveLog;
|
|
1287
|
+
exports.HandlerErrorCode = HandlerErrorCode;
|
|
1288
|
+
exports.HandlerFailureException = HandlerFailureException;
|
|
1289
|
+
exports.HandlerInternalFailureException = HandlerInternalFailureException;
|
|
1290
|
+
exports.InvalidCredentialsException = InvalidCredentialsException;
|
|
1291
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
1292
|
+
exports.ListResourceRequestsCommand = ListResourceRequestsCommand;
|
|
1293
|
+
exports.ListResourceRequestsOutputFilterSensitiveLog = ListResourceRequestsOutputFilterSensitiveLog;
|
|
1294
|
+
exports.ListResourcesCommand = ListResourcesCommand;
|
|
1295
|
+
exports.ListResourcesInputFilterSensitiveLog = ListResourcesInputFilterSensitiveLog;
|
|
1296
|
+
exports.ListResourcesOutputFilterSensitiveLog = ListResourcesOutputFilterSensitiveLog;
|
|
1297
|
+
exports.NetworkFailureException = NetworkFailureException;
|
|
1298
|
+
exports.NotStabilizedException = NotStabilizedException;
|
|
1299
|
+
exports.NotUpdatableException = NotUpdatableException;
|
|
1300
|
+
exports.Operation = Operation;
|
|
1301
|
+
exports.OperationStatus = OperationStatus;
|
|
1302
|
+
exports.PrivateTypeException = PrivateTypeException;
|
|
1303
|
+
exports.ProgressEventFilterSensitiveLog = ProgressEventFilterSensitiveLog;
|
|
1304
|
+
exports.RequestTokenNotFoundException = RequestTokenNotFoundException;
|
|
1305
|
+
exports.ResourceConflictException = ResourceConflictException;
|
|
1306
|
+
exports.ResourceDescriptionFilterSensitiveLog = ResourceDescriptionFilterSensitiveLog;
|
|
1307
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1308
|
+
exports.ServiceInternalErrorException = ServiceInternalErrorException;
|
|
1309
|
+
exports.ServiceLimitExceededException = ServiceLimitExceededException;
|
|
1310
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1311
|
+
exports.TypeNotFoundException = TypeNotFoundException;
|
|
1312
|
+
exports.UnsupportedActionException = UnsupportedActionException;
|
|
1313
|
+
exports.UpdateResourceCommand = UpdateResourceCommand;
|
|
1314
|
+
exports.UpdateResourceInputFilterSensitiveLog = UpdateResourceInputFilterSensitiveLog;
|
|
1315
|
+
exports.UpdateResourceOutputFilterSensitiveLog = UpdateResourceOutputFilterSensitiveLog;
|
|
1316
|
+
exports.paginateListResourceRequests = paginateListResourceRequests;
|
|
1317
|
+
exports.paginateListResources = paginateListResources;
|
|
1318
|
+
exports.waitForResourceRequestSuccess = waitForResourceRequestSuccess;
|
|
1319
|
+
exports.waitUntilResourceRequestSuccess = waitUntilResourceRequestSuccess;
|