aws-sdk-mwaa 1.49.0 → 1.51.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-mwaa/client.rb +100 -17
- data/lib/aws-sdk-mwaa/client_api.rb +46 -0
- data/lib/aws-sdk-mwaa/errors.rb +42 -0
- data/lib/aws-sdk-mwaa/types.rb +139 -23
- data/lib/aws-sdk-mwaa.rb +1 -1
- data/sig/client.rbs +17 -0
- data/sig/errors.rbs +8 -0
- data/sig/types.rbs +27 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce23564a49f8ba7bb9bd4859b1edb379c05a5cc49117be25cb9212f550b50058
|
4
|
+
data.tar.gz: '07419756b25d45b76d2fd25ebe92a26e64b1d074fdd4b6ad9b3eff27cfbc98e4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d858a376e9f0b5e20c497d2030b46ec8b3701a21da12685a62ceb7a105bc20073a5ae596800d276eda658e555df19765a6b2b356e5b45d99ca1f1ff00a857a7
|
7
|
+
data.tar.gz: d822cb899560310159db558534215c620fdcec750a87029de1b4822e48e7dc518a896ecdcf95574701096a5c33ae1363869048280198581f5b58147665f5ff85
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.51.0 (2024-11-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon MWAA now supports a new environment class, mw1.micro, ideal for workloads requiring fewer resources than mw1.small. This class supports a single instance of each Airflow component: Scheduler, Worker, and Webserver.
|
8
|
+
|
9
|
+
1.50.0 (2024-10-23)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Introducing InvokeRestApi which allows users to invoke the Apache Airflow REST API on the webserver with the specified inputs.
|
13
|
+
|
4
14
|
1.49.0 (2024-10-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.51.0
|
data/lib/aws-sdk-mwaa/client.rb
CHANGED
@@ -483,7 +483,7 @@ module Aws::MWAA
|
|
483
483
|
req.send_request(options)
|
484
484
|
end
|
485
485
|
|
486
|
-
# Creates an Amazon Managed Workflows for Apache Airflow (MWAA)
|
486
|
+
# Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA)
|
487
487
|
# environment.
|
488
488
|
#
|
489
489
|
# @option params [required, String] :name
|
@@ -610,9 +610,9 @@ module Aws::MWAA
|
|
610
610
|
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html
|
611
611
|
#
|
612
612
|
# @option params [String] :environment_class
|
613
|
-
# The environment class type. Valid values: `mw1.
|
614
|
-
# `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
615
|
-
# see [Amazon MWAA environment class][1].
|
613
|
+
# The environment class type. Valid values: `mw1.micro`, `mw1.small`,
|
614
|
+
# `mw1.medium`, `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
615
|
+
# information, see [Amazon MWAA environment class][1].
|
616
616
|
#
|
617
617
|
#
|
618
618
|
#
|
@@ -640,10 +640,10 @@ module Aws::MWAA
|
|
640
640
|
# The Apache Airflow version for your environment. If no value is
|
641
641
|
# specified, it defaults to the latest version. For more information,
|
642
642
|
# see [Apache Airflow versions on Amazon Managed Workflows for Apache
|
643
|
-
# Airflow (MWAA)][1].
|
643
|
+
# Airflow (Amazon MWAA)][1].
|
644
644
|
#
|
645
645
|
# Valid values: `1.10.12`, `2.0.2`, `2.2.2`, `2.4.3`, `2.5.1`, `2.6.3`,
|
646
|
-
# `2.7.2
|
646
|
+
# `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
|
647
647
|
#
|
648
648
|
#
|
649
649
|
#
|
@@ -688,7 +688,9 @@ module Aws::MWAA
|
|
688
688
|
# The number of Apache Airflow schedulers to run in your environment.
|
689
689
|
# Valid values:
|
690
690
|
#
|
691
|
-
# * v2 -
|
691
|
+
# * v2 - For environments larger than mw1.micro, accepts values from `2`
|
692
|
+
# to `5`. Defaults to `2` for all environment sizes except mw1.micro,
|
693
|
+
# which defaults to `1`.
|
692
694
|
#
|
693
695
|
# * v1 - Accepts `1`.
|
694
696
|
#
|
@@ -715,7 +717,9 @@ module Aws::MWAA
|
|
715
717
|
# additional web servers, and scales down to the number set in
|
716
718
|
# `MinxWebserers`.
|
717
719
|
#
|
718
|
-
# Valid values:
|
720
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
721
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
722
|
+
# mw1.micro, which defaults to `1`.
|
719
723
|
#
|
720
724
|
# @option params [Integer] :max_webservers
|
721
725
|
# The maximum number of web servers that you want to run in your
|
@@ -730,7 +734,9 @@ module Aws::MWAA
|
|
730
734
|
# additional web servers, and scales down to the number set in
|
731
735
|
# `MinxWebserers`.
|
732
736
|
#
|
733
|
-
# Valid values:
|
737
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
738
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
739
|
+
# mw1.micro, which defaults to `1`.
|
734
740
|
#
|
735
741
|
# @return [Types::CreateEnvironmentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
736
742
|
#
|
@@ -847,7 +853,7 @@ module Aws::MWAA
|
|
847
853
|
req.send_request(options)
|
848
854
|
end
|
849
855
|
|
850
|
-
# Deletes an Amazon Managed Workflows for Apache Airflow (MWAA)
|
856
|
+
# Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA)
|
851
857
|
# environment.
|
852
858
|
#
|
853
859
|
# @option params [required, String] :name
|
@@ -957,6 +963,79 @@ module Aws::MWAA
|
|
957
963
|
req.send_request(options)
|
958
964
|
end
|
959
965
|
|
966
|
+
# Invokes the Apache Airflow REST API on the webserver with the
|
967
|
+
# specified inputs. To learn more, see [Using the Apache Airflow REST
|
968
|
+
# API][1]
|
969
|
+
#
|
970
|
+
#
|
971
|
+
#
|
972
|
+
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/access-mwaa-apache-airflow-rest-api.html
|
973
|
+
#
|
974
|
+
# @option params [required, String] :name
|
975
|
+
# The name of the Amazon MWAA environment. For example,
|
976
|
+
# `MyMWAAEnvironment`.
|
977
|
+
#
|
978
|
+
# @option params [required, String] :path
|
979
|
+
# The Apache Airflow REST API endpoint path to be called. For example,
|
980
|
+
# `/dags/123456/clearTaskInstances`. For more information, see [Apache
|
981
|
+
# Airflow API][1]
|
982
|
+
#
|
983
|
+
#
|
984
|
+
#
|
985
|
+
# [1]: https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html
|
986
|
+
#
|
987
|
+
# @option params [required, String] :method
|
988
|
+
# The HTTP method used for making Airflow REST API calls. For example,
|
989
|
+
# `POST`.
|
990
|
+
#
|
991
|
+
# @option params [Hash,Array,String,Numeric,Boolean] :query_parameters
|
992
|
+
# Query parameters to be included in the Apache Airflow REST API call,
|
993
|
+
# provided as a JSON object.
|
994
|
+
#
|
995
|
+
# Document type used to carry open content
|
996
|
+
# (Hash,Array,String,Numeric,Boolean). A document type value is
|
997
|
+
# serialized using the same format as its surroundings and requires no
|
998
|
+
# additional encoding or escaping.
|
999
|
+
#
|
1000
|
+
# @option params [Hash,Array,String,Numeric,Boolean] :body
|
1001
|
+
# The request body for the Apache Airflow REST API call, provided as a
|
1002
|
+
# JSON object.
|
1003
|
+
#
|
1004
|
+
# Document type used to carry open content
|
1005
|
+
# (Hash,Array,String,Numeric,Boolean). A document type value is
|
1006
|
+
# serialized using the same format as its surroundings and requires no
|
1007
|
+
# additional encoding or escaping.
|
1008
|
+
#
|
1009
|
+
# @return [Types::InvokeRestApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1010
|
+
#
|
1011
|
+
# * {Types::InvokeRestApiResponse#rest_api_status_code #rest_api_status_code} => Integer
|
1012
|
+
# * {Types::InvokeRestApiResponse#rest_api_response #rest_api_response} => Hash,Array,String,Numeric,Boolean
|
1013
|
+
#
|
1014
|
+
# @example Request syntax with placeholder values
|
1015
|
+
#
|
1016
|
+
# resp = client.invoke_rest_api({
|
1017
|
+
# name: "EnvironmentName", # required
|
1018
|
+
# path: "RestApiPath", # required
|
1019
|
+
# method: "GET", # required, accepts GET, PUT, POST, PATCH, DELETE
|
1020
|
+
# query_parameters: {
|
1021
|
+
# },
|
1022
|
+
# body: {
|
1023
|
+
# },
|
1024
|
+
# })
|
1025
|
+
#
|
1026
|
+
# @example Response structure
|
1027
|
+
#
|
1028
|
+
# resp.rest_api_status_code #=> Integer
|
1029
|
+
#
|
1030
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/InvokeRestApi AWS API Documentation
|
1031
|
+
#
|
1032
|
+
# @overload invoke_rest_api(params = {})
|
1033
|
+
# @param [Hash] params ({})
|
1034
|
+
def invoke_rest_api(params = {}, options = {})
|
1035
|
+
req = build_request(:invoke_rest_api, params)
|
1036
|
+
req.send_request(options)
|
1037
|
+
end
|
1038
|
+
|
960
1039
|
# Lists the Amazon Managed Workflows for Apache Airflow (MWAA)
|
961
1040
|
# environments.
|
962
1041
|
#
|
@@ -1179,7 +1258,7 @@ module Aws::MWAA
|
|
1179
1258
|
# environment][1].
|
1180
1259
|
#
|
1181
1260
|
# Valid values: `1.10.12`, `2.0.2`, `2.2.2`, `2.4.3`, `2.5.1`, `2.6.3`,
|
1182
|
-
# `2.7.2`, `2.8.1`.
|
1261
|
+
# `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
|
1183
1262
|
#
|
1184
1263
|
#
|
1185
1264
|
#
|
@@ -1282,9 +1361,9 @@ module Aws::MWAA
|
|
1282
1361
|
# [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html
|
1283
1362
|
#
|
1284
1363
|
# @option params [String] :environment_class
|
1285
|
-
# The environment class type. Valid values: `mw1.
|
1286
|
-
# `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
1287
|
-
# see [Amazon MWAA environment class][1].
|
1364
|
+
# The environment class type. Valid values: `mw1.micro`, `mw1.small`,
|
1365
|
+
# `mw1.medium`, `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
1366
|
+
# information, see [Amazon MWAA environment class][1].
|
1288
1367
|
#
|
1289
1368
|
#
|
1290
1369
|
#
|
@@ -1348,7 +1427,9 @@ module Aws::MWAA
|
|
1348
1427
|
# additional web servers, and scales down to the number set in
|
1349
1428
|
# `MinxWebserers`.
|
1350
1429
|
#
|
1351
|
-
# Valid values:
|
1430
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
1431
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1432
|
+
# mw1.micro, which defaults to `1`.
|
1352
1433
|
#
|
1353
1434
|
# @option params [Integer] :max_webservers
|
1354
1435
|
# The maximum number of web servers that you want to run in your
|
@@ -1363,7 +1444,9 @@ module Aws::MWAA
|
|
1363
1444
|
# additional web servers, and scales down to the number set in
|
1364
1445
|
# `MinxWebserers`.
|
1365
1446
|
#
|
1366
|
-
# Valid values:
|
1447
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
1448
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
1449
|
+
# mw1.micro, which defaults to `1`.
|
1367
1450
|
#
|
1368
1451
|
# @return [Types::UpdateEnvironmentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1369
1452
|
#
|
@@ -1452,7 +1535,7 @@ module Aws::MWAA
|
|
1452
1535
|
tracer: tracer
|
1453
1536
|
)
|
1454
1537
|
context[:gem_name] = 'aws-sdk-mwaa'
|
1455
|
-
context[:gem_version] = '1.
|
1538
|
+
context[:gem_version] = '1.51.0'
|
1456
1539
|
Seahorse::Client::Request.new(handlers, context)
|
1457
1540
|
end
|
1458
1541
|
|
@@ -33,6 +33,7 @@ module Aws::MWAA
|
|
33
33
|
DeleteEnvironmentOutput = Shapes::StructureShape.new(name: 'DeleteEnvironmentOutput')
|
34
34
|
Dimension = Shapes::StructureShape.new(name: 'Dimension')
|
35
35
|
Dimensions = Shapes::ListShape.new(name: 'Dimensions')
|
36
|
+
Document = Shapes::DocumentShape.new(name: 'Document', document: true)
|
36
37
|
Double = Shapes::FloatShape.new(name: 'Double')
|
37
38
|
EndpointManagement = Shapes::StringShape.new(name: 'EndpointManagement')
|
38
39
|
Environment = Shapes::StructureShape.new(name: 'Environment')
|
@@ -50,6 +51,8 @@ module Aws::MWAA
|
|
50
51
|
IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
|
51
52
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
52
53
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
54
|
+
InvokeRestApiRequest = Shapes::StructureShape.new(name: 'InvokeRestApiRequest')
|
55
|
+
InvokeRestApiResponse = Shapes::StructureShape.new(name: 'InvokeRestApiResponse')
|
53
56
|
KmsKey = Shapes::StringShape.new(name: 'KmsKey')
|
54
57
|
LastUpdate = Shapes::StructureShape.new(name: 'LastUpdate')
|
55
58
|
ListEnvironmentsInput = Shapes::StructureShape.new(name: 'ListEnvironmentsInput')
|
@@ -75,6 +78,12 @@ module Aws::MWAA
|
|
75
78
|
PublishMetricsOutput = Shapes::StructureShape.new(name: 'PublishMetricsOutput')
|
76
79
|
RelativePath = Shapes::StringShape.new(name: 'RelativePath')
|
77
80
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
81
|
+
RestApiClientException = Shapes::StructureShape.new(name: 'RestApiClientException')
|
82
|
+
RestApiMethod = Shapes::StringShape.new(name: 'RestApiMethod')
|
83
|
+
RestApiPath = Shapes::StringShape.new(name: 'RestApiPath')
|
84
|
+
RestApiRequestBody = Shapes::DocumentShape.new(name: 'RestApiRequestBody', document: true)
|
85
|
+
RestApiResponse = Shapes::DocumentShape.new(name: 'RestApiResponse', document: true)
|
86
|
+
RestApiServerException = Shapes::StructureShape.new(name: 'RestApiServerException')
|
78
87
|
S3BucketArn = Shapes::StringShape.new(name: 'S3BucketArn')
|
79
88
|
S3ObjectVersion = Shapes::StringShape.new(name: 'S3ObjectVersion')
|
80
89
|
Schedulers = Shapes::IntegerShape.new(name: 'Schedulers')
|
@@ -218,6 +227,17 @@ module Aws::MWAA
|
|
218
227
|
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
219
228
|
InternalServerException.struct_class = Types::InternalServerException
|
220
229
|
|
230
|
+
InvokeRestApiRequest.add_member(:name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location: "uri", location_name: "Name"))
|
231
|
+
InvokeRestApiRequest.add_member(:path, Shapes::ShapeRef.new(shape: RestApiPath, required: true, location_name: "Path"))
|
232
|
+
InvokeRestApiRequest.add_member(:method, Shapes::ShapeRef.new(shape: RestApiMethod, required: true, location_name: "Method"))
|
233
|
+
InvokeRestApiRequest.add_member(:query_parameters, Shapes::ShapeRef.new(shape: Document, location_name: "QueryParameters"))
|
234
|
+
InvokeRestApiRequest.add_member(:body, Shapes::ShapeRef.new(shape: RestApiRequestBody, location_name: "Body"))
|
235
|
+
InvokeRestApiRequest.struct_class = Types::InvokeRestApiRequest
|
236
|
+
|
237
|
+
InvokeRestApiResponse.add_member(:rest_api_status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "RestApiStatusCode"))
|
238
|
+
InvokeRestApiResponse.add_member(:rest_api_response, Shapes::ShapeRef.new(shape: RestApiResponse, location_name: "RestApiResponse"))
|
239
|
+
InvokeRestApiResponse.struct_class = Types::InvokeRestApiResponse
|
240
|
+
|
221
241
|
LastUpdate.add_member(:status, Shapes::ShapeRef.new(shape: UpdateStatus, location_name: "Status"))
|
222
242
|
LastUpdate.add_member(:created_at, Shapes::ShapeRef.new(shape: UpdateCreatedAt, location_name: "CreatedAt"))
|
223
243
|
LastUpdate.add_member(:error, Shapes::ShapeRef.new(shape: UpdateError, location_name: "Error"))
|
@@ -284,6 +304,14 @@ module Aws::MWAA
|
|
284
304
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
285
305
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
286
306
|
|
307
|
+
RestApiClientException.add_member(:rest_api_status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "RestApiStatusCode"))
|
308
|
+
RestApiClientException.add_member(:rest_api_response, Shapes::ShapeRef.new(shape: RestApiResponse, location_name: "RestApiResponse"))
|
309
|
+
RestApiClientException.struct_class = Types::RestApiClientException
|
310
|
+
|
311
|
+
RestApiServerException.add_member(:rest_api_status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "RestApiStatusCode"))
|
312
|
+
RestApiServerException.add_member(:rest_api_response, Shapes::ShapeRef.new(shape: RestApiResponse, location_name: "RestApiResponse"))
|
313
|
+
RestApiServerException.struct_class = Types::RestApiServerException
|
314
|
+
|
287
315
|
SecurityGroupList.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
288
316
|
|
289
317
|
StatisticSet.add_member(:sample_count, Shapes::ShapeRef.new(shape: Integer, location_name: "SampleCount"))
|
@@ -356,6 +384,7 @@ module Aws::MWAA
|
|
356
384
|
|
357
385
|
api.metadata = {
|
358
386
|
"apiVersion" => "2020-07-01",
|
387
|
+
"auth" => ["aws.auth#sigv4"],
|
359
388
|
"endpointPrefix" => "airflow",
|
360
389
|
"protocol" => "rest-json",
|
361
390
|
"protocols" => ["rest-json"],
|
@@ -434,6 +463,23 @@ module Aws::MWAA
|
|
434
463
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
435
464
|
end)
|
436
465
|
|
466
|
+
api.add_operation(:invoke_rest_api, Seahorse::Model::Operation.new.tap do |o|
|
467
|
+
o.name = "InvokeRestApi"
|
468
|
+
o.http_method = "POST"
|
469
|
+
o.http_request_uri = "/restapi/{Name}"
|
470
|
+
o.endpoint_pattern = {
|
471
|
+
"hostPrefix" => "env.",
|
472
|
+
}
|
473
|
+
o.input = Shapes::ShapeRef.new(shape: InvokeRestApiRequest)
|
474
|
+
o.output = Shapes::ShapeRef.new(shape: InvokeRestApiResponse)
|
475
|
+
o.errors << Shapes::ShapeRef.new(shape: RestApiClientException)
|
476
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
477
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
478
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
479
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
480
|
+
o.errors << Shapes::ShapeRef.new(shape: RestApiServerException)
|
481
|
+
end)
|
482
|
+
|
437
483
|
api.add_operation(:list_environments, Seahorse::Model::Operation.new.tap do |o|
|
438
484
|
o.name = "ListEnvironments"
|
439
485
|
o.http_method = "GET"
|
data/lib/aws-sdk-mwaa/errors.rb
CHANGED
@@ -30,6 +30,8 @@ module Aws::MWAA
|
|
30
30
|
# * {AccessDeniedException}
|
31
31
|
# * {InternalServerException}
|
32
32
|
# * {ResourceNotFoundException}
|
33
|
+
# * {RestApiClientException}
|
34
|
+
# * {RestApiServerException}
|
33
35
|
# * {ValidationException}
|
34
36
|
#
|
35
37
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
@@ -83,6 +85,46 @@ module Aws::MWAA
|
|
83
85
|
end
|
84
86
|
end
|
85
87
|
|
88
|
+
class RestApiClientException < ServiceError
|
89
|
+
|
90
|
+
# @param [Seahorse::Client::RequestContext] context
|
91
|
+
# @param [String] message
|
92
|
+
# @param [Aws::MWAA::Types::RestApiClientException] data
|
93
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
94
|
+
super(context, message, data)
|
95
|
+
end
|
96
|
+
|
97
|
+
# @return [String]
|
98
|
+
def rest_api_status_code
|
99
|
+
@data[:rest_api_status_code]
|
100
|
+
end
|
101
|
+
|
102
|
+
# @return [String]
|
103
|
+
def rest_api_response
|
104
|
+
@data[:rest_api_response]
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
class RestApiServerException < ServiceError
|
109
|
+
|
110
|
+
# @param [Seahorse::Client::RequestContext] context
|
111
|
+
# @param [String] message
|
112
|
+
# @param [Aws::MWAA::Types::RestApiServerException] data
|
113
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
114
|
+
super(context, message, data)
|
115
|
+
end
|
116
|
+
|
117
|
+
# @return [String]
|
118
|
+
def rest_api_status_code
|
119
|
+
@data[:rest_api_status_code]
|
120
|
+
end
|
121
|
+
|
122
|
+
# @return [String]
|
123
|
+
def rest_api_response
|
124
|
+
@data[:rest_api_response]
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
86
128
|
class ValidationException < ServiceError
|
87
129
|
|
88
130
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-mwaa/types.rb
CHANGED
@@ -60,9 +60,9 @@ module Aws::MWAA
|
|
60
60
|
end
|
61
61
|
|
62
62
|
# This section contains the Amazon Managed Workflows for Apache Airflow
|
63
|
-
# (MWAA) API reference documentation to create an environment.
|
64
|
-
# information, see [Get started with Amazon Managed Workflows
|
65
|
-
# Airflow][1].
|
63
|
+
# (Amazon MWAA) API reference documentation to create an environment.
|
64
|
+
# For more information, see [Get started with Amazon Managed Workflows
|
65
|
+
# for Apache Airflow][1].
|
66
66
|
#
|
67
67
|
#
|
68
68
|
#
|
@@ -205,9 +205,9 @@ module Aws::MWAA
|
|
205
205
|
# @return [Hash<String,String>]
|
206
206
|
#
|
207
207
|
# @!attribute [rw] environment_class
|
208
|
-
# The environment class type. Valid values: `mw1.
|
209
|
-
# `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
210
|
-
# see [Amazon MWAA environment class][1].
|
208
|
+
# The environment class type. Valid values: `mw1.micro`, `mw1.small`,
|
209
|
+
# `mw1.medium`, `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
210
|
+
# information, see [Amazon MWAA environment class][1].
|
211
211
|
#
|
212
212
|
#
|
213
213
|
#
|
@@ -239,10 +239,10 @@ module Aws::MWAA
|
|
239
239
|
# The Apache Airflow version for your environment. If no value is
|
240
240
|
# specified, it defaults to the latest version. For more information,
|
241
241
|
# see [Apache Airflow versions on Amazon Managed Workflows for Apache
|
242
|
-
# Airflow (MWAA)][1].
|
242
|
+
# Airflow (Amazon MWAA)][1].
|
243
243
|
#
|
244
244
|
# Valid values: `1.10.12`, `2.0.2`, `2.2.2`, `2.4.3`, `2.5.1`,
|
245
|
-
# `2.6.3`, `2.7.2
|
245
|
+
# `2.6.3`, `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
|
246
246
|
#
|
247
247
|
#
|
248
248
|
#
|
@@ -293,7 +293,9 @@ module Aws::MWAA
|
|
293
293
|
# The number of Apache Airflow schedulers to run in your environment.
|
294
294
|
# Valid values:
|
295
295
|
#
|
296
|
-
# * v2 -
|
296
|
+
# * v2 - For environments larger than mw1.micro, accepts values from
|
297
|
+
# `2` to `5`. Defaults to `2` for all environment sizes except
|
298
|
+
# mw1.micro, which defaults to `1`.
|
297
299
|
#
|
298
300
|
# * v1 - Accepts `1`.
|
299
301
|
# @return [Integer]
|
@@ -322,7 +324,9 @@ module Aws::MWAA
|
|
322
324
|
# additional web servers, and scales down to the number set in
|
323
325
|
# `MinxWebserers`.
|
324
326
|
#
|
325
|
-
# Valid values:
|
327
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
328
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
329
|
+
# mw1.micro, which defaults to `1`.
|
326
330
|
# @return [Integer]
|
327
331
|
#
|
328
332
|
# @!attribute [rw] max_webservers
|
@@ -338,7 +342,9 @@ module Aws::MWAA
|
|
338
342
|
# additional web servers, and scales down to the number set in
|
339
343
|
# `MinxWebserers`.
|
340
344
|
#
|
341
|
-
# Valid values:
|
345
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
346
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
347
|
+
# mw1.micro, which defaults to `1`.
|
342
348
|
# @return [Integer]
|
343
349
|
#
|
344
350
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/CreateEnvironmentInput AWS API Documentation
|
@@ -590,7 +596,7 @@ module Aws::MWAA
|
|
590
596
|
# The Apache Airflow version on your environment.
|
591
597
|
#
|
592
598
|
# Valid values: `1.10.12`, `2.0.2`, `2.2.2`, `2.4.3`, `2.5.1`,
|
593
|
-
# `2.6.3`, `2.7.2`, `2.8.1`.
|
599
|
+
# `2.6.3`, `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
|
594
600
|
# @return [String]
|
595
601
|
#
|
596
602
|
# @!attribute [rw] source_bucket_arn
|
@@ -713,9 +719,9 @@ module Aws::MWAA
|
|
713
719
|
# @return [Hash<String,String>]
|
714
720
|
#
|
715
721
|
# @!attribute [rw] environment_class
|
716
|
-
# The environment class type. Valid values: `mw1.
|
717
|
-
# `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
718
|
-
# see [Amazon MWAA environment class][1].
|
722
|
+
# The environment class type. Valid values: `mw1.micro`, `mw1.small`,
|
723
|
+
# `mw1.medium`, `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
724
|
+
# information, see [Amazon MWAA environment class][1].
|
719
725
|
#
|
720
726
|
#
|
721
727
|
#
|
@@ -818,7 +824,9 @@ module Aws::MWAA
|
|
818
824
|
# additional web servers, and scales down to the number set in
|
819
825
|
# `MinxWebserers`.
|
820
826
|
#
|
821
|
-
# Valid values:
|
827
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
828
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
829
|
+
# mw1.micro, which defaults to `1`.
|
822
830
|
# @return [Integer]
|
823
831
|
#
|
824
832
|
# @!attribute [rw] max_webservers
|
@@ -834,7 +842,9 @@ module Aws::MWAA
|
|
834
842
|
# additional web servers, and scales down to the number set in
|
835
843
|
# `MinxWebserers`.
|
836
844
|
#
|
837
|
-
# Valid values:
|
845
|
+
# Valid values: For environments larger than mw1.micro, accepts values
|
846
|
+
# from `2` to `5`. Defaults to `2` for all environment sizes except
|
847
|
+
# mw1.micro, which defaults to `1`.
|
838
848
|
# @return [Integer]
|
839
849
|
#
|
840
850
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/Environment AWS API Documentation
|
@@ -916,6 +926,66 @@ module Aws::MWAA
|
|
916
926
|
include Aws::Structure
|
917
927
|
end
|
918
928
|
|
929
|
+
# @!attribute [rw] name
|
930
|
+
# The name of the Amazon MWAA environment. For example,
|
931
|
+
# `MyMWAAEnvironment`.
|
932
|
+
# @return [String]
|
933
|
+
#
|
934
|
+
# @!attribute [rw] path
|
935
|
+
# The Apache Airflow REST API endpoint path to be called. For example,
|
936
|
+
# `/dags/123456/clearTaskInstances`. For more information, see [Apache
|
937
|
+
# Airflow API][1]
|
938
|
+
#
|
939
|
+
#
|
940
|
+
#
|
941
|
+
# [1]: https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html
|
942
|
+
# @return [String]
|
943
|
+
#
|
944
|
+
# @!attribute [rw] method
|
945
|
+
# The HTTP method used for making Airflow REST API calls. For example,
|
946
|
+
# `POST`.
|
947
|
+
# @return [String]
|
948
|
+
#
|
949
|
+
# @!attribute [rw] query_parameters
|
950
|
+
# Query parameters to be included in the Apache Airflow REST API call,
|
951
|
+
# provided as a JSON object.
|
952
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
953
|
+
#
|
954
|
+
# @!attribute [rw] body
|
955
|
+
# The request body for the Apache Airflow REST API call, provided as a
|
956
|
+
# JSON object.
|
957
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
958
|
+
#
|
959
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/InvokeRestApiRequest AWS API Documentation
|
960
|
+
#
|
961
|
+
class InvokeRestApiRequest < Struct.new(
|
962
|
+
:name,
|
963
|
+
:path,
|
964
|
+
:method,
|
965
|
+
:query_parameters,
|
966
|
+
:body)
|
967
|
+
SENSITIVE = [:body]
|
968
|
+
include Aws::Structure
|
969
|
+
end
|
970
|
+
|
971
|
+
# @!attribute [rw] rest_api_status_code
|
972
|
+
# The HTTP status code returned by the Apache Airflow REST API call.
|
973
|
+
# @return [Integer]
|
974
|
+
#
|
975
|
+
# @!attribute [rw] rest_api_response
|
976
|
+
# The response data from the Apache Airflow REST API call, provided as
|
977
|
+
# a JSON object.
|
978
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
979
|
+
#
|
980
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/InvokeRestApiResponse AWS API Documentation
|
981
|
+
#
|
982
|
+
class InvokeRestApiResponse < Struct.new(
|
983
|
+
:rest_api_status_code,
|
984
|
+
:rest_api_response)
|
985
|
+
SENSITIVE = [:rest_api_response]
|
986
|
+
include Aws::Structure
|
987
|
+
end
|
988
|
+
|
919
989
|
# Describes the status of the last update on the environment, and any
|
920
990
|
# errors that were encountered.
|
921
991
|
#
|
@@ -1261,6 +1331,48 @@ module Aws::MWAA
|
|
1261
1331
|
include Aws::Structure
|
1262
1332
|
end
|
1263
1333
|
|
1334
|
+
# An exception indicating that a client-side error occurred during the
|
1335
|
+
# Apache Airflow REST API call.
|
1336
|
+
#
|
1337
|
+
# @!attribute [rw] rest_api_status_code
|
1338
|
+
# The HTTP status code returned by the Apache Airflow REST API call.
|
1339
|
+
# @return [Integer]
|
1340
|
+
#
|
1341
|
+
# @!attribute [rw] rest_api_response
|
1342
|
+
# The error response data from the Apache Airflow REST API call,
|
1343
|
+
# provided as a JSON object.
|
1344
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
1345
|
+
#
|
1346
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/RestApiClientException AWS API Documentation
|
1347
|
+
#
|
1348
|
+
class RestApiClientException < Struct.new(
|
1349
|
+
:rest_api_status_code,
|
1350
|
+
:rest_api_response)
|
1351
|
+
SENSITIVE = [:rest_api_response]
|
1352
|
+
include Aws::Structure
|
1353
|
+
end
|
1354
|
+
|
1355
|
+
# An exception indicating that a server-side error occurred during the
|
1356
|
+
# Apache Airflow REST API call.
|
1357
|
+
#
|
1358
|
+
# @!attribute [rw] rest_api_status_code
|
1359
|
+
# The HTTP status code returned by the Apache Airflow REST API call.
|
1360
|
+
# @return [Integer]
|
1361
|
+
#
|
1362
|
+
# @!attribute [rw] rest_api_response
|
1363
|
+
# The error response data from the Apache Airflow REST API call,
|
1364
|
+
# provided as a JSON object.
|
1365
|
+
# @return [Hash,Array,String,Numeric,Boolean]
|
1366
|
+
#
|
1367
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/RestApiServerException AWS API Documentation
|
1368
|
+
#
|
1369
|
+
class RestApiServerException < Struct.new(
|
1370
|
+
:rest_api_status_code,
|
1371
|
+
:rest_api_response)
|
1372
|
+
SENSITIVE = [:rest_api_response]
|
1373
|
+
include Aws::Structure
|
1374
|
+
end
|
1375
|
+
|
1264
1376
|
# **Internal only**. Represents a set of statistics that describe a
|
1265
1377
|
# specific metric. To learn more about the metrics published to Amazon
|
1266
1378
|
# CloudWatch, see [Amazon MWAA performance metrics in Amazon
|
@@ -1379,7 +1491,7 @@ module Aws::MWAA
|
|
1379
1491
|
# environment][1].
|
1380
1492
|
#
|
1381
1493
|
# Valid values: `1.10.12`, `2.0.2`, `2.2.2`, `2.4.3`, `2.5.1`,
|
1382
|
-
# `2.6.3`, `2.7.2`, `2.8.1`.
|
1494
|
+
# `2.6.3`, `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
|
1383
1495
|
#
|
1384
1496
|
#
|
1385
1497
|
#
|
@@ -1493,9 +1605,9 @@ module Aws::MWAA
|
|
1493
1605
|
# @return [Hash<String,String>]
|
1494
1606
|
#
|
1495
1607
|
# @!attribute [rw] environment_class
|
1496
|
-
# The environment class type. Valid values: `mw1.
|
1497
|
-
# `mw1.large`, `mw1.xlarge`, and `mw1.2xlarge`. For more
|
1498
|
-
# see [Amazon MWAA environment class][1].
|
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].
|
1499
1611
|
#
|
1500
1612
|
#
|
1501
1613
|
#
|
@@ -1568,7 +1680,9 @@ module Aws::MWAA
|
|
1568
1680
|
# additional web servers, and scales down to the number set in
|
1569
1681
|
# `MinxWebserers`.
|
1570
1682
|
#
|
1571
|
-
# Valid values:
|
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`.
|
1572
1686
|
# @return [Integer]
|
1573
1687
|
#
|
1574
1688
|
# @!attribute [rw] max_webservers
|
@@ -1584,7 +1698,9 @@ module Aws::MWAA
|
|
1584
1698
|
# additional web servers, and scales down to the number set in
|
1585
1699
|
# `MinxWebserers`.
|
1586
1700
|
#
|
1587
|
-
# Valid values:
|
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`.
|
1588
1704
|
# @return [Integer]
|
1589
1705
|
#
|
1590
1706
|
# @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/UpdateEnvironmentInput AWS API Documentation
|
data/lib/aws-sdk-mwaa.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -176,6 +176,23 @@ module Aws
|
|
176
176
|
) -> _GetEnvironmentResponseSuccess
|
177
177
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEnvironmentResponseSuccess
|
178
178
|
|
179
|
+
interface _InvokeRestApiResponseSuccess
|
180
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeRestApiResponse]
|
181
|
+
def rest_api_status_code: () -> ::Integer
|
182
|
+
def rest_api_response: () -> untyped
|
183
|
+
end
|
184
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/MWAA/Client.html#invoke_rest_api-instance_method
|
185
|
+
def invoke_rest_api: (
|
186
|
+
name: ::String,
|
187
|
+
path: ::String,
|
188
|
+
method: ("GET" | "PUT" | "POST" | "PATCH" | "DELETE"),
|
189
|
+
?query_parameters: {
|
190
|
+
},
|
191
|
+
?body: {
|
192
|
+
}
|
193
|
+
) -> _InvokeRestApiResponseSuccess
|
194
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeRestApiResponseSuccess
|
195
|
+
|
179
196
|
interface _ListEnvironmentsResponseSuccess
|
180
197
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListEnvironmentsOutput]
|
181
198
|
def environments: () -> ::Array[::String]
|
data/sig/errors.rbs
CHANGED
@@ -20,6 +20,14 @@ module Aws
|
|
20
20
|
class ResourceNotFoundException < ::Aws::Errors::ServiceError
|
21
21
|
def message: () -> ::String
|
22
22
|
end
|
23
|
+
class RestApiClientException < ::Aws::Errors::ServiceError
|
24
|
+
def rest_api_status_code: () -> ::String
|
25
|
+
def rest_api_response: () -> ::String
|
26
|
+
end
|
27
|
+
class RestApiServerException < ::Aws::Errors::ServiceError
|
28
|
+
def rest_api_status_code: () -> ::String
|
29
|
+
def rest_api_response: () -> ::String
|
30
|
+
end
|
23
31
|
class ValidationException < ::Aws::Errors::ServiceError
|
24
32
|
def message: () -> ::String
|
25
33
|
end
|
data/sig/types.rbs
CHANGED
@@ -138,6 +138,21 @@ module Aws::MWAA
|
|
138
138
|
SENSITIVE: []
|
139
139
|
end
|
140
140
|
|
141
|
+
class InvokeRestApiRequest
|
142
|
+
attr_accessor name: ::String
|
143
|
+
attr_accessor path: ::String
|
144
|
+
attr_accessor method: ("GET" | "PUT" | "POST" | "PATCH" | "DELETE")
|
145
|
+
attr_accessor query_parameters: untyped
|
146
|
+
attr_accessor body: untyped
|
147
|
+
SENSITIVE: [:body]
|
148
|
+
end
|
149
|
+
|
150
|
+
class InvokeRestApiResponse
|
151
|
+
attr_accessor rest_api_status_code: ::Integer
|
152
|
+
attr_accessor rest_api_response: untyped
|
153
|
+
SENSITIVE: [:rest_api_response]
|
154
|
+
end
|
155
|
+
|
141
156
|
class LastUpdate
|
142
157
|
attr_accessor status: ("SUCCESS" | "PENDING" | "FAILED")
|
143
158
|
attr_accessor created_at: ::Time
|
@@ -229,6 +244,18 @@ module Aws::MWAA
|
|
229
244
|
SENSITIVE: []
|
230
245
|
end
|
231
246
|
|
247
|
+
class RestApiClientException
|
248
|
+
attr_accessor rest_api_status_code: ::Integer
|
249
|
+
attr_accessor rest_api_response: untyped
|
250
|
+
SENSITIVE: [:rest_api_response]
|
251
|
+
end
|
252
|
+
|
253
|
+
class RestApiServerException
|
254
|
+
attr_accessor rest_api_status_code: ::Integer
|
255
|
+
attr_accessor rest_api_response: untyped
|
256
|
+
SENSITIVE: [:rest_api_response]
|
257
|
+
end
|
258
|
+
|
232
259
|
class StatisticSet
|
233
260
|
attr_accessor sample_count: ::Integer
|
234
261
|
attr_accessor sum: ::Float
|
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.
|
4
|
+
version: 1.51.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: 2024-
|
11
|
+
date: 2024-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.5'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.5'
|
47
47
|
description: Official AWS Ruby gem for AmazonMWAA. This gem is part of the AWS SDK
|
48
48
|
for Ruby.
|
49
49
|
email:
|