@aws-sdk/client-evs 3.901.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1072 -1215
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,1261 +1,1118 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Evs: () => Evs,
|
|
34
|
-
EvsClient: () => EvsClient,
|
|
35
|
-
EvsServiceException: () => EvsServiceException,
|
|
36
|
-
GetEnvironmentCommand: () => GetEnvironmentCommand,
|
|
37
|
-
HostState: () => HostState,
|
|
38
|
-
ListEnvironmentHostsCommand: () => ListEnvironmentHostsCommand,
|
|
39
|
-
ListEnvironmentVlansCommand: () => ListEnvironmentVlansCommand,
|
|
40
|
-
ListEnvironmentsCommand: () => ListEnvironmentsCommand,
|
|
41
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
42
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
43
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
44
|
-
TagPolicyException: () => TagPolicyException,
|
|
45
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
46
|
-
ThrottlingException: () => ThrottlingException,
|
|
47
|
-
TooManyTagsException: () => TooManyTagsException,
|
|
48
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
49
|
-
ValidationException: () => ValidationException,
|
|
50
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
51
|
-
VcfVersion: () => VcfVersion,
|
|
52
|
-
VlanState: () => VlanState,
|
|
53
|
-
_InstanceType: () => _InstanceType,
|
|
54
|
-
__Client: () => import_smithy_client.Client,
|
|
55
|
-
paginateListEnvironmentHosts: () => paginateListEnvironmentHosts,
|
|
56
|
-
paginateListEnvironmentVlans: () => paginateListEnvironmentVlans,
|
|
57
|
-
paginateListEnvironments: () => paginateListEnvironments
|
|
58
|
-
});
|
|
59
|
-
module.exports = __toCommonJS(index_exports);
|
|
60
|
-
|
|
61
|
-
// src/EvsClient.ts
|
|
62
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
63
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
64
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
65
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
66
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
67
|
-
var import_core = require("@smithy/core");
|
|
68
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
69
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
70
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
71
|
-
|
|
72
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
73
|
-
|
|
74
|
-
// src/endpoint/EndpointParameters.ts
|
|
75
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
76
|
-
return Object.assign(options, {
|
|
77
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
78
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
79
|
-
defaultSigningName: "evs"
|
|
80
|
-
});
|
|
81
|
-
}, "resolveClientEndpointParameters");
|
|
82
|
-
var commonParams = {
|
|
83
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
84
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
85
|
-
Region: { type: "builtInParams", name: "region" },
|
|
86
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "evs",
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
87
33
|
};
|
|
88
34
|
|
|
89
|
-
|
|
90
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
91
73
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
96
79
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
80
|
+
class EvsClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultEvsHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
125
108
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
131
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
132
|
-
credentials: config.credentials()
|
|
133
|
-
};
|
|
134
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
135
113
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
143
|
-
);
|
|
144
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
145
|
-
return Object.assign(
|
|
146
|
-
runtimeConfig,
|
|
147
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
148
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
149
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
150
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
151
|
-
);
|
|
152
|
-
}, "resolveRuntimeExtensions");
|
|
114
|
+
class EvsServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, EvsServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
153
120
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
* The resolved configuration of EvsClient class. This is resolved and normalized from the {@link EvsClientConfig | constructor configuration interface}.
|
|
161
|
-
*/
|
|
162
|
-
config;
|
|
163
|
-
constructor(...[configuration]) {
|
|
164
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
165
|
-
super(_config_0);
|
|
166
|
-
this.initConfig = _config_0;
|
|
167
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
168
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
169
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
170
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
171
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
172
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
173
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
174
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
175
|
-
this.config = _config_8;
|
|
176
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
177
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
178
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
179
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
180
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
181
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
182
|
-
this.middlewareStack.use(
|
|
183
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
184
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultEvsHttpAuthSchemeParametersProvider,
|
|
185
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
186
|
-
"aws.auth#sigv4": config.credentials
|
|
187
|
-
}), "identityProviderConfigProvider")
|
|
188
|
-
})
|
|
189
|
-
);
|
|
190
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
194
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
195
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
196
|
-
*/
|
|
197
|
-
destroy() {
|
|
198
|
-
super.destroy();
|
|
199
|
-
}
|
|
121
|
+
const VlanState = {
|
|
122
|
+
CREATED: "CREATED",
|
|
123
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
124
|
+
CREATING: "CREATING",
|
|
125
|
+
DELETED: "DELETED",
|
|
126
|
+
DELETING: "DELETING",
|
|
200
127
|
};
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
128
|
+
class ResourceNotFoundException extends EvsServiceException {
|
|
129
|
+
name = "ResourceNotFoundException";
|
|
130
|
+
$fault = "client";
|
|
131
|
+
resourceId;
|
|
132
|
+
resourceType;
|
|
133
|
+
constructor(opts) {
|
|
134
|
+
super({
|
|
135
|
+
name: "ResourceNotFoundException",
|
|
136
|
+
$fault: "client",
|
|
137
|
+
...opts,
|
|
138
|
+
});
|
|
139
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
140
|
+
this.resourceId = opts.resourceId;
|
|
141
|
+
this.resourceType = opts.resourceType;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
class ThrottlingException extends EvsServiceException {
|
|
145
|
+
name = "ThrottlingException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
$retryable = {};
|
|
148
|
+
retryAfterSeconds;
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "ThrottlingException",
|
|
152
|
+
$fault: "client",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
156
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const ValidationExceptionReason = {
|
|
160
|
+
CANNOT_PARSE: "cannotParse",
|
|
161
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
162
|
+
OTHER: "other",
|
|
163
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
164
|
+
};
|
|
165
|
+
class ValidationException extends EvsServiceException {
|
|
166
|
+
name = "ValidationException";
|
|
167
|
+
$fault = "client";
|
|
168
|
+
reason;
|
|
169
|
+
fieldList;
|
|
170
|
+
constructor(opts) {
|
|
171
|
+
super({
|
|
172
|
+
name: "ValidationException",
|
|
173
|
+
$fault: "client",
|
|
174
|
+
...opts,
|
|
175
|
+
});
|
|
176
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
177
|
+
this.reason = opts.reason;
|
|
178
|
+
this.fieldList = opts.fieldList;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
const _InstanceType = {
|
|
182
|
+
I4I_METAL: "i4i.metal",
|
|
229
183
|
};
|
|
184
|
+
const VcfVersion = {
|
|
185
|
+
VCF_5_2_1: "VCF-5.2.1",
|
|
186
|
+
};
|
|
187
|
+
const CheckResult = {
|
|
188
|
+
FAILED: "FAILED",
|
|
189
|
+
PASSED: "PASSED",
|
|
190
|
+
UNKNOWN: "UNKNOWN",
|
|
191
|
+
};
|
|
192
|
+
const CheckType = {
|
|
193
|
+
HOST_COUNT: "HOST_COUNT",
|
|
194
|
+
KEY_COVERAGE: "KEY_COVERAGE",
|
|
195
|
+
KEY_REUSE: "KEY_REUSE",
|
|
196
|
+
REACHABILITY: "REACHABILITY",
|
|
197
|
+
};
|
|
198
|
+
const EnvironmentState = {
|
|
199
|
+
CREATED: "CREATED",
|
|
200
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
201
|
+
CREATING: "CREATING",
|
|
202
|
+
DELETED: "DELETED",
|
|
203
|
+
DELETING: "DELETING",
|
|
204
|
+
};
|
|
205
|
+
const HostState = {
|
|
206
|
+
CREATED: "CREATED",
|
|
207
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
208
|
+
CREATING: "CREATING",
|
|
209
|
+
DELETED: "DELETED",
|
|
210
|
+
DELETING: "DELETING",
|
|
211
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
212
|
+
UPDATING: "UPDATING",
|
|
213
|
+
};
|
|
214
|
+
class ServiceQuotaExceededException extends EvsServiceException {
|
|
215
|
+
name = "ServiceQuotaExceededException";
|
|
216
|
+
$fault = "client";
|
|
217
|
+
constructor(opts) {
|
|
218
|
+
super({
|
|
219
|
+
name: "ServiceQuotaExceededException",
|
|
220
|
+
$fault: "client",
|
|
221
|
+
...opts,
|
|
222
|
+
});
|
|
223
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
class TagPolicyException extends EvsServiceException {
|
|
227
|
+
name = "TagPolicyException";
|
|
228
|
+
$fault = "client";
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "TagPolicyException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts,
|
|
234
|
+
});
|
|
235
|
+
Object.setPrototypeOf(this, TagPolicyException.prototype);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
class TooManyTagsException extends EvsServiceException {
|
|
239
|
+
name = "TooManyTagsException";
|
|
240
|
+
$fault = "client";
|
|
241
|
+
constructor(opts) {
|
|
242
|
+
super({
|
|
243
|
+
name: "TooManyTagsException",
|
|
244
|
+
$fault: "client",
|
|
245
|
+
...opts,
|
|
246
|
+
});
|
|
247
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
230
250
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
251
|
+
const se_AssociateEipToVlanCommand = async (input, context) => {
|
|
252
|
+
const headers = sharedHeaders("AssociateEipToVlan");
|
|
253
|
+
let body;
|
|
254
|
+
body = JSON.stringify(se_AssociateEipToVlanRequest(input));
|
|
255
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
|
+
};
|
|
257
|
+
const se_CreateEnvironmentCommand = async (input, context) => {
|
|
258
|
+
const headers = sharedHeaders("CreateEnvironment");
|
|
259
|
+
let body;
|
|
260
|
+
body = JSON.stringify(se_CreateEnvironmentRequest(input));
|
|
261
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
|
+
};
|
|
263
|
+
const se_CreateEnvironmentHostCommand = async (input, context) => {
|
|
264
|
+
const headers = sharedHeaders("CreateEnvironmentHost");
|
|
265
|
+
let body;
|
|
266
|
+
body = JSON.stringify(se_CreateEnvironmentHostRequest(input));
|
|
267
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
+
};
|
|
269
|
+
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
270
|
+
const headers = sharedHeaders("DeleteEnvironment");
|
|
271
|
+
let body;
|
|
272
|
+
body = JSON.stringify(se_DeleteEnvironmentRequest(input));
|
|
273
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
+
};
|
|
275
|
+
const se_DeleteEnvironmentHostCommand = async (input, context) => {
|
|
276
|
+
const headers = sharedHeaders("DeleteEnvironmentHost");
|
|
277
|
+
let body;
|
|
278
|
+
body = JSON.stringify(se_DeleteEnvironmentHostRequest(input));
|
|
279
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
|
+
};
|
|
281
|
+
const se_DisassociateEipFromVlanCommand = async (input, context) => {
|
|
282
|
+
const headers = sharedHeaders("DisassociateEipFromVlan");
|
|
283
|
+
let body;
|
|
284
|
+
body = JSON.stringify(se_DisassociateEipFromVlanRequest(input));
|
|
285
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
|
+
};
|
|
287
|
+
const se_GetEnvironmentCommand = async (input, context) => {
|
|
288
|
+
const headers = sharedHeaders("GetEnvironment");
|
|
289
|
+
let body;
|
|
290
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
291
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
|
+
};
|
|
293
|
+
const se_ListEnvironmentHostsCommand = async (input, context) => {
|
|
294
|
+
const headers = sharedHeaders("ListEnvironmentHosts");
|
|
295
|
+
let body;
|
|
296
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
297
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
|
+
};
|
|
299
|
+
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
300
|
+
const headers = sharedHeaders("ListEnvironments");
|
|
301
|
+
let body;
|
|
302
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
303
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
304
|
+
};
|
|
305
|
+
const se_ListEnvironmentVlansCommand = async (input, context) => {
|
|
306
|
+
const headers = sharedHeaders("ListEnvironmentVlans");
|
|
307
|
+
let body;
|
|
308
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
309
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
+
};
|
|
311
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
312
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
313
|
+
let body;
|
|
314
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
315
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
+
};
|
|
317
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
318
|
+
const headers = sharedHeaders("TagResource");
|
|
319
|
+
let body;
|
|
320
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
321
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
322
|
+
};
|
|
323
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
324
|
+
const headers = sharedHeaders("UntagResource");
|
|
325
|
+
let body;
|
|
326
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
327
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
|
+
};
|
|
329
|
+
const de_AssociateEipToVlanCommand = async (output, context) => {
|
|
330
|
+
if (output.statusCode >= 300) {
|
|
331
|
+
return de_CommandError(output, context);
|
|
332
|
+
}
|
|
333
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
334
|
+
let contents = {};
|
|
335
|
+
contents = de_AssociateEipToVlanResponse(data);
|
|
336
|
+
const response = {
|
|
337
|
+
$metadata: deserializeMetadata(output),
|
|
338
|
+
...contents,
|
|
339
|
+
};
|
|
340
|
+
return response;
|
|
341
|
+
};
|
|
342
|
+
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
343
|
+
if (output.statusCode >= 300) {
|
|
344
|
+
return de_CommandError(output, context);
|
|
345
|
+
}
|
|
346
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
347
|
+
let contents = {};
|
|
348
|
+
contents = de_CreateEnvironmentResponse(data);
|
|
349
|
+
const response = {
|
|
350
|
+
$metadata: deserializeMetadata(output),
|
|
351
|
+
...contents,
|
|
352
|
+
};
|
|
353
|
+
return response;
|
|
354
|
+
};
|
|
355
|
+
const de_CreateEnvironmentHostCommand = async (output, context) => {
|
|
356
|
+
if (output.statusCode >= 300) {
|
|
357
|
+
return de_CommandError(output, context);
|
|
358
|
+
}
|
|
359
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
360
|
+
let contents = {};
|
|
361
|
+
contents = de_CreateEnvironmentHostResponse(data);
|
|
362
|
+
const response = {
|
|
363
|
+
$metadata: deserializeMetadata(output),
|
|
364
|
+
...contents,
|
|
365
|
+
};
|
|
366
|
+
return response;
|
|
367
|
+
};
|
|
368
|
+
const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
369
|
+
if (output.statusCode >= 300) {
|
|
370
|
+
return de_CommandError(output, context);
|
|
371
|
+
}
|
|
372
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
373
|
+
let contents = {};
|
|
374
|
+
contents = de_DeleteEnvironmentResponse(data);
|
|
375
|
+
const response = {
|
|
376
|
+
$metadata: deserializeMetadata(output),
|
|
377
|
+
...contents,
|
|
378
|
+
};
|
|
379
|
+
return response;
|
|
380
|
+
};
|
|
381
|
+
const de_DeleteEnvironmentHostCommand = async (output, context) => {
|
|
382
|
+
if (output.statusCode >= 300) {
|
|
383
|
+
return de_CommandError(output, context);
|
|
384
|
+
}
|
|
385
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
386
|
+
let contents = {};
|
|
387
|
+
contents = de_DeleteEnvironmentHostResponse(data);
|
|
388
|
+
const response = {
|
|
389
|
+
$metadata: deserializeMetadata(output),
|
|
390
|
+
...contents,
|
|
391
|
+
};
|
|
392
|
+
return response;
|
|
393
|
+
};
|
|
394
|
+
const de_DisassociateEipFromVlanCommand = async (output, context) => {
|
|
395
|
+
if (output.statusCode >= 300) {
|
|
396
|
+
return de_CommandError(output, context);
|
|
397
|
+
}
|
|
398
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
399
|
+
let contents = {};
|
|
400
|
+
contents = de_DisassociateEipFromVlanResponse(data);
|
|
401
|
+
const response = {
|
|
402
|
+
$metadata: deserializeMetadata(output),
|
|
403
|
+
...contents,
|
|
404
|
+
};
|
|
405
|
+
return response;
|
|
406
|
+
};
|
|
407
|
+
const de_GetEnvironmentCommand = async (output, context) => {
|
|
408
|
+
if (output.statusCode >= 300) {
|
|
409
|
+
return de_CommandError(output, context);
|
|
410
|
+
}
|
|
411
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
412
|
+
let contents = {};
|
|
413
|
+
contents = de_GetEnvironmentResponse(data);
|
|
414
|
+
const response = {
|
|
415
|
+
$metadata: deserializeMetadata(output),
|
|
416
|
+
...contents,
|
|
417
|
+
};
|
|
418
|
+
return response;
|
|
419
|
+
};
|
|
420
|
+
const de_ListEnvironmentHostsCommand = async (output, context) => {
|
|
421
|
+
if (output.statusCode >= 300) {
|
|
422
|
+
return de_CommandError(output, context);
|
|
423
|
+
}
|
|
424
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
425
|
+
let contents = {};
|
|
426
|
+
contents = de_ListEnvironmentHostsResponse(data);
|
|
427
|
+
const response = {
|
|
428
|
+
$metadata: deserializeMetadata(output),
|
|
429
|
+
...contents,
|
|
430
|
+
};
|
|
431
|
+
return response;
|
|
432
|
+
};
|
|
433
|
+
const de_ListEnvironmentsCommand = async (output, context) => {
|
|
434
|
+
if (output.statusCode >= 300) {
|
|
435
|
+
return de_CommandError(output, context);
|
|
436
|
+
}
|
|
437
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
438
|
+
let contents = {};
|
|
439
|
+
contents = de_ListEnvironmentsResponse(data);
|
|
440
|
+
const response = {
|
|
441
|
+
$metadata: deserializeMetadata(output),
|
|
442
|
+
...contents,
|
|
443
|
+
};
|
|
444
|
+
return response;
|
|
445
|
+
};
|
|
446
|
+
const de_ListEnvironmentVlansCommand = async (output, context) => {
|
|
447
|
+
if (output.statusCode >= 300) {
|
|
448
|
+
return de_CommandError(output, context);
|
|
449
|
+
}
|
|
450
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
451
|
+
let contents = {};
|
|
452
|
+
contents = de_ListEnvironmentVlansResponse(data);
|
|
453
|
+
const response = {
|
|
454
|
+
$metadata: deserializeMetadata(output),
|
|
455
|
+
...contents,
|
|
456
|
+
};
|
|
457
|
+
return response;
|
|
458
|
+
};
|
|
459
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
460
|
+
if (output.statusCode >= 300) {
|
|
461
|
+
return de_CommandError(output, context);
|
|
462
|
+
}
|
|
463
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
464
|
+
let contents = {};
|
|
465
|
+
contents = smithyClient._json(data);
|
|
466
|
+
const response = {
|
|
467
|
+
$metadata: deserializeMetadata(output),
|
|
468
|
+
...contents,
|
|
469
|
+
};
|
|
470
|
+
return response;
|
|
471
|
+
};
|
|
472
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
473
|
+
if (output.statusCode >= 300) {
|
|
474
|
+
return de_CommandError(output, context);
|
|
475
|
+
}
|
|
476
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
477
|
+
let contents = {};
|
|
478
|
+
contents = smithyClient._json(data);
|
|
479
|
+
const response = {
|
|
480
|
+
$metadata: deserializeMetadata(output),
|
|
481
|
+
...contents,
|
|
482
|
+
};
|
|
483
|
+
return response;
|
|
484
|
+
};
|
|
485
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
486
|
+
if (output.statusCode >= 300) {
|
|
487
|
+
return de_CommandError(output, context);
|
|
488
|
+
}
|
|
489
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
490
|
+
let contents = {};
|
|
491
|
+
contents = smithyClient._json(data);
|
|
492
|
+
const response = {
|
|
493
|
+
$metadata: deserializeMetadata(output),
|
|
494
|
+
...contents,
|
|
495
|
+
};
|
|
496
|
+
return response;
|
|
497
|
+
};
|
|
498
|
+
const de_CommandError = async (output, context) => {
|
|
499
|
+
const parsedOutput = {
|
|
500
|
+
...output,
|
|
501
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
502
|
+
};
|
|
503
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
504
|
+
switch (errorCode) {
|
|
505
|
+
case "ResourceNotFoundException":
|
|
506
|
+
case "com.amazonaws.evs#ResourceNotFoundException":
|
|
507
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
508
|
+
case "ThrottlingException":
|
|
509
|
+
case "com.amazonaws.evs#ThrottlingException":
|
|
510
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
511
|
+
case "ValidationException":
|
|
512
|
+
case "com.amazonaws.evs#ValidationException":
|
|
513
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
514
|
+
case "ServiceQuotaExceededException":
|
|
515
|
+
case "com.amazonaws.evs#ServiceQuotaExceededException":
|
|
516
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
517
|
+
case "TagPolicyException":
|
|
518
|
+
case "com.amazonaws.evs#TagPolicyException":
|
|
519
|
+
throw await de_TagPolicyExceptionRes(parsedOutput);
|
|
520
|
+
case "TooManyTagsException":
|
|
521
|
+
case "com.amazonaws.evs#TooManyTagsException":
|
|
522
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput);
|
|
523
|
+
default:
|
|
524
|
+
const parsedBody = parsedOutput.body;
|
|
525
|
+
return throwDefaultError({
|
|
526
|
+
output,
|
|
527
|
+
parsedBody,
|
|
528
|
+
errorCode,
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
533
|
+
const body = parsedOutput.body;
|
|
534
|
+
const deserialized = smithyClient._json(body);
|
|
535
|
+
const exception = new ResourceNotFoundException({
|
|
536
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
537
|
+
...deserialized,
|
|
263
538
|
});
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
name = "ThrottlingException";
|
|
274
|
-
$fault = "client";
|
|
275
|
-
$retryable = {};
|
|
276
|
-
/**
|
|
277
|
-
* <p>The seconds to wait to retry.</p>
|
|
278
|
-
* @public
|
|
279
|
-
*/
|
|
280
|
-
retryAfterSeconds;
|
|
281
|
-
/**
|
|
282
|
-
* @internal
|
|
283
|
-
*/
|
|
284
|
-
constructor(opts) {
|
|
285
|
-
super({
|
|
286
|
-
name: "ThrottlingException",
|
|
287
|
-
$fault: "client",
|
|
288
|
-
...opts
|
|
539
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
540
|
+
};
|
|
541
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
542
|
+
const body = parsedOutput.body;
|
|
543
|
+
const deserialized = smithyClient._json(body);
|
|
544
|
+
const exception = new ServiceQuotaExceededException({
|
|
545
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
546
|
+
...deserialized,
|
|
289
547
|
});
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
UNKNOWN_OPERATION: "unknownOperation"
|
|
299
|
-
};
|
|
300
|
-
var ValidationException = class _ValidationException extends EvsServiceException {
|
|
301
|
-
static {
|
|
302
|
-
__name(this, "ValidationException");
|
|
303
|
-
}
|
|
304
|
-
name = "ValidationException";
|
|
305
|
-
$fault = "client";
|
|
306
|
-
/**
|
|
307
|
-
* <p>The reason for the exception.</p>
|
|
308
|
-
* @public
|
|
309
|
-
*/
|
|
310
|
-
reason;
|
|
311
|
-
/**
|
|
312
|
-
* <p>A list of fields that didn't validate.</p>
|
|
313
|
-
* @public
|
|
314
|
-
*/
|
|
315
|
-
fieldList;
|
|
316
|
-
/**
|
|
317
|
-
* @internal
|
|
318
|
-
*/
|
|
319
|
-
constructor(opts) {
|
|
320
|
-
super({
|
|
321
|
-
name: "ValidationException",
|
|
322
|
-
$fault: "client",
|
|
323
|
-
...opts
|
|
548
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
549
|
+
};
|
|
550
|
+
const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
|
|
551
|
+
const body = parsedOutput.body;
|
|
552
|
+
const deserialized = smithyClient._json(body);
|
|
553
|
+
const exception = new TagPolicyException({
|
|
554
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
555
|
+
...deserialized,
|
|
324
556
|
});
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
var VcfVersion = {
|
|
334
|
-
VCF_5_2_1: "VCF-5.2.1"
|
|
335
|
-
};
|
|
336
|
-
var CheckResult = {
|
|
337
|
-
FAILED: "FAILED",
|
|
338
|
-
PASSED: "PASSED",
|
|
339
|
-
UNKNOWN: "UNKNOWN"
|
|
340
|
-
};
|
|
341
|
-
var CheckType = {
|
|
342
|
-
HOST_COUNT: "HOST_COUNT",
|
|
343
|
-
KEY_COVERAGE: "KEY_COVERAGE",
|
|
344
|
-
KEY_REUSE: "KEY_REUSE",
|
|
345
|
-
REACHABILITY: "REACHABILITY"
|
|
346
|
-
};
|
|
347
|
-
var EnvironmentState = {
|
|
348
|
-
CREATED: "CREATED",
|
|
349
|
-
CREATE_FAILED: "CREATE_FAILED",
|
|
350
|
-
CREATING: "CREATING",
|
|
351
|
-
DELETED: "DELETED",
|
|
352
|
-
DELETING: "DELETING"
|
|
353
|
-
};
|
|
354
|
-
var HostState = {
|
|
355
|
-
CREATED: "CREATED",
|
|
356
|
-
CREATE_FAILED: "CREATE_FAILED",
|
|
357
|
-
CREATING: "CREATING",
|
|
358
|
-
DELETED: "DELETED",
|
|
359
|
-
DELETING: "DELETING",
|
|
360
|
-
UPDATE_FAILED: "UPDATE_FAILED",
|
|
361
|
-
UPDATING: "UPDATING"
|
|
362
|
-
};
|
|
363
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends EvsServiceException {
|
|
364
|
-
static {
|
|
365
|
-
__name(this, "ServiceQuotaExceededException");
|
|
366
|
-
}
|
|
367
|
-
name = "ServiceQuotaExceededException";
|
|
368
|
-
$fault = "client";
|
|
369
|
-
/**
|
|
370
|
-
* @internal
|
|
371
|
-
*/
|
|
372
|
-
constructor(opts) {
|
|
373
|
-
super({
|
|
374
|
-
name: "ServiceQuotaExceededException",
|
|
375
|
-
$fault: "client",
|
|
376
|
-
...opts
|
|
557
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
558
|
+
};
|
|
559
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
560
|
+
const body = parsedOutput.body;
|
|
561
|
+
const deserialized = smithyClient._json(body);
|
|
562
|
+
const exception = new ThrottlingException({
|
|
563
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
564
|
+
...deserialized,
|
|
377
565
|
});
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
$fault = "client";
|
|
387
|
-
/**
|
|
388
|
-
* @internal
|
|
389
|
-
*/
|
|
390
|
-
constructor(opts) {
|
|
391
|
-
super({
|
|
392
|
-
name: "TagPolicyException",
|
|
393
|
-
$fault: "client",
|
|
394
|
-
...opts
|
|
566
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
567
|
+
};
|
|
568
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
569
|
+
const body = parsedOutput.body;
|
|
570
|
+
const deserialized = smithyClient._json(body);
|
|
571
|
+
const exception = new TooManyTagsException({
|
|
572
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
573
|
+
...deserialized,
|
|
395
574
|
});
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
$fault = "client";
|
|
405
|
-
/**
|
|
406
|
-
* @internal
|
|
407
|
-
*/
|
|
408
|
-
constructor(opts) {
|
|
409
|
-
super({
|
|
410
|
-
name: "TooManyTagsException",
|
|
411
|
-
$fault: "client",
|
|
412
|
-
...opts
|
|
575
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
576
|
+
};
|
|
577
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
578
|
+
const body = parsedOutput.body;
|
|
579
|
+
const deserialized = smithyClient._json(body);
|
|
580
|
+
const exception = new ValidationException({
|
|
581
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
582
|
+
...deserialized,
|
|
413
583
|
});
|
|
414
|
-
|
|
415
|
-
}
|
|
584
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
416
585
|
};
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
}, "se_AssociateEipToVlanCommand");
|
|
425
|
-
var se_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
426
|
-
const headers = sharedHeaders("CreateEnvironment");
|
|
427
|
-
let body;
|
|
428
|
-
body = JSON.stringify(se_CreateEnvironmentRequest(input, context));
|
|
429
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
430
|
-
}, "se_CreateEnvironmentCommand");
|
|
431
|
-
var se_CreateEnvironmentHostCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("CreateEnvironmentHost");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify(se_CreateEnvironmentHostRequest(input, context));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
436
|
-
}, "se_CreateEnvironmentHostCommand");
|
|
437
|
-
var se_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
-
const headers = sharedHeaders("DeleteEnvironment");
|
|
439
|
-
let body;
|
|
440
|
-
body = JSON.stringify(se_DeleteEnvironmentRequest(input, context));
|
|
441
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
442
|
-
}, "se_DeleteEnvironmentCommand");
|
|
443
|
-
var se_DeleteEnvironmentHostCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
444
|
-
const headers = sharedHeaders("DeleteEnvironmentHost");
|
|
445
|
-
let body;
|
|
446
|
-
body = JSON.stringify(se_DeleteEnvironmentHostRequest(input, context));
|
|
447
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
448
|
-
}, "se_DeleteEnvironmentHostCommand");
|
|
449
|
-
var se_DisassociateEipFromVlanCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
450
|
-
const headers = sharedHeaders("DisassociateEipFromVlan");
|
|
451
|
-
let body;
|
|
452
|
-
body = JSON.stringify(se_DisassociateEipFromVlanRequest(input, context));
|
|
453
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
454
|
-
}, "se_DisassociateEipFromVlanCommand");
|
|
455
|
-
var se_GetEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
456
|
-
const headers = sharedHeaders("GetEnvironment");
|
|
457
|
-
let body;
|
|
458
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
459
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
460
|
-
}, "se_GetEnvironmentCommand");
|
|
461
|
-
var se_ListEnvironmentHostsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
462
|
-
const headers = sharedHeaders("ListEnvironmentHosts");
|
|
463
|
-
let body;
|
|
464
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
465
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
466
|
-
}, "se_ListEnvironmentHostsCommand");
|
|
467
|
-
var se_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
468
|
-
const headers = sharedHeaders("ListEnvironments");
|
|
469
|
-
let body;
|
|
470
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
471
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
472
|
-
}, "se_ListEnvironmentsCommand");
|
|
473
|
-
var se_ListEnvironmentVlansCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
474
|
-
const headers = sharedHeaders("ListEnvironmentVlans");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
477
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
478
|
-
}, "se_ListEnvironmentVlansCommand");
|
|
479
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
480
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
481
|
-
let body;
|
|
482
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
483
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
484
|
-
}, "se_ListTagsForResourceCommand");
|
|
485
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
486
|
-
const headers = sharedHeaders("TagResource");
|
|
487
|
-
let body;
|
|
488
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
489
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
490
|
-
}, "se_TagResourceCommand");
|
|
491
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
492
|
-
const headers = sharedHeaders("UntagResource");
|
|
493
|
-
let body;
|
|
494
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
495
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
496
|
-
}, "se_UntagResourceCommand");
|
|
497
|
-
var de_AssociateEipToVlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
498
|
-
if (output.statusCode >= 300) {
|
|
499
|
-
return de_CommandError(output, context);
|
|
500
|
-
}
|
|
501
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
502
|
-
let contents = {};
|
|
503
|
-
contents = de_AssociateEipToVlanResponse(data, context);
|
|
504
|
-
const response = {
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
...contents
|
|
507
|
-
};
|
|
508
|
-
return response;
|
|
509
|
-
}, "de_AssociateEipToVlanCommand");
|
|
510
|
-
var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
511
|
-
if (output.statusCode >= 300) {
|
|
512
|
-
return de_CommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
515
|
-
let contents = {};
|
|
516
|
-
contents = de_CreateEnvironmentResponse(data, context);
|
|
517
|
-
const response = {
|
|
518
|
-
$metadata: deserializeMetadata(output),
|
|
519
|
-
...contents
|
|
520
|
-
};
|
|
521
|
-
return response;
|
|
522
|
-
}, "de_CreateEnvironmentCommand");
|
|
523
|
-
var de_CreateEnvironmentHostCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
524
|
-
if (output.statusCode >= 300) {
|
|
525
|
-
return de_CommandError(output, context);
|
|
526
|
-
}
|
|
527
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
528
|
-
let contents = {};
|
|
529
|
-
contents = de_CreateEnvironmentHostResponse(data, context);
|
|
530
|
-
const response = {
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
...contents
|
|
533
|
-
};
|
|
534
|
-
return response;
|
|
535
|
-
}, "de_CreateEnvironmentHostCommand");
|
|
536
|
-
var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
537
|
-
if (output.statusCode >= 300) {
|
|
538
|
-
return de_CommandError(output, context);
|
|
539
|
-
}
|
|
540
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
541
|
-
let contents = {};
|
|
542
|
-
contents = de_DeleteEnvironmentResponse(data, context);
|
|
543
|
-
const response = {
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
...contents
|
|
546
|
-
};
|
|
547
|
-
return response;
|
|
548
|
-
}, "de_DeleteEnvironmentCommand");
|
|
549
|
-
var de_DeleteEnvironmentHostCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
550
|
-
if (output.statusCode >= 300) {
|
|
551
|
-
return de_CommandError(output, context);
|
|
552
|
-
}
|
|
553
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
554
|
-
let contents = {};
|
|
555
|
-
contents = de_DeleteEnvironmentHostResponse(data, context);
|
|
556
|
-
const response = {
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
...contents
|
|
559
|
-
};
|
|
560
|
-
return response;
|
|
561
|
-
}, "de_DeleteEnvironmentHostCommand");
|
|
562
|
-
var de_DisassociateEipFromVlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
563
|
-
if (output.statusCode >= 300) {
|
|
564
|
-
return de_CommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
567
|
-
let contents = {};
|
|
568
|
-
contents = de_DisassociateEipFromVlanResponse(data, context);
|
|
569
|
-
const response = {
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
...contents
|
|
572
|
-
};
|
|
573
|
-
return response;
|
|
574
|
-
}, "de_DisassociateEipFromVlanCommand");
|
|
575
|
-
var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
576
|
-
if (output.statusCode >= 300) {
|
|
577
|
-
return de_CommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
580
|
-
let contents = {};
|
|
581
|
-
contents = de_GetEnvironmentResponse(data, context);
|
|
582
|
-
const response = {
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
...contents
|
|
585
|
-
};
|
|
586
|
-
return response;
|
|
587
|
-
}, "de_GetEnvironmentCommand");
|
|
588
|
-
var de_ListEnvironmentHostsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
589
|
-
if (output.statusCode >= 300) {
|
|
590
|
-
return de_CommandError(output, context);
|
|
591
|
-
}
|
|
592
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
593
|
-
let contents = {};
|
|
594
|
-
contents = de_ListEnvironmentHostsResponse(data, context);
|
|
595
|
-
const response = {
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
...contents
|
|
598
|
-
};
|
|
599
|
-
return response;
|
|
600
|
-
}, "de_ListEnvironmentHostsCommand");
|
|
601
|
-
var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
602
|
-
if (output.statusCode >= 300) {
|
|
603
|
-
return de_CommandError(output, context);
|
|
604
|
-
}
|
|
605
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
606
|
-
let contents = {};
|
|
607
|
-
contents = de_ListEnvironmentsResponse(data, context);
|
|
608
|
-
const response = {
|
|
609
|
-
$metadata: deserializeMetadata(output),
|
|
610
|
-
...contents
|
|
611
|
-
};
|
|
612
|
-
return response;
|
|
613
|
-
}, "de_ListEnvironmentsCommand");
|
|
614
|
-
var de_ListEnvironmentVlansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
615
|
-
if (output.statusCode >= 300) {
|
|
616
|
-
return de_CommandError(output, context);
|
|
617
|
-
}
|
|
618
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
619
|
-
let contents = {};
|
|
620
|
-
contents = de_ListEnvironmentVlansResponse(data, context);
|
|
621
|
-
const response = {
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
...contents
|
|
624
|
-
};
|
|
625
|
-
return response;
|
|
626
|
-
}, "de_ListEnvironmentVlansCommand");
|
|
627
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
628
|
-
if (output.statusCode >= 300) {
|
|
629
|
-
return de_CommandError(output, context);
|
|
630
|
-
}
|
|
631
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
632
|
-
let contents = {};
|
|
633
|
-
contents = (0, import_smithy_client._json)(data);
|
|
634
|
-
const response = {
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
...contents
|
|
637
|
-
};
|
|
638
|
-
return response;
|
|
639
|
-
}, "de_ListTagsForResourceCommand");
|
|
640
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
641
|
-
if (output.statusCode >= 300) {
|
|
642
|
-
return de_CommandError(output, context);
|
|
643
|
-
}
|
|
644
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
645
|
-
let contents = {};
|
|
646
|
-
contents = (0, import_smithy_client._json)(data);
|
|
647
|
-
const response = {
|
|
648
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
-
...contents
|
|
650
|
-
};
|
|
651
|
-
return response;
|
|
652
|
-
}, "de_TagResourceCommand");
|
|
653
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
654
|
-
if (output.statusCode >= 300) {
|
|
655
|
-
return de_CommandError(output, context);
|
|
656
|
-
}
|
|
657
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
658
|
-
let contents = {};
|
|
659
|
-
contents = (0, import_smithy_client._json)(data);
|
|
660
|
-
const response = {
|
|
661
|
-
$metadata: deserializeMetadata(output),
|
|
662
|
-
...contents
|
|
663
|
-
};
|
|
664
|
-
return response;
|
|
665
|
-
}, "de_UntagResourceCommand");
|
|
666
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
667
|
-
const parsedOutput = {
|
|
668
|
-
...output,
|
|
669
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
670
|
-
};
|
|
671
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
672
|
-
switch (errorCode) {
|
|
673
|
-
case "ResourceNotFoundException":
|
|
674
|
-
case "com.amazonaws.evs#ResourceNotFoundException":
|
|
675
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
676
|
-
case "ThrottlingException":
|
|
677
|
-
case "com.amazonaws.evs#ThrottlingException":
|
|
678
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
679
|
-
case "ValidationException":
|
|
680
|
-
case "com.amazonaws.evs#ValidationException":
|
|
681
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
682
|
-
case "ServiceQuotaExceededException":
|
|
683
|
-
case "com.amazonaws.evs#ServiceQuotaExceededException":
|
|
684
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
685
|
-
case "TagPolicyException":
|
|
686
|
-
case "com.amazonaws.evs#TagPolicyException":
|
|
687
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
688
|
-
case "TooManyTagsException":
|
|
689
|
-
case "com.amazonaws.evs#TooManyTagsException":
|
|
690
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
691
|
-
default:
|
|
692
|
-
const parsedBody = parsedOutput.body;
|
|
693
|
-
return throwDefaultError({
|
|
694
|
-
output,
|
|
695
|
-
parsedBody,
|
|
696
|
-
errorCode
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
}, "de_CommandError");
|
|
700
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
701
|
-
const body = parsedOutput.body;
|
|
702
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
703
|
-
const exception = new ResourceNotFoundException({
|
|
704
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
705
|
-
...deserialized
|
|
706
|
-
});
|
|
707
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
708
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
709
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
710
|
-
const body = parsedOutput.body;
|
|
711
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
712
|
-
const exception = new ServiceQuotaExceededException({
|
|
713
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
714
|
-
...deserialized
|
|
715
|
-
});
|
|
716
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
717
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
718
|
-
var de_TagPolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
719
|
-
const body = parsedOutput.body;
|
|
720
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
721
|
-
const exception = new TagPolicyException({
|
|
722
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
723
|
-
...deserialized
|
|
724
|
-
});
|
|
725
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
726
|
-
}, "de_TagPolicyExceptionRes");
|
|
727
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
728
|
-
const body = parsedOutput.body;
|
|
729
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
730
|
-
const exception = new ThrottlingException({
|
|
731
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
732
|
-
...deserialized
|
|
733
|
-
});
|
|
734
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
735
|
-
}, "de_ThrottlingExceptionRes");
|
|
736
|
-
var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
737
|
-
const body = parsedOutput.body;
|
|
738
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
739
|
-
const exception = new TooManyTagsException({
|
|
740
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
741
|
-
...deserialized
|
|
742
|
-
});
|
|
743
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
744
|
-
}, "de_TooManyTagsExceptionRes");
|
|
745
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
746
|
-
const body = parsedOutput.body;
|
|
747
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
748
|
-
const exception = new ValidationException({
|
|
749
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
750
|
-
...deserialized
|
|
751
|
-
});
|
|
752
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
753
|
-
}, "de_ValidationExceptionRes");
|
|
754
|
-
var se_AssociateEipToVlanRequest = /* @__PURE__ */ __name((input, context) => {
|
|
755
|
-
return (0, import_smithy_client.take)(input, {
|
|
756
|
-
allocationId: [],
|
|
757
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
758
|
-
environmentId: [],
|
|
759
|
-
vlanName: []
|
|
760
|
-
});
|
|
761
|
-
}, "se_AssociateEipToVlanRequest");
|
|
762
|
-
var se_CreateEnvironmentHostRequest = /* @__PURE__ */ __name((input, context) => {
|
|
763
|
-
return (0, import_smithy_client.take)(input, {
|
|
764
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
765
|
-
environmentId: [],
|
|
766
|
-
host: import_smithy_client._json
|
|
767
|
-
});
|
|
768
|
-
}, "se_CreateEnvironmentHostRequest");
|
|
769
|
-
var se_CreateEnvironmentRequest = /* @__PURE__ */ __name((input, context) => {
|
|
770
|
-
return (0, import_smithy_client.take)(input, {
|
|
771
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
772
|
-
connectivityInfo: import_smithy_client._json,
|
|
773
|
-
environmentName: [],
|
|
774
|
-
hosts: import_smithy_client._json,
|
|
775
|
-
initialVlans: import_smithy_client._json,
|
|
776
|
-
kmsKeyId: [],
|
|
777
|
-
licenseInfo: import_smithy_client._json,
|
|
778
|
-
serviceAccessSecurityGroups: import_smithy_client._json,
|
|
779
|
-
serviceAccessSubnetId: [],
|
|
780
|
-
siteId: [],
|
|
781
|
-
tags: import_smithy_client._json,
|
|
782
|
-
termsAccepted: [],
|
|
783
|
-
vcfHostnames: import_smithy_client._json,
|
|
784
|
-
vcfVersion: [],
|
|
785
|
-
vpcId: []
|
|
786
|
-
});
|
|
787
|
-
}, "se_CreateEnvironmentRequest");
|
|
788
|
-
var se_DeleteEnvironmentHostRequest = /* @__PURE__ */ __name((input, context) => {
|
|
789
|
-
return (0, import_smithy_client.take)(input, {
|
|
790
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
791
|
-
environmentId: [],
|
|
792
|
-
hostName: []
|
|
793
|
-
});
|
|
794
|
-
}, "se_DeleteEnvironmentHostRequest");
|
|
795
|
-
var se_DeleteEnvironmentRequest = /* @__PURE__ */ __name((input, context) => {
|
|
796
|
-
return (0, import_smithy_client.take)(input, {
|
|
797
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
798
|
-
environmentId: []
|
|
799
|
-
});
|
|
800
|
-
}, "se_DeleteEnvironmentRequest");
|
|
801
|
-
var se_DisassociateEipFromVlanRequest = /* @__PURE__ */ __name((input, context) => {
|
|
802
|
-
return (0, import_smithy_client.take)(input, {
|
|
803
|
-
associationId: [],
|
|
804
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
805
|
-
environmentId: [],
|
|
806
|
-
vlanName: []
|
|
807
|
-
});
|
|
808
|
-
}, "se_DisassociateEipFromVlanRequest");
|
|
809
|
-
var de_AssociateEipToVlanResponse = /* @__PURE__ */ __name((output, context) => {
|
|
810
|
-
return (0, import_smithy_client.take)(output, {
|
|
811
|
-
vlan: /* @__PURE__ */ __name((_) => de_Vlan(_, context), "vlan")
|
|
812
|
-
});
|
|
813
|
-
}, "de_AssociateEipToVlanResponse");
|
|
814
|
-
var de_Check = /* @__PURE__ */ __name((output, context) => {
|
|
815
|
-
return (0, import_smithy_client.take)(output, {
|
|
816
|
-
impairedSince: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "impairedSince"),
|
|
817
|
-
result: import_smithy_client.expectString,
|
|
818
|
-
type: import_smithy_client.expectString
|
|
819
|
-
});
|
|
820
|
-
}, "de_Check");
|
|
821
|
-
var de_ChecksList = /* @__PURE__ */ __name((output, context) => {
|
|
822
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
823
|
-
return de_Check(entry, context);
|
|
824
|
-
});
|
|
825
|
-
return retVal;
|
|
826
|
-
}, "de_ChecksList");
|
|
827
|
-
var de_CreateEnvironmentHostResponse = /* @__PURE__ */ __name((output, context) => {
|
|
828
|
-
return (0, import_smithy_client.take)(output, {
|
|
829
|
-
environmentSummary: /* @__PURE__ */ __name((_) => de_EnvironmentSummary(_, context), "environmentSummary"),
|
|
830
|
-
host: /* @__PURE__ */ __name((_) => de_Host(_, context), "host")
|
|
831
|
-
});
|
|
832
|
-
}, "de_CreateEnvironmentHostResponse");
|
|
833
|
-
var de_CreateEnvironmentResponse = /* @__PURE__ */ __name((output, context) => {
|
|
834
|
-
return (0, import_smithy_client.take)(output, {
|
|
835
|
-
environment: /* @__PURE__ */ __name((_) => de_Environment(_, context), "environment")
|
|
836
|
-
});
|
|
837
|
-
}, "de_CreateEnvironmentResponse");
|
|
838
|
-
var de_DeleteEnvironmentHostResponse = /* @__PURE__ */ __name((output, context) => {
|
|
839
|
-
return (0, import_smithy_client.take)(output, {
|
|
840
|
-
environmentSummary: /* @__PURE__ */ __name((_) => de_EnvironmentSummary(_, context), "environmentSummary"),
|
|
841
|
-
host: /* @__PURE__ */ __name((_) => de_Host(_, context), "host")
|
|
842
|
-
});
|
|
843
|
-
}, "de_DeleteEnvironmentHostResponse");
|
|
844
|
-
var de_DeleteEnvironmentResponse = /* @__PURE__ */ __name((output, context) => {
|
|
845
|
-
return (0, import_smithy_client.take)(output, {
|
|
846
|
-
environment: /* @__PURE__ */ __name((_) => de_Environment(_, context), "environment")
|
|
847
|
-
});
|
|
848
|
-
}, "de_DeleteEnvironmentResponse");
|
|
849
|
-
var de_DisassociateEipFromVlanResponse = /* @__PURE__ */ __name((output, context) => {
|
|
850
|
-
return (0, import_smithy_client.take)(output, {
|
|
851
|
-
vlan: /* @__PURE__ */ __name((_) => de_Vlan(_, context), "vlan")
|
|
852
|
-
});
|
|
853
|
-
}, "de_DisassociateEipFromVlanResponse");
|
|
854
|
-
var de_Environment = /* @__PURE__ */ __name((output, context) => {
|
|
855
|
-
return (0, import_smithy_client.take)(output, {
|
|
856
|
-
checks: /* @__PURE__ */ __name((_) => de_ChecksList(_, context), "checks"),
|
|
857
|
-
connectivityInfo: import_smithy_client._json,
|
|
858
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
859
|
-
credentials: import_smithy_client._json,
|
|
860
|
-
environmentArn: import_smithy_client.expectString,
|
|
861
|
-
environmentId: import_smithy_client.expectString,
|
|
862
|
-
environmentName: import_smithy_client.expectString,
|
|
863
|
-
environmentState: import_smithy_client.expectString,
|
|
864
|
-
environmentStatus: import_smithy_client.expectString,
|
|
865
|
-
kmsKeyId: import_smithy_client.expectString,
|
|
866
|
-
licenseInfo: import_smithy_client._json,
|
|
867
|
-
modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedAt"),
|
|
868
|
-
serviceAccessSecurityGroups: import_smithy_client._json,
|
|
869
|
-
serviceAccessSubnetId: import_smithy_client.expectString,
|
|
870
|
-
siteId: import_smithy_client.expectString,
|
|
871
|
-
stateDetails: import_smithy_client.expectString,
|
|
872
|
-
termsAccepted: import_smithy_client.expectBoolean,
|
|
873
|
-
vcfHostnames: import_smithy_client._json,
|
|
874
|
-
vcfVersion: import_smithy_client.expectString,
|
|
875
|
-
vpcId: import_smithy_client.expectString
|
|
876
|
-
});
|
|
877
|
-
}, "de_Environment");
|
|
878
|
-
var de_EnvironmentSummary = /* @__PURE__ */ __name((output, context) => {
|
|
879
|
-
return (0, import_smithy_client.take)(output, {
|
|
880
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
881
|
-
environmentArn: import_smithy_client.expectString,
|
|
882
|
-
environmentId: import_smithy_client.expectString,
|
|
883
|
-
environmentName: import_smithy_client.expectString,
|
|
884
|
-
environmentState: import_smithy_client.expectString,
|
|
885
|
-
environmentStatus: import_smithy_client.expectString,
|
|
886
|
-
modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedAt"),
|
|
887
|
-
vcfVersion: import_smithy_client.expectString
|
|
888
|
-
});
|
|
889
|
-
}, "de_EnvironmentSummary");
|
|
890
|
-
var de_EnvironmentSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
891
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
892
|
-
return de_EnvironmentSummary(entry, context);
|
|
893
|
-
});
|
|
894
|
-
return retVal;
|
|
895
|
-
}, "de_EnvironmentSummaryList");
|
|
896
|
-
var de_GetEnvironmentResponse = /* @__PURE__ */ __name((output, context) => {
|
|
897
|
-
return (0, import_smithy_client.take)(output, {
|
|
898
|
-
environment: /* @__PURE__ */ __name((_) => de_Environment(_, context), "environment")
|
|
899
|
-
});
|
|
900
|
-
}, "de_GetEnvironmentResponse");
|
|
901
|
-
var de_Host = /* @__PURE__ */ __name((output, context) => {
|
|
902
|
-
return (0, import_smithy_client.take)(output, {
|
|
903
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
904
|
-
dedicatedHostId: import_smithy_client.expectString,
|
|
905
|
-
ec2InstanceId: import_smithy_client.expectString,
|
|
906
|
-
hostName: import_smithy_client.expectString,
|
|
907
|
-
hostState: import_smithy_client.expectString,
|
|
908
|
-
instanceType: import_smithy_client.expectString,
|
|
909
|
-
ipAddress: import_smithy_client.expectString,
|
|
910
|
-
keyName: import_smithy_client.expectString,
|
|
911
|
-
modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedAt"),
|
|
912
|
-
networkInterfaces: import_smithy_client._json,
|
|
913
|
-
placementGroupId: import_smithy_client.expectString,
|
|
914
|
-
stateDetails: import_smithy_client.expectString
|
|
915
|
-
});
|
|
916
|
-
}, "de_Host");
|
|
917
|
-
var de_HostList = /* @__PURE__ */ __name((output, context) => {
|
|
918
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
919
|
-
return de_Host(entry, context);
|
|
920
|
-
});
|
|
921
|
-
return retVal;
|
|
922
|
-
}, "de_HostList");
|
|
923
|
-
var de_ListEnvironmentHostsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
924
|
-
return (0, import_smithy_client.take)(output, {
|
|
925
|
-
environmentHosts: /* @__PURE__ */ __name((_) => de_HostList(_, context), "environmentHosts"),
|
|
926
|
-
nextToken: import_smithy_client.expectString
|
|
927
|
-
});
|
|
928
|
-
}, "de_ListEnvironmentHostsResponse");
|
|
929
|
-
var de_ListEnvironmentsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
930
|
-
return (0, import_smithy_client.take)(output, {
|
|
931
|
-
environmentSummaries: /* @__PURE__ */ __name((_) => de_EnvironmentSummaryList(_, context), "environmentSummaries"),
|
|
932
|
-
nextToken: import_smithy_client.expectString
|
|
933
|
-
});
|
|
934
|
-
}, "de_ListEnvironmentsResponse");
|
|
935
|
-
var de_ListEnvironmentVlansResponse = /* @__PURE__ */ __name((output, context) => {
|
|
936
|
-
return (0, import_smithy_client.take)(output, {
|
|
937
|
-
environmentVlans: /* @__PURE__ */ __name((_) => de_VlanList(_, context), "environmentVlans"),
|
|
938
|
-
nextToken: import_smithy_client.expectString
|
|
939
|
-
});
|
|
940
|
-
}, "de_ListEnvironmentVlansResponse");
|
|
941
|
-
var de_Vlan = /* @__PURE__ */ __name((output, context) => {
|
|
942
|
-
return (0, import_smithy_client.take)(output, {
|
|
943
|
-
availabilityZone: import_smithy_client.expectString,
|
|
944
|
-
cidr: import_smithy_client.expectString,
|
|
945
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
946
|
-
eipAssociations: import_smithy_client._json,
|
|
947
|
-
functionName: import_smithy_client.expectString,
|
|
948
|
-
isPublic: import_smithy_client.expectBoolean,
|
|
949
|
-
modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedAt"),
|
|
950
|
-
networkAclId: import_smithy_client.expectString,
|
|
951
|
-
stateDetails: import_smithy_client.expectString,
|
|
952
|
-
subnetId: import_smithy_client.expectString,
|
|
953
|
-
vlanId: import_smithy_client.expectInt32,
|
|
954
|
-
vlanState: import_smithy_client.expectString
|
|
955
|
-
});
|
|
956
|
-
}, "de_Vlan");
|
|
957
|
-
var de_VlanList = /* @__PURE__ */ __name((output, context) => {
|
|
958
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
959
|
-
return de_Vlan(entry, context);
|
|
960
|
-
});
|
|
961
|
-
return retVal;
|
|
962
|
-
}, "de_VlanList");
|
|
963
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
964
|
-
httpStatusCode: output.statusCode,
|
|
965
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
966
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
967
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
968
|
-
}), "deserializeMetadata");
|
|
969
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(EvsServiceException);
|
|
970
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
971
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
972
|
-
const contents = {
|
|
973
|
-
protocol,
|
|
974
|
-
hostname,
|
|
975
|
-
port,
|
|
976
|
-
method: "POST",
|
|
977
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
978
|
-
headers
|
|
979
|
-
};
|
|
980
|
-
if (resolvedHostname !== void 0) {
|
|
981
|
-
contents.hostname = resolvedHostname;
|
|
982
|
-
}
|
|
983
|
-
if (body !== void 0) {
|
|
984
|
-
contents.body = body;
|
|
985
|
-
}
|
|
986
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
987
|
-
}, "buildHttpRpcRequest");
|
|
988
|
-
function sharedHeaders(operation) {
|
|
989
|
-
return {
|
|
990
|
-
"content-type": "application/x-amz-json-1.0",
|
|
991
|
-
"x-amz-target": `AmazonElasticVMwareService.${operation}`
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
995
|
-
|
|
996
|
-
// src/commands/AssociateEipToVlanCommand.ts
|
|
997
|
-
var AssociateEipToVlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
998
|
-
return [
|
|
999
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1000
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1001
|
-
];
|
|
1002
|
-
}).s("AmazonElasticVMwareService", "AssociateEipToVlan", {}).n("EvsClient", "AssociateEipToVlanCommand").f(void 0, void 0).ser(se_AssociateEipToVlanCommand).de(de_AssociateEipToVlanCommand).build() {
|
|
1003
|
-
static {
|
|
1004
|
-
__name(this, "AssociateEipToVlanCommand");
|
|
1005
|
-
}
|
|
586
|
+
const se_AssociateEipToVlanRequest = (input, context) => {
|
|
587
|
+
return smithyClient.take(input, {
|
|
588
|
+
allocationId: [],
|
|
589
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
590
|
+
environmentId: [],
|
|
591
|
+
vlanName: [],
|
|
592
|
+
});
|
|
1006
593
|
};
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
return [
|
|
1014
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1015
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1016
|
-
];
|
|
1017
|
-
}).s("AmazonElasticVMwareService", "CreateEnvironment", {}).n("EvsClient", "CreateEnvironmentCommand").f(void 0, void 0).ser(se_CreateEnvironmentCommand).de(de_CreateEnvironmentCommand).build() {
|
|
1018
|
-
static {
|
|
1019
|
-
__name(this, "CreateEnvironmentCommand");
|
|
1020
|
-
}
|
|
594
|
+
const se_CreateEnvironmentHostRequest = (input, context) => {
|
|
595
|
+
return smithyClient.take(input, {
|
|
596
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
597
|
+
environmentId: [],
|
|
598
|
+
host: smithyClient._json,
|
|
599
|
+
});
|
|
1021
600
|
};
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
601
|
+
const se_CreateEnvironmentRequest = (input, context) => {
|
|
602
|
+
return smithyClient.take(input, {
|
|
603
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
604
|
+
connectivityInfo: smithyClient._json,
|
|
605
|
+
environmentName: [],
|
|
606
|
+
hosts: smithyClient._json,
|
|
607
|
+
initialVlans: smithyClient._json,
|
|
608
|
+
kmsKeyId: [],
|
|
609
|
+
licenseInfo: smithyClient._json,
|
|
610
|
+
serviceAccessSecurityGroups: smithyClient._json,
|
|
611
|
+
serviceAccessSubnetId: [],
|
|
612
|
+
siteId: [],
|
|
613
|
+
tags: smithyClient._json,
|
|
614
|
+
termsAccepted: [],
|
|
615
|
+
vcfHostnames: smithyClient._json,
|
|
616
|
+
vcfVersion: [],
|
|
617
|
+
vpcId: [],
|
|
618
|
+
});
|
|
1036
619
|
};
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
return [
|
|
1044
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1045
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1046
|
-
];
|
|
1047
|
-
}).s("AmazonElasticVMwareService", "DeleteEnvironment", {}).n("EvsClient", "DeleteEnvironmentCommand").f(void 0, void 0).ser(se_DeleteEnvironmentCommand).de(de_DeleteEnvironmentCommand).build() {
|
|
1048
|
-
static {
|
|
1049
|
-
__name(this, "DeleteEnvironmentCommand");
|
|
1050
|
-
}
|
|
620
|
+
const se_DeleteEnvironmentHostRequest = (input, context) => {
|
|
621
|
+
return smithyClient.take(input, {
|
|
622
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
623
|
+
environmentId: [],
|
|
624
|
+
hostName: [],
|
|
625
|
+
});
|
|
1051
626
|
};
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
var DeleteEnvironmentHostCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1058
|
-
return [
|
|
1059
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1060
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1061
|
-
];
|
|
1062
|
-
}).s("AmazonElasticVMwareService", "DeleteEnvironmentHost", {}).n("EvsClient", "DeleteEnvironmentHostCommand").f(void 0, void 0).ser(se_DeleteEnvironmentHostCommand).de(de_DeleteEnvironmentHostCommand).build() {
|
|
1063
|
-
static {
|
|
1064
|
-
__name(this, "DeleteEnvironmentHostCommand");
|
|
1065
|
-
}
|
|
627
|
+
const se_DeleteEnvironmentRequest = (input, context) => {
|
|
628
|
+
return smithyClient.take(input, {
|
|
629
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
630
|
+
environmentId: [],
|
|
631
|
+
});
|
|
1066
632
|
};
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1075
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1076
|
-
];
|
|
1077
|
-
}).s("AmazonElasticVMwareService", "DisassociateEipFromVlan", {}).n("EvsClient", "DisassociateEipFromVlanCommand").f(void 0, void 0).ser(se_DisassociateEipFromVlanCommand).de(de_DisassociateEipFromVlanCommand).build() {
|
|
1078
|
-
static {
|
|
1079
|
-
__name(this, "DisassociateEipFromVlanCommand");
|
|
1080
|
-
}
|
|
633
|
+
const se_DisassociateEipFromVlanRequest = (input, context) => {
|
|
634
|
+
return smithyClient.take(input, {
|
|
635
|
+
associationId: [],
|
|
636
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
637
|
+
environmentId: [],
|
|
638
|
+
vlanName: [],
|
|
639
|
+
});
|
|
1081
640
|
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
var GetEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1088
|
-
return [
|
|
1089
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1090
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1091
|
-
];
|
|
1092
|
-
}).s("AmazonElasticVMwareService", "GetEnvironment", {}).n("EvsClient", "GetEnvironmentCommand").f(void 0, void 0).ser(se_GetEnvironmentCommand).de(de_GetEnvironmentCommand).build() {
|
|
1093
|
-
static {
|
|
1094
|
-
__name(this, "GetEnvironmentCommand");
|
|
1095
|
-
}
|
|
641
|
+
const de_AssociateEipToVlanResponse = (output, context) => {
|
|
642
|
+
return smithyClient.take(output, {
|
|
643
|
+
vlan: (_) => de_Vlan(_),
|
|
644
|
+
});
|
|
1096
645
|
};
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
return [
|
|
1104
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1105
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1106
|
-
];
|
|
1107
|
-
}).s("AmazonElasticVMwareService", "ListEnvironmentHosts", {}).n("EvsClient", "ListEnvironmentHostsCommand").f(void 0, void 0).ser(se_ListEnvironmentHostsCommand).de(de_ListEnvironmentHostsCommand).build() {
|
|
1108
|
-
static {
|
|
1109
|
-
__name(this, "ListEnvironmentHostsCommand");
|
|
1110
|
-
}
|
|
646
|
+
const de_Check = (output, context) => {
|
|
647
|
+
return smithyClient.take(output, {
|
|
648
|
+
impairedSince: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
649
|
+
result: smithyClient.expectString,
|
|
650
|
+
type: smithyClient.expectString,
|
|
651
|
+
});
|
|
1111
652
|
};
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1120
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1121
|
-
];
|
|
1122
|
-
}).s("AmazonElasticVMwareService", "ListEnvironments", {}).n("EvsClient", "ListEnvironmentsCommand").f(void 0, void 0).ser(se_ListEnvironmentsCommand).de(de_ListEnvironmentsCommand).build() {
|
|
1123
|
-
static {
|
|
1124
|
-
__name(this, "ListEnvironmentsCommand");
|
|
1125
|
-
}
|
|
653
|
+
const de_ChecksList = (output, context) => {
|
|
654
|
+
const retVal = (output || [])
|
|
655
|
+
.filter((e) => e != null)
|
|
656
|
+
.map((entry) => {
|
|
657
|
+
return de_Check(entry);
|
|
658
|
+
});
|
|
659
|
+
return retVal;
|
|
1126
660
|
};
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
var ListEnvironmentVlansCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1133
|
-
return [
|
|
1134
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1135
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1136
|
-
];
|
|
1137
|
-
}).s("AmazonElasticVMwareService", "ListEnvironmentVlans", {}).n("EvsClient", "ListEnvironmentVlansCommand").f(void 0, void 0).ser(se_ListEnvironmentVlansCommand).de(de_ListEnvironmentVlansCommand).build() {
|
|
1138
|
-
static {
|
|
1139
|
-
__name(this, "ListEnvironmentVlansCommand");
|
|
1140
|
-
}
|
|
661
|
+
const de_CreateEnvironmentHostResponse = (output, context) => {
|
|
662
|
+
return smithyClient.take(output, {
|
|
663
|
+
environmentSummary: (_) => de_EnvironmentSummary(_),
|
|
664
|
+
host: (_) => de_Host(_),
|
|
665
|
+
});
|
|
1141
666
|
};
|
|
667
|
+
const de_CreateEnvironmentResponse = (output, context) => {
|
|
668
|
+
return smithyClient.take(output, {
|
|
669
|
+
environment: (_) => de_Environment(_),
|
|
670
|
+
});
|
|
671
|
+
};
|
|
672
|
+
const de_DeleteEnvironmentHostResponse = (output, context) => {
|
|
673
|
+
return smithyClient.take(output, {
|
|
674
|
+
environmentSummary: (_) => de_EnvironmentSummary(_),
|
|
675
|
+
host: (_) => de_Host(_),
|
|
676
|
+
});
|
|
677
|
+
};
|
|
678
|
+
const de_DeleteEnvironmentResponse = (output, context) => {
|
|
679
|
+
return smithyClient.take(output, {
|
|
680
|
+
environment: (_) => de_Environment(_),
|
|
681
|
+
});
|
|
682
|
+
};
|
|
683
|
+
const de_DisassociateEipFromVlanResponse = (output, context) => {
|
|
684
|
+
return smithyClient.take(output, {
|
|
685
|
+
vlan: (_) => de_Vlan(_),
|
|
686
|
+
});
|
|
687
|
+
};
|
|
688
|
+
const de_Environment = (output, context) => {
|
|
689
|
+
return smithyClient.take(output, {
|
|
690
|
+
checks: (_) => de_ChecksList(_),
|
|
691
|
+
connectivityInfo: smithyClient._json,
|
|
692
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
693
|
+
credentials: smithyClient._json,
|
|
694
|
+
environmentArn: smithyClient.expectString,
|
|
695
|
+
environmentId: smithyClient.expectString,
|
|
696
|
+
environmentName: smithyClient.expectString,
|
|
697
|
+
environmentState: smithyClient.expectString,
|
|
698
|
+
environmentStatus: smithyClient.expectString,
|
|
699
|
+
kmsKeyId: smithyClient.expectString,
|
|
700
|
+
licenseInfo: smithyClient._json,
|
|
701
|
+
modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
702
|
+
serviceAccessSecurityGroups: smithyClient._json,
|
|
703
|
+
serviceAccessSubnetId: smithyClient.expectString,
|
|
704
|
+
siteId: smithyClient.expectString,
|
|
705
|
+
stateDetails: smithyClient.expectString,
|
|
706
|
+
termsAccepted: smithyClient.expectBoolean,
|
|
707
|
+
vcfHostnames: smithyClient._json,
|
|
708
|
+
vcfVersion: smithyClient.expectString,
|
|
709
|
+
vpcId: smithyClient.expectString,
|
|
710
|
+
});
|
|
711
|
+
};
|
|
712
|
+
const de_EnvironmentSummary = (output, context) => {
|
|
713
|
+
return smithyClient.take(output, {
|
|
714
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
715
|
+
environmentArn: smithyClient.expectString,
|
|
716
|
+
environmentId: smithyClient.expectString,
|
|
717
|
+
environmentName: smithyClient.expectString,
|
|
718
|
+
environmentState: smithyClient.expectString,
|
|
719
|
+
environmentStatus: smithyClient.expectString,
|
|
720
|
+
modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
721
|
+
vcfVersion: smithyClient.expectString,
|
|
722
|
+
});
|
|
723
|
+
};
|
|
724
|
+
const de_EnvironmentSummaryList = (output, context) => {
|
|
725
|
+
const retVal = (output || [])
|
|
726
|
+
.filter((e) => e != null)
|
|
727
|
+
.map((entry) => {
|
|
728
|
+
return de_EnvironmentSummary(entry);
|
|
729
|
+
});
|
|
730
|
+
return retVal;
|
|
731
|
+
};
|
|
732
|
+
const de_GetEnvironmentResponse = (output, context) => {
|
|
733
|
+
return smithyClient.take(output, {
|
|
734
|
+
environment: (_) => de_Environment(_),
|
|
735
|
+
});
|
|
736
|
+
};
|
|
737
|
+
const de_Host = (output, context) => {
|
|
738
|
+
return smithyClient.take(output, {
|
|
739
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
740
|
+
dedicatedHostId: smithyClient.expectString,
|
|
741
|
+
ec2InstanceId: smithyClient.expectString,
|
|
742
|
+
hostName: smithyClient.expectString,
|
|
743
|
+
hostState: smithyClient.expectString,
|
|
744
|
+
instanceType: smithyClient.expectString,
|
|
745
|
+
ipAddress: smithyClient.expectString,
|
|
746
|
+
keyName: smithyClient.expectString,
|
|
747
|
+
modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
748
|
+
networkInterfaces: smithyClient._json,
|
|
749
|
+
placementGroupId: smithyClient.expectString,
|
|
750
|
+
stateDetails: smithyClient.expectString,
|
|
751
|
+
});
|
|
752
|
+
};
|
|
753
|
+
const de_HostList = (output, context) => {
|
|
754
|
+
const retVal = (output || [])
|
|
755
|
+
.filter((e) => e != null)
|
|
756
|
+
.map((entry) => {
|
|
757
|
+
return de_Host(entry);
|
|
758
|
+
});
|
|
759
|
+
return retVal;
|
|
760
|
+
};
|
|
761
|
+
const de_ListEnvironmentHostsResponse = (output, context) => {
|
|
762
|
+
return smithyClient.take(output, {
|
|
763
|
+
environmentHosts: (_) => de_HostList(_),
|
|
764
|
+
nextToken: smithyClient.expectString,
|
|
765
|
+
});
|
|
766
|
+
};
|
|
767
|
+
const de_ListEnvironmentsResponse = (output, context) => {
|
|
768
|
+
return smithyClient.take(output, {
|
|
769
|
+
environmentSummaries: (_) => de_EnvironmentSummaryList(_),
|
|
770
|
+
nextToken: smithyClient.expectString,
|
|
771
|
+
});
|
|
772
|
+
};
|
|
773
|
+
const de_ListEnvironmentVlansResponse = (output, context) => {
|
|
774
|
+
return smithyClient.take(output, {
|
|
775
|
+
environmentVlans: (_) => de_VlanList(_),
|
|
776
|
+
nextToken: smithyClient.expectString,
|
|
777
|
+
});
|
|
778
|
+
};
|
|
779
|
+
const de_Vlan = (output, context) => {
|
|
780
|
+
return smithyClient.take(output, {
|
|
781
|
+
availabilityZone: smithyClient.expectString,
|
|
782
|
+
cidr: smithyClient.expectString,
|
|
783
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
784
|
+
eipAssociations: smithyClient._json,
|
|
785
|
+
functionName: smithyClient.expectString,
|
|
786
|
+
isPublic: smithyClient.expectBoolean,
|
|
787
|
+
modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
788
|
+
networkAclId: smithyClient.expectString,
|
|
789
|
+
stateDetails: smithyClient.expectString,
|
|
790
|
+
subnetId: smithyClient.expectString,
|
|
791
|
+
vlanId: smithyClient.expectInt32,
|
|
792
|
+
vlanState: smithyClient.expectString,
|
|
793
|
+
});
|
|
794
|
+
};
|
|
795
|
+
const de_VlanList = (output, context) => {
|
|
796
|
+
const retVal = (output || [])
|
|
797
|
+
.filter((e) => e != null)
|
|
798
|
+
.map((entry) => {
|
|
799
|
+
return de_Vlan(entry);
|
|
800
|
+
});
|
|
801
|
+
return retVal;
|
|
802
|
+
};
|
|
803
|
+
const deserializeMetadata = (output) => ({
|
|
804
|
+
httpStatusCode: output.statusCode,
|
|
805
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
806
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
807
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
808
|
+
});
|
|
809
|
+
const throwDefaultError = smithyClient.withBaseException(EvsServiceException);
|
|
810
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
811
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
812
|
+
const contents = {
|
|
813
|
+
protocol,
|
|
814
|
+
hostname,
|
|
815
|
+
port,
|
|
816
|
+
method: "POST",
|
|
817
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
818
|
+
headers,
|
|
819
|
+
};
|
|
820
|
+
if (body !== undefined) {
|
|
821
|
+
contents.body = body;
|
|
822
|
+
}
|
|
823
|
+
return new protocolHttp.HttpRequest(contents);
|
|
824
|
+
};
|
|
825
|
+
function sharedHeaders(operation) {
|
|
826
|
+
return {
|
|
827
|
+
"content-type": "application/x-amz-json-1.0",
|
|
828
|
+
"x-amz-target": `AmazonElasticVMwareService.${operation}`,
|
|
829
|
+
};
|
|
830
|
+
}
|
|
1142
831
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
832
|
+
class AssociateEipToVlanCommand extends smithyClient.Command
|
|
833
|
+
.classBuilder()
|
|
834
|
+
.ep(commonParams)
|
|
835
|
+
.m(function (Command, cs, config, o) {
|
|
836
|
+
return [
|
|
837
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
838
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
839
|
+
];
|
|
840
|
+
})
|
|
841
|
+
.s("AmazonElasticVMwareService", "AssociateEipToVlan", {})
|
|
842
|
+
.n("EvsClient", "AssociateEipToVlanCommand")
|
|
843
|
+
.f(void 0, void 0)
|
|
844
|
+
.ser(se_AssociateEipToVlanCommand)
|
|
845
|
+
.de(de_AssociateEipToVlanCommand)
|
|
846
|
+
.build() {
|
|
847
|
+
}
|
|
1146
848
|
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
(
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
}
|
|
849
|
+
class CreateEnvironmentCommand extends smithyClient.Command
|
|
850
|
+
.classBuilder()
|
|
851
|
+
.ep(commonParams)
|
|
852
|
+
.m(function (Command, cs, config, o) {
|
|
853
|
+
return [
|
|
854
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
855
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
856
|
+
];
|
|
857
|
+
})
|
|
858
|
+
.s("AmazonElasticVMwareService", "CreateEnvironment", {})
|
|
859
|
+
.n("EvsClient", "CreateEnvironmentCommand")
|
|
860
|
+
.f(void 0, void 0)
|
|
861
|
+
.ser(se_CreateEnvironmentCommand)
|
|
862
|
+
.de(de_CreateEnvironmentCommand)
|
|
863
|
+
.build() {
|
|
864
|
+
}
|
|
1157
865
|
|
|
1158
|
-
|
|
866
|
+
class CreateEnvironmentHostCommand extends smithyClient.Command
|
|
867
|
+
.classBuilder()
|
|
868
|
+
.ep(commonParams)
|
|
869
|
+
.m(function (Command, cs, config, o) {
|
|
870
|
+
return [
|
|
871
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
872
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
873
|
+
];
|
|
874
|
+
})
|
|
875
|
+
.s("AmazonElasticVMwareService", "CreateEnvironmentHost", {})
|
|
876
|
+
.n("EvsClient", "CreateEnvironmentHostCommand")
|
|
877
|
+
.f(void 0, void 0)
|
|
878
|
+
.ser(se_CreateEnvironmentHostCommand)
|
|
879
|
+
.de(de_CreateEnvironmentHostCommand)
|
|
880
|
+
.build() {
|
|
881
|
+
}
|
|
1159
882
|
|
|
883
|
+
class DeleteEnvironmentCommand extends smithyClient.Command
|
|
884
|
+
.classBuilder()
|
|
885
|
+
.ep(commonParams)
|
|
886
|
+
.m(function (Command, cs, config, o) {
|
|
887
|
+
return [
|
|
888
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
889
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
890
|
+
];
|
|
891
|
+
})
|
|
892
|
+
.s("AmazonElasticVMwareService", "DeleteEnvironment", {})
|
|
893
|
+
.n("EvsClient", "DeleteEnvironmentCommand")
|
|
894
|
+
.f(void 0, void 0)
|
|
895
|
+
.ser(se_DeleteEnvironmentCommand)
|
|
896
|
+
.de(de_DeleteEnvironmentCommand)
|
|
897
|
+
.build() {
|
|
898
|
+
}
|
|
1160
899
|
|
|
900
|
+
class DeleteEnvironmentHostCommand extends smithyClient.Command
|
|
901
|
+
.classBuilder()
|
|
902
|
+
.ep(commonParams)
|
|
903
|
+
.m(function (Command, cs, config, o) {
|
|
904
|
+
return [
|
|
905
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
906
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
907
|
+
];
|
|
908
|
+
})
|
|
909
|
+
.s("AmazonElasticVMwareService", "DeleteEnvironmentHost", {})
|
|
910
|
+
.n("EvsClient", "DeleteEnvironmentHostCommand")
|
|
911
|
+
.f(void 0, void 0)
|
|
912
|
+
.ser(se_DeleteEnvironmentHostCommand)
|
|
913
|
+
.de(de_DeleteEnvironmentHostCommand)
|
|
914
|
+
.build() {
|
|
915
|
+
}
|
|
1161
916
|
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
(
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
}
|
|
917
|
+
class DisassociateEipFromVlanCommand extends smithyClient.Command
|
|
918
|
+
.classBuilder()
|
|
919
|
+
.ep(commonParams)
|
|
920
|
+
.m(function (Command, cs, config, o) {
|
|
921
|
+
return [
|
|
922
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
923
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
924
|
+
];
|
|
925
|
+
})
|
|
926
|
+
.s("AmazonElasticVMwareService", "DisassociateEipFromVlan", {})
|
|
927
|
+
.n("EvsClient", "DisassociateEipFromVlanCommand")
|
|
928
|
+
.f(void 0, void 0)
|
|
929
|
+
.ser(se_DisassociateEipFromVlanCommand)
|
|
930
|
+
.de(de_DisassociateEipFromVlanCommand)
|
|
931
|
+
.build() {
|
|
932
|
+
}
|
|
1172
933
|
|
|
1173
|
-
|
|
934
|
+
class GetEnvironmentCommand extends smithyClient.Command
|
|
935
|
+
.classBuilder()
|
|
936
|
+
.ep(commonParams)
|
|
937
|
+
.m(function (Command, cs, config, o) {
|
|
938
|
+
return [
|
|
939
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
940
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
941
|
+
];
|
|
942
|
+
})
|
|
943
|
+
.s("AmazonElasticVMwareService", "GetEnvironment", {})
|
|
944
|
+
.n("EvsClient", "GetEnvironmentCommand")
|
|
945
|
+
.f(void 0, void 0)
|
|
946
|
+
.ser(se_GetEnvironmentCommand)
|
|
947
|
+
.de(de_GetEnvironmentCommand)
|
|
948
|
+
.build() {
|
|
949
|
+
}
|
|
1174
950
|
|
|
951
|
+
class ListEnvironmentHostsCommand extends smithyClient.Command
|
|
952
|
+
.classBuilder()
|
|
953
|
+
.ep(commonParams)
|
|
954
|
+
.m(function (Command, cs, config, o) {
|
|
955
|
+
return [
|
|
956
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
957
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
958
|
+
];
|
|
959
|
+
})
|
|
960
|
+
.s("AmazonElasticVMwareService", "ListEnvironmentHosts", {})
|
|
961
|
+
.n("EvsClient", "ListEnvironmentHostsCommand")
|
|
962
|
+
.f(void 0, void 0)
|
|
963
|
+
.ser(se_ListEnvironmentHostsCommand)
|
|
964
|
+
.de(de_ListEnvironmentHostsCommand)
|
|
965
|
+
.build() {
|
|
966
|
+
}
|
|
1175
967
|
|
|
968
|
+
class ListEnvironmentsCommand extends smithyClient.Command
|
|
969
|
+
.classBuilder()
|
|
970
|
+
.ep(commonParams)
|
|
971
|
+
.m(function (Command, cs, config, o) {
|
|
972
|
+
return [
|
|
973
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
974
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
975
|
+
];
|
|
976
|
+
})
|
|
977
|
+
.s("AmazonElasticVMwareService", "ListEnvironments", {})
|
|
978
|
+
.n("EvsClient", "ListEnvironmentsCommand")
|
|
979
|
+
.f(void 0, void 0)
|
|
980
|
+
.ser(se_ListEnvironmentsCommand)
|
|
981
|
+
.de(de_ListEnvironmentsCommand)
|
|
982
|
+
.build() {
|
|
983
|
+
}
|
|
1176
984
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
(
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
}
|
|
985
|
+
class ListEnvironmentVlansCommand extends smithyClient.Command
|
|
986
|
+
.classBuilder()
|
|
987
|
+
.ep(commonParams)
|
|
988
|
+
.m(function (Command, cs, config, o) {
|
|
989
|
+
return [
|
|
990
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
991
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
992
|
+
];
|
|
993
|
+
})
|
|
994
|
+
.s("AmazonElasticVMwareService", "ListEnvironmentVlans", {})
|
|
995
|
+
.n("EvsClient", "ListEnvironmentVlansCommand")
|
|
996
|
+
.f(void 0, void 0)
|
|
997
|
+
.ser(se_ListEnvironmentVlansCommand)
|
|
998
|
+
.de(de_ListEnvironmentVlansCommand)
|
|
999
|
+
.build() {
|
|
1000
|
+
}
|
|
1187
1001
|
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
}
|
|
1204
|
-
var Evs = class extends EvsClient {
|
|
1205
|
-
static {
|
|
1206
|
-
__name(this, "Evs");
|
|
1207
|
-
}
|
|
1208
|
-
};
|
|
1209
|
-
(0, import_smithy_client.createAggregatedClient)(commands, Evs);
|
|
1002
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1003
|
+
.classBuilder()
|
|
1004
|
+
.ep(commonParams)
|
|
1005
|
+
.m(function (Command, cs, config, o) {
|
|
1006
|
+
return [
|
|
1007
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1008
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1009
|
+
];
|
|
1010
|
+
})
|
|
1011
|
+
.s("AmazonElasticVMwareService", "ListTagsForResource", {})
|
|
1012
|
+
.n("EvsClient", "ListTagsForResourceCommand")
|
|
1013
|
+
.f(void 0, void 0)
|
|
1014
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1015
|
+
.de(de_ListTagsForResourceCommand)
|
|
1016
|
+
.build() {
|
|
1017
|
+
}
|
|
1210
1018
|
|
|
1211
|
-
|
|
1019
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1020
|
+
.classBuilder()
|
|
1021
|
+
.ep(commonParams)
|
|
1022
|
+
.m(function (Command, cs, config, o) {
|
|
1023
|
+
return [
|
|
1024
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1025
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1026
|
+
];
|
|
1027
|
+
})
|
|
1028
|
+
.s("AmazonElasticVMwareService", "TagResource", {})
|
|
1029
|
+
.n("EvsClient", "TagResourceCommand")
|
|
1030
|
+
.f(void 0, void 0)
|
|
1031
|
+
.ser(se_TagResourceCommand)
|
|
1032
|
+
.de(de_TagResourceCommand)
|
|
1033
|
+
.build() {
|
|
1034
|
+
}
|
|
1212
1035
|
|
|
1213
|
-
|
|
1036
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1037
|
+
.classBuilder()
|
|
1038
|
+
.ep(commonParams)
|
|
1039
|
+
.m(function (Command, cs, config, o) {
|
|
1040
|
+
return [
|
|
1041
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1042
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1043
|
+
];
|
|
1044
|
+
})
|
|
1045
|
+
.s("AmazonElasticVMwareService", "UntagResource", {})
|
|
1046
|
+
.n("EvsClient", "UntagResourceCommand")
|
|
1047
|
+
.f(void 0, void 0)
|
|
1048
|
+
.ser(se_UntagResourceCommand)
|
|
1049
|
+
.de(de_UntagResourceCommand)
|
|
1050
|
+
.build() {
|
|
1051
|
+
}
|
|
1214
1052
|
|
|
1215
|
-
|
|
1053
|
+
const commands = {
|
|
1054
|
+
AssociateEipToVlanCommand,
|
|
1055
|
+
CreateEnvironmentCommand,
|
|
1056
|
+
CreateEnvironmentHostCommand,
|
|
1057
|
+
DeleteEnvironmentCommand,
|
|
1058
|
+
DeleteEnvironmentHostCommand,
|
|
1059
|
+
DisassociateEipFromVlanCommand,
|
|
1060
|
+
GetEnvironmentCommand,
|
|
1061
|
+
ListEnvironmentHostsCommand,
|
|
1062
|
+
ListEnvironmentsCommand,
|
|
1063
|
+
ListEnvironmentVlansCommand,
|
|
1064
|
+
ListTagsForResourceCommand,
|
|
1065
|
+
TagResourceCommand,
|
|
1066
|
+
UntagResourceCommand,
|
|
1067
|
+
};
|
|
1068
|
+
class Evs extends EvsClient {
|
|
1069
|
+
}
|
|
1070
|
+
smithyClient.createAggregatedClient(commands, Evs);
|
|
1216
1071
|
|
|
1217
|
-
|
|
1072
|
+
const paginateListEnvironmentHosts = core.createPaginator(EvsClient, ListEnvironmentHostsCommand, "nextToken", "nextToken", "maxResults");
|
|
1218
1073
|
|
|
1219
|
-
|
|
1074
|
+
const paginateListEnvironmentVlans = core.createPaginator(EvsClient, ListEnvironmentVlansCommand, "nextToken", "nextToken", "maxResults");
|
|
1220
1075
|
|
|
1221
|
-
|
|
1222
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1076
|
+
const paginateListEnvironments = core.createPaginator(EvsClient, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
|
|
1223
1077
|
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
EvsClient,
|
|
1228
|
-
Evs,
|
|
1229
|
-
$Command,
|
|
1230
|
-
AssociateEipToVlanCommand,
|
|
1231
|
-
CreateEnvironmentCommand,
|
|
1232
|
-
CreateEnvironmentHostCommand,
|
|
1233
|
-
DeleteEnvironmentCommand,
|
|
1234
|
-
DeleteEnvironmentHostCommand,
|
|
1235
|
-
DisassociateEipFromVlanCommand,
|
|
1236
|
-
GetEnvironmentCommand,
|
|
1237
|
-
ListEnvironmentHostsCommand,
|
|
1238
|
-
ListEnvironmentVlansCommand,
|
|
1239
|
-
ListEnvironmentsCommand,
|
|
1240
|
-
ListTagsForResourceCommand,
|
|
1241
|
-
TagResourceCommand,
|
|
1242
|
-
UntagResourceCommand,
|
|
1243
|
-
paginateListEnvironmentHosts,
|
|
1244
|
-
paginateListEnvironmentVlans,
|
|
1245
|
-
paginateListEnvironments,
|
|
1246
|
-
VlanState,
|
|
1247
|
-
ResourceNotFoundException,
|
|
1248
|
-
ThrottlingException,
|
|
1249
|
-
ValidationExceptionReason,
|
|
1250
|
-
ValidationException,
|
|
1251
|
-
_InstanceType,
|
|
1252
|
-
VcfVersion,
|
|
1253
|
-
CheckResult,
|
|
1254
|
-
CheckType,
|
|
1255
|
-
EnvironmentState,
|
|
1256
|
-
HostState,
|
|
1257
|
-
ServiceQuotaExceededException,
|
|
1258
|
-
TagPolicyException,
|
|
1259
|
-
TooManyTagsException
|
|
1078
|
+
Object.defineProperty(exports, "$Command", {
|
|
1079
|
+
enumerable: true,
|
|
1080
|
+
get: function () { return smithyClient.Command; }
|
|
1260
1081
|
});
|
|
1261
|
-
|
|
1082
|
+
Object.defineProperty(exports, "__Client", {
|
|
1083
|
+
enumerable: true,
|
|
1084
|
+
get: function () { return smithyClient.Client; }
|
|
1085
|
+
});
|
|
1086
|
+
exports.AssociateEipToVlanCommand = AssociateEipToVlanCommand;
|
|
1087
|
+
exports.CheckResult = CheckResult;
|
|
1088
|
+
exports.CheckType = CheckType;
|
|
1089
|
+
exports.CreateEnvironmentCommand = CreateEnvironmentCommand;
|
|
1090
|
+
exports.CreateEnvironmentHostCommand = CreateEnvironmentHostCommand;
|
|
1091
|
+
exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;
|
|
1092
|
+
exports.DeleteEnvironmentHostCommand = DeleteEnvironmentHostCommand;
|
|
1093
|
+
exports.DisassociateEipFromVlanCommand = DisassociateEipFromVlanCommand;
|
|
1094
|
+
exports.EnvironmentState = EnvironmentState;
|
|
1095
|
+
exports.Evs = Evs;
|
|
1096
|
+
exports.EvsClient = EvsClient;
|
|
1097
|
+
exports.EvsServiceException = EvsServiceException;
|
|
1098
|
+
exports.GetEnvironmentCommand = GetEnvironmentCommand;
|
|
1099
|
+
exports.HostState = HostState;
|
|
1100
|
+
exports.ListEnvironmentHostsCommand = ListEnvironmentHostsCommand;
|
|
1101
|
+
exports.ListEnvironmentVlansCommand = ListEnvironmentVlansCommand;
|
|
1102
|
+
exports.ListEnvironmentsCommand = ListEnvironmentsCommand;
|
|
1103
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1104
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1105
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1106
|
+
exports.TagPolicyException = TagPolicyException;
|
|
1107
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1108
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1109
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
1110
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1111
|
+
exports.ValidationException = ValidationException;
|
|
1112
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
1113
|
+
exports.VcfVersion = VcfVersion;
|
|
1114
|
+
exports.VlanState = VlanState;
|
|
1115
|
+
exports._InstanceType = _InstanceType;
|
|
1116
|
+
exports.paginateListEnvironmentHosts = paginateListEnvironmentHosts;
|
|
1117
|
+
exports.paginateListEnvironmentVlans = paginateListEnvironmentVlans;
|
|
1118
|
+
exports.paginateListEnvironments = paginateListEnvironments;
|