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