aws-sdk-appflow 1.39.0 → 1.40.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83e61885b65c7cafcae7903743983818337d88368477b6c320e81a7a00ba6e1b
4
- data.tar.gz: a5cafbf04f0e518ab36c04918012343a1789be5591d2188e738fb90e82a0ffb0
3
+ metadata.gz: 9cc57e3696ca5adff62cd080b215acd3eefd251d510882568dd55986083babb1
4
+ data.tar.gz: 3aa3803ad09c976c9b94a58412cd70dedf7120b79373e179fe5c9f8b770f58fe
5
5
  SHA512:
6
- metadata.gz: 6c1942e9bbea35232f743bc9c70cf3494f7037b4637d3ac49f6b7dfb627cd401086c7c83b245e173e3022539ab554778ec62759c84af6a324280d9a05d10a9bd
7
- data.tar.gz: 221eba0f46f38361ae3d02c7bd3c46460ac8b60763b94c3ca033427745039b2f8797391a7336a084fbde0cc3792aa9fb906695dba9ddc058979c9f8c32e1e2dd
6
+ metadata.gz: e56604e6a67d0d43197d1932d58a9c9304b7bb11b32bc544af6b2ffd6e39d699c103b411ca1d1d9f36554d52914fec30521399c757405164974b3d91f4e82236
7
+ data.tar.gz: 2a39498893563699b1c10d034837e842edd0e741d78156f11436280e6bf9240a564e12f66d46951f1769b6be08c3fb636e0bcd0d44f39e77e2c310aa8b531bc7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.40.0 (2023-05-02)
5
+ ------------------
6
+
7
+ * Feature - This release adds new API to cancel flow executions.
8
+
4
9
  1.39.0 (2023-04-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.40.0
@@ -368,6 +368,73 @@ module Aws::Appflow
368
368
 
369
369
  # @!group API Operations
370
370
 
371
+ # Cancels active runs for a flow.
372
+ #
373
+ # You can cancel all of the active runs for a flow, or you can cancel
374
+ # specific runs by providing their IDs.
375
+ #
376
+ # You can cancel a flow run only when the run is in progress. You can't
377
+ # cancel a run that has already completed or failed. You also can't
378
+ # cancel a run that's scheduled to occur but hasn't started yet. To
379
+ # prevent a scheduled run, you can deactivate the flow with the
380
+ # `StopFlow` action.
381
+ #
382
+ # You cannot resume a run after you cancel it.
383
+ #
384
+ # When you send your request, the status for each run becomes
385
+ # `CancelStarted`. When the cancellation completes, the status becomes
386
+ # `Canceled`.
387
+ #
388
+ # <note markdown="1"> When you cancel a run, you still incur charges for any data that the
389
+ # run already processed before the cancellation. If the run had already
390
+ # written some data to the flow destination, then that data remains in
391
+ # the destination. If you configured the flow to use a batch API (such
392
+ # as the Salesforce Bulk API 2.0), then the run will finish reading or
393
+ # writing its entire batch of data after the cancellation. For these
394
+ # operations, the data processing charges for Amazon AppFlow apply. For
395
+ # the pricing information, see [Amazon AppFlow pricing][1].
396
+ #
397
+ # </note>
398
+ #
399
+ #
400
+ #
401
+ # [1]: http://aws.amazon.com/appflow/pricing/
402
+ #
403
+ # @option params [required, String] :flow_name
404
+ # The name of a flow with active runs that you want to cancel.
405
+ #
406
+ # @option params [Array<String>] :execution_ids
407
+ # The ID of each active run to cancel. These runs must belong to the
408
+ # flow you specify in your request.
409
+ #
410
+ # If you omit this parameter, your request ends all active runs that
411
+ # belong to the flow.
412
+ #
413
+ # @return [Types::CancelFlowExecutionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
414
+ #
415
+ # * {Types::CancelFlowExecutionsResponse#invalid_executions #invalid_executions} => Array&lt;String&gt;
416
+ #
417
+ # @example Request syntax with placeholder values
418
+ #
419
+ # resp = client.cancel_flow_executions({
420
+ # flow_name: "FlowName", # required
421
+ # execution_ids: ["ExecutionId"],
422
+ # })
423
+ #
424
+ # @example Response structure
425
+ #
426
+ # resp.invalid_executions #=> Array
427
+ # resp.invalid_executions[0] #=> String
428
+ #
429
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutions AWS API Documentation
430
+ #
431
+ # @overload cancel_flow_executions(params = {})
432
+ # @param [Hash] params ({})
433
+ def cancel_flow_executions(params = {}, options = {})
434
+ req = build_request(:cancel_flow_executions, params)
435
+ req.send_request(options)
436
+ end
437
+
371
438
  # Creates a new connector profile associated with your Amazon Web
372
439
  # Services account. There is a soft quota of 100 connector profiles per
373
440
  # Amazon Web Services account. If you need more connector profiles than
@@ -1728,7 +1795,7 @@ module Aws::Appflow
1728
1795
  # resp.destination_flow_config_list[0].destination_connector_properties.sapo_data.write_operation_type #=> String, one of "INSERT", "UPSERT", "UPDATE", "DELETE"
1729
1796
  # resp.last_run_execution_details.most_recent_execution_message #=> String
1730
1797
  # resp.last_run_execution_details.most_recent_execution_time #=> Time
1731
- # resp.last_run_execution_details.most_recent_execution_status #=> String, one of "InProgress", "Successful", "Error"
1798
+ # resp.last_run_execution_details.most_recent_execution_status #=> String, one of "InProgress", "Successful", "Error", "CancelStarted", "Canceled"
1732
1799
  # resp.trigger_config.trigger_type #=> String, one of "Scheduled", "Event", "OnDemand"
1733
1800
  # resp.trigger_config.trigger_properties.scheduled.schedule_expression #=> String
1734
1801
  # resp.trigger_config.trigger_properties.scheduled.data_pull_mode #=> String, one of "Incremental", "Complete"
@@ -1776,10 +1843,10 @@ module Aws::Appflow
1776
1843
  # resp.last_run_metadata_catalog_details[0].table_name #=> String
1777
1844
  # resp.last_run_metadata_catalog_details[0].table_registration_output.message #=> String
1778
1845
  # resp.last_run_metadata_catalog_details[0].table_registration_output.result #=> String
1779
- # resp.last_run_metadata_catalog_details[0].table_registration_output.status #=> String, one of "InProgress", "Successful", "Error"
1846
+ # resp.last_run_metadata_catalog_details[0].table_registration_output.status #=> String, one of "InProgress", "Successful", "Error", "CancelStarted", "Canceled"
1780
1847
  # resp.last_run_metadata_catalog_details[0].partition_registration_output.message #=> String
1781
1848
  # resp.last_run_metadata_catalog_details[0].partition_registration_output.result #=> String
1782
- # resp.last_run_metadata_catalog_details[0].partition_registration_output.status #=> String, one of "InProgress", "Successful", "Error"
1849
+ # resp.last_run_metadata_catalog_details[0].partition_registration_output.status #=> String, one of "InProgress", "Successful", "Error", "CancelStarted", "Canceled"
1783
1850
  # resp.schema_version #=> Integer
1784
1851
  #
1785
1852
  # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow AWS API Documentation
@@ -1824,7 +1891,7 @@ module Aws::Appflow
1824
1891
  #
1825
1892
  # resp.flow_executions #=> Array
1826
1893
  # resp.flow_executions[0].execution_id #=> String
1827
- # resp.flow_executions[0].execution_status #=> String, one of "InProgress", "Successful", "Error"
1894
+ # resp.flow_executions[0].execution_status #=> String, one of "InProgress", "Successful", "Error", "CancelStarted", "Canceled"
1828
1895
  # resp.flow_executions[0].execution_result.error_info.put_failures_count #=> Integer
1829
1896
  # resp.flow_executions[0].execution_result.error_info.execution_message #=> String
1830
1897
  # resp.flow_executions[0].execution_result.bytes_processed #=> Integer
@@ -1839,10 +1906,10 @@ module Aws::Appflow
1839
1906
  # resp.flow_executions[0].metadata_catalog_details[0].table_name #=> String
1840
1907
  # resp.flow_executions[0].metadata_catalog_details[0].table_registration_output.message #=> String
1841
1908
  # resp.flow_executions[0].metadata_catalog_details[0].table_registration_output.result #=> String
1842
- # resp.flow_executions[0].metadata_catalog_details[0].table_registration_output.status #=> String, one of "InProgress", "Successful", "Error"
1909
+ # resp.flow_executions[0].metadata_catalog_details[0].table_registration_output.status #=> String, one of "InProgress", "Successful", "Error", "CancelStarted", "Canceled"
1843
1910
  # resp.flow_executions[0].metadata_catalog_details[0].partition_registration_output.message #=> String
1844
1911
  # resp.flow_executions[0].metadata_catalog_details[0].partition_registration_output.result #=> String
1845
- # resp.flow_executions[0].metadata_catalog_details[0].partition_registration_output.status #=> String, one of "InProgress", "Successful", "Error"
1912
+ # resp.flow_executions[0].metadata_catalog_details[0].partition_registration_output.status #=> String, one of "InProgress", "Successful", "Error", "CancelStarted", "Canceled"
1846
1913
  # resp.next_token #=> String
1847
1914
  #
1848
1915
  # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords AWS API Documentation
@@ -2016,7 +2083,7 @@ module Aws::Appflow
2016
2083
  # resp.flows[0].tags["TagKey"] #=> String
2017
2084
  # resp.flows[0].last_run_execution_details.most_recent_execution_message #=> String
2018
2085
  # resp.flows[0].last_run_execution_details.most_recent_execution_time #=> Time
2019
- # resp.flows[0].last_run_execution_details.most_recent_execution_status #=> String, one of "InProgress", "Successful", "Error"
2086
+ # resp.flows[0].last_run_execution_details.most_recent_execution_status #=> String, one of "InProgress", "Successful", "Error", "CancelStarted", "Canceled"
2020
2087
  # resp.next_token #=> String
2021
2088
  #
2022
2089
  # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows AWS API Documentation
@@ -3028,7 +3095,7 @@ module Aws::Appflow
3028
3095
  params: params,
3029
3096
  config: config)
3030
3097
  context[:gem_name] = 'aws-sdk-appflow'
3031
- context[:gem_version] = '1.39.0'
3098
+ context[:gem_version] = '1.40.0'
3032
3099
  Seahorse::Client::Request.new(handlers, context)
3033
3100
  end
3034
3101
 
@@ -46,6 +46,8 @@ module Aws::Appflow
46
46
  BucketName = Shapes::StringShape.new(name: 'BucketName')
47
47
  BucketPrefix = Shapes::StringShape.new(name: 'BucketPrefix')
48
48
  BusinessUnitId = Shapes::StringShape.new(name: 'BusinessUnitId')
49
+ CancelFlowExecutionsRequest = Shapes::StructureShape.new(name: 'CancelFlowExecutionsRequest')
50
+ CancelFlowExecutionsResponse = Shapes::StructureShape.new(name: 'CancelFlowExecutionsResponse')
49
51
  CatalogType = Shapes::StringShape.new(name: 'CatalogType')
50
52
  ClientCredentialsArn = Shapes::StringShape.new(name: 'ClientCredentialsArn')
51
53
  ClientId = Shapes::StringShape.new(name: 'ClientId')
@@ -166,6 +168,7 @@ module Aws::Appflow
166
168
  EventBridgeMetadata = Shapes::StructureShape.new(name: 'EventBridgeMetadata')
167
169
  ExecutionDetails = Shapes::StructureShape.new(name: 'ExecutionDetails')
168
170
  ExecutionId = Shapes::StringShape.new(name: 'ExecutionId')
171
+ ExecutionIds = Shapes::ListShape.new(name: 'ExecutionIds')
169
172
  ExecutionMessage = Shapes::StringShape.new(name: 'ExecutionMessage')
170
173
  ExecutionRecord = Shapes::StructureShape.new(name: 'ExecutionRecord')
171
174
  ExecutionResult = Shapes::StructureShape.new(name: 'ExecutionResult')
@@ -460,6 +463,13 @@ module Aws::Appflow
460
463
  BasicAuthCredentials.add_member(:password, Shapes::ShapeRef.new(shape: Password, required: true, location_name: "password"))
461
464
  BasicAuthCredentials.struct_class = Types::BasicAuthCredentials
462
465
 
466
+ CancelFlowExecutionsRequest.add_member(:flow_name, Shapes::ShapeRef.new(shape: FlowName, required: true, location_name: "flowName"))
467
+ CancelFlowExecutionsRequest.add_member(:execution_ids, Shapes::ShapeRef.new(shape: ExecutionIds, location_name: "executionIds"))
468
+ CancelFlowExecutionsRequest.struct_class = Types::CancelFlowExecutionsRequest
469
+
470
+ CancelFlowExecutionsResponse.add_member(:invalid_executions, Shapes::ShapeRef.new(shape: ExecutionIds, location_name: "invalidExecutions"))
471
+ CancelFlowExecutionsResponse.struct_class = Types::CancelFlowExecutionsResponse
472
+
463
473
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
464
474
  ConflictException.struct_class = Types::ConflictException
465
475
 
@@ -899,6 +909,8 @@ module Aws::Appflow
899
909
  ExecutionDetails.add_member(:most_recent_execution_status, Shapes::ShapeRef.new(shape: ExecutionStatus, location_name: "mostRecentExecutionStatus"))
900
910
  ExecutionDetails.struct_class = Types::ExecutionDetails
901
911
 
912
+ ExecutionIds.member = Shapes::ShapeRef.new(shape: ExecutionId)
913
+
902
914
  ExecutionRecord.add_member(:execution_id, Shapes::ShapeRef.new(shape: ExecutionId, location_name: "executionId"))
903
915
  ExecutionRecord.add_member(:execution_status, Shapes::ShapeRef.new(shape: ExecutionStatus, location_name: "executionStatus"))
904
916
  ExecutionRecord.add_member(:execution_result, Shapes::ShapeRef.new(shape: ExecutionResult, location_name: "executionResult"))
@@ -1578,6 +1590,19 @@ module Aws::Appflow
1578
1590
  "uid" => "appflow-2020-08-23",
1579
1591
  }
1580
1592
 
1593
+ api.add_operation(:cancel_flow_executions, Seahorse::Model::Operation.new.tap do |o|
1594
+ o.name = "CancelFlowExecutions"
1595
+ o.http_method = "POST"
1596
+ o.http_request_uri = "/cancel-flow-executions"
1597
+ o.input = Shapes::ShapeRef.new(shape: CancelFlowExecutionsRequest)
1598
+ o.output = Shapes::ShapeRef.new(shape: CancelFlowExecutionsResponse)
1599
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1600
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1601
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1602
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1603
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1604
+ end)
1605
+
1581
1606
  api.add_operation(:create_connector_profile, Seahorse::Model::Operation.new.tap do |o|
1582
1607
  o.name = "CreateConnectorProfile"
1583
1608
  o.http_method = "POST"
@@ -11,6 +11,20 @@
11
11
  module Aws::Appflow
12
12
  module Endpoints
13
13
 
14
+ class CancelFlowExecutions
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::Appflow::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
14
28
  class CreateConnectorProfile
15
29
  def self.build(context)
16
30
  unless context.config.regional_endpoint
@@ -56,6 +56,8 @@ module Aws::Appflow
56
56
 
57
57
  def parameters_for_operation(context)
58
58
  case context.operation_name
59
+ when :cancel_flow_executions
60
+ Aws::Appflow::Endpoints::CancelFlowExecutions.build(context)
59
61
  when :create_connector_profile
60
62
  Aws::Appflow::Endpoints::CreateConnectorProfile.build(context)
61
63
  when :create_flow
@@ -221,6 +221,41 @@ module Aws::Appflow
221
221
  include Aws::Structure
222
222
  end
223
223
 
224
+ # @!attribute [rw] flow_name
225
+ # The name of a flow with active runs that you want to cancel.
226
+ # @return [String]
227
+ #
228
+ # @!attribute [rw] execution_ids
229
+ # The ID of each active run to cancel. These runs must belong to the
230
+ # flow you specify in your request.
231
+ #
232
+ # If you omit this parameter, your request ends all active runs that
233
+ # belong to the flow.
234
+ # @return [Array<String>]
235
+ #
236
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutionsRequest AWS API Documentation
237
+ #
238
+ class CancelFlowExecutionsRequest < Struct.new(
239
+ :flow_name,
240
+ :execution_ids)
241
+ SENSITIVE = []
242
+ include Aws::Structure
243
+ end
244
+
245
+ # @!attribute [rw] invalid_executions
246
+ # The IDs of runs that Amazon AppFlow couldn't cancel. These runs
247
+ # might be ineligible for canceling because they haven't started yet
248
+ # or have already completed.
249
+ # @return [Array<String>]
250
+ #
251
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CancelFlowExecutionsResponse AWS API Documentation
252
+ #
253
+ class CancelFlowExecutionsResponse < Struct.new(
254
+ :invalid_executions)
255
+ SENSITIVE = []
256
+ include Aws::Structure
257
+ end
258
+
224
259
  # There was a conflict when processing the request (for example, a flow
225
260
  # with the given name already exists within the account. Check for
226
261
  # conflicting resource names and try again.
@@ -32,7 +32,7 @@ require_relative 'aws-sdk-appflow/customizations'
32
32
  # structure.
33
33
  #
34
34
  # appflow = Aws::Appflow::Client.new
35
- # resp = appflow.create_connector_profile(params)
35
+ # resp = appflow.cancel_flow_executions(params)
36
36
  #
37
37
  # See {Client} for more information.
38
38
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-appflow/customizations'
52
52
  # @!group service
53
53
  module Aws::Appflow
54
54
 
55
- GEM_VERSION = '1.39.0'
55
+ GEM_VERSION = '1.40.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.0
4
+ version: 1.40.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-04-28 00:00:00.000000000 Z
11
+ date: 2023-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core