@aws-sdk/client-ssm-guiconnect 3.901.0 → 3.907.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +470 -601
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,632 +1,501 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "ssm-guiconnect",
|
|
26
|
+
});
|
|
10
27
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
33
|
};
|
|
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
34
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
67
72
|
};
|
|
68
73
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
75
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
76
79
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
80
|
+
class SSMGuiConnectClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSMGuiConnectHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
105
108
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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");
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
133
113
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
114
|
+
class SSMGuiConnectServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, SSMGuiConnectServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class AccessDeniedException extends SSMGuiConnectServiceException {
|
|
122
|
+
name = "AccessDeniedException";
|
|
123
|
+
$fault = "client";
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
class ConflictException extends SSMGuiConnectServiceException {
|
|
134
|
+
name = "ConflictException";
|
|
135
|
+
$fault = "client";
|
|
136
|
+
constructor(opts) {
|
|
137
|
+
super({
|
|
138
|
+
name: "ConflictException",
|
|
139
|
+
$fault: "client",
|
|
140
|
+
...opts,
|
|
141
|
+
});
|
|
142
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
class InternalServerException extends SSMGuiConnectServiceException {
|
|
146
|
+
name = "InternalServerException";
|
|
147
|
+
$fault = "server";
|
|
148
|
+
constructor(opts) {
|
|
149
|
+
super({
|
|
150
|
+
name: "InternalServerException",
|
|
151
|
+
$fault: "server",
|
|
152
|
+
...opts,
|
|
153
|
+
});
|
|
154
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
class ResourceNotFoundException extends SSMGuiConnectServiceException {
|
|
158
|
+
name = "ResourceNotFoundException";
|
|
159
|
+
$fault = "client";
|
|
160
|
+
constructor(opts) {
|
|
161
|
+
super({
|
|
162
|
+
name: "ResourceNotFoundException",
|
|
163
|
+
$fault: "client",
|
|
164
|
+
...opts,
|
|
165
|
+
});
|
|
166
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
class ServiceQuotaExceededException extends SSMGuiConnectServiceException {
|
|
170
|
+
name = "ServiceQuotaExceededException";
|
|
171
|
+
$fault = "client";
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "ServiceQuotaExceededException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
class ThrottlingException extends SSMGuiConnectServiceException {
|
|
182
|
+
name = "ThrottlingException";
|
|
183
|
+
$fault = "client";
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "ThrottlingException",
|
|
187
|
+
$fault: "client",
|
|
188
|
+
...opts,
|
|
189
|
+
});
|
|
190
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
class ValidationException extends SSMGuiConnectServiceException {
|
|
194
|
+
name = "ValidationException";
|
|
195
|
+
$fault = "client";
|
|
196
|
+
constructor(opts) {
|
|
197
|
+
super({
|
|
198
|
+
name: "ValidationException",
|
|
199
|
+
$fault: "client",
|
|
200
|
+
...opts,
|
|
201
|
+
});
|
|
202
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const se_DeleteConnectionRecordingPreferencesCommand = async (input, context) => {
|
|
207
|
+
const b = core.requestBuilder(input, context);
|
|
208
|
+
const headers = {
|
|
209
|
+
"content-type": "application/json",
|
|
210
|
+
};
|
|
211
|
+
b.bp("/DeleteConnectionRecordingPreferences");
|
|
212
|
+
let body;
|
|
213
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
214
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
215
|
+
}));
|
|
216
|
+
b.m("POST").h(headers).b(body);
|
|
217
|
+
return b.build();
|
|
180
218
|
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
// src/protocols/Aws_restJson1.ts
|
|
191
|
-
var import_core2 = require("@aws-sdk/core");
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
var import_uuid = require("@smithy/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
|
-
}
|
|
219
|
+
const se_GetConnectionRecordingPreferencesCommand = async (input, context) => {
|
|
220
|
+
const b = core.requestBuilder(input, context);
|
|
221
|
+
const headers = {};
|
|
222
|
+
b.bp("/GetConnectionRecordingPreferences");
|
|
223
|
+
let body;
|
|
224
|
+
b.m("POST").h(headers).b(body);
|
|
225
|
+
return b.build();
|
|
209
226
|
};
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
227
|
+
const se_UpdateConnectionRecordingPreferencesCommand = async (input, context) => {
|
|
228
|
+
const b = core.requestBuilder(input, context);
|
|
229
|
+
const headers = {
|
|
230
|
+
"content-type": "application/json",
|
|
231
|
+
};
|
|
232
|
+
b.bp("/UpdateConnectionRecordingPreferences");
|
|
233
|
+
let body;
|
|
234
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
235
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
236
|
+
ConnectionRecordingPreferences: (_) => smithyClient._json(_),
|
|
237
|
+
}));
|
|
238
|
+
b.m("POST").h(headers).b(body);
|
|
239
|
+
return b.build();
|
|
240
|
+
};
|
|
241
|
+
const de_DeleteConnectionRecordingPreferencesCommand = async (output, context) => {
|
|
242
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
243
|
+
return de_CommandError(output, context);
|
|
244
|
+
}
|
|
245
|
+
const contents = smithyClient.map({
|
|
246
|
+
$metadata: deserializeMetadata(output),
|
|
226
247
|
});
|
|
227
|
-
|
|
228
|
-
|
|
248
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
249
|
+
const doc = smithyClient.take(data, {
|
|
250
|
+
ClientToken: smithyClient.expectString,
|
|
251
|
+
});
|
|
252
|
+
Object.assign(contents, doc);
|
|
253
|
+
return contents;
|
|
229
254
|
};
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* @internal
|
|
238
|
-
*/
|
|
239
|
-
constructor(opts) {
|
|
240
|
-
super({
|
|
241
|
-
name: "ConflictException",
|
|
242
|
-
$fault: "client",
|
|
243
|
-
...opts
|
|
255
|
+
const de_GetConnectionRecordingPreferencesCommand = async (output, context) => {
|
|
256
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
257
|
+
return de_CommandError(output, context);
|
|
258
|
+
}
|
|
259
|
+
const contents = smithyClient.map({
|
|
260
|
+
$metadata: deserializeMetadata(output),
|
|
244
261
|
});
|
|
245
|
-
|
|
246
|
-
|
|
262
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
263
|
+
const doc = smithyClient.take(data, {
|
|
264
|
+
ClientToken: smithyClient.expectString,
|
|
265
|
+
ConnectionRecordingPreferences: smithyClient._json,
|
|
266
|
+
});
|
|
267
|
+
Object.assign(contents, doc);
|
|
268
|
+
return contents;
|
|
247
269
|
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* @internal
|
|
256
|
-
*/
|
|
257
|
-
constructor(opts) {
|
|
258
|
-
super({
|
|
259
|
-
name: "InternalServerException",
|
|
260
|
-
$fault: "server",
|
|
261
|
-
...opts
|
|
270
|
+
const de_UpdateConnectionRecordingPreferencesCommand = async (output, context) => {
|
|
271
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
272
|
+
return de_CommandError(output, context);
|
|
273
|
+
}
|
|
274
|
+
const contents = smithyClient.map({
|
|
275
|
+
$metadata: deserializeMetadata(output),
|
|
262
276
|
});
|
|
263
|
-
|
|
264
|
-
|
|
277
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
278
|
+
const doc = smithyClient.take(data, {
|
|
279
|
+
ClientToken: smithyClient.expectString,
|
|
280
|
+
ConnectionRecordingPreferences: smithyClient._json,
|
|
281
|
+
});
|
|
282
|
+
Object.assign(contents, doc);
|
|
283
|
+
return contents;
|
|
284
|
+
};
|
|
285
|
+
const de_CommandError = async (output, context) => {
|
|
286
|
+
const parsedOutput = {
|
|
287
|
+
...output,
|
|
288
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
289
|
+
};
|
|
290
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
|
+
switch (errorCode) {
|
|
292
|
+
case "AccessDeniedException":
|
|
293
|
+
case "com.amazonaws.ssmguiconnect#AccessDeniedException":
|
|
294
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
295
|
+
case "ConflictException":
|
|
296
|
+
case "com.amazonaws.ssmguiconnect#ConflictException":
|
|
297
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
298
|
+
case "InternalServerException":
|
|
299
|
+
case "com.amazonaws.ssmguiconnect#InternalServerException":
|
|
300
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
301
|
+
case "ResourceNotFoundException":
|
|
302
|
+
case "com.amazonaws.ssmguiconnect#ResourceNotFoundException":
|
|
303
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
304
|
+
case "ServiceQuotaExceededException":
|
|
305
|
+
case "com.amazonaws.ssmguiconnect#ServiceQuotaExceededException":
|
|
306
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
307
|
+
case "ThrottlingException":
|
|
308
|
+
case "com.amazonaws.ssmguiconnect#ThrottlingException":
|
|
309
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
310
|
+
case "ValidationException":
|
|
311
|
+
case "com.amazonaws.ssmguiconnect#ValidationException":
|
|
312
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
313
|
+
default:
|
|
314
|
+
const parsedBody = parsedOutput.body;
|
|
315
|
+
return throwDefaultError({
|
|
316
|
+
output,
|
|
317
|
+
parsedBody,
|
|
318
|
+
errorCode,
|
|
319
|
+
});
|
|
320
|
+
}
|
|
265
321
|
};
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
name: "ResourceNotFoundException",
|
|
278
|
-
$fault: "client",
|
|
279
|
-
...opts
|
|
322
|
+
const throwDefaultError = smithyClient.withBaseException(SSMGuiConnectServiceException);
|
|
323
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
324
|
+
const contents = smithyClient.map({});
|
|
325
|
+
const data = parsedOutput.body;
|
|
326
|
+
const doc = smithyClient.take(data, {
|
|
327
|
+
message: smithyClient.expectString,
|
|
328
|
+
});
|
|
329
|
+
Object.assign(contents, doc);
|
|
330
|
+
const exception = new AccessDeniedException({
|
|
331
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
332
|
+
...contents,
|
|
280
333
|
});
|
|
281
|
-
|
|
282
|
-
}
|
|
334
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
283
335
|
};
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
$fault = "client";
|
|
290
|
-
/**
|
|
291
|
-
* @internal
|
|
292
|
-
*/
|
|
293
|
-
constructor(opts) {
|
|
294
|
-
super({
|
|
295
|
-
name: "ServiceQuotaExceededException",
|
|
296
|
-
$fault: "client",
|
|
297
|
-
...opts
|
|
336
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
337
|
+
const contents = smithyClient.map({});
|
|
338
|
+
const data = parsedOutput.body;
|
|
339
|
+
const doc = smithyClient.take(data, {
|
|
340
|
+
message: smithyClient.expectString,
|
|
298
341
|
});
|
|
299
|
-
Object.
|
|
300
|
-
|
|
342
|
+
Object.assign(contents, doc);
|
|
343
|
+
const exception = new ConflictException({
|
|
344
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
345
|
+
...contents,
|
|
346
|
+
});
|
|
347
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
301
348
|
};
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
super({
|
|
313
|
-
name: "ThrottlingException",
|
|
314
|
-
$fault: "client",
|
|
315
|
-
...opts
|
|
349
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
350
|
+
const contents = smithyClient.map({});
|
|
351
|
+
const data = parsedOutput.body;
|
|
352
|
+
const doc = smithyClient.take(data, {
|
|
353
|
+
message: smithyClient.expectString,
|
|
354
|
+
});
|
|
355
|
+
Object.assign(contents, doc);
|
|
356
|
+
const exception = new InternalServerException({
|
|
357
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
358
|
+
...contents,
|
|
316
359
|
});
|
|
317
|
-
|
|
318
|
-
}
|
|
360
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
319
361
|
};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
$fault = "client";
|
|
326
|
-
/**
|
|
327
|
-
* @internal
|
|
328
|
-
*/
|
|
329
|
-
constructor(opts) {
|
|
330
|
-
super({
|
|
331
|
-
name: "ValidationException",
|
|
332
|
-
$fault: "client",
|
|
333
|
-
...opts
|
|
362
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
363
|
+
const contents = smithyClient.map({});
|
|
364
|
+
const data = parsedOutput.body;
|
|
365
|
+
const doc = smithyClient.take(data, {
|
|
366
|
+
message: smithyClient.expectString,
|
|
334
367
|
});
|
|
335
|
-
Object.
|
|
336
|
-
|
|
368
|
+
Object.assign(contents, doc);
|
|
369
|
+
const exception = new ResourceNotFoundException({
|
|
370
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
371
|
+
...contents,
|
|
372
|
+
});
|
|
373
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
337
374
|
};
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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
|
-
}
|
|
375
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
376
|
+
const contents = smithyClient.map({});
|
|
377
|
+
const data = parsedOutput.body;
|
|
378
|
+
const doc = smithyClient.take(data, {
|
|
379
|
+
message: smithyClient.expectString,
|
|
380
|
+
});
|
|
381
|
+
Object.assign(contents, doc);
|
|
382
|
+
const exception = new ServiceQuotaExceededException({
|
|
383
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
384
|
+
...contents,
|
|
385
|
+
});
|
|
386
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
569
387
|
};
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
})
|
|
581
|
-
|
|
582
|
-
__name(this, "GetConnectionRecordingPreferencesCommand");
|
|
583
|
-
}
|
|
388
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
389
|
+
const contents = smithyClient.map({});
|
|
390
|
+
const data = parsedOutput.body;
|
|
391
|
+
const doc = smithyClient.take(data, {
|
|
392
|
+
message: smithyClient.expectString,
|
|
393
|
+
});
|
|
394
|
+
Object.assign(contents, doc);
|
|
395
|
+
const exception = new ThrottlingException({
|
|
396
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
397
|
+
...contents,
|
|
398
|
+
});
|
|
399
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
584
400
|
};
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
})
|
|
596
|
-
|
|
597
|
-
__name(this, "UpdateConnectionRecordingPreferencesCommand");
|
|
598
|
-
}
|
|
401
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
402
|
+
const contents = smithyClient.map({});
|
|
403
|
+
const data = parsedOutput.body;
|
|
404
|
+
const doc = smithyClient.take(data, {
|
|
405
|
+
message: smithyClient.expectString,
|
|
406
|
+
});
|
|
407
|
+
Object.assign(contents, doc);
|
|
408
|
+
const exception = new ValidationException({
|
|
409
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
410
|
+
...contents,
|
|
411
|
+
});
|
|
412
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
599
413
|
};
|
|
414
|
+
const deserializeMetadata = (output) => ({
|
|
415
|
+
httpStatusCode: output.statusCode,
|
|
416
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
417
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
418
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
419
|
+
});
|
|
600
420
|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
421
|
+
class DeleteConnectionRecordingPreferencesCommand extends smithyClient.Command
|
|
422
|
+
.classBuilder()
|
|
423
|
+
.ep(commonParams)
|
|
424
|
+
.m(function (Command, cs, config, o) {
|
|
425
|
+
return [
|
|
426
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
427
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
428
|
+
];
|
|
429
|
+
})
|
|
430
|
+
.s("SSMGuiConnect", "DeleteConnectionRecordingPreferences", {})
|
|
431
|
+
.n("SSMGuiConnectClient", "DeleteConnectionRecordingPreferencesCommand")
|
|
432
|
+
.f(void 0, void 0)
|
|
433
|
+
.ser(se_DeleteConnectionRecordingPreferencesCommand)
|
|
434
|
+
.de(de_DeleteConnectionRecordingPreferencesCommand)
|
|
435
|
+
.build() {
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
class GetConnectionRecordingPreferencesCommand extends smithyClient.Command
|
|
439
|
+
.classBuilder()
|
|
440
|
+
.ep(commonParams)
|
|
441
|
+
.m(function (Command, cs, config, o) {
|
|
442
|
+
return [
|
|
443
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
444
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
445
|
+
];
|
|
446
|
+
})
|
|
447
|
+
.s("SSMGuiConnect", "GetConnectionRecordingPreferences", {})
|
|
448
|
+
.n("SSMGuiConnectClient", "GetConnectionRecordingPreferencesCommand")
|
|
449
|
+
.f(void 0, void 0)
|
|
450
|
+
.ser(se_GetConnectionRecordingPreferencesCommand)
|
|
451
|
+
.de(de_GetConnectionRecordingPreferencesCommand)
|
|
452
|
+
.build() {
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
class UpdateConnectionRecordingPreferencesCommand extends smithyClient.Command
|
|
456
|
+
.classBuilder()
|
|
457
|
+
.ep(commonParams)
|
|
458
|
+
.m(function (Command, cs, config, o) {
|
|
459
|
+
return [
|
|
460
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
461
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
462
|
+
];
|
|
463
|
+
})
|
|
464
|
+
.s("SSMGuiConnect", "UpdateConnectionRecordingPreferences", {})
|
|
465
|
+
.n("SSMGuiConnectClient", "UpdateConnectionRecordingPreferencesCommand")
|
|
466
|
+
.f(void 0, void 0)
|
|
467
|
+
.ser(se_UpdateConnectionRecordingPreferencesCommand)
|
|
468
|
+
.de(de_UpdateConnectionRecordingPreferencesCommand)
|
|
469
|
+
.build() {
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
const commands = {
|
|
473
|
+
DeleteConnectionRecordingPreferencesCommand,
|
|
474
|
+
GetConnectionRecordingPreferencesCommand,
|
|
475
|
+
UpdateConnectionRecordingPreferencesCommand,
|
|
606
476
|
};
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
|
-
(0, import_smithy_client.createAggregatedClient)(commands, SSMGuiConnect);
|
|
613
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
477
|
+
class SSMGuiConnect extends SSMGuiConnectClient {
|
|
478
|
+
}
|
|
479
|
+
smithyClient.createAggregatedClient(commands, SSMGuiConnect);
|
|
614
480
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
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
|
|
481
|
+
Object.defineProperty(exports, "$Command", {
|
|
482
|
+
enumerable: true,
|
|
483
|
+
get: function () { return smithyClient.Command; }
|
|
631
484
|
});
|
|
632
|
-
|
|
485
|
+
Object.defineProperty(exports, "__Client", {
|
|
486
|
+
enumerable: true,
|
|
487
|
+
get: function () { return smithyClient.Client; }
|
|
488
|
+
});
|
|
489
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
490
|
+
exports.ConflictException = ConflictException;
|
|
491
|
+
exports.DeleteConnectionRecordingPreferencesCommand = DeleteConnectionRecordingPreferencesCommand;
|
|
492
|
+
exports.GetConnectionRecordingPreferencesCommand = GetConnectionRecordingPreferencesCommand;
|
|
493
|
+
exports.InternalServerException = InternalServerException;
|
|
494
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
495
|
+
exports.SSMGuiConnect = SSMGuiConnect;
|
|
496
|
+
exports.SSMGuiConnectClient = SSMGuiConnectClient;
|
|
497
|
+
exports.SSMGuiConnectServiceException = SSMGuiConnectServiceException;
|
|
498
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
499
|
+
exports.ThrottlingException = ThrottlingException;
|
|
500
|
+
exports.UpdateConnectionRecordingPreferencesCommand = UpdateConnectionRecordingPreferencesCommand;
|
|
501
|
+
exports.ValidationException = ValidationException;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.907.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ssm-guiconnect",
|
|
@@ -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.907.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.907.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.901.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.901.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.901.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.907.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.901.0",
|
|
30
30
|
"@aws-sdk/types": "3.901.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.901.0",
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.907.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.907.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.3.0",
|
|
35
35
|
"@smithy/core": "^3.14.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.0",
|