@aws-sdk/client-ssm-guiconnect 3.893.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 +631 -9
- package/package.json +6 -6
- package/dist-cjs/SSMGuiConnect.js +0 -17
- package/dist-cjs/SSMGuiConnectClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/DeleteConnectionRecordingPreferencesCommand.js +0 -26
- package/dist-cjs/commands/GetConnectionRecordingPreferencesCommand.js +0 -26
- package/dist-cjs/commands/UpdateConnectionRecordingPreferencesCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -6
- package/dist-cjs/endpoint/EndpointParameters.js +0 -17
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/SSMGuiConnectServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -95
- package/dist-cjs/protocols/Aws_restJson1.js +0 -230
- package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js
CHANGED
|
@@ -1,10 +1,632 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
ConflictException: () => ConflictException,
|
|
26
|
+
DeleteConnectionRecordingPreferencesCommand: () => DeleteConnectionRecordingPreferencesCommand,
|
|
27
|
+
GetConnectionRecordingPreferencesCommand: () => GetConnectionRecordingPreferencesCommand,
|
|
28
|
+
InternalServerException: () => InternalServerException,
|
|
29
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
30
|
+
SSMGuiConnect: () => SSMGuiConnect,
|
|
31
|
+
SSMGuiConnectClient: () => SSMGuiConnectClient,
|
|
32
|
+
SSMGuiConnectServiceException: () => SSMGuiConnectServiceException,
|
|
33
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
34
|
+
ThrottlingException: () => ThrottlingException,
|
|
35
|
+
UpdateConnectionRecordingPreferencesCommand: () => UpdateConnectionRecordingPreferencesCommand,
|
|
36
|
+
ValidationException: () => ValidationException,
|
|
37
|
+
__Client: () => import_smithy_client.Client
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(index_exports);
|
|
40
|
+
|
|
41
|
+
// src/SSMGuiConnectClient.ts
|
|
42
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
43
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
44
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
45
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
46
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
47
|
+
var import_core = require("@smithy/core");
|
|
48
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
49
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
50
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
51
|
+
|
|
52
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
53
|
+
|
|
54
|
+
// src/endpoint/EndpointParameters.ts
|
|
55
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
56
|
+
return Object.assign(options, {
|
|
57
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
58
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
59
|
+
defaultSigningName: "ssm-guiconnect"
|
|
60
|
+
});
|
|
61
|
+
}, "resolveClientEndpointParameters");
|
|
62
|
+
var commonParams = {
|
|
63
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
64
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
65
|
+
Region: { type: "builtInParams", name: "region" },
|
|
66
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// src/SSMGuiConnectClient.ts
|
|
70
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
71
|
+
|
|
72
|
+
// src/runtimeExtensions.ts
|
|
73
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
74
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
75
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
76
|
+
|
|
77
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
78
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
79
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
80
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
81
|
+
let _credentials = runtimeConfig.credentials;
|
|
82
|
+
return {
|
|
83
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
84
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
85
|
+
if (index === -1) {
|
|
86
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
87
|
+
} else {
|
|
88
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
httpAuthSchemes() {
|
|
92
|
+
return _httpAuthSchemes;
|
|
93
|
+
},
|
|
94
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
95
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
96
|
+
},
|
|
97
|
+
httpAuthSchemeProvider() {
|
|
98
|
+
return _httpAuthSchemeProvider;
|
|
99
|
+
},
|
|
100
|
+
setCredentials(credentials) {
|
|
101
|
+
_credentials = credentials;
|
|
102
|
+
},
|
|
103
|
+
credentials() {
|
|
104
|
+
return _credentials;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
108
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
109
|
+
return {
|
|
110
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
111
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
112
|
+
credentials: config.credentials()
|
|
113
|
+
};
|
|
114
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
115
|
+
|
|
116
|
+
// src/runtimeExtensions.ts
|
|
117
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
118
|
+
const extensionConfiguration = Object.assign(
|
|
119
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
120
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
121
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
122
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
123
|
+
);
|
|
124
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
125
|
+
return Object.assign(
|
|
126
|
+
runtimeConfig,
|
|
127
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
128
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
129
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
130
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
131
|
+
);
|
|
132
|
+
}, "resolveRuntimeExtensions");
|
|
133
|
+
|
|
134
|
+
// src/SSMGuiConnectClient.ts
|
|
135
|
+
var SSMGuiConnectClient = class extends import_smithy_client.Client {
|
|
136
|
+
static {
|
|
137
|
+
__name(this, "SSMGuiConnectClient");
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The resolved configuration of SSMGuiConnectClient class. This is resolved and normalized from the {@link SSMGuiConnectClientConfig | constructor configuration interface}.
|
|
141
|
+
*/
|
|
142
|
+
config;
|
|
143
|
+
constructor(...[configuration]) {
|
|
144
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
145
|
+
super(_config_0);
|
|
146
|
+
this.initConfig = _config_0;
|
|
147
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
148
|
+
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
149
|
+
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
150
|
+
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
151
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
152
|
+
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
153
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
154
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
155
|
+
this.config = _config_8;
|
|
156
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
157
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
158
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
159
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
160
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
161
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
162
|
+
this.middlewareStack.use(
|
|
163
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
164
|
+
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSMGuiConnectHttpAuthSchemeParametersProvider,
|
|
165
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
166
|
+
"aws.auth#sigv4": config.credentials
|
|
167
|
+
}), "identityProviderConfigProvider")
|
|
168
|
+
})
|
|
169
|
+
);
|
|
170
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
174
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
175
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
176
|
+
*/
|
|
177
|
+
destroy() {
|
|
178
|
+
super.destroy();
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
// src/SSMGuiConnect.ts
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
// src/commands/DeleteConnectionRecordingPreferencesCommand.ts
|
|
186
|
+
|
|
187
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
// src/protocols/Aws_restJson1.ts
|
|
191
|
+
var import_core2 = require("@aws-sdk/core");
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
var import_uuid = require("uuid");
|
|
195
|
+
|
|
196
|
+
// src/models/SSMGuiConnectServiceException.ts
|
|
197
|
+
|
|
198
|
+
var SSMGuiConnectServiceException = class _SSMGuiConnectServiceException extends import_smithy_client.ServiceException {
|
|
199
|
+
static {
|
|
200
|
+
__name(this, "SSMGuiConnectServiceException");
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
constructor(options) {
|
|
206
|
+
super(options);
|
|
207
|
+
Object.setPrototypeOf(this, _SSMGuiConnectServiceException.prototype);
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
// src/models/models_0.ts
|
|
212
|
+
var AccessDeniedException = class _AccessDeniedException extends SSMGuiConnectServiceException {
|
|
213
|
+
static {
|
|
214
|
+
__name(this, "AccessDeniedException");
|
|
215
|
+
}
|
|
216
|
+
name = "AccessDeniedException";
|
|
217
|
+
$fault = "client";
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
constructor(opts) {
|
|
222
|
+
super({
|
|
223
|
+
name: "AccessDeniedException",
|
|
224
|
+
$fault: "client",
|
|
225
|
+
...opts
|
|
226
|
+
});
|
|
227
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
var ConflictException = class _ConflictException extends SSMGuiConnectServiceException {
|
|
231
|
+
static {
|
|
232
|
+
__name(this, "ConflictException");
|
|
233
|
+
}
|
|
234
|
+
name = "ConflictException";
|
|
235
|
+
$fault = "client";
|
|
236
|
+
/**
|
|
237
|
+
* @internal
|
|
238
|
+
*/
|
|
239
|
+
constructor(opts) {
|
|
240
|
+
super({
|
|
241
|
+
name: "ConflictException",
|
|
242
|
+
$fault: "client",
|
|
243
|
+
...opts
|
|
244
|
+
});
|
|
245
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
var InternalServerException = class _InternalServerException extends SSMGuiConnectServiceException {
|
|
249
|
+
static {
|
|
250
|
+
__name(this, "InternalServerException");
|
|
251
|
+
}
|
|
252
|
+
name = "InternalServerException";
|
|
253
|
+
$fault = "server";
|
|
254
|
+
/**
|
|
255
|
+
* @internal
|
|
256
|
+
*/
|
|
257
|
+
constructor(opts) {
|
|
258
|
+
super({
|
|
259
|
+
name: "InternalServerException",
|
|
260
|
+
$fault: "server",
|
|
261
|
+
...opts
|
|
262
|
+
});
|
|
263
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
var ResourceNotFoundException = class _ResourceNotFoundException extends SSMGuiConnectServiceException {
|
|
267
|
+
static {
|
|
268
|
+
__name(this, "ResourceNotFoundException");
|
|
269
|
+
}
|
|
270
|
+
name = "ResourceNotFoundException";
|
|
271
|
+
$fault = "client";
|
|
272
|
+
/**
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
constructor(opts) {
|
|
276
|
+
super({
|
|
277
|
+
name: "ResourceNotFoundException",
|
|
278
|
+
$fault: "client",
|
|
279
|
+
...opts
|
|
280
|
+
});
|
|
281
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SSMGuiConnectServiceException {
|
|
285
|
+
static {
|
|
286
|
+
__name(this, "ServiceQuotaExceededException");
|
|
287
|
+
}
|
|
288
|
+
name = "ServiceQuotaExceededException";
|
|
289
|
+
$fault = "client";
|
|
290
|
+
/**
|
|
291
|
+
* @internal
|
|
292
|
+
*/
|
|
293
|
+
constructor(opts) {
|
|
294
|
+
super({
|
|
295
|
+
name: "ServiceQuotaExceededException",
|
|
296
|
+
$fault: "client",
|
|
297
|
+
...opts
|
|
298
|
+
});
|
|
299
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
var ThrottlingException = class _ThrottlingException extends SSMGuiConnectServiceException {
|
|
303
|
+
static {
|
|
304
|
+
__name(this, "ThrottlingException");
|
|
305
|
+
}
|
|
306
|
+
name = "ThrottlingException";
|
|
307
|
+
$fault = "client";
|
|
308
|
+
/**
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
constructor(opts) {
|
|
312
|
+
super({
|
|
313
|
+
name: "ThrottlingException",
|
|
314
|
+
$fault: "client",
|
|
315
|
+
...opts
|
|
316
|
+
});
|
|
317
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
var ValidationException = class _ValidationException extends SSMGuiConnectServiceException {
|
|
321
|
+
static {
|
|
322
|
+
__name(this, "ValidationException");
|
|
323
|
+
}
|
|
324
|
+
name = "ValidationException";
|
|
325
|
+
$fault = "client";
|
|
326
|
+
/**
|
|
327
|
+
* @internal
|
|
328
|
+
*/
|
|
329
|
+
constructor(opts) {
|
|
330
|
+
super({
|
|
331
|
+
name: "ValidationException",
|
|
332
|
+
$fault: "client",
|
|
333
|
+
...opts
|
|
334
|
+
});
|
|
335
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
// src/protocols/Aws_restJson1.ts
|
|
340
|
+
var se_DeleteConnectionRecordingPreferencesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
341
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
342
|
+
const headers = {
|
|
343
|
+
"content-type": "application/json"
|
|
344
|
+
};
|
|
345
|
+
b.bp("/DeleteConnectionRecordingPreferences");
|
|
346
|
+
let body;
|
|
347
|
+
body = JSON.stringify(
|
|
348
|
+
(0, import_smithy_client.take)(input, {
|
|
349
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
|
|
350
|
+
})
|
|
351
|
+
);
|
|
352
|
+
b.m("POST").h(headers).b(body);
|
|
353
|
+
return b.build();
|
|
354
|
+
}, "se_DeleteConnectionRecordingPreferencesCommand");
|
|
355
|
+
var se_GetConnectionRecordingPreferencesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
356
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
357
|
+
const headers = {};
|
|
358
|
+
b.bp("/GetConnectionRecordingPreferences");
|
|
359
|
+
let body;
|
|
360
|
+
b.m("POST").h(headers).b(body);
|
|
361
|
+
return b.build();
|
|
362
|
+
}, "se_GetConnectionRecordingPreferencesCommand");
|
|
363
|
+
var se_UpdateConnectionRecordingPreferencesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
364
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
365
|
+
const headers = {
|
|
366
|
+
"content-type": "application/json"
|
|
367
|
+
};
|
|
368
|
+
b.bp("/UpdateConnectionRecordingPreferences");
|
|
369
|
+
let body;
|
|
370
|
+
body = JSON.stringify(
|
|
371
|
+
(0, import_smithy_client.take)(input, {
|
|
372
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
373
|
+
ConnectionRecordingPreferences: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ConnectionRecordingPreferences")
|
|
374
|
+
})
|
|
375
|
+
);
|
|
376
|
+
b.m("POST").h(headers).b(body);
|
|
377
|
+
return b.build();
|
|
378
|
+
}, "se_UpdateConnectionRecordingPreferencesCommand");
|
|
379
|
+
var de_DeleteConnectionRecordingPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
380
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
381
|
+
return de_CommandError(output, context);
|
|
382
|
+
}
|
|
383
|
+
const contents = (0, import_smithy_client.map)({
|
|
384
|
+
$metadata: deserializeMetadata(output)
|
|
385
|
+
});
|
|
386
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
387
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
388
|
+
ClientToken: import_smithy_client.expectString
|
|
389
|
+
});
|
|
390
|
+
Object.assign(contents, doc);
|
|
391
|
+
return contents;
|
|
392
|
+
}, "de_DeleteConnectionRecordingPreferencesCommand");
|
|
393
|
+
var de_GetConnectionRecordingPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
394
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
395
|
+
return de_CommandError(output, context);
|
|
396
|
+
}
|
|
397
|
+
const contents = (0, import_smithy_client.map)({
|
|
398
|
+
$metadata: deserializeMetadata(output)
|
|
399
|
+
});
|
|
400
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
401
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
402
|
+
ClientToken: import_smithy_client.expectString,
|
|
403
|
+
ConnectionRecordingPreferences: import_smithy_client._json
|
|
404
|
+
});
|
|
405
|
+
Object.assign(contents, doc);
|
|
406
|
+
return contents;
|
|
407
|
+
}, "de_GetConnectionRecordingPreferencesCommand");
|
|
408
|
+
var de_UpdateConnectionRecordingPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
409
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
410
|
+
return de_CommandError(output, context);
|
|
411
|
+
}
|
|
412
|
+
const contents = (0, import_smithy_client.map)({
|
|
413
|
+
$metadata: deserializeMetadata(output)
|
|
414
|
+
});
|
|
415
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
416
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
417
|
+
ClientToken: import_smithy_client.expectString,
|
|
418
|
+
ConnectionRecordingPreferences: import_smithy_client._json
|
|
419
|
+
});
|
|
420
|
+
Object.assign(contents, doc);
|
|
421
|
+
return contents;
|
|
422
|
+
}, "de_UpdateConnectionRecordingPreferencesCommand");
|
|
423
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
424
|
+
const parsedOutput = {
|
|
425
|
+
...output,
|
|
426
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
427
|
+
};
|
|
428
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
429
|
+
switch (errorCode) {
|
|
430
|
+
case "AccessDeniedException":
|
|
431
|
+
case "com.amazonaws.ssmguiconnect#AccessDeniedException":
|
|
432
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
433
|
+
case "ConflictException":
|
|
434
|
+
case "com.amazonaws.ssmguiconnect#ConflictException":
|
|
435
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
436
|
+
case "InternalServerException":
|
|
437
|
+
case "com.amazonaws.ssmguiconnect#InternalServerException":
|
|
438
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
439
|
+
case "ResourceNotFoundException":
|
|
440
|
+
case "com.amazonaws.ssmguiconnect#ResourceNotFoundException":
|
|
441
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
442
|
+
case "ServiceQuotaExceededException":
|
|
443
|
+
case "com.amazonaws.ssmguiconnect#ServiceQuotaExceededException":
|
|
444
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
445
|
+
case "ThrottlingException":
|
|
446
|
+
case "com.amazonaws.ssmguiconnect#ThrottlingException":
|
|
447
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
448
|
+
case "ValidationException":
|
|
449
|
+
case "com.amazonaws.ssmguiconnect#ValidationException":
|
|
450
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
451
|
+
default:
|
|
452
|
+
const parsedBody = parsedOutput.body;
|
|
453
|
+
return throwDefaultError({
|
|
454
|
+
output,
|
|
455
|
+
parsedBody,
|
|
456
|
+
errorCode
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
}, "de_CommandError");
|
|
460
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSMGuiConnectServiceException);
|
|
461
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
462
|
+
const contents = (0, import_smithy_client.map)({});
|
|
463
|
+
const data = parsedOutput.body;
|
|
464
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
465
|
+
message: import_smithy_client.expectString
|
|
466
|
+
});
|
|
467
|
+
Object.assign(contents, doc);
|
|
468
|
+
const exception = new AccessDeniedException({
|
|
469
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
470
|
+
...contents
|
|
471
|
+
});
|
|
472
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
473
|
+
}, "de_AccessDeniedExceptionRes");
|
|
474
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
475
|
+
const contents = (0, import_smithy_client.map)({});
|
|
476
|
+
const data = parsedOutput.body;
|
|
477
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
478
|
+
message: import_smithy_client.expectString
|
|
479
|
+
});
|
|
480
|
+
Object.assign(contents, doc);
|
|
481
|
+
const exception = new ConflictException({
|
|
482
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
483
|
+
...contents
|
|
484
|
+
});
|
|
485
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
486
|
+
}, "de_ConflictExceptionRes");
|
|
487
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
488
|
+
const contents = (0, import_smithy_client.map)({});
|
|
489
|
+
const data = parsedOutput.body;
|
|
490
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
491
|
+
message: import_smithy_client.expectString
|
|
492
|
+
});
|
|
493
|
+
Object.assign(contents, doc);
|
|
494
|
+
const exception = new InternalServerException({
|
|
495
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
496
|
+
...contents
|
|
497
|
+
});
|
|
498
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
499
|
+
}, "de_InternalServerExceptionRes");
|
|
500
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
501
|
+
const contents = (0, import_smithy_client.map)({});
|
|
502
|
+
const data = parsedOutput.body;
|
|
503
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
504
|
+
message: import_smithy_client.expectString
|
|
505
|
+
});
|
|
506
|
+
Object.assign(contents, doc);
|
|
507
|
+
const exception = new ResourceNotFoundException({
|
|
508
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
509
|
+
...contents
|
|
510
|
+
});
|
|
511
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
512
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
513
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
514
|
+
const contents = (0, import_smithy_client.map)({});
|
|
515
|
+
const data = parsedOutput.body;
|
|
516
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
517
|
+
message: import_smithy_client.expectString
|
|
518
|
+
});
|
|
519
|
+
Object.assign(contents, doc);
|
|
520
|
+
const exception = new ServiceQuotaExceededException({
|
|
521
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
522
|
+
...contents
|
|
523
|
+
});
|
|
524
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
525
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
526
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
527
|
+
const contents = (0, import_smithy_client.map)({});
|
|
528
|
+
const data = parsedOutput.body;
|
|
529
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
530
|
+
message: import_smithy_client.expectString
|
|
531
|
+
});
|
|
532
|
+
Object.assign(contents, doc);
|
|
533
|
+
const exception = new ThrottlingException({
|
|
534
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
535
|
+
...contents
|
|
536
|
+
});
|
|
537
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
538
|
+
}, "de_ThrottlingExceptionRes");
|
|
539
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
540
|
+
const contents = (0, import_smithy_client.map)({});
|
|
541
|
+
const data = parsedOutput.body;
|
|
542
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
543
|
+
message: import_smithy_client.expectString
|
|
544
|
+
});
|
|
545
|
+
Object.assign(contents, doc);
|
|
546
|
+
const exception = new ValidationException({
|
|
547
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
548
|
+
...contents
|
|
549
|
+
});
|
|
550
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
551
|
+
}, "de_ValidationExceptionRes");
|
|
552
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
553
|
+
httpStatusCode: output.statusCode,
|
|
554
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
555
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
556
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
557
|
+
}), "deserializeMetadata");
|
|
558
|
+
|
|
559
|
+
// src/commands/DeleteConnectionRecordingPreferencesCommand.ts
|
|
560
|
+
var DeleteConnectionRecordingPreferencesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
561
|
+
return [
|
|
562
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
563
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
564
|
+
];
|
|
565
|
+
}).s("SSMGuiConnect", "DeleteConnectionRecordingPreferences", {}).n("SSMGuiConnectClient", "DeleteConnectionRecordingPreferencesCommand").f(void 0, void 0).ser(se_DeleteConnectionRecordingPreferencesCommand).de(de_DeleteConnectionRecordingPreferencesCommand).build() {
|
|
566
|
+
static {
|
|
567
|
+
__name(this, "DeleteConnectionRecordingPreferencesCommand");
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
// src/commands/GetConnectionRecordingPreferencesCommand.ts
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
var GetConnectionRecordingPreferencesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
576
|
+
return [
|
|
577
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
578
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
579
|
+
];
|
|
580
|
+
}).s("SSMGuiConnect", "GetConnectionRecordingPreferences", {}).n("SSMGuiConnectClient", "GetConnectionRecordingPreferencesCommand").f(void 0, void 0).ser(se_GetConnectionRecordingPreferencesCommand).de(de_GetConnectionRecordingPreferencesCommand).build() {
|
|
581
|
+
static {
|
|
582
|
+
__name(this, "GetConnectionRecordingPreferencesCommand");
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
// src/commands/UpdateConnectionRecordingPreferencesCommand.ts
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
var UpdateConnectionRecordingPreferencesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
591
|
+
return [
|
|
592
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
593
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
594
|
+
];
|
|
595
|
+
}).s("SSMGuiConnect", "UpdateConnectionRecordingPreferences", {}).n("SSMGuiConnectClient", "UpdateConnectionRecordingPreferencesCommand").f(void 0, void 0).ser(se_UpdateConnectionRecordingPreferencesCommand).de(de_UpdateConnectionRecordingPreferencesCommand).build() {
|
|
596
|
+
static {
|
|
597
|
+
__name(this, "UpdateConnectionRecordingPreferencesCommand");
|
|
598
|
+
}
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
// src/SSMGuiConnect.ts
|
|
602
|
+
var commands = {
|
|
603
|
+
DeleteConnectionRecordingPreferencesCommand,
|
|
604
|
+
GetConnectionRecordingPreferencesCommand,
|
|
605
|
+
UpdateConnectionRecordingPreferencesCommand
|
|
606
|
+
};
|
|
607
|
+
var SSMGuiConnect = class extends SSMGuiConnectClient {
|
|
608
|
+
static {
|
|
609
|
+
__name(this, "SSMGuiConnect");
|
|
610
|
+
}
|
|
611
|
+
};
|
|
612
|
+
(0, import_smithy_client.createAggregatedClient)(commands, SSMGuiConnect);
|
|
613
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
614
|
+
|
|
615
|
+
0 && (module.exports = {
|
|
616
|
+
SSMGuiConnectServiceException,
|
|
617
|
+
__Client,
|
|
618
|
+
SSMGuiConnectClient,
|
|
619
|
+
SSMGuiConnect,
|
|
620
|
+
$Command,
|
|
621
|
+
DeleteConnectionRecordingPreferencesCommand,
|
|
622
|
+
GetConnectionRecordingPreferencesCommand,
|
|
623
|
+
UpdateConnectionRecordingPreferencesCommand,
|
|
624
|
+
AccessDeniedException,
|
|
625
|
+
ConflictException,
|
|
626
|
+
InternalServerException,
|
|
627
|
+
ResourceNotFoundException,
|
|
628
|
+
ServiceQuotaExceededException,
|
|
629
|
+
ThrottlingException,
|
|
630
|
+
ValidationException
|
|
631
|
+
});
|
|
632
|
+
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm-guiconnect",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Guiconnect Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.894.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-ssm-guiconnect",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.894.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.894.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.893.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.893.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.893.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.894.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.893.0",
|
|
30
30
|
"@aws-sdk/types": "3.893.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.893.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.893.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.894.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.2.2",
|
|
35
35
|
"@smithy/core": "^3.11.1",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.2.1",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SSMGuiConnect = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const DeleteConnectionRecordingPreferencesCommand_1 = require("./commands/DeleteConnectionRecordingPreferencesCommand");
|
|
6
|
-
const GetConnectionRecordingPreferencesCommand_1 = require("./commands/GetConnectionRecordingPreferencesCommand");
|
|
7
|
-
const UpdateConnectionRecordingPreferencesCommand_1 = require("./commands/UpdateConnectionRecordingPreferencesCommand");
|
|
8
|
-
const SSMGuiConnectClient_1 = require("./SSMGuiConnectClient");
|
|
9
|
-
const commands = {
|
|
10
|
-
DeleteConnectionRecordingPreferencesCommand: DeleteConnectionRecordingPreferencesCommand_1.DeleteConnectionRecordingPreferencesCommand,
|
|
11
|
-
GetConnectionRecordingPreferencesCommand: GetConnectionRecordingPreferencesCommand_1.GetConnectionRecordingPreferencesCommand,
|
|
12
|
-
UpdateConnectionRecordingPreferencesCommand: UpdateConnectionRecordingPreferencesCommand_1.UpdateConnectionRecordingPreferencesCommand,
|
|
13
|
-
};
|
|
14
|
-
class SSMGuiConnect extends SSMGuiConnectClient_1.SSMGuiConnectClient {
|
|
15
|
-
}
|
|
16
|
-
exports.SSMGuiConnect = SSMGuiConnect;
|
|
17
|
-
(0, smithy_client_1.createAggregatedClient)(commands, SSMGuiConnect);
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SSMGuiConnectClient = exports.__Client = void 0;
|
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
8
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
-
const core_1 = require("@smithy/core");
|
|
10
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
|
-
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
16
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
17
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
18
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
19
|
-
class SSMGuiConnectClient extends smithy_client_1.Client {
|
|
20
|
-
config;
|
|
21
|
-
constructor(...[configuration]) {
|
|
22
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
23
|
-
super(_config_0);
|
|
24
|
-
this.initConfig = _config_0;
|
|
25
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
26
|
-
const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
|
|
27
|
-
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
28
|
-
const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
|
|
29
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
30
|
-
const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
|
|
31
|
-
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
|
32
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
33
|
-
this.config = _config_8;
|
|
34
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
35
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
37
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
38
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
39
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
40
|
-
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
41
|
-
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSSMGuiConnectHttpAuthSchemeParametersProvider,
|
|
42
|
-
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
43
|
-
"aws.auth#sigv4": config.credentials,
|
|
44
|
-
}),
|
|
45
|
-
}));
|
|
46
|
-
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
47
|
-
}
|
|
48
|
-
destroy() {
|
|
49
|
-
super.destroy();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.SSMGuiConnectClient = SSMGuiConnectClient;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
|
4
|
-
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
5
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
6
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
7
|
-
let _credentials = runtimeConfig.credentials;
|
|
8
|
-
return {
|
|
9
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
10
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
11
|
-
if (index === -1) {
|
|
12
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
httpAuthSchemes() {
|
|
19
|
-
return _httpAuthSchemes;
|
|
20
|
-
},
|
|
21
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
22
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
23
|
-
},
|
|
24
|
-
httpAuthSchemeProvider() {
|
|
25
|
-
return _httpAuthSchemeProvider;
|
|
26
|
-
},
|
|
27
|
-
setCredentials(credentials) {
|
|
28
|
-
_credentials = credentials;
|
|
29
|
-
},
|
|
30
|
-
credentials() {
|
|
31
|
-
return _credentials;
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
|
36
|
-
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
37
|
-
return {
|
|
38
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
39
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
40
|
-
credentials: config.credentials(),
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteConnectionRecordingPreferencesCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class DeleteConnectionRecordingPreferencesCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep(EndpointParameters_1.commonParams)
|
|
13
|
-
.m(function (Command, cs, config, o) {
|
|
14
|
-
return [
|
|
15
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
-
];
|
|
18
|
-
})
|
|
19
|
-
.s("SSMGuiConnect", "DeleteConnectionRecordingPreferences", {})
|
|
20
|
-
.n("SSMGuiConnectClient", "DeleteConnectionRecordingPreferencesCommand")
|
|
21
|
-
.f(void 0, void 0)
|
|
22
|
-
.ser(Aws_restJson1_1.se_DeleteConnectionRecordingPreferencesCommand)
|
|
23
|
-
.de(Aws_restJson1_1.de_DeleteConnectionRecordingPreferencesCommand)
|
|
24
|
-
.build() {
|
|
25
|
-
}
|
|
26
|
-
exports.DeleteConnectionRecordingPreferencesCommand = DeleteConnectionRecordingPreferencesCommand;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetConnectionRecordingPreferencesCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class GetConnectionRecordingPreferencesCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep(EndpointParameters_1.commonParams)
|
|
13
|
-
.m(function (Command, cs, config, o) {
|
|
14
|
-
return [
|
|
15
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
-
];
|
|
18
|
-
})
|
|
19
|
-
.s("SSMGuiConnect", "GetConnectionRecordingPreferences", {})
|
|
20
|
-
.n("SSMGuiConnectClient", "GetConnectionRecordingPreferencesCommand")
|
|
21
|
-
.f(void 0, void 0)
|
|
22
|
-
.ser(Aws_restJson1_1.se_GetConnectionRecordingPreferencesCommand)
|
|
23
|
-
.de(Aws_restJson1_1.de_GetConnectionRecordingPreferencesCommand)
|
|
24
|
-
.build() {
|
|
25
|
-
}
|
|
26
|
-
exports.GetConnectionRecordingPreferencesCommand = GetConnectionRecordingPreferencesCommand;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateConnectionRecordingPreferencesCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class UpdateConnectionRecordingPreferencesCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep(EndpointParameters_1.commonParams)
|
|
13
|
-
.m(function (Command, cs, config, o) {
|
|
14
|
-
return [
|
|
15
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
-
];
|
|
18
|
-
})
|
|
19
|
-
.s("SSMGuiConnect", "UpdateConnectionRecordingPreferences", {})
|
|
20
|
-
.n("SSMGuiConnectClient", "UpdateConnectionRecordingPreferencesCommand")
|
|
21
|
-
.f(void 0, void 0)
|
|
22
|
-
.ser(Aws_restJson1_1.se_UpdateConnectionRecordingPreferencesCommand)
|
|
23
|
-
.de(Aws_restJson1_1.de_UpdateConnectionRecordingPreferencesCommand)
|
|
24
|
-
.build() {
|
|
25
|
-
}
|
|
26
|
-
exports.UpdateConnectionRecordingPreferencesCommand = UpdateConnectionRecordingPreferencesCommand;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./DeleteConnectionRecordingPreferencesCommand"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./GetConnectionRecordingPreferencesCommand"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./UpdateConnectionRecordingPreferencesCommand"), exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return Object.assign(options, {
|
|
6
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
7
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
8
|
-
defaultSigningName: "ssm-guiconnect",
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
12
|
-
exports.commonParams = {
|
|
13
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
-
Region: { type: "builtInParams", name: "region" },
|
|
16
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SSMGuiConnectServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class SSMGuiConnectServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, SSMGuiConnectServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.SSMGuiConnectServiceException = SSMGuiConnectServiceException;
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const SSMGuiConnectServiceException_1 = require("./SSMGuiConnectServiceException");
|
|
5
|
-
class AccessDeniedException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
|
|
6
|
-
name = "AccessDeniedException";
|
|
7
|
-
$fault = "client";
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "AccessDeniedException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts,
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
-
class ConflictException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
|
|
19
|
-
name = "ConflictException";
|
|
20
|
-
$fault = "client";
|
|
21
|
-
constructor(opts) {
|
|
22
|
-
super({
|
|
23
|
-
name: "ConflictException",
|
|
24
|
-
$fault: "client",
|
|
25
|
-
...opts,
|
|
26
|
-
});
|
|
27
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.ConflictException = ConflictException;
|
|
31
|
-
class InternalServerException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
|
|
32
|
-
name = "InternalServerException";
|
|
33
|
-
$fault = "server";
|
|
34
|
-
constructor(opts) {
|
|
35
|
-
super({
|
|
36
|
-
name: "InternalServerException",
|
|
37
|
-
$fault: "server",
|
|
38
|
-
...opts,
|
|
39
|
-
});
|
|
40
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.InternalServerException = InternalServerException;
|
|
44
|
-
class ResourceNotFoundException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
|
|
45
|
-
name = "ResourceNotFoundException";
|
|
46
|
-
$fault = "client";
|
|
47
|
-
constructor(opts) {
|
|
48
|
-
super({
|
|
49
|
-
name: "ResourceNotFoundException",
|
|
50
|
-
$fault: "client",
|
|
51
|
-
...opts,
|
|
52
|
-
});
|
|
53
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
57
|
-
class ServiceQuotaExceededException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
|
|
58
|
-
name = "ServiceQuotaExceededException";
|
|
59
|
-
$fault = "client";
|
|
60
|
-
constructor(opts) {
|
|
61
|
-
super({
|
|
62
|
-
name: "ServiceQuotaExceededException",
|
|
63
|
-
$fault: "client",
|
|
64
|
-
...opts,
|
|
65
|
-
});
|
|
66
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
70
|
-
class ThrottlingException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
|
|
71
|
-
name = "ThrottlingException";
|
|
72
|
-
$fault = "client";
|
|
73
|
-
constructor(opts) {
|
|
74
|
-
super({
|
|
75
|
-
name: "ThrottlingException",
|
|
76
|
-
$fault: "client",
|
|
77
|
-
...opts,
|
|
78
|
-
});
|
|
79
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.ThrottlingException = ThrottlingException;
|
|
83
|
-
class ValidationException extends SSMGuiConnectServiceException_1.SSMGuiConnectServiceException {
|
|
84
|
-
name = "ValidationException";
|
|
85
|
-
$fault = "client";
|
|
86
|
-
constructor(opts) {
|
|
87
|
-
super({
|
|
88
|
-
name: "ValidationException",
|
|
89
|
-
$fault: "client",
|
|
90
|
-
...opts,
|
|
91
|
-
});
|
|
92
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
exports.ValidationException = ValidationException;
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateConnectionRecordingPreferencesCommand = exports.de_GetConnectionRecordingPreferencesCommand = exports.de_DeleteConnectionRecordingPreferencesCommand = exports.se_UpdateConnectionRecordingPreferencesCommand = exports.se_GetConnectionRecordingPreferencesCommand = exports.se_DeleteConnectionRecordingPreferencesCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const core_2 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const SSMGuiConnectServiceException_1 = require("../models/SSMGuiConnectServiceException");
|
|
10
|
-
const se_DeleteConnectionRecordingPreferencesCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/DeleteConnectionRecordingPreferences");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
19
|
-
}));
|
|
20
|
-
b.m("POST").h(headers).b(body);
|
|
21
|
-
return b.build();
|
|
22
|
-
};
|
|
23
|
-
exports.se_DeleteConnectionRecordingPreferencesCommand = se_DeleteConnectionRecordingPreferencesCommand;
|
|
24
|
-
const se_GetConnectionRecordingPreferencesCommand = async (input, context) => {
|
|
25
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
26
|
-
const headers = {};
|
|
27
|
-
b.bp("/GetConnectionRecordingPreferences");
|
|
28
|
-
let body;
|
|
29
|
-
b.m("POST").h(headers).b(body);
|
|
30
|
-
return b.build();
|
|
31
|
-
};
|
|
32
|
-
exports.se_GetConnectionRecordingPreferencesCommand = se_GetConnectionRecordingPreferencesCommand;
|
|
33
|
-
const se_UpdateConnectionRecordingPreferencesCommand = async (input, context) => {
|
|
34
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
35
|
-
const headers = {
|
|
36
|
-
"content-type": "application/json",
|
|
37
|
-
};
|
|
38
|
-
b.bp("/UpdateConnectionRecordingPreferences");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
42
|
-
ConnectionRecordingPreferences: (_) => (0, smithy_client_1._json)(_),
|
|
43
|
-
}));
|
|
44
|
-
b.m("POST").h(headers).b(body);
|
|
45
|
-
return b.build();
|
|
46
|
-
};
|
|
47
|
-
exports.se_UpdateConnectionRecordingPreferencesCommand = se_UpdateConnectionRecordingPreferencesCommand;
|
|
48
|
-
const de_DeleteConnectionRecordingPreferencesCommand = async (output, context) => {
|
|
49
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
50
|
-
return de_CommandError(output, context);
|
|
51
|
-
}
|
|
52
|
-
const contents = (0, smithy_client_1.map)({
|
|
53
|
-
$metadata: deserializeMetadata(output),
|
|
54
|
-
});
|
|
55
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
56
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
57
|
-
ClientToken: smithy_client_1.expectString,
|
|
58
|
-
});
|
|
59
|
-
Object.assign(contents, doc);
|
|
60
|
-
return contents;
|
|
61
|
-
};
|
|
62
|
-
exports.de_DeleteConnectionRecordingPreferencesCommand = de_DeleteConnectionRecordingPreferencesCommand;
|
|
63
|
-
const de_GetConnectionRecordingPreferencesCommand = async (output, context) => {
|
|
64
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
65
|
-
return de_CommandError(output, context);
|
|
66
|
-
}
|
|
67
|
-
const contents = (0, smithy_client_1.map)({
|
|
68
|
-
$metadata: deserializeMetadata(output),
|
|
69
|
-
});
|
|
70
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
71
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
72
|
-
ClientToken: smithy_client_1.expectString,
|
|
73
|
-
ConnectionRecordingPreferences: smithy_client_1._json,
|
|
74
|
-
});
|
|
75
|
-
Object.assign(contents, doc);
|
|
76
|
-
return contents;
|
|
77
|
-
};
|
|
78
|
-
exports.de_GetConnectionRecordingPreferencesCommand = de_GetConnectionRecordingPreferencesCommand;
|
|
79
|
-
const de_UpdateConnectionRecordingPreferencesCommand = async (output, context) => {
|
|
80
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
81
|
-
return de_CommandError(output, context);
|
|
82
|
-
}
|
|
83
|
-
const contents = (0, smithy_client_1.map)({
|
|
84
|
-
$metadata: deserializeMetadata(output),
|
|
85
|
-
});
|
|
86
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
87
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
88
|
-
ClientToken: smithy_client_1.expectString,
|
|
89
|
-
ConnectionRecordingPreferences: smithy_client_1._json,
|
|
90
|
-
});
|
|
91
|
-
Object.assign(contents, doc);
|
|
92
|
-
return contents;
|
|
93
|
-
};
|
|
94
|
-
exports.de_UpdateConnectionRecordingPreferencesCommand = de_UpdateConnectionRecordingPreferencesCommand;
|
|
95
|
-
const de_CommandError = async (output, context) => {
|
|
96
|
-
const parsedOutput = {
|
|
97
|
-
...output,
|
|
98
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
99
|
-
};
|
|
100
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
101
|
-
switch (errorCode) {
|
|
102
|
-
case "AccessDeniedException":
|
|
103
|
-
case "com.amazonaws.ssmguiconnect#AccessDeniedException":
|
|
104
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
105
|
-
case "ConflictException":
|
|
106
|
-
case "com.amazonaws.ssmguiconnect#ConflictException":
|
|
107
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
108
|
-
case "InternalServerException":
|
|
109
|
-
case "com.amazonaws.ssmguiconnect#InternalServerException":
|
|
110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
111
|
-
case "ResourceNotFoundException":
|
|
112
|
-
case "com.amazonaws.ssmguiconnect#ResourceNotFoundException":
|
|
113
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
114
|
-
case "ServiceQuotaExceededException":
|
|
115
|
-
case "com.amazonaws.ssmguiconnect#ServiceQuotaExceededException":
|
|
116
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
117
|
-
case "ThrottlingException":
|
|
118
|
-
case "com.amazonaws.ssmguiconnect#ThrottlingException":
|
|
119
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
120
|
-
case "ValidationException":
|
|
121
|
-
case "com.amazonaws.ssmguiconnect#ValidationException":
|
|
122
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
123
|
-
default:
|
|
124
|
-
const parsedBody = parsedOutput.body;
|
|
125
|
-
return throwDefaultError({
|
|
126
|
-
output,
|
|
127
|
-
parsedBody,
|
|
128
|
-
errorCode,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(SSMGuiConnectServiceException_1.SSMGuiConnectServiceException);
|
|
133
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
134
|
-
const contents = (0, smithy_client_1.map)({});
|
|
135
|
-
const data = parsedOutput.body;
|
|
136
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
137
|
-
message: smithy_client_1.expectString,
|
|
138
|
-
});
|
|
139
|
-
Object.assign(contents, doc);
|
|
140
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
141
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
142
|
-
...contents,
|
|
143
|
-
});
|
|
144
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
145
|
-
};
|
|
146
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
147
|
-
const contents = (0, smithy_client_1.map)({});
|
|
148
|
-
const data = parsedOutput.body;
|
|
149
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
150
|
-
message: smithy_client_1.expectString,
|
|
151
|
-
});
|
|
152
|
-
Object.assign(contents, doc);
|
|
153
|
-
const exception = new models_0_1.ConflictException({
|
|
154
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
155
|
-
...contents,
|
|
156
|
-
});
|
|
157
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
158
|
-
};
|
|
159
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
160
|
-
const contents = (0, smithy_client_1.map)({});
|
|
161
|
-
const data = parsedOutput.body;
|
|
162
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
163
|
-
message: smithy_client_1.expectString,
|
|
164
|
-
});
|
|
165
|
-
Object.assign(contents, doc);
|
|
166
|
-
const exception = new models_0_1.InternalServerException({
|
|
167
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
168
|
-
...contents,
|
|
169
|
-
});
|
|
170
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
171
|
-
};
|
|
172
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
173
|
-
const contents = (0, smithy_client_1.map)({});
|
|
174
|
-
const data = parsedOutput.body;
|
|
175
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
176
|
-
message: smithy_client_1.expectString,
|
|
177
|
-
});
|
|
178
|
-
Object.assign(contents, doc);
|
|
179
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
180
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
181
|
-
...contents,
|
|
182
|
-
});
|
|
183
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
184
|
-
};
|
|
185
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
186
|
-
const contents = (0, smithy_client_1.map)({});
|
|
187
|
-
const data = parsedOutput.body;
|
|
188
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
189
|
-
message: smithy_client_1.expectString,
|
|
190
|
-
});
|
|
191
|
-
Object.assign(contents, doc);
|
|
192
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
193
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
194
|
-
...contents,
|
|
195
|
-
});
|
|
196
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
197
|
-
};
|
|
198
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
199
|
-
const contents = (0, smithy_client_1.map)({});
|
|
200
|
-
const data = parsedOutput.body;
|
|
201
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
202
|
-
message: smithy_client_1.expectString,
|
|
203
|
-
});
|
|
204
|
-
Object.assign(contents, doc);
|
|
205
|
-
const exception = new models_0_1.ThrottlingException({
|
|
206
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
207
|
-
...contents,
|
|
208
|
-
});
|
|
209
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
210
|
-
};
|
|
211
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
212
|
-
const contents = (0, smithy_client_1.map)({});
|
|
213
|
-
const data = parsedOutput.body;
|
|
214
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
215
|
-
message: smithy_client_1.expectString,
|
|
216
|
-
});
|
|
217
|
-
Object.assign(contents, doc);
|
|
218
|
-
const exception = new models_0_1.ValidationException({
|
|
219
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
220
|
-
...contents,
|
|
221
|
-
});
|
|
222
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
223
|
-
};
|
|
224
|
-
const deserializeMetadata = (output) => ({
|
|
225
|
-
httpStatusCode: output.statusCode,
|
|
226
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
227
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
228
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
229
|
-
});
|
|
230
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
10
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
|
-
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
12
|
-
};
|
|
13
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|