@aws-sdk/client-ssm-sap 3.214.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 +207 -0
- package/dist-cjs/SsmSap.js +247 -0
- package/dist-cjs/SsmSapClient.js +40 -0
- package/dist-cjs/commands/DeleteResourcePermissionCommand.js +46 -0
- package/dist-cjs/commands/DeregisterApplicationCommand.js +46 -0
- package/dist-cjs/commands/GetApplicationCommand.js +46 -0
- package/dist-cjs/commands/GetComponentCommand.js +46 -0
- package/dist-cjs/commands/GetDatabaseCommand.js +46 -0
- package/dist-cjs/commands/GetOperationCommand.js +46 -0
- package/dist-cjs/commands/GetResourcePermissionCommand.js +46 -0
- package/dist-cjs/commands/ListApplicationsCommand.js +46 -0
- package/dist-cjs/commands/ListComponentsCommand.js +46 -0
- package/dist-cjs/commands/ListDatabasesCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/PutResourcePermissionCommand.js +46 -0
- package/dist-cjs/commands/RegisterApplicationCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateApplicationSettingsCommand.js +46 -0
- package/dist-cjs/commands/index.js +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/SsmSapServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +293 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListApplicationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListComponentsPaginator.js +36 -0
- package/dist-cjs/pagination/ListDatabasesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1356 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/SsmSap.js +243 -0
- package/dist-es/SsmSapClient.js +36 -0
- package/dist-es/commands/DeleteResourcePermissionCommand.js +42 -0
- package/dist-es/commands/DeregisterApplicationCommand.js +42 -0
- package/dist-es/commands/GetApplicationCommand.js +42 -0
- package/dist-es/commands/GetComponentCommand.js +42 -0
- package/dist-es/commands/GetDatabaseCommand.js +42 -0
- package/dist-es/commands/GetOperationCommand.js +42 -0
- package/dist-es/commands/GetResourcePermissionCommand.js +42 -0
- package/dist-es/commands/ListApplicationsCommand.js +42 -0
- package/dist-es/commands/ListComponentsCommand.js +42 -0
- package/dist-es/commands/ListDatabasesCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/PutResourcePermissionCommand.js +42 -0
- package/dist-es/commands/RegisterApplicationCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateApplicationSettingsCommand.js +42 -0
- package/dist-es/commands/index.js +16 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/SsmSapServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +244 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +32 -0
- package/dist-es/pagination/ListComponentsPaginator.js +32 -0
- package/dist-es/pagination/ListDatabasesPaginator.js +32 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1321 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/SsmSap.d.ts +134 -0
- package/dist-types/SsmSapClient.d.ts +159 -0
- package/dist-types/commands/DeleteResourcePermissionCommand.d.ts +37 -0
- package/dist-types/commands/DeregisterApplicationCommand.d.ts +38 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +38 -0
- package/dist-types/commands/GetComponentCommand.d.ts +38 -0
- package/dist-types/commands/GetDatabaseCommand.d.ts +38 -0
- package/dist-types/commands/GetOperationCommand.d.ts +37 -0
- package/dist-types/commands/GetResourcePermissionCommand.d.ts +37 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +37 -0
- package/dist-types/commands/ListComponentsCommand.d.ts +37 -0
- package/dist-types/commands/ListDatabasesCommand.d.ts +38 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/commands/PutResourcePermissionCommand.d.ts +37 -0
- package/dist-types/commands/RegisterApplicationCommand.d.ts +44 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateApplicationSettingsCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +16 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/SsmSapServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +854 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListComponentsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDatabasesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +50 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/SsmSap.d.ts +276 -0
- package/dist-types/ts3.4/SsmSapClient.d.ts +207 -0
- package/dist-types/ts3.4/commands/DeleteResourcePermissionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeregisterApplicationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetComponentCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetDatabaseCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetOperationCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetResourcePermissionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePermissionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/RegisterApplicationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateApplicationSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +16 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -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/index.d.ts +6 -0
- package/dist-types/ts3.4/models/SsmSapServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +392 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDatabasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +197 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +86 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +86 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +75 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +101 -0
|
@@ -0,0 +1,42 @@
|
|
|
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 config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
|
+
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
12
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
13
|
+
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
16
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
17
|
+
const getRuntimeConfig = (config) => {
|
|
18
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
21
|
+
return {
|
|
22
|
+
...clientSharedValues,
|
|
23
|
+
...config,
|
|
24
|
+
runtime: "browser",
|
|
25
|
+
defaultsMode,
|
|
26
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
27
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
31
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
32
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
33
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
34
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
35
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
36
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
37
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
38
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
39
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
|
+
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
14
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
15
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
16
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
18
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
|
+
const smithy_client_2 = require("@aws-sdk/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
|
+
return {
|
|
26
|
+
...clientSharedValues,
|
|
27
|
+
...config,
|
|
28
|
+
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
30
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
31
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
32
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
33
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
34
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
35
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
36
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
37
|
+
retryMode: config?.retryMode ??
|
|
38
|
+
(0, node_config_provider_1.loadConfig)({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
42
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
43
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
44
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
47
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
6
|
+
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
7
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
8
|
+
const getRuntimeConfig = (config) => ({
|
|
9
|
+
apiVersion: "2018-05-10",
|
|
10
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
11
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
12
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
13
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
14
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "Ssm Sap",
|
|
16
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
17
|
+
});
|
|
18
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { DeleteResourcePermissionCommand, } from "./commands/DeleteResourcePermissionCommand";
|
|
2
|
+
import { DeregisterApplicationCommand, } from "./commands/DeregisterApplicationCommand";
|
|
3
|
+
import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
|
|
4
|
+
import { GetComponentCommand, } from "./commands/GetComponentCommand";
|
|
5
|
+
import { GetDatabaseCommand } from "./commands/GetDatabaseCommand";
|
|
6
|
+
import { GetOperationCommand, } from "./commands/GetOperationCommand";
|
|
7
|
+
import { GetResourcePermissionCommand, } from "./commands/GetResourcePermissionCommand";
|
|
8
|
+
import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
|
|
9
|
+
import { ListComponentsCommand, } from "./commands/ListComponentsCommand";
|
|
10
|
+
import { ListDatabasesCommand, } from "./commands/ListDatabasesCommand";
|
|
11
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
12
|
+
import { PutResourcePermissionCommand, } from "./commands/PutResourcePermissionCommand";
|
|
13
|
+
import { RegisterApplicationCommand, } from "./commands/RegisterApplicationCommand";
|
|
14
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
15
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
16
|
+
import { UpdateApplicationSettingsCommand, } from "./commands/UpdateApplicationSettingsCommand";
|
|
17
|
+
import { SsmSapClient } from "./SsmSapClient";
|
|
18
|
+
export class SsmSap extends SsmSapClient {
|
|
19
|
+
deleteResourcePermission(args, optionsOrCb, cb) {
|
|
20
|
+
const command = new DeleteResourcePermissionCommand(args);
|
|
21
|
+
if (typeof optionsOrCb === "function") {
|
|
22
|
+
this.send(command, optionsOrCb);
|
|
23
|
+
}
|
|
24
|
+
else if (typeof cb === "function") {
|
|
25
|
+
if (typeof optionsOrCb !== "object")
|
|
26
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
27
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return this.send(command, optionsOrCb);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
deregisterApplication(args, optionsOrCb, cb) {
|
|
34
|
+
const command = new DeregisterApplicationCommand(args);
|
|
35
|
+
if (typeof optionsOrCb === "function") {
|
|
36
|
+
this.send(command, optionsOrCb);
|
|
37
|
+
}
|
|
38
|
+
else if (typeof cb === "function") {
|
|
39
|
+
if (typeof optionsOrCb !== "object")
|
|
40
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
41
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return this.send(command, optionsOrCb);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
getApplication(args, optionsOrCb, cb) {
|
|
48
|
+
const command = new GetApplicationCommand(args);
|
|
49
|
+
if (typeof optionsOrCb === "function") {
|
|
50
|
+
this.send(command, optionsOrCb);
|
|
51
|
+
}
|
|
52
|
+
else if (typeof cb === "function") {
|
|
53
|
+
if (typeof optionsOrCb !== "object")
|
|
54
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
55
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
return this.send(command, optionsOrCb);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
getComponent(args, optionsOrCb, cb) {
|
|
62
|
+
const command = new GetComponentCommand(args);
|
|
63
|
+
if (typeof optionsOrCb === "function") {
|
|
64
|
+
this.send(command, optionsOrCb);
|
|
65
|
+
}
|
|
66
|
+
else if (typeof cb === "function") {
|
|
67
|
+
if (typeof optionsOrCb !== "object")
|
|
68
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
69
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return this.send(command, optionsOrCb);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
getDatabase(args, optionsOrCb, cb) {
|
|
76
|
+
const command = new GetDatabaseCommand(args);
|
|
77
|
+
if (typeof optionsOrCb === "function") {
|
|
78
|
+
this.send(command, optionsOrCb);
|
|
79
|
+
}
|
|
80
|
+
else if (typeof cb === "function") {
|
|
81
|
+
if (typeof optionsOrCb !== "object")
|
|
82
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
83
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return this.send(command, optionsOrCb);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
getOperation(args, optionsOrCb, cb) {
|
|
90
|
+
const command = new GetOperationCommand(args);
|
|
91
|
+
if (typeof optionsOrCb === "function") {
|
|
92
|
+
this.send(command, optionsOrCb);
|
|
93
|
+
}
|
|
94
|
+
else if (typeof cb === "function") {
|
|
95
|
+
if (typeof optionsOrCb !== "object")
|
|
96
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
97
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
return this.send(command, optionsOrCb);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
getResourcePermission(args, optionsOrCb, cb) {
|
|
104
|
+
const command = new GetResourcePermissionCommand(args);
|
|
105
|
+
if (typeof optionsOrCb === "function") {
|
|
106
|
+
this.send(command, optionsOrCb);
|
|
107
|
+
}
|
|
108
|
+
else if (typeof cb === "function") {
|
|
109
|
+
if (typeof optionsOrCb !== "object")
|
|
110
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
111
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return this.send(command, optionsOrCb);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
listApplications(args, optionsOrCb, cb) {
|
|
118
|
+
const command = new ListApplicationsCommand(args);
|
|
119
|
+
if (typeof optionsOrCb === "function") {
|
|
120
|
+
this.send(command, optionsOrCb);
|
|
121
|
+
}
|
|
122
|
+
else if (typeof cb === "function") {
|
|
123
|
+
if (typeof optionsOrCb !== "object")
|
|
124
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
125
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
return this.send(command, optionsOrCb);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
listComponents(args, optionsOrCb, cb) {
|
|
132
|
+
const command = new ListComponentsCommand(args);
|
|
133
|
+
if (typeof optionsOrCb === "function") {
|
|
134
|
+
this.send(command, optionsOrCb);
|
|
135
|
+
}
|
|
136
|
+
else if (typeof cb === "function") {
|
|
137
|
+
if (typeof optionsOrCb !== "object")
|
|
138
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
139
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
return this.send(command, optionsOrCb);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
listDatabases(args, optionsOrCb, cb) {
|
|
146
|
+
const command = new ListDatabasesCommand(args);
|
|
147
|
+
if (typeof optionsOrCb === "function") {
|
|
148
|
+
this.send(command, optionsOrCb);
|
|
149
|
+
}
|
|
150
|
+
else if (typeof cb === "function") {
|
|
151
|
+
if (typeof optionsOrCb !== "object")
|
|
152
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
153
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
return this.send(command, optionsOrCb);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
160
|
+
const command = new ListTagsForResourceCommand(args);
|
|
161
|
+
if (typeof optionsOrCb === "function") {
|
|
162
|
+
this.send(command, optionsOrCb);
|
|
163
|
+
}
|
|
164
|
+
else if (typeof cb === "function") {
|
|
165
|
+
if (typeof optionsOrCb !== "object")
|
|
166
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
167
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
return this.send(command, optionsOrCb);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
putResourcePermission(args, optionsOrCb, cb) {
|
|
174
|
+
const command = new PutResourcePermissionCommand(args);
|
|
175
|
+
if (typeof optionsOrCb === "function") {
|
|
176
|
+
this.send(command, optionsOrCb);
|
|
177
|
+
}
|
|
178
|
+
else if (typeof cb === "function") {
|
|
179
|
+
if (typeof optionsOrCb !== "object")
|
|
180
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
181
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
return this.send(command, optionsOrCb);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
registerApplication(args, optionsOrCb, cb) {
|
|
188
|
+
const command = new RegisterApplicationCommand(args);
|
|
189
|
+
if (typeof optionsOrCb === "function") {
|
|
190
|
+
this.send(command, optionsOrCb);
|
|
191
|
+
}
|
|
192
|
+
else if (typeof cb === "function") {
|
|
193
|
+
if (typeof optionsOrCb !== "object")
|
|
194
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
195
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
return this.send(command, optionsOrCb);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
tagResource(args, optionsOrCb, cb) {
|
|
202
|
+
const command = new TagResourceCommand(args);
|
|
203
|
+
if (typeof optionsOrCb === "function") {
|
|
204
|
+
this.send(command, optionsOrCb);
|
|
205
|
+
}
|
|
206
|
+
else if (typeof cb === "function") {
|
|
207
|
+
if (typeof optionsOrCb !== "object")
|
|
208
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
209
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
return this.send(command, optionsOrCb);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
untagResource(args, optionsOrCb, cb) {
|
|
216
|
+
const command = new UntagResourceCommand(args);
|
|
217
|
+
if (typeof optionsOrCb === "function") {
|
|
218
|
+
this.send(command, optionsOrCb);
|
|
219
|
+
}
|
|
220
|
+
else if (typeof cb === "function") {
|
|
221
|
+
if (typeof optionsOrCb !== "object")
|
|
222
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
223
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
return this.send(command, optionsOrCb);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
updateApplicationSettings(args, optionsOrCb, cb) {
|
|
230
|
+
const command = new UpdateApplicationSettingsCommand(args);
|
|
231
|
+
if (typeof optionsOrCb === "function") {
|
|
232
|
+
this.send(command, optionsOrCb);
|
|
233
|
+
}
|
|
234
|
+
else if (typeof cb === "function") {
|
|
235
|
+
if (typeof optionsOrCb !== "object")
|
|
236
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
237
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
return this.send(command, optionsOrCb);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
|
+
export class SsmSapClient extends __Client {
|
|
14
|
+
constructor(configuration) {
|
|
15
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
25
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
|
+
}
|
|
33
|
+
destroy() {
|
|
34
|
+
super.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteResourcePermissionInputFilterSensitiveLog, DeleteResourcePermissionOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteResourcePermissionCommand, serializeAws_restJson1DeleteResourcePermissionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeleteResourcePermissionCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
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
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteResourcePermissionCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SsmSapClient";
|
|
25
|
+
const commandName = "DeleteResourcePermissionCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteResourcePermissionInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeleteResourcePermissionOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DeleteResourcePermissionCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeleteResourcePermissionCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeregisterApplicationInputFilterSensitiveLog, DeregisterApplicationOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeregisterApplicationCommand, serializeAws_restJson1DeregisterApplicationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeregisterApplicationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
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
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeregisterApplicationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SsmSapClient";
|
|
25
|
+
const commandName = "DeregisterApplicationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeregisterApplicationInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeregisterApplicationOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DeregisterApplicationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeregisterApplicationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetApplicationInputFilterSensitiveLog, GetApplicationOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetApplicationCommand, serializeAws_restJson1GetApplicationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetApplicationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
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
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetApplicationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SsmSapClient";
|
|
25
|
+
const commandName = "GetApplicationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetApplicationInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetApplicationOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetApplicationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetApplicationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetComponentInputFilterSensitiveLog, GetComponentOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetComponentCommand, serializeAws_restJson1GetComponentCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetComponentCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
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
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetComponentCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SsmSapClient";
|
|
25
|
+
const commandName = "GetComponentCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetComponentInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetComponentOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetComponentCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetComponentCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetDatabaseInputFilterSensitiveLog, GetDatabaseOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetDatabaseCommand, serializeAws_restJson1GetDatabaseCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetDatabaseCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
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
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetDatabaseCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SsmSapClient";
|
|
25
|
+
const commandName = "GetDatabaseCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetDatabaseInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetDatabaseOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetDatabaseCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetDatabaseCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|