aws-sdk-mwaa 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-mwaa.rb +53 -0
- data/lib/aws-sdk-mwaa/client.rb +1002 -0
- data/lib/aws-sdk-mwaa/client_api.rb +499 -0
- data/lib/aws-sdk-mwaa/customizations.rb +0 -0
- data/lib/aws-sdk-mwaa/errors.rb +102 -0
- data/lib/aws-sdk-mwaa/resource.rb +26 -0
- data/lib/aws-sdk-mwaa/types.rb +1303 -0
- metadata +88 -0
File without changes
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::MWAA
|
11
|
+
|
12
|
+
# When MWAA returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::MWAA::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all MWAA errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::MWAA::Errors::ServiceError
|
20
|
+
# # rescues all MWAA API errors
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# ## Request Context
|
25
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
26
|
+
# information about the request that generated the error.
|
27
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
28
|
+
#
|
29
|
+
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
31
|
+
# * {InternalServerException}
|
32
|
+
# * {ResourceNotFoundException}
|
33
|
+
# * {ValidationException}
|
34
|
+
#
|
35
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
36
|
+
# if they are not defined above.
|
37
|
+
module Errors
|
38
|
+
|
39
|
+
extend Aws::Errors::DynamicErrors
|
40
|
+
|
41
|
+
class AccessDeniedException < ServiceError
|
42
|
+
|
43
|
+
# @param [Seahorse::Client::RequestContext] context
|
44
|
+
# @param [String] message
|
45
|
+
# @param [Aws::MWAA::Types::AccessDeniedException] data
|
46
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
47
|
+
super(context, message, data)
|
48
|
+
end
|
49
|
+
|
50
|
+
# @return [String]
|
51
|
+
def message
|
52
|
+
@message || @data[:message]
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class InternalServerException < ServiceError
|
57
|
+
|
58
|
+
# @param [Seahorse::Client::RequestContext] context
|
59
|
+
# @param [String] message
|
60
|
+
# @param [Aws::MWAA::Types::InternalServerException] data
|
61
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
62
|
+
super(context, message, data)
|
63
|
+
end
|
64
|
+
|
65
|
+
# @return [String]
|
66
|
+
def message
|
67
|
+
@message || @data[:message]
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
class ResourceNotFoundException < ServiceError
|
72
|
+
|
73
|
+
# @param [Seahorse::Client::RequestContext] context
|
74
|
+
# @param [String] message
|
75
|
+
# @param [Aws::MWAA::Types::ResourceNotFoundException] data
|
76
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
77
|
+
super(context, message, data)
|
78
|
+
end
|
79
|
+
|
80
|
+
# @return [String]
|
81
|
+
def message
|
82
|
+
@message || @data[:message]
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
class ValidationException < ServiceError
|
87
|
+
|
88
|
+
# @param [Seahorse::Client::RequestContext] context
|
89
|
+
# @param [String] message
|
90
|
+
# @param [Aws::MWAA::Types::ValidationException] data
|
91
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
92
|
+
super(context, message, data)
|
93
|
+
end
|
94
|
+
|
95
|
+
# @return [String]
|
96
|
+
def message
|
97
|
+
@message || @data[:message]
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::MWAA
|
11
|
+
|
12
|
+
class Resource
|
13
|
+
|
14
|
+
# @param options ({})
|
15
|
+
# @option options [Client] :client
|
16
|
+
def initialize(options = {})
|
17
|
+
@client = options[:client] || Client.new(options)
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Client]
|
21
|
+
def client
|
22
|
+
@client
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,1303 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::MWAA
|
11
|
+
module Types
|
12
|
+
|
13
|
+
# Access to the Airflow Web UI or CLI has been Denied. Please follow the
|
14
|
+
# MWAA user guide to setup permissions to access the Web UI and CLI
|
15
|
+
# functionality.
|
16
|
+
#
|
17
|
+
# @!attribute [rw] message
|
18
|
+
# @return [String]
|
19
|
+
#
|
20
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/AccessDeniedException AWS API Documentation
|
21
|
+
#
|
22
|
+
class AccessDeniedException < Struct.new(
|
23
|
+
:message)
|
24
|
+
SENSITIVE = []
|
25
|
+
include Aws::Structure
|
26
|
+
end
|
27
|
+
|
28
|
+
# @note When making an API call, you may pass CreateCliTokenRequest
|
29
|
+
# data as a hash:
|
30
|
+
#
|
31
|
+
# {
|
32
|
+
# name: "EnvironmentName", # required
|
33
|
+
# }
|
34
|
+
#
|
35
|
+
# @!attribute [rw] name
|
36
|
+
# Create a CLI token request for a MWAA environment.
|
37
|
+
# @return [String]
|
38
|
+
#
|
39
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/CreateCliTokenRequest AWS API Documentation
|
40
|
+
#
|
41
|
+
class CreateCliTokenRequest < Struct.new(
|
42
|
+
:name)
|
43
|
+
SENSITIVE = []
|
44
|
+
include Aws::Structure
|
45
|
+
end
|
46
|
+
|
47
|
+
# @!attribute [rw] cli_token
|
48
|
+
# Create an Airflow CLI login token response for the provided JWT
|
49
|
+
# token.
|
50
|
+
# @return [String]
|
51
|
+
#
|
52
|
+
# @!attribute [rw] web_server_hostname
|
53
|
+
# Create an Airflow CLI login token response for the provided
|
54
|
+
# webserver hostname.
|
55
|
+
# @return [String]
|
56
|
+
#
|
57
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/CreateCliTokenResponse AWS API Documentation
|
58
|
+
#
|
59
|
+
class CreateCliTokenResponse < Struct.new(
|
60
|
+
:cli_token,
|
61
|
+
:web_server_hostname)
|
62
|
+
SENSITIVE = [:cli_token]
|
63
|
+
include Aws::Structure
|
64
|
+
end
|
65
|
+
|
66
|
+
# This section contains the Amazon Managed Workflows for Apache Airflow
|
67
|
+
# (MWAA) API reference documentation to create an environment. For more
|
68
|
+
# information, see [Get started with Amazon Managed Workflows for Apache
|
69
|
+
# Airflow][1].
|
70
|
+
#
|
71
|
+
#
|
72
|
+
#
|
73
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/get-started.html
|
74
|
+
#
|
75
|
+
# @note When making an API call, you may pass CreateEnvironmentInput
|
76
|
+
# data as a hash:
|
77
|
+
#
|
78
|
+
# {
|
79
|
+
# airflow_configuration_options: {
|
80
|
+
# "ConfigKey" => "ConfigValue",
|
81
|
+
# },
|
82
|
+
# airflow_version: "AirflowVersion",
|
83
|
+
# dag_s3_path: "RelativePath", # required
|
84
|
+
# environment_class: "EnvironmentClass",
|
85
|
+
# execution_role_arn: "IamRoleArn", # required
|
86
|
+
# kms_key: "KmsKey",
|
87
|
+
# logging_configuration: {
|
88
|
+
# dag_processing_logs: {
|
89
|
+
# enabled: false, # required
|
90
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
91
|
+
# },
|
92
|
+
# scheduler_logs: {
|
93
|
+
# enabled: false, # required
|
94
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
95
|
+
# },
|
96
|
+
# task_logs: {
|
97
|
+
# enabled: false, # required
|
98
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
99
|
+
# },
|
100
|
+
# webserver_logs: {
|
101
|
+
# enabled: false, # required
|
102
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
103
|
+
# },
|
104
|
+
# worker_logs: {
|
105
|
+
# enabled: false, # required
|
106
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
107
|
+
# },
|
108
|
+
# },
|
109
|
+
# max_workers: 1,
|
110
|
+
# name: "EnvironmentName", # required
|
111
|
+
# network_configuration: { # required
|
112
|
+
# security_group_ids: ["SecurityGroupId"],
|
113
|
+
# subnet_ids: ["SubnetId"],
|
114
|
+
# },
|
115
|
+
# plugins_s3_object_version: "S3ObjectVersion",
|
116
|
+
# plugins_s3_path: "RelativePath",
|
117
|
+
# requirements_s3_object_version: "S3ObjectVersion",
|
118
|
+
# requirements_s3_path: "RelativePath",
|
119
|
+
# source_bucket_arn: "S3BucketArn", # required
|
120
|
+
# tags: {
|
121
|
+
# "TagKey" => "TagValue",
|
122
|
+
# },
|
123
|
+
# webserver_access_mode: "PRIVATE_ONLY", # accepts PRIVATE_ONLY, PUBLIC_ONLY
|
124
|
+
# weekly_maintenance_window_start: "WeeklyMaintenanceWindowStart",
|
125
|
+
# }
|
126
|
+
#
|
127
|
+
# @!attribute [rw] airflow_configuration_options
|
128
|
+
# The Apache Airflow configuration setting you want to override in
|
129
|
+
# your environment. For more information, see [Environment
|
130
|
+
# configuration][1].
|
131
|
+
#
|
132
|
+
#
|
133
|
+
#
|
134
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html
|
135
|
+
# @return [Hash<String,String>]
|
136
|
+
#
|
137
|
+
# @!attribute [rw] airflow_version
|
138
|
+
# The Apache Airflow version you want to use for your environment.
|
139
|
+
# @return [String]
|
140
|
+
#
|
141
|
+
# @!attribute [rw] dag_s3_path
|
142
|
+
# The relative path to the DAG folder on your Amazon S3 storage
|
143
|
+
# bucket. For example, `dags`. For more information, see [Importing
|
144
|
+
# DAGs on Amazon MWAA][1].
|
145
|
+
#
|
146
|
+
#
|
147
|
+
#
|
148
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html
|
149
|
+
# @return [String]
|
150
|
+
#
|
151
|
+
# @!attribute [rw] environment_class
|
152
|
+
# The environment class you want to use for your environment. The
|
153
|
+
# environment class determines the size of the containers and database
|
154
|
+
# used for your Apache Airflow services.
|
155
|
+
# @return [String]
|
156
|
+
#
|
157
|
+
# @!attribute [rw] execution_role_arn
|
158
|
+
# The Amazon Resource Name (ARN) of the execution role for your
|
159
|
+
# environment. An execution role is an AWS Identity and Access
|
160
|
+
# Management (IAM) role that grants MWAA permission to access AWS
|
161
|
+
# services and resources used by your environment. For example,
|
162
|
+
# `arn:aws:iam::123456789:role/my-execution-role`. For more
|
163
|
+
# information, see [Managing access to Amazon Managed Workflows for
|
164
|
+
# Apache Airflow][1].
|
165
|
+
#
|
166
|
+
#
|
167
|
+
#
|
168
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/manage-access.html
|
169
|
+
# @return [String]
|
170
|
+
#
|
171
|
+
# @!attribute [rw] kms_key
|
172
|
+
# The AWS Key Management Service (KMS) key to encrypt and decrypt the
|
173
|
+
# data in your environment. You can use an AWS KMS key managed by
|
174
|
+
# MWAA, or a custom KMS key (advanced). For more information, see
|
175
|
+
# [Customer master keys (CMKs)][1] in the AWS KMS developer guide.
|
176
|
+
#
|
177
|
+
#
|
178
|
+
#
|
179
|
+
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html?icmpid=docs_console_unmapped#master_keys
|
180
|
+
# @return [String]
|
181
|
+
#
|
182
|
+
# @!attribute [rw] logging_configuration
|
183
|
+
# The Apache Airflow logs you want to send to Amazon CloudWatch Logs.
|
184
|
+
# @return [Types::LoggingConfigurationInput]
|
185
|
+
#
|
186
|
+
# @!attribute [rw] max_workers
|
187
|
+
# The maximum number of workers that you want to run in your
|
188
|
+
# environment. MWAA scales the number of Apache Airflow workers and
|
189
|
+
# the Fargate containers that run your tasks up to the number you
|
190
|
+
# specify in this field. When there are no more tasks running, and no
|
191
|
+
# more in the queue, MWAA disposes of the extra containers leaving the
|
192
|
+
# one worker that is included with your environment.
|
193
|
+
# @return [Integer]
|
194
|
+
#
|
195
|
+
# @!attribute [rw] name
|
196
|
+
# The name of your MWAA environment.
|
197
|
+
# @return [String]
|
198
|
+
#
|
199
|
+
# @!attribute [rw] network_configuration
|
200
|
+
# The VPC networking components you want to use for your environment.
|
201
|
+
# At least two private subnet identifiers and one VPC security group
|
202
|
+
# identifier are required to create an environment. For more
|
203
|
+
# information, see [Creating the VPC network for a MWAA
|
204
|
+
# environment][1].
|
205
|
+
#
|
206
|
+
#
|
207
|
+
#
|
208
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/vpc-mwaa.html
|
209
|
+
# @return [Types::NetworkConfiguration]
|
210
|
+
#
|
211
|
+
# @!attribute [rw] plugins_s3_object_version
|
212
|
+
# The `plugins.zip` file version you want to use.
|
213
|
+
# @return [String]
|
214
|
+
#
|
215
|
+
# @!attribute [rw] plugins_s3_path
|
216
|
+
# The relative path to the `plugins.zip` file on your Amazon S3
|
217
|
+
# storage bucket. For example, `plugins.zip`. If a relative path is
|
218
|
+
# provided in the request, then `PluginsS3ObjectVersion` is required.
|
219
|
+
# For more information, see [Importing DAGs on Amazon MWAA][1].
|
220
|
+
#
|
221
|
+
#
|
222
|
+
#
|
223
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html
|
224
|
+
# @return [String]
|
225
|
+
#
|
226
|
+
# @!attribute [rw] requirements_s3_object_version
|
227
|
+
# The `requirements.txt` file version you want to use.
|
228
|
+
# @return [String]
|
229
|
+
#
|
230
|
+
# @!attribute [rw] requirements_s3_path
|
231
|
+
# The relative path to the `requirements.txt` file on your Amazon S3
|
232
|
+
# storage bucket. For example, `requirements.txt`. If a relative path
|
233
|
+
# is provided in the request, then `RequirementsS3ObjectVersion` is
|
234
|
+
# required. For more information, see [Importing DAGs on Amazon
|
235
|
+
# MWAA][1].
|
236
|
+
#
|
237
|
+
#
|
238
|
+
#
|
239
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import.html
|
240
|
+
# @return [String]
|
241
|
+
#
|
242
|
+
# @!attribute [rw] source_bucket_arn
|
243
|
+
# The Amazon Resource Name (ARN) of your Amazon S3 storage bucket. For
|
244
|
+
# example, `arn:aws:s3:::airflow-mybucketname`.
|
245
|
+
# @return [String]
|
246
|
+
#
|
247
|
+
# @!attribute [rw] tags
|
248
|
+
# The metadata tags you want to attach to your environment. For more
|
249
|
+
# information, see [Tagging AWS resources][1].
|
250
|
+
#
|
251
|
+
#
|
252
|
+
#
|
253
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
|
254
|
+
# @return [Hash<String,String>]
|
255
|
+
#
|
256
|
+
# @!attribute [rw] webserver_access_mode
|
257
|
+
# The networking access of your Apache Airflow web server. A public
|
258
|
+
# network allows your Airflow UI to be accessed over the Internet by
|
259
|
+
# users granted access in your IAM policy. A private network limits
|
260
|
+
# access of your Airflow UI to users within your VPC. For more
|
261
|
+
# information, see [Creating the VPC network for a MWAA
|
262
|
+
# environment][1].
|
263
|
+
#
|
264
|
+
#
|
265
|
+
#
|
266
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/vpc-mwaa.html
|
267
|
+
# @return [String]
|
268
|
+
#
|
269
|
+
# @!attribute [rw] weekly_maintenance_window_start
|
270
|
+
# The day and time you want MWAA to start weekly maintenance updates
|
271
|
+
# on your environment.
|
272
|
+
# @return [String]
|
273
|
+
#
|
274
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/CreateEnvironmentInput AWS API Documentation
|
275
|
+
#
|
276
|
+
class CreateEnvironmentInput < Struct.new(
|
277
|
+
:airflow_configuration_options,
|
278
|
+
:airflow_version,
|
279
|
+
:dag_s3_path,
|
280
|
+
:environment_class,
|
281
|
+
:execution_role_arn,
|
282
|
+
:kms_key,
|
283
|
+
:logging_configuration,
|
284
|
+
:max_workers,
|
285
|
+
:name,
|
286
|
+
:network_configuration,
|
287
|
+
:plugins_s3_object_version,
|
288
|
+
:plugins_s3_path,
|
289
|
+
:requirements_s3_object_version,
|
290
|
+
:requirements_s3_path,
|
291
|
+
:source_bucket_arn,
|
292
|
+
:tags,
|
293
|
+
:webserver_access_mode,
|
294
|
+
:weekly_maintenance_window_start)
|
295
|
+
SENSITIVE = [:airflow_configuration_options]
|
296
|
+
include Aws::Structure
|
297
|
+
end
|
298
|
+
|
299
|
+
# @!attribute [rw] arn
|
300
|
+
# The resulting Amazon MWAA envirnonment ARN.
|
301
|
+
# @return [String]
|
302
|
+
#
|
303
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/CreateEnvironmentOutput AWS API Documentation
|
304
|
+
#
|
305
|
+
class CreateEnvironmentOutput < Struct.new(
|
306
|
+
:arn)
|
307
|
+
SENSITIVE = []
|
308
|
+
include Aws::Structure
|
309
|
+
end
|
310
|
+
|
311
|
+
# @note When making an API call, you may pass CreateWebLoginTokenRequest
|
312
|
+
# data as a hash:
|
313
|
+
#
|
314
|
+
# {
|
315
|
+
# name: "EnvironmentName", # required
|
316
|
+
# }
|
317
|
+
#
|
318
|
+
# @!attribute [rw] name
|
319
|
+
# Create an Airflow Web UI login token request for a MWAA environment.
|
320
|
+
# @return [String]
|
321
|
+
#
|
322
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/CreateWebLoginTokenRequest AWS API Documentation
|
323
|
+
#
|
324
|
+
class CreateWebLoginTokenRequest < Struct.new(
|
325
|
+
:name)
|
326
|
+
SENSITIVE = []
|
327
|
+
include Aws::Structure
|
328
|
+
end
|
329
|
+
|
330
|
+
# @!attribute [rw] web_server_hostname
|
331
|
+
# Create an Airflow Web UI login token response for the provided
|
332
|
+
# webserver hostname.
|
333
|
+
# @return [String]
|
334
|
+
#
|
335
|
+
# @!attribute [rw] web_token
|
336
|
+
# Create an Airflow Web UI login token response for the provided JWT
|
337
|
+
# token.
|
338
|
+
# @return [String]
|
339
|
+
#
|
340
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/CreateWebLoginTokenResponse AWS API Documentation
|
341
|
+
#
|
342
|
+
class CreateWebLoginTokenResponse < Struct.new(
|
343
|
+
:web_server_hostname,
|
344
|
+
:web_token)
|
345
|
+
SENSITIVE = [:web_token]
|
346
|
+
include Aws::Structure
|
347
|
+
end
|
348
|
+
|
349
|
+
# @note When making an API call, you may pass DeleteEnvironmentInput
|
350
|
+
# data as a hash:
|
351
|
+
#
|
352
|
+
# {
|
353
|
+
# name: "EnvironmentName", # required
|
354
|
+
# }
|
355
|
+
#
|
356
|
+
# @!attribute [rw] name
|
357
|
+
# The name of the environment to delete.
|
358
|
+
# @return [String]
|
359
|
+
#
|
360
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/DeleteEnvironmentInput AWS API Documentation
|
361
|
+
#
|
362
|
+
class DeleteEnvironmentInput < Struct.new(
|
363
|
+
:name)
|
364
|
+
SENSITIVE = []
|
365
|
+
include Aws::Structure
|
366
|
+
end
|
367
|
+
|
368
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/DeleteEnvironmentOutput AWS API Documentation
|
369
|
+
#
|
370
|
+
class DeleteEnvironmentOutput < Aws::EmptyStructure; end
|
371
|
+
|
372
|
+
# Internal only API.
|
373
|
+
#
|
374
|
+
# @note When making an API call, you may pass Dimension
|
375
|
+
# data as a hash:
|
376
|
+
#
|
377
|
+
# {
|
378
|
+
# name: "String", # required
|
379
|
+
# value: "String", # required
|
380
|
+
# }
|
381
|
+
#
|
382
|
+
# @!attribute [rw] name
|
383
|
+
# Internal only API.
|
384
|
+
# @return [String]
|
385
|
+
#
|
386
|
+
# @!attribute [rw] value
|
387
|
+
# Internal only API.
|
388
|
+
# @return [String]
|
389
|
+
#
|
390
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/Dimension AWS API Documentation
|
391
|
+
#
|
392
|
+
class Dimension < Struct.new(
|
393
|
+
:name,
|
394
|
+
:value)
|
395
|
+
SENSITIVE = []
|
396
|
+
include Aws::Structure
|
397
|
+
end
|
398
|
+
|
399
|
+
# An Amazon MWAA environment.
|
400
|
+
#
|
401
|
+
# @!attribute [rw] airflow_configuration_options
|
402
|
+
# The Airflow Configuration Options of the Amazon MWAA Environment.
|
403
|
+
# @return [Hash<String,String>]
|
404
|
+
#
|
405
|
+
# @!attribute [rw] airflow_version
|
406
|
+
# The AirflowV ersion of the Amazon MWAA Environment.
|
407
|
+
# @return [String]
|
408
|
+
#
|
409
|
+
# @!attribute [rw] arn
|
410
|
+
# The ARN of the Amazon MWAA Environment.
|
411
|
+
# @return [String]
|
412
|
+
#
|
413
|
+
# @!attribute [rw] created_at
|
414
|
+
# The Created At date of the Amazon MWAA Environment.
|
415
|
+
# @return [Time]
|
416
|
+
#
|
417
|
+
# @!attribute [rw] dag_s3_path
|
418
|
+
# The Dags S3 Path of the Amazon MWAA Environment.
|
419
|
+
# @return [String]
|
420
|
+
#
|
421
|
+
# @!attribute [rw] environment_class
|
422
|
+
# The Environment Class (size) of the Amazon MWAA Environment.
|
423
|
+
# @return [String]
|
424
|
+
#
|
425
|
+
# @!attribute [rw] execution_role_arn
|
426
|
+
# The Execution Role ARN of the Amazon MWAA Environment.
|
427
|
+
# @return [String]
|
428
|
+
#
|
429
|
+
# @!attribute [rw] kms_key
|
430
|
+
# The Kms Key of the Amazon MWAA Environment.
|
431
|
+
# @return [String]
|
432
|
+
#
|
433
|
+
# @!attribute [rw] last_update
|
434
|
+
# Last update information for the environment.
|
435
|
+
# @return [Types::LastUpdate]
|
436
|
+
#
|
437
|
+
# @!attribute [rw] logging_configuration
|
438
|
+
# The Logging Configuration of the Amazon MWAA Environment.
|
439
|
+
# @return [Types::LoggingConfiguration]
|
440
|
+
#
|
441
|
+
# @!attribute [rw] max_workers
|
442
|
+
# The Maximum Workers of the Amazon MWAA Environment.
|
443
|
+
# @return [Integer]
|
444
|
+
#
|
445
|
+
# @!attribute [rw] name
|
446
|
+
# The name of the Amazon MWAA Environment.
|
447
|
+
# @return [String]
|
448
|
+
#
|
449
|
+
# @!attribute [rw] network_configuration
|
450
|
+
# Provide the security group and subnet IDs for the workers and
|
451
|
+
# scheduler.
|
452
|
+
# @return [Types::NetworkConfiguration]
|
453
|
+
#
|
454
|
+
# @!attribute [rw] plugins_s3_object_version
|
455
|
+
# The Plugins.zip S3 Object Version of the Amazon MWAA Environment.
|
456
|
+
# @return [String]
|
457
|
+
#
|
458
|
+
# @!attribute [rw] plugins_s3_path
|
459
|
+
# The Plugins.zip S3 Path of the Amazon MWAA Environment.
|
460
|
+
# @return [String]
|
461
|
+
#
|
462
|
+
# @!attribute [rw] requirements_s3_object_version
|
463
|
+
# The Requirements.txt file S3 Object Version of the Amazon MWAA
|
464
|
+
# Environment.
|
465
|
+
# @return [String]
|
466
|
+
#
|
467
|
+
# @!attribute [rw] requirements_s3_path
|
468
|
+
# The Requirement.txt S3 Path of the Amazon MWAA Environment.
|
469
|
+
# @return [String]
|
470
|
+
#
|
471
|
+
# @!attribute [rw] service_role_arn
|
472
|
+
# The Service Role ARN of the Amazon MWAA Environment.
|
473
|
+
# @return [String]
|
474
|
+
#
|
475
|
+
# @!attribute [rw] source_bucket_arn
|
476
|
+
# The Source S3 Bucket ARN of the Amazon MWAA Environment.
|
477
|
+
# @return [String]
|
478
|
+
#
|
479
|
+
# @!attribute [rw] status
|
480
|
+
# The status of the Amazon MWAA Environment.
|
481
|
+
# @return [String]
|
482
|
+
#
|
483
|
+
# @!attribute [rw] tags
|
484
|
+
# The Tags of the Amazon MWAA Environment.
|
485
|
+
# @return [Hash<String,String>]
|
486
|
+
#
|
487
|
+
# @!attribute [rw] webserver_access_mode
|
488
|
+
# The Webserver Access Mode of the Amazon MWAA Environment (public or
|
489
|
+
# private only).
|
490
|
+
# @return [String]
|
491
|
+
#
|
492
|
+
# @!attribute [rw] webserver_url
|
493
|
+
# The Webserver URL of the Amazon MWAA Environment.
|
494
|
+
# @return [String]
|
495
|
+
#
|
496
|
+
# @!attribute [rw] weekly_maintenance_window_start
|
497
|
+
# The Weekly Maintenance Window Start of the Amazon MWAA Environment.
|
498
|
+
# @return [String]
|
499
|
+
#
|
500
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/Environment AWS API Documentation
|
501
|
+
#
|
502
|
+
class Environment < Struct.new(
|
503
|
+
:airflow_configuration_options,
|
504
|
+
:airflow_version,
|
505
|
+
:arn,
|
506
|
+
:created_at,
|
507
|
+
:dag_s3_path,
|
508
|
+
:environment_class,
|
509
|
+
:execution_role_arn,
|
510
|
+
:kms_key,
|
511
|
+
:last_update,
|
512
|
+
:logging_configuration,
|
513
|
+
:max_workers,
|
514
|
+
:name,
|
515
|
+
:network_configuration,
|
516
|
+
:plugins_s3_object_version,
|
517
|
+
:plugins_s3_path,
|
518
|
+
:requirements_s3_object_version,
|
519
|
+
:requirements_s3_path,
|
520
|
+
:service_role_arn,
|
521
|
+
:source_bucket_arn,
|
522
|
+
:status,
|
523
|
+
:tags,
|
524
|
+
:webserver_access_mode,
|
525
|
+
:webserver_url,
|
526
|
+
:weekly_maintenance_window_start)
|
527
|
+
SENSITIVE = []
|
528
|
+
include Aws::Structure
|
529
|
+
end
|
530
|
+
|
531
|
+
# @note When making an API call, you may pass GetEnvironmentInput
|
532
|
+
# data as a hash:
|
533
|
+
#
|
534
|
+
# {
|
535
|
+
# name: "EnvironmentName", # required
|
536
|
+
# }
|
537
|
+
#
|
538
|
+
# @!attribute [rw] name
|
539
|
+
# The name of the environment to retrieve.
|
540
|
+
# @return [String]
|
541
|
+
#
|
542
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/GetEnvironmentInput AWS API Documentation
|
543
|
+
#
|
544
|
+
class GetEnvironmentInput < Struct.new(
|
545
|
+
:name)
|
546
|
+
SENSITIVE = []
|
547
|
+
include Aws::Structure
|
548
|
+
end
|
549
|
+
|
550
|
+
# @!attribute [rw] environment
|
551
|
+
# A JSON blob with environment details.
|
552
|
+
# @return [Types::Environment]
|
553
|
+
#
|
554
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/GetEnvironmentOutput AWS API Documentation
|
555
|
+
#
|
556
|
+
class GetEnvironmentOutput < Struct.new(
|
557
|
+
:environment)
|
558
|
+
SENSITIVE = []
|
559
|
+
include Aws::Structure
|
560
|
+
end
|
561
|
+
|
562
|
+
# InternalServerException: An internal error has occurred.
|
563
|
+
#
|
564
|
+
# @!attribute [rw] message
|
565
|
+
# @return [String]
|
566
|
+
#
|
567
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/InternalServerException AWS API Documentation
|
568
|
+
#
|
569
|
+
class InternalServerException < Struct.new(
|
570
|
+
:message)
|
571
|
+
SENSITIVE = []
|
572
|
+
include Aws::Structure
|
573
|
+
end
|
574
|
+
|
575
|
+
# Last update information for the environment.
|
576
|
+
#
|
577
|
+
# @!attribute [rw] created_at
|
578
|
+
# Time that last update occurred.
|
579
|
+
# @return [Time]
|
580
|
+
#
|
581
|
+
# @!attribute [rw] error
|
582
|
+
# Error string of last update, if applicable.
|
583
|
+
# @return [Types::UpdateError]
|
584
|
+
#
|
585
|
+
# @!attribute [rw] status
|
586
|
+
# Status of last update of SUCCESS, FAILED, CREATING, DELETING.
|
587
|
+
# @return [String]
|
588
|
+
#
|
589
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/LastUpdate AWS API Documentation
|
590
|
+
#
|
591
|
+
class LastUpdate < Struct.new(
|
592
|
+
:created_at,
|
593
|
+
:error,
|
594
|
+
:status)
|
595
|
+
SENSITIVE = []
|
596
|
+
include Aws::Structure
|
597
|
+
end
|
598
|
+
|
599
|
+
# @note When making an API call, you may pass ListEnvironmentsInput
|
600
|
+
# data as a hash:
|
601
|
+
#
|
602
|
+
# {
|
603
|
+
# max_results: 1,
|
604
|
+
# next_token: "NextToken",
|
605
|
+
# }
|
606
|
+
#
|
607
|
+
# @!attribute [rw] max_results
|
608
|
+
# The maximum results when listing MWAA environments.
|
609
|
+
# @return [Integer]
|
610
|
+
#
|
611
|
+
# @!attribute [rw] next_token
|
612
|
+
# The Next Token when listing MWAA environments.
|
613
|
+
# @return [String]
|
614
|
+
#
|
615
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/ListEnvironmentsInput AWS API Documentation
|
616
|
+
#
|
617
|
+
class ListEnvironmentsInput < Struct.new(
|
618
|
+
:max_results,
|
619
|
+
:next_token)
|
620
|
+
SENSITIVE = []
|
621
|
+
include Aws::Structure
|
622
|
+
end
|
623
|
+
|
624
|
+
# @!attribute [rw] environments
|
625
|
+
# The list of Amazon MWAA Environments.
|
626
|
+
# @return [Array<String>]
|
627
|
+
#
|
628
|
+
# @!attribute [rw] next_token
|
629
|
+
# The Next Token when listing MWAA environments.
|
630
|
+
# @return [String]
|
631
|
+
#
|
632
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/ListEnvironmentsOutput AWS API Documentation
|
633
|
+
#
|
634
|
+
class ListEnvironmentsOutput < Struct.new(
|
635
|
+
:environments,
|
636
|
+
:next_token)
|
637
|
+
SENSITIVE = []
|
638
|
+
include Aws::Structure
|
639
|
+
end
|
640
|
+
|
641
|
+
# @note When making an API call, you may pass ListTagsForResourceInput
|
642
|
+
# data as a hash:
|
643
|
+
#
|
644
|
+
# {
|
645
|
+
# resource_arn: "EnvironmentArn", # required
|
646
|
+
# }
|
647
|
+
#
|
648
|
+
# @!attribute [rw] resource_arn
|
649
|
+
# The ARN of the MWAA environment.
|
650
|
+
# @return [String]
|
651
|
+
#
|
652
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/ListTagsForResourceInput AWS API Documentation
|
653
|
+
#
|
654
|
+
class ListTagsForResourceInput < Struct.new(
|
655
|
+
:resource_arn)
|
656
|
+
SENSITIVE = []
|
657
|
+
include Aws::Structure
|
658
|
+
end
|
659
|
+
|
660
|
+
# @!attribute [rw] tags
|
661
|
+
# The tags of the MWAA environments.
|
662
|
+
# @return [Hash<String,String>]
|
663
|
+
#
|
664
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/ListTagsForResourceOutput AWS API Documentation
|
665
|
+
#
|
666
|
+
class ListTagsForResourceOutput < Struct.new(
|
667
|
+
:tags)
|
668
|
+
SENSITIVE = []
|
669
|
+
include Aws::Structure
|
670
|
+
end
|
671
|
+
|
672
|
+
# The Logging Configuration of your Amazon MWAA environment.
|
673
|
+
#
|
674
|
+
# @!attribute [rw] dag_processing_logs
|
675
|
+
# A JSON blob that provides configuration to use for logging with
|
676
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
677
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
678
|
+
# @return [Types::ModuleLoggingConfiguration]
|
679
|
+
#
|
680
|
+
# @!attribute [rw] scheduler_logs
|
681
|
+
# A JSON blob that provides configuration to use for logging with
|
682
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
683
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
684
|
+
# @return [Types::ModuleLoggingConfiguration]
|
685
|
+
#
|
686
|
+
# @!attribute [rw] task_logs
|
687
|
+
# A JSON blob that provides configuration to use for logging with
|
688
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
689
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
690
|
+
# @return [Types::ModuleLoggingConfiguration]
|
691
|
+
#
|
692
|
+
# @!attribute [rw] webserver_logs
|
693
|
+
# A JSON blob that provides configuration to use for logging with
|
694
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
695
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
696
|
+
# @return [Types::ModuleLoggingConfiguration]
|
697
|
+
#
|
698
|
+
# @!attribute [rw] worker_logs
|
699
|
+
# A JSON blob that provides configuration to use for logging with
|
700
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
701
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
702
|
+
# @return [Types::ModuleLoggingConfiguration]
|
703
|
+
#
|
704
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/LoggingConfiguration AWS API Documentation
|
705
|
+
#
|
706
|
+
class LoggingConfiguration < Struct.new(
|
707
|
+
:dag_processing_logs,
|
708
|
+
:scheduler_logs,
|
709
|
+
:task_logs,
|
710
|
+
:webserver_logs,
|
711
|
+
:worker_logs)
|
712
|
+
SENSITIVE = []
|
713
|
+
include Aws::Structure
|
714
|
+
end
|
715
|
+
|
716
|
+
# The Logging Configuration of your Amazon MWAA environment.
|
717
|
+
#
|
718
|
+
# @note When making an API call, you may pass LoggingConfigurationInput
|
719
|
+
# data as a hash:
|
720
|
+
#
|
721
|
+
# {
|
722
|
+
# dag_processing_logs: {
|
723
|
+
# enabled: false, # required
|
724
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
725
|
+
# },
|
726
|
+
# scheduler_logs: {
|
727
|
+
# enabled: false, # required
|
728
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
729
|
+
# },
|
730
|
+
# task_logs: {
|
731
|
+
# enabled: false, # required
|
732
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
733
|
+
# },
|
734
|
+
# webserver_logs: {
|
735
|
+
# enabled: false, # required
|
736
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
737
|
+
# },
|
738
|
+
# worker_logs: {
|
739
|
+
# enabled: false, # required
|
740
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
741
|
+
# },
|
742
|
+
# }
|
743
|
+
#
|
744
|
+
# @!attribute [rw] dag_processing_logs
|
745
|
+
# A JSON blob that provides configuration to use for logging with
|
746
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
747
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
748
|
+
# @return [Types::ModuleLoggingConfigurationInput]
|
749
|
+
#
|
750
|
+
# @!attribute [rw] scheduler_logs
|
751
|
+
# A JSON blob that provides configuration to use for logging with
|
752
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
753
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
754
|
+
# @return [Types::ModuleLoggingConfigurationInput]
|
755
|
+
#
|
756
|
+
# @!attribute [rw] task_logs
|
757
|
+
# A JSON blob that provides configuration to use for logging with
|
758
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
759
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
760
|
+
# @return [Types::ModuleLoggingConfigurationInput]
|
761
|
+
#
|
762
|
+
# @!attribute [rw] webserver_logs
|
763
|
+
# A JSON blob that provides configuration to use for logging with
|
764
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
765
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
766
|
+
# @return [Types::ModuleLoggingConfigurationInput]
|
767
|
+
#
|
768
|
+
# @!attribute [rw] worker_logs
|
769
|
+
# A JSON blob that provides configuration to use for logging with
|
770
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
771
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
772
|
+
# @return [Types::ModuleLoggingConfigurationInput]
|
773
|
+
#
|
774
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/LoggingConfigurationInput AWS API Documentation
|
775
|
+
#
|
776
|
+
class LoggingConfigurationInput < Struct.new(
|
777
|
+
:dag_processing_logs,
|
778
|
+
:scheduler_logs,
|
779
|
+
:task_logs,
|
780
|
+
:webserver_logs,
|
781
|
+
:worker_logs)
|
782
|
+
SENSITIVE = []
|
783
|
+
include Aws::Structure
|
784
|
+
end
|
785
|
+
|
786
|
+
# Internal only API.
|
787
|
+
#
|
788
|
+
# @note When making an API call, you may pass MetricDatum
|
789
|
+
# data as a hash:
|
790
|
+
#
|
791
|
+
# {
|
792
|
+
# dimensions: [
|
793
|
+
# {
|
794
|
+
# name: "String", # required
|
795
|
+
# value: "String", # required
|
796
|
+
# },
|
797
|
+
# ],
|
798
|
+
# metric_name: "String", # required
|
799
|
+
# statistic_values: {
|
800
|
+
# maximum: 1.0,
|
801
|
+
# minimum: 1.0,
|
802
|
+
# sample_count: 1,
|
803
|
+
# sum: 1.0,
|
804
|
+
# },
|
805
|
+
# timestamp: Time.now, # required
|
806
|
+
# unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
|
807
|
+
# value: 1.0,
|
808
|
+
# }
|
809
|
+
#
|
810
|
+
# @!attribute [rw] dimensions
|
811
|
+
# Internal only API.
|
812
|
+
# @return [Array<Types::Dimension>]
|
813
|
+
#
|
814
|
+
# @!attribute [rw] metric_name
|
815
|
+
# Internal only API.
|
816
|
+
# @return [String]
|
817
|
+
#
|
818
|
+
# @!attribute [rw] statistic_values
|
819
|
+
# Internal only API.
|
820
|
+
# @return [Types::StatisticSet]
|
821
|
+
#
|
822
|
+
# @!attribute [rw] timestamp
|
823
|
+
# Internal only API.
|
824
|
+
# @return [Time]
|
825
|
+
#
|
826
|
+
# @!attribute [rw] unit
|
827
|
+
# Unit
|
828
|
+
# @return [String]
|
829
|
+
#
|
830
|
+
# @!attribute [rw] value
|
831
|
+
# Internal only API.
|
832
|
+
# @return [Float]
|
833
|
+
#
|
834
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/MetricDatum AWS API Documentation
|
835
|
+
#
|
836
|
+
class MetricDatum < Struct.new(
|
837
|
+
:dimensions,
|
838
|
+
:metric_name,
|
839
|
+
:statistic_values,
|
840
|
+
:timestamp,
|
841
|
+
:unit,
|
842
|
+
:value)
|
843
|
+
SENSITIVE = []
|
844
|
+
include Aws::Structure
|
845
|
+
end
|
846
|
+
|
847
|
+
# A JSON blob that provides configuration to use for logging with
|
848
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
849
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
850
|
+
#
|
851
|
+
# @!attribute [rw] cloud_watch_log_group_arn
|
852
|
+
# Provides the ARN for the CloudWatch group where the logs will be
|
853
|
+
# published.
|
854
|
+
# @return [String]
|
855
|
+
#
|
856
|
+
# @!attribute [rw] enabled
|
857
|
+
# Defines that the logging module is enabled.
|
858
|
+
# @return [Boolean]
|
859
|
+
#
|
860
|
+
# @!attribute [rw] log_level
|
861
|
+
# Defines the log level, which can be CRITICAL, ERROR, WARNING, or
|
862
|
+
# INFO.
|
863
|
+
# @return [String]
|
864
|
+
#
|
865
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/ModuleLoggingConfiguration AWS API Documentation
|
866
|
+
#
|
867
|
+
class ModuleLoggingConfiguration < Struct.new(
|
868
|
+
:cloud_watch_log_group_arn,
|
869
|
+
:enabled,
|
870
|
+
:log_level)
|
871
|
+
SENSITIVE = []
|
872
|
+
include Aws::Structure
|
873
|
+
end
|
874
|
+
|
875
|
+
# A JSON blob that provides configuration to use for logging with
|
876
|
+
# respect to the various Apache Airflow services: DagProcessingLogs,
|
877
|
+
# SchedulerLogs, TaskLogs, WebserverLogs, and WorkerLogs.
|
878
|
+
#
|
879
|
+
# @note When making an API call, you may pass ModuleLoggingConfigurationInput
|
880
|
+
# data as a hash:
|
881
|
+
#
|
882
|
+
# {
|
883
|
+
# enabled: false, # required
|
884
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
885
|
+
# }
|
886
|
+
#
|
887
|
+
# @!attribute [rw] enabled
|
888
|
+
# Defines that the logging module is enabled.
|
889
|
+
# @return [Boolean]
|
890
|
+
#
|
891
|
+
# @!attribute [rw] log_level
|
892
|
+
# Defines the log level, which can be CRITICAL, ERROR, WARNING, or
|
893
|
+
# INFO.
|
894
|
+
# @return [String]
|
895
|
+
#
|
896
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/ModuleLoggingConfigurationInput AWS API Documentation
|
897
|
+
#
|
898
|
+
class ModuleLoggingConfigurationInput < Struct.new(
|
899
|
+
:enabled,
|
900
|
+
:log_level)
|
901
|
+
SENSITIVE = []
|
902
|
+
include Aws::Structure
|
903
|
+
end
|
904
|
+
|
905
|
+
# Provide the security group and subnet IDs for the workers and
|
906
|
+
# scheduler.
|
907
|
+
#
|
908
|
+
# @note When making an API call, you may pass NetworkConfiguration
|
909
|
+
# data as a hash:
|
910
|
+
#
|
911
|
+
# {
|
912
|
+
# security_group_ids: ["SecurityGroupId"],
|
913
|
+
# subnet_ids: ["SubnetId"],
|
914
|
+
# }
|
915
|
+
#
|
916
|
+
# @!attribute [rw] security_group_ids
|
917
|
+
# A JSON list of 1 or more security groups IDs by name, in the same
|
918
|
+
# VPC as the subnets.
|
919
|
+
# @return [Array<String>]
|
920
|
+
#
|
921
|
+
# @!attribute [rw] subnet_ids
|
922
|
+
# Provide a JSON list of 2 subnet IDs by name. These must be private
|
923
|
+
# subnets, in the same VPC, in two different availability zones.
|
924
|
+
# @return [Array<String>]
|
925
|
+
#
|
926
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/NetworkConfiguration AWS API Documentation
|
927
|
+
#
|
928
|
+
class NetworkConfiguration < Struct.new(
|
929
|
+
:security_group_ids,
|
930
|
+
:subnet_ids)
|
931
|
+
SENSITIVE = []
|
932
|
+
include Aws::Structure
|
933
|
+
end
|
934
|
+
|
935
|
+
# @note When making an API call, you may pass PublishMetricsInput
|
936
|
+
# data as a hash:
|
937
|
+
#
|
938
|
+
# {
|
939
|
+
# environment_name: "EnvironmentName", # required
|
940
|
+
# metric_data: [ # required
|
941
|
+
# {
|
942
|
+
# dimensions: [
|
943
|
+
# {
|
944
|
+
# name: "String", # required
|
945
|
+
# value: "String", # required
|
946
|
+
# },
|
947
|
+
# ],
|
948
|
+
# metric_name: "String", # required
|
949
|
+
# statistic_values: {
|
950
|
+
# maximum: 1.0,
|
951
|
+
# minimum: 1.0,
|
952
|
+
# sample_count: 1,
|
953
|
+
# sum: 1.0,
|
954
|
+
# },
|
955
|
+
# timestamp: Time.now, # required
|
956
|
+
# unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
|
957
|
+
# value: 1.0,
|
958
|
+
# },
|
959
|
+
# ],
|
960
|
+
# }
|
961
|
+
#
|
962
|
+
# @!attribute [rw] environment_name
|
963
|
+
# Publishes environment metric data to Amazon CloudWatch.
|
964
|
+
# @return [String]
|
965
|
+
#
|
966
|
+
# @!attribute [rw] metric_data
|
967
|
+
# Publishes metric data points to Amazon CloudWatch. CloudWatch
|
968
|
+
# associates the data points with the specified metrica.
|
969
|
+
# @return [Array<Types::MetricDatum>]
|
970
|
+
#
|
971
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/PublishMetricsInput AWS API Documentation
|
972
|
+
#
|
973
|
+
class PublishMetricsInput < Struct.new(
|
974
|
+
:environment_name,
|
975
|
+
:metric_data)
|
976
|
+
SENSITIVE = []
|
977
|
+
include Aws::Structure
|
978
|
+
end
|
979
|
+
|
980
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/PublishMetricsOutput AWS API Documentation
|
981
|
+
#
|
982
|
+
class PublishMetricsOutput < Aws::EmptyStructure; end
|
983
|
+
|
984
|
+
# ResourceNotFoundException: The resource is not available.
|
985
|
+
#
|
986
|
+
# @!attribute [rw] message
|
987
|
+
# @return [String]
|
988
|
+
#
|
989
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/ResourceNotFoundException AWS API Documentation
|
990
|
+
#
|
991
|
+
class ResourceNotFoundException < Struct.new(
|
992
|
+
:message)
|
993
|
+
SENSITIVE = []
|
994
|
+
include Aws::Structure
|
995
|
+
end
|
996
|
+
|
997
|
+
# Internal only API.
|
998
|
+
#
|
999
|
+
# @note When making an API call, you may pass StatisticSet
|
1000
|
+
# data as a hash:
|
1001
|
+
#
|
1002
|
+
# {
|
1003
|
+
# maximum: 1.0,
|
1004
|
+
# minimum: 1.0,
|
1005
|
+
# sample_count: 1,
|
1006
|
+
# sum: 1.0,
|
1007
|
+
# }
|
1008
|
+
#
|
1009
|
+
# @!attribute [rw] maximum
|
1010
|
+
# Internal only API.
|
1011
|
+
# @return [Float]
|
1012
|
+
#
|
1013
|
+
# @!attribute [rw] minimum
|
1014
|
+
# Internal only API.
|
1015
|
+
# @return [Float]
|
1016
|
+
#
|
1017
|
+
# @!attribute [rw] sample_count
|
1018
|
+
# Internal only API.
|
1019
|
+
# @return [Integer]
|
1020
|
+
#
|
1021
|
+
# @!attribute [rw] sum
|
1022
|
+
# Internal only API.
|
1023
|
+
# @return [Float]
|
1024
|
+
#
|
1025
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/StatisticSet AWS API Documentation
|
1026
|
+
#
|
1027
|
+
class StatisticSet < Struct.new(
|
1028
|
+
:maximum,
|
1029
|
+
:minimum,
|
1030
|
+
:sample_count,
|
1031
|
+
:sum)
|
1032
|
+
SENSITIVE = []
|
1033
|
+
include Aws::Structure
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# @note When making an API call, you may pass TagResourceInput
|
1037
|
+
# data as a hash:
|
1038
|
+
#
|
1039
|
+
# {
|
1040
|
+
# resource_arn: "EnvironmentArn", # required
|
1041
|
+
# tags: { # required
|
1042
|
+
# "TagKey" => "TagValue",
|
1043
|
+
# },
|
1044
|
+
# }
|
1045
|
+
#
|
1046
|
+
# @!attribute [rw] resource_arn
|
1047
|
+
# The tag resource ARN of the MWAA environments.
|
1048
|
+
# @return [String]
|
1049
|
+
#
|
1050
|
+
# @!attribute [rw] tags
|
1051
|
+
# The tag resource tag of the MWAA environments.
|
1052
|
+
# @return [Hash<String,String>]
|
1053
|
+
#
|
1054
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/TagResourceInput AWS API Documentation
|
1055
|
+
#
|
1056
|
+
class TagResourceInput < Struct.new(
|
1057
|
+
:resource_arn,
|
1058
|
+
:tags)
|
1059
|
+
SENSITIVE = []
|
1060
|
+
include Aws::Structure
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/TagResourceOutput AWS API Documentation
|
1064
|
+
#
|
1065
|
+
class TagResourceOutput < Aws::EmptyStructure; end
|
1066
|
+
|
1067
|
+
# @note When making an API call, you may pass UntagResourceInput
|
1068
|
+
# data as a hash:
|
1069
|
+
#
|
1070
|
+
# {
|
1071
|
+
# resource_arn: "EnvironmentArn", # required
|
1072
|
+
# tag_keys: ["TagKey"], # required
|
1073
|
+
# }
|
1074
|
+
#
|
1075
|
+
# @!attribute [rw] resource_arn
|
1076
|
+
# The tag resource ARN of the MWAA environments.
|
1077
|
+
# @return [String]
|
1078
|
+
#
|
1079
|
+
# @!attribute [rw] tag_keys
|
1080
|
+
# The tag resource key of the MWAA environments.
|
1081
|
+
# @return [Array<String>]
|
1082
|
+
#
|
1083
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/UntagResourceInput AWS API Documentation
|
1084
|
+
#
|
1085
|
+
class UntagResourceInput < Struct.new(
|
1086
|
+
:resource_arn,
|
1087
|
+
:tag_keys)
|
1088
|
+
SENSITIVE = []
|
1089
|
+
include Aws::Structure
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/UntagResourceOutput AWS API Documentation
|
1093
|
+
#
|
1094
|
+
class UntagResourceOutput < Aws::EmptyStructure; end
|
1095
|
+
|
1096
|
+
# @note When making an API call, you may pass UpdateEnvironmentInput
|
1097
|
+
# data as a hash:
|
1098
|
+
#
|
1099
|
+
# {
|
1100
|
+
# airflow_configuration_options: {
|
1101
|
+
# "ConfigKey" => "ConfigValue",
|
1102
|
+
# },
|
1103
|
+
# airflow_version: "AirflowVersion",
|
1104
|
+
# dag_s3_path: "RelativePath",
|
1105
|
+
# environment_class: "EnvironmentClass",
|
1106
|
+
# execution_role_arn: "IamRoleArn",
|
1107
|
+
# logging_configuration: {
|
1108
|
+
# dag_processing_logs: {
|
1109
|
+
# enabled: false, # required
|
1110
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
1111
|
+
# },
|
1112
|
+
# scheduler_logs: {
|
1113
|
+
# enabled: false, # required
|
1114
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
1115
|
+
# },
|
1116
|
+
# task_logs: {
|
1117
|
+
# enabled: false, # required
|
1118
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
1119
|
+
# },
|
1120
|
+
# webserver_logs: {
|
1121
|
+
# enabled: false, # required
|
1122
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
1123
|
+
# },
|
1124
|
+
# worker_logs: {
|
1125
|
+
# enabled: false, # required
|
1126
|
+
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
1127
|
+
# },
|
1128
|
+
# },
|
1129
|
+
# max_workers: 1,
|
1130
|
+
# name: "EnvironmentName", # required
|
1131
|
+
# network_configuration: {
|
1132
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
1133
|
+
# },
|
1134
|
+
# plugins_s3_object_version: "S3ObjectVersion",
|
1135
|
+
# plugins_s3_path: "RelativePath",
|
1136
|
+
# requirements_s3_object_version: "S3ObjectVersion",
|
1137
|
+
# requirements_s3_path: "RelativePath",
|
1138
|
+
# source_bucket_arn: "S3BucketArn",
|
1139
|
+
# webserver_access_mode: "PRIVATE_ONLY", # accepts PRIVATE_ONLY, PUBLIC_ONLY
|
1140
|
+
# weekly_maintenance_window_start: "WeeklyMaintenanceWindowStart",
|
1141
|
+
# }
|
1142
|
+
#
|
1143
|
+
# @!attribute [rw] airflow_configuration_options
|
1144
|
+
# The Airflow Configuration Options to update of your Amazon MWAA
|
1145
|
+
# environment.
|
1146
|
+
# @return [Hash<String,String>]
|
1147
|
+
#
|
1148
|
+
# @!attribute [rw] airflow_version
|
1149
|
+
# The Airflow Version to update of your Amazon MWAA environment.
|
1150
|
+
# @return [String]
|
1151
|
+
#
|
1152
|
+
# @!attribute [rw] dag_s3_path
|
1153
|
+
# The Dags folder S3 Path to update of your Amazon MWAA environment.
|
1154
|
+
# @return [String]
|
1155
|
+
#
|
1156
|
+
# @!attribute [rw] environment_class
|
1157
|
+
# The Environment Class to update of your Amazon MWAA environment.
|
1158
|
+
# @return [String]
|
1159
|
+
#
|
1160
|
+
# @!attribute [rw] execution_role_arn
|
1161
|
+
# The Executio Role ARN to update of your Amazon MWAA environment.
|
1162
|
+
# @return [String]
|
1163
|
+
#
|
1164
|
+
# @!attribute [rw] logging_configuration
|
1165
|
+
# The Logging Configuration to update of your Amazon MWAA environment.
|
1166
|
+
# @return [Types::LoggingConfigurationInput]
|
1167
|
+
#
|
1168
|
+
# @!attribute [rw] max_workers
|
1169
|
+
# The Maximum Workers to update of your Amazon MWAA environment.
|
1170
|
+
# @return [Integer]
|
1171
|
+
#
|
1172
|
+
# @!attribute [rw] name
|
1173
|
+
# The name of your Amazon MWAA environment that you wish to update.
|
1174
|
+
# @return [String]
|
1175
|
+
#
|
1176
|
+
# @!attribute [rw] network_configuration
|
1177
|
+
# The Network Configuration to update of your Amazon MWAA environment.
|
1178
|
+
# @return [Types::UpdateNetworkConfigurationInput]
|
1179
|
+
#
|
1180
|
+
# @!attribute [rw] plugins_s3_object_version
|
1181
|
+
# The Plugins.zip S3 Object Version to update of your Amazon MWAA
|
1182
|
+
# environment.
|
1183
|
+
# @return [String]
|
1184
|
+
#
|
1185
|
+
# @!attribute [rw] plugins_s3_path
|
1186
|
+
# The Plugins.zip S3 Path to update of your Amazon MWAA environment.
|
1187
|
+
# @return [String]
|
1188
|
+
#
|
1189
|
+
# @!attribute [rw] requirements_s3_object_version
|
1190
|
+
# The Requirements.txt S3 ObjectV ersion to update of your Amazon MWAA
|
1191
|
+
# environment.
|
1192
|
+
# @return [String]
|
1193
|
+
#
|
1194
|
+
# @!attribute [rw] requirements_s3_path
|
1195
|
+
# The Requirements.txt S3 Path to update of your Amazon MWAA
|
1196
|
+
# environment.
|
1197
|
+
# @return [String]
|
1198
|
+
#
|
1199
|
+
# @!attribute [rw] source_bucket_arn
|
1200
|
+
# The S3 Source Bucket ARN to update of your Amazon MWAA environment.
|
1201
|
+
# @return [String]
|
1202
|
+
#
|
1203
|
+
# @!attribute [rw] webserver_access_mode
|
1204
|
+
# The Webserver Access Mode to update of your Amazon MWAA environment.
|
1205
|
+
# @return [String]
|
1206
|
+
#
|
1207
|
+
# @!attribute [rw] weekly_maintenance_window_start
|
1208
|
+
# The Weekly Maintenance Window Start to update of your Amazon MWAA
|
1209
|
+
# environment.
|
1210
|
+
# @return [String]
|
1211
|
+
#
|
1212
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/UpdateEnvironmentInput AWS API Documentation
|
1213
|
+
#
|
1214
|
+
class UpdateEnvironmentInput < Struct.new(
|
1215
|
+
:airflow_configuration_options,
|
1216
|
+
:airflow_version,
|
1217
|
+
:dag_s3_path,
|
1218
|
+
:environment_class,
|
1219
|
+
:execution_role_arn,
|
1220
|
+
:logging_configuration,
|
1221
|
+
:max_workers,
|
1222
|
+
:name,
|
1223
|
+
:network_configuration,
|
1224
|
+
:plugins_s3_object_version,
|
1225
|
+
:plugins_s3_path,
|
1226
|
+
:requirements_s3_object_version,
|
1227
|
+
:requirements_s3_path,
|
1228
|
+
:source_bucket_arn,
|
1229
|
+
:webserver_access_mode,
|
1230
|
+
:weekly_maintenance_window_start)
|
1231
|
+
SENSITIVE = [:airflow_configuration_options]
|
1232
|
+
include Aws::Structure
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
# @!attribute [rw] arn
|
1236
|
+
# The ARN to update of your Amazon MWAA environment.
|
1237
|
+
# @return [String]
|
1238
|
+
#
|
1239
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/UpdateEnvironmentOutput AWS API Documentation
|
1240
|
+
#
|
1241
|
+
class UpdateEnvironmentOutput < Struct.new(
|
1242
|
+
:arn)
|
1243
|
+
SENSITIVE = []
|
1244
|
+
include Aws::Structure
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
# Error information of update, if applicable.
|
1248
|
+
#
|
1249
|
+
# @!attribute [rw] error_code
|
1250
|
+
# Error code of update.
|
1251
|
+
# @return [String]
|
1252
|
+
#
|
1253
|
+
# @!attribute [rw] error_message
|
1254
|
+
# Error message of update.
|
1255
|
+
# @return [String]
|
1256
|
+
#
|
1257
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/UpdateError AWS API Documentation
|
1258
|
+
#
|
1259
|
+
class UpdateError < Struct.new(
|
1260
|
+
:error_code,
|
1261
|
+
:error_message)
|
1262
|
+
SENSITIVE = []
|
1263
|
+
include Aws::Structure
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
# Provide the security group and subnet IDs for the workers and
|
1267
|
+
# scheduler.
|
1268
|
+
#
|
1269
|
+
# @note When making an API call, you may pass UpdateNetworkConfigurationInput
|
1270
|
+
# data as a hash:
|
1271
|
+
#
|
1272
|
+
# {
|
1273
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
1274
|
+
# }
|
1275
|
+
#
|
1276
|
+
# @!attribute [rw] security_group_ids
|
1277
|
+
# Provide a JSON list of 1 or more security groups IDs by name, in the
|
1278
|
+
# same VPC as the subnets.
|
1279
|
+
# @return [Array<String>]
|
1280
|
+
#
|
1281
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/UpdateNetworkConfigurationInput AWS API Documentation
|
1282
|
+
#
|
1283
|
+
class UpdateNetworkConfigurationInput < Struct.new(
|
1284
|
+
:security_group_ids)
|
1285
|
+
SENSITIVE = []
|
1286
|
+
include Aws::Structure
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
# ValidationException: The provided input is not valid.
|
1290
|
+
#
|
1291
|
+
# @!attribute [rw] message
|
1292
|
+
# @return [String]
|
1293
|
+
#
|
1294
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/ValidationException AWS API Documentation
|
1295
|
+
#
|
1296
|
+
class ValidationException < Struct.new(
|
1297
|
+
:message)
|
1298
|
+
SENSITIVE = []
|
1299
|
+
include Aws::Structure
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
end
|
1303
|
+
end
|