@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
@@ -1,1206 +0,0 @@
1
- import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
-
4
- /**
5
- * <p>Access to the Airflow Web UI or CLI has been Denied. Please follow the MWAA user guide to setup permissions to access the Web UI and CLI functionality.</p>
6
- */
7
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
8
- name: "AccessDeniedException";
9
- $fault: "client";
10
- Message?: string;
11
- }
12
-
13
- export namespace AccessDeniedException {
14
- /**
15
- * @internal
16
- */
17
- export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
18
- ...obj,
19
- });
20
- }
21
-
22
- export interface CreateCliTokenRequest {
23
- /**
24
- * <p>Create a CLI token request for a MWAA environment.</p>
25
- */
26
- Name: string | undefined;
27
- }
28
-
29
- export namespace CreateCliTokenRequest {
30
- /**
31
- * @internal
32
- */
33
- export const filterSensitiveLog = (obj: CreateCliTokenRequest): any => ({
34
- ...obj,
35
- });
36
- }
37
-
38
- export interface CreateCliTokenResponse {
39
- /**
40
- * <p>Create an Airflow CLI login token response for the provided JWT token.</p>
41
- */
42
- CliToken?: string;
43
-
44
- /**
45
- * <p>Create an Airflow CLI login token response for the provided webserver hostname.</p>
46
- */
47
- WebServerHostname?: string;
48
- }
49
-
50
- export namespace CreateCliTokenResponse {
51
- /**
52
- * @internal
53
- */
54
- export const filterSensitiveLog = (obj: CreateCliTokenResponse): any => ({
55
- ...obj,
56
- ...(obj.CliToken && { CliToken: SENSITIVE_STRING }),
57
- });
58
- }
59
-
60
- /**
61
- * <p>ResourceNotFoundException: The resource is not available.</p>
62
- */
63
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
64
- name: "ResourceNotFoundException";
65
- $fault: "client";
66
- message?: string;
67
- }
68
-
69
- export namespace ResourceNotFoundException {
70
- /**
71
- * @internal
72
- */
73
- export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
74
- ...obj,
75
- });
76
- }
77
-
78
- export enum LoggingLevel {
79
- CRITICAL = "CRITICAL",
80
- DEBUG = "DEBUG",
81
- ERROR = "ERROR",
82
- INFO = "INFO",
83
- WARNING = "WARNING",
84
- }
85
-
86
- /**
87
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
88
- */
89
- export interface ModuleLoggingConfigurationInput {
90
- /**
91
- * <p>Indicates whether to enable the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>) in CloudWatch Logs.</p>
92
- */
93
- Enabled: boolean | undefined;
94
-
95
- /**
96
- * <p>Defines the Apache Airflow logs to send for the log type (e.g. <code>DagProcessingLogs</code>) to CloudWatch Logs. Valid values: <code>CRITICAL</code>, <code>ERROR</code>, <code>WARNING</code>, <code>INFO</code>.</p>
97
- */
98
- LogLevel: LoggingLevel | string | undefined;
99
- }
100
-
101
- export namespace ModuleLoggingConfigurationInput {
102
- /**
103
- * @internal
104
- */
105
- export const filterSensitiveLog = (obj: ModuleLoggingConfigurationInput): any => ({
106
- ...obj,
107
- });
108
- }
109
-
110
- /**
111
- * <p>Defines the Apache Airflow logs to send to CloudWatch Logs: <code>DagProcessingLogs</code>, <code>SchedulerLogs</code>, <code>TaskLogs</code>, <code>WebserverLogs</code>, <code>WorkerLogs</code>.</p>
112
- */
113
- export interface LoggingConfigurationInput {
114
- /**
115
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
116
- */
117
- DagProcessingLogs?: ModuleLoggingConfigurationInput;
118
-
119
- /**
120
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
121
- */
122
- SchedulerLogs?: ModuleLoggingConfigurationInput;
123
-
124
- /**
125
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
126
- */
127
- WebserverLogs?: ModuleLoggingConfigurationInput;
128
-
129
- /**
130
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
131
- */
132
- WorkerLogs?: ModuleLoggingConfigurationInput;
133
-
134
- /**
135
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
136
- */
137
- TaskLogs?: ModuleLoggingConfigurationInput;
138
- }
139
-
140
- export namespace LoggingConfigurationInput {
141
- /**
142
- * @internal
143
- */
144
- export const filterSensitiveLog = (obj: LoggingConfigurationInput): any => ({
145
- ...obj,
146
- });
147
- }
148
-
149
- /**
150
- * <p>The VPC networking components used to secure and enable network traffic between the AWS resources for your environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
151
- */
152
- export interface NetworkConfiguration {
153
- /**
154
- * <p>A list of 2 subnet IDs. <b>Required</b> to create an environment. Must be private subnets in two different availability zones. A subnet must be attached to the same VPC as the security group.</p>
155
- */
156
- SubnetIds?: string[];
157
-
158
- /**
159
- * <p>A list of 1 or more security group IDs. Accepts up to 5 security group IDs. A security group must be attached to the same VPC as the subnets. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/vpc-security.html">Security in your VPC on Amazon MWAA</a>.</p>
160
- */
161
- SecurityGroupIds?: string[];
162
- }
163
-
164
- export namespace NetworkConfiguration {
165
- /**
166
- * @internal
167
- */
168
- export const filterSensitiveLog = (obj: NetworkConfiguration): any => ({
169
- ...obj,
170
- });
171
- }
172
-
173
- export enum WebserverAccessMode {
174
- PRIVATE_ONLY = "PRIVATE_ONLY",
175
- PUBLIC_ONLY = "PUBLIC_ONLY",
176
- }
177
-
178
- /**
179
- * <p>This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation to create an environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/get-started.html">Get started with Amazon Managed Workflows for Apache Airflow</a>.</p>
180
- */
181
- export interface CreateEnvironmentInput {
182
- /**
183
- * <p>The name of the Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
184
- */
185
- Name: string | undefined;
186
-
187
- /**
188
- * <p>The Amazon Resource Name (ARN) of the execution role for your environment. An execution role is an AWS Identity and Access Management (IAM) role that grants MWAA permission to access AWS services and resources used by your environment. For example, <code>arn:aws:iam::123456789:role/my-execution-role</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html">Amazon MWAA Execution role</a>.</p>
189
- */
190
- ExecutionRoleArn: string | undefined;
191
-
192
- /**
193
- * <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, <code>arn:aws:s3:::my-airflow-bucket-unique-name</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html">Create an Amazon S3 bucket for Amazon MWAA</a>.</p>
194
- */
195
- SourceBucketArn: string | undefined;
196
-
197
- /**
198
- * <p>The relative path to the DAGs folder on your Amazon S3 bucket. For example, <code>dags</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html">Adding or updating DAGs</a>.</p>
199
- */
200
- DagS3Path: string | undefined;
201
-
202
- /**
203
- * <p>The VPC networking components used to secure and enable network traffic between the AWS resources for your environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
204
- */
205
- NetworkConfiguration: NetworkConfiguration | undefined;
206
-
207
- /**
208
- * <p>The relative path to the <code>plugins.zip</code> file on your Amazon S3 bucket. For example, <code>plugins.zip</code>. If specified, then the plugins.zip version is required. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html">Installing custom plugins</a>.</p>
209
- */
210
- PluginsS3Path?: string;
211
-
212
- /**
213
- * <p>The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a plugins.zip file is updated. To learn more, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
214
- */
215
- PluginsS3ObjectVersion?: string;
216
-
217
- /**
218
- * <p>The relative path to the <code>requirements.txt</code> file on your Amazon S3 bucket. For example, <code>requirements.txt</code>. If specified, then a file version is required. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html">Installing Python dependencies</a>.</p>
219
- */
220
- RequirementsS3Path?: string;
221
-
222
- /**
223
- * <p>The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a requirements.txt file is updated. To learn more, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
224
- */
225
- RequirementsS3ObjectVersion?: string;
226
-
227
- /**
228
- * <p>A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html">Apache Airflow configuration options</a>.</p>
229
- */
230
- AirflowConfigurationOptions?: { [key: string]: string };
231
-
232
- /**
233
- * <p>The environment class type. Valid values: <code>mw1.small</code>, <code>mw1.medium</code>, <code>mw1.large</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html">Amazon MWAA environment class</a>.</p>
234
- */
235
- EnvironmentClass?: string;
236
-
237
- /**
238
- * <p>The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. For example, <code>20</code>. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in <code>MinWorkers</code>.</p>
239
- */
240
- MaxWorkers?: number;
241
-
242
- /**
243
- * <p>The AWS Key Management Service (KMS) key to encrypt the data in your environment. You can use an AWS owned CMK, or a Customer managed CMK (advanced). To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/get-started.html">Get started with Amazon Managed Workflows for Apache Airflow</a>.</p>
244
- */
245
- KmsKey?: string;
246
-
247
- /**
248
- * <p>The Apache Airflow version for your environment. For example, <code>v1.10.12</code>. If no value is specified, defaults to the latest version. Valid values: <code>v1.10.12</code>.</p>
249
- */
250
- AirflowVersion?: string;
251
-
252
- /**
253
- * <p>Defines the Apache Airflow logs to send to CloudWatch Logs: <code>DagProcessingLogs</code>, <code>SchedulerLogs</code>, <code>TaskLogs</code>, <code>WebserverLogs</code>, <code>WorkerLogs</code>.</p>
254
- */
255
- LoggingConfiguration?: LoggingConfigurationInput;
256
-
257
- /**
258
- * <p>The day and time of the week to start weekly maintenance updates of your environment in the following format: <code>DAY:HH:MM</code>. For example: <code>TUE:03:30</code>. You can specify a start time in 30 minute increments only. Supported input includes the following:</p>
259
- * <ul>
260
- * <li>
261
- * <p>MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\d|2[0-3]):(00|30)</p>
262
- * </li>
263
- * </ul>
264
- */
265
- WeeklyMaintenanceWindowStart?: string;
266
-
267
- /**
268
- * <p>The key-value tag pairs you want to associate to your environment. For example, <code>"Environment": "Staging"</code>. To learn more, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging AWS resources</a>.</p>
269
- */
270
- Tags?: { [key: string]: string };
271
-
272
- /**
273
- * <p>The Apache Airflow <i>Web server</i> access mode. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
274
- */
275
- WebserverAccessMode?: WebserverAccessMode | string;
276
-
277
- /**
278
- * <p>The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the <code>MinWorkers</code> field. For example, <code>2</code>.</p>
279
- */
280
- MinWorkers?: number;
281
-
282
- /**
283
- * <p>The number of Apache Airflow schedulers to run in your environment.</p>
284
- */
285
- Schedulers?: number;
286
- }
287
-
288
- export namespace CreateEnvironmentInput {
289
- /**
290
- * @internal
291
- */
292
- export const filterSensitiveLog = (obj: CreateEnvironmentInput): any => ({
293
- ...obj,
294
- ...(obj.AirflowConfigurationOptions && { AirflowConfigurationOptions: SENSITIVE_STRING }),
295
- });
296
- }
297
-
298
- export interface CreateEnvironmentOutput {
299
- /**
300
- * <p>The Amazon Resource Name (ARN) returned in the response for the environment.</p>
301
- */
302
- Arn?: string;
303
- }
304
-
305
- export namespace CreateEnvironmentOutput {
306
- /**
307
- * @internal
308
- */
309
- export const filterSensitiveLog = (obj: CreateEnvironmentOutput): any => ({
310
- ...obj,
311
- });
312
- }
313
-
314
- /**
315
- * <p>InternalServerException: An internal error has occurred.</p>
316
- */
317
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
318
- name: "InternalServerException";
319
- $fault: "server";
320
- message?: string;
321
- }
322
-
323
- export namespace InternalServerException {
324
- /**
325
- * @internal
326
- */
327
- export const filterSensitiveLog = (obj: InternalServerException): any => ({
328
- ...obj,
329
- });
330
- }
331
-
332
- /**
333
- * <p>ValidationException: The provided input is not valid.</p>
334
- */
335
- export interface ValidationException extends __SmithyException, $MetadataBearer {
336
- name: "ValidationException";
337
- $fault: "client";
338
- message?: string;
339
- }
340
-
341
- export namespace ValidationException {
342
- /**
343
- * @internal
344
- */
345
- export const filterSensitiveLog = (obj: ValidationException): any => ({
346
- ...obj,
347
- });
348
- }
349
-
350
- export interface CreateWebLoginTokenRequest {
351
- /**
352
- * <p>Create an Airflow Web UI login token request for a MWAA environment.</p>
353
- */
354
- Name: string | undefined;
355
- }
356
-
357
- export namespace CreateWebLoginTokenRequest {
358
- /**
359
- * @internal
360
- */
361
- export const filterSensitiveLog = (obj: CreateWebLoginTokenRequest): any => ({
362
- ...obj,
363
- });
364
- }
365
-
366
- export interface CreateWebLoginTokenResponse {
367
- /**
368
- * <p>Create an Airflow Web UI login token response for the provided JWT token.</p>
369
- */
370
- WebToken?: string;
371
-
372
- /**
373
- * <p>Create an Airflow Web UI login token response for the provided webserver hostname.</p>
374
- */
375
- WebServerHostname?: string;
376
- }
377
-
378
- export namespace CreateWebLoginTokenResponse {
379
- /**
380
- * @internal
381
- */
382
- export const filterSensitiveLog = (obj: CreateWebLoginTokenResponse): any => ({
383
- ...obj,
384
- ...(obj.WebToken && { WebToken: SENSITIVE_STRING }),
385
- });
386
- }
387
-
388
- export interface DeleteEnvironmentInput {
389
- /**
390
- * <p>The name of the Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
391
- */
392
- Name: string | undefined;
393
- }
394
-
395
- export namespace DeleteEnvironmentInput {
396
- /**
397
- * @internal
398
- */
399
- export const filterSensitiveLog = (obj: DeleteEnvironmentInput): any => ({
400
- ...obj,
401
- });
402
- }
403
-
404
- export interface DeleteEnvironmentOutput {}
405
-
406
- export namespace DeleteEnvironmentOutput {
407
- /**
408
- * @internal
409
- */
410
- export const filterSensitiveLog = (obj: DeleteEnvironmentOutput): any => ({
411
- ...obj,
412
- });
413
- }
414
-
415
- export interface GetEnvironmentInput {
416
- /**
417
- * <p>The name of the Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
418
- */
419
- Name: string | undefined;
420
- }
421
-
422
- export namespace GetEnvironmentInput {
423
- /**
424
- * @internal
425
- */
426
- export const filterSensitiveLog = (obj: GetEnvironmentInput): any => ({
427
- ...obj,
428
- });
429
- }
430
-
431
- /**
432
- * <p>An object containing the error encountered with the last update: <code>ErrorCode</code>, <code>ErrorMessage</code>.</p>
433
- */
434
- export interface UpdateError {
435
- /**
436
- * <p>The error code that corresponds to the error with the last update.</p>
437
- */
438
- ErrorCode?: string;
439
-
440
- /**
441
- * <p>The error message that corresponds to the error code.</p>
442
- */
443
- ErrorMessage?: string;
444
- }
445
-
446
- export namespace UpdateError {
447
- /**
448
- * @internal
449
- */
450
- export const filterSensitiveLog = (obj: UpdateError): any => ({
451
- ...obj,
452
- });
453
- }
454
-
455
- export enum UpdateStatus {
456
- FAILED = "FAILED",
457
- PENDING = "PENDING",
458
- SUCCESS = "SUCCESS",
459
- }
460
-
461
- /**
462
- * <p>The status of the last update on the environment, and any errors that were encountered.</p>
463
- */
464
- export interface LastUpdate {
465
- /**
466
- * <p>The status of the last update on the environment. Valid values: <code>SUCCESS</code>, <code>PENDING</code>, <code>FAILED</code>.</p>
467
- */
468
- Status?: UpdateStatus | string;
469
-
470
- /**
471
- * <p>The day and time of the last update on the environment.</p>
472
- */
473
- CreatedAt?: Date;
474
-
475
- /**
476
- * <p>The error that was encountered during the last update of the environment.</p>
477
- */
478
- Error?: UpdateError;
479
- }
480
-
481
- export namespace LastUpdate {
482
- /**
483
- * @internal
484
- */
485
- export const filterSensitiveLog = (obj: LastUpdate): any => ({
486
- ...obj,
487
- });
488
- }
489
-
490
- /**
491
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
492
- */
493
- export interface ModuleLoggingConfiguration {
494
- /**
495
- * <p>Indicates whether to enable the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>) in CloudWatch Logs.</p>
496
- */
497
- Enabled?: boolean;
498
-
499
- /**
500
- * <p>Defines the Apache Airflow logs to send for the log type (e.g. <code>DagProcessingLogs</code>) to CloudWatch Logs. Valid values: <code>CRITICAL</code>, <code>ERROR</code>, <code>WARNING</code>, <code>INFO</code>.</p>
501
- */
502
- LogLevel?: LoggingLevel | string;
503
-
504
- /**
505
- * <p>The Amazon Resource Name (ARN) for the CloudWatch Logs group where the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>) is published. For example, <code>arn:aws:logs:us-east-1:123456789012:log-group:airflow-MyMWAAEnvironment-MwaaEnvironment-DAGProcessing:*</code>.</p>
506
- */
507
- CloudWatchLogGroupArn?: string;
508
- }
509
-
510
- export namespace ModuleLoggingConfiguration {
511
- /**
512
- * @internal
513
- */
514
- export const filterSensitiveLog = (obj: ModuleLoggingConfiguration): any => ({
515
- ...obj,
516
- });
517
- }
518
-
519
- /**
520
- * <p>Defines the Apache Airflow logs to send to CloudWatch Logs: <code>DagProcessingLogs</code>, <code>SchedulerLogs</code>, <code>TaskLogs</code>, <code>WebserverLogs</code>, <code>WorkerLogs</code>.</p>
521
- */
522
- export interface LoggingConfiguration {
523
- /**
524
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
525
- */
526
- DagProcessingLogs?: ModuleLoggingConfiguration;
527
-
528
- /**
529
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
530
- */
531
- SchedulerLogs?: ModuleLoggingConfiguration;
532
-
533
- /**
534
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
535
- */
536
- WebserverLogs?: ModuleLoggingConfiguration;
537
-
538
- /**
539
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
540
- */
541
- WorkerLogs?: ModuleLoggingConfiguration;
542
-
543
- /**
544
- * <p>Defines the type of logs to send for the Apache Airflow log type (e.g. <code>DagProcessingLogs</code>). Valid values: <code>CloudWatchLogGroupArn</code>, <code>Enabled</code>, <code>LogLevel</code>.</p>
545
- */
546
- TaskLogs?: ModuleLoggingConfiguration;
547
- }
548
-
549
- export namespace LoggingConfiguration {
550
- /**
551
- * @internal
552
- */
553
- export const filterSensitiveLog = (obj: LoggingConfiguration): any => ({
554
- ...obj,
555
- });
556
- }
557
-
558
- export enum EnvironmentStatus {
559
- AVAILABLE = "AVAILABLE",
560
- CREATE_FAILED = "CREATE_FAILED",
561
- CREATING = "CREATING",
562
- DELETED = "DELETED",
563
- DELETING = "DELETING",
564
- UNAVAILABLE = "UNAVAILABLE",
565
- UPDATE_FAILED = "UPDATE_FAILED",
566
- UPDATING = "UPDATING",
567
- }
568
-
569
- /**
570
- * <p>The Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
571
- */
572
- export interface Environment {
573
- /**
574
- * <p>The name of the Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
575
- */
576
- Name?: string;
577
-
578
- /**
579
- * <p>The status of the Amazon MWAA environment. Valid values:</p>
580
- * <ul>
581
- * <li>
582
- * <p>
583
- * <code>CREATING</code> - Indicates the request to create the environment is in progress.</p>
584
- * </li>
585
- * <li>
586
- * <p>
587
- * <code>CREATE_FAILED</code> - Indicates the request to create the environment failed, and the environment could not be created.</p>
588
- * </li>
589
- * <li>
590
- * <p>
591
- * <code>AVAILABLE</code> - Indicates the request was successful and the environment is ready to use.</p>
592
- * </li>
593
- * <li>
594
- * <p>
595
- * <code>UPDATING</code> - Indicates the request to update the environment is in progress.</p>
596
- * </li>
597
- * <li>
598
- * <p>
599
- * <code>DELETING</code> - Indicates the request to delete the environment is in progress.</p>
600
- * </li>
601
- * <li>
602
- * <p>
603
- * <code>DELETED</code> - Indicates the request to delete the environment is complete, and the environment has been deleted.</p>
604
- * </li>
605
- * <li>
606
- * <p>
607
- * <code>UNAVAILABLE</code> - Indicates the request failed, but the environment was unable to rollback and is not in a stable state.</p>
608
- * </li>
609
- * <li>
610
- * <p>
611
- * <code>UPDATE_FAILED</code> - Indicates the request to update the environment failed, and the environment has rolled back successfully and is ready to use.</p>
612
- * </li>
613
- * </ul>
614
- * <p>We recommend reviewing our troubleshooting guide for a list of common errors and their solutions. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/troubleshooting.html">Amazon MWAA troubleshooting</a>.</p>
615
- */
616
- Status?: EnvironmentStatus | string;
617
-
618
- /**
619
- * <p>The Amazon Resource Name (ARN) of the Amazon MWAA environment.</p>
620
- */
621
- Arn?: string;
622
-
623
- /**
624
- * <p>The day and time the environment was created.</p>
625
- */
626
- CreatedAt?: Date;
627
-
628
- /**
629
- * <p>The Apache Airflow <i>Web server</i> host name for the Amazon MWAA environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/access-airflow-ui.html">Accessing the Apache Airflow UI</a>.</p>
630
- */
631
- WebserverUrl?: string;
632
-
633
- /**
634
- * <p>The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access AWS resources in your environment. For example, <code>arn:aws:iam::123456789:role/my-execution-role</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html">Amazon MWAA Execution role</a>.</p>
635
- */
636
- ExecutionRoleArn?: string;
637
-
638
- /**
639
- * <p>The Amazon Resource Name (ARN) for the service-linked role of the environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-slr.html">Amazon MWAA Service-linked role</a>.</p>
640
- */
641
- ServiceRoleArn?: string;
642
-
643
- /**
644
- * <p>The Key Management Service (KMS) encryption key used to encrypt the data in your environment.</p>
645
- */
646
- KmsKey?: string;
647
-
648
- /**
649
- * <p>The Apache Airflow version on your environment. For example, <code>v1.10.12</code>.</p>
650
- */
651
- AirflowVersion?: string;
652
-
653
- /**
654
- * <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, <code>arn:aws:s3:::my-airflow-bucket-unique-name</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html">Create an Amazon S3 bucket for Amazon MWAA</a>.</p>
655
- */
656
- SourceBucketArn?: string;
657
-
658
- /**
659
- * <p>The relative path to the DAGs folder on your Amazon S3 bucket. For example, <code>dags</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html">Adding or updating DAGs</a>.</p>
660
- */
661
- DagS3Path?: string;
662
-
663
- /**
664
- * <p>The relative path to the <code>plugins.zip</code> file on your Amazon S3 bucket. For example, <code>plugins.zip</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html">Installing custom plugins</a>.</p>
665
- */
666
- PluginsS3Path?: string;
667
-
668
- /**
669
- * <p>The version of the plugins.zip file on your Amazon S3 bucket. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html">Installing custom plugins</a>.</p>
670
- */
671
- PluginsS3ObjectVersion?: string;
672
-
673
- /**
674
- * <p>The relative path to the <code>requirements.txt</code> file on your Amazon S3 bucket. For example, <code>requirements.txt</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html">Installing Python dependencies</a>.</p>
675
- */
676
- RequirementsS3Path?: string;
677
-
678
- /**
679
- * <p>The version of the requirements.txt file on your Amazon S3 bucket. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html">Installing Python dependencies</a>.</p>
680
- */
681
- RequirementsS3ObjectVersion?: string;
682
-
683
- /**
684
- * <p>A list of key-value pairs containing the Apache Airflow configuration options attached to your environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html">Apache Airflow configuration options</a>.</p>
685
- */
686
- AirflowConfigurationOptions?: { [key: string]: string };
687
-
688
- /**
689
- * <p>The environment class type. Valid values: <code>mw1.small</code>, <code>mw1.medium</code>, <code>mw1.large</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html">Amazon MWAA environment class</a>.</p>
690
- */
691
- EnvironmentClass?: string;
692
-
693
- /**
694
- * <p>The maximum number of workers that run in your environment. For example, <code>20</code>.</p>
695
- */
696
- MaxWorkers?: number;
697
-
698
- /**
699
- * <p>The VPC networking components used to secure and enable network traffic between the AWS resources for your environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
700
- */
701
- NetworkConfiguration?: NetworkConfiguration;
702
-
703
- /**
704
- * <p>The Apache Airflow logs being sent to CloudWatch Logs: <code>DagProcessingLogs</code>, <code>SchedulerLogs</code>, <code>TaskLogs</code>, <code>WebserverLogs</code>, <code>WorkerLogs</code>.</p>
705
- */
706
- LoggingConfiguration?: LoggingConfiguration;
707
-
708
- /**
709
- * <p>The status of the last update on the environment, and any errors that were encountered.</p>
710
- */
711
- LastUpdate?: LastUpdate;
712
-
713
- /**
714
- * <p>The day and time of the week that weekly maintenance updates are scheduled. For example: <code>TUE:03:30</code>.</p>
715
- */
716
- WeeklyMaintenanceWindowStart?: string;
717
-
718
- /**
719
- * <p>The key-value tag pairs associated to your environment. For example, <code>"Environment": "Staging"</code>. To learn more, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging AWS resources</a>.</p>
720
- */
721
- Tags?: { [key: string]: string };
722
-
723
- /**
724
- * <p>The Apache Airflow <i>Web server</i> access mode. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
725
- */
726
- WebserverAccessMode?: WebserverAccessMode | string;
727
-
728
- /**
729
- * <p>The minimum number of workers that run in your environment. For example, <code>2</code>.</p>
730
- */
731
- MinWorkers?: number;
732
-
733
- /**
734
- * <p>The number of Apache Airflow schedulers that run in your Amazon MWAA environment.</p>
735
- */
736
- Schedulers?: number;
737
- }
738
-
739
- export namespace Environment {
740
- /**
741
- * @internal
742
- */
743
- export const filterSensitiveLog = (obj: Environment): any => ({
744
- ...obj,
745
- });
746
- }
747
-
748
- export interface GetEnvironmentOutput {
749
- /**
750
- * <p>An object containing all available details about the environment.</p>
751
- */
752
- Environment?: Environment;
753
- }
754
-
755
- export namespace GetEnvironmentOutput {
756
- /**
757
- * @internal
758
- */
759
- export const filterSensitiveLog = (obj: GetEnvironmentOutput): any => ({
760
- ...obj,
761
- });
762
- }
763
-
764
- export interface ListEnvironmentsInput {
765
- /**
766
- * <p>Retrieves the next page of the results.</p>
767
- */
768
- NextToken?: string;
769
-
770
- /**
771
- * <p>The maximum number of results to retrieve per page. For example, <code>5</code> environments per page.</p>
772
- */
773
- MaxResults?: number;
774
- }
775
-
776
- export namespace ListEnvironmentsInput {
777
- /**
778
- * @internal
779
- */
780
- export const filterSensitiveLog = (obj: ListEnvironmentsInput): any => ({
781
- ...obj,
782
- });
783
- }
784
-
785
- export interface ListEnvironmentsOutput {
786
- /**
787
- * <p>Returns the list of Amazon MWAA environments.</p>
788
- */
789
- Environments: string[] | undefined;
790
-
791
- /**
792
- * <p>Retrieves the next page of the results.</p>
793
- */
794
- NextToken?: string;
795
- }
796
-
797
- export namespace ListEnvironmentsOutput {
798
- /**
799
- * @internal
800
- */
801
- export const filterSensitiveLog = (obj: ListEnvironmentsOutput): any => ({
802
- ...obj,
803
- });
804
- }
805
-
806
- export interface ListTagsForResourceInput {
807
- /**
808
- * <p>The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, <code>arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment</code>.</p>
809
- */
810
- ResourceArn: string | undefined;
811
- }
812
-
813
- export namespace ListTagsForResourceInput {
814
- /**
815
- * @internal
816
- */
817
- export const filterSensitiveLog = (obj: ListTagsForResourceInput): any => ({
818
- ...obj,
819
- });
820
- }
821
-
822
- export interface ListTagsForResourceOutput {
823
- /**
824
- * <p>The key-value tag pairs associated to your environment. To learn more, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging AWS resources</a>.</p>
825
- */
826
- Tags?: { [key: string]: string };
827
- }
828
-
829
- export namespace ListTagsForResourceOutput {
830
- /**
831
- * @internal
832
- */
833
- export const filterSensitiveLog = (obj: ListTagsForResourceOutput): any => ({
834
- ...obj,
835
- });
836
- }
837
-
838
- /**
839
- * <p>Internal only API.</p>
840
- */
841
- export interface Dimension {
842
- /**
843
- * <p>Internal only API.</p>
844
- */
845
- Name: string | undefined;
846
-
847
- /**
848
- * <p>Internal only API.</p>
849
- */
850
- Value: string | undefined;
851
- }
852
-
853
- export namespace Dimension {
854
- /**
855
- * @internal
856
- */
857
- export const filterSensitiveLog = (obj: Dimension): any => ({
858
- ...obj,
859
- });
860
- }
861
-
862
- /**
863
- * <p>Internal only API.</p>
864
- */
865
- export interface StatisticSet {
866
- /**
867
- * <p>Internal only API.</p>
868
- */
869
- SampleCount?: number;
870
-
871
- /**
872
- * <p>Internal only API.</p>
873
- */
874
- Sum?: number;
875
-
876
- /**
877
- * <p>Internal only API.</p>
878
- */
879
- Minimum?: number;
880
-
881
- /**
882
- * <p>Internal only API.</p>
883
- */
884
- Maximum?: number;
885
- }
886
-
887
- export namespace StatisticSet {
888
- /**
889
- * @internal
890
- */
891
- export const filterSensitiveLog = (obj: StatisticSet): any => ({
892
- ...obj,
893
- });
894
- }
895
-
896
- export enum Unit {
897
- BITS = "Bits",
898
- BITS_PER_SECOND = "Bits/Second",
899
- BYTES = "Bytes",
900
- BYTES_PER_SECOND = "Bytes/Second",
901
- COUNT = "Count",
902
- COUNT_PER_SECOND = "Count/Second",
903
- GIGABITS = "Gigabits",
904
- GIGABITS_PER_SECOND = "Gigabits/Second",
905
- GIGABYTES = "Gigabytes",
906
- GIGABYTES_PER_SECOND = "Gigabytes/Second",
907
- KILOBITS = "Kilobits",
908
- KILOBITS_PER_SECOND = "Kilobits/Second",
909
- KILOBYTES = "Kilobytes",
910
- KILOBYTES_PER_SECOND = "Kilobytes/Second",
911
- MEGABITS = "Megabits",
912
- MEGABITS_PER_SECOND = "Megabits/Second",
913
- MEGABYTES = "Megabytes",
914
- MEGABYTES_PER_SECOND = "Megabytes/Second",
915
- MICROSECONDS = "Microseconds",
916
- MILLISECONDS = "Milliseconds",
917
- NONE = "None",
918
- PERCENT = "Percent",
919
- SECONDS = "Seconds",
920
- TERABITS = "Terabits",
921
- TERABITS_PER_SECOND = "Terabits/Second",
922
- TERABYTES = "Terabytes",
923
- TERABYTES_PER_SECOND = "Terabytes/Second",
924
- }
925
-
926
- /**
927
- * <p>Internal only API.</p>
928
- */
929
- export interface MetricDatum {
930
- /**
931
- * <p>Internal only API.</p>
932
- */
933
- MetricName: string | undefined;
934
-
935
- /**
936
- * <p>Internal only API.</p>
937
- */
938
- Timestamp: Date | undefined;
939
-
940
- /**
941
- * <p>Internal only API.</p>
942
- */
943
- Dimensions?: Dimension[];
944
-
945
- /**
946
- * <p>Internal only API.</p>
947
- */
948
- Value?: number;
949
-
950
- /**
951
- * Unit
952
- */
953
- Unit?: Unit | string;
954
-
955
- /**
956
- * <p>Internal only API.</p>
957
- */
958
- StatisticValues?: StatisticSet;
959
- }
960
-
961
- export namespace MetricDatum {
962
- /**
963
- * @internal
964
- */
965
- export const filterSensitiveLog = (obj: MetricDatum): any => ({
966
- ...obj,
967
- });
968
- }
969
-
970
- export interface PublishMetricsInput {
971
- /**
972
- * <p>Publishes environment metric data to Amazon CloudWatch.</p>
973
- */
974
- EnvironmentName: string | undefined;
975
-
976
- /**
977
- * <p>Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data points with the specified metrica.</p>
978
- */
979
- MetricData: MetricDatum[] | undefined;
980
- }
981
-
982
- export namespace PublishMetricsInput {
983
- /**
984
- * @internal
985
- */
986
- export const filterSensitiveLog = (obj: PublishMetricsInput): any => ({
987
- ...obj,
988
- });
989
- }
990
-
991
- export interface PublishMetricsOutput {}
992
-
993
- export namespace PublishMetricsOutput {
994
- /**
995
- * @internal
996
- */
997
- export const filterSensitiveLog = (obj: PublishMetricsOutput): any => ({
998
- ...obj,
999
- });
1000
- }
1001
-
1002
- export interface TagResourceInput {
1003
- /**
1004
- * <p>The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, <code>arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment</code>.</p>
1005
- */
1006
- ResourceArn: string | undefined;
1007
-
1008
- /**
1009
- * <p>The key-value tag pairs you want to associate to your environment. For example, <code>"Environment": "Staging"</code>. To learn more, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging AWS resources</a>.</p>
1010
- */
1011
- Tags: { [key: string]: string } | undefined;
1012
- }
1013
-
1014
- export namespace TagResourceInput {
1015
- /**
1016
- * @internal
1017
- */
1018
- export const filterSensitiveLog = (obj: TagResourceInput): any => ({
1019
- ...obj,
1020
- });
1021
- }
1022
-
1023
- export interface TagResourceOutput {}
1024
-
1025
- export namespace TagResourceOutput {
1026
- /**
1027
- * @internal
1028
- */
1029
- export const filterSensitiveLog = (obj: TagResourceOutput): any => ({
1030
- ...obj,
1031
- });
1032
- }
1033
-
1034
- export interface UntagResourceInput {
1035
- /**
1036
- * <p>The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, <code>arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment</code>.</p>
1037
- */
1038
- ResourceArn: string | undefined;
1039
-
1040
- /**
1041
- * <p>The key-value tag pair you want to remove. For example, <code>"Environment": "Staging"</code>. </p>
1042
- */
1043
- tagKeys: string[] | undefined;
1044
- }
1045
-
1046
- export namespace UntagResourceInput {
1047
- /**
1048
- * @internal
1049
- */
1050
- export const filterSensitiveLog = (obj: UntagResourceInput): any => ({
1051
- ...obj,
1052
- });
1053
- }
1054
-
1055
- export interface UntagResourceOutput {}
1056
-
1057
- export namespace UntagResourceOutput {
1058
- /**
1059
- * @internal
1060
- */
1061
- export const filterSensitiveLog = (obj: UntagResourceOutput): any => ({
1062
- ...obj,
1063
- });
1064
- }
1065
-
1066
- /**
1067
- * <p>The VPC networking components used to secure and enable network traffic between the AWS resources for your environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
1068
- */
1069
- export interface UpdateNetworkConfigurationInput {
1070
- /**
1071
- * <p>A list of 1 or more security group IDs. Accepts up to 5 security group IDs. A security group must be attached to the same VPC as the subnets. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/vpc-security.html">Security in your VPC on Amazon MWAA</a>.</p>
1072
- */
1073
- SecurityGroupIds: string[] | undefined;
1074
- }
1075
-
1076
- export namespace UpdateNetworkConfigurationInput {
1077
- /**
1078
- * @internal
1079
- */
1080
- export const filterSensitiveLog = (obj: UpdateNetworkConfigurationInput): any => ({
1081
- ...obj,
1082
- });
1083
- }
1084
-
1085
- export interface UpdateEnvironmentInput {
1086
- /**
1087
- * <p>The name of your Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
1088
- */
1089
- Name: string | undefined;
1090
-
1091
- /**
1092
- * <p>The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access AWS resources in your environment. For example, <code>arn:aws:iam::123456789:role/my-execution-role</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html">Amazon MWAA Execution role</a>.</p>
1093
- */
1094
- ExecutionRoleArn?: string;
1095
-
1096
- /**
1097
- * <p>The Apache Airflow version for your environment. For example, <code>v1.10.12</code>. If no value is specified, defaults to the latest version. Valid values: <code>v1.10.12</code>.</p>
1098
- */
1099
- AirflowVersion?: string;
1100
-
1101
- /**
1102
- * <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, <code>arn:aws:s3:::my-airflow-bucket-unique-name</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html">Create an Amazon S3 bucket for Amazon MWAA</a>.</p>
1103
- */
1104
- SourceBucketArn?: string;
1105
-
1106
- /**
1107
- * <p>The relative path to the DAGs folder on your Amazon S3 bucket. For example, <code>dags</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html">Adding or updating DAGs</a>.</p>
1108
- */
1109
- DagS3Path?: string;
1110
-
1111
- /**
1112
- * <p>The relative path to the <code>plugins.zip</code> file on your Amazon S3 bucket. For example, <code>plugins.zip</code>. If specified, then the plugins.zip version is required. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html">Installing custom plugins</a>.</p>
1113
- */
1114
- PluginsS3Path?: string;
1115
-
1116
- /**
1117
- * <p>The version of the plugins.zip file on your Amazon S3 bucket. A version must be specified each time a plugins.zip file is updated. To learn more, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
1118
- */
1119
- PluginsS3ObjectVersion?: string;
1120
-
1121
- /**
1122
- * <p>The relative path to the <code>requirements.txt</code> file on your Amazon S3 bucket. For example, <code>requirements.txt</code>. If specified, then a file version is required. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html">Installing Python dependencies</a>.</p>
1123
- */
1124
- RequirementsS3Path?: string;
1125
-
1126
- /**
1127
- * <p>The version of the requirements.txt file on your Amazon S3 bucket. A version must be specified each time a requirements.txt file is updated. To learn more, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
1128
- */
1129
- RequirementsS3ObjectVersion?: string;
1130
-
1131
- /**
1132
- * <p>A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html">Apache Airflow configuration options</a>.</p>
1133
- */
1134
- AirflowConfigurationOptions?: { [key: string]: string };
1135
-
1136
- /**
1137
- * <p>The environment class type. Valid values: <code>mw1.small</code>, <code>mw1.medium</code>, <code>mw1.large</code>. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html">Amazon MWAA environment class</a>.</p>
1138
- */
1139
- EnvironmentClass?: string;
1140
-
1141
- /**
1142
- * <p>The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. For example, <code>20</code>. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in <code>MinWorkers</code>.</p>
1143
- */
1144
- MaxWorkers?: number;
1145
-
1146
- /**
1147
- * <p>The VPC networking components used to secure and enable network traffic between the AWS resources for your environment. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
1148
- */
1149
- NetworkConfiguration?: UpdateNetworkConfigurationInput;
1150
-
1151
- /**
1152
- * <p>Defines the Apache Airflow logs to send to CloudWatch Logs: <code>DagProcessingLogs</code>, <code>SchedulerLogs</code>, <code>TaskLogs</code>, <code>WebserverLogs</code>, <code>WorkerLogs</code>.</p>
1153
- */
1154
- LoggingConfiguration?: LoggingConfigurationInput;
1155
-
1156
- /**
1157
- * <p>The day and time of the week to start weekly maintenance updates of your environment in the following format: <code>DAY:HH:MM</code>. For example: <code>TUE:03:30</code>. You can specify a start time in 30 minute increments only. Supported input includes the following:</p>
1158
- * <ul>
1159
- * <li>
1160
- * <p>MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\d|2[0-3]):(00|30)</p>
1161
- * </li>
1162
- * </ul>
1163
- */
1164
- WeeklyMaintenanceWindowStart?: string;
1165
-
1166
- /**
1167
- * <p>The Apache Airflow <i>Web server</i> access mode. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
1168
- */
1169
- WebserverAccessMode?: WebserverAccessMode | string;
1170
-
1171
- /**
1172
- * <p>The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the <code>MinWorkers</code> field. For example, <code>2</code>.</p>
1173
- */
1174
- MinWorkers?: number;
1175
-
1176
- /**
1177
- * <p>The number of Apache Airflow schedulers to run in your Amazon MWAA environment.</p>
1178
- */
1179
- Schedulers?: number;
1180
- }
1181
-
1182
- export namespace UpdateEnvironmentInput {
1183
- /**
1184
- * @internal
1185
- */
1186
- export const filterSensitiveLog = (obj: UpdateEnvironmentInput): any => ({
1187
- ...obj,
1188
- ...(obj.AirflowConfigurationOptions && { AirflowConfigurationOptions: SENSITIVE_STRING }),
1189
- });
1190
- }
1191
-
1192
- export interface UpdateEnvironmentOutput {
1193
- /**
1194
- * <p>The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, <code>arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment</code>.</p>
1195
- */
1196
- Arn?: string;
1197
- }
1198
-
1199
- export namespace UpdateEnvironmentOutput {
1200
- /**
1201
- * @internal
1202
- */
1203
- export const filterSensitiveLog = (obj: UpdateEnvironmentOutput): any => ({
1204
- ...obj,
1205
- });
1206
- }