@aws-sdk/client-ssm-guiconnect 3.799.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/LICENSE +201 -0
- package/README.md +253 -0
- package/dist-cjs/SSMGuiConnect.js +17 -0
- package/dist-cjs/SSMGuiConnectClient.js +52 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/DeleteConnectionRecordingPreferencesCommand.js +26 -0
- package/dist-cjs/commands/GetConnectionRecordingPreferencesCommand.js +26 -0
- package/dist-cjs/commands/UpdateConnectionRecordingPreferencesCommand.js +26 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/EndpointParameters.js +17 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/SSMGuiConnectServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +95 -0
- package/dist-cjs/protocols/Aws_restJson1.js +230 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +53 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +13 -0
- package/dist-es/SSMGuiConnect.js +13 -0
- package/dist-es/SSMGuiConnectClient.js +48 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/DeleteConnectionRecordingPreferencesCommand.js +22 -0
- package/dist-es/commands/GetConnectionRecordingPreferencesCommand.js +22 -0
- package/dist-es/commands/UpdateConnectionRecordingPreferencesCommand.js +22 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/SSMGuiConnectServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +85 -0
- package/dist-es/protocols/Aws_restJson1.js +221 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +48 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-types/SSMGuiConnect.d.ts +56 -0
- package/dist-types/SSMGuiConnectClient.d.ts +213 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/DeleteConnectionRecordingPreferencesCommand.d.ts +106 -0
- package/dist-types/commands/GetConnectionRecordingPreferencesCommand.d.ts +126 -0
- package/dist-types/commands/UpdateConnectionRecordingPreferencesCommand.d.ts +151 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +36 -0
- package/dist-types/models/SSMGuiConnectServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +194 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +29 -0
- package/dist-types/runtimeConfig.browser.d.ts +50 -0
- package/dist-types/runtimeConfig.d.ts +50 -0
- package/dist-types/runtimeConfig.native.d.ts +49 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/SSMGuiConnect.d.ts +78 -0
- package/dist-types/ts3.4/SSMGuiConnectClient.d.ts +138 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteConnectionRecordingPreferencesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConnectionRecordingPreferencesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateConnectionRecordingPreferencesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +8 -0
- package/dist-types/ts3.4/models/SSMGuiConnectServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +78 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +41 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +101 -0
|
@@ -0,0 +1,26 @@
|
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
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);
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultEndpointResolver = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
+
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
+
size: 50,
|
|
9
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
|
+
});
|
|
11
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
13
|
+
endpointParams: endpointParams,
|
|
14
|
+
logger: context.logger,
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
17
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://ssm-guiconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://ssm-guiconnect-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://ssm-guiconnect.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://ssm-guiconnect.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
7
|
+
exports.ruleSet = _data;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SSMGuiConnectServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./SSMGuiConnectClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./SSMGuiConnect"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var SSMGuiConnectServiceException_1 = require("./models/SSMGuiConnectServiceException");
|
|
10
|
+
Object.defineProperty(exports, "SSMGuiConnectServiceException", { enumerable: true, get: function () { return SSMGuiConnectServiceException_1.SSMGuiConnectServiceException; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,95 @@
|
|
|
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;
|
|
@@ -0,0 +1,230 @@
|
|
|
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));
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
+
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
12
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
13
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
16
|
+
const getRuntimeConfig = (config) => {
|
|
17
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
19
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
20
|
+
return {
|
|
21
|
+
...clientSharedValues,
|
|
22
|
+
...config,
|
|
23
|
+
runtime: "browser",
|
|
24
|
+
defaultsMode,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
|
+
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
+
const hash_node_1 = require("@smithy/hash-node");
|
|
11
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
12
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
13
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
+
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
15
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
16
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
18
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
19
|
+
const smithy_client_2 = require("@smithy/smithy-client");
|
|
20
|
+
const getRuntimeConfig = (config) => {
|
|
21
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
26
|
+
const profileConfig = { profile: config?.profile };
|
|
27
|
+
return {
|
|
28
|
+
...clientSharedValues,
|
|
29
|
+
...config,
|
|
30
|
+
runtime: "node",
|
|
31
|
+
defaultsMode,
|
|
32
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
38
|
+
region: config?.region ??
|
|
39
|
+
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
|
|
40
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
41
|
+
retryMode: config?.retryMode ??
|
|
42
|
+
(0, node_config_provider_1.loadConfig)({
|
|
43
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
44
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
45
|
+
}, config),
|
|
46
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
47
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
48
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
49
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
50
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
7
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
8
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
9
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
10
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
+
const getRuntimeConfig = (config) => {
|
|
12
|
+
return {
|
|
13
|
+
apiVersion: "2021-05-01",
|
|
14
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
15
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
16
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
17
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
18
|
+
extensions: config?.extensions ?? [],
|
|
19
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSMGuiConnectHttpAuthSchemeProvider,
|
|
20
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
21
|
+
{
|
|
22
|
+
schemeId: "aws.auth#sigv4",
|
|
23
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
28
|
+
serviceId: config?.serviceId ?? "SSM GuiConnect",
|
|
29
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
31
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { DeleteConnectionRecordingPreferencesCommand, } from "./commands/DeleteConnectionRecordingPreferencesCommand";
|
|
3
|
+
import { GetConnectionRecordingPreferencesCommand, } from "./commands/GetConnectionRecordingPreferencesCommand";
|
|
4
|
+
import { UpdateConnectionRecordingPreferencesCommand, } from "./commands/UpdateConnectionRecordingPreferencesCommand";
|
|
5
|
+
import { SSMGuiConnectClient } from "./SSMGuiConnectClient";
|
|
6
|
+
const commands = {
|
|
7
|
+
DeleteConnectionRecordingPreferencesCommand,
|
|
8
|
+
GetConnectionRecordingPreferencesCommand,
|
|
9
|
+
UpdateConnectionRecordingPreferencesCommand,
|
|
10
|
+
};
|
|
11
|
+
export class SSMGuiConnect extends SSMGuiConnectClient {
|
|
12
|
+
}
|
|
13
|
+
createAggregatedClient(commands, SSMGuiConnect);
|