aws-sdk-mwaa 1.18.0 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 874b3c5eb6aa6a993a3be7c88b3eb47fd0ef9c484bb8a1f86509f9bf8368021b
4
- data.tar.gz: 5062e15ce41555da0acf2c2de5104d9c4cc7b0a216e993232dea4f377316c856
3
+ metadata.gz: 91e5511e41997864cfc00d87e8001edf27ca98a48a22f5b9a2390a5dd81aa69d
4
+ data.tar.gz: 6cc837dff317800b8e63ff50755162bb0e95bb11b841dcbe6ea3f476b06451be
5
5
  SHA512:
6
- metadata.gz: c6a18d002563f0908a76df27c0847b6a9eba6576a9748c461152c1bd018dd20fa64cf6037a2e2c3b885308c9b7f034b66954bde2260571623155316a0682c612
7
- data.tar.gz: d56b35202a62e091a2d59cb1480c6dfad20b99ab45b6d04b081fce0d350b404cd0e9fc9032cfbde13ed5496587644ddbc9be1d8c80d227051aba12e4505a6f31
6
+ metadata.gz: 1840f79b7458ffd8decd28ae977f75eaa9e6914c8130ab8f100eba2d128182191e5bc3c94cd40034cf516964781a9e358538c72bcd0cf53268ea43299e11a26d
7
+ data.tar.gz: ef636b05e8e96bfd5c5cf9f54f3b21861f9cac09f3c5738d4631e63e9127ca8262a78134074ce3f091ef3522a82ac77a8a69549cb12c7a075974770caee07d3a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.20.0 (2023-04-03)
5
+ ------------------
6
+
7
+ * Feature - This Amazon MWAA release adds the ability to customize the Apache Airflow environment by launching a shell script at startup. This shell script is hosted in your environment's Amazon S3 bucket. Amazon MWAA runs the script before installing requirements and initializing the Apache Airflow process.
8
+
9
+ 1.19.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.18.0 (2023-01-05)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.20.0
@@ -409,8 +409,8 @@ module Aws::MWAA
409
409
  #
410
410
  # @option params [Hash<String,String>] :airflow_configuration_options
411
411
  # A list of key-value pairs containing the Apache Airflow configuration
412
- # options you want to attach to your environment. To learn more, see
413
- # [Apache Airflow configuration options][1].
412
+ # options you want to attach to your environment. For more information,
413
+ # see [Apache Airflow configuration options][1].
414
414
  #
415
415
  #
416
416
  #
@@ -429,7 +429,8 @@ module Aws::MWAA
429
429
  #
430
430
  # @option params [required, String] :dag_s3_path
431
431
  # The relative path to the DAGs folder on your Amazon S3 bucket. For
432
- # example, `dags`. To learn more, see [Adding or updating DAGs][1].
432
+ # example, `dags`. For more information, see [Adding or updating
433
+ # DAGs][1].
433
434
  #
434
435
  #
435
436
  #
@@ -437,7 +438,8 @@ module Aws::MWAA
437
438
  #
438
439
  # @option params [String] :environment_class
439
440
  # The environment class type. Valid values: `mw1.small`, `mw1.medium`,
440
- # `mw1.large`. To learn more, see [Amazon MWAA environment class][1].
441
+ # `mw1.large`. For more information, see [Amazon MWAA environment
442
+ # class][1].
441
443
  #
442
444
  #
443
445
  #
@@ -448,8 +450,8 @@ module Aws::MWAA
448
450
  # environment. An execution role is an Amazon Web Services Identity and
449
451
  # Access Management (IAM) role that grants MWAA permission to access
450
452
  # Amazon Web Services services and resources used by your environment.
451
- # For example, `arn:aws:iam::123456789:role/my-execution-role`. To learn
452
- # more, see [Amazon MWAA Execution role][1].
453
+ # For example, `arn:aws:iam::123456789:role/my-execution-role`. For more
454
+ # information, see [Amazon MWAA Execution role][1].
453
455
  #
454
456
  #
455
457
  #
@@ -458,8 +460,8 @@ module Aws::MWAA
458
460
  # @option params [String] :kms_key
459
461
  # The Amazon Web Services Key Management Service (KMS) key to encrypt
460
462
  # the data in your environment. You can use an Amazon Web Services owned
461
- # CMK, or a Customer managed CMK (advanced). To learn more, see [Create
462
- # an Amazon MWAA environment][1].
463
+ # CMK, or a Customer managed CMK (advanced). For more information, see
464
+ # [Create an Amazon MWAA environment][1].
463
465
  #
464
466
  #
465
467
  #
@@ -491,16 +493,17 @@ module Aws::MWAA
491
493
  # @option params [required, Types::NetworkConfiguration] :network_configuration
492
494
  # The VPC networking components used to secure and enable network
493
495
  # traffic between the Amazon Web Services resources for your
494
- # environment. To learn more, see [About networking on Amazon MWAA][1].
496
+ # environment. For more information, see [About networking on Amazon
497
+ # MWAA][1].
495
498
  #
496
499
  #
497
500
  #
498
501
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html
499
502
  #
500
503
  # @option params [String] :plugins_s3_object_version
501
- # The version of the plugins.zip file on your Amazon S3 bucket. A
502
- # version must be specified each time a plugins.zip file is updated. To
503
- # learn more, see [How S3 Versioning works][1].
504
+ # The version of the plugins.zip file on your Amazon S3 bucket. You must
505
+ # specify a version each time a plugins.zip file is updated. For more
506
+ # information, see [How S3 Versioning works][1].
504
507
  #
505
508
  #
506
509
  #
@@ -508,17 +511,18 @@ module Aws::MWAA
508
511
  #
509
512
  # @option params [String] :plugins_s3_path
510
513
  # The relative path to the `plugins.zip` file on your Amazon S3 bucket.
511
- # For example, `plugins.zip`. If specified, then the plugins.zip version
512
- # is required. To learn more, see [Installing custom plugins][1].
514
+ # For example, `plugins.zip`. If specified, then the `plugins.zip`
515
+ # version is required. For more information, see [Installing custom
516
+ # plugins][1].
513
517
  #
514
518
  #
515
519
  #
516
520
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html
517
521
  #
518
522
  # @option params [String] :requirements_s3_object_version
519
- # The version of the requirements.txt file on your Amazon S3 bucket. A
520
- # version must be specified each time a requirements.txt file is
521
- # updated. To learn more, see [How S3 Versioning works][1].
523
+ # The version of the `requirements.txt` file on your Amazon S3 bucket.
524
+ # You must specify a version each time a requirements.txt file is
525
+ # updated. For more information, see [How S3 Versioning works][1].
522
526
  #
523
527
  #
524
528
  #
@@ -526,8 +530,8 @@ module Aws::MWAA
526
530
  #
527
531
  # @option params [String] :requirements_s3_path
528
532
  # The relative path to the `requirements.txt` file on your Amazon S3
529
- # bucket. For example, `requirements.txt`. If specified, then a file
530
- # version is required. To learn more, see [Installing Python
533
+ # bucket. For example, `requirements.txt`. If specified, then a version
534
+ # is required. For more information, see [Installing Python
531
535
  # dependencies][1].
532
536
  #
533
537
  #
@@ -545,24 +549,55 @@ module Aws::MWAA
545
549
  # @option params [required, String] :source_bucket_arn
546
550
  # The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG
547
551
  # code and supporting files are stored. For example,
548
- # `arn:aws:s3:::my-airflow-bucket-unique-name`. To learn more, see
549
- # [Create an Amazon S3 bucket for Amazon MWAA][1].
552
+ # `arn:aws:s3:::my-airflow-bucket-unique-name`. For more information,
553
+ # see [Create an Amazon S3 bucket for Amazon MWAA][1].
550
554
  #
551
555
  #
552
556
  #
553
557
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
554
558
  #
559
+ # @option params [String] :startup_script_s3_object_version
560
+ # The version of the startup shell script in your Amazon S3 bucket. You
561
+ # must specify the [version ID][1] that Amazon S3 assigns to the file
562
+ # every time you update the script.
563
+ #
564
+ # Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that
565
+ # are no more than 1,024 bytes long. The following is an example:
566
+ #
567
+ # `3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo`
568
+ #
569
+ # For more information, see [Using a startup script][2].
570
+ #
571
+ #
572
+ #
573
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
574
+ # [2]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
575
+ #
576
+ # @option params [String] :startup_script_s3_path
577
+ # The relative path to the startup shell script in your Amazon S3
578
+ # bucket. For example, `s3://mwaa-environment/startup.sh`.
579
+ #
580
+ # Amazon MWAA runs the script as your environment starts, and before
581
+ # running the Apache Airflow process. You can use this script to install
582
+ # dependencies, modify Apache Airflow configuration options, and set
583
+ # environment variables. For more information, see [Using a startup
584
+ # script][1].
585
+ #
586
+ #
587
+ #
588
+ # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
589
+ #
555
590
  # @option params [Hash<String,String>] :tags
556
591
  # The key-value tag pairs you want to associate to your environment. For
557
- # example, `"Environment": "Staging"`. To learn more, see [Tagging
558
- # Amazon Web Services resources][1].
592
+ # example, `"Environment": "Staging"`. For more information, see
593
+ # [Tagging Amazon Web Services resources][1].
559
594
  #
560
595
  #
561
596
  #
562
597
  # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
563
598
  #
564
599
  # @option params [String] :webserver_access_mode
565
- # The Apache Airflow *Web server* access mode. To learn more, see
600
+ # The Apache Airflow *Web server* access mode. For more information, see
566
601
  # [Apache Airflow access modes][1].
567
602
  #
568
603
  #
@@ -626,6 +661,8 @@ module Aws::MWAA
626
661
  # requirements_s3_path: "RelativePath",
627
662
  # schedulers: 1,
628
663
  # source_bucket_arn: "S3BucketArn", # required
664
+ # startup_script_s3_object_version: "S3ObjectVersion",
665
+ # startup_script_s3_path: "RelativePath",
629
666
  # tags: {
630
667
  # "TagKey" => "TagValue",
631
668
  # },
@@ -768,6 +805,8 @@ module Aws::MWAA
768
805
  # resp.environment.schedulers #=> Integer
769
806
  # resp.environment.service_role_arn #=> String
770
807
  # resp.environment.source_bucket_arn #=> String
808
+ # resp.environment.startup_script_s3_object_version #=> String
809
+ # resp.environment.startup_script_s3_path #=> String
771
810
  # resp.environment.status #=> String, one of "CREATING", "CREATE_FAILED", "AVAILABLE", "UPDATING", "DELETING", "DELETED", "UNAVAILABLE", "UPDATE_FAILED"
772
811
  # resp.environment.tags #=> Hash
773
812
  # resp.environment.tags["TagKey"] #=> String
@@ -918,8 +957,8 @@ module Aws::MWAA
918
957
  #
919
958
  # @option params [required, Hash<String,String>] :tags
920
959
  # The key-value tag pairs you want to associate to your environment. For
921
- # example, `"Environment": "Staging"`. To learn more, see [Tagging
922
- # Amazon Web Services resources][1].
960
+ # example, `"Environment": "Staging"`. For more information, see
961
+ # [Tagging Amazon Web Services resources][1].
923
962
  #
924
963
  #
925
964
  #
@@ -981,8 +1020,8 @@ module Aws::MWAA
981
1020
  #
982
1021
  # @option params [Hash<String,String>] :airflow_configuration_options
983
1022
  # A list of key-value pairs containing the Apache Airflow configuration
984
- # options you want to attach to your environment. To learn more, see
985
- # [Apache Airflow configuration options][1].
1023
+ # options you want to attach to your environment. For more information,
1024
+ # see [Apache Airflow configuration options][1].
986
1025
  #
987
1026
  #
988
1027
  #
@@ -995,7 +1034,8 @@ module Aws::MWAA
995
1034
  #
996
1035
  # @option params [String] :dag_s3_path
997
1036
  # The relative path to the DAGs folder on your Amazon S3 bucket. For
998
- # example, `dags`. To learn more, see [Adding or updating DAGs][1].
1037
+ # example, `dags`. For more information, see [Adding or updating
1038
+ # DAGs][1].
999
1039
  #
1000
1040
  #
1001
1041
  #
@@ -1003,7 +1043,8 @@ module Aws::MWAA
1003
1043
  #
1004
1044
  # @option params [String] :environment_class
1005
1045
  # The environment class type. Valid values: `mw1.small`, `mw1.medium`,
1006
- # `mw1.large`. To learn more, see [Amazon MWAA environment class][1].
1046
+ # `mw1.large`. For more information, see [Amazon MWAA environment
1047
+ # class][1].
1007
1048
  #
1008
1049
  #
1009
1050
  #
@@ -1013,8 +1054,8 @@ module Aws::MWAA
1013
1054
  # The Amazon Resource Name (ARN) of the execution role in IAM that
1014
1055
  # allows MWAA to access Amazon Web Services resources in your
1015
1056
  # environment. For example,
1016
- # `arn:aws:iam::123456789:role/my-execution-role`. To learn more, see
1017
- # [Amazon MWAA Execution role][1].
1057
+ # `arn:aws:iam::123456789:role/my-execution-role`. For more information,
1058
+ # see [Amazon MWAA Execution role][1].
1018
1059
  #
1019
1060
  #
1020
1061
  #
@@ -1046,16 +1087,17 @@ module Aws::MWAA
1046
1087
  # @option params [Types::UpdateNetworkConfigurationInput] :network_configuration
1047
1088
  # The VPC networking components used to secure and enable network
1048
1089
  # traffic between the Amazon Web Services resources for your
1049
- # environment. To learn more, see [About networking on Amazon MWAA][1].
1090
+ # environment. For more information, see [About networking on Amazon
1091
+ # MWAA][1].
1050
1092
  #
1051
1093
  #
1052
1094
  #
1053
1095
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html
1054
1096
  #
1055
1097
  # @option params [String] :plugins_s3_object_version
1056
- # The version of the plugins.zip file on your Amazon S3 bucket. A
1057
- # version must be specified each time a plugins.zip file is updated. To
1058
- # learn more, see [How S3 Versioning works][1].
1098
+ # The version of the plugins.zip file on your Amazon S3 bucket. You must
1099
+ # specify a version each time a `plugins.zip` file is updated. For more
1100
+ # information, see [How S3 Versioning works][1].
1059
1101
  #
1060
1102
  #
1061
1103
  #
@@ -1064,16 +1106,16 @@ module Aws::MWAA
1064
1106
  # @option params [String] :plugins_s3_path
1065
1107
  # The relative path to the `plugins.zip` file on your Amazon S3 bucket.
1066
1108
  # For example, `plugins.zip`. If specified, then the plugins.zip version
1067
- # is required. To learn more, see [Installing custom plugins][1].
1109
+ # is required. For more information, see [Installing custom plugins][1].
1068
1110
  #
1069
1111
  #
1070
1112
  #
1071
1113
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html
1072
1114
  #
1073
1115
  # @option params [String] :requirements_s3_object_version
1074
- # The version of the requirements.txt file on your Amazon S3 bucket. A
1075
- # version must be specified each time a requirements.txt file is
1076
- # updated. To learn more, see [How S3 Versioning works][1].
1116
+ # The version of the requirements.txt file on your Amazon S3 bucket. You
1117
+ # must specify a version each time a `requirements.txt` file is updated.
1118
+ # For more information, see [How S3 Versioning works][1].
1077
1119
  #
1078
1120
  #
1079
1121
  #
@@ -1082,7 +1124,7 @@ module Aws::MWAA
1082
1124
  # @option params [String] :requirements_s3_path
1083
1125
  # The relative path to the `requirements.txt` file on your Amazon S3
1084
1126
  # bucket. For example, `requirements.txt`. If specified, then a file
1085
- # version is required. To learn more, see [Installing Python
1127
+ # version is required. For more information, see [Installing Python
1086
1128
  # dependencies][1].
1087
1129
  #
1088
1130
  #
@@ -1096,15 +1138,46 @@ module Aws::MWAA
1096
1138
  # @option params [String] :source_bucket_arn
1097
1139
  # The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG
1098
1140
  # code and supporting files are stored. For example,
1099
- # `arn:aws:s3:::my-airflow-bucket-unique-name`. To learn more, see
1100
- # [Create an Amazon S3 bucket for Amazon MWAA][1].
1141
+ # `arn:aws:s3:::my-airflow-bucket-unique-name`. For more information,
1142
+ # see [Create an Amazon S3 bucket for Amazon MWAA][1].
1101
1143
  #
1102
1144
  #
1103
1145
  #
1104
1146
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
1105
1147
  #
1148
+ # @option params [String] :startup_script_s3_object_version
1149
+ # The version of the startup shell script in your Amazon S3 bucket. You
1150
+ # must specify the [version ID][1] that Amazon S3 assigns to the file
1151
+ # every time you update the script.
1152
+ #
1153
+ # Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that
1154
+ # are no more than 1,024 bytes long. The following is an example:
1155
+ #
1156
+ # `3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo`
1157
+ #
1158
+ # For more information, see [Using a startup script][2].
1159
+ #
1160
+ #
1161
+ #
1162
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
1163
+ # [2]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
1164
+ #
1165
+ # @option params [String] :startup_script_s3_path
1166
+ # The relative path to the startup shell script in your Amazon S3
1167
+ # bucket. For example, `s3://mwaa-environment/startup.sh`.
1168
+ #
1169
+ # Amazon MWAA runs the script as your environment starts, and before
1170
+ # running the Apache Airflow process. You can use this script to install
1171
+ # dependencies, modify Apache Airflow configuration options, and set
1172
+ # environment variables. For more information, see [Using a startup
1173
+ # script][1].
1174
+ #
1175
+ #
1176
+ #
1177
+ # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
1178
+ #
1106
1179
  # @option params [String] :webserver_access_mode
1107
- # The Apache Airflow *Web server* access mode. To learn more, see
1180
+ # The Apache Airflow *Web server* access mode. For more information, see
1108
1181
  # [Apache Airflow access modes][1].
1109
1182
  #
1110
1183
  #
@@ -1166,6 +1239,8 @@ module Aws::MWAA
1166
1239
  # requirements_s3_path: "RelativePath",
1167
1240
  # schedulers: 1,
1168
1241
  # source_bucket_arn: "S3BucketArn",
1242
+ # startup_script_s3_object_version: "S3ObjectVersion",
1243
+ # startup_script_s3_path: "RelativePath",
1169
1244
  # webserver_access_mode: "PRIVATE_ONLY", # accepts PRIVATE_ONLY, PUBLIC_ONLY
1170
1245
  # weekly_maintenance_window_start: "WeeklyMaintenanceWindowStart",
1171
1246
  # })
@@ -1196,7 +1271,7 @@ module Aws::MWAA
1196
1271
  params: params,
1197
1272
  config: config)
1198
1273
  context[:gem_name] = 'aws-sdk-mwaa'
1199
- context[:gem_version] = '1.18.0'
1274
+ context[:gem_version] = '1.20.0'
1200
1275
  Seahorse::Client::Request.new(handlers, context)
1201
1276
  end
1202
1277
 
@@ -130,6 +130,8 @@ module Aws::MWAA
130
130
  CreateEnvironmentInput.add_member(:requirements_s3_path, Shapes::ShapeRef.new(shape: RelativePath, location_name: "RequirementsS3Path"))
131
131
  CreateEnvironmentInput.add_member(:schedulers, Shapes::ShapeRef.new(shape: Schedulers, location_name: "Schedulers"))
132
132
  CreateEnvironmentInput.add_member(:source_bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, required: true, location_name: "SourceBucketArn"))
133
+ CreateEnvironmentInput.add_member(:startup_script_s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "StartupScriptS3ObjectVersion"))
134
+ CreateEnvironmentInput.add_member(:startup_script_s3_path, Shapes::ShapeRef.new(shape: RelativePath, location_name: "StartupScriptS3Path"))
133
135
  CreateEnvironmentInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
134
136
  CreateEnvironmentInput.add_member(:webserver_access_mode, Shapes::ShapeRef.new(shape: WebserverAccessMode, location_name: "WebserverAccessMode"))
135
137
  CreateEnvironmentInput.add_member(:weekly_maintenance_window_start, Shapes::ShapeRef.new(shape: WeeklyMaintenanceWindowStart, location_name: "WeeklyMaintenanceWindowStart"))
@@ -177,6 +179,8 @@ module Aws::MWAA
177
179
  Environment.add_member(:schedulers, Shapes::ShapeRef.new(shape: Schedulers, location_name: "Schedulers"))
178
180
  Environment.add_member(:service_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "ServiceRoleArn"))
179
181
  Environment.add_member(:source_bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, location_name: "SourceBucketArn"))
182
+ Environment.add_member(:startup_script_s3_object_version, Shapes::ShapeRef.new(shape: String, location_name: "StartupScriptS3ObjectVersion"))
183
+ Environment.add_member(:startup_script_s3_path, Shapes::ShapeRef.new(shape: String, location_name: "StartupScriptS3Path"))
180
184
  Environment.add_member(:status, Shapes::ShapeRef.new(shape: EnvironmentStatus, location_name: "Status"))
181
185
  Environment.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
182
186
  Environment.add_member(:webserver_access_mode, Shapes::ShapeRef.new(shape: WebserverAccessMode, location_name: "WebserverAccessMode"))
@@ -304,6 +308,8 @@ module Aws::MWAA
304
308
  UpdateEnvironmentInput.add_member(:requirements_s3_path, Shapes::ShapeRef.new(shape: RelativePath, location_name: "RequirementsS3Path"))
305
309
  UpdateEnvironmentInput.add_member(:schedulers, Shapes::ShapeRef.new(shape: Schedulers, location_name: "Schedulers"))
306
310
  UpdateEnvironmentInput.add_member(:source_bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, location_name: "SourceBucketArn"))
311
+ UpdateEnvironmentInput.add_member(:startup_script_s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "StartupScriptS3ObjectVersion"))
312
+ UpdateEnvironmentInput.add_member(:startup_script_s3_path, Shapes::ShapeRef.new(shape: RelativePath, location_name: "StartupScriptS3Path"))
307
313
  UpdateEnvironmentInput.add_member(:webserver_access_mode, Shapes::ShapeRef.new(shape: WebserverAccessMode, location_name: "WebserverAccessMode"))
308
314
  UpdateEnvironmentInput.add_member(:weekly_maintenance_window_start, Shapes::ShapeRef.new(shape: WeeklyMaintenanceWindowStart, location_name: "WeeklyMaintenanceWindowStart"))
309
315
  UpdateEnvironmentInput.struct_class = Types::UpdateEnvironmentInput
@@ -50,9 +50,6 @@ module Aws::MWAA
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -9,102 +9,46 @@
9
9
 
10
10
  module Aws::MWAA
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://airflow-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://airflow-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://airflow.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://airflow.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
- IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
41
- IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1bWVudGF0
42
- aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVxdWVzdCB0byB0aGUgRklQ
43
- Uy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQuIElmIHRoZSBjb25maWd1
44
- cmVkIGVuZHBvaW50IGRvZXMgbm90IGhhdmUgYSBGSVBTIGNvbXBsaWFudCBl
45
- bmRwb2ludCwgZ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jpbdHJ1ZSx7ImZuIjoiZ2V0QXR0ciIsImFyZ3YiOlt7InJlZiI6
96
- IlBhcnRpdGlvblJlc3VsdCJ9LCJzdXBwb3J0c0R1YWxTdGFjayJdfV19XSwi
97
- dHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6W10sImVuZHBv
98
- aW50Ijp7InVybCI6Imh0dHBzOi8vYWlyZmxvdy57UmVnaW9ufS57UGFydGl0
99
- aW9uUmVzdWx0I2R1YWxTdGFja0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7
100
- fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsiY29uZGl0
101
- aW9ucyI6W10sImVycm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJsZWQgYnV0IHRo
102
- aXMgcGFydGl0aW9uIGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNrIiwidHlw
103
- ZSI6ImVycm9yIn1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1
104
- cmwiOiJodHRwczovL2FpcmZsb3cue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3Vs
105
- dCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwi
106
- dHlwZSI6ImVuZHBvaW50In1dfV19
107
-
108
- JSON
109
53
  end
110
54
  end
@@ -70,8 +70,8 @@ module Aws::MWAA
70
70
  #
71
71
  # @!attribute [rw] airflow_configuration_options
72
72
  # A list of key-value pairs containing the Apache Airflow
73
- # configuration options you want to attach to your environment. To
74
- # learn more, see [Apache Airflow configuration options][1].
73
+ # configuration options you want to attach to your environment. For
74
+ # more information, see [Apache Airflow configuration options][1].
75
75
  #
76
76
  #
77
77
  #
@@ -92,7 +92,8 @@ module Aws::MWAA
92
92
  #
93
93
  # @!attribute [rw] dag_s3_path
94
94
  # The relative path to the DAGs folder on your Amazon S3 bucket. For
95
- # example, `dags`. To learn more, see [Adding or updating DAGs][1].
95
+ # example, `dags`. For more information, see [Adding or updating
96
+ # DAGs][1].
96
97
  #
97
98
  #
98
99
  #
@@ -101,7 +102,8 @@ module Aws::MWAA
101
102
  #
102
103
  # @!attribute [rw] environment_class
103
104
  # The environment class type. Valid values: `mw1.small`, `mw1.medium`,
104
- # `mw1.large`. To learn more, see [Amazon MWAA environment class][1].
105
+ # `mw1.large`. For more information, see [Amazon MWAA environment
106
+ # class][1].
105
107
  #
106
108
  #
107
109
  #
@@ -114,8 +116,8 @@ module Aws::MWAA
114
116
  # and Access Management (IAM) role that grants MWAA permission to
115
117
  # access Amazon Web Services services and resources used by your
116
118
  # environment. For example,
117
- # `arn:aws:iam::123456789:role/my-execution-role`. To learn more, see
118
- # [Amazon MWAA Execution role][1].
119
+ # `arn:aws:iam::123456789:role/my-execution-role`. For more
120
+ # information, see [Amazon MWAA Execution role][1].
119
121
  #
120
122
  #
121
123
  #
@@ -125,8 +127,8 @@ module Aws::MWAA
125
127
  # @!attribute [rw] kms_key
126
128
  # The Amazon Web Services Key Management Service (KMS) key to encrypt
127
129
  # the data in your environment. You can use an Amazon Web Services
128
- # owned CMK, or a Customer managed CMK (advanced). To learn more, see
129
- # [Create an Amazon MWAA environment][1].
130
+ # owned CMK, or a Customer managed CMK (advanced). For more
131
+ # information, see [Create an Amazon MWAA environment][1].
130
132
  #
131
133
  #
132
134
  #
@@ -164,7 +166,7 @@ module Aws::MWAA
164
166
  # @!attribute [rw] network_configuration
165
167
  # The VPC networking components used to secure and enable network
166
168
  # traffic between the Amazon Web Services resources for your
167
- # environment. To learn more, see [About networking on Amazon
169
+ # environment. For more information, see [About networking on Amazon
168
170
  # MWAA][1].
169
171
  #
170
172
  #
@@ -173,9 +175,9 @@ module Aws::MWAA
173
175
  # @return [Types::NetworkConfiguration]
174
176
  #
175
177
  # @!attribute [rw] plugins_s3_object_version
176
- # The version of the plugins.zip file on your Amazon S3 bucket. A
177
- # version must be specified each time a plugins.zip file is updated.
178
- # To learn more, see [How S3 Versioning works][1].
178
+ # The version of the plugins.zip file on your Amazon S3 bucket. You
179
+ # must specify a version each time a plugins.zip file is updated. For
180
+ # more information, see [How S3 Versioning works][1].
179
181
  #
180
182
  #
181
183
  #
@@ -185,8 +187,8 @@ module Aws::MWAA
185
187
  # @!attribute [rw] plugins_s3_path
186
188
  # The relative path to the `plugins.zip` file on your Amazon S3
187
189
  # bucket. For example, `plugins.zip`. If specified, then the
188
- # plugins.zip version is required. To learn more, see [Installing
189
- # custom plugins][1].
190
+ # `plugins.zip` version is required. For more information, see
191
+ # [Installing custom plugins][1].
190
192
  #
191
193
  #
192
194
  #
@@ -194,9 +196,9 @@ module Aws::MWAA
194
196
  # @return [String]
195
197
  #
196
198
  # @!attribute [rw] requirements_s3_object_version
197
- # The version of the requirements.txt file on your Amazon S3 bucket. A
198
- # version must be specified each time a requirements.txt file is
199
- # updated. To learn more, see [How S3 Versioning works][1].
199
+ # The version of the `requirements.txt` file on your Amazon S3 bucket.
200
+ # You must specify a version each time a requirements.txt file is
201
+ # updated. For more information, see [How S3 Versioning works][1].
200
202
  #
201
203
  #
202
204
  #
@@ -205,8 +207,8 @@ module Aws::MWAA
205
207
  #
206
208
  # @!attribute [rw] requirements_s3_path
207
209
  # The relative path to the `requirements.txt` file on your Amazon S3
208
- # bucket. For example, `requirements.txt`. If specified, then a file
209
- # version is required. To learn more, see [Installing Python
210
+ # bucket. For example, `requirements.txt`. If specified, then a
211
+ # version is required. For more information, see [Installing Python
210
212
  # dependencies][1].
211
213
  #
212
214
  #
@@ -226,18 +228,51 @@ module Aws::MWAA
226
228
  # @!attribute [rw] source_bucket_arn
227
229
  # The Amazon Resource Name (ARN) of the Amazon S3 bucket where your
228
230
  # DAG code and supporting files are stored. For example,
229
- # `arn:aws:s3:::my-airflow-bucket-unique-name`. To learn more, see
230
- # [Create an Amazon S3 bucket for Amazon MWAA][1].
231
+ # `arn:aws:s3:::my-airflow-bucket-unique-name`. For more information,
232
+ # see [Create an Amazon S3 bucket for Amazon MWAA][1].
231
233
  #
232
234
  #
233
235
  #
234
236
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
235
237
  # @return [String]
236
238
  #
239
+ # @!attribute [rw] startup_script_s3_object_version
240
+ # The version of the startup shell script in your Amazon S3 bucket.
241
+ # You must specify the [version ID][1] that Amazon S3 assigns to the
242
+ # file every time you update the script.
243
+ #
244
+ # Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings
245
+ # that are no more than 1,024 bytes long. The following is an example:
246
+ #
247
+ # `3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo`
248
+ #
249
+ # For more information, see [Using a startup script][2].
250
+ #
251
+ #
252
+ #
253
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
254
+ # [2]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
255
+ # @return [String]
256
+ #
257
+ # @!attribute [rw] startup_script_s3_path
258
+ # The relative path to the startup shell script in your Amazon S3
259
+ # bucket. For example, `s3://mwaa-environment/startup.sh`.
260
+ #
261
+ # Amazon MWAA runs the script as your environment starts, and before
262
+ # running the Apache Airflow process. You can use this script to
263
+ # install dependencies, modify Apache Airflow configuration options,
264
+ # and set environment variables. For more information, see [Using a
265
+ # startup script][1].
266
+ #
267
+ #
268
+ #
269
+ # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
270
+ # @return [String]
271
+ #
237
272
  # @!attribute [rw] tags
238
273
  # The key-value tag pairs you want to associate to your environment.
239
- # For example, `"Environment": "Staging"`. To learn more, see [Tagging
240
- # Amazon Web Services resources][1].
274
+ # For example, `"Environment": "Staging"`. For more information, see
275
+ # [Tagging Amazon Web Services resources][1].
241
276
  #
242
277
  #
243
278
  #
@@ -245,8 +280,8 @@ module Aws::MWAA
245
280
  # @return [Hash<String,String>]
246
281
  #
247
282
  # @!attribute [rw] webserver_access_mode
248
- # The Apache Airflow *Web server* access mode. To learn more, see
249
- # [Apache Airflow access modes][1].
283
+ # The Apache Airflow *Web server* access mode. For more information,
284
+ # see [Apache Airflow access modes][1].
250
285
  #
251
286
  #
252
287
  #
@@ -281,6 +316,8 @@ module Aws::MWAA
281
316
  :requirements_s3_path,
282
317
  :schedulers,
283
318
  :source_bucket_arn,
319
+ :startup_script_s3_object_version,
320
+ :startup_script_s3_path,
284
321
  :tags,
285
322
  :webserver_access_mode,
286
323
  :weekly_maintenance_window_start)
@@ -378,8 +415,8 @@ module Aws::MWAA
378
415
  #
379
416
  # @!attribute [rw] airflow_configuration_options
380
417
  # A list of key-value pairs containing the Apache Airflow
381
- # configuration options attached to your environment. To learn more,
382
- # see [Apache Airflow configuration options][1].
418
+ # configuration options attached to your environment. For more
419
+ # information, see [Apache Airflow configuration options][1].
383
420
  #
384
421
  #
385
422
  #
@@ -400,8 +437,9 @@ module Aws::MWAA
400
437
  # @return [Time]
401
438
  #
402
439
  # @!attribute [rw] dag_s3_path
403
- # The relative path to the DAGs folder on your Amazon S3 bucket. For
404
- # example, `dags`. To learn more, see [Adding or updating DAGs][1].
440
+ # The relative path to the DAGs folder in your Amazon S3 bucket. For
441
+ # example, `s3://mwaa-environment/dags`. For more information, see
442
+ # [Adding or updating DAGs][1].
405
443
  #
406
444
  #
407
445
  #
@@ -410,7 +448,8 @@ module Aws::MWAA
410
448
  #
411
449
  # @!attribute [rw] environment_class
412
450
  # The environment class type. Valid values: `mw1.small`, `mw1.medium`,
413
- # `mw1.large`. To learn more, see [Amazon MWAA environment class][1].
451
+ # `mw1.large`. For more information, see [Amazon MWAA environment
452
+ # class][1].
414
453
  #
415
454
  #
416
455
  #
@@ -421,8 +460,8 @@ module Aws::MWAA
421
460
  # The Amazon Resource Name (ARN) of the execution role in IAM that
422
461
  # allows MWAA to access Amazon Web Services resources in your
423
462
  # environment. For example,
424
- # `arn:aws:iam::123456789:role/my-execution-role`. To learn more, see
425
- # [Amazon MWAA Execution role][1].
463
+ # `arn:aws:iam::123456789:role/my-execution-role`. For more
464
+ # information, see [Amazon MWAA Execution role][1].
426
465
  #
427
466
  #
428
467
  #
@@ -460,7 +499,7 @@ module Aws::MWAA
460
499
  # @!attribute [rw] network_configuration
461
500
  # Describes the VPC networking components used to secure and enable
462
501
  # network traffic between the Amazon Web Services resources for your
463
- # environment. To learn more, see [About networking on Amazon
502
+ # environment. For more information, see [About networking on Amazon
464
503
  # MWAA][1].
465
504
  #
466
505
  #
@@ -469,18 +508,26 @@ module Aws::MWAA
469
508
  # @return [Types::NetworkConfiguration]
470
509
  #
471
510
  # @!attribute [rw] plugins_s3_object_version
472
- # The version of the plugins.zip file on your Amazon S3 bucket. To
473
- # learn more, see [Installing custom plugins][1].
511
+ # The version of the `plugins.zip` file in your Amazon S3 bucket. You
512
+ # must specify the [version ID][1] that Amazon S3 assigns to the file.
474
513
  #
514
+ # Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings
515
+ # that are no more than 1,024 bytes long. The following is an example:
475
516
  #
517
+ # `3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo`
476
518
  #
477
- # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html
519
+ # For more information, see [Installing custom plugins][2].
520
+ #
521
+ #
522
+ #
523
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
524
+ # [2]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html
478
525
  # @return [String]
479
526
  #
480
527
  # @!attribute [rw] plugins_s3_path
481
- # The relative path to the `plugins.zip` file on your Amazon S3
482
- # bucket. For example, `plugins.zip`. To learn more, see [Installing
483
- # custom plugins][1].
528
+ # The relative path to the file in your Amazon S3 bucket. For example,
529
+ # `s3://mwaa-environment/plugins.zip`. For more information, see
530
+ # [Installing custom plugins][1].
484
531
  #
485
532
  #
486
533
  #
@@ -488,18 +535,27 @@ module Aws::MWAA
488
535
  # @return [String]
489
536
  #
490
537
  # @!attribute [rw] requirements_s3_object_version
491
- # The version of the requirements.txt file on your Amazon S3 bucket.
492
- # To learn more, see [Installing Python dependencies][1].
538
+ # The version of the `requirements.txt ` file on your Amazon S3
539
+ # bucket. You must specify the [version ID][1] that Amazon S3 assigns
540
+ # to the file.
493
541
  #
542
+ # Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings
543
+ # that are no more than 1,024 bytes long. The following is an example:
494
544
  #
545
+ # `3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo`
495
546
  #
496
- # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html
547
+ # For more information, see [Installing Python dependencies][2].
548
+ #
549
+ #
550
+ #
551
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
552
+ # [2]: https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html
497
553
  # @return [String]
498
554
  #
499
555
  # @!attribute [rw] requirements_s3_path
500
- # The relative path to the `requirements.txt` file on your Amazon S3
501
- # bucket. For example, `requirements.txt`. To learn more, see
502
- # [Installing Python dependencies][1].
556
+ # The relative path to the `requirements.txt` file in your Amazon S3
557
+ # bucket. For example, `s3://mwaa-environment/requirements.txt`. For
558
+ # more information, see [Installing Python dependencies][1].
503
559
  #
504
560
  #
505
561
  #
@@ -513,7 +569,7 @@ module Aws::MWAA
513
569
  #
514
570
  # @!attribute [rw] service_role_arn
515
571
  # The Amazon Resource Name (ARN) for the service-linked role of the
516
- # environment. To learn more, see [Amazon MWAA Service-linked
572
+ # environment. For more information, see [Amazon MWAA Service-linked
517
573
  # role][1].
518
574
  #
519
575
  #
@@ -524,14 +580,47 @@ module Aws::MWAA
524
580
  # @!attribute [rw] source_bucket_arn
525
581
  # The Amazon Resource Name (ARN) of the Amazon S3 bucket where your
526
582
  # DAG code and supporting files are stored. For example,
527
- # `arn:aws:s3:::my-airflow-bucket-unique-name`. To learn more, see
528
- # [Create an Amazon S3 bucket for Amazon MWAA][1].
583
+ # `arn:aws:s3:::my-airflow-bucket-unique-name`. For more information,
584
+ # see [Create an Amazon S3 bucket for Amazon MWAA][1].
529
585
  #
530
586
  #
531
587
  #
532
588
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
533
589
  # @return [String]
534
590
  #
591
+ # @!attribute [rw] startup_script_s3_object_version
592
+ # The version of the startup shell script in your Amazon S3 bucket.
593
+ # You must specify the [version ID][1] that Amazon S3 assigns to the
594
+ # file.
595
+ #
596
+ # Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings
597
+ # that are no more than 1,024 bytes long. The following is an example:
598
+ #
599
+ # `3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo`
600
+ #
601
+ # For more information, see [Using a startup script][2].
602
+ #
603
+ #
604
+ #
605
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
606
+ # [2]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
607
+ # @return [String]
608
+ #
609
+ # @!attribute [rw] startup_script_s3_path
610
+ # The relative path to the startup shell script in your Amazon S3
611
+ # bucket. For example, `s3://mwaa-environment/startup.sh`.
612
+ #
613
+ # Amazon MWAA runs the script as your environment starts, and before
614
+ # running the Apache Airflow process. You can use this script to
615
+ # install dependencies, modify Apache Airflow configuration options,
616
+ # and set environment variables. For more information, see [Using a
617
+ # startup script][1].
618
+ #
619
+ #
620
+ #
621
+ # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
622
+ # @return [String]
623
+ #
535
624
  # @!attribute [rw] status
536
625
  # The status of the Amazon MWAA environment. Valid values:
537
626
  #
@@ -561,8 +650,8 @@ module Aws::MWAA
561
650
  # ready to use.
562
651
  #
563
652
  # We recommend reviewing our troubleshooting guide for a list of
564
- # common errors and their solutions. To learn more, see [Amazon MWAA
565
- # troubleshooting][1].
653
+ # common errors and their solutions. For more information, see [Amazon
654
+ # MWAA troubleshooting][1].
566
655
  #
567
656
  #
568
657
  #
@@ -571,8 +660,8 @@ module Aws::MWAA
571
660
  #
572
661
  # @!attribute [rw] tags
573
662
  # The key-value tag pairs associated to your environment. For example,
574
- # `"Environment": "Staging"`. To learn more, see [Tagging Amazon Web
575
- # Services resources][1].
663
+ # `"Environment": "Staging"`. For more information, see [Tagging
664
+ # Amazon Web Services resources][1].
576
665
  #
577
666
  #
578
667
  #
@@ -580,8 +669,8 @@ module Aws::MWAA
580
669
  # @return [Hash<String,String>]
581
670
  #
582
671
  # @!attribute [rw] webserver_access_mode
583
- # The Apache Airflow *Web server* access mode. To learn more, see
584
- # [Apache Airflow access modes][1].
672
+ # The Apache Airflow *Web server* access mode. For more information,
673
+ # see [Apache Airflow access modes][1].
585
674
  #
586
675
  #
587
676
  #
@@ -590,7 +679,7 @@ module Aws::MWAA
590
679
  #
591
680
  # @!attribute [rw] webserver_url
592
681
  # The Apache Airflow *Web server* host name for the Amazon MWAA
593
- # environment. To learn more, see [Accessing the Apache Airflow
682
+ # environment. For more information, see [Accessing the Apache Airflow
594
683
  # UI][1].
595
684
  #
596
685
  #
@@ -628,6 +717,8 @@ module Aws::MWAA
628
717
  :schedulers,
629
718
  :service_role_arn,
630
719
  :source_bucket_arn,
720
+ :startup_script_s3_object_version,
721
+ :startup_script_s3_path,
631
722
  :status,
632
723
  :tags,
633
724
  :webserver_access_mode,
@@ -757,8 +848,8 @@ module Aws::MWAA
757
848
  end
758
849
 
759
850
  # @!attribute [rw] tags
760
- # The key-value tag pairs associated to your environment. To learn
761
- # more, see [Tagging Amazon Web Services resources][1].
851
+ # The key-value tag pairs associated to your environment. For more
852
+ # information, see [Tagging Amazon Web Services resources][1].
762
853
  #
763
854
  #
764
855
  #
@@ -946,15 +1037,16 @@ module Aws::MWAA
946
1037
 
947
1038
  # Describes the VPC networking components used to secure and enable
948
1039
  # network traffic between the Amazon Web Services resources for your
949
- # environment. To learn more, see [About networking on Amazon MWAA][1].
1040
+ # environment. For more information, see [About networking on Amazon
1041
+ # MWAA][1].
950
1042
  #
951
1043
  #
952
1044
  #
953
1045
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html
954
1046
  #
955
1047
  # @!attribute [rw] security_group_ids
956
- # A list of security group IDs. To learn more, see [Security in your
957
- # VPC on Amazon MWAA][1].
1048
+ # A list of security group IDs. For more information, see [Security in
1049
+ # your VPC on Amazon MWAA][1].
958
1050
  #
959
1051
  #
960
1052
  #
@@ -962,8 +1054,8 @@ module Aws::MWAA
962
1054
  # @return [Array<String>]
963
1055
  #
964
1056
  # @!attribute [rw] subnet_ids
965
- # A list of subnet IDs. To learn more, see [About networking on Amazon
966
- # MWAA][1].
1057
+ # A list of subnet IDs. For more information, see [About networking on
1058
+ # Amazon MWAA][1].
967
1059
  #
968
1060
  #
969
1061
  #
@@ -1063,8 +1155,8 @@ module Aws::MWAA
1063
1155
  #
1064
1156
  # @!attribute [rw] tags
1065
1157
  # The key-value tag pairs you want to associate to your environment.
1066
- # For example, `"Environment": "Staging"`. To learn more, see [Tagging
1067
- # Amazon Web Services resources][1].
1158
+ # For example, `"Environment": "Staging"`. For more information, see
1159
+ # [Tagging Amazon Web Services resources][1].
1068
1160
  #
1069
1161
  #
1070
1162
  #
@@ -1110,8 +1202,8 @@ module Aws::MWAA
1110
1202
 
1111
1203
  # @!attribute [rw] airflow_configuration_options
1112
1204
  # A list of key-value pairs containing the Apache Airflow
1113
- # configuration options you want to attach to your environment. To
1114
- # learn more, see [Apache Airflow configuration options][1].
1205
+ # configuration options you want to attach to your environment. For
1206
+ # more information, see [Apache Airflow configuration options][1].
1115
1207
  #
1116
1208
  #
1117
1209
  #
@@ -1126,7 +1218,8 @@ module Aws::MWAA
1126
1218
  #
1127
1219
  # @!attribute [rw] dag_s3_path
1128
1220
  # The relative path to the DAGs folder on your Amazon S3 bucket. For
1129
- # example, `dags`. To learn more, see [Adding or updating DAGs][1].
1221
+ # example, `dags`. For more information, see [Adding or updating
1222
+ # DAGs][1].
1130
1223
  #
1131
1224
  #
1132
1225
  #
@@ -1135,7 +1228,8 @@ module Aws::MWAA
1135
1228
  #
1136
1229
  # @!attribute [rw] environment_class
1137
1230
  # The environment class type. Valid values: `mw1.small`, `mw1.medium`,
1138
- # `mw1.large`. To learn more, see [Amazon MWAA environment class][1].
1231
+ # `mw1.large`. For more information, see [Amazon MWAA environment
1232
+ # class][1].
1139
1233
  #
1140
1234
  #
1141
1235
  #
@@ -1146,8 +1240,8 @@ module Aws::MWAA
1146
1240
  # The Amazon Resource Name (ARN) of the execution role in IAM that
1147
1241
  # allows MWAA to access Amazon Web Services resources in your
1148
1242
  # environment. For example,
1149
- # `arn:aws:iam::123456789:role/my-execution-role`. To learn more, see
1150
- # [Amazon MWAA Execution role][1].
1243
+ # `arn:aws:iam::123456789:role/my-execution-role`. For more
1244
+ # information, see [Amazon MWAA Execution role][1].
1151
1245
  #
1152
1246
  #
1153
1247
  #
@@ -1185,7 +1279,7 @@ module Aws::MWAA
1185
1279
  # @!attribute [rw] network_configuration
1186
1280
  # The VPC networking components used to secure and enable network
1187
1281
  # traffic between the Amazon Web Services resources for your
1188
- # environment. To learn more, see [About networking on Amazon
1282
+ # environment. For more information, see [About networking on Amazon
1189
1283
  # MWAA][1].
1190
1284
  #
1191
1285
  #
@@ -1194,9 +1288,9 @@ module Aws::MWAA
1194
1288
  # @return [Types::UpdateNetworkConfigurationInput]
1195
1289
  #
1196
1290
  # @!attribute [rw] plugins_s3_object_version
1197
- # The version of the plugins.zip file on your Amazon S3 bucket. A
1198
- # version must be specified each time a plugins.zip file is updated.
1199
- # To learn more, see [How S3 Versioning works][1].
1291
+ # The version of the plugins.zip file on your Amazon S3 bucket. You
1292
+ # must specify a version each time a `plugins.zip` file is updated.
1293
+ # For more information, see [How S3 Versioning works][1].
1200
1294
  #
1201
1295
  #
1202
1296
  #
@@ -1206,8 +1300,8 @@ module Aws::MWAA
1206
1300
  # @!attribute [rw] plugins_s3_path
1207
1301
  # The relative path to the `plugins.zip` file on your Amazon S3
1208
1302
  # bucket. For example, `plugins.zip`. If specified, then the
1209
- # plugins.zip version is required. To learn more, see [Installing
1210
- # custom plugins][1].
1303
+ # plugins.zip version is required. For more information, see
1304
+ # [Installing custom plugins][1].
1211
1305
  #
1212
1306
  #
1213
1307
  #
@@ -1215,9 +1309,9 @@ module Aws::MWAA
1215
1309
  # @return [String]
1216
1310
  #
1217
1311
  # @!attribute [rw] requirements_s3_object_version
1218
- # The version of the requirements.txt file on your Amazon S3 bucket. A
1219
- # version must be specified each time a requirements.txt file is
1220
- # updated. To learn more, see [How S3 Versioning works][1].
1312
+ # The version of the requirements.txt file on your Amazon S3 bucket.
1313
+ # You must specify a version each time a `requirements.txt` file is
1314
+ # updated. For more information, see [How S3 Versioning works][1].
1221
1315
  #
1222
1316
  #
1223
1317
  #
@@ -1227,7 +1321,7 @@ module Aws::MWAA
1227
1321
  # @!attribute [rw] requirements_s3_path
1228
1322
  # The relative path to the `requirements.txt` file on your Amazon S3
1229
1323
  # bucket. For example, `requirements.txt`. If specified, then a file
1230
- # version is required. To learn more, see [Installing Python
1324
+ # version is required. For more information, see [Installing Python
1231
1325
  # dependencies][1].
1232
1326
  #
1233
1327
  #
@@ -1243,17 +1337,50 @@ module Aws::MWAA
1243
1337
  # @!attribute [rw] source_bucket_arn
1244
1338
  # The Amazon Resource Name (ARN) of the Amazon S3 bucket where your
1245
1339
  # DAG code and supporting files are stored. For example,
1246
- # `arn:aws:s3:::my-airflow-bucket-unique-name`. To learn more, see
1247
- # [Create an Amazon S3 bucket for Amazon MWAA][1].
1340
+ # `arn:aws:s3:::my-airflow-bucket-unique-name`. For more information,
1341
+ # see [Create an Amazon S3 bucket for Amazon MWAA][1].
1248
1342
  #
1249
1343
  #
1250
1344
  #
1251
1345
  # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
1252
1346
  # @return [String]
1253
1347
  #
1348
+ # @!attribute [rw] startup_script_s3_object_version
1349
+ # The version of the startup shell script in your Amazon S3 bucket.
1350
+ # You must specify the [version ID][1] that Amazon S3 assigns to the
1351
+ # file every time you update the script.
1352
+ #
1353
+ # Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings
1354
+ # that are no more than 1,024 bytes long. The following is an example:
1355
+ #
1356
+ # `3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo`
1357
+ #
1358
+ # For more information, see [Using a startup script][2].
1359
+ #
1360
+ #
1361
+ #
1362
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html
1363
+ # [2]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
1364
+ # @return [String]
1365
+ #
1366
+ # @!attribute [rw] startup_script_s3_path
1367
+ # The relative path to the startup shell script in your Amazon S3
1368
+ # bucket. For example, `s3://mwaa-environment/startup.sh`.
1369
+ #
1370
+ # Amazon MWAA runs the script as your environment starts, and before
1371
+ # running the Apache Airflow process. You can use this script to
1372
+ # install dependencies, modify Apache Airflow configuration options,
1373
+ # and set environment variables. For more information, see [Using a
1374
+ # startup script][1].
1375
+ #
1376
+ #
1377
+ #
1378
+ # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html
1379
+ # @return [String]
1380
+ #
1254
1381
  # @!attribute [rw] webserver_access_mode
1255
- # The Apache Airflow *Web server* access mode. To learn more, see
1256
- # [Apache Airflow access modes][1].
1382
+ # The Apache Airflow *Web server* access mode. For more information,
1383
+ # see [Apache Airflow access modes][1].
1257
1384
  #
1258
1385
  #
1259
1386
  #
@@ -1287,6 +1414,8 @@ module Aws::MWAA
1287
1414
  :requirements_s3_path,
1288
1415
  :schedulers,
1289
1416
  :source_bucket_arn,
1417
+ :startup_script_s3_object_version,
1418
+ :startup_script_s3_path,
1290
1419
  :webserver_access_mode,
1291
1420
  :weekly_maintenance_window_start)
1292
1421
  SENSITIVE = [:airflow_configuration_options]
@@ -1329,7 +1458,8 @@ module Aws::MWAA
1329
1458
 
1330
1459
  # Defines the VPC networking components used to secure and enable
1331
1460
  # network traffic between the Amazon Web Services resources for your
1332
- # environment. To learn more, see [About networking on Amazon MWAA][1].
1461
+ # environment. For more information, see [About networking on Amazon
1462
+ # MWAA][1].
1333
1463
  #
1334
1464
  #
1335
1465
  #
@@ -1337,8 +1467,8 @@ module Aws::MWAA
1337
1467
  #
1338
1468
  # @!attribute [rw] security_group_ids
1339
1469
  # A list of security group IDs. A security group must be attached to
1340
- # the same VPC as the subnets. To learn more, see [Security in your
1341
- # VPC on Amazon MWAA][1].
1470
+ # the same VPC as the subnets. For more information, see [Security in
1471
+ # your VPC on Amazon MWAA][1].
1342
1472
  #
1343
1473
  #
1344
1474
  #
data/lib/aws-sdk-mwaa.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-mwaa/customizations'
52
52
  # @!group service
53
53
  module Aws::MWAA
54
54
 
55
- GEM_VERSION = '1.18.0'
55
+ GEM_VERSION = '1.20.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-mwaa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-05 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core