@aws-sdk/client-rbin 3.44.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/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +216 -0
- package/dist-cjs/Rbin.js +127 -0
- package/dist-cjs/RbinClient.js +35 -0
- package/dist-cjs/commands/CreateRuleCommand.js +36 -0
- package/dist-cjs/commands/DeleteRuleCommand.js +36 -0
- package/dist-cjs/commands/GetRuleCommand.js +36 -0
- package/dist-cjs/commands/ListRulesCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateRuleCommand.js +36 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoints.js +130 -0
- package/dist-cjs/index.js +8 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +173 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListRulesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1020 -0
- package/dist-cjs/runtimeConfig.browser.js +40 -0
- package/dist-cjs/runtimeConfig.js +44 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/Rbin.js +130 -0
- package/dist-es/RbinClient.js +37 -0
- package/dist-es/commands/CreateRuleCommand.js +39 -0
- package/dist-es/commands/DeleteRuleCommand.js +39 -0
- package/dist-es/commands/GetRuleCommand.js +39 -0
- package/dist-es/commands/ListRulesCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateRuleCommand.js +39 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/endpoints.js +126 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +123 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListRulesPaginator.js +74 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1154 -0
- package/dist-es/runtimeConfig.browser.js +17 -0
- package/dist-es/runtimeConfig.js +21 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/Rbin.d.ts +79 -0
- package/dist-types/RbinClient.d.ts +161 -0
- package/dist-types/commands/CreateRuleCommand.d.ts +36 -0
- package/dist-types/commands/DeleteRuleCommand.d.ts +36 -0
- package/dist-types/commands/GetRuleCommand.d.ts +35 -0
- package/dist-types/commands/ListRulesCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateRuleCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +485 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListRulesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +26 -0
- package/dist-types/runtimeConfig.browser.d.ts +39 -0
- package/dist-types/runtimeConfig.d.ts +39 -0
- package/dist-types/runtimeConfig.native.d.ts +38 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/Rbin.d.ts +45 -0
- package/dist-types/ts3.4/RbinClient.d.ts +79 -0
- package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +295 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +26 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +94 -0
|
@@ -0,0 +1,40 @@
|
|
|
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_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
|
+
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
|
+
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const getRuntimeConfig = (config) => {
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
+
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
|
+
return {
|
|
20
|
+
...clientSharedValues,
|
|
21
|
+
...config,
|
|
22
|
+
runtime: "browser",
|
|
23
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
32
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,44 @@
|
|
|
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_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const getRuntimeConfig = (config) => {
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
+
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
|
+
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "node",
|
|
27
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
31
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
var _a;
|
|
8
|
+
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
9
|
+
return {
|
|
10
|
+
...browserDefaults,
|
|
11
|
+
...config,
|
|
12
|
+
runtime: "react-native",
|
|
13
|
+
sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a, _b, _c, _d, _e;
|
|
8
|
+
return ({
|
|
9
|
+
apiVersion: "2021-06-15",
|
|
10
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
12
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
|
|
13
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "rbin",
|
|
14
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
package/dist-es/Rbin.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { CreateRuleCommand } from "./commands/CreateRuleCommand";
|
|
3
|
+
import { DeleteRuleCommand } from "./commands/DeleteRuleCommand";
|
|
4
|
+
import { GetRuleCommand } from "./commands/GetRuleCommand";
|
|
5
|
+
import { ListRulesCommand } from "./commands/ListRulesCommand";
|
|
6
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
7
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
8
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
9
|
+
import { UpdateRuleCommand } from "./commands/UpdateRuleCommand";
|
|
10
|
+
import { RbinClient } from "./RbinClient";
|
|
11
|
+
var Rbin = (function (_super) {
|
|
12
|
+
__extends(Rbin, _super);
|
|
13
|
+
function Rbin() {
|
|
14
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
15
|
+
}
|
|
16
|
+
Rbin.prototype.createRule = function (args, optionsOrCb, cb) {
|
|
17
|
+
var command = new CreateRuleCommand(args);
|
|
18
|
+
if (typeof optionsOrCb === "function") {
|
|
19
|
+
this.send(command, optionsOrCb);
|
|
20
|
+
}
|
|
21
|
+
else if (typeof cb === "function") {
|
|
22
|
+
if (typeof optionsOrCb !== "object")
|
|
23
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
24
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
return this.send(command, optionsOrCb);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
Rbin.prototype.deleteRule = function (args, optionsOrCb, cb) {
|
|
31
|
+
var command = new DeleteRuleCommand(args);
|
|
32
|
+
if (typeof optionsOrCb === "function") {
|
|
33
|
+
this.send(command, optionsOrCb);
|
|
34
|
+
}
|
|
35
|
+
else if (typeof cb === "function") {
|
|
36
|
+
if (typeof optionsOrCb !== "object")
|
|
37
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
38
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return this.send(command, optionsOrCb);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
Rbin.prototype.getRule = function (args, optionsOrCb, cb) {
|
|
45
|
+
var command = new GetRuleCommand(args);
|
|
46
|
+
if (typeof optionsOrCb === "function") {
|
|
47
|
+
this.send(command, optionsOrCb);
|
|
48
|
+
}
|
|
49
|
+
else if (typeof cb === "function") {
|
|
50
|
+
if (typeof optionsOrCb !== "object")
|
|
51
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
52
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
return this.send(command, optionsOrCb);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
Rbin.prototype.listRules = function (args, optionsOrCb, cb) {
|
|
59
|
+
var command = new ListRulesCommand(args);
|
|
60
|
+
if (typeof optionsOrCb === "function") {
|
|
61
|
+
this.send(command, optionsOrCb);
|
|
62
|
+
}
|
|
63
|
+
else if (typeof cb === "function") {
|
|
64
|
+
if (typeof optionsOrCb !== "object")
|
|
65
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
66
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
return this.send(command, optionsOrCb);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
Rbin.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
73
|
+
var command = new ListTagsForResourceCommand(args);
|
|
74
|
+
if (typeof optionsOrCb === "function") {
|
|
75
|
+
this.send(command, optionsOrCb);
|
|
76
|
+
}
|
|
77
|
+
else if (typeof cb === "function") {
|
|
78
|
+
if (typeof optionsOrCb !== "object")
|
|
79
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
80
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
return this.send(command, optionsOrCb);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
Rbin.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
87
|
+
var command = new TagResourceCommand(args);
|
|
88
|
+
if (typeof optionsOrCb === "function") {
|
|
89
|
+
this.send(command, optionsOrCb);
|
|
90
|
+
}
|
|
91
|
+
else if (typeof cb === "function") {
|
|
92
|
+
if (typeof optionsOrCb !== "object")
|
|
93
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
94
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
return this.send(command, optionsOrCb);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
Rbin.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
101
|
+
var command = new UntagResourceCommand(args);
|
|
102
|
+
if (typeof optionsOrCb === "function") {
|
|
103
|
+
this.send(command, optionsOrCb);
|
|
104
|
+
}
|
|
105
|
+
else if (typeof cb === "function") {
|
|
106
|
+
if (typeof optionsOrCb !== "object")
|
|
107
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
108
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
return this.send(command, optionsOrCb);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
Rbin.prototype.updateRule = function (args, optionsOrCb, cb) {
|
|
115
|
+
var command = new UpdateRuleCommand(args);
|
|
116
|
+
if (typeof optionsOrCb === "function") {
|
|
117
|
+
this.send(command, optionsOrCb);
|
|
118
|
+
}
|
|
119
|
+
else if (typeof cb === "function") {
|
|
120
|
+
if (typeof optionsOrCb !== "object")
|
|
121
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
122
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return this.send(command, optionsOrCb);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
return Rbin;
|
|
129
|
+
}(RbinClient));
|
|
130
|
+
export { Rbin };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
var RbinClient = (function (_super) {
|
|
12
|
+
__extends(RbinClient, _super);
|
|
13
|
+
function RbinClient(configuration) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
17
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
18
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
19
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
20
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
21
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
22
|
+
_this = _super.call(this, _config_6) || this;
|
|
23
|
+
_this.config = _config_6;
|
|
24
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
25
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
RbinClient.prototype.destroy = function () {
|
|
33
|
+
_super.prototype.destroy.call(this);
|
|
34
|
+
};
|
|
35
|
+
return RbinClient;
|
|
36
|
+
}(__Client));
|
|
37
|
+
export { RbinClient };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateRuleRequest, CreateRuleResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateRuleCommand, serializeAws_restJson1CreateRuleCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateRuleCommand = (function (_super) {
|
|
7
|
+
__extends(CreateRuleCommand, _super);
|
|
8
|
+
function CreateRuleCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RbinClient";
|
|
18
|
+
var commandName = "CreateRuleCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateRuleRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateRuleResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateRuleCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateRuleCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateRuleCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateRuleCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateRuleCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateRuleCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteRuleRequest, DeleteRuleResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteRuleCommand, serializeAws_restJson1DeleteRuleCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteRuleCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteRuleCommand, _super);
|
|
8
|
+
function DeleteRuleCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RbinClient";
|
|
18
|
+
var commandName = "DeleteRuleCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteRuleRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteRuleResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteRuleCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteRuleCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteRuleCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteRuleCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteRuleCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteRuleCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetRuleRequest, GetRuleResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetRuleCommand, serializeAws_restJson1GetRuleCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetRuleCommand = (function (_super) {
|
|
7
|
+
__extends(GetRuleCommand, _super);
|
|
8
|
+
function GetRuleCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RbinClient";
|
|
18
|
+
var commandName = "GetRuleCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetRuleRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetRuleResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetRuleCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetRuleCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetRuleCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetRuleCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetRuleCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetRuleCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListRulesRequest, ListRulesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListRulesCommand, serializeAws_restJson1ListRulesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListRulesCommand = (function (_super) {
|
|
7
|
+
__extends(ListRulesCommand, _super);
|
|
8
|
+
function ListRulesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListRulesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RbinClient";
|
|
18
|
+
var commandName = "ListRulesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListRulesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListRulesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListRulesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListRulesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListRulesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListRulesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListRulesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListRulesCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListTagsForResourceCommand = (function (_super) {
|
|
7
|
+
__extends(ListTagsForResourceCommand, _super);
|
|
8
|
+
function ListTagsForResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RbinClient";
|
|
18
|
+
var commandName = "ListTagsForResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListTagsForResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListTagsForResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListTagsForResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListTagsForResourceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var TagResourceCommand = (function (_super) {
|
|
7
|
+
__extends(TagResourceCommand, _super);
|
|
8
|
+
function TagResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RbinClient";
|
|
18
|
+
var commandName = "TagResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
TagResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1TagResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
TagResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1TagResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return TagResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { TagResourceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UntagResourceCommand = (function (_super) {
|
|
7
|
+
__extends(UntagResourceCommand, _super);
|
|
8
|
+
function UntagResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RbinClient";
|
|
18
|
+
var commandName = "UntagResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UntagResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UntagResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UntagResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UntagResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UntagResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UntagResourceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateRuleRequest, UpdateRuleResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateRuleCommand, serializeAws_restJson1UpdateRuleCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateRuleCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateRuleCommand, _super);
|
|
8
|
+
function UpdateRuleCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RbinClient";
|
|
18
|
+
var commandName = "UpdateRuleCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateRuleRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateRuleResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateRuleCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateRuleCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateRuleCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateRuleCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateRuleCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateRuleCommand };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./CreateRuleCommand";
|
|
2
|
+
export * from "./DeleteRuleCommand";
|
|
3
|
+
export * from "./GetRuleCommand";
|
|
4
|
+
export * from "./ListRulesCommand";
|
|
5
|
+
export * from "./ListTagsForResourceCommand";
|
|
6
|
+
export * from "./TagResourceCommand";
|
|
7
|
+
export * from "./UntagResourceCommand";
|
|
8
|
+
export * from "./UpdateRuleCommand";
|