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