@aws-sdk/client-kafkaconnect 3.33.0 → 3.36.1

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 (194) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/KafkaConnect.js +1 -5
  3. package/{dist/cjs → dist-cjs}/KafkaConnectClient.js +8 -17
  4. package/{dist/cjs → dist-cjs}/commands/CreateConnectorCommand.js +2 -27
  5. package/{dist/cjs → dist-cjs}/commands/CreateCustomPluginCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/CreateWorkerConfigurationCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/DeleteConnectorCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/commands/DescribeConnectorCommand.js +2 -27
  9. package/{dist/cjs → dist-cjs}/commands/DescribeCustomPluginCommand.js +2 -27
  10. package/{dist/cjs → dist-cjs}/commands/DescribeWorkerConfigurationCommand.js +2 -27
  11. package/{dist/cjs → dist-cjs}/commands/ListConnectorsCommand.js +2 -27
  12. package/{dist/cjs → dist-cjs}/commands/ListCustomPluginsCommand.js +2 -27
  13. package/{dist/cjs → dist-cjs}/commands/ListWorkerConfigurationsCommand.js +2 -27
  14. package/{dist/cjs → dist-cjs}/commands/UpdateConnectorCommand.js +2 -27
  15. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  16. package/{dist/cjs → dist-cjs}/index.js +0 -1
  17. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  18. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -247
  19. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  20. package/{dist/cjs → dist-cjs}/pagination/ListConnectorsPaginator.js +1 -12
  21. package/{dist/cjs → dist-cjs}/pagination/ListCustomPluginsPaginator.js +1 -12
  22. package/{dist/cjs → dist-cjs}/pagination/ListWorkerConfigurationsPaginator.js +1 -12
  23. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +6 -12
  24. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  25. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  26. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  27. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  28. package/{dist/es → dist-es}/KafkaConnect.js +2 -6
  29. package/{dist/es → dist-es}/KafkaConnectClient.js +2 -11
  30. package/{dist/es → dist-es}/commands/CreateConnectorCommand.js +4 -30
  31. package/{dist/es → dist-es}/commands/CreateCustomPluginCommand.js +4 -30
  32. package/{dist/es → dist-es}/commands/CreateWorkerConfigurationCommand.js +4 -30
  33. package/{dist/es → dist-es}/commands/DeleteConnectorCommand.js +4 -30
  34. package/{dist/es → dist-es}/commands/DescribeConnectorCommand.js +4 -30
  35. package/{dist/es → dist-es}/commands/DescribeCustomPluginCommand.js +4 -30
  36. package/{dist/es → dist-es}/commands/DescribeWorkerConfigurationCommand.js +4 -30
  37. package/{dist/es → dist-es}/commands/ListConnectorsCommand.js +4 -30
  38. package/{dist/es → dist-es}/commands/ListCustomPluginsCommand.js +4 -30
  39. package/{dist/es → dist-es}/commands/ListWorkerConfigurationsCommand.js +4 -30
  40. package/{dist/es → dist-es}/commands/UpdateConnectorCommand.js +4 -30
  41. package/{dist/es → dist-es}/endpoints.js +1 -2
  42. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  43. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  44. package/{dist/es → dist-es}/models/models_0.js +0 -247
  45. package/dist-es/pagination/Interfaces.js +1 -0
  46. package/{dist/es → dist-es}/pagination/ListConnectorsPaginator.js +17 -30
  47. package/{dist/es → dist-es}/pagination/ListCustomPluginsPaginator.js +17 -30
  48. package/{dist/es → dist-es}/pagination/ListWorkerConfigurationsPaginator.js +17 -30
  49. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +427 -433
  50. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  51. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  52. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  53. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  54. package/{dist/types → dist-types}/KafkaConnect.d.ts +2 -2
  55. package/{dist/types → dist-types}/KafkaConnectClient.d.ts +8 -8
  56. package/{dist/types → dist-types}/commands/CreateConnectorCommand.d.ts +2 -2
  57. package/{dist/types → dist-types}/commands/CreateCustomPluginCommand.d.ts +2 -2
  58. package/{dist/types → dist-types}/commands/CreateWorkerConfigurationCommand.d.ts +2 -2
  59. package/{dist/types → dist-types}/commands/DeleteConnectorCommand.d.ts +2 -2
  60. package/{dist/types → dist-types}/commands/DescribeConnectorCommand.d.ts +2 -2
  61. package/{dist/types → dist-types}/commands/DescribeCustomPluginCommand.d.ts +2 -2
  62. package/{dist/types → dist-types}/commands/DescribeWorkerConfigurationCommand.d.ts +2 -2
  63. package/{dist/types → dist-types}/commands/ListConnectorsCommand.d.ts +2 -2
  64. package/{dist/types → dist-types}/commands/ListCustomPluginsCommand.d.ts +2 -2
  65. package/{dist/types → dist-types}/commands/ListWorkerConfigurationsCommand.d.ts +2 -2
  66. package/{dist/types → dist-types}/commands/UpdateConnectorCommand.d.ts +2 -2
  67. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  68. package/{index.ts → dist-types/index.d.ts} +0 -0
  69. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  70. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  71. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  72. package/{dist/types → dist-types}/pagination/ListConnectorsPaginator.d.ts +1 -1
  73. package/{dist/types → dist-types}/pagination/ListCustomPluginsPaginator.d.ts +1 -1
  74. package/{dist/types → dist-types}/pagination/ListWorkerConfigurationsPaginator.d.ts +1 -1
  75. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  76. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  77. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  78. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  79. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  80. package/{dist/types → dist-types}/ts3.4/KafkaConnect.d.ts +14 -38
  81. package/{dist/types → dist-types}/ts3.4/KafkaConnectClient.d.ts +32 -97
  82. package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +17 -0
  83. package/{dist/types → dist-types}/ts3.4/commands/CreateCustomPluginCommand.d.ts +4 -22
  84. package/{dist/types → dist-types}/ts3.4/commands/CreateWorkerConfigurationCommand.d.ts +4 -22
  85. package/{dist/types → dist-types}/ts3.4/commands/DeleteConnectorCommand.d.ts +4 -22
  86. package/{dist/types → dist-types}/ts3.4/commands/DescribeConnectorCommand.d.ts +4 -22
  87. package/{dist/types → dist-types}/ts3.4/commands/DescribeCustomPluginCommand.d.ts +4 -22
  88. package/{dist/types → dist-types}/ts3.4/commands/DescribeWorkerConfigurationCommand.d.ts +4 -22
  89. package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/ListCustomPluginsCommand.d.ts +17 -0
  91. package/{dist/types → dist-types}/ts3.4/commands/ListWorkerConfigurationsCommand.d.ts +4 -22
  92. package/{dist/types → dist-types}/ts3.4/commands/UpdateConnectorCommand.d.ts +4 -22
  93. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  94. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  95. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  96. package/dist-types/ts3.4/models/models_0.d.ts +1028 -0
  97. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  98. package/{dist/types → dist-types}/ts3.4/pagination/ListConnectorsPaginator.d.ts +1 -1
  99. package/{dist/types → dist-types}/ts3.4/pagination/ListCustomPluginsPaginator.d.ts +1 -1
  100. package/{dist/types → dist-types}/ts3.4/pagination/ListWorkerConfigurationsPaginator.d.ts +1 -1
  101. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  102. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  103. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  104. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  105. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  106. package/package.json +52 -49
  107. package/KafkaConnect.ts +0 -414
  108. package/KafkaConnectClient.ts +0 -280
  109. package/commands/CreateConnectorCommand.ts +0 -94
  110. package/commands/CreateCustomPluginCommand.ts +0 -94
  111. package/commands/CreateWorkerConfigurationCommand.ts +0 -97
  112. package/commands/DeleteConnectorCommand.ts +0 -94
  113. package/commands/DescribeConnectorCommand.ts +0 -94
  114. package/commands/DescribeCustomPluginCommand.ts +0 -94
  115. package/commands/DescribeWorkerConfigurationCommand.ts +0 -99
  116. package/commands/ListConnectorsCommand.ts +0 -94
  117. package/commands/ListCustomPluginsCommand.ts +0 -94
  118. package/commands/ListWorkerConfigurationsCommand.ts +0 -94
  119. package/commands/UpdateConnectorCommand.ts +0 -94
  120. package/dist/cjs/KafkaConnect.js.map +0 -1
  121. package/dist/cjs/KafkaConnectClient.js.map +0 -1
  122. package/dist/cjs/commands/CreateConnectorCommand.js.map +0 -1
  123. package/dist/cjs/commands/CreateCustomPluginCommand.js.map +0 -1
  124. package/dist/cjs/commands/CreateWorkerConfigurationCommand.js.map +0 -1
  125. package/dist/cjs/commands/DeleteConnectorCommand.js.map +0 -1
  126. package/dist/cjs/commands/DescribeConnectorCommand.js.map +0 -1
  127. package/dist/cjs/commands/DescribeCustomPluginCommand.js.map +0 -1
  128. package/dist/cjs/commands/DescribeWorkerConfigurationCommand.js.map +0 -1
  129. package/dist/cjs/commands/ListConnectorsCommand.js.map +0 -1
  130. package/dist/cjs/commands/ListCustomPluginsCommand.js.map +0 -1
  131. package/dist/cjs/commands/ListWorkerConfigurationsCommand.js.map +0 -1
  132. package/dist/cjs/commands/UpdateConnectorCommand.js.map +0 -1
  133. package/dist/cjs/endpoints.js.map +0 -1
  134. package/dist/cjs/index.js.map +0 -1
  135. package/dist/cjs/models/index.js.map +0 -1
  136. package/dist/cjs/models/models_0.js.map +0 -1
  137. package/dist/cjs/package.json +0 -91
  138. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  139. package/dist/cjs/pagination/ListConnectorsPaginator.js.map +0 -1
  140. package/dist/cjs/pagination/ListCustomPluginsPaginator.js.map +0 -1
  141. package/dist/cjs/pagination/ListWorkerConfigurationsPaginator.js.map +0 -1
  142. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  143. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  144. package/dist/cjs/runtimeConfig.js.map +0 -1
  145. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  146. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  147. package/dist/es/KafkaConnect.js.map +0 -1
  148. package/dist/es/KafkaConnectClient.js.map +0 -1
  149. package/dist/es/commands/CreateConnectorCommand.js.map +0 -1
  150. package/dist/es/commands/CreateCustomPluginCommand.js.map +0 -1
  151. package/dist/es/commands/CreateWorkerConfigurationCommand.js.map +0 -1
  152. package/dist/es/commands/DeleteConnectorCommand.js.map +0 -1
  153. package/dist/es/commands/DescribeConnectorCommand.js.map +0 -1
  154. package/dist/es/commands/DescribeCustomPluginCommand.js.map +0 -1
  155. package/dist/es/commands/DescribeWorkerConfigurationCommand.js.map +0 -1
  156. package/dist/es/commands/ListConnectorsCommand.js.map +0 -1
  157. package/dist/es/commands/ListCustomPluginsCommand.js.map +0 -1
  158. package/dist/es/commands/ListWorkerConfigurationsCommand.js.map +0 -1
  159. package/dist/es/commands/UpdateConnectorCommand.js.map +0 -1
  160. package/dist/es/endpoints.js.map +0 -1
  161. package/dist/es/index.js +0 -19
  162. package/dist/es/index.js.map +0 -1
  163. package/dist/es/models/index.js +0 -2
  164. package/dist/es/models/index.js.map +0 -1
  165. package/dist/es/models/models_0.js.map +0 -1
  166. package/dist/es/package.json +0 -91
  167. package/dist/es/pagination/Interfaces.js +0 -2
  168. package/dist/es/pagination/Interfaces.js.map +0 -1
  169. package/dist/es/pagination/ListConnectorsPaginator.js.map +0 -1
  170. package/dist/es/pagination/ListCustomPluginsPaginator.js.map +0 -1
  171. package/dist/es/pagination/ListWorkerConfigurationsPaginator.js.map +0 -1
  172. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  173. package/dist/es/runtimeConfig.browser.js.map +0 -1
  174. package/dist/es/runtimeConfig.js.map +0 -1
  175. package/dist/es/runtimeConfig.native.js.map +0 -1
  176. package/dist/es/runtimeConfig.shared.js.map +0 -1
  177. package/dist/types/ts3.4/commands/CreateConnectorCommand.d.ts +0 -35
  178. package/dist/types/ts3.4/commands/ListConnectorsCommand.d.ts +0 -35
  179. package/dist/types/ts3.4/commands/ListCustomPluginsCommand.d.ts +0 -35
  180. package/dist/types/ts3.4/models/models_0.d.ts +0 -1732
  181. package/endpoints.ts +0 -57
  182. package/jest.config.js +0 -4
  183. package/models/models_0.ts +0 -2197
  184. package/pagination/Interfaces.ts +0 -7
  185. package/pagination/ListConnectorsPaginator.ts +0 -58
  186. package/pagination/ListCustomPluginsPaginator.ts +0 -58
  187. package/pagination/ListWorkerConfigurationsPaginator.ts +0 -58
  188. package/protocols/Aws_restJson1.ts +0 -2700
  189. package/runtimeConfig.browser.ts +0 -40
  190. package/runtimeConfig.native.ts +0 -16
  191. package/runtimeConfig.shared.ts +0 -16
  192. package/runtimeConfig.ts +0 -45
  193. package/tsconfig.es.json +0 -12
  194. package/tsconfig.json +0 -32
@@ -1,6 +1,6 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
1
2
  import { KafkaConnect } from "../KafkaConnect";
2
3
  import { KafkaConnectClient } from "../KafkaConnectClient";
3
- import { PaginationConfiguration } from "@aws-sdk/types";
4
4
  export interface KafkaConnectPaginationConfiguration extends PaginationConfiguration {
5
5
  client: KafkaConnect | KafkaConnectClient;
6
6
  }
@@ -1,4 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
1
2
  import { ListConnectorsCommandInput, ListConnectorsCommandOutput } from "../commands/ListConnectorsCommand";
2
3
  import { KafkaConnectPaginationConfiguration } from "./Interfaces";
3
- import { Paginator } from "@aws-sdk/types";
4
4
  export declare function paginateListConnectors(config: KafkaConnectPaginationConfiguration, input: ListConnectorsCommandInput, ...additionalArguments: any): Paginator<ListConnectorsCommandOutput>;
@@ -1,4 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
1
2
  import { ListCustomPluginsCommandInput, ListCustomPluginsCommandOutput } from "../commands/ListCustomPluginsCommand";
2
3
  import { KafkaConnectPaginationConfiguration } from "./Interfaces";
3
- import { Paginator } from "@aws-sdk/types";
4
4
  export declare function paginateListCustomPlugins(config: KafkaConnectPaginationConfiguration, input: ListCustomPluginsCommandInput, ...additionalArguments: any): Paginator<ListCustomPluginsCommandOutput>;
@@ -1,4 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
1
2
  import { ListWorkerConfigurationsCommandInput, ListWorkerConfigurationsCommandOutput } from "../commands/ListWorkerConfigurationsCommand";
2
3
  import { KafkaConnectPaginationConfiguration } from "./Interfaces";
3
- import { Paginator } from "@aws-sdk/types";
4
4
  export declare function paginateListWorkerConfigurations(config: KafkaConnectPaginationConfiguration, input: ListWorkerConfigurationsCommandInput, ...additionalArguments: any): Paginator<ListWorkerConfigurationsCommandOutput>;
@@ -1,3 +1,5 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
1
3
  import { CreateConnectorCommandInput, CreateConnectorCommandOutput } from "../commands/CreateConnectorCommand";
2
4
  import { CreateCustomPluginCommandInput, CreateCustomPluginCommandOutput } from "../commands/CreateCustomPluginCommand";
3
5
  import { CreateWorkerConfigurationCommandInput, CreateWorkerConfigurationCommandOutput } from "../commands/CreateWorkerConfigurationCommand";
@@ -9,8 +11,6 @@ import { ListConnectorsCommandInput, ListConnectorsCommandOutput } from "../comm
9
11
  import { ListCustomPluginsCommandInput, ListCustomPluginsCommandOutput } from "../commands/ListCustomPluginsCommand";
10
12
  import { ListWorkerConfigurationsCommandInput, ListWorkerConfigurationsCommandOutput } from "../commands/ListWorkerConfigurationsCommand";
11
13
  import { UpdateConnectorCommandInput, UpdateConnectorCommandOutput } from "../commands/UpdateConnectorCommand";
12
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
13
- import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
14
14
  export declare const serializeAws_restJson1CreateConnectorCommand: (input: CreateConnectorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
15
  export declare const serializeAws_restJson1CreateCustomPluginCommand: (input: CreateCustomPluginCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
16
  export declare const serializeAws_restJson1CreateWorkerConfigurationCommand: (input: CreateWorkerConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { KafkaConnectClientConfig } from "./KafkaConnectClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: KafkaConnectClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,14 +1,12 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { KafkaConnectClientConfig } from "./KafkaConnectClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: KafkaConnectClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
9
7
  base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
9
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
12
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -1,7 +1,5 @@
1
1
  import { KafkaConnectClientConfig } from "./KafkaConnectClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: KafkaConnectClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { KafkaConnectClientConfig } from "./KafkaConnectClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: KafkaConnectClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;
package/package.json CHANGED
@@ -1,64 +1,58 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kafkaconnect",
3
3
  "description": "AWS SDK for JavaScript Kafkaconnect Client for Node.js, Browser and React Native",
4
- "version": "3.33.0",
4
+ "version": "3.36.1",
5
5
  "scripts": {
6
- "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
- "build-documentation": "yarn remove-documentation && typedoc ./",
8
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
9
- "remove-definitions": "rimraf ./types",
10
- "remove-dist": "rimraf ./dist",
11
- "remove-documentation": "rimraf ./docs",
12
- "test": "jest --coverage --passWithNoTests",
6
+ "build": "yarn build:cjs && yarn build:es && yarn build:types",
13
7
  "build:cjs": "tsc -p tsconfig.json",
8
+ "build:docs": "yarn clean:docs && typedoc ./",
14
9
  "build:es": "tsc -p tsconfig.es.json",
15
- "build": "yarn build:cjs && yarn build:es"
16
- },
17
- "main": "./dist/cjs/index.js",
18
- "types": "./dist/types/index.d.ts",
19
- "module": "./dist/es/index.js",
20
- "browser": {
21
- "./runtimeConfig": "./runtimeConfig.browser"
22
- },
23
- "react-native": {
24
- "./runtimeConfig": "./runtimeConfig.native"
10
+ "build:types": "tsc -p tsconfig.types.json",
11
+ "clean": "yarn clean:dist && yarn clean:docs",
12
+ "clean:dist": "rimraf ./dist",
13
+ "clean:docs": "rimraf ./docs",
14
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
+ "test": "jest --coverage --passWithNoTests"
25
16
  },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
26
20
  "sideEffects": false,
27
21
  "dependencies": {
28
22
  "@aws-crypto/sha256-browser": "^1.1.0",
29
23
  "@aws-crypto/sha256-js": "^1.1.0",
30
- "@aws-sdk/client-sts": "3.33.0",
31
- "@aws-sdk/config-resolver": "3.33.0",
32
- "@aws-sdk/credential-provider-node": "3.33.0",
33
- "@aws-sdk/fetch-http-handler": "3.32.0",
34
- "@aws-sdk/hash-node": "3.32.0",
35
- "@aws-sdk/invalid-dependency": "3.32.0",
36
- "@aws-sdk/middleware-content-length": "3.32.0",
37
- "@aws-sdk/middleware-host-header": "3.32.0",
38
- "@aws-sdk/middleware-logger": "3.32.0",
39
- "@aws-sdk/middleware-retry": "3.32.0",
40
- "@aws-sdk/middleware-serde": "3.32.0",
41
- "@aws-sdk/middleware-signing": "3.33.0",
42
- "@aws-sdk/middleware-stack": "3.32.0",
43
- "@aws-sdk/middleware-user-agent": "3.32.0",
44
- "@aws-sdk/node-config-provider": "3.32.0",
45
- "@aws-sdk/node-http-handler": "3.32.0",
46
- "@aws-sdk/protocol-http": "3.32.0",
47
- "@aws-sdk/smithy-client": "3.32.0",
48
- "@aws-sdk/types": "3.32.0",
49
- "@aws-sdk/url-parser": "3.32.0",
50
- "@aws-sdk/util-base64-browser": "3.32.0",
51
- "@aws-sdk/util-base64-node": "3.32.0",
52
- "@aws-sdk/util-body-length-browser": "3.32.0",
53
- "@aws-sdk/util-body-length-node": "3.32.0",
54
- "@aws-sdk/util-user-agent-browser": "3.32.0",
55
- "@aws-sdk/util-user-agent-node": "3.33.0",
56
- "@aws-sdk/util-utf8-browser": "3.32.0",
57
- "@aws-sdk/util-utf8-node": "3.32.0",
24
+ "@aws-sdk/client-sts": "3.36.1",
25
+ "@aws-sdk/config-resolver": "3.36.0",
26
+ "@aws-sdk/credential-provider-node": "3.36.1",
27
+ "@aws-sdk/fetch-http-handler": "3.36.0",
28
+ "@aws-sdk/hash-node": "3.36.0",
29
+ "@aws-sdk/invalid-dependency": "3.36.0",
30
+ "@aws-sdk/middleware-content-length": "3.36.0",
31
+ "@aws-sdk/middleware-host-header": "3.36.0",
32
+ "@aws-sdk/middleware-logger": "3.36.0",
33
+ "@aws-sdk/middleware-retry": "3.36.0",
34
+ "@aws-sdk/middleware-serde": "3.36.0",
35
+ "@aws-sdk/middleware-signing": "3.36.0",
36
+ "@aws-sdk/middleware-stack": "3.36.0",
37
+ "@aws-sdk/middleware-user-agent": "3.36.0",
38
+ "@aws-sdk/node-config-provider": "3.36.0",
39
+ "@aws-sdk/node-http-handler": "3.36.0",
40
+ "@aws-sdk/protocol-http": "3.36.0",
41
+ "@aws-sdk/smithy-client": "3.36.0",
42
+ "@aws-sdk/types": "3.36.0",
43
+ "@aws-sdk/url-parser": "3.36.0",
44
+ "@aws-sdk/util-base64-browser": "3.36.0",
45
+ "@aws-sdk/util-base64-node": "3.36.0",
46
+ "@aws-sdk/util-body-length-browser": "3.36.0",
47
+ "@aws-sdk/util-body-length-node": "3.36.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.36.0",
49
+ "@aws-sdk/util-user-agent-node": "3.36.0",
50
+ "@aws-sdk/util-utf8-browser": "3.36.0",
51
+ "@aws-sdk/util-utf8-node": "3.36.0",
58
52
  "tslib": "^2.3.0"
59
53
  },
60
54
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.32.0",
55
+ "@aws-sdk/client-documentation-generator": "3.36.0",
62
56
  "@types/node": "^12.7.5",
63
57
  "downlevel-dts": "0.7.0",
64
58
  "jest": "^26.1.0",
@@ -72,16 +66,25 @@
72
66
  },
73
67
  "typesVersions": {
74
68
  "<4.0": {
75
- "dist/types/*": [
76
- "dist/types/ts3.4/*"
69
+ "dist-types/*": [
70
+ "dist-types/ts3.4/*"
77
71
  ]
78
72
  }
79
73
  },
74
+ "files": [
75
+ "dist-*"
76
+ ],
80
77
  "author": {
81
78
  "name": "AWS SDK for JavaScript Team",
82
79
  "url": "https://aws.amazon.com/javascript/"
83
80
  },
84
81
  "license": "Apache-2.0",
82
+ "browser": {
83
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
84
+ },
85
+ "react-native": {
86
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
87
+ },
85
88
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kafkaconnect",
86
89
  "repository": {
87
90
  "type": "git",
package/KafkaConnect.ts DELETED
@@ -1,414 +0,0 @@
1
- import { KafkaConnectClient } from "./KafkaConnectClient";
2
- import {
3
- CreateConnectorCommand,
4
- CreateConnectorCommandInput,
5
- CreateConnectorCommandOutput,
6
- } from "./commands/CreateConnectorCommand";
7
- import {
8
- CreateCustomPluginCommand,
9
- CreateCustomPluginCommandInput,
10
- CreateCustomPluginCommandOutput,
11
- } from "./commands/CreateCustomPluginCommand";
12
- import {
13
- CreateWorkerConfigurationCommand,
14
- CreateWorkerConfigurationCommandInput,
15
- CreateWorkerConfigurationCommandOutput,
16
- } from "./commands/CreateWorkerConfigurationCommand";
17
- import {
18
- DeleteConnectorCommand,
19
- DeleteConnectorCommandInput,
20
- DeleteConnectorCommandOutput,
21
- } from "./commands/DeleteConnectorCommand";
22
- import {
23
- DescribeConnectorCommand,
24
- DescribeConnectorCommandInput,
25
- DescribeConnectorCommandOutput,
26
- } from "./commands/DescribeConnectorCommand";
27
- import {
28
- DescribeCustomPluginCommand,
29
- DescribeCustomPluginCommandInput,
30
- DescribeCustomPluginCommandOutput,
31
- } from "./commands/DescribeCustomPluginCommand";
32
- import {
33
- DescribeWorkerConfigurationCommand,
34
- DescribeWorkerConfigurationCommandInput,
35
- DescribeWorkerConfigurationCommandOutput,
36
- } from "./commands/DescribeWorkerConfigurationCommand";
37
- import {
38
- ListConnectorsCommand,
39
- ListConnectorsCommandInput,
40
- ListConnectorsCommandOutput,
41
- } from "./commands/ListConnectorsCommand";
42
- import {
43
- ListCustomPluginsCommand,
44
- ListCustomPluginsCommandInput,
45
- ListCustomPluginsCommandOutput,
46
- } from "./commands/ListCustomPluginsCommand";
47
- import {
48
- ListWorkerConfigurationsCommand,
49
- ListWorkerConfigurationsCommandInput,
50
- ListWorkerConfigurationsCommandOutput,
51
- } from "./commands/ListWorkerConfigurationsCommand";
52
- import {
53
- UpdateConnectorCommand,
54
- UpdateConnectorCommandInput,
55
- UpdateConnectorCommandOutput,
56
- } from "./commands/UpdateConnectorCommand";
57
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
58
-
59
- /**
60
- * <p/>
61
- */
62
- export class KafkaConnect extends KafkaConnectClient {
63
- /**
64
- * <p>Creates a connector using the specified properties.</p>
65
- */
66
- public createConnector(
67
- args: CreateConnectorCommandInput,
68
- options?: __HttpHandlerOptions
69
- ): Promise<CreateConnectorCommandOutput>;
70
- public createConnector(
71
- args: CreateConnectorCommandInput,
72
- cb: (err: any, data?: CreateConnectorCommandOutput) => void
73
- ): void;
74
- public createConnector(
75
- args: CreateConnectorCommandInput,
76
- options: __HttpHandlerOptions,
77
- cb: (err: any, data?: CreateConnectorCommandOutput) => void
78
- ): void;
79
- public createConnector(
80
- args: CreateConnectorCommandInput,
81
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateConnectorCommandOutput) => void),
82
- cb?: (err: any, data?: CreateConnectorCommandOutput) => void
83
- ): Promise<CreateConnectorCommandOutput> | void {
84
- const command = new CreateConnectorCommand(args);
85
- if (typeof optionsOrCb === "function") {
86
- this.send(command, optionsOrCb);
87
- } else if (typeof cb === "function") {
88
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
89
- this.send(command, optionsOrCb || {}, cb);
90
- } else {
91
- return this.send(command, optionsOrCb);
92
- }
93
- }
94
-
95
- /**
96
- * <p>Creates a custom plugin using the specified properties.</p>
97
- */
98
- public createCustomPlugin(
99
- args: CreateCustomPluginCommandInput,
100
- options?: __HttpHandlerOptions
101
- ): Promise<CreateCustomPluginCommandOutput>;
102
- public createCustomPlugin(
103
- args: CreateCustomPluginCommandInput,
104
- cb: (err: any, data?: CreateCustomPluginCommandOutput) => void
105
- ): void;
106
- public createCustomPlugin(
107
- args: CreateCustomPluginCommandInput,
108
- options: __HttpHandlerOptions,
109
- cb: (err: any, data?: CreateCustomPluginCommandOutput) => void
110
- ): void;
111
- public createCustomPlugin(
112
- args: CreateCustomPluginCommandInput,
113
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateCustomPluginCommandOutput) => void),
114
- cb?: (err: any, data?: CreateCustomPluginCommandOutput) => void
115
- ): Promise<CreateCustomPluginCommandOutput> | void {
116
- const command = new CreateCustomPluginCommand(args);
117
- if (typeof optionsOrCb === "function") {
118
- this.send(command, optionsOrCb);
119
- } else if (typeof cb === "function") {
120
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
- this.send(command, optionsOrCb || {}, cb);
122
- } else {
123
- return this.send(command, optionsOrCb);
124
- }
125
- }
126
-
127
- /**
128
- * <p>Creates a worker configuration using the specified properties.</p>
129
- */
130
- public createWorkerConfiguration(
131
- args: CreateWorkerConfigurationCommandInput,
132
- options?: __HttpHandlerOptions
133
- ): Promise<CreateWorkerConfigurationCommandOutput>;
134
- public createWorkerConfiguration(
135
- args: CreateWorkerConfigurationCommandInput,
136
- cb: (err: any, data?: CreateWorkerConfigurationCommandOutput) => void
137
- ): void;
138
- public createWorkerConfiguration(
139
- args: CreateWorkerConfigurationCommandInput,
140
- options: __HttpHandlerOptions,
141
- cb: (err: any, data?: CreateWorkerConfigurationCommandOutput) => void
142
- ): void;
143
- public createWorkerConfiguration(
144
- args: CreateWorkerConfigurationCommandInput,
145
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateWorkerConfigurationCommandOutput) => void),
146
- cb?: (err: any, data?: CreateWorkerConfigurationCommandOutput) => void
147
- ): Promise<CreateWorkerConfigurationCommandOutput> | void {
148
- const command = new CreateWorkerConfigurationCommand(args);
149
- if (typeof optionsOrCb === "function") {
150
- this.send(command, optionsOrCb);
151
- } else if (typeof cb === "function") {
152
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
- this.send(command, optionsOrCb || {}, cb);
154
- } else {
155
- return this.send(command, optionsOrCb);
156
- }
157
- }
158
-
159
- /**
160
- * <p>Deletes the specified connector.</p>
161
- */
162
- public deleteConnector(
163
- args: DeleteConnectorCommandInput,
164
- options?: __HttpHandlerOptions
165
- ): Promise<DeleteConnectorCommandOutput>;
166
- public deleteConnector(
167
- args: DeleteConnectorCommandInput,
168
- cb: (err: any, data?: DeleteConnectorCommandOutput) => void
169
- ): void;
170
- public deleteConnector(
171
- args: DeleteConnectorCommandInput,
172
- options: __HttpHandlerOptions,
173
- cb: (err: any, data?: DeleteConnectorCommandOutput) => void
174
- ): void;
175
- public deleteConnector(
176
- args: DeleteConnectorCommandInput,
177
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteConnectorCommandOutput) => void),
178
- cb?: (err: any, data?: DeleteConnectorCommandOutput) => void
179
- ): Promise<DeleteConnectorCommandOutput> | void {
180
- const command = new DeleteConnectorCommand(args);
181
- if (typeof optionsOrCb === "function") {
182
- this.send(command, optionsOrCb);
183
- } else if (typeof cb === "function") {
184
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
- this.send(command, optionsOrCb || {}, cb);
186
- } else {
187
- return this.send(command, optionsOrCb);
188
- }
189
- }
190
-
191
- /**
192
- * <p>Returns summary information about the connector.</p>
193
- */
194
- public describeConnector(
195
- args: DescribeConnectorCommandInput,
196
- options?: __HttpHandlerOptions
197
- ): Promise<DescribeConnectorCommandOutput>;
198
- public describeConnector(
199
- args: DescribeConnectorCommandInput,
200
- cb: (err: any, data?: DescribeConnectorCommandOutput) => void
201
- ): void;
202
- public describeConnector(
203
- args: DescribeConnectorCommandInput,
204
- options: __HttpHandlerOptions,
205
- cb: (err: any, data?: DescribeConnectorCommandOutput) => void
206
- ): void;
207
- public describeConnector(
208
- args: DescribeConnectorCommandInput,
209
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeConnectorCommandOutput) => void),
210
- cb?: (err: any, data?: DescribeConnectorCommandOutput) => void
211
- ): Promise<DescribeConnectorCommandOutput> | void {
212
- const command = new DescribeConnectorCommand(args);
213
- if (typeof optionsOrCb === "function") {
214
- this.send(command, optionsOrCb);
215
- } else if (typeof cb === "function") {
216
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
- this.send(command, optionsOrCb || {}, cb);
218
- } else {
219
- return this.send(command, optionsOrCb);
220
- }
221
- }
222
-
223
- /**
224
- * <p>A summary description of the custom plugin.</p>
225
- */
226
- public describeCustomPlugin(
227
- args: DescribeCustomPluginCommandInput,
228
- options?: __HttpHandlerOptions
229
- ): Promise<DescribeCustomPluginCommandOutput>;
230
- public describeCustomPlugin(
231
- args: DescribeCustomPluginCommandInput,
232
- cb: (err: any, data?: DescribeCustomPluginCommandOutput) => void
233
- ): void;
234
- public describeCustomPlugin(
235
- args: DescribeCustomPluginCommandInput,
236
- options: __HttpHandlerOptions,
237
- cb: (err: any, data?: DescribeCustomPluginCommandOutput) => void
238
- ): void;
239
- public describeCustomPlugin(
240
- args: DescribeCustomPluginCommandInput,
241
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeCustomPluginCommandOutput) => void),
242
- cb?: (err: any, data?: DescribeCustomPluginCommandOutput) => void
243
- ): Promise<DescribeCustomPluginCommandOutput> | void {
244
- const command = new DescribeCustomPluginCommand(args);
245
- if (typeof optionsOrCb === "function") {
246
- this.send(command, optionsOrCb);
247
- } else if (typeof cb === "function") {
248
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
249
- this.send(command, optionsOrCb || {}, cb);
250
- } else {
251
- return this.send(command, optionsOrCb);
252
- }
253
- }
254
-
255
- /**
256
- * <p>Returns information about a worker configuration.</p>
257
- */
258
- public describeWorkerConfiguration(
259
- args: DescribeWorkerConfigurationCommandInput,
260
- options?: __HttpHandlerOptions
261
- ): Promise<DescribeWorkerConfigurationCommandOutput>;
262
- public describeWorkerConfiguration(
263
- args: DescribeWorkerConfigurationCommandInput,
264
- cb: (err: any, data?: DescribeWorkerConfigurationCommandOutput) => void
265
- ): void;
266
- public describeWorkerConfiguration(
267
- args: DescribeWorkerConfigurationCommandInput,
268
- options: __HttpHandlerOptions,
269
- cb: (err: any, data?: DescribeWorkerConfigurationCommandOutput) => void
270
- ): void;
271
- public describeWorkerConfiguration(
272
- args: DescribeWorkerConfigurationCommandInput,
273
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeWorkerConfigurationCommandOutput) => void),
274
- cb?: (err: any, data?: DescribeWorkerConfigurationCommandOutput) => void
275
- ): Promise<DescribeWorkerConfigurationCommandOutput> | void {
276
- const command = new DescribeWorkerConfigurationCommand(args);
277
- if (typeof optionsOrCb === "function") {
278
- this.send(command, optionsOrCb);
279
- } else if (typeof cb === "function") {
280
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
281
- this.send(command, optionsOrCb || {}, cb);
282
- } else {
283
- return this.send(command, optionsOrCb);
284
- }
285
- }
286
-
287
- /**
288
- * <p>Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.</p>
289
- */
290
- public listConnectors(
291
- args: ListConnectorsCommandInput,
292
- options?: __HttpHandlerOptions
293
- ): Promise<ListConnectorsCommandOutput>;
294
- public listConnectors(
295
- args: ListConnectorsCommandInput,
296
- cb: (err: any, data?: ListConnectorsCommandOutput) => void
297
- ): void;
298
- public listConnectors(
299
- args: ListConnectorsCommandInput,
300
- options: __HttpHandlerOptions,
301
- cb: (err: any, data?: ListConnectorsCommandOutput) => void
302
- ): void;
303
- public listConnectors(
304
- args: ListConnectorsCommandInput,
305
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListConnectorsCommandOutput) => void),
306
- cb?: (err: any, data?: ListConnectorsCommandOutput) => void
307
- ): Promise<ListConnectorsCommandOutput> | void {
308
- const command = new ListConnectorsCommand(args);
309
- if (typeof optionsOrCb === "function") {
310
- this.send(command, optionsOrCb);
311
- } else if (typeof cb === "function") {
312
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
313
- this.send(command, optionsOrCb || {}, cb);
314
- } else {
315
- return this.send(command, optionsOrCb);
316
- }
317
- }
318
-
319
- /**
320
- * <p>Returns a list of all of the custom plugins in this account and Region.</p>
321
- */
322
- public listCustomPlugins(
323
- args: ListCustomPluginsCommandInput,
324
- options?: __HttpHandlerOptions
325
- ): Promise<ListCustomPluginsCommandOutput>;
326
- public listCustomPlugins(
327
- args: ListCustomPluginsCommandInput,
328
- cb: (err: any, data?: ListCustomPluginsCommandOutput) => void
329
- ): void;
330
- public listCustomPlugins(
331
- args: ListCustomPluginsCommandInput,
332
- options: __HttpHandlerOptions,
333
- cb: (err: any, data?: ListCustomPluginsCommandOutput) => void
334
- ): void;
335
- public listCustomPlugins(
336
- args: ListCustomPluginsCommandInput,
337
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListCustomPluginsCommandOutput) => void),
338
- cb?: (err: any, data?: ListCustomPluginsCommandOutput) => void
339
- ): Promise<ListCustomPluginsCommandOutput> | void {
340
- const command = new ListCustomPluginsCommand(args);
341
- if (typeof optionsOrCb === "function") {
342
- this.send(command, optionsOrCb);
343
- } else if (typeof cb === "function") {
344
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
- this.send(command, optionsOrCb || {}, cb);
346
- } else {
347
- return this.send(command, optionsOrCb);
348
- }
349
- }
350
-
351
- /**
352
- * <p>Returns a list of all of the worker configurations in this account and Region.</p>
353
- */
354
- public listWorkerConfigurations(
355
- args: ListWorkerConfigurationsCommandInput,
356
- options?: __HttpHandlerOptions
357
- ): Promise<ListWorkerConfigurationsCommandOutput>;
358
- public listWorkerConfigurations(
359
- args: ListWorkerConfigurationsCommandInput,
360
- cb: (err: any, data?: ListWorkerConfigurationsCommandOutput) => void
361
- ): void;
362
- public listWorkerConfigurations(
363
- args: ListWorkerConfigurationsCommandInput,
364
- options: __HttpHandlerOptions,
365
- cb: (err: any, data?: ListWorkerConfigurationsCommandOutput) => void
366
- ): void;
367
- public listWorkerConfigurations(
368
- args: ListWorkerConfigurationsCommandInput,
369
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListWorkerConfigurationsCommandOutput) => void),
370
- cb?: (err: any, data?: ListWorkerConfigurationsCommandOutput) => void
371
- ): Promise<ListWorkerConfigurationsCommandOutput> | void {
372
- const command = new ListWorkerConfigurationsCommand(args);
373
- if (typeof optionsOrCb === "function") {
374
- this.send(command, optionsOrCb);
375
- } else if (typeof cb === "function") {
376
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
377
- this.send(command, optionsOrCb || {}, cb);
378
- } else {
379
- return this.send(command, optionsOrCb);
380
- }
381
- }
382
-
383
- /**
384
- * <p>Updates the specified connector.</p>
385
- */
386
- public updateConnector(
387
- args: UpdateConnectorCommandInput,
388
- options?: __HttpHandlerOptions
389
- ): Promise<UpdateConnectorCommandOutput>;
390
- public updateConnector(
391
- args: UpdateConnectorCommandInput,
392
- cb: (err: any, data?: UpdateConnectorCommandOutput) => void
393
- ): void;
394
- public updateConnector(
395
- args: UpdateConnectorCommandInput,
396
- options: __HttpHandlerOptions,
397
- cb: (err: any, data?: UpdateConnectorCommandOutput) => void
398
- ): void;
399
- public updateConnector(
400
- args: UpdateConnectorCommandInput,
401
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateConnectorCommandOutput) => void),
402
- cb?: (err: any, data?: UpdateConnectorCommandOutput) => void
403
- ): Promise<UpdateConnectorCommandOutput> | void {
404
- const command = new UpdateConnectorCommand(args);
405
- if (typeof optionsOrCb === "function") {
406
- this.send(command, optionsOrCb);
407
- } else if (typeof cb === "function") {
408
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
409
- this.send(command, optionsOrCb || {}, cb);
410
- } else {
411
- return this.send(command, optionsOrCb);
412
- }
413
- }
414
- }