@aws-sdk/client-finspace 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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Finspace = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateEnvironmentCommand_1 = require("./commands/CreateEnvironmentCommand");
5
6
  const DeleteEnvironmentCommand_1 = require("./commands/DeleteEnvironmentCommand");
6
7
  const GetEnvironmentCommand_1 = require("./commands/GetEnvironmentCommand");
@@ -10,118 +11,17 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
10
11
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
11
12
  const UpdateEnvironmentCommand_1 = require("./commands/UpdateEnvironmentCommand");
12
13
  const FinspaceClient_1 = require("./FinspaceClient");
14
+ const commands = {
15
+ CreateEnvironmentCommand: CreateEnvironmentCommand_1.CreateEnvironmentCommand,
16
+ DeleteEnvironmentCommand: DeleteEnvironmentCommand_1.DeleteEnvironmentCommand,
17
+ GetEnvironmentCommand: GetEnvironmentCommand_1.GetEnvironmentCommand,
18
+ ListEnvironmentsCommand: ListEnvironmentsCommand_1.ListEnvironmentsCommand,
19
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
20
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
21
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
22
+ UpdateEnvironmentCommand: UpdateEnvironmentCommand_1.UpdateEnvironmentCommand,
23
+ };
13
24
  class Finspace extends FinspaceClient_1.FinspaceClient {
14
- createEnvironment(args, optionsOrCb, cb) {
15
- const command = new CreateEnvironmentCommand_1.CreateEnvironmentCommand(args);
16
- if (typeof optionsOrCb === "function") {
17
- this.send(command, optionsOrCb);
18
- }
19
- else if (typeof cb === "function") {
20
- if (typeof optionsOrCb !== "object")
21
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
22
- this.send(command, optionsOrCb || {}, cb);
23
- }
24
- else {
25
- return this.send(command, optionsOrCb);
26
- }
27
- }
28
- deleteEnvironment(args, optionsOrCb, cb) {
29
- const command = new DeleteEnvironmentCommand_1.DeleteEnvironmentCommand(args);
30
- if (typeof optionsOrCb === "function") {
31
- this.send(command, optionsOrCb);
32
- }
33
- else if (typeof cb === "function") {
34
- if (typeof optionsOrCb !== "object")
35
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
36
- this.send(command, optionsOrCb || {}, cb);
37
- }
38
- else {
39
- return this.send(command, optionsOrCb);
40
- }
41
- }
42
- getEnvironment(args, optionsOrCb, cb) {
43
- const command = new GetEnvironmentCommand_1.GetEnvironmentCommand(args);
44
- if (typeof optionsOrCb === "function") {
45
- this.send(command, optionsOrCb);
46
- }
47
- else if (typeof cb === "function") {
48
- if (typeof optionsOrCb !== "object")
49
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
- this.send(command, optionsOrCb || {}, cb);
51
- }
52
- else {
53
- return this.send(command, optionsOrCb);
54
- }
55
- }
56
- listEnvironments(args, optionsOrCb, cb) {
57
- const command = new ListEnvironmentsCommand_1.ListEnvironmentsCommand(args);
58
- if (typeof optionsOrCb === "function") {
59
- this.send(command, optionsOrCb);
60
- }
61
- else if (typeof cb === "function") {
62
- if (typeof optionsOrCb !== "object")
63
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
- this.send(command, optionsOrCb || {}, cb);
65
- }
66
- else {
67
- return this.send(command, optionsOrCb);
68
- }
69
- }
70
- listTagsForResource(args, optionsOrCb, cb) {
71
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
72
- if (typeof optionsOrCb === "function") {
73
- this.send(command, optionsOrCb);
74
- }
75
- else if (typeof cb === "function") {
76
- if (typeof optionsOrCb !== "object")
77
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
- this.send(command, optionsOrCb || {}, cb);
79
- }
80
- else {
81
- return this.send(command, optionsOrCb);
82
- }
83
- }
84
- tagResource(args, optionsOrCb, cb) {
85
- const command = new TagResourceCommand_1.TagResourceCommand(args);
86
- if (typeof optionsOrCb === "function") {
87
- this.send(command, optionsOrCb);
88
- }
89
- else if (typeof cb === "function") {
90
- if (typeof optionsOrCb !== "object")
91
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
- this.send(command, optionsOrCb || {}, cb);
93
- }
94
- else {
95
- return this.send(command, optionsOrCb);
96
- }
97
- }
98
- untagResource(args, optionsOrCb, cb) {
99
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
100
- if (typeof optionsOrCb === "function") {
101
- this.send(command, optionsOrCb);
102
- }
103
- else if (typeof cb === "function") {
104
- if (typeof optionsOrCb !== "object")
105
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
- this.send(command, optionsOrCb || {}, cb);
107
- }
108
- else {
109
- return this.send(command, optionsOrCb);
110
- }
111
- }
112
- updateEnvironment(args, optionsOrCb, cb) {
113
- const command = new UpdateEnvironmentCommand_1.UpdateEnvironmentCommand(args);
114
- if (typeof optionsOrCb === "function") {
115
- this.send(command, optionsOrCb);
116
- }
117
- else if (typeof cb === "function") {
118
- if (typeof optionsOrCb !== "object")
119
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
- this.send(command, optionsOrCb || {}, cb);
121
- }
122
- else {
123
- return this.send(command, optionsOrCb);
124
- }
125
- }
126
25
  }
127
26
  exports.Finspace = Finspace;
27
+ (0, smithy_client_1.createAggregatedClient)(commands, Finspace);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateEnvironmentCommand, } from "./commands/CreateEnvironmentCommand";
2
3
  import { DeleteEnvironmentCommand, } from "./commands/DeleteEnvironmentCommand";
3
4
  import { GetEnvironmentCommand, } from "./commands/GetEnvironmentCommand";
@@ -7,117 +8,16 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
7
8
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
8
9
  import { UpdateEnvironmentCommand, } from "./commands/UpdateEnvironmentCommand";
9
10
  import { FinspaceClient } from "./FinspaceClient";
11
+ const commands = {
12
+ CreateEnvironmentCommand,
13
+ DeleteEnvironmentCommand,
14
+ GetEnvironmentCommand,
15
+ ListEnvironmentsCommand,
16
+ ListTagsForResourceCommand,
17
+ TagResourceCommand,
18
+ UntagResourceCommand,
19
+ UpdateEnvironmentCommand,
20
+ };
10
21
  export class Finspace extends FinspaceClient {
11
- createEnvironment(args, optionsOrCb, cb) {
12
- const command = new CreateEnvironmentCommand(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
- deleteEnvironment(args, optionsOrCb, cb) {
26
- const command = new DeleteEnvironmentCommand(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
- getEnvironment(args, optionsOrCb, cb) {
40
- const command = new GetEnvironmentCommand(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
- listEnvironments(args, optionsOrCb, cb) {
54
- const command = new ListEnvironmentsCommand(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
- listTagsForResource(args, optionsOrCb, cb) {
68
- const command = new ListTagsForResourceCommand(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
- tagResource(args, optionsOrCb, cb) {
82
- const command = new TagResourceCommand(args);
83
- if (typeof optionsOrCb === "function") {
84
- this.send(command, optionsOrCb);
85
- }
86
- else if (typeof cb === "function") {
87
- if (typeof optionsOrCb !== "object")
88
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
89
- this.send(command, optionsOrCb || {}, cb);
90
- }
91
- else {
92
- return this.send(command, optionsOrCb);
93
- }
94
- }
95
- untagResource(args, optionsOrCb, cb) {
96
- const command = new UntagResourceCommand(args);
97
- if (typeof optionsOrCb === "function") {
98
- this.send(command, optionsOrCb);
99
- }
100
- else if (typeof cb === "function") {
101
- if (typeof optionsOrCb !== "object")
102
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
103
- this.send(command, optionsOrCb || {}, cb);
104
- }
105
- else {
106
- return this.send(command, optionsOrCb);
107
- }
108
- }
109
- updateEnvironment(args, optionsOrCb, cb) {
110
- const command = new UpdateEnvironmentCommand(args);
111
- if (typeof optionsOrCb === "function") {
112
- this.send(command, optionsOrCb);
113
- }
114
- else if (typeof cb === "function") {
115
- if (typeof optionsOrCb !== "object")
116
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
- this.send(command, optionsOrCb || {}, cb);
118
- }
119
- else {
120
- return this.send(command, optionsOrCb);
121
- }
122
- }
123
22
  }
23
+ createAggregatedClient(commands, Finspace);
@@ -8,65 +8,59 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
8
8
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
9
9
  import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "./commands/UpdateEnvironmentCommand";
10
10
  import { FinspaceClient } from "./FinspaceClient";
11
- /**
12
- * @public
13
- * <p>The FinSpace management service provides the APIs for managing FinSpace environments.</p>
14
- */
15
- export declare class Finspace extends FinspaceClient {
11
+ export interface Finspace {
16
12
  /**
17
- * @public
18
- * <p>Create a new FinSpace environment.</p>
13
+ * @see {@link CreateEnvironmentCommand}
19
14
  */
20
15
  createEnvironment(args: CreateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateEnvironmentCommandOutput>;
21
16
  createEnvironment(args: CreateEnvironmentCommandInput, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
22
17
  createEnvironment(args: CreateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
23
18
  /**
24
- * @public
25
- * <p>Delete an FinSpace environment.</p>
19
+ * @see {@link DeleteEnvironmentCommand}
26
20
  */
27
21
  deleteEnvironment(args: DeleteEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEnvironmentCommandOutput>;
28
22
  deleteEnvironment(args: DeleteEnvironmentCommandInput, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
29
23
  deleteEnvironment(args: DeleteEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
30
24
  /**
31
- * @public
32
- * <p>Returns the FinSpace environment object.</p>
25
+ * @see {@link GetEnvironmentCommand}
33
26
  */
34
27
  getEnvironment(args: GetEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<GetEnvironmentCommandOutput>;
35
28
  getEnvironment(args: GetEnvironmentCommandInput, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
36
29
  getEnvironment(args: GetEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
37
30
  /**
38
- * @public
39
- * <p>A list of all of your FinSpace environments.</p>
31
+ * @see {@link ListEnvironmentsCommand}
40
32
  */
41
33
  listEnvironments(args: ListEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnvironmentsCommandOutput>;
42
34
  listEnvironments(args: ListEnvironmentsCommandInput, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
43
35
  listEnvironments(args: ListEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
44
36
  /**
45
- * @public
46
- * <p>A list of all tags for a resource.</p>
37
+ * @see {@link ListTagsForResourceCommand}
47
38
  */
48
39
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
49
40
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
50
41
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
51
42
  /**
52
- * @public
53
- * <p>Adds metadata tags to a FinSpace resource.</p>
43
+ * @see {@link TagResourceCommand}
54
44
  */
55
45
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
56
46
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
57
47
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
58
48
  /**
59
- * @public
60
- * <p>Removes metadata tags from a FinSpace resource.</p>
49
+ * @see {@link UntagResourceCommand}
61
50
  */
62
51
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
63
52
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
64
53
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
65
54
  /**
66
- * @public
67
- * <p>Update your FinSpace environment.</p>
55
+ * @see {@link UpdateEnvironmentCommand}
68
56
  */
69
57
  updateEnvironment(args: UpdateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEnvironmentCommandOutput>;
70
58
  updateEnvironment(args: UpdateEnvironmentCommandInput, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
71
59
  updateEnvironment(args: UpdateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
72
60
  }
61
+ /**
62
+ * @public
63
+ * <p>The FinSpace management service provides the APIs for managing FinSpace environments.</p>
64
+ */
65
+ export declare class Finspace extends FinspaceClient implements Finspace {
66
+ }
@@ -32,7 +32,7 @@ import {
32
32
  UpdateEnvironmentCommandOutput,
33
33
  } from "./commands/UpdateEnvironmentCommand";
34
34
  import { FinspaceClient } from "./FinspaceClient";
35
- export declare class Finspace extends FinspaceClient {
35
+ export interface Finspace {
36
36
  createEnvironment(
37
37
  args: CreateEnvironmentCommandInput,
38
38
  options?: __HttpHandlerOptions
@@ -138,3 +138,4 @@ export declare class Finspace extends FinspaceClient {
138
138
  cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void
139
139
  ): void;
140
140
  }
141
+ export declare class Finspace extends FinspaceClient implements Finspace {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-finspace",
3
3
  "description": "AWS SDK for JavaScript Finspace 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",