@aws-sdk/client-sagemaker-a2i-runtime 3.315.0 → 3.319.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.
@@ -1,82 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SageMakerA2IRuntime = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const DeleteHumanLoopCommand_1 = require("./commands/DeleteHumanLoopCommand");
5
6
  const DescribeHumanLoopCommand_1 = require("./commands/DescribeHumanLoopCommand");
6
7
  const ListHumanLoopsCommand_1 = require("./commands/ListHumanLoopsCommand");
7
8
  const StartHumanLoopCommand_1 = require("./commands/StartHumanLoopCommand");
8
9
  const StopHumanLoopCommand_1 = require("./commands/StopHumanLoopCommand");
9
10
  const SageMakerA2IRuntimeClient_1 = require("./SageMakerA2IRuntimeClient");
11
+ const commands = {
12
+ DeleteHumanLoopCommand: DeleteHumanLoopCommand_1.DeleteHumanLoopCommand,
13
+ DescribeHumanLoopCommand: DescribeHumanLoopCommand_1.DescribeHumanLoopCommand,
14
+ ListHumanLoopsCommand: ListHumanLoopsCommand_1.ListHumanLoopsCommand,
15
+ StartHumanLoopCommand: StartHumanLoopCommand_1.StartHumanLoopCommand,
16
+ StopHumanLoopCommand: StopHumanLoopCommand_1.StopHumanLoopCommand,
17
+ };
10
18
  class SageMakerA2IRuntime extends SageMakerA2IRuntimeClient_1.SageMakerA2IRuntimeClient {
11
- deleteHumanLoop(args, optionsOrCb, cb) {
12
- const command = new DeleteHumanLoopCommand_1.DeleteHumanLoopCommand(args);
13
- if (typeof optionsOrCb === "function") {
14
- this.send(command, optionsOrCb);
15
- }
16
- else if (typeof cb === "function") {
17
- if (typeof optionsOrCb !== "object")
18
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
19
- this.send(command, optionsOrCb || {}, cb);
20
- }
21
- else {
22
- return this.send(command, optionsOrCb);
23
- }
24
- }
25
- describeHumanLoop(args, optionsOrCb, cb) {
26
- const command = new DescribeHumanLoopCommand_1.DescribeHumanLoopCommand(args);
27
- if (typeof optionsOrCb === "function") {
28
- this.send(command, optionsOrCb);
29
- }
30
- else if (typeof cb === "function") {
31
- if (typeof optionsOrCb !== "object")
32
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
33
- this.send(command, optionsOrCb || {}, cb);
34
- }
35
- else {
36
- return this.send(command, optionsOrCb);
37
- }
38
- }
39
- listHumanLoops(args, optionsOrCb, cb) {
40
- const command = new ListHumanLoopsCommand_1.ListHumanLoopsCommand(args);
41
- if (typeof optionsOrCb === "function") {
42
- this.send(command, optionsOrCb);
43
- }
44
- else if (typeof cb === "function") {
45
- if (typeof optionsOrCb !== "object")
46
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
47
- this.send(command, optionsOrCb || {}, cb);
48
- }
49
- else {
50
- return this.send(command, optionsOrCb);
51
- }
52
- }
53
- startHumanLoop(args, optionsOrCb, cb) {
54
- const command = new StartHumanLoopCommand_1.StartHumanLoopCommand(args);
55
- if (typeof optionsOrCb === "function") {
56
- this.send(command, optionsOrCb);
57
- }
58
- else if (typeof cb === "function") {
59
- if (typeof optionsOrCb !== "object")
60
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
61
- this.send(command, optionsOrCb || {}, cb);
62
- }
63
- else {
64
- return this.send(command, optionsOrCb);
65
- }
66
- }
67
- stopHumanLoop(args, optionsOrCb, cb) {
68
- const command = new StopHumanLoopCommand_1.StopHumanLoopCommand(args);
69
- if (typeof optionsOrCb === "function") {
70
- this.send(command, optionsOrCb);
71
- }
72
- else if (typeof cb === "function") {
73
- if (typeof optionsOrCb !== "object")
74
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
75
- this.send(command, optionsOrCb || {}, cb);
76
- }
77
- else {
78
- return this.send(command, optionsOrCb);
79
- }
80
- }
81
19
  }
82
20
  exports.SageMakerA2IRuntime = SageMakerA2IRuntime;
21
+ (0, smithy_client_1.createAggregatedClient)(commands, SageMakerA2IRuntime);
@@ -1,78 +1,17 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { DeleteHumanLoopCommand, } from "./commands/DeleteHumanLoopCommand";
2
3
  import { DescribeHumanLoopCommand, } from "./commands/DescribeHumanLoopCommand";
3
4
  import { ListHumanLoopsCommand, } from "./commands/ListHumanLoopsCommand";
4
5
  import { StartHumanLoopCommand, } from "./commands/StartHumanLoopCommand";
5
6
  import { StopHumanLoopCommand, } from "./commands/StopHumanLoopCommand";
6
7
  import { SageMakerA2IRuntimeClient } from "./SageMakerA2IRuntimeClient";
8
+ const commands = {
9
+ DeleteHumanLoopCommand,
10
+ DescribeHumanLoopCommand,
11
+ ListHumanLoopsCommand,
12
+ StartHumanLoopCommand,
13
+ StopHumanLoopCommand,
14
+ };
7
15
  export class SageMakerA2IRuntime extends SageMakerA2IRuntimeClient {
8
- deleteHumanLoop(args, optionsOrCb, cb) {
9
- const command = new DeleteHumanLoopCommand(args);
10
- if (typeof optionsOrCb === "function") {
11
- this.send(command, optionsOrCb);
12
- }
13
- else if (typeof cb === "function") {
14
- if (typeof optionsOrCb !== "object")
15
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
16
- this.send(command, optionsOrCb || {}, cb);
17
- }
18
- else {
19
- return this.send(command, optionsOrCb);
20
- }
21
- }
22
- describeHumanLoop(args, optionsOrCb, cb) {
23
- const command = new DescribeHumanLoopCommand(args);
24
- if (typeof optionsOrCb === "function") {
25
- this.send(command, optionsOrCb);
26
- }
27
- else if (typeof cb === "function") {
28
- if (typeof optionsOrCb !== "object")
29
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
- this.send(command, optionsOrCb || {}, cb);
31
- }
32
- else {
33
- return this.send(command, optionsOrCb);
34
- }
35
- }
36
- listHumanLoops(args, optionsOrCb, cb) {
37
- const command = new ListHumanLoopsCommand(args);
38
- if (typeof optionsOrCb === "function") {
39
- this.send(command, optionsOrCb);
40
- }
41
- else if (typeof cb === "function") {
42
- if (typeof optionsOrCb !== "object")
43
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
- this.send(command, optionsOrCb || {}, cb);
45
- }
46
- else {
47
- return this.send(command, optionsOrCb);
48
- }
49
- }
50
- startHumanLoop(args, optionsOrCb, cb) {
51
- const command = new StartHumanLoopCommand(args);
52
- if (typeof optionsOrCb === "function") {
53
- this.send(command, optionsOrCb);
54
- }
55
- else if (typeof cb === "function") {
56
- if (typeof optionsOrCb !== "object")
57
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
- this.send(command, optionsOrCb || {}, cb);
59
- }
60
- else {
61
- return this.send(command, optionsOrCb);
62
- }
63
- }
64
- stopHumanLoop(args, optionsOrCb, cb) {
65
- const command = new StopHumanLoopCommand(args);
66
- if (typeof optionsOrCb === "function") {
67
- this.send(command, optionsOrCb);
68
- }
69
- else if (typeof cb === "function") {
70
- if (typeof optionsOrCb !== "object")
71
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
- this.send(command, optionsOrCb || {}, cb);
73
- }
74
- else {
75
- return this.send(command, optionsOrCb);
76
- }
77
- }
78
16
  }
17
+ createAggregatedClient(commands, SageMakerA2IRuntime);
@@ -5,6 +5,38 @@ import { ListHumanLoopsCommandInput, ListHumanLoopsCommandOutput } from "./comma
5
5
  import { StartHumanLoopCommandInput, StartHumanLoopCommandOutput } from "./commands/StartHumanLoopCommand";
6
6
  import { StopHumanLoopCommandInput, StopHumanLoopCommandOutput } from "./commands/StopHumanLoopCommand";
7
7
  import { SageMakerA2IRuntimeClient } from "./SageMakerA2IRuntimeClient";
8
+ export interface SageMakerA2IRuntime {
9
+ /**
10
+ * @see {@link DeleteHumanLoopCommand}
11
+ */
12
+ deleteHumanLoop(args: DeleteHumanLoopCommandInput, options?: __HttpHandlerOptions): Promise<DeleteHumanLoopCommandOutput>;
13
+ deleteHumanLoop(args: DeleteHumanLoopCommandInput, cb: (err: any, data?: DeleteHumanLoopCommandOutput) => void): void;
14
+ deleteHumanLoop(args: DeleteHumanLoopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteHumanLoopCommandOutput) => void): void;
15
+ /**
16
+ * @see {@link DescribeHumanLoopCommand}
17
+ */
18
+ describeHumanLoop(args: DescribeHumanLoopCommandInput, options?: __HttpHandlerOptions): Promise<DescribeHumanLoopCommandOutput>;
19
+ describeHumanLoop(args: DescribeHumanLoopCommandInput, cb: (err: any, data?: DescribeHumanLoopCommandOutput) => void): void;
20
+ describeHumanLoop(args: DescribeHumanLoopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeHumanLoopCommandOutput) => void): void;
21
+ /**
22
+ * @see {@link ListHumanLoopsCommand}
23
+ */
24
+ listHumanLoops(args: ListHumanLoopsCommandInput, options?: __HttpHandlerOptions): Promise<ListHumanLoopsCommandOutput>;
25
+ listHumanLoops(args: ListHumanLoopsCommandInput, cb: (err: any, data?: ListHumanLoopsCommandOutput) => void): void;
26
+ listHumanLoops(args: ListHumanLoopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListHumanLoopsCommandOutput) => void): void;
27
+ /**
28
+ * @see {@link StartHumanLoopCommand}
29
+ */
30
+ startHumanLoop(args: StartHumanLoopCommandInput, options?: __HttpHandlerOptions): Promise<StartHumanLoopCommandOutput>;
31
+ startHumanLoop(args: StartHumanLoopCommandInput, cb: (err: any, data?: StartHumanLoopCommandOutput) => void): void;
32
+ startHumanLoop(args: StartHumanLoopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartHumanLoopCommandOutput) => void): void;
33
+ /**
34
+ * @see {@link StopHumanLoopCommand}
35
+ */
36
+ stopHumanLoop(args: StopHumanLoopCommandInput, options?: __HttpHandlerOptions): Promise<StopHumanLoopCommandOutput>;
37
+ stopHumanLoop(args: StopHumanLoopCommandInput, cb: (err: any, data?: StopHumanLoopCommandOutput) => void): void;
38
+ stopHumanLoop(args: StopHumanLoopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopHumanLoopCommandOutput) => void): void;
39
+ }
8
40
  /**
9
41
  * @public
10
42
  * <p>Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine learning
@@ -34,43 +66,5 @@ import { SageMakerA2IRuntimeClient } from "./SageMakerA2IRuntimeClient";
34
66
  * workflows for those services. To learn how Amazon A2I uses these APIs, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html">Use APIs in
35
67
  * Amazon A2I</a> in the Amazon SageMaker Developer Guide.</p>
36
68
  */
37
- export declare class SageMakerA2IRuntime extends SageMakerA2IRuntimeClient {
38
- /**
39
- * @public
40
- * <p>Deletes the specified human loop for a flow definition.</p>
41
- * <p>If the human loop was deleted, this operation will return a
42
- * <code>ResourceNotFoundException</code>. </p>
43
- */
44
- deleteHumanLoop(args: DeleteHumanLoopCommandInput, options?: __HttpHandlerOptions): Promise<DeleteHumanLoopCommandOutput>;
45
- deleteHumanLoop(args: DeleteHumanLoopCommandInput, cb: (err: any, data?: DeleteHumanLoopCommandOutput) => void): void;
46
- deleteHumanLoop(args: DeleteHumanLoopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteHumanLoopCommandOutput) => void): void;
47
- /**
48
- * @public
49
- * <p>Returns information about the specified human loop. If the human loop was deleted, this
50
- * operation will return a <code>ResourceNotFoundException</code> error. </p>
51
- */
52
- describeHumanLoop(args: DescribeHumanLoopCommandInput, options?: __HttpHandlerOptions): Promise<DescribeHumanLoopCommandOutput>;
53
- describeHumanLoop(args: DescribeHumanLoopCommandInput, cb: (err: any, data?: DescribeHumanLoopCommandOutput) => void): void;
54
- describeHumanLoop(args: DescribeHumanLoopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeHumanLoopCommandOutput) => void): void;
55
- /**
56
- * @public
57
- * <p>Returns information about human loops, given the specified parameters. If a human loop was deleted, it will not be included.</p>
58
- */
59
- listHumanLoops(args: ListHumanLoopsCommandInput, options?: __HttpHandlerOptions): Promise<ListHumanLoopsCommandOutput>;
60
- listHumanLoops(args: ListHumanLoopsCommandInput, cb: (err: any, data?: ListHumanLoopsCommandOutput) => void): void;
61
- listHumanLoops(args: ListHumanLoopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListHumanLoopsCommandOutput) => void): void;
62
- /**
63
- * @public
64
- * <p>Starts a human loop, provided that at least one activation condition is met.</p>
65
- */
66
- startHumanLoop(args: StartHumanLoopCommandInput, options?: __HttpHandlerOptions): Promise<StartHumanLoopCommandOutput>;
67
- startHumanLoop(args: StartHumanLoopCommandInput, cb: (err: any, data?: StartHumanLoopCommandOutput) => void): void;
68
- startHumanLoop(args: StartHumanLoopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartHumanLoopCommandOutput) => void): void;
69
- /**
70
- * @public
71
- * <p>Stops the specified human loop.</p>
72
- */
73
- stopHumanLoop(args: StopHumanLoopCommandInput, options?: __HttpHandlerOptions): Promise<StopHumanLoopCommandOutput>;
74
- stopHumanLoop(args: StopHumanLoopCommandInput, cb: (err: any, data?: StopHumanLoopCommandOutput) => void): void;
75
- stopHumanLoop(args: StopHumanLoopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopHumanLoopCommandOutput) => void): void;
69
+ export declare class SageMakerA2IRuntime extends SageMakerA2IRuntimeClient implements SageMakerA2IRuntime {
76
70
  }
@@ -20,7 +20,7 @@ import {
20
20
  StopHumanLoopCommandOutput,
21
21
  } from "./commands/StopHumanLoopCommand";
22
22
  import { SageMakerA2IRuntimeClient } from "./SageMakerA2IRuntimeClient";
23
- export declare class SageMakerA2IRuntime extends SageMakerA2IRuntimeClient {
23
+ export interface SageMakerA2IRuntime {
24
24
  deleteHumanLoop(
25
25
  args: DeleteHumanLoopCommandInput,
26
26
  options?: __HttpHandlerOptions
@@ -87,3 +87,6 @@ export declare class SageMakerA2IRuntime extends SageMakerA2IRuntimeClient {
87
87
  cb: (err: any, data?: StopHumanLoopCommandOutput) => void
88
88
  ): void;
89
89
  }
90
+ export declare class SageMakerA2IRuntime
91
+ extends SageMakerA2IRuntimeClient
92
+ implements SageMakerA2IRuntime {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-a2i-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker A2i Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",