@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
package/MWAA.ts DELETED
@@ -1,405 +0,0 @@
1
- import { MWAAClient } from "./MWAAClient";
2
- import {
3
- CreateCliTokenCommand,
4
- CreateCliTokenCommandInput,
5
- CreateCliTokenCommandOutput,
6
- } from "./commands/CreateCliTokenCommand";
7
- import {
8
- CreateEnvironmentCommand,
9
- CreateEnvironmentCommandInput,
10
- CreateEnvironmentCommandOutput,
11
- } from "./commands/CreateEnvironmentCommand";
12
- import {
13
- CreateWebLoginTokenCommand,
14
- CreateWebLoginTokenCommandInput,
15
- CreateWebLoginTokenCommandOutput,
16
- } from "./commands/CreateWebLoginTokenCommand";
17
- import {
18
- DeleteEnvironmentCommand,
19
- DeleteEnvironmentCommandInput,
20
- DeleteEnvironmentCommandOutput,
21
- } from "./commands/DeleteEnvironmentCommand";
22
- import {
23
- GetEnvironmentCommand,
24
- GetEnvironmentCommandInput,
25
- GetEnvironmentCommandOutput,
26
- } from "./commands/GetEnvironmentCommand";
27
- import {
28
- ListEnvironmentsCommand,
29
- ListEnvironmentsCommandInput,
30
- ListEnvironmentsCommandOutput,
31
- } from "./commands/ListEnvironmentsCommand";
32
- import {
33
- ListTagsForResourceCommand,
34
- ListTagsForResourceCommandInput,
35
- ListTagsForResourceCommandOutput,
36
- } from "./commands/ListTagsForResourceCommand";
37
- import {
38
- PublishMetricsCommand,
39
- PublishMetricsCommandInput,
40
- PublishMetricsCommandOutput,
41
- } from "./commands/PublishMetricsCommand";
42
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
43
- import {
44
- UntagResourceCommand,
45
- UntagResourceCommandInput,
46
- UntagResourceCommandOutput,
47
- } from "./commands/UntagResourceCommand";
48
- import {
49
- UpdateEnvironmentCommand,
50
- UpdateEnvironmentCommandInput,
51
- UpdateEnvironmentCommandOutput,
52
- } from "./commands/UpdateEnvironmentCommand";
53
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
54
-
55
- /**
56
- * <fullname>Amazon Managed Workflows for Apache Airflow</fullname>
57
- * <p>This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/what-is-mwaa.html">What Is Amazon MWAA?</a>.</p>
58
- */
59
- export class MWAA extends MWAAClient {
60
- /**
61
- * <p>Create a CLI token to use Airflow CLI.</p>
62
- */
63
- public createCliToken(
64
- args: CreateCliTokenCommandInput,
65
- options?: __HttpHandlerOptions
66
- ): Promise<CreateCliTokenCommandOutput>;
67
- public createCliToken(
68
- args: CreateCliTokenCommandInput,
69
- cb: (err: any, data?: CreateCliTokenCommandOutput) => void
70
- ): void;
71
- public createCliToken(
72
- args: CreateCliTokenCommandInput,
73
- options: __HttpHandlerOptions,
74
- cb: (err: any, data?: CreateCliTokenCommandOutput) => void
75
- ): void;
76
- public createCliToken(
77
- args: CreateCliTokenCommandInput,
78
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateCliTokenCommandOutput) => void),
79
- cb?: (err: any, data?: CreateCliTokenCommandOutput) => void
80
- ): Promise<CreateCliTokenCommandOutput> | void {
81
- const command = new CreateCliTokenCommand(args);
82
- if (typeof optionsOrCb === "function") {
83
- this.send(command, optionsOrCb);
84
- } else if (typeof cb === "function") {
85
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
- this.send(command, optionsOrCb || {}, cb);
87
- } else {
88
- return this.send(command, optionsOrCb);
89
- }
90
- }
91
-
92
- /**
93
- * <p>Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
94
- */
95
- public createEnvironment(
96
- args: CreateEnvironmentCommandInput,
97
- options?: __HttpHandlerOptions
98
- ): Promise<CreateEnvironmentCommandOutput>;
99
- public createEnvironment(
100
- args: CreateEnvironmentCommandInput,
101
- cb: (err: any, data?: CreateEnvironmentCommandOutput) => void
102
- ): void;
103
- public createEnvironment(
104
- args: CreateEnvironmentCommandInput,
105
- options: __HttpHandlerOptions,
106
- cb: (err: any, data?: CreateEnvironmentCommandOutput) => void
107
- ): void;
108
- public createEnvironment(
109
- args: CreateEnvironmentCommandInput,
110
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateEnvironmentCommandOutput) => void),
111
- cb?: (err: any, data?: CreateEnvironmentCommandOutput) => void
112
- ): Promise<CreateEnvironmentCommandOutput> | void {
113
- const command = new CreateEnvironmentCommand(args);
114
- if (typeof optionsOrCb === "function") {
115
- this.send(command, optionsOrCb);
116
- } else if (typeof cb === "function") {
117
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
118
- this.send(command, optionsOrCb || {}, cb);
119
- } else {
120
- return this.send(command, optionsOrCb);
121
- }
122
- }
123
-
124
- /**
125
- * <p>Create a JWT token to be used to login to Airflow Web UI with claims based Authentication.</p>
126
- */
127
- public createWebLoginToken(
128
- args: CreateWebLoginTokenCommandInput,
129
- options?: __HttpHandlerOptions
130
- ): Promise<CreateWebLoginTokenCommandOutput>;
131
- public createWebLoginToken(
132
- args: CreateWebLoginTokenCommandInput,
133
- cb: (err: any, data?: CreateWebLoginTokenCommandOutput) => void
134
- ): void;
135
- public createWebLoginToken(
136
- args: CreateWebLoginTokenCommandInput,
137
- options: __HttpHandlerOptions,
138
- cb: (err: any, data?: CreateWebLoginTokenCommandOutput) => void
139
- ): void;
140
- public createWebLoginToken(
141
- args: CreateWebLoginTokenCommandInput,
142
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateWebLoginTokenCommandOutput) => void),
143
- cb?: (err: any, data?: CreateWebLoginTokenCommandOutput) => void
144
- ): Promise<CreateWebLoginTokenCommandOutput> | void {
145
- const command = new CreateWebLoginTokenCommand(args);
146
- if (typeof optionsOrCb === "function") {
147
- this.send(command, optionsOrCb);
148
- } else if (typeof cb === "function") {
149
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- } else {
152
- return this.send(command, optionsOrCb);
153
- }
154
- }
155
-
156
- /**
157
- * <p>Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
158
- */
159
- public deleteEnvironment(
160
- args: DeleteEnvironmentCommandInput,
161
- options?: __HttpHandlerOptions
162
- ): Promise<DeleteEnvironmentCommandOutput>;
163
- public deleteEnvironment(
164
- args: DeleteEnvironmentCommandInput,
165
- cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void
166
- ): void;
167
- public deleteEnvironment(
168
- args: DeleteEnvironmentCommandInput,
169
- options: __HttpHandlerOptions,
170
- cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void
171
- ): void;
172
- public deleteEnvironment(
173
- args: DeleteEnvironmentCommandInput,
174
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteEnvironmentCommandOutput) => void),
175
- cb?: (err: any, data?: DeleteEnvironmentCommandOutput) => void
176
- ): Promise<DeleteEnvironmentCommandOutput> | void {
177
- const command = new DeleteEnvironmentCommand(args);
178
- if (typeof optionsOrCb === "function") {
179
- this.send(command, optionsOrCb);
180
- } else if (typeof cb === "function") {
181
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
- this.send(command, optionsOrCb || {}, cb);
183
- } else {
184
- return this.send(command, optionsOrCb);
185
- }
186
- }
187
-
188
- /**
189
- * <p>Retrieves the details of an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
190
- */
191
- public getEnvironment(
192
- args: GetEnvironmentCommandInput,
193
- options?: __HttpHandlerOptions
194
- ): Promise<GetEnvironmentCommandOutput>;
195
- public getEnvironment(
196
- args: GetEnvironmentCommandInput,
197
- cb: (err: any, data?: GetEnvironmentCommandOutput) => void
198
- ): void;
199
- public getEnvironment(
200
- args: GetEnvironmentCommandInput,
201
- options: __HttpHandlerOptions,
202
- cb: (err: any, data?: GetEnvironmentCommandOutput) => void
203
- ): void;
204
- public getEnvironment(
205
- args: GetEnvironmentCommandInput,
206
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetEnvironmentCommandOutput) => void),
207
- cb?: (err: any, data?: GetEnvironmentCommandOutput) => void
208
- ): Promise<GetEnvironmentCommandOutput> | void {
209
- const command = new GetEnvironmentCommand(args);
210
- if (typeof optionsOrCb === "function") {
211
- this.send(command, optionsOrCb);
212
- } else if (typeof cb === "function") {
213
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
- this.send(command, optionsOrCb || {}, cb);
215
- } else {
216
- return this.send(command, optionsOrCb);
217
- }
218
- }
219
-
220
- /**
221
- * <p>Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.</p>
222
- */
223
- public listEnvironments(
224
- args: ListEnvironmentsCommandInput,
225
- options?: __HttpHandlerOptions
226
- ): Promise<ListEnvironmentsCommandOutput>;
227
- public listEnvironments(
228
- args: ListEnvironmentsCommandInput,
229
- cb: (err: any, data?: ListEnvironmentsCommandOutput) => void
230
- ): void;
231
- public listEnvironments(
232
- args: ListEnvironmentsCommandInput,
233
- options: __HttpHandlerOptions,
234
- cb: (err: any, data?: ListEnvironmentsCommandOutput) => void
235
- ): void;
236
- public listEnvironments(
237
- args: ListEnvironmentsCommandInput,
238
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEnvironmentsCommandOutput) => void),
239
- cb?: (err: any, data?: ListEnvironmentsCommandOutput) => void
240
- ): Promise<ListEnvironmentsCommandOutput> | void {
241
- const command = new ListEnvironmentsCommand(args);
242
- if (typeof optionsOrCb === "function") {
243
- this.send(command, optionsOrCb);
244
- } else if (typeof cb === "function") {
245
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
- this.send(command, optionsOrCb || {}, cb);
247
- } else {
248
- return this.send(command, optionsOrCb);
249
- }
250
- }
251
-
252
- /**
253
- * <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>
254
- */
255
- public listTagsForResource(
256
- args: ListTagsForResourceCommandInput,
257
- options?: __HttpHandlerOptions
258
- ): Promise<ListTagsForResourceCommandOutput>;
259
- public listTagsForResource(
260
- args: ListTagsForResourceCommandInput,
261
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
262
- ): void;
263
- public listTagsForResource(
264
- args: ListTagsForResourceCommandInput,
265
- options: __HttpHandlerOptions,
266
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
267
- ): void;
268
- public listTagsForResource(
269
- args: ListTagsForResourceCommandInput,
270
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
271
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
272
- ): Promise<ListTagsForResourceCommandOutput> | void {
273
- const command = new ListTagsForResourceCommand(args);
274
- if (typeof optionsOrCb === "function") {
275
- this.send(command, optionsOrCb);
276
- } else if (typeof cb === "function") {
277
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
- this.send(command, optionsOrCb || {}, cb);
279
- } else {
280
- return this.send(command, optionsOrCb);
281
- }
282
- }
283
-
284
- /**
285
- * An operation for publishing metrics from the customers to the Ops plane.
286
- */
287
- public publishMetrics(
288
- args: PublishMetricsCommandInput,
289
- options?: __HttpHandlerOptions
290
- ): Promise<PublishMetricsCommandOutput>;
291
- public publishMetrics(
292
- args: PublishMetricsCommandInput,
293
- cb: (err: any, data?: PublishMetricsCommandOutput) => void
294
- ): void;
295
- public publishMetrics(
296
- args: PublishMetricsCommandInput,
297
- options: __HttpHandlerOptions,
298
- cb: (err: any, data?: PublishMetricsCommandOutput) => void
299
- ): void;
300
- public publishMetrics(
301
- args: PublishMetricsCommandInput,
302
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PublishMetricsCommandOutput) => void),
303
- cb?: (err: any, data?: PublishMetricsCommandOutput) => void
304
- ): Promise<PublishMetricsCommandOutput> | void {
305
- const command = new PublishMetricsCommand(args);
306
- if (typeof optionsOrCb === "function") {
307
- this.send(command, optionsOrCb);
308
- } else if (typeof cb === "function") {
309
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
310
- this.send(command, optionsOrCb || {}, cb);
311
- } else {
312
- return this.send(command, optionsOrCb);
313
- }
314
- }
315
-
316
- /**
317
- * <p>Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. </p>
318
- */
319
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
320
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
321
- public tagResource(
322
- args: TagResourceCommandInput,
323
- options: __HttpHandlerOptions,
324
- cb: (err: any, data?: TagResourceCommandOutput) => void
325
- ): void;
326
- public tagResource(
327
- args: TagResourceCommandInput,
328
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
329
- cb?: (err: any, data?: TagResourceCommandOutput) => void
330
- ): Promise<TagResourceCommandOutput> | void {
331
- const command = new TagResourceCommand(args);
332
- if (typeof optionsOrCb === "function") {
333
- this.send(command, optionsOrCb);
334
- } else if (typeof cb === "function") {
335
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
336
- this.send(command, optionsOrCb || {}, cb);
337
- } else {
338
- return this.send(command, optionsOrCb);
339
- }
340
- }
341
-
342
- /**
343
- * <p>Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, <code>"Environment": "Staging"</code>.</p>
344
- */
345
- public untagResource(
346
- args: UntagResourceCommandInput,
347
- options?: __HttpHandlerOptions
348
- ): Promise<UntagResourceCommandOutput>;
349
- public untagResource(
350
- args: UntagResourceCommandInput,
351
- cb: (err: any, data?: UntagResourceCommandOutput) => void
352
- ): void;
353
- public untagResource(
354
- args: UntagResourceCommandInput,
355
- options: __HttpHandlerOptions,
356
- cb: (err: any, data?: UntagResourceCommandOutput) => void
357
- ): void;
358
- public untagResource(
359
- args: UntagResourceCommandInput,
360
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
361
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
362
- ): Promise<UntagResourceCommandOutput> | void {
363
- const command = new UntagResourceCommand(args);
364
- if (typeof optionsOrCb === "function") {
365
- this.send(command, optionsOrCb);
366
- } else if (typeof cb === "function") {
367
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
- this.send(command, optionsOrCb || {}, cb);
369
- } else {
370
- return this.send(command, optionsOrCb);
371
- }
372
- }
373
-
374
- /**
375
- * <p>Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
376
- */
377
- public updateEnvironment(
378
- args: UpdateEnvironmentCommandInput,
379
- options?: __HttpHandlerOptions
380
- ): Promise<UpdateEnvironmentCommandOutput>;
381
- public updateEnvironment(
382
- args: UpdateEnvironmentCommandInput,
383
- cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void
384
- ): void;
385
- public updateEnvironment(
386
- args: UpdateEnvironmentCommandInput,
387
- options: __HttpHandlerOptions,
388
- cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void
389
- ): void;
390
- public updateEnvironment(
391
- args: UpdateEnvironmentCommandInput,
392
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateEnvironmentCommandOutput) => void),
393
- cb?: (err: any, data?: UpdateEnvironmentCommandOutput) => void
394
- ): Promise<UpdateEnvironmentCommandOutput> | void {
395
- const command = new UpdateEnvironmentCommand(args);
396
- if (typeof optionsOrCb === "function") {
397
- this.send(command, optionsOrCb);
398
- } else if (typeof cb === "function") {
399
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
400
- this.send(command, optionsOrCb || {}, cb);
401
- } else {
402
- return this.send(command, optionsOrCb);
403
- }
404
- }
405
- }
package/MWAAClient.ts DELETED
@@ -1,275 +0,0 @@
1
- import { CreateCliTokenCommandInput, CreateCliTokenCommandOutput } from "./commands/CreateCliTokenCommand";
2
- import { CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput } from "./commands/CreateEnvironmentCommand";
3
- import {
4
- CreateWebLoginTokenCommandInput,
5
- CreateWebLoginTokenCommandOutput,
6
- } from "./commands/CreateWebLoginTokenCommand";
7
- import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from "./commands/DeleteEnvironmentCommand";
8
- import { GetEnvironmentCommandInput, GetEnvironmentCommandOutput } from "./commands/GetEnvironmentCommand";
9
- import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "./commands/ListEnvironmentsCommand";
10
- import {
11
- ListTagsForResourceCommandInput,
12
- ListTagsForResourceCommandOutput,
13
- } from "./commands/ListTagsForResourceCommand";
14
- import { PublishMetricsCommandInput, PublishMetricsCommandOutput } from "./commands/PublishMetricsCommand";
15
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
16
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
17
- import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "./commands/UpdateEnvironmentCommand";
18
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
19
- import {
20
- EndpointsInputConfig,
21
- EndpointsResolvedConfig,
22
- RegionInputConfig,
23
- RegionResolvedConfig,
24
- resolveEndpointsConfig,
25
- resolveRegionConfig,
26
- } from "@aws-sdk/config-resolver";
27
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
28
- import {
29
- HostHeaderInputConfig,
30
- HostHeaderResolvedConfig,
31
- getHostHeaderPlugin,
32
- resolveHostHeaderConfig,
33
- } from "@aws-sdk/middleware-host-header";
34
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
35
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
36
- import {
37
- AwsAuthInputConfig,
38
- AwsAuthResolvedConfig,
39
- getAwsAuthPlugin,
40
- resolveAwsAuthConfig,
41
- } from "@aws-sdk/middleware-signing";
42
- import {
43
- UserAgentInputConfig,
44
- UserAgentResolvedConfig,
45
- getUserAgentPlugin,
46
- resolveUserAgentConfig,
47
- } from "@aws-sdk/middleware-user-agent";
48
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
49
- import {
50
- Client as __Client,
51
- SmithyConfiguration as __SmithyConfiguration,
52
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
53
- } from "@aws-sdk/smithy-client";
54
- import {
55
- Provider,
56
- RegionInfoProvider,
57
- Credentials as __Credentials,
58
- Decoder as __Decoder,
59
- Encoder as __Encoder,
60
- Hash as __Hash,
61
- HashConstructor as __HashConstructor,
62
- HttpHandlerOptions as __HttpHandlerOptions,
63
- Logger as __Logger,
64
- Provider as __Provider,
65
- StreamCollector as __StreamCollector,
66
- UrlParser as __UrlParser,
67
- UserAgent as __UserAgent,
68
- } from "@aws-sdk/types";
69
-
70
- export type ServiceInputTypes =
71
- | CreateCliTokenCommandInput
72
- | CreateEnvironmentCommandInput
73
- | CreateWebLoginTokenCommandInput
74
- | DeleteEnvironmentCommandInput
75
- | GetEnvironmentCommandInput
76
- | ListEnvironmentsCommandInput
77
- | ListTagsForResourceCommandInput
78
- | PublishMetricsCommandInput
79
- | TagResourceCommandInput
80
- | UntagResourceCommandInput
81
- | UpdateEnvironmentCommandInput;
82
-
83
- export type ServiceOutputTypes =
84
- | CreateCliTokenCommandOutput
85
- | CreateEnvironmentCommandOutput
86
- | CreateWebLoginTokenCommandOutput
87
- | DeleteEnvironmentCommandOutput
88
- | GetEnvironmentCommandOutput
89
- | ListEnvironmentsCommandOutput
90
- | ListTagsForResourceCommandOutput
91
- | PublishMetricsCommandOutput
92
- | TagResourceCommandOutput
93
- | UntagResourceCommandOutput
94
- | UpdateEnvironmentCommandOutput;
95
-
96
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
97
- /**
98
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
99
- */
100
- requestHandler?: __HttpHandler;
101
-
102
- /**
103
- * A constructor for a class implementing the {@link __Hash} interface
104
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
105
- * @internal
106
- */
107
- sha256?: __HashConstructor;
108
-
109
- /**
110
- * The function that will be used to convert strings into HTTP endpoints.
111
- * @internal
112
- */
113
- urlParser?: __UrlParser;
114
-
115
- /**
116
- * A function that can calculate the length of a request body.
117
- * @internal
118
- */
119
- bodyLengthChecker?: (body: any) => number | undefined;
120
-
121
- /**
122
- * A function that converts a stream into an array of bytes.
123
- * @internal
124
- */
125
- streamCollector?: __StreamCollector;
126
-
127
- /**
128
- * The function that will be used to convert a base64-encoded string to a byte array.
129
- * @internal
130
- */
131
- base64Decoder?: __Decoder;
132
-
133
- /**
134
- * The function that will be used to convert binary data to a base64-encoded string.
135
- * @internal
136
- */
137
- base64Encoder?: __Encoder;
138
-
139
- /**
140
- * The function that will be used to convert a UTF8-encoded string to a byte array.
141
- * @internal
142
- */
143
- utf8Decoder?: __Decoder;
144
-
145
- /**
146
- * The function that will be used to convert binary data to a UTF-8 encoded string.
147
- * @internal
148
- */
149
- utf8Encoder?: __Encoder;
150
-
151
- /**
152
- * The runtime environment.
153
- * @internal
154
- */
155
- runtime?: string;
156
-
157
- /**
158
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
159
- * trait of an operation.
160
- */
161
- disableHostPrefix?: boolean;
162
-
163
- /**
164
- * Value for how many times a request will be made at most in case of retry.
165
- */
166
- maxAttempts?: number | __Provider<number>;
167
-
168
- /**
169
- * Specifies which retry algorithm to use.
170
- */
171
- retryMode?: string | __Provider<string>;
172
-
173
- /**
174
- * Optional logger for logging debug/info/warn/error.
175
- */
176
- logger?: __Logger;
177
-
178
- /**
179
- * Unique service identifier.
180
- * @internal
181
- */
182
- serviceId?: string;
183
-
184
- /**
185
- * The AWS region to which this client will send requests
186
- */
187
- region?: string | __Provider<string>;
188
-
189
- /**
190
- * Default credentials provider; Not available in browser runtime.
191
- * @internal
192
- */
193
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
194
-
195
- /**
196
- * Fetch related hostname, signing name or signing region with given region.
197
- * @internal
198
- */
199
- regionInfoProvider?: RegionInfoProvider;
200
-
201
- /**
202
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
203
- * @internal
204
- */
205
- defaultUserAgentProvider?: Provider<__UserAgent>;
206
- }
207
-
208
- type MWAAClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
209
- ClientDefaults &
210
- RegionInputConfig &
211
- EndpointsInputConfig &
212
- RetryInputConfig &
213
- HostHeaderInputConfig &
214
- AwsAuthInputConfig &
215
- UserAgentInputConfig;
216
- /**
217
- * The configuration interface of MWAAClient class constructor that set the region, credentials and other options.
218
- */
219
- export interface MWAAClientConfig extends MWAAClientConfigType {}
220
-
221
- type MWAAClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
222
- Required<ClientDefaults> &
223
- RegionResolvedConfig &
224
- EndpointsResolvedConfig &
225
- RetryResolvedConfig &
226
- HostHeaderResolvedConfig &
227
- AwsAuthResolvedConfig &
228
- UserAgentResolvedConfig;
229
- /**
230
- * The resolved configuration interface of MWAAClient class. This is resolved and normalized from the {@link MWAAClientConfig | constructor configuration interface}.
231
- */
232
- export interface MWAAClientResolvedConfig extends MWAAClientResolvedConfigType {}
233
-
234
- /**
235
- * <fullname>Amazon Managed Workflows for Apache Airflow</fullname>
236
- * <p>This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/what-is-mwaa.html">What Is Amazon MWAA?</a>.</p>
237
- */
238
- export class MWAAClient extends __Client<
239
- __HttpHandlerOptions,
240
- ServiceInputTypes,
241
- ServiceOutputTypes,
242
- MWAAClientResolvedConfig
243
- > {
244
- /**
245
- * The resolved configuration of MWAAClient class. This is resolved and normalized from the {@link MWAAClientConfig | constructor configuration interface}.
246
- */
247
- readonly config: MWAAClientResolvedConfig;
248
-
249
- constructor(configuration: MWAAClientConfig) {
250
- let _config_0 = __getRuntimeConfig(configuration);
251
- let _config_1 = resolveRegionConfig(_config_0);
252
- let _config_2 = resolveEndpointsConfig(_config_1);
253
- let _config_3 = resolveRetryConfig(_config_2);
254
- let _config_4 = resolveHostHeaderConfig(_config_3);
255
- let _config_5 = resolveAwsAuthConfig(_config_4);
256
- let _config_6 = resolveUserAgentConfig(_config_5);
257
- super(_config_6);
258
- this.config = _config_6;
259
- this.middlewareStack.use(getRetryPlugin(this.config));
260
- this.middlewareStack.use(getContentLengthPlugin(this.config));
261
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
262
- this.middlewareStack.use(getLoggerPlugin(this.config));
263
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
264
- this.middlewareStack.use(getUserAgentPlugin(this.config));
265
- }
266
-
267
- /**
268
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
269
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
270
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
271
- */
272
- destroy(): void {
273
- super.destroy();
274
- }
275
- }