@aws-sdk/client-workspaces-instances 3.891.0 → 3.894.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 +1436 -10
- package/package.json +19 -19
- package/dist-cjs/WorkspacesInstances.js +0 -37
- package/dist-cjs/WorkspacesInstancesClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/AssociateVolumeCommand.js +0 -26
- package/dist-cjs/commands/CreateVolumeCommand.js +0 -27
- package/dist-cjs/commands/CreateWorkspaceInstanceCommand.js +0 -27
- package/dist-cjs/commands/DeleteVolumeCommand.js +0 -26
- package/dist-cjs/commands/DeleteWorkspaceInstanceCommand.js +0 -26
- package/dist-cjs/commands/DisassociateVolumeCommand.js +0 -26
- package/dist-cjs/commands/GetWorkspaceInstanceCommand.js +0 -26
- package/dist-cjs/commands/ListInstanceTypesCommand.js +0 -27
- package/dist-cjs/commands/ListRegionsCommand.js +0 -27
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/ListWorkspaceInstancesCommand.js +0 -27
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -16
- package/dist-cjs/endpoint/EndpointParameters.js +0 -15
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/WorkspacesInstancesServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -329
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListInstanceTypesPaginator.js +0 -7
- package/dist-cjs/pagination/ListRegionsPaginator.js +0 -7
- package/dist-cjs/pagination/ListWorkspaceInstancesPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -7
- package/dist-cjs/protocols/Aws_json1_0.js +0 -486
- package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js
CHANGED
|
@@ -1,11 +1,1437 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AmdSevSnpEnum: () => AmdSevSnpEnum,
|
|
26
|
+
AssociateVolumeCommand: () => AssociateVolumeCommand,
|
|
27
|
+
AutoRecoveryEnum: () => AutoRecoveryEnum,
|
|
28
|
+
BandwidthWeightingEnum: () => BandwidthWeightingEnum,
|
|
29
|
+
BlockDeviceMappingRequestFilterSensitiveLog: () => BlockDeviceMappingRequestFilterSensitiveLog,
|
|
30
|
+
CapacityReservationPreferenceEnum: () => CapacityReservationPreferenceEnum,
|
|
31
|
+
ConflictException: () => ConflictException,
|
|
32
|
+
CpuCreditsEnum: () => CpuCreditsEnum,
|
|
33
|
+
CreateVolumeCommand: () => CreateVolumeCommand,
|
|
34
|
+
CreateVolumeRequestFilterSensitiveLog: () => CreateVolumeRequestFilterSensitiveLog,
|
|
35
|
+
CreateWorkspaceInstanceCommand: () => CreateWorkspaceInstanceCommand,
|
|
36
|
+
CreateWorkspaceInstanceRequestFilterSensitiveLog: () => CreateWorkspaceInstanceRequestFilterSensitiveLog,
|
|
37
|
+
DeleteVolumeCommand: () => DeleteVolumeCommand,
|
|
38
|
+
DeleteWorkspaceInstanceCommand: () => DeleteWorkspaceInstanceCommand,
|
|
39
|
+
DisassociateModeEnum: () => DisassociateModeEnum,
|
|
40
|
+
DisassociateVolumeCommand: () => DisassociateVolumeCommand,
|
|
41
|
+
EbsBlockDeviceFilterSensitiveLog: () => EbsBlockDeviceFilterSensitiveLog,
|
|
42
|
+
GetWorkspaceInstanceCommand: () => GetWorkspaceInstanceCommand,
|
|
43
|
+
HostnameTypeEnum: () => HostnameTypeEnum,
|
|
44
|
+
HttpEndpointEnum: () => HttpEndpointEnum,
|
|
45
|
+
HttpProtocolIpv6Enum: () => HttpProtocolIpv6Enum,
|
|
46
|
+
HttpTokensEnum: () => HttpTokensEnum,
|
|
47
|
+
InstanceInterruptionBehaviorEnum: () => InstanceInterruptionBehaviorEnum,
|
|
48
|
+
InstanceIpv6AddressFilterSensitiveLog: () => InstanceIpv6AddressFilterSensitiveLog,
|
|
49
|
+
InstanceMetadataTagsEnum: () => InstanceMetadataTagsEnum,
|
|
50
|
+
InstanceNetworkInterfaceSpecificationFilterSensitiveLog: () => InstanceNetworkInterfaceSpecificationFilterSensitiveLog,
|
|
51
|
+
InterfaceTypeEnum: () => InterfaceTypeEnum,
|
|
52
|
+
InternalServerException: () => InternalServerException,
|
|
53
|
+
ListInstanceTypesCommand: () => ListInstanceTypesCommand,
|
|
54
|
+
ListInstanceTypesRequestFilterSensitiveLog: () => ListInstanceTypesRequestFilterSensitiveLog,
|
|
55
|
+
ListInstanceTypesResponseFilterSensitiveLog: () => ListInstanceTypesResponseFilterSensitiveLog,
|
|
56
|
+
ListRegionsCommand: () => ListRegionsCommand,
|
|
57
|
+
ListRegionsRequestFilterSensitiveLog: () => ListRegionsRequestFilterSensitiveLog,
|
|
58
|
+
ListRegionsResponseFilterSensitiveLog: () => ListRegionsResponseFilterSensitiveLog,
|
|
59
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
60
|
+
ListWorkspaceInstancesCommand: () => ListWorkspaceInstancesCommand,
|
|
61
|
+
ListWorkspaceInstancesRequestFilterSensitiveLog: () => ListWorkspaceInstancesRequestFilterSensitiveLog,
|
|
62
|
+
ListWorkspaceInstancesResponseFilterSensitiveLog: () => ListWorkspaceInstancesResponseFilterSensitiveLog,
|
|
63
|
+
ManagedInstanceRequestFilterSensitiveLog: () => ManagedInstanceRequestFilterSensitiveLog,
|
|
64
|
+
MarketTypeEnum: () => MarketTypeEnum,
|
|
65
|
+
PrivateIpAddressSpecificationFilterSensitiveLog: () => PrivateIpAddressSpecificationFilterSensitiveLog,
|
|
66
|
+
ProvisionStateEnum: () => ProvisionStateEnum,
|
|
67
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
68
|
+
ResourceTypeEnum: () => ResourceTypeEnum,
|
|
69
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
70
|
+
SpotInstanceTypeEnum: () => SpotInstanceTypeEnum,
|
|
71
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
72
|
+
TenancyEnum: () => TenancyEnum,
|
|
73
|
+
ThrottlingException: () => ThrottlingException,
|
|
74
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
75
|
+
ValidationException: () => ValidationException,
|
|
76
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
77
|
+
VolumeTypeEnum: () => VolumeTypeEnum,
|
|
78
|
+
WorkspacesInstances: () => WorkspacesInstances,
|
|
79
|
+
WorkspacesInstancesClient: () => WorkspacesInstancesClient,
|
|
80
|
+
WorkspacesInstancesServiceException: () => WorkspacesInstancesServiceException,
|
|
81
|
+
__Client: () => import_smithy_client.Client,
|
|
82
|
+
paginateListInstanceTypes: () => paginateListInstanceTypes,
|
|
83
|
+
paginateListRegions: () => paginateListRegions,
|
|
84
|
+
paginateListWorkspaceInstances: () => paginateListWorkspaceInstances
|
|
85
|
+
});
|
|
86
|
+
module.exports = __toCommonJS(index_exports);
|
|
87
|
+
|
|
88
|
+
// src/WorkspacesInstancesClient.ts
|
|
89
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
90
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
91
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
92
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
93
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
94
|
+
var import_core = require("@smithy/core");
|
|
95
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
96
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
97
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
98
|
+
|
|
99
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
100
|
+
|
|
101
|
+
// src/endpoint/EndpointParameters.ts
|
|
102
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
103
|
+
return Object.assign(options, {
|
|
104
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
105
|
+
defaultSigningName: "workspaces-instances"
|
|
106
|
+
});
|
|
107
|
+
}, "resolveClientEndpointParameters");
|
|
108
|
+
var commonParams = {
|
|
109
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
110
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
111
|
+
Region: { type: "builtInParams", name: "region" }
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// src/WorkspacesInstancesClient.ts
|
|
115
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
116
|
+
|
|
117
|
+
// src/runtimeExtensions.ts
|
|
118
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
119
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
120
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
121
|
+
|
|
122
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
123
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
124
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
125
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
126
|
+
let _credentials = runtimeConfig.credentials;
|
|
127
|
+
return {
|
|
128
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
129
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
130
|
+
if (index === -1) {
|
|
131
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
132
|
+
} else {
|
|
133
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
httpAuthSchemes() {
|
|
137
|
+
return _httpAuthSchemes;
|
|
138
|
+
},
|
|
139
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
140
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
141
|
+
},
|
|
142
|
+
httpAuthSchemeProvider() {
|
|
143
|
+
return _httpAuthSchemeProvider;
|
|
144
|
+
},
|
|
145
|
+
setCredentials(credentials) {
|
|
146
|
+
_credentials = credentials;
|
|
147
|
+
},
|
|
148
|
+
credentials() {
|
|
149
|
+
return _credentials;
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
153
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
154
|
+
return {
|
|
155
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
156
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
157
|
+
credentials: config.credentials()
|
|
158
|
+
};
|
|
159
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
160
|
+
|
|
161
|
+
// src/runtimeExtensions.ts
|
|
162
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
163
|
+
const extensionConfiguration = Object.assign(
|
|
164
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
165
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
166
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
167
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
168
|
+
);
|
|
169
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
170
|
+
return Object.assign(
|
|
171
|
+
runtimeConfig,
|
|
172
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
173
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
174
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
175
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
176
|
+
);
|
|
177
|
+
}, "resolveRuntimeExtensions");
|
|
178
|
+
|
|
179
|
+
// src/WorkspacesInstancesClient.ts
|
|
180
|
+
var WorkspacesInstancesClient = class extends import_smithy_client.Client {
|
|
181
|
+
static {
|
|
182
|
+
__name(this, "WorkspacesInstancesClient");
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* The resolved configuration of WorkspacesInstancesClient class. This is resolved and normalized from the {@link WorkspacesInstancesClientConfig | constructor configuration interface}.
|
|
186
|
+
*/
|
|
187
|
+
config;
|
|
188
|
+
constructor(...[configuration]) {
|
|
189
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
190
|
+
super(_config_0);
|
|
191
|
+
this.initConfig = _config_0;
|
|
192
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
193
|
+
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
194
|
+
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
195
|
+
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
196
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
197
|
+
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
198
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
199
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
200
|
+
this.config = _config_8;
|
|
201
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
202
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
203
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
204
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
205
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
206
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
207
|
+
this.middlewareStack.use(
|
|
208
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
209
|
+
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultWorkspacesInstancesHttpAuthSchemeParametersProvider,
|
|
210
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
211
|
+
"aws.auth#sigv4": config.credentials
|
|
212
|
+
}), "identityProviderConfigProvider")
|
|
213
|
+
})
|
|
214
|
+
);
|
|
215
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
219
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
220
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
221
|
+
*/
|
|
222
|
+
destroy() {
|
|
223
|
+
super.destroy();
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
// src/WorkspacesInstances.ts
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
// src/commands/AssociateVolumeCommand.ts
|
|
231
|
+
|
|
232
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
// src/protocols/Aws_json1_0.ts
|
|
236
|
+
var import_core2 = require("@aws-sdk/core");
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
var import_uuid = require("uuid");
|
|
240
|
+
|
|
241
|
+
// src/models/models_0.ts
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
// src/models/WorkspacesInstancesServiceException.ts
|
|
245
|
+
|
|
246
|
+
var WorkspacesInstancesServiceException = class _WorkspacesInstancesServiceException extends import_smithy_client.ServiceException {
|
|
247
|
+
static {
|
|
248
|
+
__name(this, "WorkspacesInstancesServiceException");
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* @internal
|
|
252
|
+
*/
|
|
253
|
+
constructor(options) {
|
|
254
|
+
super(options);
|
|
255
|
+
Object.setPrototypeOf(this, _WorkspacesInstancesServiceException.prototype);
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
// src/models/models_0.ts
|
|
260
|
+
var AccessDeniedException = class _AccessDeniedException extends WorkspacesInstancesServiceException {
|
|
261
|
+
static {
|
|
262
|
+
__name(this, "AccessDeniedException");
|
|
263
|
+
}
|
|
264
|
+
name = "AccessDeniedException";
|
|
265
|
+
$fault = "client";
|
|
266
|
+
/**
|
|
267
|
+
* <p>Detailed explanation of the access denial.</p>
|
|
268
|
+
* @public
|
|
269
|
+
*/
|
|
270
|
+
Message;
|
|
271
|
+
/**
|
|
272
|
+
* @internal
|
|
273
|
+
*/
|
|
274
|
+
constructor(opts) {
|
|
275
|
+
super({
|
|
276
|
+
name: "AccessDeniedException",
|
|
277
|
+
$fault: "client",
|
|
278
|
+
...opts
|
|
279
|
+
});
|
|
280
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
281
|
+
this.Message = opts.Message;
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
var AmdSevSnpEnum = {
|
|
285
|
+
DISABLED: "disabled",
|
|
286
|
+
ENABLED: "enabled"
|
|
287
|
+
};
|
|
288
|
+
var ConflictException = class _ConflictException extends WorkspacesInstancesServiceException {
|
|
289
|
+
static {
|
|
290
|
+
__name(this, "ConflictException");
|
|
291
|
+
}
|
|
292
|
+
name = "ConflictException";
|
|
293
|
+
$fault = "client";
|
|
294
|
+
/**
|
|
295
|
+
* <p>Description of the conflict encountered.</p>
|
|
296
|
+
* @public
|
|
297
|
+
*/
|
|
298
|
+
Message;
|
|
299
|
+
/**
|
|
300
|
+
* <p>Identifier of the conflicting resource.</p>
|
|
301
|
+
* @public
|
|
302
|
+
*/
|
|
303
|
+
ResourceId;
|
|
304
|
+
/**
|
|
305
|
+
* <p>Type of the conflicting resource.</p>
|
|
306
|
+
* @public
|
|
307
|
+
*/
|
|
308
|
+
ResourceType;
|
|
309
|
+
/**
|
|
310
|
+
* @internal
|
|
311
|
+
*/
|
|
312
|
+
constructor(opts) {
|
|
313
|
+
super({
|
|
314
|
+
name: "ConflictException",
|
|
315
|
+
$fault: "client",
|
|
316
|
+
...opts
|
|
317
|
+
});
|
|
318
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
319
|
+
this.Message = opts.Message;
|
|
320
|
+
this.ResourceId = opts.ResourceId;
|
|
321
|
+
this.ResourceType = opts.ResourceType;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
var InternalServerException = class _InternalServerException extends WorkspacesInstancesServiceException {
|
|
325
|
+
static {
|
|
326
|
+
__name(this, "InternalServerException");
|
|
327
|
+
}
|
|
328
|
+
name = "InternalServerException";
|
|
329
|
+
$fault = "server";
|
|
330
|
+
$retryable = {};
|
|
331
|
+
/**
|
|
332
|
+
* <p>Description of the internal server error.</p>
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
Message;
|
|
336
|
+
/**
|
|
337
|
+
* <p>Recommended wait time before retrying the request.</p>
|
|
338
|
+
* @public
|
|
339
|
+
*/
|
|
340
|
+
RetryAfterSeconds;
|
|
341
|
+
/**
|
|
342
|
+
* @internal
|
|
343
|
+
*/
|
|
344
|
+
constructor(opts) {
|
|
345
|
+
super({
|
|
346
|
+
name: "InternalServerException",
|
|
347
|
+
$fault: "server",
|
|
348
|
+
...opts
|
|
349
|
+
});
|
|
350
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
351
|
+
this.Message = opts.Message;
|
|
352
|
+
this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
var ResourceNotFoundException = class _ResourceNotFoundException extends WorkspacesInstancesServiceException {
|
|
356
|
+
static {
|
|
357
|
+
__name(this, "ResourceNotFoundException");
|
|
358
|
+
}
|
|
359
|
+
name = "ResourceNotFoundException";
|
|
360
|
+
$fault = "client";
|
|
361
|
+
/**
|
|
362
|
+
* <p>Details about the missing resource.</p>
|
|
363
|
+
* @public
|
|
364
|
+
*/
|
|
365
|
+
Message;
|
|
366
|
+
/**
|
|
367
|
+
* <p>Identifier of the resource that was not found.</p>
|
|
368
|
+
* @public
|
|
369
|
+
*/
|
|
370
|
+
ResourceId;
|
|
371
|
+
/**
|
|
372
|
+
* <p>Type of the resource that was not found.</p>
|
|
373
|
+
* @public
|
|
374
|
+
*/
|
|
375
|
+
ResourceType;
|
|
376
|
+
/**
|
|
377
|
+
* @internal
|
|
378
|
+
*/
|
|
379
|
+
constructor(opts) {
|
|
380
|
+
super({
|
|
381
|
+
name: "ResourceNotFoundException",
|
|
382
|
+
$fault: "client",
|
|
383
|
+
...opts
|
|
384
|
+
});
|
|
385
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
386
|
+
this.Message = opts.Message;
|
|
387
|
+
this.ResourceId = opts.ResourceId;
|
|
388
|
+
this.ResourceType = opts.ResourceType;
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
var ThrottlingException = class _ThrottlingException extends WorkspacesInstancesServiceException {
|
|
392
|
+
static {
|
|
393
|
+
__name(this, "ThrottlingException");
|
|
394
|
+
}
|
|
395
|
+
name = "ThrottlingException";
|
|
396
|
+
$fault = "client";
|
|
397
|
+
$retryable = {
|
|
398
|
+
throttling: true
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
* <p>Description of the throttling event.</p>
|
|
402
|
+
* @public
|
|
403
|
+
*/
|
|
404
|
+
Message;
|
|
405
|
+
/**
|
|
406
|
+
* <p>Code identifying the service experiencing throttling.</p>
|
|
407
|
+
* @public
|
|
408
|
+
*/
|
|
409
|
+
ServiceCode;
|
|
410
|
+
/**
|
|
411
|
+
* <p>Specific code for the throttling quota.</p>
|
|
412
|
+
* @public
|
|
413
|
+
*/
|
|
414
|
+
QuotaCode;
|
|
415
|
+
/**
|
|
416
|
+
* <p>Recommended wait time before retrying the request.</p>
|
|
417
|
+
* @public
|
|
418
|
+
*/
|
|
419
|
+
RetryAfterSeconds;
|
|
420
|
+
/**
|
|
421
|
+
* @internal
|
|
422
|
+
*/
|
|
423
|
+
constructor(opts) {
|
|
424
|
+
super({
|
|
425
|
+
name: "ThrottlingException",
|
|
426
|
+
$fault: "client",
|
|
427
|
+
...opts
|
|
428
|
+
});
|
|
429
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
430
|
+
this.Message = opts.Message;
|
|
431
|
+
this.ServiceCode = opts.ServiceCode;
|
|
432
|
+
this.QuotaCode = opts.QuotaCode;
|
|
433
|
+
this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
var ValidationExceptionReason = {
|
|
437
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
438
|
+
DEPENDENCY_FAILURE: "DEPENDENCY_FAILURE",
|
|
439
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
440
|
+
OTHER: "OTHER",
|
|
441
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
442
|
+
UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION"
|
|
443
|
+
};
|
|
444
|
+
var ValidationException = class _ValidationException extends WorkspacesInstancesServiceException {
|
|
445
|
+
static {
|
|
446
|
+
__name(this, "ValidationException");
|
|
447
|
+
}
|
|
448
|
+
name = "ValidationException";
|
|
449
|
+
$fault = "client";
|
|
450
|
+
/**
|
|
451
|
+
* <p>Overall description of validation failures.</p>
|
|
452
|
+
* @public
|
|
453
|
+
*/
|
|
454
|
+
Message;
|
|
455
|
+
/**
|
|
456
|
+
* <p>Specific reason for the validation failure.</p>
|
|
457
|
+
* @public
|
|
458
|
+
*/
|
|
459
|
+
Reason;
|
|
460
|
+
/**
|
|
461
|
+
* <p>List of fields that failed validation.</p>
|
|
462
|
+
* @public
|
|
463
|
+
*/
|
|
464
|
+
FieldList;
|
|
465
|
+
/**
|
|
466
|
+
* @internal
|
|
467
|
+
*/
|
|
468
|
+
constructor(opts) {
|
|
469
|
+
super({
|
|
470
|
+
name: "ValidationException",
|
|
471
|
+
$fault: "client",
|
|
472
|
+
...opts
|
|
473
|
+
});
|
|
474
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
475
|
+
this.Message = opts.Message;
|
|
476
|
+
this.Reason = opts.Reason;
|
|
477
|
+
this.FieldList = opts.FieldList;
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
var AutoRecoveryEnum = {
|
|
481
|
+
DEFAULT: "default",
|
|
482
|
+
DISABLED: "disabled"
|
|
483
|
+
};
|
|
484
|
+
var BandwidthWeightingEnum = {
|
|
485
|
+
DEFAULT: "default",
|
|
486
|
+
EBS_1: "ebs-1",
|
|
487
|
+
VPC_1: "vpc-1"
|
|
488
|
+
};
|
|
489
|
+
var VolumeTypeEnum = {
|
|
490
|
+
GP2: "gp2",
|
|
491
|
+
GP3: "gp3",
|
|
492
|
+
IO1: "io1",
|
|
493
|
+
IO2: "io2",
|
|
494
|
+
SC1: "sc1",
|
|
495
|
+
ST1: "st1",
|
|
496
|
+
STANDARD: "standard"
|
|
497
|
+
};
|
|
498
|
+
var CapacityReservationPreferenceEnum = {
|
|
499
|
+
CAPACITY_RESERVATIONS_ONLY: "capacity-reservations-only",
|
|
500
|
+
NONE: "none",
|
|
501
|
+
OPEN: "open"
|
|
502
|
+
};
|
|
503
|
+
var CpuCreditsEnum = {
|
|
504
|
+
STANDARD: "standard",
|
|
505
|
+
UNLIMITED: "unlimited"
|
|
506
|
+
};
|
|
507
|
+
var ResourceTypeEnum = {
|
|
508
|
+
INSTANCE: "instance",
|
|
509
|
+
NETWORK_INTERFACE: "network-interface",
|
|
510
|
+
SPOT_INSTANCES_REQUEST: "spot-instances-request",
|
|
511
|
+
VOLUME: "volume"
|
|
512
|
+
};
|
|
513
|
+
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends WorkspacesInstancesServiceException {
|
|
514
|
+
static {
|
|
515
|
+
__name(this, "ServiceQuotaExceededException");
|
|
516
|
+
}
|
|
517
|
+
name = "ServiceQuotaExceededException";
|
|
518
|
+
$fault = "client";
|
|
519
|
+
/**
|
|
520
|
+
* <p>Description of the quota limitation.</p>
|
|
521
|
+
* @public
|
|
522
|
+
*/
|
|
523
|
+
Message;
|
|
524
|
+
/**
|
|
525
|
+
* <p>Identifier of the resource related to the quota.</p>
|
|
526
|
+
* @public
|
|
527
|
+
*/
|
|
528
|
+
ResourceId;
|
|
529
|
+
/**
|
|
530
|
+
* <p>Type of resource related to the quota.</p>
|
|
531
|
+
* @public
|
|
532
|
+
*/
|
|
533
|
+
ResourceType;
|
|
534
|
+
/**
|
|
535
|
+
* <p>Code identifying the service with the quota limitation.</p>
|
|
536
|
+
* @public
|
|
537
|
+
*/
|
|
538
|
+
ServiceCode;
|
|
539
|
+
/**
|
|
540
|
+
* <p>Specific code for the exceeded quota.</p>
|
|
541
|
+
* @public
|
|
542
|
+
*/
|
|
543
|
+
QuotaCode;
|
|
544
|
+
/**
|
|
545
|
+
* @internal
|
|
546
|
+
*/
|
|
547
|
+
constructor(opts) {
|
|
548
|
+
super({
|
|
549
|
+
name: "ServiceQuotaExceededException",
|
|
550
|
+
$fault: "client",
|
|
551
|
+
...opts
|
|
552
|
+
});
|
|
553
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
554
|
+
this.Message = opts.Message;
|
|
555
|
+
this.ResourceId = opts.ResourceId;
|
|
556
|
+
this.ResourceType = opts.ResourceType;
|
|
557
|
+
this.ServiceCode = opts.ServiceCode;
|
|
558
|
+
this.QuotaCode = opts.QuotaCode;
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
var MarketTypeEnum = {
|
|
562
|
+
CAPACITY_BLOCK: "capacity-block",
|
|
563
|
+
SPOT: "spot"
|
|
564
|
+
};
|
|
565
|
+
var InstanceInterruptionBehaviorEnum = {
|
|
566
|
+
HIBERNATE: "hibernate",
|
|
567
|
+
STOP: "stop"
|
|
568
|
+
};
|
|
569
|
+
var SpotInstanceTypeEnum = {
|
|
570
|
+
ONE_TIME: "one-time",
|
|
571
|
+
PERSISTENT: "persistent"
|
|
572
|
+
};
|
|
573
|
+
var HttpEndpointEnum = {
|
|
574
|
+
DISABLED: "disabled",
|
|
575
|
+
ENABLED: "enabled"
|
|
576
|
+
};
|
|
577
|
+
var HttpProtocolIpv6Enum = {
|
|
578
|
+
DISABLED: "disabled",
|
|
579
|
+
ENABLED: "enabled"
|
|
580
|
+
};
|
|
581
|
+
var HttpTokensEnum = {
|
|
582
|
+
OPTIONAL: "optional",
|
|
583
|
+
REQUIRED: "required"
|
|
584
|
+
};
|
|
585
|
+
var InstanceMetadataTagsEnum = {
|
|
586
|
+
DISABLED: "disabled",
|
|
587
|
+
ENABLED: "enabled"
|
|
588
|
+
};
|
|
589
|
+
var InterfaceTypeEnum = {
|
|
590
|
+
EFA: "efa",
|
|
591
|
+
EFA_ONLY: "efa-only",
|
|
592
|
+
INTERFACE: "interface"
|
|
593
|
+
};
|
|
594
|
+
var TenancyEnum = {
|
|
595
|
+
DEDICATED: "dedicated",
|
|
596
|
+
DEFAULT: "default",
|
|
597
|
+
HOST: "host"
|
|
598
|
+
};
|
|
599
|
+
var HostnameTypeEnum = {
|
|
600
|
+
IP_NAME: "ip-name",
|
|
601
|
+
RESOURCE_NAME: "resource-name"
|
|
602
|
+
};
|
|
603
|
+
var DisassociateModeEnum = {
|
|
604
|
+
FORCE: "FORCE",
|
|
605
|
+
NO_FORCE: "NO_FORCE"
|
|
606
|
+
};
|
|
607
|
+
var ProvisionStateEnum = {
|
|
608
|
+
ALLOCATED: "ALLOCATED",
|
|
609
|
+
ALLOCATING: "ALLOCATING",
|
|
610
|
+
DEALLOCATED: "DEALLOCATED",
|
|
611
|
+
DEALLOCATING: "DEALLOCATING",
|
|
612
|
+
ERROR_ALLOCATING: "ERROR_ALLOCATING",
|
|
613
|
+
ERROR_DEALLOCATING: "ERROR_DEALLOCATING"
|
|
614
|
+
};
|
|
615
|
+
var EbsBlockDeviceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
616
|
+
...obj,
|
|
617
|
+
...obj.KmsKeyId && { KmsKeyId: import_smithy_client.SENSITIVE_STRING }
|
|
618
|
+
}), "EbsBlockDeviceFilterSensitiveLog");
|
|
619
|
+
var BlockDeviceMappingRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
620
|
+
...obj,
|
|
621
|
+
...obj.Ebs && { Ebs: EbsBlockDeviceFilterSensitiveLog(obj.Ebs) }
|
|
622
|
+
}), "BlockDeviceMappingRequestFilterSensitiveLog");
|
|
623
|
+
var CreateVolumeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
624
|
+
...obj,
|
|
625
|
+
...obj.ClientToken && { ClientToken: import_smithy_client.SENSITIVE_STRING },
|
|
626
|
+
...obj.KmsKeyId && { KmsKeyId: import_smithy_client.SENSITIVE_STRING }
|
|
627
|
+
}), "CreateVolumeRequestFilterSensitiveLog");
|
|
628
|
+
var InstanceIpv6AddressFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
629
|
+
...obj,
|
|
630
|
+
...obj.Ipv6Address && { Ipv6Address: import_smithy_client.SENSITIVE_STRING }
|
|
631
|
+
}), "InstanceIpv6AddressFilterSensitiveLog");
|
|
632
|
+
var PrivateIpAddressSpecificationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
633
|
+
...obj,
|
|
634
|
+
...obj.PrivateIpAddress && { PrivateIpAddress: import_smithy_client.SENSITIVE_STRING }
|
|
635
|
+
}), "PrivateIpAddressSpecificationFilterSensitiveLog");
|
|
636
|
+
var InstanceNetworkInterfaceSpecificationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
637
|
+
...obj,
|
|
638
|
+
...obj.Ipv6Addresses && {
|
|
639
|
+
Ipv6Addresses: obj.Ipv6Addresses.map((item) => InstanceIpv6AddressFilterSensitiveLog(item))
|
|
640
|
+
},
|
|
641
|
+
...obj.PrivateIpAddress && { PrivateIpAddress: import_smithy_client.SENSITIVE_STRING },
|
|
642
|
+
...obj.PrivateIpAddresses && {
|
|
643
|
+
PrivateIpAddresses: obj.PrivateIpAddresses.map((item) => PrivateIpAddressSpecificationFilterSensitiveLog(item))
|
|
644
|
+
}
|
|
645
|
+
}), "InstanceNetworkInterfaceSpecificationFilterSensitiveLog");
|
|
646
|
+
var ManagedInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
647
|
+
...obj,
|
|
648
|
+
...obj.BlockDeviceMappings && {
|
|
649
|
+
BlockDeviceMappings: obj.BlockDeviceMappings.map((item) => BlockDeviceMappingRequestFilterSensitiveLog(item))
|
|
650
|
+
},
|
|
651
|
+
...obj.Ipv6Addresses && {
|
|
652
|
+
Ipv6Addresses: obj.Ipv6Addresses.map((item) => InstanceIpv6AddressFilterSensitiveLog(item))
|
|
653
|
+
},
|
|
654
|
+
...obj.NetworkInterfaces && {
|
|
655
|
+
NetworkInterfaces: obj.NetworkInterfaces.map(
|
|
656
|
+
(item) => InstanceNetworkInterfaceSpecificationFilterSensitiveLog(item)
|
|
657
|
+
)
|
|
658
|
+
},
|
|
659
|
+
...obj.PrivateIpAddress && { PrivateIpAddress: import_smithy_client.SENSITIVE_STRING },
|
|
660
|
+
...obj.UserData && { UserData: import_smithy_client.SENSITIVE_STRING }
|
|
661
|
+
}), "ManagedInstanceRequestFilterSensitiveLog");
|
|
662
|
+
var CreateWorkspaceInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
663
|
+
...obj,
|
|
664
|
+
...obj.ClientToken && { ClientToken: import_smithy_client.SENSITIVE_STRING },
|
|
665
|
+
...obj.ManagedInstance && { ManagedInstance: ManagedInstanceRequestFilterSensitiveLog(obj.ManagedInstance) }
|
|
666
|
+
}), "CreateWorkspaceInstanceRequestFilterSensitiveLog");
|
|
667
|
+
var ListInstanceTypesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
668
|
+
...obj,
|
|
669
|
+
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
670
|
+
}), "ListInstanceTypesRequestFilterSensitiveLog");
|
|
671
|
+
var ListInstanceTypesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
672
|
+
...obj,
|
|
673
|
+
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
674
|
+
}), "ListInstanceTypesResponseFilterSensitiveLog");
|
|
675
|
+
var ListRegionsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
676
|
+
...obj,
|
|
677
|
+
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
678
|
+
}), "ListRegionsRequestFilterSensitiveLog");
|
|
679
|
+
var ListRegionsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
680
|
+
...obj,
|
|
681
|
+
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
682
|
+
}), "ListRegionsResponseFilterSensitiveLog");
|
|
683
|
+
var ListWorkspaceInstancesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
684
|
+
...obj,
|
|
685
|
+
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
686
|
+
}), "ListWorkspaceInstancesRequestFilterSensitiveLog");
|
|
687
|
+
var ListWorkspaceInstancesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
688
|
+
...obj,
|
|
689
|
+
...obj.NextToken && { NextToken: import_smithy_client.SENSITIVE_STRING }
|
|
690
|
+
}), "ListWorkspaceInstancesResponseFilterSensitiveLog");
|
|
691
|
+
|
|
692
|
+
// src/protocols/Aws_json1_0.ts
|
|
693
|
+
var se_AssociateVolumeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
694
|
+
const headers = sharedHeaders("AssociateVolume");
|
|
695
|
+
let body;
|
|
696
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
697
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
698
|
+
}, "se_AssociateVolumeCommand");
|
|
699
|
+
var se_CreateVolumeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
700
|
+
const headers = sharedHeaders("CreateVolume");
|
|
701
|
+
let body;
|
|
702
|
+
body = JSON.stringify(se_CreateVolumeRequest(input, context));
|
|
703
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
704
|
+
}, "se_CreateVolumeCommand");
|
|
705
|
+
var se_CreateWorkspaceInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
706
|
+
const headers = sharedHeaders("CreateWorkspaceInstance");
|
|
707
|
+
let body;
|
|
708
|
+
body = JSON.stringify(se_CreateWorkspaceInstanceRequest(input, context));
|
|
709
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
710
|
+
}, "se_CreateWorkspaceInstanceCommand");
|
|
711
|
+
var se_DeleteVolumeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
712
|
+
const headers = sharedHeaders("DeleteVolume");
|
|
713
|
+
let body;
|
|
714
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
715
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
716
|
+
}, "se_DeleteVolumeCommand");
|
|
717
|
+
var se_DeleteWorkspaceInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
718
|
+
const headers = sharedHeaders("DeleteWorkspaceInstance");
|
|
719
|
+
let body;
|
|
720
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
721
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
722
|
+
}, "se_DeleteWorkspaceInstanceCommand");
|
|
723
|
+
var se_DisassociateVolumeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
724
|
+
const headers = sharedHeaders("DisassociateVolume");
|
|
725
|
+
let body;
|
|
726
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
727
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
728
|
+
}, "se_DisassociateVolumeCommand");
|
|
729
|
+
var se_GetWorkspaceInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
730
|
+
const headers = sharedHeaders("GetWorkspaceInstance");
|
|
731
|
+
let body;
|
|
732
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
733
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
734
|
+
}, "se_GetWorkspaceInstanceCommand");
|
|
735
|
+
var se_ListInstanceTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
736
|
+
const headers = sharedHeaders("ListInstanceTypes");
|
|
737
|
+
let body;
|
|
738
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
739
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
740
|
+
}, "se_ListInstanceTypesCommand");
|
|
741
|
+
var se_ListRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
742
|
+
const headers = sharedHeaders("ListRegions");
|
|
743
|
+
let body;
|
|
744
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
745
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
746
|
+
}, "se_ListRegionsCommand");
|
|
747
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
748
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
749
|
+
let body;
|
|
750
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
751
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
752
|
+
}, "se_ListTagsForResourceCommand");
|
|
753
|
+
var se_ListWorkspaceInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
754
|
+
const headers = sharedHeaders("ListWorkspaceInstances");
|
|
755
|
+
let body;
|
|
756
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
757
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
758
|
+
}, "se_ListWorkspaceInstancesCommand");
|
|
759
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
760
|
+
const headers = sharedHeaders("TagResource");
|
|
761
|
+
let body;
|
|
762
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
763
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
764
|
+
}, "se_TagResourceCommand");
|
|
765
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
766
|
+
const headers = sharedHeaders("UntagResource");
|
|
767
|
+
let body;
|
|
768
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
769
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
770
|
+
}, "se_UntagResourceCommand");
|
|
771
|
+
var de_AssociateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
772
|
+
if (output.statusCode >= 300) {
|
|
773
|
+
return de_CommandError(output, context);
|
|
774
|
+
}
|
|
775
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
776
|
+
let contents = {};
|
|
777
|
+
contents = (0, import_smithy_client._json)(data);
|
|
778
|
+
const response = {
|
|
779
|
+
$metadata: deserializeMetadata(output),
|
|
780
|
+
...contents
|
|
781
|
+
};
|
|
782
|
+
return response;
|
|
783
|
+
}, "de_AssociateVolumeCommand");
|
|
784
|
+
var de_CreateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
785
|
+
if (output.statusCode >= 300) {
|
|
786
|
+
return de_CommandError(output, context);
|
|
787
|
+
}
|
|
788
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
789
|
+
let contents = {};
|
|
790
|
+
contents = (0, import_smithy_client._json)(data);
|
|
791
|
+
const response = {
|
|
792
|
+
$metadata: deserializeMetadata(output),
|
|
793
|
+
...contents
|
|
794
|
+
};
|
|
795
|
+
return response;
|
|
796
|
+
}, "de_CreateVolumeCommand");
|
|
797
|
+
var de_CreateWorkspaceInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
798
|
+
if (output.statusCode >= 300) {
|
|
799
|
+
return de_CommandError(output, context);
|
|
800
|
+
}
|
|
801
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
802
|
+
let contents = {};
|
|
803
|
+
contents = (0, import_smithy_client._json)(data);
|
|
804
|
+
const response = {
|
|
805
|
+
$metadata: deserializeMetadata(output),
|
|
806
|
+
...contents
|
|
807
|
+
};
|
|
808
|
+
return response;
|
|
809
|
+
}, "de_CreateWorkspaceInstanceCommand");
|
|
810
|
+
var de_DeleteVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
811
|
+
if (output.statusCode >= 300) {
|
|
812
|
+
return de_CommandError(output, context);
|
|
813
|
+
}
|
|
814
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
815
|
+
let contents = {};
|
|
816
|
+
contents = (0, import_smithy_client._json)(data);
|
|
817
|
+
const response = {
|
|
818
|
+
$metadata: deserializeMetadata(output),
|
|
819
|
+
...contents
|
|
820
|
+
};
|
|
821
|
+
return response;
|
|
822
|
+
}, "de_DeleteVolumeCommand");
|
|
823
|
+
var de_DeleteWorkspaceInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
824
|
+
if (output.statusCode >= 300) {
|
|
825
|
+
return de_CommandError(output, context);
|
|
826
|
+
}
|
|
827
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
828
|
+
let contents = {};
|
|
829
|
+
contents = (0, import_smithy_client._json)(data);
|
|
830
|
+
const response = {
|
|
831
|
+
$metadata: deserializeMetadata(output),
|
|
832
|
+
...contents
|
|
833
|
+
};
|
|
834
|
+
return response;
|
|
835
|
+
}, "de_DeleteWorkspaceInstanceCommand");
|
|
836
|
+
var de_DisassociateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
837
|
+
if (output.statusCode >= 300) {
|
|
838
|
+
return de_CommandError(output, context);
|
|
839
|
+
}
|
|
840
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
841
|
+
let contents = {};
|
|
842
|
+
contents = (0, import_smithy_client._json)(data);
|
|
843
|
+
const response = {
|
|
844
|
+
$metadata: deserializeMetadata(output),
|
|
845
|
+
...contents
|
|
846
|
+
};
|
|
847
|
+
return response;
|
|
848
|
+
}, "de_DisassociateVolumeCommand");
|
|
849
|
+
var de_GetWorkspaceInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
850
|
+
if (output.statusCode >= 300) {
|
|
851
|
+
return de_CommandError(output, context);
|
|
852
|
+
}
|
|
853
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
854
|
+
let contents = {};
|
|
855
|
+
contents = (0, import_smithy_client._json)(data);
|
|
856
|
+
const response = {
|
|
857
|
+
$metadata: deserializeMetadata(output),
|
|
858
|
+
...contents
|
|
859
|
+
};
|
|
860
|
+
return response;
|
|
861
|
+
}, "de_GetWorkspaceInstanceCommand");
|
|
862
|
+
var de_ListInstanceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
863
|
+
if (output.statusCode >= 300) {
|
|
864
|
+
return de_CommandError(output, context);
|
|
865
|
+
}
|
|
866
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
867
|
+
let contents = {};
|
|
868
|
+
contents = (0, import_smithy_client._json)(data);
|
|
869
|
+
const response = {
|
|
870
|
+
$metadata: deserializeMetadata(output),
|
|
871
|
+
...contents
|
|
872
|
+
};
|
|
873
|
+
return response;
|
|
874
|
+
}, "de_ListInstanceTypesCommand");
|
|
875
|
+
var de_ListRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
876
|
+
if (output.statusCode >= 300) {
|
|
877
|
+
return de_CommandError(output, context);
|
|
878
|
+
}
|
|
879
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
880
|
+
let contents = {};
|
|
881
|
+
contents = (0, import_smithy_client._json)(data);
|
|
882
|
+
const response = {
|
|
883
|
+
$metadata: deserializeMetadata(output),
|
|
884
|
+
...contents
|
|
885
|
+
};
|
|
886
|
+
return response;
|
|
887
|
+
}, "de_ListRegionsCommand");
|
|
888
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
889
|
+
if (output.statusCode >= 300) {
|
|
890
|
+
return de_CommandError(output, context);
|
|
891
|
+
}
|
|
892
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
893
|
+
let contents = {};
|
|
894
|
+
contents = (0, import_smithy_client._json)(data);
|
|
895
|
+
const response = {
|
|
896
|
+
$metadata: deserializeMetadata(output),
|
|
897
|
+
...contents
|
|
898
|
+
};
|
|
899
|
+
return response;
|
|
900
|
+
}, "de_ListTagsForResourceCommand");
|
|
901
|
+
var de_ListWorkspaceInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
902
|
+
if (output.statusCode >= 300) {
|
|
903
|
+
return de_CommandError(output, context);
|
|
904
|
+
}
|
|
905
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
906
|
+
let contents = {};
|
|
907
|
+
contents = (0, import_smithy_client._json)(data);
|
|
908
|
+
const response = {
|
|
909
|
+
$metadata: deserializeMetadata(output),
|
|
910
|
+
...contents
|
|
911
|
+
};
|
|
912
|
+
return response;
|
|
913
|
+
}, "de_ListWorkspaceInstancesCommand");
|
|
914
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
|
+
if (output.statusCode >= 300) {
|
|
916
|
+
return de_CommandError(output, context);
|
|
917
|
+
}
|
|
918
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
919
|
+
let contents = {};
|
|
920
|
+
contents = (0, import_smithy_client._json)(data);
|
|
921
|
+
const response = {
|
|
922
|
+
$metadata: deserializeMetadata(output),
|
|
923
|
+
...contents
|
|
924
|
+
};
|
|
925
|
+
return response;
|
|
926
|
+
}, "de_TagResourceCommand");
|
|
927
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
+
if (output.statusCode >= 300) {
|
|
929
|
+
return de_CommandError(output, context);
|
|
930
|
+
}
|
|
931
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
932
|
+
let contents = {};
|
|
933
|
+
contents = (0, import_smithy_client._json)(data);
|
|
934
|
+
const response = {
|
|
935
|
+
$metadata: deserializeMetadata(output),
|
|
936
|
+
...contents
|
|
937
|
+
};
|
|
938
|
+
return response;
|
|
939
|
+
}, "de_UntagResourceCommand");
|
|
940
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
941
|
+
const parsedOutput = {
|
|
942
|
+
...output,
|
|
943
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
944
|
+
};
|
|
945
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
946
|
+
switch (errorCode) {
|
|
947
|
+
case "AccessDeniedException":
|
|
948
|
+
case "com.amazonaws.workspacesinstances#AccessDeniedException":
|
|
949
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
950
|
+
case "ConflictException":
|
|
951
|
+
case "com.amazonaws.workspacesinstances#ConflictException":
|
|
952
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
953
|
+
case "InternalServerException":
|
|
954
|
+
case "com.amazonaws.workspacesinstances#InternalServerException":
|
|
955
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
956
|
+
case "ResourceNotFoundException":
|
|
957
|
+
case "com.amazonaws.workspacesinstances#ResourceNotFoundException":
|
|
958
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
959
|
+
case "ThrottlingException":
|
|
960
|
+
case "com.amazonaws.workspacesinstances#ThrottlingException":
|
|
961
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
962
|
+
case "ValidationException":
|
|
963
|
+
case "com.amazonaws.workspacesinstances#ValidationException":
|
|
964
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
|
+
case "ServiceQuotaExceededException":
|
|
966
|
+
case "com.amazonaws.workspacesinstances#ServiceQuotaExceededException":
|
|
967
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
968
|
+
default:
|
|
969
|
+
const parsedBody = parsedOutput.body;
|
|
970
|
+
return throwDefaultError({
|
|
971
|
+
output,
|
|
972
|
+
parsedBody,
|
|
973
|
+
errorCode
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
}, "de_CommandError");
|
|
977
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
978
|
+
const body = parsedOutput.body;
|
|
979
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
980
|
+
const exception = new AccessDeniedException({
|
|
981
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
982
|
+
...deserialized
|
|
983
|
+
});
|
|
984
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
985
|
+
}, "de_AccessDeniedExceptionRes");
|
|
986
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
987
|
+
const body = parsedOutput.body;
|
|
988
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
989
|
+
const exception = new ConflictException({
|
|
990
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
991
|
+
...deserialized
|
|
992
|
+
});
|
|
993
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
994
|
+
}, "de_ConflictExceptionRes");
|
|
995
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
996
|
+
const body = parsedOutput.body;
|
|
997
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
998
|
+
const exception = new InternalServerException({
|
|
999
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1000
|
+
...deserialized
|
|
1001
|
+
});
|
|
1002
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1003
|
+
}, "de_InternalServerExceptionRes");
|
|
1004
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1005
|
+
const body = parsedOutput.body;
|
|
1006
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1007
|
+
const exception = new ResourceNotFoundException({
|
|
1008
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1009
|
+
...deserialized
|
|
1010
|
+
});
|
|
1011
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1012
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1013
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1014
|
+
const body = parsedOutput.body;
|
|
1015
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1016
|
+
const exception = new ServiceQuotaExceededException({
|
|
1017
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1018
|
+
...deserialized
|
|
1019
|
+
});
|
|
1020
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1021
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1022
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1023
|
+
const body = parsedOutput.body;
|
|
1024
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1025
|
+
const exception = new ThrottlingException({
|
|
1026
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1027
|
+
...deserialized
|
|
1028
|
+
});
|
|
1029
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1030
|
+
}, "de_ThrottlingExceptionRes");
|
|
1031
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1032
|
+
const body = parsedOutput.body;
|
|
1033
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1034
|
+
const exception = new ValidationException({
|
|
1035
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1036
|
+
...deserialized
|
|
1037
|
+
});
|
|
1038
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1039
|
+
}, "de_ValidationExceptionRes");
|
|
1040
|
+
var se_CreateVolumeRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1041
|
+
return (0, import_smithy_client.take)(input, {
|
|
1042
|
+
AvailabilityZone: [],
|
|
1043
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1044
|
+
Encrypted: [],
|
|
1045
|
+
Iops: [],
|
|
1046
|
+
KmsKeyId: [],
|
|
1047
|
+
SizeInGB: [],
|
|
1048
|
+
SnapshotId: [],
|
|
1049
|
+
TagSpecifications: import_smithy_client._json,
|
|
1050
|
+
Throughput: [],
|
|
1051
|
+
VolumeType: []
|
|
1052
|
+
});
|
|
1053
|
+
}, "se_CreateVolumeRequest");
|
|
1054
|
+
var se_CreateWorkspaceInstanceRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1055
|
+
return (0, import_smithy_client.take)(input, {
|
|
1056
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1057
|
+
ManagedInstance: /* @__PURE__ */ __name((_) => se_ManagedInstanceRequest(_, context), "ManagedInstance"),
|
|
1058
|
+
Tags: import_smithy_client._json
|
|
1059
|
+
});
|
|
1060
|
+
}, "se_CreateWorkspaceInstanceRequest");
|
|
1061
|
+
var se_InstanceMarketOptionsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1062
|
+
return (0, import_smithy_client.take)(input, {
|
|
1063
|
+
MarketType: [],
|
|
1064
|
+
SpotOptions: /* @__PURE__ */ __name((_) => se_SpotMarketOptions(_, context), "SpotOptions")
|
|
1065
|
+
});
|
|
1066
|
+
}, "se_InstanceMarketOptionsRequest");
|
|
1067
|
+
var se_ManagedInstanceRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1068
|
+
return (0, import_smithy_client.take)(input, {
|
|
1069
|
+
BlockDeviceMappings: import_smithy_client._json,
|
|
1070
|
+
CapacityReservationSpecification: import_smithy_client._json,
|
|
1071
|
+
CpuOptions: import_smithy_client._json,
|
|
1072
|
+
CreditSpecification: import_smithy_client._json,
|
|
1073
|
+
DisableApiStop: [],
|
|
1074
|
+
EbsOptimized: [],
|
|
1075
|
+
EnablePrimaryIpv6: [],
|
|
1076
|
+
EnclaveOptions: import_smithy_client._json,
|
|
1077
|
+
HibernationOptions: import_smithy_client._json,
|
|
1078
|
+
IamInstanceProfile: import_smithy_client._json,
|
|
1079
|
+
ImageId: [],
|
|
1080
|
+
InstanceMarketOptions: /* @__PURE__ */ __name((_) => se_InstanceMarketOptionsRequest(_, context), "InstanceMarketOptions"),
|
|
1081
|
+
InstanceType: [],
|
|
1082
|
+
Ipv6AddressCount: [],
|
|
1083
|
+
Ipv6Addresses: import_smithy_client._json,
|
|
1084
|
+
KernelId: [],
|
|
1085
|
+
KeyName: [],
|
|
1086
|
+
LicenseSpecifications: import_smithy_client._json,
|
|
1087
|
+
MaintenanceOptions: import_smithy_client._json,
|
|
1088
|
+
MetadataOptions: import_smithy_client._json,
|
|
1089
|
+
Monitoring: import_smithy_client._json,
|
|
1090
|
+
NetworkInterfaces: import_smithy_client._json,
|
|
1091
|
+
NetworkPerformanceOptions: import_smithy_client._json,
|
|
1092
|
+
Placement: import_smithy_client._json,
|
|
1093
|
+
PrivateDnsNameOptions: import_smithy_client._json,
|
|
1094
|
+
PrivateIpAddress: [],
|
|
1095
|
+
RamdiskId: [],
|
|
1096
|
+
SecurityGroupIds: import_smithy_client._json,
|
|
1097
|
+
SecurityGroups: import_smithy_client._json,
|
|
1098
|
+
SubnetId: [],
|
|
1099
|
+
TagSpecifications: import_smithy_client._json,
|
|
1100
|
+
UserData: []
|
|
1101
|
+
});
|
|
1102
|
+
}, "se_ManagedInstanceRequest");
|
|
1103
|
+
var se_SpotMarketOptions = /* @__PURE__ */ __name((input, context) => {
|
|
1104
|
+
return (0, import_smithy_client.take)(input, {
|
|
1105
|
+
BlockDurationMinutes: [],
|
|
1106
|
+
InstanceInterruptionBehavior: [],
|
|
1107
|
+
MaxPrice: [],
|
|
1108
|
+
SpotInstanceType: [],
|
|
1109
|
+
ValidUntilUtc: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "ValidUntilUtc")
|
|
1110
|
+
});
|
|
1111
|
+
}, "se_SpotMarketOptions");
|
|
1112
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1113
|
+
httpStatusCode: output.statusCode,
|
|
1114
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1115
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1116
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1117
|
+
}), "deserializeMetadata");
|
|
1118
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(WorkspacesInstancesServiceException);
|
|
1119
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1120
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1121
|
+
const contents = {
|
|
1122
|
+
protocol,
|
|
1123
|
+
hostname,
|
|
1124
|
+
port,
|
|
1125
|
+
method: "POST",
|
|
1126
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1127
|
+
headers
|
|
1128
|
+
};
|
|
1129
|
+
if (resolvedHostname !== void 0) {
|
|
1130
|
+
contents.hostname = resolvedHostname;
|
|
1131
|
+
}
|
|
1132
|
+
if (body !== void 0) {
|
|
1133
|
+
contents.body = body;
|
|
1134
|
+
}
|
|
1135
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
1136
|
+
}, "buildHttpRpcRequest");
|
|
1137
|
+
function sharedHeaders(operation) {
|
|
1138
|
+
return {
|
|
1139
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1140
|
+
"x-amz-target": `EUCMIFrontendAPIService.${operation}`
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
1144
|
+
|
|
1145
|
+
// src/commands/AssociateVolumeCommand.ts
|
|
1146
|
+
var AssociateVolumeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1147
|
+
return [
|
|
1148
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1149
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1150
|
+
];
|
|
1151
|
+
}).s("EUCMIFrontendAPIService", "AssociateVolume", {}).n("WorkspacesInstancesClient", "AssociateVolumeCommand").f(void 0, void 0).ser(se_AssociateVolumeCommand).de(de_AssociateVolumeCommand).build() {
|
|
1152
|
+
static {
|
|
1153
|
+
__name(this, "AssociateVolumeCommand");
|
|
1154
|
+
}
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
// src/commands/CreateVolumeCommand.ts
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
var CreateVolumeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1162
|
+
return [
|
|
1163
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1164
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1165
|
+
];
|
|
1166
|
+
}).s("EUCMIFrontendAPIService", "CreateVolume", {}).n("WorkspacesInstancesClient", "CreateVolumeCommand").f(CreateVolumeRequestFilterSensitiveLog, void 0).ser(se_CreateVolumeCommand).de(de_CreateVolumeCommand).build() {
|
|
1167
|
+
static {
|
|
1168
|
+
__name(this, "CreateVolumeCommand");
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
// src/commands/CreateWorkspaceInstanceCommand.ts
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
var CreateWorkspaceInstanceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1177
|
+
return [
|
|
1178
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1179
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1180
|
+
];
|
|
1181
|
+
}).s("EUCMIFrontendAPIService", "CreateWorkspaceInstance", {}).n("WorkspacesInstancesClient", "CreateWorkspaceInstanceCommand").f(CreateWorkspaceInstanceRequestFilterSensitiveLog, void 0).ser(se_CreateWorkspaceInstanceCommand).de(de_CreateWorkspaceInstanceCommand).build() {
|
|
1182
|
+
static {
|
|
1183
|
+
__name(this, "CreateWorkspaceInstanceCommand");
|
|
1184
|
+
}
|
|
1185
|
+
};
|
|
1186
|
+
|
|
1187
|
+
// src/commands/DeleteVolumeCommand.ts
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
var DeleteVolumeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1192
|
+
return [
|
|
1193
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1194
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1195
|
+
];
|
|
1196
|
+
}).s("EUCMIFrontendAPIService", "DeleteVolume", {}).n("WorkspacesInstancesClient", "DeleteVolumeCommand").f(void 0, void 0).ser(se_DeleteVolumeCommand).de(de_DeleteVolumeCommand).build() {
|
|
1197
|
+
static {
|
|
1198
|
+
__name(this, "DeleteVolumeCommand");
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1202
|
+
// src/commands/DeleteWorkspaceInstanceCommand.ts
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
var DeleteWorkspaceInstanceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1207
|
+
return [
|
|
1208
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1209
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1210
|
+
];
|
|
1211
|
+
}).s("EUCMIFrontendAPIService", "DeleteWorkspaceInstance", {}).n("WorkspacesInstancesClient", "DeleteWorkspaceInstanceCommand").f(void 0, void 0).ser(se_DeleteWorkspaceInstanceCommand).de(de_DeleteWorkspaceInstanceCommand).build() {
|
|
1212
|
+
static {
|
|
1213
|
+
__name(this, "DeleteWorkspaceInstanceCommand");
|
|
1214
|
+
}
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
// src/commands/DisassociateVolumeCommand.ts
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
var DisassociateVolumeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1222
|
+
return [
|
|
1223
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1224
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1225
|
+
];
|
|
1226
|
+
}).s("EUCMIFrontendAPIService", "DisassociateVolume", {}).n("WorkspacesInstancesClient", "DisassociateVolumeCommand").f(void 0, void 0).ser(se_DisassociateVolumeCommand).de(de_DisassociateVolumeCommand).build() {
|
|
1227
|
+
static {
|
|
1228
|
+
__name(this, "DisassociateVolumeCommand");
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
// src/commands/GetWorkspaceInstanceCommand.ts
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
var GetWorkspaceInstanceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1237
|
+
return [
|
|
1238
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1239
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1240
|
+
];
|
|
1241
|
+
}).s("EUCMIFrontendAPIService", "GetWorkspaceInstance", {}).n("WorkspacesInstancesClient", "GetWorkspaceInstanceCommand").f(void 0, void 0).ser(se_GetWorkspaceInstanceCommand).de(de_GetWorkspaceInstanceCommand).build() {
|
|
1242
|
+
static {
|
|
1243
|
+
__name(this, "GetWorkspaceInstanceCommand");
|
|
1244
|
+
}
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
// src/commands/ListInstanceTypesCommand.ts
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
var ListInstanceTypesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1252
|
+
return [
|
|
1253
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1254
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1255
|
+
];
|
|
1256
|
+
}).s("EUCMIFrontendAPIService", "ListInstanceTypes", {}).n("WorkspacesInstancesClient", "ListInstanceTypesCommand").f(ListInstanceTypesRequestFilterSensitiveLog, ListInstanceTypesResponseFilterSensitiveLog).ser(se_ListInstanceTypesCommand).de(de_ListInstanceTypesCommand).build() {
|
|
1257
|
+
static {
|
|
1258
|
+
__name(this, "ListInstanceTypesCommand");
|
|
1259
|
+
}
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
// src/commands/ListRegionsCommand.ts
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
var ListRegionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1267
|
+
return [
|
|
1268
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1269
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1270
|
+
];
|
|
1271
|
+
}).s("EUCMIFrontendAPIService", "ListRegions", {}).n("WorkspacesInstancesClient", "ListRegionsCommand").f(ListRegionsRequestFilterSensitiveLog, ListRegionsResponseFilterSensitiveLog).ser(se_ListRegionsCommand).de(de_ListRegionsCommand).build() {
|
|
1272
|
+
static {
|
|
1273
|
+
__name(this, "ListRegionsCommand");
|
|
1274
|
+
}
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1282
|
+
return [
|
|
1283
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1284
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1285
|
+
];
|
|
1286
|
+
}).s("EUCMIFrontendAPIService", "ListTagsForResource", {}).n("WorkspacesInstancesClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1287
|
+
static {
|
|
1288
|
+
__name(this, "ListTagsForResourceCommand");
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
|
|
1292
|
+
// src/commands/ListWorkspaceInstancesCommand.ts
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
var ListWorkspaceInstancesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1297
|
+
return [
|
|
1298
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1299
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1300
|
+
];
|
|
1301
|
+
}).s("EUCMIFrontendAPIService", "ListWorkspaceInstances", {}).n("WorkspacesInstancesClient", "ListWorkspaceInstancesCommand").f(ListWorkspaceInstancesRequestFilterSensitiveLog, ListWorkspaceInstancesResponseFilterSensitiveLog).ser(se_ListWorkspaceInstancesCommand).de(de_ListWorkspaceInstancesCommand).build() {
|
|
1302
|
+
static {
|
|
1303
|
+
__name(this, "ListWorkspaceInstancesCommand");
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
// src/commands/TagResourceCommand.ts
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1312
|
+
return [
|
|
1313
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1314
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1315
|
+
];
|
|
1316
|
+
}).s("EUCMIFrontendAPIService", "TagResource", {}).n("WorkspacesInstancesClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1317
|
+
static {
|
|
1318
|
+
__name(this, "TagResourceCommand");
|
|
1319
|
+
}
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
// src/commands/UntagResourceCommand.ts
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1327
|
+
return [
|
|
1328
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1329
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1330
|
+
];
|
|
1331
|
+
}).s("EUCMIFrontendAPIService", "UntagResource", {}).n("WorkspacesInstancesClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1332
|
+
static {
|
|
1333
|
+
__name(this, "UntagResourceCommand");
|
|
1334
|
+
}
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1337
|
+
// src/WorkspacesInstances.ts
|
|
1338
|
+
var commands = {
|
|
1339
|
+
AssociateVolumeCommand,
|
|
1340
|
+
CreateVolumeCommand,
|
|
1341
|
+
CreateWorkspaceInstanceCommand,
|
|
1342
|
+
DeleteVolumeCommand,
|
|
1343
|
+
DeleteWorkspaceInstanceCommand,
|
|
1344
|
+
DisassociateVolumeCommand,
|
|
1345
|
+
GetWorkspaceInstanceCommand,
|
|
1346
|
+
ListInstanceTypesCommand,
|
|
1347
|
+
ListRegionsCommand,
|
|
1348
|
+
ListTagsForResourceCommand,
|
|
1349
|
+
ListWorkspaceInstancesCommand,
|
|
1350
|
+
TagResourceCommand,
|
|
1351
|
+
UntagResourceCommand
|
|
1352
|
+
};
|
|
1353
|
+
var WorkspacesInstances = class extends WorkspacesInstancesClient {
|
|
1354
|
+
static {
|
|
1355
|
+
__name(this, "WorkspacesInstances");
|
|
1356
|
+
}
|
|
1357
|
+
};
|
|
1358
|
+
(0, import_smithy_client.createAggregatedClient)(commands, WorkspacesInstances);
|
|
1359
|
+
|
|
1360
|
+
// src/pagination/ListInstanceTypesPaginator.ts
|
|
1361
|
+
|
|
1362
|
+
var paginateListInstanceTypes = (0, import_core.createPaginator)(WorkspacesInstancesClient, ListInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1363
|
+
|
|
1364
|
+
// src/pagination/ListRegionsPaginator.ts
|
|
1365
|
+
|
|
1366
|
+
var paginateListRegions = (0, import_core.createPaginator)(WorkspacesInstancesClient, ListRegionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1367
|
+
|
|
1368
|
+
// src/pagination/ListWorkspaceInstancesPaginator.ts
|
|
1369
|
+
|
|
1370
|
+
var paginateListWorkspaceInstances = (0, import_core.createPaginator)(WorkspacesInstancesClient, ListWorkspaceInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1371
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1372
|
+
|
|
1373
|
+
0 && (module.exports = {
|
|
1374
|
+
WorkspacesInstancesServiceException,
|
|
1375
|
+
__Client,
|
|
1376
|
+
WorkspacesInstancesClient,
|
|
1377
|
+
WorkspacesInstances,
|
|
1378
|
+
$Command,
|
|
1379
|
+
AssociateVolumeCommand,
|
|
1380
|
+
CreateVolumeCommand,
|
|
1381
|
+
CreateWorkspaceInstanceCommand,
|
|
1382
|
+
DeleteVolumeCommand,
|
|
1383
|
+
DeleteWorkspaceInstanceCommand,
|
|
1384
|
+
DisassociateVolumeCommand,
|
|
1385
|
+
GetWorkspaceInstanceCommand,
|
|
1386
|
+
ListInstanceTypesCommand,
|
|
1387
|
+
ListRegionsCommand,
|
|
1388
|
+
ListTagsForResourceCommand,
|
|
1389
|
+
ListWorkspaceInstancesCommand,
|
|
1390
|
+
TagResourceCommand,
|
|
1391
|
+
UntagResourceCommand,
|
|
1392
|
+
paginateListInstanceTypes,
|
|
1393
|
+
paginateListRegions,
|
|
1394
|
+
paginateListWorkspaceInstances,
|
|
1395
|
+
AccessDeniedException,
|
|
1396
|
+
AmdSevSnpEnum,
|
|
1397
|
+
ConflictException,
|
|
1398
|
+
InternalServerException,
|
|
1399
|
+
ResourceNotFoundException,
|
|
1400
|
+
ThrottlingException,
|
|
1401
|
+
ValidationExceptionReason,
|
|
1402
|
+
ValidationException,
|
|
1403
|
+
AutoRecoveryEnum,
|
|
1404
|
+
BandwidthWeightingEnum,
|
|
1405
|
+
VolumeTypeEnum,
|
|
1406
|
+
CapacityReservationPreferenceEnum,
|
|
1407
|
+
CpuCreditsEnum,
|
|
1408
|
+
ResourceTypeEnum,
|
|
1409
|
+
ServiceQuotaExceededException,
|
|
1410
|
+
MarketTypeEnum,
|
|
1411
|
+
InstanceInterruptionBehaviorEnum,
|
|
1412
|
+
SpotInstanceTypeEnum,
|
|
1413
|
+
HttpEndpointEnum,
|
|
1414
|
+
HttpProtocolIpv6Enum,
|
|
1415
|
+
HttpTokensEnum,
|
|
1416
|
+
InstanceMetadataTagsEnum,
|
|
1417
|
+
InterfaceTypeEnum,
|
|
1418
|
+
TenancyEnum,
|
|
1419
|
+
HostnameTypeEnum,
|
|
1420
|
+
DisassociateModeEnum,
|
|
1421
|
+
ProvisionStateEnum,
|
|
1422
|
+
EbsBlockDeviceFilterSensitiveLog,
|
|
1423
|
+
BlockDeviceMappingRequestFilterSensitiveLog,
|
|
1424
|
+
CreateVolumeRequestFilterSensitiveLog,
|
|
1425
|
+
InstanceIpv6AddressFilterSensitiveLog,
|
|
1426
|
+
PrivateIpAddressSpecificationFilterSensitiveLog,
|
|
1427
|
+
InstanceNetworkInterfaceSpecificationFilterSensitiveLog,
|
|
1428
|
+
ManagedInstanceRequestFilterSensitiveLog,
|
|
1429
|
+
CreateWorkspaceInstanceRequestFilterSensitiveLog,
|
|
1430
|
+
ListInstanceTypesRequestFilterSensitiveLog,
|
|
1431
|
+
ListInstanceTypesResponseFilterSensitiveLog,
|
|
1432
|
+
ListRegionsRequestFilterSensitiveLog,
|
|
1433
|
+
ListRegionsResponseFilterSensitiveLog,
|
|
1434
|
+
ListWorkspaceInstancesRequestFilterSensitiveLog,
|
|
1435
|
+
ListWorkspaceInstancesResponseFilterSensitiveLog
|
|
1436
|
+
});
|
|
1437
|
+
|