aws-sdk-appflow 1.38.0 → 1.40.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: 2a50a89b562ee809cbde0b67c45abc2d47222f3dde66bd8e65173a73cf02d212
4
- data.tar.gz: 41115f3a22f2e2d0f230b8342591b4193401e28338c3c3621a38cd4c5b5de745
3
+ metadata.gz: 9cc57e3696ca5adff62cd080b215acd3eefd251d510882568dd55986083babb1
4
+ data.tar.gz: 3aa3803ad09c976c9b94a58412cd70dedf7120b79373e179fe5c9f8b770f58fe
5
5
  SHA512:
6
- metadata.gz: 548ce6442a4c03667a607f7b0d67f09f1d131e42c60b68c2bad18db0c9906c252af24bebb05a02ea9e700a399aa840d6e99dd765e0ffa42c29fd06bc9246f082
7
- data.tar.gz: 40ed67657f491dbee14a21b8f582e4ebeac59616b2232b0d06eeb843457e6faa3b8488d8ecb8018f984af3f987b8b8abc6d5b70d03ade19ce77fd9b602863cb6
6
+ metadata.gz: e56604e6a67d0d43197d1932d58a9c9304b7bb11b32bc544af6b2ffd6e39d699c103b411ca1d1d9f36554d52914fec30521399c757405164974b3d91f4e82236
7
+ data.tar.gz: 2a39498893563699b1c10d034837e842edd0e741d78156f11436280e6bf9240a564e12f66d46951f1769b6be08c3fb636e0bcd0d44f39e77e2c310aa8b531bc7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.39.0 (2023-04-28)
10
+ ------------------
11
+
12
+ * Feature - Adds Jwt Support for Salesforce Credentials.
13
+
4
14
  1.38.0 (2023-04-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.38.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
@@ -515,7 +582,7 @@ module Aws::Appflow
515
582
  # },
516
583
  # o_auth_2_properties: {
517
584
  # token_url: "TokenUrl", # required
518
- # o_auth_2_grant_type: "CLIENT_CREDENTIALS", # required, accepts CLIENT_CREDENTIALS, AUTHORIZATION_CODE
585
+ # o_auth_2_grant_type: "CLIENT_CREDENTIALS", # required, accepts CLIENT_CREDENTIALS, AUTHORIZATION_CODE, JWT_BEARER
519
586
  # token_url_custom_properties: {
520
587
  # "CustomPropertyKey" => "CustomPropertyValue",
521
588
  # },
@@ -584,6 +651,8 @@ module Aws::Appflow
584
651
  # redirect_uri: "RedirectUri",
585
652
  # },
586
653
  # client_credentials_arn: "ClientCredentialsArn",
654
+ # o_auth_2_grant_type: "CLIENT_CREDENTIALS", # accepts CLIENT_CREDENTIALS, AUTHORIZATION_CODE, JWT_BEARER
655
+ # jwt_token: "JwtToken",
587
656
  # },
588
657
  # service_now: {
589
658
  # username: "Username", # required
@@ -1152,6 +1221,8 @@ module Aws::Appflow
1152
1221
  # resp.connector_configuration.connector_metadata.salesforce.o_auth_scopes[0] #=> String
1153
1222
  # resp.connector_configuration.connector_metadata.salesforce.data_transfer_apis #=> Array
1154
1223
  # resp.connector_configuration.connector_metadata.salesforce.data_transfer_apis[0] #=> String, one of "AUTOMATIC", "BULKV2", "REST_SYNC"
1224
+ # resp.connector_configuration.connector_metadata.salesforce.oauth2_grant_types_supported #=> Array
1225
+ # resp.connector_configuration.connector_metadata.salesforce.oauth2_grant_types_supported[0] #=> String, one of "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE", "JWT_BEARER"
1155
1226
  # resp.connector_configuration.connector_metadata.slack.o_auth_scopes #=> Array
1156
1227
  # resp.connector_configuration.connector_metadata.slack.o_auth_scopes[0] #=> String
1157
1228
  # resp.connector_configuration.connector_metadata.snowflake.supported_regions #=> Array
@@ -1180,7 +1251,7 @@ module Aws::Appflow
1180
1251
  # resp.connector_configuration.authentication_config.o_auth_2_defaults.auth_code_urls #=> Array
1181
1252
  # resp.connector_configuration.authentication_config.o_auth_2_defaults.auth_code_urls[0] #=> String
1182
1253
  # resp.connector_configuration.authentication_config.o_auth_2_defaults.oauth2_grant_types_supported #=> Array
1183
- # resp.connector_configuration.authentication_config.o_auth_2_defaults.oauth2_grant_types_supported[0] #=> String, one of "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE"
1254
+ # resp.connector_configuration.authentication_config.o_auth_2_defaults.oauth2_grant_types_supported[0] #=> String, one of "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE", "JWT_BEARER"
1184
1255
  # resp.connector_configuration.authentication_config.o_auth_2_defaults.oauth2_custom_properties #=> Array
1185
1256
  # resp.connector_configuration.authentication_config.o_auth_2_defaults.oauth2_custom_properties[0].key #=> String
1186
1257
  # resp.connector_configuration.authentication_config.o_auth_2_defaults.oauth2_custom_properties[0].is_required #=> Boolean
@@ -1397,7 +1468,7 @@ module Aws::Appflow
1397
1468
  # resp.connector_profile_details[0].connector_profile_properties.custom_connector.profile_properties #=> Hash
1398
1469
  # resp.connector_profile_details[0].connector_profile_properties.custom_connector.profile_properties["ProfilePropertyKey"] #=> String
1399
1470
  # resp.connector_profile_details[0].connector_profile_properties.custom_connector.o_auth_2_properties.token_url #=> String
1400
- # resp.connector_profile_details[0].connector_profile_properties.custom_connector.o_auth_2_properties.o_auth_2_grant_type #=> String, one of "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE"
1471
+ # resp.connector_profile_details[0].connector_profile_properties.custom_connector.o_auth_2_properties.o_auth_2_grant_type #=> String, one of "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE", "JWT_BEARER"
1401
1472
  # resp.connector_profile_details[0].connector_profile_properties.custom_connector.o_auth_2_properties.token_url_custom_properties #=> Hash
1402
1473
  # resp.connector_profile_details[0].connector_profile_properties.custom_connector.o_auth_2_properties.token_url_custom_properties["CustomPropertyKey"] #=> String
1403
1474
  # resp.connector_profile_details[0].connector_profile_properties.pardot.instance_url #=> String
@@ -1472,6 +1543,8 @@ module Aws::Appflow
1472
1543
  # resp.connector_configurations["ConnectorType"].connector_metadata.salesforce.o_auth_scopes[0] #=> String
1473
1544
  # resp.connector_configurations["ConnectorType"].connector_metadata.salesforce.data_transfer_apis #=> Array
1474
1545
  # resp.connector_configurations["ConnectorType"].connector_metadata.salesforce.data_transfer_apis[0] #=> String, one of "AUTOMATIC", "BULKV2", "REST_SYNC"
1546
+ # resp.connector_configurations["ConnectorType"].connector_metadata.salesforce.oauth2_grant_types_supported #=> Array
1547
+ # resp.connector_configurations["ConnectorType"].connector_metadata.salesforce.oauth2_grant_types_supported[0] #=> String, one of "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE", "JWT_BEARER"
1475
1548
  # resp.connector_configurations["ConnectorType"].connector_metadata.slack.o_auth_scopes #=> Array
1476
1549
  # resp.connector_configurations["ConnectorType"].connector_metadata.slack.o_auth_scopes[0] #=> String
1477
1550
  # resp.connector_configurations["ConnectorType"].connector_metadata.snowflake.supported_regions #=> Array
@@ -1500,7 +1573,7 @@ module Aws::Appflow
1500
1573
  # resp.connector_configurations["ConnectorType"].authentication_config.o_auth_2_defaults.auth_code_urls #=> Array
1501
1574
  # resp.connector_configurations["ConnectorType"].authentication_config.o_auth_2_defaults.auth_code_urls[0] #=> String
1502
1575
  # resp.connector_configurations["ConnectorType"].authentication_config.o_auth_2_defaults.oauth2_grant_types_supported #=> Array
1503
- # resp.connector_configurations["ConnectorType"].authentication_config.o_auth_2_defaults.oauth2_grant_types_supported[0] #=> String, one of "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE"
1576
+ # resp.connector_configurations["ConnectorType"].authentication_config.o_auth_2_defaults.oauth2_grant_types_supported[0] #=> String, one of "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE", "JWT_BEARER"
1504
1577
  # resp.connector_configurations["ConnectorType"].authentication_config.o_auth_2_defaults.oauth2_custom_properties #=> Array
1505
1578
  # resp.connector_configurations["ConnectorType"].authentication_config.o_auth_2_defaults.oauth2_custom_properties[0].key #=> String
1506
1579
  # resp.connector_configurations["ConnectorType"].authentication_config.o_auth_2_defaults.oauth2_custom_properties[0].is_required #=> Boolean
@@ -1722,7 +1795,7 @@ module Aws::Appflow
1722
1795
  # resp.destination_flow_config_list[0].destination_connector_properties.sapo_data.write_operation_type #=> String, one of "INSERT", "UPSERT", "UPDATE", "DELETE"
1723
1796
  # resp.last_run_execution_details.most_recent_execution_message #=> String
1724
1797
  # resp.last_run_execution_details.most_recent_execution_time #=> Time
1725
- # 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"
1726
1799
  # resp.trigger_config.trigger_type #=> String, one of "Scheduled", "Event", "OnDemand"
1727
1800
  # resp.trigger_config.trigger_properties.scheduled.schedule_expression #=> String
1728
1801
  # resp.trigger_config.trigger_properties.scheduled.data_pull_mode #=> String, one of "Incremental", "Complete"
@@ -1770,10 +1843,10 @@ module Aws::Appflow
1770
1843
  # resp.last_run_metadata_catalog_details[0].table_name #=> String
1771
1844
  # resp.last_run_metadata_catalog_details[0].table_registration_output.message #=> String
1772
1845
  # resp.last_run_metadata_catalog_details[0].table_registration_output.result #=> String
1773
- # 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"
1774
1847
  # resp.last_run_metadata_catalog_details[0].partition_registration_output.message #=> String
1775
1848
  # resp.last_run_metadata_catalog_details[0].partition_registration_output.result #=> String
1776
- # 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"
1777
1850
  # resp.schema_version #=> Integer
1778
1851
  #
1779
1852
  # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow AWS API Documentation
@@ -1818,7 +1891,7 @@ module Aws::Appflow
1818
1891
  #
1819
1892
  # resp.flow_executions #=> Array
1820
1893
  # resp.flow_executions[0].execution_id #=> String
1821
- # 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"
1822
1895
  # resp.flow_executions[0].execution_result.error_info.put_failures_count #=> Integer
1823
1896
  # resp.flow_executions[0].execution_result.error_info.execution_message #=> String
1824
1897
  # resp.flow_executions[0].execution_result.bytes_processed #=> Integer
@@ -1833,10 +1906,10 @@ module Aws::Appflow
1833
1906
  # resp.flow_executions[0].metadata_catalog_details[0].table_name #=> String
1834
1907
  # resp.flow_executions[0].metadata_catalog_details[0].table_registration_output.message #=> String
1835
1908
  # resp.flow_executions[0].metadata_catalog_details[0].table_registration_output.result #=> String
1836
- # 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"
1837
1910
  # resp.flow_executions[0].metadata_catalog_details[0].partition_registration_output.message #=> String
1838
1911
  # resp.flow_executions[0].metadata_catalog_details[0].partition_registration_output.result #=> String
1839
- # 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"
1840
1913
  # resp.next_token #=> String
1841
1914
  #
1842
1915
  # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords AWS API Documentation
@@ -2010,7 +2083,7 @@ module Aws::Appflow
2010
2083
  # resp.flows[0].tags["TagKey"] #=> String
2011
2084
  # resp.flows[0].last_run_execution_details.most_recent_execution_message #=> String
2012
2085
  # resp.flows[0].last_run_execution_details.most_recent_execution_time #=> Time
2013
- # 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"
2014
2087
  # resp.next_token #=> String
2015
2088
  #
2016
2089
  # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows AWS API Documentation
@@ -2421,7 +2494,7 @@ module Aws::Appflow
2421
2494
  # },
2422
2495
  # o_auth_2_properties: {
2423
2496
  # token_url: "TokenUrl", # required
2424
- # o_auth_2_grant_type: "CLIENT_CREDENTIALS", # required, accepts CLIENT_CREDENTIALS, AUTHORIZATION_CODE
2497
+ # o_auth_2_grant_type: "CLIENT_CREDENTIALS", # required, accepts CLIENT_CREDENTIALS, AUTHORIZATION_CODE, JWT_BEARER
2425
2498
  # token_url_custom_properties: {
2426
2499
  # "CustomPropertyKey" => "CustomPropertyValue",
2427
2500
  # },
@@ -2490,6 +2563,8 @@ module Aws::Appflow
2490
2563
  # redirect_uri: "RedirectUri",
2491
2564
  # },
2492
2565
  # client_credentials_arn: "ClientCredentialsArn",
2566
+ # o_auth_2_grant_type: "CLIENT_CREDENTIALS", # accepts CLIENT_CREDENTIALS, AUTHORIZATION_CODE, JWT_BEARER
2567
+ # jwt_token: "JwtToken",
2493
2568
  # },
2494
2569
  # service_now: {
2495
2570
  # username: "Username", # required
@@ -3020,7 +3095,7 @@ module Aws::Appflow
3020
3095
  params: params,
3021
3096
  config: config)
3022
3097
  context[:gem_name] = 'aws-sdk-appflow'
3023
- context[:gem_version] = '1.38.0'
3098
+ context[:gem_version] = '1.40.0'
3024
3099
  Seahorse::Client::Request.new(handlers, context)
3025
3100
  end
3026
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')
@@ -208,6 +211,7 @@ module Aws::Appflow
208
211
  InstanceUrl = Shapes::StringShape.new(name: 'InstanceUrl')
209
212
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
210
213
  JavaBoolean = Shapes::BooleanShape.new(name: 'JavaBoolean')
214
+ JwtToken = Shapes::StringShape.new(name: 'JwtToken')
211
215
  KMSArn = Shapes::StringShape.new(name: 'KMSArn')
212
216
  Key = Shapes::StringShape.new(name: 'Key')
213
217
  Label = Shapes::StringShape.new(name: 'Label')
@@ -459,6 +463,13 @@ module Aws::Appflow
459
463
  BasicAuthCredentials.add_member(:password, Shapes::ShapeRef.new(shape: Password, required: true, location_name: "password"))
460
464
  BasicAuthCredentials.struct_class = Types::BasicAuthCredentials
461
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
+
462
473
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
463
474
  ConflictException.struct_class = Types::ConflictException
464
475
 
@@ -898,6 +909,8 @@ module Aws::Appflow
898
909
  ExecutionDetails.add_member(:most_recent_execution_status, Shapes::ShapeRef.new(shape: ExecutionStatus, location_name: "mostRecentExecutionStatus"))
899
910
  ExecutionDetails.struct_class = Types::ExecutionDetails
900
911
 
912
+ ExecutionIds.member = Shapes::ShapeRef.new(shape: ExecutionId)
913
+
901
914
  ExecutionRecord.add_member(:execution_id, Shapes::ShapeRef.new(shape: ExecutionId, location_name: "executionId"))
902
915
  ExecutionRecord.add_member(:execution_status, Shapes::ShapeRef.new(shape: ExecutionStatus, location_name: "executionStatus"))
903
916
  ExecutionRecord.add_member(:execution_result, Shapes::ShapeRef.new(shape: ExecutionResult, location_name: "executionResult"))
@@ -1244,6 +1257,8 @@ module Aws::Appflow
1244
1257
  SalesforceConnectorProfileCredentials.add_member(:refresh_token, Shapes::ShapeRef.new(shape: RefreshToken, location_name: "refreshToken"))
1245
1258
  SalesforceConnectorProfileCredentials.add_member(:o_auth_request, Shapes::ShapeRef.new(shape: ConnectorOAuthRequest, location_name: "oAuthRequest"))
1246
1259
  SalesforceConnectorProfileCredentials.add_member(:client_credentials_arn, Shapes::ShapeRef.new(shape: ClientCredentialsArn, location_name: "clientCredentialsArn"))
1260
+ SalesforceConnectorProfileCredentials.add_member(:o_auth_2_grant_type, Shapes::ShapeRef.new(shape: OAuth2GrantType, location_name: "oAuth2GrantType"))
1261
+ SalesforceConnectorProfileCredentials.add_member(:jwt_token, Shapes::ShapeRef.new(shape: JwtToken, location_name: "jwtToken"))
1247
1262
  SalesforceConnectorProfileCredentials.struct_class = Types::SalesforceConnectorProfileCredentials
1248
1263
 
1249
1264
  SalesforceConnectorProfileProperties.add_member(:instance_url, Shapes::ShapeRef.new(shape: InstanceUrl, location_name: "instanceUrl"))
@@ -1262,6 +1277,7 @@ module Aws::Appflow
1262
1277
 
1263
1278
  SalesforceMetadata.add_member(:o_auth_scopes, Shapes::ShapeRef.new(shape: OAuthScopeList, location_name: "oAuthScopes"))
1264
1279
  SalesforceMetadata.add_member(:data_transfer_apis, Shapes::ShapeRef.new(shape: SalesforceDataTransferApiList, location_name: "dataTransferApis"))
1280
+ SalesforceMetadata.add_member(:oauth2_grant_types_supported, Shapes::ShapeRef.new(shape: OAuth2GrantTypeSupportedList, location_name: "oauth2GrantTypesSupported"))
1265
1281
  SalesforceMetadata.struct_class = Types::SalesforceMetadata
1266
1282
 
1267
1283
  SalesforceSourceProperties.add_member(:object, Shapes::ShapeRef.new(shape: Object, required: true, location_name: "object"))
@@ -1574,6 +1590,19 @@ module Aws::Appflow
1574
1590
  "uid" => "appflow-2020-08-23",
1575
1591
  }
1576
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
+
1577
1606
  api.add_operation(:create_connector_profile, Seahorse::Model::Operation.new.tap do |o|
1578
1607
  o.name = "CreateConnectorProfile"
1579
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.
@@ -4076,14 +4111,54 @@ module Aws::Appflow
4076
4111
  # secret of the connected app.
4077
4112
  # @return [String]
4078
4113
  #
4114
+ # @!attribute [rw] o_auth_2_grant_type
4115
+ # Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it
4116
+ # requests an access token from Salesforce. Amazon AppFlow requires an
4117
+ # access token each time it attempts to access your Salesforce
4118
+ # records.
4119
+ #
4120
+ # You can specify one of the following values:
4121
+ #
4122
+ # AUTHORIZATION\_CODE
4123
+ #
4124
+ # : Amazon AppFlow passes an authorization code when it requests the
4125
+ # access token from Salesforce. Amazon AppFlow receives the
4126
+ # authorization code from Salesforce after you log in to your
4127
+ # Salesforce account and authorize Amazon AppFlow to access your
4128
+ # records.
4129
+ #
4130
+ # CLIENT\_CREDENTIALS
4131
+ #
4132
+ # : Amazon AppFlow passes client credentials (a client ID and client
4133
+ # secret) when it requests the access token from Salesforce. You
4134
+ # provide these credentials to Amazon AppFlow when you define the
4135
+ # connection to your Salesforce account.
4136
+ #
4137
+ # JWT\_BEARER
4138
+ #
4139
+ # : Amazon AppFlow passes a JSON web token (JWT) when it requests the
4140
+ # access token from Salesforce. You provide the JWT to Amazon
4141
+ # AppFlow when you define the connection to your Salesforce account.
4142
+ # When you use this grant type, you don't need to log in to your
4143
+ # Salesforce account to authorize Amazon AppFlow to access your
4144
+ # records.
4145
+ # @return [String]
4146
+ #
4147
+ # @!attribute [rw] jwt_token
4148
+ # A JSON web token (JWT) that authorizes Amazon AppFlow to access your
4149
+ # Salesforce records.
4150
+ # @return [String]
4151
+ #
4079
4152
  # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/SalesforceConnectorProfileCredentials AWS API Documentation
4080
4153
  #
4081
4154
  class SalesforceConnectorProfileCredentials < Struct.new(
4082
4155
  :access_token,
4083
4156
  :refresh_token,
4084
4157
  :o_auth_request,
4085
- :client_credentials_arn)
4086
- SENSITIVE = [:access_token, :client_credentials_arn]
4158
+ :client_credentials_arn,
4159
+ :o_auth_2_grant_type,
4160
+ :jwt_token)
4161
+ SENSITIVE = [:access_token, :client_credentials_arn, :jwt_token]
4087
4162
  include Aws::Structure
4088
4163
  end
4089
4164
 
@@ -4250,11 +4325,43 @@ module Aws::Appflow
4250
4325
  # flows transfers data to or from Salesforce.
4251
4326
  # @return [Array<String>]
4252
4327
  #
4328
+ # @!attribute [rw] oauth2_grant_types_supported
4329
+ # The OAuth 2.0 grant types that Amazon AppFlow can use when it
4330
+ # requests an access token from Salesforce. Amazon AppFlow requires an
4331
+ # access token each time it attempts to access your Salesforce
4332
+ # records.
4333
+ #
4334
+ # AUTHORIZATION\_CODE
4335
+ #
4336
+ # : Amazon AppFlow passes an authorization code when it requests the
4337
+ # access token from Salesforce. Amazon AppFlow receives the
4338
+ # authorization code from Salesforce after you log in to your
4339
+ # Salesforce account and authorize Amazon AppFlow to access your
4340
+ # records.
4341
+ #
4342
+ # CLIENT\_CREDENTIALS
4343
+ #
4344
+ # : Amazon AppFlow passes client credentials (a client ID and client
4345
+ # secret) when it requests the access token from Salesforce. You
4346
+ # provide these credentials to Amazon AppFlow when you define the
4347
+ # connection to your Salesforce account.
4348
+ #
4349
+ # JWT\_BEARER
4350
+ #
4351
+ # : Amazon AppFlow passes a JSON web token (JWT) when it requests the
4352
+ # access token from Salesforce. You provide the JWT to Amazon
4353
+ # AppFlow when you define the connection to your Salesforce account.
4354
+ # When you use this grant type, you don't need to log in to your
4355
+ # Salesforce account to authorize Amazon AppFlow to access your
4356
+ # records.
4357
+ # @return [Array<String>]
4358
+ #
4253
4359
  # @see http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/SalesforceMetadata AWS API Documentation
4254
4360
  #
4255
4361
  class SalesforceMetadata < Struct.new(
4256
4362
  :o_auth_scopes,
4257
- :data_transfer_apis)
4363
+ :data_transfer_apis,
4364
+ :oauth2_grant_types_supported)
4258
4365
  SENSITIVE = []
4259
4366
  include Aws::Structure
4260
4367
  end
@@ -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.38.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.38.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-24 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