aws-sdk-mwaa 1.48.0 → 1.50.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: 24693052edc1cff899aab7684d9e237b40c2f11a081dd406770ee0fec55a200c
4
- data.tar.gz: 367fbf9bebeebfe9270f66407752f7bb1ede519f7fe3d0d6d08acaab43d766b4
3
+ metadata.gz: 7cb696e55dc39c20a351dc07a8aaa89c581db546333c26979ef154ba2cffa189
4
+ data.tar.gz: a211f945fac560fa9039a1dfa8f2a2689e0ae7c93f6e02e933143c36e0bc89b2
5
5
  SHA512:
6
- metadata.gz: 4a0dda849bbd8882d86bf31663b2287f893af24e71e51fbdc999e04be47c3cd19426f46b4e1b1d0dd02812242915a039efb735fc994beb2b473f512b22bad88d
7
- data.tar.gz: 8753f85bf1b91370c08ffa864bca8f51380b7488c2848d022235aaf38f13c3f2f745fcdd45bbee1126768f7262532df22782553f6ddebf6d958c6c69f2e5411c
6
+ metadata.gz: 8323283022c6ac1f58867a6ff1603b2a83ccef7d56ac85e7b8aba51fee556bc1ca6502ecf5a58730148f4e4dcbbf38e818a695c8bfa00d98837e27120eb24850
7
+ data.tar.gz: 139b2dbb7966c966cbf8b824269dbeb434e0e5a47b058f3a9e73701cae97fde708d92035a6abc582e3728e10a0b289d6cdec6097884d6ffcecb8302381e58516
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.50.0 (2024-10-23)
5
+ ------------------
6
+
7
+ * Feature - Introducing InvokeRestApi which allows users to invoke the Apache Airflow REST API on the webserver with the specified inputs.
8
+
9
+ 1.49.0 (2024-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.48.0 (2024-09-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.48.0
1
+ 1.50.0
@@ -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
@@ -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` `2.8.1`
646
+ # `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
647
647
  #
648
648
  #
649
649
  #
@@ -847,7 +847,7 @@ module Aws::MWAA
847
847
  req.send_request(options)
848
848
  end
849
849
 
850
- # Deletes an Amazon Managed Workflows for Apache Airflow (MWAA)
850
+ # Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA)
851
851
  # environment.
852
852
  #
853
853
  # @option params [required, String] :name
@@ -957,6 +957,79 @@ module Aws::MWAA
957
957
  req.send_request(options)
958
958
  end
959
959
 
960
+ # Invokes the Apache Airflow REST API on the webserver with the
961
+ # specified inputs. To learn more, see [Using the Apache Airflow REST
962
+ # API][1]
963
+ #
964
+ #
965
+ #
966
+ # [1]: https://docs.aws.amazon.com/mwaa/latest/userguide/access-mwaa-apache-airflow-rest-api.html
967
+ #
968
+ # @option params [required, String] :name
969
+ # The name of the Amazon MWAA environment. For example,
970
+ # `MyMWAAEnvironment`.
971
+ #
972
+ # @option params [required, String] :path
973
+ # The Apache Airflow REST API endpoint path to be called. For example,
974
+ # `/dags/123456/clearTaskInstances`. For more information, see [Apache
975
+ # Airflow API][1]
976
+ #
977
+ #
978
+ #
979
+ # [1]: https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html
980
+ #
981
+ # @option params [required, String] :method
982
+ # The HTTP method used for making Airflow REST API calls. For example,
983
+ # `POST`.
984
+ #
985
+ # @option params [Hash,Array,String,Numeric,Boolean] :query_parameters
986
+ # Query parameters to be included in the Apache Airflow REST API call,
987
+ # provided as a JSON object.
988
+ #
989
+ # Document type used to carry open content
990
+ # (Hash,Array,String,Numeric,Boolean). A document type value is
991
+ # serialized using the same format as its surroundings and requires no
992
+ # additional encoding or escaping.
993
+ #
994
+ # @option params [Hash,Array,String,Numeric,Boolean] :body
995
+ # The request body for the Apache Airflow REST API call, provided as a
996
+ # JSON object.
997
+ #
998
+ # Document type used to carry open content
999
+ # (Hash,Array,String,Numeric,Boolean). A document type value is
1000
+ # serialized using the same format as its surroundings and requires no
1001
+ # additional encoding or escaping.
1002
+ #
1003
+ # @return [Types::InvokeRestApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1004
+ #
1005
+ # * {Types::InvokeRestApiResponse#rest_api_status_code #rest_api_status_code} => Integer
1006
+ # * {Types::InvokeRestApiResponse#rest_api_response #rest_api_response} => Hash,Array,String,Numeric,Boolean
1007
+ #
1008
+ # @example Request syntax with placeholder values
1009
+ #
1010
+ # resp = client.invoke_rest_api({
1011
+ # name: "EnvironmentName", # required
1012
+ # path: "RestApiPath", # required
1013
+ # method: "GET", # required, accepts GET, PUT, POST, PATCH, DELETE
1014
+ # query_parameters: {
1015
+ # },
1016
+ # body: {
1017
+ # },
1018
+ # })
1019
+ #
1020
+ # @example Response structure
1021
+ #
1022
+ # resp.rest_api_status_code #=> Integer
1023
+ #
1024
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/InvokeRestApi AWS API Documentation
1025
+ #
1026
+ # @overload invoke_rest_api(params = {})
1027
+ # @param [Hash] params ({})
1028
+ def invoke_rest_api(params = {}, options = {})
1029
+ req = build_request(:invoke_rest_api, params)
1030
+ req.send_request(options)
1031
+ end
1032
+
960
1033
  # Lists the Amazon Managed Workflows for Apache Airflow (MWAA)
961
1034
  # environments.
962
1035
  #
@@ -1179,7 +1252,7 @@ module Aws::MWAA
1179
1252
  # environment][1].
1180
1253
  #
1181
1254
  # 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`.
1255
+ # `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
1183
1256
  #
1184
1257
  #
1185
1258
  #
@@ -1452,7 +1525,7 @@ module Aws::MWAA
1452
1525
  tracer: tracer
1453
1526
  )
1454
1527
  context[:gem_name] = 'aws-sdk-mwaa'
1455
- context[:gem_version] = '1.48.0'
1528
+ context[:gem_version] = '1.50.0'
1456
1529
  Seahorse::Client::Request.new(handlers, context)
1457
1530
  end
1458
1531
 
@@ -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"
@@ -52,15 +52,18 @@ module Aws::MWAA
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end
@@ -12,126 +12,9 @@ module Aws::MWAA
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class CreateCliToken
16
- def self.build(context)
17
- Aws::MWAA::EndpointParameters.new(
18
- region: context.config.region,
19
- use_dual_stack: context.config.use_dualstack_endpoint,
20
- use_fips: context.config.use_fips_endpoint,
21
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
22
- )
23
- end
24
- end
25
-
26
- class CreateEnvironment
27
- def self.build(context)
28
- Aws::MWAA::EndpointParameters.new(
29
- region: context.config.region,
30
- use_dual_stack: context.config.use_dualstack_endpoint,
31
- use_fips: context.config.use_fips_endpoint,
32
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
33
- )
34
- end
35
- end
36
-
37
- class CreateWebLoginToken
38
- def self.build(context)
39
- Aws::MWAA::EndpointParameters.new(
40
- region: context.config.region,
41
- use_dual_stack: context.config.use_dualstack_endpoint,
42
- use_fips: context.config.use_fips_endpoint,
43
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
44
- )
45
- end
46
- end
47
-
48
- class DeleteEnvironment
49
- def self.build(context)
50
- Aws::MWAA::EndpointParameters.new(
51
- region: context.config.region,
52
- use_dual_stack: context.config.use_dualstack_endpoint,
53
- use_fips: context.config.use_fips_endpoint,
54
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
55
- )
56
- end
57
- end
58
-
59
- class GetEnvironment
60
- def self.build(context)
61
- Aws::MWAA::EndpointParameters.new(
62
- region: context.config.region,
63
- use_dual_stack: context.config.use_dualstack_endpoint,
64
- use_fips: context.config.use_fips_endpoint,
65
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
66
- )
67
- end
68
- end
69
-
70
- class ListEnvironments
71
- def self.build(context)
72
- Aws::MWAA::EndpointParameters.new(
73
- region: context.config.region,
74
- use_dual_stack: context.config.use_dualstack_endpoint,
75
- use_fips: context.config.use_fips_endpoint,
76
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
77
- )
78
- end
79
- end
80
-
81
- class ListTagsForResource
82
- def self.build(context)
83
- Aws::MWAA::EndpointParameters.new(
84
- region: context.config.region,
85
- use_dual_stack: context.config.use_dualstack_endpoint,
86
- use_fips: context.config.use_fips_endpoint,
87
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
88
- )
89
- end
90
- end
91
-
92
- class PublishMetrics
93
- def self.build(context)
94
- Aws::MWAA::EndpointParameters.new(
95
- region: context.config.region,
96
- use_dual_stack: context.config.use_dualstack_endpoint,
97
- use_fips: context.config.use_fips_endpoint,
98
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
99
- )
100
- end
101
- end
102
15
 
103
- class TagResource
104
- def self.build(context)
105
- Aws::MWAA::EndpointParameters.new(
106
- region: context.config.region,
107
- use_dual_stack: context.config.use_dualstack_endpoint,
108
- use_fips: context.config.use_fips_endpoint,
109
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
110
- )
111
- end
16
+ def self.parameters_for_operation(context)
17
+ Aws::MWAA::EndpointParameters.create(context.config)
112
18
  end
113
-
114
- class UntagResource
115
- def self.build(context)
116
- Aws::MWAA::EndpointParameters.new(
117
- region: context.config.region,
118
- use_dual_stack: context.config.use_dualstack_endpoint,
119
- use_fips: context.config.use_fips_endpoint,
120
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
121
- )
122
- end
123
- end
124
-
125
- class UpdateEnvironment
126
- def self.build(context)
127
- Aws::MWAA::EndpointParameters.new(
128
- region: context.config.region,
129
- use_dual_stack: context.config.use_dualstack_endpoint,
130
- use_fips: context.config.use_fips_endpoint,
131
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
132
- )
133
- end
134
- end
135
-
136
19
  end
137
20
  end
@@ -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
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::MWAA::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,33 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :create_cli_token
74
- Aws::MWAA::Endpoints::CreateCliToken.build(context)
75
- when :create_environment
76
- Aws::MWAA::Endpoints::CreateEnvironment.build(context)
77
- when :create_web_login_token
78
- Aws::MWAA::Endpoints::CreateWebLoginToken.build(context)
79
- when :delete_environment
80
- Aws::MWAA::Endpoints::DeleteEnvironment.build(context)
81
- when :get_environment
82
- Aws::MWAA::Endpoints::GetEnvironment.build(context)
83
- when :list_environments
84
- Aws::MWAA::Endpoints::ListEnvironments.build(context)
85
- when :list_tags_for_resource
86
- Aws::MWAA::Endpoints::ListTagsForResource.build(context)
87
- when :publish_metrics
88
- Aws::MWAA::Endpoints::PublishMetrics.build(context)
89
- when :tag_resource
90
- Aws::MWAA::Endpoints::TagResource.build(context)
91
- when :untag_resource
92
- Aws::MWAA::Endpoints::UntagResource.build(context)
93
- when :update_environment
94
- Aws::MWAA::Endpoints::UpdateEnvironment.build(context)
95
- end
96
- end
97
70
  end
98
71
 
99
72
  def add_handlers(handlers, _config)
@@ -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. For more
64
- # information, see [Get started with Amazon Managed Workflows for Apache
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
  #
@@ -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` `2.8.1`
245
+ # `2.6.3`, `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
246
246
  #
247
247
  #
248
248
  #
@@ -590,7 +590,7 @@ module Aws::MWAA
590
590
  # The Apache Airflow version on your environment.
591
591
  #
592
592
  # 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`.
593
+ # `2.6.3`, `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
594
594
  # @return [String]
595
595
  #
596
596
  # @!attribute [rw] source_bucket_arn
@@ -916,6 +916,66 @@ module Aws::MWAA
916
916
  include Aws::Structure
917
917
  end
918
918
 
919
+ # @!attribute [rw] name
920
+ # The name of the Amazon MWAA environment. For example,
921
+ # `MyMWAAEnvironment`.
922
+ # @return [String]
923
+ #
924
+ # @!attribute [rw] path
925
+ # The Apache Airflow REST API endpoint path to be called. For example,
926
+ # `/dags/123456/clearTaskInstances`. For more information, see [Apache
927
+ # Airflow API][1]
928
+ #
929
+ #
930
+ #
931
+ # [1]: https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html
932
+ # @return [String]
933
+ #
934
+ # @!attribute [rw] method
935
+ # The HTTP method used for making Airflow REST API calls. For example,
936
+ # `POST`.
937
+ # @return [String]
938
+ #
939
+ # @!attribute [rw] query_parameters
940
+ # Query parameters to be included in the Apache Airflow REST API call,
941
+ # provided as a JSON object.
942
+ # @return [Hash,Array,String,Numeric,Boolean]
943
+ #
944
+ # @!attribute [rw] body
945
+ # The request body for the Apache Airflow REST API call, provided as a
946
+ # JSON object.
947
+ # @return [Hash,Array,String,Numeric,Boolean]
948
+ #
949
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/InvokeRestApiRequest AWS API Documentation
950
+ #
951
+ class InvokeRestApiRequest < Struct.new(
952
+ :name,
953
+ :path,
954
+ :method,
955
+ :query_parameters,
956
+ :body)
957
+ SENSITIVE = [:body]
958
+ include Aws::Structure
959
+ end
960
+
961
+ # @!attribute [rw] rest_api_status_code
962
+ # The HTTP status code returned by the Apache Airflow REST API call.
963
+ # @return [Integer]
964
+ #
965
+ # @!attribute [rw] rest_api_response
966
+ # The response data from the Apache Airflow REST API call, provided as
967
+ # a JSON object.
968
+ # @return [Hash,Array,String,Numeric,Boolean]
969
+ #
970
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/InvokeRestApiResponse AWS API Documentation
971
+ #
972
+ class InvokeRestApiResponse < Struct.new(
973
+ :rest_api_status_code,
974
+ :rest_api_response)
975
+ SENSITIVE = [:rest_api_response]
976
+ include Aws::Structure
977
+ end
978
+
919
979
  # Describes the status of the last update on the environment, and any
920
980
  # errors that were encountered.
921
981
  #
@@ -1261,6 +1321,48 @@ module Aws::MWAA
1261
1321
  include Aws::Structure
1262
1322
  end
1263
1323
 
1324
+ # An exception indicating that a client-side error occurred during the
1325
+ # Apache Airflow REST API call.
1326
+ #
1327
+ # @!attribute [rw] rest_api_status_code
1328
+ # The HTTP status code returned by the Apache Airflow REST API call.
1329
+ # @return [Integer]
1330
+ #
1331
+ # @!attribute [rw] rest_api_response
1332
+ # The error response data from the Apache Airflow REST API call,
1333
+ # provided as a JSON object.
1334
+ # @return [Hash,Array,String,Numeric,Boolean]
1335
+ #
1336
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/RestApiClientException AWS API Documentation
1337
+ #
1338
+ class RestApiClientException < Struct.new(
1339
+ :rest_api_status_code,
1340
+ :rest_api_response)
1341
+ SENSITIVE = [:rest_api_response]
1342
+ include Aws::Structure
1343
+ end
1344
+
1345
+ # An exception indicating that a server-side error occurred during the
1346
+ # Apache Airflow REST API call.
1347
+ #
1348
+ # @!attribute [rw] rest_api_status_code
1349
+ # The HTTP status code returned by the Apache Airflow REST API call.
1350
+ # @return [Integer]
1351
+ #
1352
+ # @!attribute [rw] rest_api_response
1353
+ # The error response data from the Apache Airflow REST API call,
1354
+ # provided as a JSON object.
1355
+ # @return [Hash,Array,String,Numeric,Boolean]
1356
+ #
1357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/RestApiServerException AWS API Documentation
1358
+ #
1359
+ class RestApiServerException < Struct.new(
1360
+ :rest_api_status_code,
1361
+ :rest_api_response)
1362
+ SENSITIVE = [:rest_api_response]
1363
+ include Aws::Structure
1364
+ end
1365
+
1264
1366
  # **Internal only**. Represents a set of statistics that describe a
1265
1367
  # specific metric. To learn more about the metrics published to Amazon
1266
1368
  # CloudWatch, see [Amazon MWAA performance metrics in Amazon
@@ -1379,7 +1481,7 @@ module Aws::MWAA
1379
1481
  # environment][1].
1380
1482
  #
1381
1483
  # 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`.
1484
+ # `2.6.3`, `2.7.2`, `2.8.1`, `2.9.2`, and `2.10.1`.
1383
1485
  #
1384
1486
  #
1385
1487
  #
data/lib/aws-sdk-mwaa.rb CHANGED
@@ -54,7 +54,7 @@ module Aws::MWAA
54
54
  autoload :EndpointProvider, 'aws-sdk-mwaa/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-mwaa/endpoints'
56
56
 
57
- GEM_VERSION = '1.48.0'
57
+ GEM_VERSION = '1.50.0'
58
58
 
59
59
  end
60
60
 
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.48.0
4
+ version: 1.50.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-09-24 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.207.0
22
+ version: 3.210.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.207.0
32
+ version: 3.210.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.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.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: