@aws-sdk/client-workspaces-instances 3.1067.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +82 -102
- package/dist-cjs/models/WorkspacesInstancesServiceException.js +4 -8
- package/dist-cjs/models/errors.js +15 -25
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +198 -129
- package/package.json +8 -8
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultWorkspacesInstancesHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultWorkspacesInstancesHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultWorkspacesInstancesHttpAuthSchemeParametersProvider = defaultWorkspacesInstancesHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultWorkspacesInstancesHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultWorkspacesInstancesHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
|
|
6
3
|
const _data = {
|
|
7
4
|
conditions: [
|
|
@@ -29,4 +26,4 @@ const nodes = new Int32Array([
|
|
|
29
26
|
3, r + 3, r + 4,
|
|
30
27
|
3, r + 1, r + 2,
|
|
31
28
|
]);
|
|
32
|
-
exports.bdd =
|
|
29
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultWorkspacesInstancesHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { AssociateVolume$, CreateVolume$, CreateWorkspaceInstance$, DeleteVolume$, DeleteWorkspaceInstance$, DisassociateVolume$, GetWorkspaceInstance$, ListInstanceTypes$, ListRegions$, ListTagsForResource$, ListWorkspaceInstances$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { WorkspacesInstancesServiceException } = require("./models/WorkspacesInstancesServiceException");
|
|
18
|
+
exports.WorkspacesInstancesServiceException = WorkspacesInstancesServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -66,207 +69,207 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
66
69
|
};
|
|
67
70
|
|
|
68
71
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
69
|
-
const extensionConfiguration = Object.assign(
|
|
72
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
70
73
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
71
|
-
return Object.assign(runtimeConfig,
|
|
74
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
72
75
|
};
|
|
73
76
|
|
|
74
|
-
class WorkspacesInstancesClient extends
|
|
77
|
+
class WorkspacesInstancesClient extends Client {
|
|
75
78
|
config;
|
|
76
79
|
constructor(...[configuration]) {
|
|
77
|
-
const _config_0 =
|
|
80
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
78
81
|
super(_config_0);
|
|
79
82
|
this.initConfig = _config_0;
|
|
80
83
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
81
|
-
const _config_2 =
|
|
82
|
-
const _config_3 =
|
|
83
|
-
const _config_4 =
|
|
84
|
-
const _config_5 =
|
|
85
|
-
const _config_6 =
|
|
86
|
-
const _config_7 =
|
|
84
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
85
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
86
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
87
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
88
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
89
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
87
90
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
88
91
|
this.config = _config_8;
|
|
89
|
-
this.middlewareStack.use(
|
|
90
|
-
this.middlewareStack.use(
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
httpAuthSchemeParametersProvider:
|
|
98
|
-
identityProviderConfigProvider: async (config) => new
|
|
92
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
93
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
100
|
+
httpAuthSchemeParametersProvider: defaultWorkspacesInstancesHttpAuthSchemeParametersProvider,
|
|
101
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
99
102
|
"aws.auth#sigv4": config.credentials,
|
|
100
103
|
}),
|
|
101
104
|
}));
|
|
102
|
-
this.middlewareStack.use(
|
|
105
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
103
106
|
}
|
|
104
107
|
destroy() {
|
|
105
108
|
super.destroy();
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
|
|
109
|
-
class AssociateVolumeCommand extends
|
|
112
|
+
class AssociateVolumeCommand extends Command
|
|
110
113
|
.classBuilder()
|
|
111
114
|
.ep(commonParams)
|
|
112
115
|
.m(function (Command, cs, config, o) {
|
|
113
|
-
return [
|
|
116
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
114
117
|
})
|
|
115
118
|
.s("EUCMIFrontendAPIService", "AssociateVolume", {})
|
|
116
119
|
.n("WorkspacesInstancesClient", "AssociateVolumeCommand")
|
|
117
|
-
.sc(
|
|
120
|
+
.sc(AssociateVolume$)
|
|
118
121
|
.build() {
|
|
119
122
|
}
|
|
120
123
|
|
|
121
|
-
class CreateVolumeCommand extends
|
|
124
|
+
class CreateVolumeCommand extends Command
|
|
122
125
|
.classBuilder()
|
|
123
126
|
.ep(commonParams)
|
|
124
127
|
.m(function (Command, cs, config, o) {
|
|
125
|
-
return [
|
|
128
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
126
129
|
})
|
|
127
130
|
.s("EUCMIFrontendAPIService", "CreateVolume", {})
|
|
128
131
|
.n("WorkspacesInstancesClient", "CreateVolumeCommand")
|
|
129
|
-
.sc(
|
|
132
|
+
.sc(CreateVolume$)
|
|
130
133
|
.build() {
|
|
131
134
|
}
|
|
132
135
|
|
|
133
|
-
class CreateWorkspaceInstanceCommand extends
|
|
136
|
+
class CreateWorkspaceInstanceCommand extends Command
|
|
134
137
|
.classBuilder()
|
|
135
138
|
.ep(commonParams)
|
|
136
139
|
.m(function (Command, cs, config, o) {
|
|
137
|
-
return [
|
|
140
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
138
141
|
})
|
|
139
142
|
.s("EUCMIFrontendAPIService", "CreateWorkspaceInstance", {})
|
|
140
143
|
.n("WorkspacesInstancesClient", "CreateWorkspaceInstanceCommand")
|
|
141
|
-
.sc(
|
|
144
|
+
.sc(CreateWorkspaceInstance$)
|
|
142
145
|
.build() {
|
|
143
146
|
}
|
|
144
147
|
|
|
145
|
-
class DeleteVolumeCommand extends
|
|
148
|
+
class DeleteVolumeCommand extends Command
|
|
146
149
|
.classBuilder()
|
|
147
150
|
.ep(commonParams)
|
|
148
151
|
.m(function (Command, cs, config, o) {
|
|
149
|
-
return [
|
|
152
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
150
153
|
})
|
|
151
154
|
.s("EUCMIFrontendAPIService", "DeleteVolume", {})
|
|
152
155
|
.n("WorkspacesInstancesClient", "DeleteVolumeCommand")
|
|
153
|
-
.sc(
|
|
156
|
+
.sc(DeleteVolume$)
|
|
154
157
|
.build() {
|
|
155
158
|
}
|
|
156
159
|
|
|
157
|
-
class DeleteWorkspaceInstanceCommand extends
|
|
160
|
+
class DeleteWorkspaceInstanceCommand extends Command
|
|
158
161
|
.classBuilder()
|
|
159
162
|
.ep(commonParams)
|
|
160
163
|
.m(function (Command, cs, config, o) {
|
|
161
|
-
return [
|
|
164
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
162
165
|
})
|
|
163
166
|
.s("EUCMIFrontendAPIService", "DeleteWorkspaceInstance", {})
|
|
164
167
|
.n("WorkspacesInstancesClient", "DeleteWorkspaceInstanceCommand")
|
|
165
|
-
.sc(
|
|
168
|
+
.sc(DeleteWorkspaceInstance$)
|
|
166
169
|
.build() {
|
|
167
170
|
}
|
|
168
171
|
|
|
169
|
-
class DisassociateVolumeCommand extends
|
|
172
|
+
class DisassociateVolumeCommand extends Command
|
|
170
173
|
.classBuilder()
|
|
171
174
|
.ep(commonParams)
|
|
172
175
|
.m(function (Command, cs, config, o) {
|
|
173
|
-
return [
|
|
176
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
174
177
|
})
|
|
175
178
|
.s("EUCMIFrontendAPIService", "DisassociateVolume", {})
|
|
176
179
|
.n("WorkspacesInstancesClient", "DisassociateVolumeCommand")
|
|
177
|
-
.sc(
|
|
180
|
+
.sc(DisassociateVolume$)
|
|
178
181
|
.build() {
|
|
179
182
|
}
|
|
180
183
|
|
|
181
|
-
class GetWorkspaceInstanceCommand extends
|
|
184
|
+
class GetWorkspaceInstanceCommand extends Command
|
|
182
185
|
.classBuilder()
|
|
183
186
|
.ep(commonParams)
|
|
184
187
|
.m(function (Command, cs, config, o) {
|
|
185
|
-
return [
|
|
188
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
186
189
|
})
|
|
187
190
|
.s("EUCMIFrontendAPIService", "GetWorkspaceInstance", {})
|
|
188
191
|
.n("WorkspacesInstancesClient", "GetWorkspaceInstanceCommand")
|
|
189
|
-
.sc(
|
|
192
|
+
.sc(GetWorkspaceInstance$)
|
|
190
193
|
.build() {
|
|
191
194
|
}
|
|
192
195
|
|
|
193
|
-
class ListInstanceTypesCommand extends
|
|
196
|
+
class ListInstanceTypesCommand extends Command
|
|
194
197
|
.classBuilder()
|
|
195
198
|
.ep(commonParams)
|
|
196
199
|
.m(function (Command, cs, config, o) {
|
|
197
|
-
return [
|
|
200
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
198
201
|
})
|
|
199
202
|
.s("EUCMIFrontendAPIService", "ListInstanceTypes", {})
|
|
200
203
|
.n("WorkspacesInstancesClient", "ListInstanceTypesCommand")
|
|
201
|
-
.sc(
|
|
204
|
+
.sc(ListInstanceTypes$)
|
|
202
205
|
.build() {
|
|
203
206
|
}
|
|
204
207
|
|
|
205
|
-
class ListRegionsCommand extends
|
|
208
|
+
class ListRegionsCommand extends Command
|
|
206
209
|
.classBuilder()
|
|
207
210
|
.ep(commonParams)
|
|
208
211
|
.m(function (Command, cs, config, o) {
|
|
209
|
-
return [
|
|
212
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
210
213
|
})
|
|
211
214
|
.s("EUCMIFrontendAPIService", "ListRegions", {})
|
|
212
215
|
.n("WorkspacesInstancesClient", "ListRegionsCommand")
|
|
213
|
-
.sc(
|
|
216
|
+
.sc(ListRegions$)
|
|
214
217
|
.build() {
|
|
215
218
|
}
|
|
216
219
|
|
|
217
|
-
class ListTagsForResourceCommand extends
|
|
220
|
+
class ListTagsForResourceCommand extends Command
|
|
218
221
|
.classBuilder()
|
|
219
222
|
.ep(commonParams)
|
|
220
223
|
.m(function (Command, cs, config, o) {
|
|
221
|
-
return [
|
|
224
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
222
225
|
})
|
|
223
226
|
.s("EUCMIFrontendAPIService", "ListTagsForResource", {})
|
|
224
227
|
.n("WorkspacesInstancesClient", "ListTagsForResourceCommand")
|
|
225
|
-
.sc(
|
|
228
|
+
.sc(ListTagsForResource$)
|
|
226
229
|
.build() {
|
|
227
230
|
}
|
|
228
231
|
|
|
229
|
-
class ListWorkspaceInstancesCommand extends
|
|
232
|
+
class ListWorkspaceInstancesCommand extends Command
|
|
230
233
|
.classBuilder()
|
|
231
234
|
.ep(commonParams)
|
|
232
235
|
.m(function (Command, cs, config, o) {
|
|
233
|
-
return [
|
|
236
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
234
237
|
})
|
|
235
238
|
.s("EUCMIFrontendAPIService", "ListWorkspaceInstances", {})
|
|
236
239
|
.n("WorkspacesInstancesClient", "ListWorkspaceInstancesCommand")
|
|
237
|
-
.sc(
|
|
240
|
+
.sc(ListWorkspaceInstances$)
|
|
238
241
|
.build() {
|
|
239
242
|
}
|
|
240
243
|
|
|
241
|
-
class TagResourceCommand extends
|
|
244
|
+
class TagResourceCommand extends Command
|
|
242
245
|
.classBuilder()
|
|
243
246
|
.ep(commonParams)
|
|
244
247
|
.m(function (Command, cs, config, o) {
|
|
245
|
-
return [
|
|
248
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
246
249
|
})
|
|
247
250
|
.s("EUCMIFrontendAPIService", "TagResource", {})
|
|
248
251
|
.n("WorkspacesInstancesClient", "TagResourceCommand")
|
|
249
|
-
.sc(
|
|
252
|
+
.sc(TagResource$)
|
|
250
253
|
.build() {
|
|
251
254
|
}
|
|
252
255
|
|
|
253
|
-
class UntagResourceCommand extends
|
|
256
|
+
class UntagResourceCommand extends Command
|
|
254
257
|
.classBuilder()
|
|
255
258
|
.ep(commonParams)
|
|
256
259
|
.m(function (Command, cs, config, o) {
|
|
257
|
-
return [
|
|
260
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
258
261
|
})
|
|
259
262
|
.s("EUCMIFrontendAPIService", "UntagResource", {})
|
|
260
263
|
.n("WorkspacesInstancesClient", "UntagResourceCommand")
|
|
261
|
-
.sc(
|
|
264
|
+
.sc(UntagResource$)
|
|
262
265
|
.build() {
|
|
263
266
|
}
|
|
264
267
|
|
|
265
|
-
const paginateListInstanceTypes =
|
|
268
|
+
const paginateListInstanceTypes = createPaginator(WorkspacesInstancesClient, ListInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
266
269
|
|
|
267
|
-
const paginateListRegions =
|
|
270
|
+
const paginateListRegions = createPaginator(WorkspacesInstancesClient, ListRegionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
268
271
|
|
|
269
|
-
const paginateListWorkspaceInstances =
|
|
272
|
+
const paginateListWorkspaceInstances = createPaginator(WorkspacesInstancesClient, ListWorkspaceInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
270
273
|
|
|
271
274
|
const commands = {
|
|
272
275
|
AssociateVolumeCommand,
|
|
@@ -290,7 +293,7 @@ const paginators = {
|
|
|
290
293
|
};
|
|
291
294
|
class WorkspacesInstances extends WorkspacesInstancesClient {
|
|
292
295
|
}
|
|
293
|
-
|
|
296
|
+
createAggregatedClient(commands, WorkspacesInstances, { paginators });
|
|
294
297
|
|
|
295
298
|
const AmdSevSnpEnum = {
|
|
296
299
|
DISABLED: "disabled",
|
|
@@ -409,9 +412,6 @@ const InstanceConfigurationTenancyEnum = {
|
|
|
409
412
|
SHARED: "SHARED",
|
|
410
413
|
};
|
|
411
414
|
|
|
412
|
-
exports.$Command = client.Command;
|
|
413
|
-
exports.__Client = client.Client;
|
|
414
|
-
exports.WorkspacesInstancesServiceException = WorkspacesInstancesServiceException.WorkspacesInstancesServiceException;
|
|
415
415
|
exports.AmdSevSnpEnum = AmdSevSnpEnum;
|
|
416
416
|
exports.AssociateVolumeCommand = AssociateVolumeCommand;
|
|
417
417
|
exports.AutoRecoveryEnum = AutoRecoveryEnum;
|
|
@@ -453,23 +453,3 @@ exports.WorkspacesInstancesClient = WorkspacesInstancesClient;
|
|
|
453
453
|
exports.paginateListInstanceTypes = paginateListInstanceTypes;
|
|
454
454
|
exports.paginateListRegions = paginateListRegions;
|
|
455
455
|
exports.paginateListWorkspaceInstances = paginateListWorkspaceInstances;
|
|
456
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
457
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
458
|
-
Object.defineProperty(exports, '__proto__', {
|
|
459
|
-
enumerable: true,
|
|
460
|
-
value: schemas_0['__proto__']
|
|
461
|
-
});
|
|
462
|
-
|
|
463
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
464
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
465
|
-
});
|
|
466
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
467
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
468
|
-
Object.defineProperty(exports, '__proto__', {
|
|
469
|
-
enumerable: true,
|
|
470
|
-
value: errors['__proto__']
|
|
471
|
-
});
|
|
472
|
-
|
|
473
|
-
Object.keys(errors).forEach(function (k) {
|
|
474
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
475
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.WorkspacesInstancesServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class WorkspacesInstancesServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.WorkspacesInstancesServiceException = class WorkspacesInstancesServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, WorkspacesInstancesServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.WorkspacesInstancesServiceException = WorkspacesInstancesServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ServiceQuotaExceededException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const WorkspacesInstancesServiceException_1 = require("./WorkspacesInstancesServiceException");
|
|
5
|
-
class AccessDeniedException extends WorkspacesInstancesServiceException_1.WorkspacesInstancesServiceException {
|
|
1
|
+
const { WorkspacesInstancesServiceException: __BaseException } = require("./WorkspacesInstancesServiceException");
|
|
2
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
6
3
|
name = "AccessDeniedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
Message;
|
|
@@ -15,9 +12,8 @@ class AccessDeniedException extends WorkspacesInstancesServiceException_1.Worksp
|
|
|
15
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
13
|
this.Message = opts.Message;
|
|
17
14
|
}
|
|
18
|
-
}
|
|
19
|
-
exports.
|
|
20
|
-
class ConflictException extends WorkspacesInstancesServiceException_1.WorkspacesInstancesServiceException {
|
|
15
|
+
};
|
|
16
|
+
exports.ConflictException = class ConflictException extends __BaseException {
|
|
21
17
|
name = "ConflictException";
|
|
22
18
|
$fault = "client";
|
|
23
19
|
Message;
|
|
@@ -34,9 +30,8 @@ class ConflictException extends WorkspacesInstancesServiceException_1.Workspaces
|
|
|
34
30
|
this.ResourceId = opts.ResourceId;
|
|
35
31
|
this.ResourceType = opts.ResourceType;
|
|
36
32
|
}
|
|
37
|
-
}
|
|
38
|
-
exports.
|
|
39
|
-
class InternalServerException extends WorkspacesInstancesServiceException_1.WorkspacesInstancesServiceException {
|
|
33
|
+
};
|
|
34
|
+
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
40
35
|
name = "InternalServerException";
|
|
41
36
|
$fault = "server";
|
|
42
37
|
$retryable = {};
|
|
@@ -52,9 +47,8 @@ class InternalServerException extends WorkspacesInstancesServiceException_1.Work
|
|
|
52
47
|
this.Message = opts.Message;
|
|
53
48
|
this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
54
49
|
}
|
|
55
|
-
}
|
|
56
|
-
exports.
|
|
57
|
-
class ResourceNotFoundException extends WorkspacesInstancesServiceException_1.WorkspacesInstancesServiceException {
|
|
50
|
+
};
|
|
51
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
58
52
|
name = "ResourceNotFoundException";
|
|
59
53
|
$fault = "client";
|
|
60
54
|
Message;
|
|
@@ -71,9 +65,8 @@ class ResourceNotFoundException extends WorkspacesInstancesServiceException_1.Wo
|
|
|
71
65
|
this.ResourceId = opts.ResourceId;
|
|
72
66
|
this.ResourceType = opts.ResourceType;
|
|
73
67
|
}
|
|
74
|
-
}
|
|
75
|
-
exports.
|
|
76
|
-
class ThrottlingException extends WorkspacesInstancesServiceException_1.WorkspacesInstancesServiceException {
|
|
68
|
+
};
|
|
69
|
+
exports.ThrottlingException = class ThrottlingException extends __BaseException {
|
|
77
70
|
name = "ThrottlingException";
|
|
78
71
|
$fault = "client";
|
|
79
72
|
$retryable = {
|
|
@@ -95,9 +88,8 @@ class ThrottlingException extends WorkspacesInstancesServiceException_1.Workspac
|
|
|
95
88
|
this.QuotaCode = opts.QuotaCode;
|
|
96
89
|
this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
97
90
|
}
|
|
98
|
-
}
|
|
99
|
-
exports.
|
|
100
|
-
class ValidationException extends WorkspacesInstancesServiceException_1.WorkspacesInstancesServiceException {
|
|
91
|
+
};
|
|
92
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
101
93
|
name = "ValidationException";
|
|
102
94
|
$fault = "client";
|
|
103
95
|
Message;
|
|
@@ -114,9 +106,8 @@ class ValidationException extends WorkspacesInstancesServiceException_1.Workspac
|
|
|
114
106
|
this.Reason = opts.Reason;
|
|
115
107
|
this.FieldList = opts.FieldList;
|
|
116
108
|
}
|
|
117
|
-
}
|
|
118
|
-
exports.
|
|
119
|
-
class ServiceQuotaExceededException extends WorkspacesInstancesServiceException_1.WorkspacesInstancesServiceException {
|
|
109
|
+
};
|
|
110
|
+
exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
|
|
120
111
|
name = "ServiceQuotaExceededException";
|
|
121
112
|
$fault = "client";
|
|
122
113
|
Message;
|
|
@@ -137,5 +128,4 @@ class ServiceQuotaExceededException extends WorkspacesInstancesServiceException_
|
|
|
137
128
|
this.ServiceCode = opts.ServiceCode;
|
|
138
129
|
this.QuotaCode = opts.QuotaCode;
|
|
139
130
|
}
|
|
140
|
-
}
|
|
141
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
131
|
+
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
32
|
exports.getRuntimeConfig = getRuntimeConfig;
|