@aws-sdk/client-finspace 3.32.0 → 3.36.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 (140) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/Finspace.js +1 -2
  3. package/{dist/cjs → dist-cjs}/FinspaceClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/CreateEnvironmentCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/DeleteEnvironmentCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/GetEnvironmentCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/ListEnvironmentsCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
  9. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
  10. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
  11. package/{dist/cjs → dist-cjs}/commands/UpdateEnvironmentCommand.js +2 -3
  12. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  13. package/{dist/cjs → dist-cjs}/index.js +0 -1
  14. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  15. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  16. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +2 -3
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  20. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  21. package/{dist/es → dist-es}/Finspace.js +2 -7
  22. package/{dist/es → dist-es}/FinspaceClient.js +2 -12
  23. package/{dist/es → dist-es}/commands/CreateEnvironmentCommand.js +4 -30
  24. package/{dist/es → dist-es}/commands/DeleteEnvironmentCommand.js +4 -30
  25. package/{dist/es → dist-es}/commands/GetEnvironmentCommand.js +4 -30
  26. package/{dist/es → dist-es}/commands/ListEnvironmentsCommand.js +4 -30
  27. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
  28. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
  29. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
  30. package/{dist/es → dist-es}/commands/UpdateEnvironmentCommand.js +4 -30
  31. package/{dist/es → dist-es}/endpoints.js +1 -2
  32. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  33. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  34. package/{dist/es → dist-es}/models/models_0.js +0 -79
  35. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +196 -202
  36. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  37. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  38. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  39. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  40. package/{dist/types → dist-types}/Finspace.d.ts +2 -2
  41. package/{dist/types → dist-types}/FinspaceClient.d.ts +8 -8
  42. package/{dist/types → dist-types}/commands/CreateEnvironmentCommand.d.ts +2 -2
  43. package/{dist/types → dist-types}/commands/DeleteEnvironmentCommand.d.ts +2 -2
  44. package/{dist/types → dist-types}/commands/GetEnvironmentCommand.d.ts +2 -2
  45. package/{dist/types → dist-types}/commands/ListEnvironmentsCommand.d.ts +2 -2
  46. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  47. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  48. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  49. package/{dist/types → dist-types}/commands/UpdateEnvironmentCommand.d.ts +2 -2
  50. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  51. package/{index.ts → dist-types/index.d.ts} +0 -0
  52. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  53. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  54. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  55. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  56. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  57. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  58. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  59. package/{dist/types → dist-types}/ts3.4/Finspace.d.ts +2 -2
  60. package/{dist/types → dist-types}/ts3.4/FinspaceClient.d.ts +8 -8
  61. package/{dist/types → dist-types}/ts3.4/commands/CreateEnvironmentCommand.d.ts +2 -2
  62. package/{dist/types → dist-types}/ts3.4/commands/DeleteEnvironmentCommand.d.ts +2 -2
  63. package/{dist/types → dist-types}/ts3.4/commands/GetEnvironmentCommand.d.ts +2 -2
  64. package/{dist/types → dist-types}/ts3.4/commands/ListEnvironmentsCommand.d.ts +2 -2
  65. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  66. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
  67. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
  68. package/{dist/types → dist-types}/ts3.4/commands/UpdateEnvironmentCommand.d.ts +2 -2
  69. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  70. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  71. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  72. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  73. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  74. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  75. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  76. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  77. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  78. package/package.json +52 -49
  79. package/Finspace.ts +0 -294
  80. package/FinspaceClient.ts +0 -263
  81. package/commands/CreateEnvironmentCommand.ts +0 -94
  82. package/commands/DeleteEnvironmentCommand.ts +0 -94
  83. package/commands/GetEnvironmentCommand.ts +0 -94
  84. package/commands/ListEnvironmentsCommand.ts +0 -94
  85. package/commands/ListTagsForResourceCommand.ts +0 -94
  86. package/commands/TagResourceCommand.ts +0 -94
  87. package/commands/UntagResourceCommand.ts +0 -94
  88. package/commands/UpdateEnvironmentCommand.ts +0 -94
  89. package/dist/cjs/Finspace.js.map +0 -1
  90. package/dist/cjs/FinspaceClient.js.map +0 -1
  91. package/dist/cjs/commands/CreateEnvironmentCommand.js.map +0 -1
  92. package/dist/cjs/commands/DeleteEnvironmentCommand.js.map +0 -1
  93. package/dist/cjs/commands/GetEnvironmentCommand.js.map +0 -1
  94. package/dist/cjs/commands/ListEnvironmentsCommand.js.map +0 -1
  95. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  96. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  97. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  98. package/dist/cjs/commands/UpdateEnvironmentCommand.js.map +0 -1
  99. package/dist/cjs/endpoints.js.map +0 -1
  100. package/dist/cjs/index.js.map +0 -1
  101. package/dist/cjs/models/index.js.map +0 -1
  102. package/dist/cjs/models/models_0.js.map +0 -1
  103. package/dist/cjs/package.json +0 -91
  104. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  105. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  106. package/dist/cjs/runtimeConfig.js.map +0 -1
  107. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  108. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  109. package/dist/es/Finspace.js.map +0 -1
  110. package/dist/es/FinspaceClient.js.map +0 -1
  111. package/dist/es/commands/CreateEnvironmentCommand.js.map +0 -1
  112. package/dist/es/commands/DeleteEnvironmentCommand.js.map +0 -1
  113. package/dist/es/commands/GetEnvironmentCommand.js.map +0 -1
  114. package/dist/es/commands/ListEnvironmentsCommand.js.map +0 -1
  115. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  116. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  117. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  118. package/dist/es/commands/UpdateEnvironmentCommand.js.map +0 -1
  119. package/dist/es/endpoints.js.map +0 -1
  120. package/dist/es/index.js +0 -12
  121. package/dist/es/index.js.map +0 -1
  122. package/dist/es/models/index.js +0 -2
  123. package/dist/es/models/index.js.map +0 -1
  124. package/dist/es/models/models_0.js.map +0 -1
  125. package/dist/es/package.json +0 -91
  126. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  127. package/dist/es/runtimeConfig.browser.js.map +0 -1
  128. package/dist/es/runtimeConfig.js.map +0 -1
  129. package/dist/es/runtimeConfig.native.js.map +0 -1
  130. package/dist/es/runtimeConfig.shared.js.map +0 -1
  131. package/endpoints.ts +0 -57
  132. package/jest.config.js +0 -4
  133. package/models/models_0.ts +0 -626
  134. package/protocols/Aws_restJson1.ts +0 -1214
  135. package/runtimeConfig.browser.ts +0 -40
  136. package/runtimeConfig.native.ts +0 -16
  137. package/runtimeConfig.shared.ts +0 -16
  138. package/runtimeConfig.ts +0 -45
  139. package/tsconfig.es.json +0 -12
  140. package/tsconfig.json +0 -32
package/FinspaceClient.ts DELETED
@@ -1,263 +0,0 @@
1
- import { CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput } from "./commands/CreateEnvironmentCommand";
2
- import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from "./commands/DeleteEnvironmentCommand";
3
- import { GetEnvironmentCommandInput, GetEnvironmentCommandOutput } from "./commands/GetEnvironmentCommand";
4
- import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "./commands/ListEnvironmentsCommand";
5
- import {
6
- ListTagsForResourceCommandInput,
7
- ListTagsForResourceCommandOutput,
8
- } from "./commands/ListTagsForResourceCommand";
9
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
10
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
11
- import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "./commands/UpdateEnvironmentCommand";
12
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
- import {
14
- EndpointsInputConfig,
15
- EndpointsResolvedConfig,
16
- RegionInputConfig,
17
- RegionResolvedConfig,
18
- resolveEndpointsConfig,
19
- resolveRegionConfig,
20
- } from "@aws-sdk/config-resolver";
21
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
22
- import {
23
- HostHeaderInputConfig,
24
- HostHeaderResolvedConfig,
25
- getHostHeaderPlugin,
26
- resolveHostHeaderConfig,
27
- } from "@aws-sdk/middleware-host-header";
28
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
29
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
30
- import {
31
- AwsAuthInputConfig,
32
- AwsAuthResolvedConfig,
33
- getAwsAuthPlugin,
34
- resolveAwsAuthConfig,
35
- } from "@aws-sdk/middleware-signing";
36
- import {
37
- UserAgentInputConfig,
38
- UserAgentResolvedConfig,
39
- getUserAgentPlugin,
40
- resolveUserAgentConfig,
41
- } from "@aws-sdk/middleware-user-agent";
42
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
43
- import {
44
- Client as __Client,
45
- SmithyConfiguration as __SmithyConfiguration,
46
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
47
- } from "@aws-sdk/smithy-client";
48
- import {
49
- Provider,
50
- RegionInfoProvider,
51
- Credentials as __Credentials,
52
- Decoder as __Decoder,
53
- Encoder as __Encoder,
54
- Hash as __Hash,
55
- HashConstructor as __HashConstructor,
56
- HttpHandlerOptions as __HttpHandlerOptions,
57
- Logger as __Logger,
58
- Provider as __Provider,
59
- StreamCollector as __StreamCollector,
60
- UrlParser as __UrlParser,
61
- UserAgent as __UserAgent,
62
- } from "@aws-sdk/types";
63
-
64
- export type ServiceInputTypes =
65
- | CreateEnvironmentCommandInput
66
- | DeleteEnvironmentCommandInput
67
- | GetEnvironmentCommandInput
68
- | ListEnvironmentsCommandInput
69
- | ListTagsForResourceCommandInput
70
- | TagResourceCommandInput
71
- | UntagResourceCommandInput
72
- | UpdateEnvironmentCommandInput;
73
-
74
- export type ServiceOutputTypes =
75
- | CreateEnvironmentCommandOutput
76
- | DeleteEnvironmentCommandOutput
77
- | GetEnvironmentCommandOutput
78
- | ListEnvironmentsCommandOutput
79
- | ListTagsForResourceCommandOutput
80
- | TagResourceCommandOutput
81
- | UntagResourceCommandOutput
82
- | UpdateEnvironmentCommandOutput;
83
-
84
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
85
- /**
86
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
87
- */
88
- requestHandler?: __HttpHandler;
89
-
90
- /**
91
- * A constructor for a class implementing the {@link __Hash} interface
92
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
93
- * @internal
94
- */
95
- sha256?: __HashConstructor;
96
-
97
- /**
98
- * The function that will be used to convert strings into HTTP endpoints.
99
- * @internal
100
- */
101
- urlParser?: __UrlParser;
102
-
103
- /**
104
- * A function that can calculate the length of a request body.
105
- * @internal
106
- */
107
- bodyLengthChecker?: (body: any) => number | undefined;
108
-
109
- /**
110
- * A function that converts a stream into an array of bytes.
111
- * @internal
112
- */
113
- streamCollector?: __StreamCollector;
114
-
115
- /**
116
- * The function that will be used to convert a base64-encoded string to a byte array.
117
- * @internal
118
- */
119
- base64Decoder?: __Decoder;
120
-
121
- /**
122
- * The function that will be used to convert binary data to a base64-encoded string.
123
- * @internal
124
- */
125
- base64Encoder?: __Encoder;
126
-
127
- /**
128
- * The function that will be used to convert a UTF8-encoded string to a byte array.
129
- * @internal
130
- */
131
- utf8Decoder?: __Decoder;
132
-
133
- /**
134
- * The function that will be used to convert binary data to a UTF-8 encoded string.
135
- * @internal
136
- */
137
- utf8Encoder?: __Encoder;
138
-
139
- /**
140
- * The runtime environment.
141
- * @internal
142
- */
143
- runtime?: string;
144
-
145
- /**
146
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
147
- * trait of an operation.
148
- */
149
- disableHostPrefix?: boolean;
150
-
151
- /**
152
- * Value for how many times a request will be made at most in case of retry.
153
- */
154
- maxAttempts?: number | __Provider<number>;
155
-
156
- /**
157
- * Specifies which retry algorithm to use.
158
- */
159
- retryMode?: string | __Provider<string>;
160
-
161
- /**
162
- * Optional logger for logging debug/info/warn/error.
163
- */
164
- logger?: __Logger;
165
-
166
- /**
167
- * Unique service identifier.
168
- * @internal
169
- */
170
- serviceId?: string;
171
-
172
- /**
173
- * The AWS region to which this client will send requests
174
- */
175
- region?: string | __Provider<string>;
176
-
177
- /**
178
- * Default credentials provider; Not available in browser runtime.
179
- * @internal
180
- */
181
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
182
-
183
- /**
184
- * Fetch related hostname, signing name or signing region with given region.
185
- * @internal
186
- */
187
- regionInfoProvider?: RegionInfoProvider;
188
-
189
- /**
190
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
191
- * @internal
192
- */
193
- defaultUserAgentProvider?: Provider<__UserAgent>;
194
- }
195
-
196
- type FinspaceClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
197
- ClientDefaults &
198
- RegionInputConfig &
199
- EndpointsInputConfig &
200
- RetryInputConfig &
201
- HostHeaderInputConfig &
202
- AwsAuthInputConfig &
203
- UserAgentInputConfig;
204
- /**
205
- * The configuration interface of FinspaceClient class constructor that set the region, credentials and other options.
206
- */
207
- export interface FinspaceClientConfig extends FinspaceClientConfigType {}
208
-
209
- type FinspaceClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
210
- Required<ClientDefaults> &
211
- RegionResolvedConfig &
212
- EndpointsResolvedConfig &
213
- RetryResolvedConfig &
214
- HostHeaderResolvedConfig &
215
- AwsAuthResolvedConfig &
216
- UserAgentResolvedConfig;
217
- /**
218
- * The resolved configuration interface of FinspaceClient class. This is resolved and normalized from the {@link FinspaceClientConfig | constructor configuration interface}.
219
- */
220
- export interface FinspaceClientResolvedConfig extends FinspaceClientResolvedConfigType {}
221
-
222
- /**
223
- * <p>The FinSpace management service provides the APIs for managing the FinSpace
224
- * environments. </p>
225
- */
226
- export class FinspaceClient extends __Client<
227
- __HttpHandlerOptions,
228
- ServiceInputTypes,
229
- ServiceOutputTypes,
230
- FinspaceClientResolvedConfig
231
- > {
232
- /**
233
- * The resolved configuration of FinspaceClient class. This is resolved and normalized from the {@link FinspaceClientConfig | constructor configuration interface}.
234
- */
235
- readonly config: FinspaceClientResolvedConfig;
236
-
237
- constructor(configuration: FinspaceClientConfig) {
238
- let _config_0 = __getRuntimeConfig(configuration);
239
- let _config_1 = resolveRegionConfig(_config_0);
240
- let _config_2 = resolveEndpointsConfig(_config_1);
241
- let _config_3 = resolveRetryConfig(_config_2);
242
- let _config_4 = resolveHostHeaderConfig(_config_3);
243
- let _config_5 = resolveAwsAuthConfig(_config_4);
244
- let _config_6 = resolveUserAgentConfig(_config_5);
245
- super(_config_6);
246
- this.config = _config_6;
247
- this.middlewareStack.use(getRetryPlugin(this.config));
248
- this.middlewareStack.use(getContentLengthPlugin(this.config));
249
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
250
- this.middlewareStack.use(getLoggerPlugin(this.config));
251
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
252
- this.middlewareStack.use(getUserAgentPlugin(this.config));
253
- }
254
-
255
- /**
256
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
257
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
258
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
259
- */
260
- destroy(): void {
261
- super.destroy();
262
- }
263
- }
@@ -1,94 +0,0 @@
1
- import { FinspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FinspaceClient";
2
- import { CreateEnvironmentRequest, CreateEnvironmentResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1CreateEnvironmentCommand,
5
- serializeAws_restJson1CreateEnvironmentCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CreateEnvironmentCommandInput extends CreateEnvironmentRequest {}
21
- export interface CreateEnvironmentCommandOutput extends CreateEnvironmentResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Create a new FinSpace environment.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { FinspaceClient, CreateEnvironmentCommand } from "@aws-sdk/client-finspace"; // ES Modules import
29
- * // const { FinspaceClient, CreateEnvironmentCommand } = require("@aws-sdk/client-finspace"); // CommonJS import
30
- * const client = new FinspaceClient(config);
31
- * const command = new CreateEnvironmentCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link CreateEnvironmentCommandInput} for command's `input` shape.
36
- * @see {@link CreateEnvironmentCommandOutput} for command's `response` shape.
37
- * @see {@link FinspaceClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class CreateEnvironmentCommand extends $Command<
41
- CreateEnvironmentCommandInput,
42
- CreateEnvironmentCommandOutput,
43
- FinspaceClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: CreateEnvironmentCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: FinspaceClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "FinspaceClient";
68
- const commandName = "CreateEnvironmentCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: CreateEnvironmentRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: CreateEnvironmentResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: CreateEnvironmentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1CreateEnvironmentCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateEnvironmentCommandOutput> {
89
- return deserializeAws_restJson1CreateEnvironmentCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { FinspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FinspaceClient";
2
- import { DeleteEnvironmentRequest, DeleteEnvironmentResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1DeleteEnvironmentCommand,
5
- serializeAws_restJson1DeleteEnvironmentCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface DeleteEnvironmentCommandInput extends DeleteEnvironmentRequest {}
21
- export interface DeleteEnvironmentCommandOutput extends DeleteEnvironmentResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Delete an FinSpace environment.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { FinspaceClient, DeleteEnvironmentCommand } from "@aws-sdk/client-finspace"; // ES Modules import
29
- * // const { FinspaceClient, DeleteEnvironmentCommand } = require("@aws-sdk/client-finspace"); // CommonJS import
30
- * const client = new FinspaceClient(config);
31
- * const command = new DeleteEnvironmentCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DeleteEnvironmentCommandInput} for command's `input` shape.
36
- * @see {@link DeleteEnvironmentCommandOutput} for command's `response` shape.
37
- * @see {@link FinspaceClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DeleteEnvironmentCommand extends $Command<
41
- DeleteEnvironmentCommandInput,
42
- DeleteEnvironmentCommandOutput,
43
- FinspaceClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: DeleteEnvironmentCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: FinspaceClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "FinspaceClient";
68
- const commandName = "DeleteEnvironmentCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: DeleteEnvironmentRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: DeleteEnvironmentResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: DeleteEnvironmentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1DeleteEnvironmentCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteEnvironmentCommandOutput> {
89
- return deserializeAws_restJson1DeleteEnvironmentCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { FinspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FinspaceClient";
2
- import { GetEnvironmentRequest, GetEnvironmentResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1GetEnvironmentCommand,
5
- serializeAws_restJson1GetEnvironmentCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetEnvironmentCommandInput extends GetEnvironmentRequest {}
21
- export interface GetEnvironmentCommandOutput extends GetEnvironmentResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Returns the FinSpace environment object.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { FinspaceClient, GetEnvironmentCommand } from "@aws-sdk/client-finspace"; // ES Modules import
29
- * // const { FinspaceClient, GetEnvironmentCommand } = require("@aws-sdk/client-finspace"); // CommonJS import
30
- * const client = new FinspaceClient(config);
31
- * const command = new GetEnvironmentCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link GetEnvironmentCommandInput} for command's `input` shape.
36
- * @see {@link GetEnvironmentCommandOutput} for command's `response` shape.
37
- * @see {@link FinspaceClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class GetEnvironmentCommand extends $Command<
41
- GetEnvironmentCommandInput,
42
- GetEnvironmentCommandOutput,
43
- FinspaceClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: GetEnvironmentCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: FinspaceClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<GetEnvironmentCommandInput, GetEnvironmentCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "FinspaceClient";
68
- const commandName = "GetEnvironmentCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: GetEnvironmentRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: GetEnvironmentResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: GetEnvironmentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1GetEnvironmentCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetEnvironmentCommandOutput> {
89
- return deserializeAws_restJson1GetEnvironmentCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { FinspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FinspaceClient";
2
- import { ListEnvironmentsRequest, ListEnvironmentsResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1ListEnvironmentsCommand,
5
- serializeAws_restJson1ListEnvironmentsCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface ListEnvironmentsCommandInput extends ListEnvironmentsRequest {}
21
- export interface ListEnvironmentsCommandOutput extends ListEnvironmentsResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>A list of all of your FinSpace environments.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { FinspaceClient, ListEnvironmentsCommand } from "@aws-sdk/client-finspace"; // ES Modules import
29
- * // const { FinspaceClient, ListEnvironmentsCommand } = require("@aws-sdk/client-finspace"); // CommonJS import
30
- * const client = new FinspaceClient(config);
31
- * const command = new ListEnvironmentsCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link ListEnvironmentsCommandInput} for command's `input` shape.
36
- * @see {@link ListEnvironmentsCommandOutput} for command's `response` shape.
37
- * @see {@link FinspaceClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class ListEnvironmentsCommand extends $Command<
41
- ListEnvironmentsCommandInput,
42
- ListEnvironmentsCommandOutput,
43
- FinspaceClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: ListEnvironmentsCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: FinspaceClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "FinspaceClient";
68
- const commandName = "ListEnvironmentsCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: ListEnvironmentsRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: ListEnvironmentsResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: ListEnvironmentsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1ListEnvironmentsCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListEnvironmentsCommandOutput> {
89
- return deserializeAws_restJson1ListEnvironmentsCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }