@aws-sdk/client-mwaa 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 (176) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/MWAA.js +1 -2
  3. package/{dist/cjs → dist-cjs}/MWAAClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/CreateCliTokenCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/CreateEnvironmentCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/CreateWebLoginTokenCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/DeleteEnvironmentCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/commands/GetEnvironmentCommand.js +2 -3
  9. package/{dist/cjs → dist-cjs}/commands/ListEnvironmentsCommand.js +2 -3
  10. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
  11. package/{dist/cjs → dist-cjs}/commands/PublishMetricsCommand.js +2 -3
  12. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
  13. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
  14. package/{dist/cjs → dist-cjs}/commands/UpdateEnvironmentCommand.js +2 -3
  15. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  16. package/{dist/cjs → dist-cjs}/index.js +0 -1
  17. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  18. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  19. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  20. package/{dist/cjs → dist-cjs}/pagination/ListEnvironmentsPaginator.js +1 -2
  21. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -2
  22. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  23. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  24. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  25. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  26. package/{dist/es → dist-es}/MWAA.js +2 -7
  27. package/{dist/es → dist-es}/MWAAClient.js +2 -12
  28. package/{dist/es → dist-es}/commands/CreateCliTokenCommand.js +4 -30
  29. package/{dist/es → dist-es}/commands/CreateEnvironmentCommand.js +4 -30
  30. package/{dist/es → dist-es}/commands/CreateWebLoginTokenCommand.js +4 -30
  31. package/{dist/es → dist-es}/commands/DeleteEnvironmentCommand.js +4 -30
  32. package/{dist/es → dist-es}/commands/GetEnvironmentCommand.js +4 -30
  33. package/{dist/es → dist-es}/commands/ListEnvironmentsCommand.js +4 -30
  34. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
  35. package/{dist/es → dist-es}/commands/PublishMetricsCommand.js +4 -30
  36. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
  37. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
  38. package/{dist/es → dist-es}/commands/UpdateEnvironmentCommand.js +4 -30
  39. package/{dist/es → dist-es}/endpoints.js +1 -2
  40. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  41. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  42. package/{dist/es → dist-es}/models/models_0.js +0 -115
  43. package/dist-es/pagination/Interfaces.js +1 -0
  44. package/{dist/es → dist-es}/pagination/ListEnvironmentsPaginator.js +17 -30
  45. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +219 -225
  46. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  47. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  48. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  49. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  50. package/{dist/types → dist-types}/MWAA.d.ts +2 -2
  51. package/{dist/types → dist-types}/MWAAClient.d.ts +8 -8
  52. package/{dist/types → dist-types}/commands/CreateCliTokenCommand.d.ts +3 -3
  53. package/{dist/types → dist-types}/commands/CreateEnvironmentCommand.d.ts +3 -3
  54. package/{dist/types → dist-types}/commands/CreateWebLoginTokenCommand.d.ts +3 -3
  55. package/{dist/types → dist-types}/commands/DeleteEnvironmentCommand.d.ts +3 -3
  56. package/{dist/types → dist-types}/commands/GetEnvironmentCommand.d.ts +3 -3
  57. package/{dist/types → dist-types}/commands/ListEnvironmentsCommand.d.ts +3 -3
  58. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +3 -3
  59. package/{dist/types → dist-types}/commands/PublishMetricsCommand.d.ts +3 -3
  60. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
  61. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
  62. package/{dist/types → dist-types}/commands/UpdateEnvironmentCommand.d.ts +3 -3
  63. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  64. package/{index.ts → dist-types/index.d.ts} +0 -0
  65. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  66. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  67. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  68. package/{dist/types → dist-types}/pagination/ListEnvironmentsPaginator.d.ts +1 -1
  69. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  70. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  71. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  72. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  73. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  74. package/{dist/types → dist-types}/ts3.4/MWAA.d.ts +2 -2
  75. package/{dist/types → dist-types}/ts3.4/MWAAClient.d.ts +8 -8
  76. package/{dist/types → dist-types}/ts3.4/commands/CreateCliTokenCommand.d.ts +3 -3
  77. package/{dist/types → dist-types}/ts3.4/commands/CreateEnvironmentCommand.d.ts +3 -3
  78. package/{dist/types → dist-types}/ts3.4/commands/CreateWebLoginTokenCommand.d.ts +3 -3
  79. package/{dist/types → dist-types}/ts3.4/commands/DeleteEnvironmentCommand.d.ts +3 -3
  80. package/{dist/types → dist-types}/ts3.4/commands/GetEnvironmentCommand.d.ts +3 -3
  81. package/{dist/types → dist-types}/ts3.4/commands/ListEnvironmentsCommand.d.ts +3 -3
  82. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +3 -3
  83. package/{dist/types → dist-types}/ts3.4/commands/PublishMetricsCommand.d.ts +3 -3
  84. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +3 -3
  85. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
  86. package/{dist/types → dist-types}/ts3.4/commands/UpdateEnvironmentCommand.d.ts +3 -3
  87. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  88. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  89. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  90. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  91. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  92. package/{dist/types → dist-types}/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +1 -1
  93. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  94. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  95. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  96. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  97. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  98. package/package.json +52 -49
  99. package/MWAA.ts +0 -405
  100. package/MWAAClient.ts +0 -275
  101. package/commands/CreateCliTokenCommand.ts +0 -94
  102. package/commands/CreateEnvironmentCommand.ts +0 -94
  103. package/commands/CreateWebLoginTokenCommand.ts +0 -94
  104. package/commands/DeleteEnvironmentCommand.ts +0 -94
  105. package/commands/GetEnvironmentCommand.ts +0 -94
  106. package/commands/ListEnvironmentsCommand.ts +0 -94
  107. package/commands/ListTagsForResourceCommand.ts +0 -94
  108. package/commands/PublishMetricsCommand.ts +0 -94
  109. package/commands/TagResourceCommand.ts +0 -94
  110. package/commands/UntagResourceCommand.ts +0 -94
  111. package/commands/UpdateEnvironmentCommand.ts +0 -94
  112. package/dist/cjs/MWAA.js.map +0 -1
  113. package/dist/cjs/MWAAClient.js.map +0 -1
  114. package/dist/cjs/commands/CreateCliTokenCommand.js.map +0 -1
  115. package/dist/cjs/commands/CreateEnvironmentCommand.js.map +0 -1
  116. package/dist/cjs/commands/CreateWebLoginTokenCommand.js.map +0 -1
  117. package/dist/cjs/commands/DeleteEnvironmentCommand.js.map +0 -1
  118. package/dist/cjs/commands/GetEnvironmentCommand.js.map +0 -1
  119. package/dist/cjs/commands/ListEnvironmentsCommand.js.map +0 -1
  120. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  121. package/dist/cjs/commands/PublishMetricsCommand.js.map +0 -1
  122. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  123. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  124. package/dist/cjs/commands/UpdateEnvironmentCommand.js.map +0 -1
  125. package/dist/cjs/endpoints.js.map +0 -1
  126. package/dist/cjs/index.js.map +0 -1
  127. package/dist/cjs/models/index.js.map +0 -1
  128. package/dist/cjs/models/models_0.js.map +0 -1
  129. package/dist/cjs/package.json +0 -91
  130. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  131. package/dist/cjs/pagination/ListEnvironmentsPaginator.js.map +0 -1
  132. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  133. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  134. package/dist/cjs/runtimeConfig.js.map +0 -1
  135. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  136. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  137. package/dist/es/MWAA.js.map +0 -1
  138. package/dist/es/MWAAClient.js.map +0 -1
  139. package/dist/es/commands/CreateCliTokenCommand.js.map +0 -1
  140. package/dist/es/commands/CreateEnvironmentCommand.js.map +0 -1
  141. package/dist/es/commands/CreateWebLoginTokenCommand.js.map +0 -1
  142. package/dist/es/commands/DeleteEnvironmentCommand.js.map +0 -1
  143. package/dist/es/commands/GetEnvironmentCommand.js.map +0 -1
  144. package/dist/es/commands/ListEnvironmentsCommand.js.map +0 -1
  145. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  146. package/dist/es/commands/PublishMetricsCommand.js.map +0 -1
  147. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  148. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  149. package/dist/es/commands/UpdateEnvironmentCommand.js.map +0 -1
  150. package/dist/es/endpoints.js.map +0 -1
  151. package/dist/es/index.js +0 -17
  152. package/dist/es/index.js.map +0 -1
  153. package/dist/es/models/index.js +0 -2
  154. package/dist/es/models/index.js.map +0 -1
  155. package/dist/es/models/models_0.js.map +0 -1
  156. package/dist/es/package.json +0 -91
  157. package/dist/es/pagination/Interfaces.js +0 -2
  158. package/dist/es/pagination/Interfaces.js.map +0 -1
  159. package/dist/es/pagination/ListEnvironmentsPaginator.js.map +0 -1
  160. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  161. package/dist/es/runtimeConfig.browser.js.map +0 -1
  162. package/dist/es/runtimeConfig.js.map +0 -1
  163. package/dist/es/runtimeConfig.native.js.map +0 -1
  164. package/dist/es/runtimeConfig.shared.js.map +0 -1
  165. package/endpoints.ts +0 -57
  166. package/jest.config.js +0 -4
  167. package/models/models_0.ts +0 -1206
  168. package/pagination/Interfaces.ts +0 -7
  169. package/pagination/ListEnvironmentsPaginator.ts +0 -58
  170. package/protocols/Aws_restJson1.ts +0 -1771
  171. package/runtimeConfig.browser.ts +0 -40
  172. package/runtimeConfig.native.ts +0 -16
  173. package/runtimeConfig.shared.ts +0 -16
  174. package/runtimeConfig.ts +0 -45
  175. package/tsconfig.es.json +0 -12
  176. package/tsconfig.json +0 -32
@@ -1,94 +0,0 @@
1
- import { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
2
- import { CreateCliTokenRequest, CreateCliTokenResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1CreateCliTokenCommand,
5
- serializeAws_restJson1CreateCliTokenCommand,
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 CreateCliTokenCommandInput extends CreateCliTokenRequest {}
21
- export interface CreateCliTokenCommandOutput extends CreateCliTokenResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Create a CLI token to use Airflow CLI.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MWAAClient, CreateCliTokenCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
29
- * // const { MWAAClient, CreateCliTokenCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
30
- * const client = new MWAAClient(config);
31
- * const command = new CreateCliTokenCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link CreateCliTokenCommandInput} for command's `input` shape.
36
- * @see {@link CreateCliTokenCommandOutput} for command's `response` shape.
37
- * @see {@link MWAAClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class CreateCliTokenCommand extends $Command<
41
- CreateCliTokenCommandInput,
42
- CreateCliTokenCommandOutput,
43
- MWAAClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: CreateCliTokenCommandInput) {
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: MWAAClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<CreateCliTokenCommandInput, CreateCliTokenCommandOutput> {
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 = "MWAAClient";
68
- const commandName = "CreateCliTokenCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: CreateCliTokenRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: CreateCliTokenResponse.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: CreateCliTokenCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1CreateCliTokenCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateCliTokenCommandOutput> {
89
- return deserializeAws_restJson1CreateCliTokenCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
2
- import { CreateEnvironmentInput, CreateEnvironmentOutput } 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 CreateEnvironmentInput {}
21
- export interface CreateEnvironmentCommandOutput extends CreateEnvironmentOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MWAAClient, CreateEnvironmentCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
29
- * // const { MWAAClient, CreateEnvironmentCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
30
- * const client = new MWAAClient(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 MWAAClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class CreateEnvironmentCommand extends $Command<
41
- CreateEnvironmentCommandInput,
42
- CreateEnvironmentCommandOutput,
43
- MWAAClientResolvedConfig
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: MWAAClientResolvedConfig,
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 = "MWAAClient";
68
- const commandName = "CreateEnvironmentCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: CreateEnvironmentInput.filterSensitiveLog,
74
- outputFilterSensitiveLog: CreateEnvironmentOutput.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 { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
2
- import { CreateWebLoginTokenRequest, CreateWebLoginTokenResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1CreateWebLoginTokenCommand,
5
- serializeAws_restJson1CreateWebLoginTokenCommand,
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 CreateWebLoginTokenCommandInput extends CreateWebLoginTokenRequest {}
21
- export interface CreateWebLoginTokenCommandOutput extends CreateWebLoginTokenResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Create a JWT token to be used to login to Airflow Web UI with claims based Authentication.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MWAAClient, CreateWebLoginTokenCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
29
- * // const { MWAAClient, CreateWebLoginTokenCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
30
- * const client = new MWAAClient(config);
31
- * const command = new CreateWebLoginTokenCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link CreateWebLoginTokenCommandInput} for command's `input` shape.
36
- * @see {@link CreateWebLoginTokenCommandOutput} for command's `response` shape.
37
- * @see {@link MWAAClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class CreateWebLoginTokenCommand extends $Command<
41
- CreateWebLoginTokenCommandInput,
42
- CreateWebLoginTokenCommandOutput,
43
- MWAAClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: CreateWebLoginTokenCommandInput) {
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: MWAAClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<CreateWebLoginTokenCommandInput, CreateWebLoginTokenCommandOutput> {
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 = "MWAAClient";
68
- const commandName = "CreateWebLoginTokenCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: CreateWebLoginTokenRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: CreateWebLoginTokenResponse.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: CreateWebLoginTokenCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1CreateWebLoginTokenCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateWebLoginTokenCommandOutput> {
89
- return deserializeAws_restJson1CreateWebLoginTokenCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
2
- import { DeleteEnvironmentInput, DeleteEnvironmentOutput } 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 DeleteEnvironmentInput {}
21
- export interface DeleteEnvironmentCommandOutput extends DeleteEnvironmentOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MWAAClient, DeleteEnvironmentCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
29
- * // const { MWAAClient, DeleteEnvironmentCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
30
- * const client = new MWAAClient(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 MWAAClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DeleteEnvironmentCommand extends $Command<
41
- DeleteEnvironmentCommandInput,
42
- DeleteEnvironmentCommandOutput,
43
- MWAAClientResolvedConfig
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: MWAAClientResolvedConfig,
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 = "MWAAClient";
68
- const commandName = "DeleteEnvironmentCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: DeleteEnvironmentInput.filterSensitiveLog,
74
- outputFilterSensitiveLog: DeleteEnvironmentOutput.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 { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
2
- import { GetEnvironmentInput, GetEnvironmentOutput } 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 GetEnvironmentInput {}
21
- export interface GetEnvironmentCommandOutput extends GetEnvironmentOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Retrieves the details of an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MWAAClient, GetEnvironmentCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
29
- * // const { MWAAClient, GetEnvironmentCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
30
- * const client = new MWAAClient(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 MWAAClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class GetEnvironmentCommand extends $Command<
41
- GetEnvironmentCommandInput,
42
- GetEnvironmentCommandOutput,
43
- MWAAClientResolvedConfig
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: MWAAClientResolvedConfig,
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 = "MWAAClient";
68
- const commandName = "GetEnvironmentCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: GetEnvironmentInput.filterSensitiveLog,
74
- outputFilterSensitiveLog: GetEnvironmentOutput.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 { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
2
- import { ListEnvironmentsInput, ListEnvironmentsOutput } 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 ListEnvironmentsInput {}
21
- export interface ListEnvironmentsCommandOutput extends ListEnvironmentsOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MWAAClient, ListEnvironmentsCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
29
- * // const { MWAAClient, ListEnvironmentsCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
30
- * const client = new MWAAClient(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 MWAAClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class ListEnvironmentsCommand extends $Command<
41
- ListEnvironmentsCommandInput,
42
- ListEnvironmentsCommandOutput,
43
- MWAAClientResolvedConfig
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: MWAAClientResolvedConfig,
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 = "MWAAClient";
68
- const commandName = "ListEnvironmentsCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: ListEnvironmentsInput.filterSensitiveLog,
74
- outputFilterSensitiveLog: ListEnvironmentsOutput.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
- }
@@ -1,94 +0,0 @@
1
- import { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
2
- import { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1ListTagsForResourceCommand,
5
- serializeAws_restJson1ListTagsForResourceCommand,
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 ListTagsForResourceCommandInput extends ListTagsForResourceInput {}
21
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, <code>"Environment": "Staging"</code>. </p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MWAAClient, ListTagsForResourceCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
29
- * // const { MWAAClient, ListTagsForResourceCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
30
- * const client = new MWAAClient(config);
31
- * const command = new ListTagsForResourceCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
36
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
37
- * @see {@link MWAAClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class ListTagsForResourceCommand extends $Command<
41
- ListTagsForResourceCommandInput,
42
- ListTagsForResourceCommandOutput,
43
- MWAAClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: ListTagsForResourceCommandInput) {
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: MWAAClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
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 = "MWAAClient";
68
- const commandName = "ListTagsForResourceCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: ListTagsForResourceInput.filterSensitiveLog,
74
- outputFilterSensitiveLog: ListTagsForResourceOutput.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: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1ListTagsForResourceCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
89
- return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }