@aws-sdk/client-pipes 3.222.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.
Files changed (115) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +207 -0
  3. package/dist-cjs/Pipes.js +157 -0
  4. package/dist-cjs/PipesClient.js +40 -0
  5. package/dist-cjs/commands/CreatePipeCommand.js +46 -0
  6. package/dist-cjs/commands/DeletePipeCommand.js +46 -0
  7. package/dist-cjs/commands/DescribePipeCommand.js +46 -0
  8. package/dist-cjs/commands/ListPipesCommand.js +46 -0
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  10. package/dist-cjs/commands/StartPipeCommand.js +46 -0
  11. package/dist-cjs/commands/StopPipeCommand.js +46 -0
  12. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  13. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  14. package/dist-cjs/commands/UpdatePipeCommand.js +46 -0
  15. package/dist-cjs/commands/index.js +13 -0
  16. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  17. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  18. package/dist-cjs/endpoint/ruleset.js +312 -0
  19. package/dist-cjs/index.js +11 -0
  20. package/dist-cjs/models/PipesServiceException.js +11 -0
  21. package/dist-cjs/models/index.js +4 -0
  22. package/dist-cjs/models/models_0.js +704 -0
  23. package/dist-cjs/pagination/Interfaces.js +2 -0
  24. package/dist-cjs/pagination/ListPipesPaginator.js +36 -0
  25. package/dist-cjs/pagination/index.js +5 -0
  26. package/dist-cjs/protocols/Aws_restJson1.js +2591 -0
  27. package/dist-cjs/runtimeConfig.browser.js +42 -0
  28. package/dist-cjs/runtimeConfig.js +50 -0
  29. package/dist-cjs/runtimeConfig.native.js +15 -0
  30. package/dist-cjs/runtimeConfig.shared.js +18 -0
  31. package/dist-es/Pipes.js +153 -0
  32. package/dist-es/PipesClient.js +36 -0
  33. package/dist-es/commands/CreatePipeCommand.js +42 -0
  34. package/dist-es/commands/DeletePipeCommand.js +42 -0
  35. package/dist-es/commands/DescribePipeCommand.js +42 -0
  36. package/dist-es/commands/ListPipesCommand.js +42 -0
  37. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  38. package/dist-es/commands/StartPipeCommand.js +42 -0
  39. package/dist-es/commands/StopPipeCommand.js +42 -0
  40. package/dist-es/commands/TagResourceCommand.js +42 -0
  41. package/dist-es/commands/UntagResourceCommand.js +42 -0
  42. package/dist-es/commands/UpdatePipeCommand.js +42 -0
  43. package/dist-es/commands/index.js +10 -0
  44. package/dist-es/endpoint/EndpointParameters.js +8 -0
  45. package/dist-es/endpoint/endpointResolver.js +8 -0
  46. package/dist-es/endpoint/ruleset.js +309 -0
  47. package/dist-es/index.js +6 -0
  48. package/dist-es/models/PipesServiceException.js +7 -0
  49. package/dist-es/models/index.js +1 -0
  50. package/dist-es/models/models_0.js +614 -0
  51. package/dist-es/pagination/Interfaces.js +1 -0
  52. package/dist-es/pagination/ListPipesPaginator.js +32 -0
  53. package/dist-es/pagination/index.js +2 -0
  54. package/dist-es/protocols/Aws_restJson1.js +2568 -0
  55. package/dist-es/runtimeConfig.browser.js +37 -0
  56. package/dist-es/runtimeConfig.js +45 -0
  57. package/dist-es/runtimeConfig.native.js +11 -0
  58. package/dist-es/runtimeConfig.shared.js +14 -0
  59. package/dist-types/Pipes.d.ts +95 -0
  60. package/dist-types/PipesClient.d.ts +153 -0
  61. package/dist-types/commands/CreatePipeCommand.d.ts +37 -0
  62. package/dist-types/commands/DeletePipeCommand.d.ts +37 -0
  63. package/dist-types/commands/DescribePipeCommand.d.ts +37 -0
  64. package/dist-types/commands/ListPipesCommand.d.ts +37 -0
  65. package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
  66. package/dist-types/commands/StartPipeCommand.d.ts +37 -0
  67. package/dist-types/commands/StopPipeCommand.d.ts +37 -0
  68. package/dist-types/commands/TagResourceCommand.d.ts +47 -0
  69. package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
  70. package/dist-types/commands/UpdatePipeCommand.d.ts +43 -0
  71. package/dist-types/commands/index.d.ts +10 -0
  72. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  73. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  74. package/dist-types/endpoint/ruleset.d.ts +2 -0
  75. package/dist-types/index.d.ts +6 -0
  76. package/dist-types/models/PipesServiceException.d.ts +10 -0
  77. package/dist-types/models/index.d.ts +1 -0
  78. package/dist-types/models/models_0.d.ts +2541 -0
  79. package/dist-types/pagination/Interfaces.d.ts +6 -0
  80. package/dist-types/pagination/ListPipesPaginator.d.ts +4 -0
  81. package/dist-types/pagination/index.d.ts +2 -0
  82. package/dist-types/protocols/Aws_restJson1.d.ts +32 -0
  83. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  84. package/dist-types/runtimeConfig.d.ts +42 -0
  85. package/dist-types/runtimeConfig.native.d.ts +41 -0
  86. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  87. package/dist-types/ts3.4/Pipes.d.ts +174 -0
  88. package/dist-types/ts3.4/PipesClient.d.ts +171 -0
  89. package/dist-types/ts3.4/commands/CreatePipeCommand.d.ts +34 -0
  90. package/dist-types/ts3.4/commands/DeletePipeCommand.d.ts +34 -0
  91. package/dist-types/ts3.4/commands/DescribePipeCommand.d.ts +34 -0
  92. package/dist-types/ts3.4/commands/ListPipesCommand.d.ts +34 -0
  93. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  94. package/dist-types/ts3.4/commands/StartPipeCommand.d.ts +34 -0
  95. package/dist-types/ts3.4/commands/StopPipeCommand.d.ts +34 -0
  96. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  97. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
  98. package/dist-types/ts3.4/commands/UpdatePipeCommand.d.ts +34 -0
  99. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  100. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  101. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  102. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  103. package/dist-types/ts3.4/index.d.ts +6 -0
  104. package/dist-types/ts3.4/models/PipesServiceException.d.ts +7 -0
  105. package/dist-types/ts3.4/models/index.d.ts +1 -0
  106. package/dist-types/ts3.4/models/models_0.d.ts +915 -0
  107. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  108. package/dist-types/ts3.4/pagination/ListPipesPaginator.d.ts +11 -0
  109. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  110. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +125 -0
  111. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
  112. package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
  113. package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
  114. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
  115. package/package.json +102 -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: "2015-10-07",
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 ?? "Pipes",
16
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
17
+ });
18
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,153 @@
1
+ import { CreatePipeCommand } from "./commands/CreatePipeCommand";
2
+ import { DeletePipeCommand } from "./commands/DeletePipeCommand";
3
+ import { DescribePipeCommand, } from "./commands/DescribePipeCommand";
4
+ import { ListPipesCommand } from "./commands/ListPipesCommand";
5
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
6
+ import { StartPipeCommand } from "./commands/StartPipeCommand";
7
+ import { StopPipeCommand } from "./commands/StopPipeCommand";
8
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
9
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
10
+ import { UpdatePipeCommand } from "./commands/UpdatePipeCommand";
11
+ import { PipesClient } from "./PipesClient";
12
+ export class Pipes extends PipesClient {
13
+ createPipe(args, optionsOrCb, cb) {
14
+ const command = new CreatePipeCommand(args);
15
+ if (typeof optionsOrCb === "function") {
16
+ this.send(command, optionsOrCb);
17
+ }
18
+ else if (typeof cb === "function") {
19
+ if (typeof optionsOrCb !== "object")
20
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
21
+ this.send(command, optionsOrCb || {}, cb);
22
+ }
23
+ else {
24
+ return this.send(command, optionsOrCb);
25
+ }
26
+ }
27
+ deletePipe(args, optionsOrCb, cb) {
28
+ const command = new DeletePipeCommand(args);
29
+ if (typeof optionsOrCb === "function") {
30
+ this.send(command, optionsOrCb);
31
+ }
32
+ else if (typeof cb === "function") {
33
+ if (typeof optionsOrCb !== "object")
34
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
+ this.send(command, optionsOrCb || {}, cb);
36
+ }
37
+ else {
38
+ return this.send(command, optionsOrCb);
39
+ }
40
+ }
41
+ describePipe(args, optionsOrCb, cb) {
42
+ const command = new DescribePipeCommand(args);
43
+ if (typeof optionsOrCb === "function") {
44
+ this.send(command, optionsOrCb);
45
+ }
46
+ else if (typeof cb === "function") {
47
+ if (typeof optionsOrCb !== "object")
48
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
+ this.send(command, optionsOrCb || {}, cb);
50
+ }
51
+ else {
52
+ return this.send(command, optionsOrCb);
53
+ }
54
+ }
55
+ listPipes(args, optionsOrCb, cb) {
56
+ const command = new ListPipesCommand(args);
57
+ if (typeof optionsOrCb === "function") {
58
+ this.send(command, optionsOrCb);
59
+ }
60
+ else if (typeof cb === "function") {
61
+ if (typeof optionsOrCb !== "object")
62
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
+ this.send(command, optionsOrCb || {}, cb);
64
+ }
65
+ else {
66
+ return this.send(command, optionsOrCb);
67
+ }
68
+ }
69
+ listTagsForResource(args, optionsOrCb, cb) {
70
+ const command = new ListTagsForResourceCommand(args);
71
+ if (typeof optionsOrCb === "function") {
72
+ this.send(command, optionsOrCb);
73
+ }
74
+ else if (typeof cb === "function") {
75
+ if (typeof optionsOrCb !== "object")
76
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
+ this.send(command, optionsOrCb || {}, cb);
78
+ }
79
+ else {
80
+ return this.send(command, optionsOrCb);
81
+ }
82
+ }
83
+ startPipe(args, optionsOrCb, cb) {
84
+ const command = new StartPipeCommand(args);
85
+ if (typeof optionsOrCb === "function") {
86
+ this.send(command, optionsOrCb);
87
+ }
88
+ else if (typeof cb === "function") {
89
+ if (typeof optionsOrCb !== "object")
90
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
+ this.send(command, optionsOrCb || {}, cb);
92
+ }
93
+ else {
94
+ return this.send(command, optionsOrCb);
95
+ }
96
+ }
97
+ stopPipe(args, optionsOrCb, cb) {
98
+ const command = new StopPipeCommand(args);
99
+ if (typeof optionsOrCb === "function") {
100
+ this.send(command, optionsOrCb);
101
+ }
102
+ else if (typeof cb === "function") {
103
+ if (typeof optionsOrCb !== "object")
104
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
+ this.send(command, optionsOrCb || {}, cb);
106
+ }
107
+ else {
108
+ return this.send(command, optionsOrCb);
109
+ }
110
+ }
111
+ tagResource(args, optionsOrCb, cb) {
112
+ const command = new TagResourceCommand(args);
113
+ if (typeof optionsOrCb === "function") {
114
+ this.send(command, optionsOrCb);
115
+ }
116
+ else if (typeof cb === "function") {
117
+ if (typeof optionsOrCb !== "object")
118
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
+ this.send(command, optionsOrCb || {}, cb);
120
+ }
121
+ else {
122
+ return this.send(command, optionsOrCb);
123
+ }
124
+ }
125
+ untagResource(args, optionsOrCb, cb) {
126
+ const command = new UntagResourceCommand(args);
127
+ if (typeof optionsOrCb === "function") {
128
+ this.send(command, optionsOrCb);
129
+ }
130
+ else if (typeof cb === "function") {
131
+ if (typeof optionsOrCb !== "object")
132
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
+ this.send(command, optionsOrCb || {}, cb);
134
+ }
135
+ else {
136
+ return this.send(command, optionsOrCb);
137
+ }
138
+ }
139
+ updatePipe(args, optionsOrCb, cb) {
140
+ const command = new UpdatePipeCommand(args);
141
+ if (typeof optionsOrCb === "function") {
142
+ this.send(command, optionsOrCb);
143
+ }
144
+ else if (typeof cb === "function") {
145
+ if (typeof optionsOrCb !== "object")
146
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
+ this.send(command, optionsOrCb || {}, cb);
148
+ }
149
+ else {
150
+ return this.send(command, optionsOrCb);
151
+ }
152
+ }
153
+ }
@@ -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 PipesClient 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 { CreatePipeRequestFilterSensitiveLog, CreatePipeResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreatePipeCommand, serializeAws_restJson1CreatePipeCommand, } from "../protocols/Aws_restJson1";
6
+ export class CreatePipeCommand 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, CreatePipeCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "PipesClient";
25
+ const commandName = "CreatePipeCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: CreatePipeRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: CreatePipeResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1CreatePipeCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1CreatePipeCommand(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 { DeletePipeRequestFilterSensitiveLog, DeletePipeResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeletePipeCommand, serializeAws_restJson1DeletePipeCommand, } from "../protocols/Aws_restJson1";
6
+ export class DeletePipeCommand 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, DeletePipeCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "PipesClient";
25
+ const commandName = "DeletePipeCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DeletePipeRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DeletePipeResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1DeletePipeCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1DeletePipeCommand(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 { DescribePipeRequestFilterSensitiveLog, DescribePipeResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribePipeCommand, serializeAws_restJson1DescribePipeCommand, } from "../protocols/Aws_restJson1";
6
+ export class DescribePipeCommand 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, DescribePipeCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "PipesClient";
25
+ const commandName = "DescribePipeCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DescribePipeRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DescribePipeResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1DescribePipeCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1DescribePipeCommand(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 { ListPipesRequestFilterSensitiveLog, ListPipesResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListPipesCommand, serializeAws_restJson1ListPipesCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListPipesCommand 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, ListPipesCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "PipesClient";
25
+ const commandName = "ListPipesCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListPipesRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListPipesResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListPipesCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListPipesCommand(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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListTagsForResourceCommand 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, ListTagsForResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "PipesClient";
25
+ const commandName = "ListTagsForResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListTagsForResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListTagsForResourceCommand(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 { StartPipeRequestFilterSensitiveLog, StartPipeResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1StartPipeCommand, serializeAws_restJson1StartPipeCommand, } from "../protocols/Aws_restJson1";
6
+ export class StartPipeCommand 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, StartPipeCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "PipesClient";
25
+ const commandName = "StartPipeCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: StartPipeRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: StartPipeResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1StartPipeCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1StartPipeCommand(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 { StopPipeRequestFilterSensitiveLog, StopPipeResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1StopPipeCommand, serializeAws_restJson1StopPipeCommand, } from "../protocols/Aws_restJson1";
6
+ export class StopPipeCommand 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, StopPipeCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "PipesClient";
25
+ const commandName = "StopPipeCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: StopPipeRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: StopPipeResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1StopPipeCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1StopPipeCommand(output, context);
41
+ }
42
+ }