aws-sdk-mwaa 1.57.0 → 1.58.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-mwaa/client.rb +128 -114
- data/lib/aws-sdk-mwaa/client_api.rb +14 -11
- data/lib/aws-sdk-mwaa/types.rb +140 -119
- data/lib/aws-sdk-mwaa.rb +1 -1
- data/sig/client.rbs +17 -16
- data/sig/types.rbs +13 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab408aa9aea5e6986de67672a19a94dd661579fd1be0ba2a0eb2df284ba5ddcb
|
4
|
+
data.tar.gz: 57765554701578c1025a26f5b7255c98cffae7bb531629e0535f4c3c83719094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf630aa201469e19ce5617d6072d2e4858b6ea182a7b80f8f7f09d90573cb2355155050e90cab2b9ee5da524d7ef914f83d9683e0811e6a10bc0d8a26aa17ac5
|
7
|
+
data.tar.gz: d0eebed719de302be761942cd5680491148dc1df4f741a1e6542dce644d2f476e0726325c40a3d71dd43d21c5059bd569b35d048e6527f503d9d89dbcfb094ab
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.58.0 (2025-05-29)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon MWAA now lets you choose a worker replacement strategy when updating an environment. This release adds two worker replacement strategies: FORCED (default), which stops workers immediately, and GRACEFUL, which allows workers to finish current tasks before shutting down.
|
8
|
+
|
4
9
|
1.57.0 (2025-05-12)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.58.0
|
data/lib/aws-sdk-mwaa/client.rb
CHANGED
@@ -963,6 +963,7 @@ module Aws::MWAA
|
|
963
963
|
# resp.environment.last_update.error.error_code #=> String
|
964
964
|
# resp.environment.last_update.error.error_message #=> String
|
965
965
|
# resp.environment.last_update.source #=> String
|
966
|
+
# resp.environment.last_update.worker_replacement_strategy #=> String, one of "FORCED", "GRACEFUL"
|
966
967
|
# resp.environment.weekly_maintenance_window_start #=> String
|
967
968
|
# resp.environment.tags #=> Hash
|
968
969
|
# resp.environment.tags["TagKey"] #=> String
|
@@ -1268,6 +1269,15 @@ module Aws::MWAA
|
|
1268
1269
|
#
|
1269
1270
|
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html
|
1270
1271
|
#
|
1272
|
+
# @option params [Hash<String,String>] :airflow_configuration_options
|
1273
|
+
# A list of key-value pairs containing the Apache Airflow configuration
|
1274
|
+
# options you want to attach to your environment. For more information,
|
1275
|
+
# see [Apache Airflow configuration options][1].
|
1276
|
+
#
|
1277
|
+
#
|
1278
|
+
#
|
1279
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html
|
1280
|
+
#
|
1271
1281
|
# @option params [String] :airflow_version
|
1272
1282
|
# The Apache Airflow version for your environment. To upgrade your
|
1273
1283
|
# environment, specify a newer version of Apache Airflow supported by
|
@@ -1286,16 +1296,6 @@ module Aws::MWAA
|
|
1286
1296
|
#
|
1287
1297
|
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/upgrading-environment.html
|
1288
1298
|
#
|
1289
|
-
# @option params [String] :source_bucket_arn
|
1290
|
-
# The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG
|
1291
|
-
# code and supporting files are stored. For example,
|
1292
|
-
# `arn:aws:s3:::my-airflow-bucket-unique-name`. For more information,
|
1293
|
-
# see [Create an Amazon S3 bucket for Amazon MWAA][1].
|
1294
|
-
#
|
1295
|
-
#
|
1296
|
-
#
|
1297
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
|
1298
|
-
#
|
1299
1299
|
# @option params [String] :dag_s3_path
|
1300
1300
|
# The relative path to the DAGs folder on your Amazon S3 bucket. For
|
1301
1301
|
# example, `dags`. For more information, see [Adding or updating
|
@@ -1305,6 +1305,87 @@ module Aws::MWAA
|
|
1305
1305
|
#
|
1306
1306
|
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html
|
1307
1307
|
#
|
1308
|
+
# @option params [String] :environment_class
|
1309
|
+
# The environment class type. Valid values: `mw1.micro`, `mw1.small`,
|
1310
|
+
# `mw1.medium`, `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
1311
|
+
# information, see [Amazon MWAA environment class][1].
|
1312
|
+
#
|
1313
|
+
#
|
1314
|
+
#
|
1315
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html
|
1316
|
+
#
|
1317
|
+
# @option params [Types::LoggingConfigurationInput] :logging_configuration
|
1318
|
+
# The Apache Airflow log types to send to CloudWatch Logs.
|
1319
|
+
#
|
1320
|
+
# @option params [Integer] :max_workers
|
1321
|
+
# The maximum number of workers that you want to run in your
|
1322
|
+
# environment. MWAA scales the number of Apache Airflow workers up to
|
1323
|
+
# the number you specify in the `MaxWorkers` field. For example, `20`.
|
1324
|
+
# When there are no more tasks running, and no more in the queue, MWAA
|
1325
|
+
# disposes of the extra workers leaving the one worker that is included
|
1326
|
+
# with your environment, or the number you specify in `MinWorkers`.
|
1327
|
+
#
|
1328
|
+
# @option params [Integer] :min_workers
|
1329
|
+
# The minimum number of workers that you want to run in your
|
1330
|
+
# environment. MWAA scales the number of Apache Airflow workers up to
|
1331
|
+
# the number you specify in the `MaxWorkers` field. When there are no
|
1332
|
+
# more tasks running, and no more in the queue, MWAA disposes of the
|
1333
|
+
# extra workers leaving the worker count you specify in the `MinWorkers`
|
1334
|
+
# field. For example, `2`.
|
1335
|
+
#
|
1336
|
+
# @option params [Integer] :max_webservers
|
1337
|
+
# The maximum number of web servers that you want to run in your
|
1338
|
+
# environment. Amazon MWAA scales the number of Apache Airflow web
|
1339
|
+
# servers up to the number you specify for `MaxWebservers` when you
|
1340
|
+
# interact with your Apache Airflow environment using Apache Airflow
|
1341
|
+
# REST API, or the Apache Airflow CLI. For example, in scenarios where
|
1342
|
+
# your workload requires network calls to the Apache Airflow REST API
|
1343
|
+
# with a high transaction-per-second (TPS) rate, Amazon MWAA will
|
1344
|
+
# increase the number of web servers up to the number set in
|
1345
|
+
# `MaxWebserers`. As TPS rates decrease Amazon MWAA disposes of the
|
1346
|
+
# additional web servers, and scales down to the number set in
|
1347
|
+
# `MinxWebserers`.
|
1348
|
+
#
|
1349
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
1350
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1351
|
+
# mw1.micro, which defaults to `1`.
|
1352
|
+
#
|
1353
|
+
# @option params [Integer] :min_webservers
|
1354
|
+
# The minimum number of web servers that you want to run in your
|
1355
|
+
# environment. Amazon MWAA scales the number of Apache Airflow web
|
1356
|
+
# servers up to the number you specify for `MaxWebservers` when you
|
1357
|
+
# interact with your Apache Airflow environment using Apache Airflow
|
1358
|
+
# REST API, or the Apache Airflow CLI. As the transaction-per-second
|
1359
|
+
# rate, and the network load, decrease, Amazon MWAA disposes of the
|
1360
|
+
# additional web servers, and scales down to the number set in
|
1361
|
+
# `MinxWebserers`.
|
1362
|
+
#
|
1363
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
1364
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1365
|
+
# mw1.micro, which defaults to `1`.
|
1366
|
+
#
|
1367
|
+
# @option params [String] :worker_replacement_strategy
|
1368
|
+
# The worker replacement strategy to use when updating the environment.
|
1369
|
+
#
|
1370
|
+
# You can select one of the following strategies:
|
1371
|
+
#
|
1372
|
+
# * **Forced -** Stops and replaces Apache Airflow workers without
|
1373
|
+
# waiting for tasks to complete before an update.
|
1374
|
+
#
|
1375
|
+
# * **Graceful -** Allows Apache Airflow workers to complete running
|
1376
|
+
# tasks for up to 12 hours during an update before they're stopped
|
1377
|
+
# and replaced.
|
1378
|
+
#
|
1379
|
+
# @option params [Types::UpdateNetworkConfigurationInput] :network_configuration
|
1380
|
+
# The VPC networking components used to secure and enable network
|
1381
|
+
# traffic between the Amazon Web Services resources for your
|
1382
|
+
# environment. For more information, see [About networking on Amazon
|
1383
|
+
# MWAA][1].
|
1384
|
+
#
|
1385
|
+
#
|
1386
|
+
#
|
1387
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html
|
1388
|
+
#
|
1308
1389
|
# @option params [String] :plugins_s3_path
|
1309
1390
|
# The relative path to the `plugins.zip` file on your Amazon S3 bucket.
|
1310
1391
|
# For example, `plugins.zip`. If specified, then the plugins.zip version
|
@@ -1342,6 +1423,20 @@ module Aws::MWAA
|
|
1342
1423
|
#
|
1343
1424
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
|
1344
1425
|
#
|
1426
|
+
# @option params [Integer] :schedulers
|
1427
|
+
# The number of Apache Airflow schedulers to run in your Amazon MWAA
|
1428
|
+
# environment.
|
1429
|
+
#
|
1430
|
+
# @option params [String] :source_bucket_arn
|
1431
|
+
# The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG
|
1432
|
+
# code and supporting files are stored. For example,
|
1433
|
+
# `arn:aws:s3:::my-airflow-bucket-unique-name`. For more information,
|
1434
|
+
# see [Create an Amazon S3 bucket for Amazon MWAA][1].
|
1435
|
+
#
|
1436
|
+
#
|
1437
|
+
#
|
1438
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
|
1439
|
+
#
|
1345
1440
|
# @option params [String] :startup_script_s3_path
|
1346
1441
|
# The relative path to the startup shell script in your Amazon S3
|
1347
1442
|
# bucket. For example, `s3://mwaa-environment/startup.sh`.
|
@@ -1373,44 +1468,13 @@ module Aws::MWAA
|
|
1373
1468
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
|
1374
1469
|
# [2]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
|
1375
1470
|
#
|
1376
|
-
# @option params [
|
1377
|
-
#
|
1378
|
-
#
|
1379
|
-
# see [Apache Airflow configuration options][1].
|
1380
|
-
#
|
1381
|
-
#
|
1382
|
-
#
|
1383
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html
|
1384
|
-
#
|
1385
|
-
# @option params [String] :environment_class
|
1386
|
-
# The environment class type. Valid values: `mw1.micro`, `mw1.small`,
|
1387
|
-
# `mw1.medium`, `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
1388
|
-
# information, see [Amazon MWAA environment class][1].
|
1389
|
-
#
|
1390
|
-
#
|
1391
|
-
#
|
1392
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html
|
1393
|
-
#
|
1394
|
-
# @option params [Integer] :max_workers
|
1395
|
-
# The maximum number of workers that you want to run in your
|
1396
|
-
# environment. MWAA scales the number of Apache Airflow workers up to
|
1397
|
-
# the number you specify in the `MaxWorkers` field. For example, `20`.
|
1398
|
-
# When there are no more tasks running, and no more in the queue, MWAA
|
1399
|
-
# disposes of the extra workers leaving the one worker that is included
|
1400
|
-
# with your environment, or the number you specify in `MinWorkers`.
|
1401
|
-
#
|
1402
|
-
# @option params [Types::UpdateNetworkConfigurationInput] :network_configuration
|
1403
|
-
# The VPC networking components used to secure and enable network
|
1404
|
-
# traffic between the Amazon Web Services resources for your
|
1405
|
-
# environment. For more information, see [About networking on Amazon
|
1406
|
-
# MWAA][1].
|
1471
|
+
# @option params [String] :webserver_access_mode
|
1472
|
+
# The Apache Airflow *Web server* access mode. For more information, see
|
1473
|
+
# [Apache Airflow access modes][1].
|
1407
1474
|
#
|
1408
1475
|
#
|
1409
1476
|
#
|
1410
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/networking
|
1411
|
-
#
|
1412
|
-
# @option params [Types::LoggingConfigurationInput] :logging_configuration
|
1413
|
-
# The Apache Airflow log types to send to CloudWatch Logs.
|
1477
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html
|
1414
1478
|
#
|
1415
1479
|
# @option params [String] :weekly_maintenance_window_start
|
1416
1480
|
# The day and time of the week in Coordinated Universal Time (UTC)
|
@@ -1419,57 +1483,6 @@ module Aws::MWAA
|
|
1419
1483
|
# `TUE:03:30`. You can specify a start time in 30 minute increments
|
1420
1484
|
# only.
|
1421
1485
|
#
|
1422
|
-
# @option params [String] :webserver_access_mode
|
1423
|
-
# The Apache Airflow *Web server* access mode. For more information, see
|
1424
|
-
# [Apache Airflow access modes][1].
|
1425
|
-
#
|
1426
|
-
#
|
1427
|
-
#
|
1428
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html
|
1429
|
-
#
|
1430
|
-
# @option params [Integer] :min_workers
|
1431
|
-
# The minimum number of workers that you want to run in your
|
1432
|
-
# environment. MWAA scales the number of Apache Airflow workers up to
|
1433
|
-
# the number you specify in the `MaxWorkers` field. When there are no
|
1434
|
-
# more tasks running, and no more in the queue, MWAA disposes of the
|
1435
|
-
# extra workers leaving the worker count you specify in the `MinWorkers`
|
1436
|
-
# field. For example, `2`.
|
1437
|
-
#
|
1438
|
-
# @option params [Integer] :schedulers
|
1439
|
-
# The number of Apache Airflow schedulers to run in your Amazon MWAA
|
1440
|
-
# environment.
|
1441
|
-
#
|
1442
|
-
# @option params [Integer] :min_webservers
|
1443
|
-
# The minimum number of web servers that you want to run in your
|
1444
|
-
# environment. Amazon MWAA scales the number of Apache Airflow web
|
1445
|
-
# servers up to the number you specify for `MaxWebservers` when you
|
1446
|
-
# interact with your Apache Airflow environment using Apache Airflow
|
1447
|
-
# REST API, or the Apache Airflow CLI. As the transaction-per-second
|
1448
|
-
# rate, and the network load, decrease, Amazon MWAA disposes of the
|
1449
|
-
# additional web servers, and scales down to the number set in
|
1450
|
-
# `MinxWebserers`.
|
1451
|
-
#
|
1452
|
-
# Valid values: For environments larger than mw1.micro, accepts values
|
1453
|
-
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1454
|
-
# mw1.micro, which defaults to `1`.
|
1455
|
-
#
|
1456
|
-
# @option params [Integer] :max_webservers
|
1457
|
-
# The maximum number of web servers that you want to run in your
|
1458
|
-
# environment. Amazon MWAA scales the number of Apache Airflow web
|
1459
|
-
# servers up to the number you specify for `MaxWebservers` when you
|
1460
|
-
# interact with your Apache Airflow environment using Apache Airflow
|
1461
|
-
# REST API, or the Apache Airflow CLI. For example, in scenarios where
|
1462
|
-
# your workload requires network calls to the Apache Airflow REST API
|
1463
|
-
# with a high transaction-per-second (TPS) rate, Amazon MWAA will
|
1464
|
-
# increase the number of web servers up to the number set in
|
1465
|
-
# `MaxWebserers`. As TPS rates decrease Amazon MWAA disposes of the
|
1466
|
-
# additional web servers, and scales down to the number set in
|
1467
|
-
# `MinxWebserers`.
|
1468
|
-
#
|
1469
|
-
# Valid values: For environments larger than mw1.micro, accepts values
|
1470
|
-
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1471
|
-
# mw1.micro, which defaults to `1`.
|
1472
|
-
#
|
1473
1486
|
# @return [Types::UpdateEnvironmentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1474
1487
|
#
|
1475
1488
|
# * {Types::UpdateEnvironmentOutput#arn #arn} => String
|
@@ -1479,23 +1492,12 @@ module Aws::MWAA
|
|
1479
1492
|
# resp = client.update_environment({
|
1480
1493
|
# name: "EnvironmentName", # required
|
1481
1494
|
# execution_role_arn: "IamRoleArn",
|
1482
|
-
# airflow_version: "AirflowVersion",
|
1483
|
-
# source_bucket_arn: "S3BucketArn",
|
1484
|
-
# dag_s3_path: "RelativePath",
|
1485
|
-
# plugins_s3_path: "RelativePath",
|
1486
|
-
# plugins_s3_object_version: "S3ObjectVersion",
|
1487
|
-
# requirements_s3_path: "RelativePath",
|
1488
|
-
# requirements_s3_object_version: "S3ObjectVersion",
|
1489
|
-
# startup_script_s3_path: "RelativePath",
|
1490
|
-
# startup_script_s3_object_version: "S3ObjectVersion",
|
1491
1495
|
# airflow_configuration_options: {
|
1492
1496
|
# "ConfigKey" => "ConfigValue",
|
1493
1497
|
# },
|
1498
|
+
# airflow_version: "AirflowVersion",
|
1499
|
+
# dag_s3_path: "RelativePath",
|
1494
1500
|
# environment_class: "EnvironmentClass",
|
1495
|
-
# max_workers: 1,
|
1496
|
-
# network_configuration: {
|
1497
|
-
# security_group_ids: ["SecurityGroupId"], # required
|
1498
|
-
# },
|
1499
1501
|
# logging_configuration: {
|
1500
1502
|
# dag_processing_logs: {
|
1501
1503
|
# enabled: false, # required
|
@@ -1518,12 +1520,24 @@ module Aws::MWAA
|
|
1518
1520
|
# log_level: "CRITICAL", # required, accepts CRITICAL, ERROR, WARNING, INFO, DEBUG
|
1519
1521
|
# },
|
1520
1522
|
# },
|
1521
|
-
#
|
1522
|
-
# webserver_access_mode: "PRIVATE_ONLY", # accepts PRIVATE_ONLY, PUBLIC_ONLY
|
1523
|
+
# max_workers: 1,
|
1523
1524
|
# min_workers: 1,
|
1524
|
-
# schedulers: 1,
|
1525
|
-
# min_webservers: 1,
|
1526
1525
|
# max_webservers: 1,
|
1526
|
+
# min_webservers: 1,
|
1527
|
+
# worker_replacement_strategy: "FORCED", # accepts FORCED, GRACEFUL
|
1528
|
+
# network_configuration: {
|
1529
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
1530
|
+
# },
|
1531
|
+
# plugins_s3_path: "RelativePath",
|
1532
|
+
# plugins_s3_object_version: "S3ObjectVersion",
|
1533
|
+
# requirements_s3_path: "RelativePath",
|
1534
|
+
# requirements_s3_object_version: "S3ObjectVersion",
|
1535
|
+
# schedulers: 1,
|
1536
|
+
# source_bucket_arn: "S3BucketArn",
|
1537
|
+
# startup_script_s3_path: "RelativePath",
|
1538
|
+
# startup_script_s3_object_version: "S3ObjectVersion",
|
1539
|
+
# webserver_access_mode: "PRIVATE_ONLY", # accepts PRIVATE_ONLY, PUBLIC_ONLY
|
1540
|
+
# weekly_maintenance_window_start: "WeeklyMaintenanceWindowStart",
|
1527
1541
|
# })
|
1528
1542
|
#
|
1529
1543
|
# @example Response structure
|
@@ -1557,7 +1571,7 @@ module Aws::MWAA
|
|
1557
1571
|
tracer: tracer
|
1558
1572
|
)
|
1559
1573
|
context[:gem_name] = 'aws-sdk-mwaa'
|
1560
|
-
context[:gem_version] = '1.
|
1574
|
+
context[:gem_version] = '1.58.0'
|
1561
1575
|
Seahorse::Client::Request.new(handlers, context)
|
1562
1576
|
end
|
1563
1577
|
|
@@ -116,6 +116,7 @@ module Aws::MWAA
|
|
116
116
|
WebserverAccessMode = Shapes::StringShape.new(name: 'WebserverAccessMode')
|
117
117
|
WebserverUrl = Shapes::StringShape.new(name: 'WebserverUrl')
|
118
118
|
WeeklyMaintenanceWindowStart = Shapes::StringShape.new(name: 'WeeklyMaintenanceWindowStart')
|
119
|
+
WorkerReplacementStrategy = Shapes::StringShape.new(name: 'WorkerReplacementStrategy')
|
119
120
|
|
120
121
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
121
122
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
@@ -242,6 +243,7 @@ module Aws::MWAA
|
|
242
243
|
LastUpdate.add_member(:created_at, Shapes::ShapeRef.new(shape: UpdateCreatedAt, location_name: "CreatedAt"))
|
243
244
|
LastUpdate.add_member(:error, Shapes::ShapeRef.new(shape: UpdateError, location_name: "Error"))
|
244
245
|
LastUpdate.add_member(:source, Shapes::ShapeRef.new(shape: UpdateSource, location_name: "Source"))
|
246
|
+
LastUpdate.add_member(:worker_replacement_strategy, Shapes::ShapeRef.new(shape: WorkerReplacementStrategy, location_name: "WorkerReplacementStrategy"))
|
245
247
|
LastUpdate.struct_class = Types::LastUpdate
|
246
248
|
|
247
249
|
ListEnvironmentsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
@@ -341,26 +343,27 @@ module Aws::MWAA
|
|
341
343
|
|
342
344
|
UpdateEnvironmentInput.add_member(:name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location: "uri", location_name: "Name"))
|
343
345
|
UpdateEnvironmentInput.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "ExecutionRoleArn"))
|
346
|
+
UpdateEnvironmentInput.add_member(:airflow_configuration_options, Shapes::ShapeRef.new(shape: AirflowConfigurationOptions, location_name: "AirflowConfigurationOptions"))
|
344
347
|
UpdateEnvironmentInput.add_member(:airflow_version, Shapes::ShapeRef.new(shape: AirflowVersion, location_name: "AirflowVersion"))
|
345
|
-
UpdateEnvironmentInput.add_member(:source_bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, location_name: "SourceBucketArn"))
|
346
348
|
UpdateEnvironmentInput.add_member(:dag_s3_path, Shapes::ShapeRef.new(shape: RelativePath, location_name: "DagS3Path"))
|
349
|
+
UpdateEnvironmentInput.add_member(:environment_class, Shapes::ShapeRef.new(shape: EnvironmentClass, location_name: "EnvironmentClass"))
|
350
|
+
UpdateEnvironmentInput.add_member(:logging_configuration, Shapes::ShapeRef.new(shape: LoggingConfigurationInput, location_name: "LoggingConfiguration"))
|
351
|
+
UpdateEnvironmentInput.add_member(:max_workers, Shapes::ShapeRef.new(shape: MaxWorkers, location_name: "MaxWorkers"))
|
352
|
+
UpdateEnvironmentInput.add_member(:min_workers, Shapes::ShapeRef.new(shape: MinWorkers, location_name: "MinWorkers"))
|
353
|
+
UpdateEnvironmentInput.add_member(:max_webservers, Shapes::ShapeRef.new(shape: MaxWebservers, location_name: "MaxWebservers"))
|
354
|
+
UpdateEnvironmentInput.add_member(:min_webservers, Shapes::ShapeRef.new(shape: MinWebservers, location_name: "MinWebservers"))
|
355
|
+
UpdateEnvironmentInput.add_member(:worker_replacement_strategy, Shapes::ShapeRef.new(shape: WorkerReplacementStrategy, location_name: "WorkerReplacementStrategy"))
|
356
|
+
UpdateEnvironmentInput.add_member(:network_configuration, Shapes::ShapeRef.new(shape: UpdateNetworkConfigurationInput, location_name: "NetworkConfiguration"))
|
347
357
|
UpdateEnvironmentInput.add_member(:plugins_s3_path, Shapes::ShapeRef.new(shape: RelativePath, location_name: "PluginsS3Path"))
|
348
358
|
UpdateEnvironmentInput.add_member(:plugins_s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "PluginsS3ObjectVersion"))
|
349
359
|
UpdateEnvironmentInput.add_member(:requirements_s3_path, Shapes::ShapeRef.new(shape: RelativePath, location_name: "RequirementsS3Path"))
|
350
360
|
UpdateEnvironmentInput.add_member(:requirements_s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "RequirementsS3ObjectVersion"))
|
361
|
+
UpdateEnvironmentInput.add_member(:schedulers, Shapes::ShapeRef.new(shape: Schedulers, location_name: "Schedulers"))
|
362
|
+
UpdateEnvironmentInput.add_member(:source_bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, location_name: "SourceBucketArn"))
|
351
363
|
UpdateEnvironmentInput.add_member(:startup_script_s3_path, Shapes::ShapeRef.new(shape: RelativePath, location_name: "StartupScriptS3Path"))
|
352
364
|
UpdateEnvironmentInput.add_member(:startup_script_s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "StartupScriptS3ObjectVersion"))
|
353
|
-
UpdateEnvironmentInput.add_member(:airflow_configuration_options, Shapes::ShapeRef.new(shape: AirflowConfigurationOptions, location_name: "AirflowConfigurationOptions"))
|
354
|
-
UpdateEnvironmentInput.add_member(:environment_class, Shapes::ShapeRef.new(shape: EnvironmentClass, location_name: "EnvironmentClass"))
|
355
|
-
UpdateEnvironmentInput.add_member(:max_workers, Shapes::ShapeRef.new(shape: MaxWorkers, location_name: "MaxWorkers"))
|
356
|
-
UpdateEnvironmentInput.add_member(:network_configuration, Shapes::ShapeRef.new(shape: UpdateNetworkConfigurationInput, location_name: "NetworkConfiguration"))
|
357
|
-
UpdateEnvironmentInput.add_member(:logging_configuration, Shapes::ShapeRef.new(shape: LoggingConfigurationInput, location_name: "LoggingConfiguration"))
|
358
|
-
UpdateEnvironmentInput.add_member(:weekly_maintenance_window_start, Shapes::ShapeRef.new(shape: WeeklyMaintenanceWindowStart, location_name: "WeeklyMaintenanceWindowStart"))
|
359
365
|
UpdateEnvironmentInput.add_member(:webserver_access_mode, Shapes::ShapeRef.new(shape: WebserverAccessMode, location_name: "WebserverAccessMode"))
|
360
|
-
UpdateEnvironmentInput.add_member(:
|
361
|
-
UpdateEnvironmentInput.add_member(:schedulers, Shapes::ShapeRef.new(shape: Schedulers, location_name: "Schedulers"))
|
362
|
-
UpdateEnvironmentInput.add_member(:min_webservers, Shapes::ShapeRef.new(shape: MinWebservers, location_name: "MinWebservers"))
|
363
|
-
UpdateEnvironmentInput.add_member(:max_webservers, Shapes::ShapeRef.new(shape: MaxWebservers, location_name: "MaxWebservers"))
|
366
|
+
UpdateEnvironmentInput.add_member(:weekly_maintenance_window_start, Shapes::ShapeRef.new(shape: WeeklyMaintenanceWindowStart, location_name: "WeeklyMaintenanceWindowStart"))
|
364
367
|
UpdateEnvironmentInput.struct_class = Types::UpdateEnvironmentInput
|
365
368
|
|
366
369
|
UpdateEnvironmentOutput.add_member(:arn, Shapes::ShapeRef.new(shape: EnvironmentArn, location_name: "Arn"))
|
data/lib/aws-sdk-mwaa/types.rb
CHANGED
@@ -1007,13 +1007,19 @@ module Aws::MWAA
|
|
1007
1007
|
# processes by Amazon MWAA, such as an environment maintenance update.
|
1008
1008
|
# @return [String]
|
1009
1009
|
#
|
1010
|
+
# @!attribute [rw] worker_replacement_strategy
|
1011
|
+
# The worker replacement strategy used in the last update of the
|
1012
|
+
# environment.
|
1013
|
+
# @return [String]
|
1014
|
+
#
|
1010
1015
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/LastUpdate AWS API Documentation
|
1011
1016
|
#
|
1012
1017
|
class LastUpdate < Struct.new(
|
1013
1018
|
:status,
|
1014
1019
|
:created_at,
|
1015
1020
|
:error,
|
1016
|
-
:source
|
1021
|
+
:source,
|
1022
|
+
:worker_replacement_strategy)
|
1017
1023
|
SENSITIVE = []
|
1018
1024
|
include Aws::Structure
|
1019
1025
|
end
|
@@ -1479,6 +1485,16 @@ module Aws::MWAA
|
|
1479
1485
|
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html
|
1480
1486
|
# @return [String]
|
1481
1487
|
#
|
1488
|
+
# @!attribute [rw] airflow_configuration_options
|
1489
|
+
# A list of key-value pairs containing the Apache Airflow
|
1490
|
+
# configuration options you want to attach to your environment. For
|
1491
|
+
# more information, see [Apache Airflow configuration options][1].
|
1492
|
+
#
|
1493
|
+
#
|
1494
|
+
#
|
1495
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html
|
1496
|
+
# @return [Hash<String,String>]
|
1497
|
+
#
|
1482
1498
|
# @!attribute [rw] airflow_version
|
1483
1499
|
# The Apache Airflow version for your environment. To upgrade your
|
1484
1500
|
# environment, specify a newer version of Apache Airflow supported by
|
@@ -1498,17 +1514,6 @@ module Aws::MWAA
|
|
1498
1514
|
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/upgrading-environment.html
|
1499
1515
|
# @return [String]
|
1500
1516
|
#
|
1501
|
-
# @!attribute [rw] source_bucket_arn
|
1502
|
-
# The Amazon Resource Name (ARN) of the Amazon S3 bucket where your
|
1503
|
-
# DAG code and supporting files are stored. For example,
|
1504
|
-
# `arn:aws:s3:::my-airflow-bucket-unique-name`. For more information,
|
1505
|
-
# see [Create an Amazon S3 bucket for Amazon MWAA][1].
|
1506
|
-
#
|
1507
|
-
#
|
1508
|
-
#
|
1509
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
|
1510
|
-
# @return [String]
|
1511
|
-
#
|
1512
1517
|
# @!attribute [rw] dag_s3_path
|
1513
1518
|
# The relative path to the DAGs folder on your Amazon S3 bucket. For
|
1514
1519
|
# example, `dags`. For more information, see [Adding or updating
|
@@ -1519,6 +1524,97 @@ module Aws::MWAA
|
|
1519
1524
|
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html
|
1520
1525
|
# @return [String]
|
1521
1526
|
#
|
1527
|
+
# @!attribute [rw] environment_class
|
1528
|
+
# The environment class type. Valid values: `mw1.micro`, `mw1.small`,
|
1529
|
+
# `mw1.medium`, `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
1530
|
+
# information, see [Amazon MWAA environment class][1].
|
1531
|
+
#
|
1532
|
+
#
|
1533
|
+
#
|
1534
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html
|
1535
|
+
# @return [String]
|
1536
|
+
#
|
1537
|
+
# @!attribute [rw] logging_configuration
|
1538
|
+
# The Apache Airflow log types to send to CloudWatch Logs.
|
1539
|
+
# @return [Types::LoggingConfigurationInput]
|
1540
|
+
#
|
1541
|
+
# @!attribute [rw] max_workers
|
1542
|
+
# The maximum number of workers that you want to run in your
|
1543
|
+
# environment. MWAA scales the number of Apache Airflow workers up to
|
1544
|
+
# the number you specify in the `MaxWorkers` field. For example, `20`.
|
1545
|
+
# When there are no more tasks running, and no more in the queue, MWAA
|
1546
|
+
# disposes of the extra workers leaving the one worker that is
|
1547
|
+
# included with your environment, or the number you specify in
|
1548
|
+
# `MinWorkers`.
|
1549
|
+
# @return [Integer]
|
1550
|
+
#
|
1551
|
+
# @!attribute [rw] min_workers
|
1552
|
+
# The minimum number of workers that you want to run in your
|
1553
|
+
# environment. MWAA scales the number of Apache Airflow workers up to
|
1554
|
+
# the number you specify in the `MaxWorkers` field. When there are no
|
1555
|
+
# more tasks running, and no more in the queue, MWAA disposes of the
|
1556
|
+
# extra workers leaving the worker count you specify in the
|
1557
|
+
# `MinWorkers` field. For example, `2`.
|
1558
|
+
# @return [Integer]
|
1559
|
+
#
|
1560
|
+
# @!attribute [rw] max_webservers
|
1561
|
+
# The maximum number of web servers that you want to run in your
|
1562
|
+
# environment. Amazon MWAA scales the number of Apache Airflow web
|
1563
|
+
# servers up to the number you specify for `MaxWebservers` when you
|
1564
|
+
# interact with your Apache Airflow environment using Apache Airflow
|
1565
|
+
# REST API, or the Apache Airflow CLI. For example, in scenarios where
|
1566
|
+
# your workload requires network calls to the Apache Airflow REST API
|
1567
|
+
# with a high transaction-per-second (TPS) rate, Amazon MWAA will
|
1568
|
+
# increase the number of web servers up to the number set in
|
1569
|
+
# `MaxWebserers`. As TPS rates decrease Amazon MWAA disposes of the
|
1570
|
+
# additional web servers, and scales down to the number set in
|
1571
|
+
# `MinxWebserers`.
|
1572
|
+
#
|
1573
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
1574
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1575
|
+
# mw1.micro, which defaults to `1`.
|
1576
|
+
# @return [Integer]
|
1577
|
+
#
|
1578
|
+
# @!attribute [rw] min_webservers
|
1579
|
+
# The minimum number of web servers that you want to run in your
|
1580
|
+
# environment. Amazon MWAA scales the number of Apache Airflow web
|
1581
|
+
# servers up to the number you specify for `MaxWebservers` when you
|
1582
|
+
# interact with your Apache Airflow environment using Apache Airflow
|
1583
|
+
# REST API, or the Apache Airflow CLI. As the transaction-per-second
|
1584
|
+
# rate, and the network load, decrease, Amazon MWAA disposes of the
|
1585
|
+
# additional web servers, and scales down to the number set in
|
1586
|
+
# `MinxWebserers`.
|
1587
|
+
#
|
1588
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
1589
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1590
|
+
# mw1.micro, which defaults to `1`.
|
1591
|
+
# @return [Integer]
|
1592
|
+
#
|
1593
|
+
# @!attribute [rw] worker_replacement_strategy
|
1594
|
+
# The worker replacement strategy to use when updating the
|
1595
|
+
# environment.
|
1596
|
+
#
|
1597
|
+
# You can select one of the following strategies:
|
1598
|
+
#
|
1599
|
+
# * **Forced -** Stops and replaces Apache Airflow workers without
|
1600
|
+
# waiting for tasks to complete before an update.
|
1601
|
+
#
|
1602
|
+
# * **Graceful -** Allows Apache Airflow workers to complete running
|
1603
|
+
# tasks for up to 12 hours during an update before they're stopped
|
1604
|
+
# and replaced.
|
1605
|
+
# @return [String]
|
1606
|
+
#
|
1607
|
+
# @!attribute [rw] network_configuration
|
1608
|
+
# The VPC networking components used to secure and enable network
|
1609
|
+
# traffic between the Amazon Web Services resources for your
|
1610
|
+
# environment. For more information, see [About networking on Amazon
|
1611
|
+
# MWAA][1].
|
1612
|
+
#
|
1613
|
+
#
|
1614
|
+
#
|
1615
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html
|
1616
|
+
# @return [Types::UpdateNetworkConfigurationInput]
|
1617
|
+
#
|
1522
1618
|
# @!attribute [rw] plugins_s3_path
|
1523
1619
|
# The relative path to the `plugins.zip` file on your Amazon S3
|
1524
1620
|
# bucket. For example, `plugins.zip`. If specified, then the
|
@@ -1561,6 +1657,22 @@ module Aws::MWAA
|
|
1561
1657
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
|
1562
1658
|
# @return [String]
|
1563
1659
|
#
|
1660
|
+
# @!attribute [rw] schedulers
|
1661
|
+
# The number of Apache Airflow schedulers to run in your Amazon MWAA
|
1662
|
+
# environment.
|
1663
|
+
# @return [Integer]
|
1664
|
+
#
|
1665
|
+
# @!attribute [rw] source_bucket_arn
|
1666
|
+
# The Amazon Resource Name (ARN) of the Amazon S3 bucket where your
|
1667
|
+
# DAG code and supporting files are stored. For example,
|
1668
|
+
# `arn:aws:s3:::my-airflow-bucket-unique-name`. For more information,
|
1669
|
+
# see [Create an Amazon S3 bucket for Amazon MWAA][1].
|
1670
|
+
#
|
1671
|
+
#
|
1672
|
+
#
|
1673
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
|
1674
|
+
# @return [String]
|
1675
|
+
#
|
1564
1676
|
# @!attribute [rw] startup_script_s3_path
|
1565
1677
|
# The relative path to the startup shell script in your Amazon S3
|
1566
1678
|
# bucket. For example, `s3://mwaa-environment/startup.sh`.
|
@@ -1594,51 +1706,15 @@ module Aws::MWAA
|
|
1594
1706
|
# [2]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
|
1595
1707
|
# @return [String]
|
1596
1708
|
#
|
1597
|
-
# @!attribute [rw]
|
1598
|
-
#
|
1599
|
-
#
|
1600
|
-
# more information, see [Apache Airflow configuration options][1].
|
1601
|
-
#
|
1602
|
-
#
|
1603
|
-
#
|
1604
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html
|
1605
|
-
# @return [Hash<String,String>]
|
1606
|
-
#
|
1607
|
-
# @!attribute [rw] environment_class
|
1608
|
-
# The environment class type. Valid values: `mw1.micro`, `mw1.small`,
|
1609
|
-
# `mw1.medium`, `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
1610
|
-
# information, see [Amazon MWAA environment class][1].
|
1709
|
+
# @!attribute [rw] webserver_access_mode
|
1710
|
+
# The Apache Airflow *Web server* access mode. For more information,
|
1711
|
+
# see [Apache Airflow access modes][1].
|
1611
1712
|
#
|
1612
1713
|
#
|
1613
1714
|
#
|
1614
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/
|
1715
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html
|
1615
1716
|
# @return [String]
|
1616
1717
|
#
|
1617
|
-
# @!attribute [rw] max_workers
|
1618
|
-
# The maximum number of workers that you want to run in your
|
1619
|
-
# environment. MWAA scales the number of Apache Airflow workers up to
|
1620
|
-
# the number you specify in the `MaxWorkers` field. For example, `20`.
|
1621
|
-
# When there are no more tasks running, and no more in the queue, MWAA
|
1622
|
-
# disposes of the extra workers leaving the one worker that is
|
1623
|
-
# included with your environment, or the number you specify in
|
1624
|
-
# `MinWorkers`.
|
1625
|
-
# @return [Integer]
|
1626
|
-
#
|
1627
|
-
# @!attribute [rw] network_configuration
|
1628
|
-
# The VPC networking components used to secure and enable network
|
1629
|
-
# traffic between the Amazon Web Services resources for your
|
1630
|
-
# environment. For more information, see [About networking on Amazon
|
1631
|
-
# MWAA][1].
|
1632
|
-
#
|
1633
|
-
#
|
1634
|
-
#
|
1635
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html
|
1636
|
-
# @return [Types::UpdateNetworkConfigurationInput]
|
1637
|
-
#
|
1638
|
-
# @!attribute [rw] logging_configuration
|
1639
|
-
# The Apache Airflow log types to send to CloudWatch Logs.
|
1640
|
-
# @return [Types::LoggingConfigurationInput]
|
1641
|
-
#
|
1642
1718
|
# @!attribute [rw] weekly_maintenance_window_start
|
1643
1719
|
# The day and time of the week in Coordinated Universal Time (UTC)
|
1644
1720
|
# 24-hour standard time to start weekly maintenance updates of your
|
@@ -1647,87 +1723,32 @@ module Aws::MWAA
|
|
1647
1723
|
# only.
|
1648
1724
|
# @return [String]
|
1649
1725
|
#
|
1650
|
-
# @!attribute [rw] webserver_access_mode
|
1651
|
-
# The Apache Airflow *Web server* access mode. For more information,
|
1652
|
-
# see [Apache Airflow access modes][1].
|
1653
|
-
#
|
1654
|
-
#
|
1655
|
-
#
|
1656
|
-
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html
|
1657
|
-
# @return [String]
|
1658
|
-
#
|
1659
|
-
# @!attribute [rw] min_workers
|
1660
|
-
# The minimum number of workers that you want to run in your
|
1661
|
-
# environment. MWAA scales the number of Apache Airflow workers up to
|
1662
|
-
# the number you specify in the `MaxWorkers` field. When there are no
|
1663
|
-
# more tasks running, and no more in the queue, MWAA disposes of the
|
1664
|
-
# extra workers leaving the worker count you specify in the
|
1665
|
-
# `MinWorkers` field. For example, `2`.
|
1666
|
-
# @return [Integer]
|
1667
|
-
#
|
1668
|
-
# @!attribute [rw] schedulers
|
1669
|
-
# The number of Apache Airflow schedulers to run in your Amazon MWAA
|
1670
|
-
# environment.
|
1671
|
-
# @return [Integer]
|
1672
|
-
#
|
1673
|
-
# @!attribute [rw] min_webservers
|
1674
|
-
# The minimum number of web servers that you want to run in your
|
1675
|
-
# environment. Amazon MWAA scales the number of Apache Airflow web
|
1676
|
-
# servers up to the number you specify for `MaxWebservers` when you
|
1677
|
-
# interact with your Apache Airflow environment using Apache Airflow
|
1678
|
-
# REST API, or the Apache Airflow CLI. As the transaction-per-second
|
1679
|
-
# rate, and the network load, decrease, Amazon MWAA disposes of the
|
1680
|
-
# additional web servers, and scales down to the number set in
|
1681
|
-
# `MinxWebserers`.
|
1682
|
-
#
|
1683
|
-
# Valid values: For environments larger than mw1.micro, accepts values
|
1684
|
-
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1685
|
-
# mw1.micro, which defaults to `1`.
|
1686
|
-
# @return [Integer]
|
1687
|
-
#
|
1688
|
-
# @!attribute [rw] max_webservers
|
1689
|
-
# The maximum number of web servers that you want to run in your
|
1690
|
-
# environment. Amazon MWAA scales the number of Apache Airflow web
|
1691
|
-
# servers up to the number you specify for `MaxWebservers` when you
|
1692
|
-
# interact with your Apache Airflow environment using Apache Airflow
|
1693
|
-
# REST API, or the Apache Airflow CLI. For example, in scenarios where
|
1694
|
-
# your workload requires network calls to the Apache Airflow REST API
|
1695
|
-
# with a high transaction-per-second (TPS) rate, Amazon MWAA will
|
1696
|
-
# increase the number of web servers up to the number set in
|
1697
|
-
# `MaxWebserers`. As TPS rates decrease Amazon MWAA disposes of the
|
1698
|
-
# additional web servers, and scales down to the number set in
|
1699
|
-
# `MinxWebserers`.
|
1700
|
-
#
|
1701
|
-
# Valid values: For environments larger than mw1.micro, accepts values
|
1702
|
-
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1703
|
-
# mw1.micro, which defaults to `1`.
|
1704
|
-
# @return [Integer]
|
1705
|
-
#
|
1706
1726
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/UpdateEnvironmentInput AWS API Documentation
|
1707
1727
|
#
|
1708
1728
|
class UpdateEnvironmentInput < Struct.new(
|
1709
1729
|
:name,
|
1710
1730
|
:execution_role_arn,
|
1731
|
+
:airflow_configuration_options,
|
1711
1732
|
:airflow_version,
|
1712
|
-
:source_bucket_arn,
|
1713
1733
|
:dag_s3_path,
|
1734
|
+
:environment_class,
|
1735
|
+
:logging_configuration,
|
1736
|
+
:max_workers,
|
1737
|
+
:min_workers,
|
1738
|
+
:max_webservers,
|
1739
|
+
:min_webservers,
|
1740
|
+
:worker_replacement_strategy,
|
1741
|
+
:network_configuration,
|
1714
1742
|
:plugins_s3_path,
|
1715
1743
|
:plugins_s3_object_version,
|
1716
1744
|
:requirements_s3_path,
|
1717
1745
|
:requirements_s3_object_version,
|
1746
|
+
:schedulers,
|
1747
|
+
:source_bucket_arn,
|
1718
1748
|
:startup_script_s3_path,
|
1719
1749
|
:startup_script_s3_object_version,
|
1720
|
-
:airflow_configuration_options,
|
1721
|
-
:environment_class,
|
1722
|
-
:max_workers,
|
1723
|
-
:network_configuration,
|
1724
|
-
:logging_configuration,
|
1725
|
-
:weekly_maintenance_window_start,
|
1726
1750
|
:webserver_access_mode,
|
1727
|
-
:
|
1728
|
-
:schedulers,
|
1729
|
-
:min_webservers,
|
1730
|
-
:max_webservers)
|
1751
|
+
:weekly_maintenance_window_start)
|
1731
1752
|
SENSITIVE = [:airflow_configuration_options]
|
1732
1753
|
include Aws::Structure
|
1733
1754
|
end
|
data/lib/aws-sdk-mwaa.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -274,21 +274,10 @@ module Aws
|
|
274
274
|
def update_environment: (
|
275
275
|
name: ::String,
|
276
276
|
?execution_role_arn: ::String,
|
277
|
+
?airflow_configuration_options: Hash[::String, ::String],
|
277
278
|
?airflow_version: ::String,
|
278
|
-
?source_bucket_arn: ::String,
|
279
279
|
?dag_s3_path: ::String,
|
280
|
-
?plugins_s3_path: ::String,
|
281
|
-
?plugins_s3_object_version: ::String,
|
282
|
-
?requirements_s3_path: ::String,
|
283
|
-
?requirements_s3_object_version: ::String,
|
284
|
-
?startup_script_s3_path: ::String,
|
285
|
-
?startup_script_s3_object_version: ::String,
|
286
|
-
?airflow_configuration_options: Hash[::String, ::String],
|
287
280
|
?environment_class: ::String,
|
288
|
-
?max_workers: ::Integer,
|
289
|
-
?network_configuration: {
|
290
|
-
security_group_ids: Array[::String]
|
291
|
-
},
|
292
281
|
?logging_configuration: {
|
293
282
|
dag_processing_logs: {
|
294
283
|
enabled: bool,
|
@@ -311,12 +300,24 @@ module Aws
|
|
311
300
|
log_level: ("CRITICAL" | "ERROR" | "WARNING" | "INFO" | "DEBUG")
|
312
301
|
}?
|
313
302
|
},
|
314
|
-
?
|
315
|
-
?webserver_access_mode: ("PRIVATE_ONLY" | "PUBLIC_ONLY"),
|
303
|
+
?max_workers: ::Integer,
|
316
304
|
?min_workers: ::Integer,
|
317
|
-
?
|
305
|
+
?max_webservers: ::Integer,
|
318
306
|
?min_webservers: ::Integer,
|
319
|
-
?
|
307
|
+
?worker_replacement_strategy: ("FORCED" | "GRACEFUL"),
|
308
|
+
?network_configuration: {
|
309
|
+
security_group_ids: Array[::String]
|
310
|
+
},
|
311
|
+
?plugins_s3_path: ::String,
|
312
|
+
?plugins_s3_object_version: ::String,
|
313
|
+
?requirements_s3_path: ::String,
|
314
|
+
?requirements_s3_object_version: ::String,
|
315
|
+
?schedulers: ::Integer,
|
316
|
+
?source_bucket_arn: ::String,
|
317
|
+
?startup_script_s3_path: ::String,
|
318
|
+
?startup_script_s3_object_version: ::String,
|
319
|
+
?webserver_access_mode: ("PRIVATE_ONLY" | "PUBLIC_ONLY"),
|
320
|
+
?weekly_maintenance_window_start: ::String
|
320
321
|
) -> _UpdateEnvironmentResponseSuccess
|
321
322
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEnvironmentResponseSuccess
|
322
323
|
end
|
data/sig/types.rbs
CHANGED
@@ -158,6 +158,7 @@ module Aws::MWAA
|
|
158
158
|
attr_accessor created_at: ::Time
|
159
159
|
attr_accessor error: Types::UpdateError
|
160
160
|
attr_accessor source: ::String
|
161
|
+
attr_accessor worker_replacement_strategy: ("FORCED" | "GRACEFUL")
|
161
162
|
SENSITIVE: []
|
162
163
|
end
|
163
164
|
|
@@ -285,26 +286,27 @@ module Aws::MWAA
|
|
285
286
|
class UpdateEnvironmentInput
|
286
287
|
attr_accessor name: ::String
|
287
288
|
attr_accessor execution_role_arn: ::String
|
289
|
+
attr_accessor airflow_configuration_options: ::Hash[::String, ::String]
|
288
290
|
attr_accessor airflow_version: ::String
|
289
|
-
attr_accessor source_bucket_arn: ::String
|
290
291
|
attr_accessor dag_s3_path: ::String
|
292
|
+
attr_accessor environment_class: ::String
|
293
|
+
attr_accessor logging_configuration: Types::LoggingConfigurationInput
|
294
|
+
attr_accessor max_workers: ::Integer
|
295
|
+
attr_accessor min_workers: ::Integer
|
296
|
+
attr_accessor max_webservers: ::Integer
|
297
|
+
attr_accessor min_webservers: ::Integer
|
298
|
+
attr_accessor worker_replacement_strategy: ("FORCED" | "GRACEFUL")
|
299
|
+
attr_accessor network_configuration: Types::UpdateNetworkConfigurationInput
|
291
300
|
attr_accessor plugins_s3_path: ::String
|
292
301
|
attr_accessor plugins_s3_object_version: ::String
|
293
302
|
attr_accessor requirements_s3_path: ::String
|
294
303
|
attr_accessor requirements_s3_object_version: ::String
|
304
|
+
attr_accessor schedulers: ::Integer
|
305
|
+
attr_accessor source_bucket_arn: ::String
|
295
306
|
attr_accessor startup_script_s3_path: ::String
|
296
307
|
attr_accessor startup_script_s3_object_version: ::String
|
297
|
-
attr_accessor airflow_configuration_options: ::Hash[::String, ::String]
|
298
|
-
attr_accessor environment_class: ::String
|
299
|
-
attr_accessor max_workers: ::Integer
|
300
|
-
attr_accessor network_configuration: Types::UpdateNetworkConfigurationInput
|
301
|
-
attr_accessor logging_configuration: Types::LoggingConfigurationInput
|
302
|
-
attr_accessor weekly_maintenance_window_start: ::String
|
303
308
|
attr_accessor webserver_access_mode: ("PRIVATE_ONLY" | "PUBLIC_ONLY")
|
304
|
-
attr_accessor
|
305
|
-
attr_accessor schedulers: ::Integer
|
306
|
-
attr_accessor min_webservers: ::Integer
|
307
|
-
attr_accessor max_webservers: ::Integer
|
309
|
+
attr_accessor weekly_maintenance_window_start: ::String
|
308
310
|
SENSITIVE: [:airflow_configuration_options]
|
309
311
|
end
|
310
312
|
|