@aws-sdk/client-appflow 3.321.1 → 3.325.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.
@@ -3,6 +3,27 @@ import { _json, decorateServiceException as __decorateServiceException, expectBo
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AppflowServiceException as __BaseException } from "../models/AppflowServiceException";
5
5
  import { AccessDeniedException, ConflictException, ConnectorAuthenticationException, ConnectorServerException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnsupportedOperationException, ValidationException, } from "../models/models_0";
6
+ export const se_CancelFlowExecutionsCommand = async (input, context) => {
7
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
+ const headers = {
9
+ "content-type": "application/json",
10
+ };
11
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cancel-flow-executions";
12
+ let body;
13
+ body = JSON.stringify(take(input, {
14
+ executionIds: (_) => _json(_),
15
+ flowName: [],
16
+ }));
17
+ return new __HttpRequest({
18
+ protocol,
19
+ hostname,
20
+ port,
21
+ method: "POST",
22
+ headers,
23
+ path: resolvedPath,
24
+ body,
25
+ });
26
+ };
6
27
  export const se_CreateConnectorProfileCommand = async (input, context) => {
7
28
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
29
  const headers = {
@@ -518,6 +539,51 @@ export const se_UpdateFlowCommand = async (input, context) => {
518
539
  body,
519
540
  });
520
541
  };
542
+ export const de_CancelFlowExecutionsCommand = async (output, context) => {
543
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
544
+ return de_CancelFlowExecutionsCommandError(output, context);
545
+ }
546
+ const contents = map({
547
+ $metadata: deserializeMetadata(output),
548
+ });
549
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
550
+ const doc = take(data, {
551
+ invalidExecutions: _json,
552
+ });
553
+ Object.assign(contents, doc);
554
+ return contents;
555
+ };
556
+ const de_CancelFlowExecutionsCommandError = async (output, context) => {
557
+ const parsedOutput = {
558
+ ...output,
559
+ body: await parseErrorBody(output.body, context),
560
+ };
561
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
562
+ switch (errorCode) {
563
+ case "AccessDeniedException":
564
+ case "com.amazonaws.appflow#AccessDeniedException":
565
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
566
+ case "InternalServerException":
567
+ case "com.amazonaws.appflow#InternalServerException":
568
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
569
+ case "ResourceNotFoundException":
570
+ case "com.amazonaws.appflow#ResourceNotFoundException":
571
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
572
+ case "ThrottlingException":
573
+ case "com.amazonaws.appflow#ThrottlingException":
574
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
575
+ case "ValidationException":
576
+ case "com.amazonaws.appflow#ValidationException":
577
+ throw await de_ValidationExceptionRes(parsedOutput, context);
578
+ default:
579
+ const parsedBody = parsedOutput.body;
580
+ return throwDefaultError({
581
+ output,
582
+ parsedBody,
583
+ errorCode,
584
+ });
585
+ }
586
+ };
521
587
  export const de_CreateConnectorProfileCommand = async (output, context) => {
522
588
  if (output.statusCode !== 200 && output.statusCode >= 300) {
523
589
  return de_CreateConnectorProfileCommandError(output, context);
@@ -1,5 +1,6 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AppflowClient } from "./AppflowClient";
3
+ import { CancelFlowExecutionsCommandInput, CancelFlowExecutionsCommandOutput } from "./commands/CancelFlowExecutionsCommand";
3
4
  import { CreateConnectorProfileCommandInput, CreateConnectorProfileCommandOutput } from "./commands/CreateConnectorProfileCommand";
4
5
  import { CreateFlowCommandInput, CreateFlowCommandOutput } from "./commands/CreateFlowCommand";
5
6
  import { DeleteConnectorProfileCommandInput, DeleteConnectorProfileCommandOutput } from "./commands/DeleteConnectorProfileCommand";
@@ -24,6 +25,12 @@ import { UpdateConnectorProfileCommandInput, UpdateConnectorProfileCommandOutput
24
25
  import { UpdateConnectorRegistrationCommandInput, UpdateConnectorRegistrationCommandOutput } from "./commands/UpdateConnectorRegistrationCommand";
25
26
  import { UpdateFlowCommandInput, UpdateFlowCommandOutput } from "./commands/UpdateFlowCommand";
26
27
  export interface Appflow {
28
+ /**
29
+ * @see {@link CancelFlowExecutionsCommand}
30
+ */
31
+ cancelFlowExecutions(args: CancelFlowExecutionsCommandInput, options?: __HttpHandlerOptions): Promise<CancelFlowExecutionsCommandOutput>;
32
+ cancelFlowExecutions(args: CancelFlowExecutionsCommandInput, cb: (err: any, data?: CancelFlowExecutionsCommandOutput) => void): void;
33
+ cancelFlowExecutions(args: CancelFlowExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelFlowExecutionsCommandOutput) => void): void;
27
34
  /**
28
35
  * @see {@link CreateConnectorProfileCommand}
29
36
  */
@@ -7,6 +7,7 @@ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middlewa
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
9
  import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
+ import { CancelFlowExecutionsCommandInput, CancelFlowExecutionsCommandOutput } from "./commands/CancelFlowExecutionsCommand";
10
11
  import { CreateConnectorProfileCommandInput, CreateConnectorProfileCommandOutput } from "./commands/CreateConnectorProfileCommand";
11
12
  import { CreateFlowCommandInput, CreateFlowCommandOutput } from "./commands/CreateFlowCommand";
12
13
  import { DeleteConnectorProfileCommandInput, DeleteConnectorProfileCommandOutput } from "./commands/DeleteConnectorProfileCommand";
@@ -34,11 +35,11 @@ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, Endpoi
34
35
  /**
35
36
  * @public
36
37
  */
37
- export type ServiceInputTypes = CreateConnectorProfileCommandInput | CreateFlowCommandInput | DeleteConnectorProfileCommandInput | DeleteFlowCommandInput | DescribeConnectorCommandInput | DescribeConnectorEntityCommandInput | DescribeConnectorProfilesCommandInput | DescribeConnectorsCommandInput | DescribeFlowCommandInput | DescribeFlowExecutionRecordsCommandInput | ListConnectorEntitiesCommandInput | ListConnectorsCommandInput | ListFlowsCommandInput | ListTagsForResourceCommandInput | RegisterConnectorCommandInput | StartFlowCommandInput | StopFlowCommandInput | TagResourceCommandInput | UnregisterConnectorCommandInput | UntagResourceCommandInput | UpdateConnectorProfileCommandInput | UpdateConnectorRegistrationCommandInput | UpdateFlowCommandInput;
38
+ export type ServiceInputTypes = CancelFlowExecutionsCommandInput | CreateConnectorProfileCommandInput | CreateFlowCommandInput | DeleteConnectorProfileCommandInput | DeleteFlowCommandInput | DescribeConnectorCommandInput | DescribeConnectorEntityCommandInput | DescribeConnectorProfilesCommandInput | DescribeConnectorsCommandInput | DescribeFlowCommandInput | DescribeFlowExecutionRecordsCommandInput | ListConnectorEntitiesCommandInput | ListConnectorsCommandInput | ListFlowsCommandInput | ListTagsForResourceCommandInput | RegisterConnectorCommandInput | StartFlowCommandInput | StopFlowCommandInput | TagResourceCommandInput | UnregisterConnectorCommandInput | UntagResourceCommandInput | UpdateConnectorProfileCommandInput | UpdateConnectorRegistrationCommandInput | UpdateFlowCommandInput;
38
39
  /**
39
40
  * @public
40
41
  */
41
- export type ServiceOutputTypes = CreateConnectorProfileCommandOutput | CreateFlowCommandOutput | DeleteConnectorProfileCommandOutput | DeleteFlowCommandOutput | DescribeConnectorCommandOutput | DescribeConnectorEntityCommandOutput | DescribeConnectorProfilesCommandOutput | DescribeConnectorsCommandOutput | DescribeFlowCommandOutput | DescribeFlowExecutionRecordsCommandOutput | ListConnectorEntitiesCommandOutput | ListConnectorsCommandOutput | ListFlowsCommandOutput | ListTagsForResourceCommandOutput | RegisterConnectorCommandOutput | StartFlowCommandOutput | StopFlowCommandOutput | TagResourceCommandOutput | UnregisterConnectorCommandOutput | UntagResourceCommandOutput | UpdateConnectorProfileCommandOutput | UpdateConnectorRegistrationCommandOutput | UpdateFlowCommandOutput;
42
+ export type ServiceOutputTypes = CancelFlowExecutionsCommandOutput | CreateConnectorProfileCommandOutput | CreateFlowCommandOutput | DeleteConnectorProfileCommandOutput | DeleteFlowCommandOutput | DescribeConnectorCommandOutput | DescribeConnectorEntityCommandOutput | DescribeConnectorProfilesCommandOutput | DescribeConnectorsCommandOutput | DescribeFlowCommandOutput | DescribeFlowExecutionRecordsCommandOutput | ListConnectorEntitiesCommandOutput | ListConnectorsCommandOutput | ListFlowsCommandOutput | ListTagsForResourceCommandOutput | RegisterConnectorCommandOutput | StartFlowCommandOutput | StopFlowCommandOutput | TagResourceCommandOutput | UnregisterConnectorCommandOutput | UntagResourceCommandOutput | UpdateConnectorProfileCommandOutput | UpdateConnectorRegistrationCommandOutput | UpdateFlowCommandOutput;
42
43
  /**
43
44
  * @public
44
45
  */
@@ -0,0 +1,101 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AppflowClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppflowClient";
5
+ import { CancelFlowExecutionsRequest, CancelFlowExecutionsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link CancelFlowExecutionsCommand}.
10
+ */
11
+ export interface CancelFlowExecutionsCommandInput extends CancelFlowExecutionsRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link CancelFlowExecutionsCommand}.
17
+ */
18
+ export interface CancelFlowExecutionsCommandOutput extends CancelFlowExecutionsResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Cancels active runs for a flow.</p>
23
+ * <p>You can cancel all of the active runs for a flow, or you can cancel specific runs by
24
+ * providing their IDs.</p>
25
+ * <p>You can cancel a flow run only when the run is in progress. You can't cancel a run that
26
+ * has already completed or failed. You also can't cancel a run that's scheduled to occur but
27
+ * hasn't started yet. To prevent a scheduled run, you can deactivate the flow with the
28
+ * <code>StopFlow</code> action.</p>
29
+ * <p>You cannot resume a run after you cancel it.</p>
30
+ * <p>When you send your request, the status for each run becomes <code>CancelStarted</code>.
31
+ * When the cancellation completes, the status becomes <code>Canceled</code>.</p>
32
+ * <note>
33
+ * <p>When you cancel a run, you still incur charges for any data that the run already
34
+ * processed before the cancellation. If the run had already written some data to the flow
35
+ * destination, then that data remains in the destination. If you configured the flow to use a
36
+ * batch API (such as the Salesforce Bulk API 2.0), then the run will finish reading or writing
37
+ * its entire batch of data after the cancellation. For these operations, the data processing
38
+ * charges for Amazon AppFlow apply. For the pricing information, see <a href="http://aws.amazon.com/appflow/pricing/">Amazon AppFlow pricing</a>.</p>
39
+ * </note>
40
+ * @example
41
+ * Use a bare-bones client and the command you need to make an API call.
42
+ * ```javascript
43
+ * import { AppflowClient, CancelFlowExecutionsCommand } from "@aws-sdk/client-appflow"; // ES Modules import
44
+ * // const { AppflowClient, CancelFlowExecutionsCommand } = require("@aws-sdk/client-appflow"); // CommonJS import
45
+ * const client = new AppflowClient(config);
46
+ * const input = { // CancelFlowExecutionsRequest
47
+ * flowName: "STRING_VALUE", // required
48
+ * executionIds: [ // ExecutionIds
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * };
52
+ * const command = new CancelFlowExecutionsCommand(input);
53
+ * const response = await client.send(command);
54
+ * ```
55
+ *
56
+ * @param CancelFlowExecutionsCommandInput - {@link CancelFlowExecutionsCommandInput}
57
+ * @returns {@link CancelFlowExecutionsCommandOutput}
58
+ * @see {@link CancelFlowExecutionsCommandInput} for command's `input` shape.
59
+ * @see {@link CancelFlowExecutionsCommandOutput} for command's `response` shape.
60
+ * @see {@link AppflowClientResolvedConfig | config} for AppflowClient's `config` shape.
61
+ *
62
+ * @throws {@link AccessDeniedException} (client fault)
63
+ * <p>AppFlow/Requester has invalid or missing permissions.</p>
64
+ *
65
+ * @throws {@link InternalServerException} (server fault)
66
+ * <p> An internal service error occurred during the processing of your request. Try again
67
+ * later. </p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p> The resource specified in the request (such as the source or destination connector
71
+ * profile) is not found. </p>
72
+ *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>API calls have exceeded the maximum allowed API request rate per account and per Region.
75
+ * </p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p> The request has invalid or missing parameters. </p>
79
+ *
80
+ *
81
+ */
82
+ export declare class CancelFlowExecutionsCommand extends $Command<CancelFlowExecutionsCommandInput, CancelFlowExecutionsCommandOutput, AppflowClientResolvedConfig> {
83
+ readonly input: CancelFlowExecutionsCommandInput;
84
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
+ /**
86
+ * @public
87
+ */
88
+ constructor(input: CancelFlowExecutionsCommandInput);
89
+ /**
90
+ * @internal
91
+ */
92
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelFlowExecutionsCommandInput, CancelFlowExecutionsCommandOutput>;
93
+ /**
94
+ * @internal
95
+ */
96
+ private serialize;
97
+ /**
98
+ * @internal
99
+ */
100
+ private deserialize;
101
+ }
@@ -113,7 +113,7 @@ export interface CreateConnectorProfileCommandOutput extends CreateConnectorProf
113
113
  * },
114
114
  * oAuth2Properties: { // OAuth2Properties
115
115
  * tokenUrl: "STRING_VALUE", // required
116
- * oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE", // required
116
+ * oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE" || "JWT_BEARER", // required
117
117
  * tokenUrlCustomProperties: { // TokenUrlCustomProperties
118
118
  * "<keys>": "STRING_VALUE",
119
119
  * },
@@ -182,6 +182,8 @@ export interface CreateConnectorProfileCommandOutput extends CreateConnectorProf
182
182
  * redirectUri: "STRING_VALUE",
183
183
  * },
184
184
  * clientCredentialsArn: "STRING_VALUE",
185
+ * oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE" || "JWT_BEARER",
186
+ * jwtToken: "STRING_VALUE",
185
187
  * },
186
188
  * ServiceNow: { // ServiceNowConnectorProfileCredentials
187
189
  * username: "STRING_VALUE", // required
@@ -106,7 +106,7 @@ export interface UpdateConnectorProfileCommandOutput extends UpdateConnectorProf
106
106
  * },
107
107
  * oAuth2Properties: { // OAuth2Properties
108
108
  * tokenUrl: "STRING_VALUE", // required
109
- * oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE", // required
109
+ * oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE" || "JWT_BEARER", // required
110
110
  * tokenUrlCustomProperties: { // TokenUrlCustomProperties
111
111
  * "<keys>": "STRING_VALUE",
112
112
  * },
@@ -175,6 +175,8 @@ export interface UpdateConnectorProfileCommandOutput extends UpdateConnectorProf
175
175
  * redirectUri: "STRING_VALUE",
176
176
  * },
177
177
  * clientCredentialsArn: "STRING_VALUE",
178
+ * oAuth2GrantType: "CLIENT_CREDENTIALS" || "AUTHORIZATION_CODE" || "JWT_BEARER",
179
+ * jwtToken: "STRING_VALUE",
178
180
  * },
179
181
  * ServiceNow: { // ServiceNowConnectorProfileCredentials
180
182
  * username: "STRING_VALUE", // required
@@ -1,3 +1,4 @@
1
+ export * from "./CancelFlowExecutionsCommand";
1
2
  export * from "./CreateConnectorProfileCommand";
2
3
  export * from "./CreateFlowCommand";
3
4
  export * from "./DeleteConnectorProfileCommand";
@@ -204,6 +204,7 @@ export interface OAuth2CustomParameter {
204
204
  export declare const OAuth2GrantType: {
205
205
  readonly AUTHORIZATION_CODE: "AUTHORIZATION_CODE";
206
206
  readonly CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
207
+ readonly JWT_BEARER: "JWT_BEARER";
207
208
  };
208
209
  /**
209
210
  * @public
@@ -293,6 +294,83 @@ export interface BasicAuthCredentials {
293
294
  */
294
295
  password: string | undefined;
295
296
  }
297
+ /**
298
+ * @public
299
+ */
300
+ export interface CancelFlowExecutionsRequest {
301
+ /**
302
+ * <p>The name of a flow with active runs that you want to cancel.</p>
303
+ */
304
+ flowName: string | undefined;
305
+ /**
306
+ * <p>The ID of each active run to cancel. These runs must belong to the flow you specify in
307
+ * your request.</p>
308
+ * <p>If you omit this parameter, your request ends all active runs that belong to the
309
+ * flow.</p>
310
+ */
311
+ executionIds?: string[];
312
+ }
313
+ /**
314
+ * @public
315
+ */
316
+ export interface CancelFlowExecutionsResponse {
317
+ /**
318
+ * <p>The IDs of runs that Amazon AppFlow couldn't cancel. These runs might be ineligible
319
+ * for canceling because they haven't started yet or have already completed.</p>
320
+ */
321
+ invalidExecutions?: string[];
322
+ }
323
+ /**
324
+ * @public
325
+ * <p> An internal service error occurred during the processing of your request. Try again
326
+ * later. </p>
327
+ */
328
+ export declare class InternalServerException extends __BaseException {
329
+ readonly name: "InternalServerException";
330
+ readonly $fault: "server";
331
+ /**
332
+ * @internal
333
+ */
334
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
335
+ }
336
+ /**
337
+ * @public
338
+ * <p> The resource specified in the request (such as the source or destination connector
339
+ * profile) is not found. </p>
340
+ */
341
+ export declare class ResourceNotFoundException extends __BaseException {
342
+ readonly name: "ResourceNotFoundException";
343
+ readonly $fault: "client";
344
+ /**
345
+ * @internal
346
+ */
347
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
348
+ }
349
+ /**
350
+ * @public
351
+ * <p>API calls have exceeded the maximum allowed API request rate per account and per Region.
352
+ * </p>
353
+ */
354
+ export declare class ThrottlingException extends __BaseException {
355
+ readonly name: "ThrottlingException";
356
+ readonly $fault: "client";
357
+ /**
358
+ * @internal
359
+ */
360
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
361
+ }
362
+ /**
363
+ * @public
364
+ * <p> The request has invalid or missing parameters. </p>
365
+ */
366
+ export declare class ValidationException extends __BaseException {
367
+ readonly name: "ValidationException";
368
+ readonly $fault: "client";
369
+ /**
370
+ * @internal
371
+ */
372
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
373
+ }
296
374
  /**
297
375
  * @public
298
376
  * @enum
@@ -442,6 +520,34 @@ export interface SalesforceMetadata {
442
520
  * data to or from Salesforce.</p>
443
521
  */
444
522
  dataTransferApis?: (SalesforceDataTransferApi | string)[];
523
+ /**
524
+ * <p>The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access
525
+ * token from Salesforce. Amazon AppFlow requires an access token each time it
526
+ * attempts to access your Salesforce records.</p>
527
+ * <dl>
528
+ * <dt>AUTHORIZATION_CODE</dt>
529
+ * <dd>
530
+ * <p>Amazon AppFlow passes an authorization code when it requests the access token
531
+ * from Salesforce. Amazon AppFlow receives the authorization code from Salesforce
532
+ * after you log in to your Salesforce account and authorize Amazon AppFlow to access
533
+ * your records.</p>
534
+ * </dd>
535
+ * <dt>CLIENT_CREDENTIALS</dt>
536
+ * <dd>
537
+ * <p>Amazon AppFlow passes client credentials (a client ID and client secret) when
538
+ * it requests the access token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce account.</p>
539
+ * </dd>
540
+ * <dt>JWT_BEARER</dt>
541
+ * <dd>
542
+ * <p>Amazon AppFlow passes a JSON web token (JWT) when it requests the access token
543
+ * from Salesforce. You provide the JWT to Amazon AppFlow when you define the
544
+ * connection to your Salesforce account. When you use this grant type, you don't need to
545
+ * log in to your Salesforce account to authorize Amazon AppFlow to access your
546
+ * records.</p>
547
+ * </dd>
548
+ * </dl>
549
+ */
550
+ oauth2GrantTypesSupported?: (OAuth2GrantType | string)[];
445
551
  }
446
552
  /**
447
553
  * @public
@@ -2443,6 +2549,40 @@ export interface SalesforceConnectorProfileCredentials {
2443
2549
  * app. </p>
2444
2550
  */
2445
2551
  clientCredentialsArn?: string;
2552
+ /**
2553
+ * <p>Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an
2554
+ * access token from Salesforce. Amazon AppFlow requires an access token each time it
2555
+ * attempts to access your Salesforce records.</p>
2556
+ * <p>You can specify one of the following values:</p>
2557
+ * <dl>
2558
+ * <dt>AUTHORIZATION_CODE</dt>
2559
+ * <dd>
2560
+ * <p>Amazon AppFlow passes an authorization code when it requests the access token
2561
+ * from Salesforce. Amazon AppFlow receives the authorization code from Salesforce
2562
+ * after you log in to your Salesforce account and authorize Amazon AppFlow to access
2563
+ * your records.</p>
2564
+ * </dd>
2565
+ * <dt>CLIENT_CREDENTIALS</dt>
2566
+ * <dd>
2567
+ * <p>Amazon AppFlow passes client credentials (a client ID and client secret) when
2568
+ * it requests the access token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce account.</p>
2569
+ * </dd>
2570
+ * <dt>JWT_BEARER</dt>
2571
+ * <dd>
2572
+ * <p>Amazon AppFlow passes a JSON web token (JWT) when it requests the access token
2573
+ * from Salesforce. You provide the JWT to Amazon AppFlow when you define the
2574
+ * connection to your Salesforce account. When you use this grant type, you don't need to
2575
+ * log in to your Salesforce account to authorize Amazon AppFlow to access your
2576
+ * records.</p>
2577
+ * </dd>
2578
+ * </dl>
2579
+ */
2580
+ oAuth2GrantType?: OAuth2GrantType | string;
2581
+ /**
2582
+ * <p>A JSON web token (JWT) that authorizes Amazon AppFlow to access your Salesforce
2583
+ * records.</p>
2584
+ */
2585
+ jwtToken?: string;
2446
2586
  }
2447
2587
  /**
2448
2588
  * @public
@@ -2765,19 +2905,6 @@ export interface CreateConnectorProfileResponse {
2765
2905
  */
2766
2906
  connectorProfileArn?: string;
2767
2907
  }
2768
- /**
2769
- * @public
2770
- * <p> An internal service error occurred during the processing of your request. Try again
2771
- * later. </p>
2772
- */
2773
- export declare class InternalServerException extends __BaseException {
2774
- readonly name: "InternalServerException";
2775
- readonly $fault: "server";
2776
- /**
2777
- * @internal
2778
- */
2779
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
2780
- }
2781
2908
  /**
2782
2909
  * @public
2783
2910
  * <p> The request would cause a service quota (such as the number of flows) to be exceeded.
@@ -2791,18 +2918,6 @@ export declare class ServiceQuotaExceededException extends __BaseException {
2791
2918
  */
2792
2919
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
2793
2920
  }
2794
- /**
2795
- * @public
2796
- * <p> The request has invalid or missing parameters. </p>
2797
- */
2798
- export declare class ValidationException extends __BaseException {
2799
- readonly name: "ValidationException";
2800
- readonly $fault: "client";
2801
- /**
2802
- * @internal
2803
- */
2804
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
2805
- }
2806
2921
  /**
2807
2922
  * @public
2808
2923
  * <p> The settings that determine how Amazon AppFlow handles an error when placing data in
@@ -4070,9 +4185,9 @@ export interface CreateFlowRequest {
4070
4185
  metadataCatalogConfig?: MetadataCatalogConfig;
4071
4186
  /**
4072
4187
  * <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
4073
- * <code>CreateFlow</code> request completes only once. You choose the value to
4074
- * pass. For example, if you don't receive a response from your request, you can safely retry the
4075
- * request with the same <code>clientToken</code> parameter value.</p>
4188
+ * <code>CreateFlow</code> request completes only once. You choose the value to pass. For
4189
+ * example, if you don't receive a response from your request, you can safely retry the request
4190
+ * with the same <code>clientToken</code> parameter value.</p>
4076
4191
  * <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
4077
4192
  * using inserts a value for you. This way, the SDK can safely retry requests multiple times
4078
4193
  * after a network error. You must provide your own value for other use cases.</p>
@@ -4111,19 +4226,6 @@ export interface CreateFlowResponse {
4111
4226
  */
4112
4227
  flowStatus?: FlowStatus | string;
4113
4228
  }
4114
- /**
4115
- * @public
4116
- * <p> The resource specified in the request (such as the source or destination connector
4117
- * profile) is not found. </p>
4118
- */
4119
- export declare class ResourceNotFoundException extends __BaseException {
4120
- readonly name: "ResourceNotFoundException";
4121
- readonly $fault: "client";
4122
- /**
4123
- * @internal
4124
- */
4125
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
4126
- }
4127
4229
  /**
4128
4230
  * @public
4129
4231
  */
@@ -4315,6 +4417,8 @@ export interface DescribeFlowRequest {
4315
4417
  * @enum
4316
4418
  */
4317
4419
  export declare const ExecutionStatus: {
4420
+ readonly CANCELED: "Canceled";
4421
+ readonly CANCELSTARTED: "CancelStarted";
4318
4422
  readonly ERROR: "Error";
4319
4423
  readonly INPROGRESS: "InProgress";
4320
4424
  readonly SUCCESSFUL: "Successful";
@@ -4838,8 +4942,8 @@ export interface RegisterConnectorRequest {
4838
4942
  connectorProvisioningConfig?: ConnectorProvisioningConfig;
4839
4943
  /**
4840
4944
  * <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
4841
- * <code>RegisterConnector</code> request completes only once. You choose the value to
4842
- * pass. For example, if you don't receive a response from your request, you can safely retry the
4945
+ * <code>RegisterConnector</code> request completes only once. You choose the value to pass.
4946
+ * For example, if you don't receive a response from your request, you can safely retry the
4843
4947
  * request with the same <code>clientToken</code> parameter value.</p>
4844
4948
  * <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
4845
4949
  * using inserts a value for you. This way, the SDK can safely retry requests multiple times
@@ -4859,19 +4963,6 @@ export interface RegisterConnectorResponse {
4859
4963
  */
4860
4964
  connectorArn?: string;
4861
4965
  }
4862
- /**
4863
- * @public
4864
- * <p>API calls have exceeded the maximum allowed API request rate per account and per Region.
4865
- * </p>
4866
- */
4867
- export declare class ThrottlingException extends __BaseException {
4868
- readonly name: "ThrottlingException";
4869
- readonly $fault: "client";
4870
- /**
4871
- * @internal
4872
- */
4873
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
4874
- }
4875
4966
  /**
4876
4967
  * @public
4877
4968
  */
@@ -4883,9 +4974,9 @@ export interface StartFlowRequest {
4883
4974
  flowName: string | undefined;
4884
4975
  /**
4885
4976
  * <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
4886
- * <code>StartFlow</code> request completes only once. You choose the value to
4887
- * pass. For example, if you don't receive a response from your request, you can safely retry the
4888
- * request with the same <code>clientToken</code> parameter value.</p>
4977
+ * <code>StartFlow</code> request completes only once. You choose the value to pass. For
4978
+ * example, if you don't receive a response from your request, you can safely retry the request
4979
+ * with the same <code>clientToken</code> parameter value.</p>
4889
4980
  * <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
4890
4981
  * using inserts a value for you. This way, the SDK can safely retry requests multiple times
4891
4982
  * after a network error. You must provide your own value for other use cases.</p>
@@ -5026,7 +5117,7 @@ export interface UpdateConnectorProfileRequest {
5026
5117
  connectorProfileConfig: ConnectorProfileConfig | undefined;
5027
5118
  /**
5028
5119
  * <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
5029
- * <code>UpdateConnectorProfile</code> request completes only once. You choose the value to
5120
+ * <code>UpdateConnectorProfile</code> request completes only once. You choose the value to
5030
5121
  * pass. For example, if you don't receive a response from your request, you can safely retry the
5031
5122
  * request with the same <code>clientToken</code> parameter value.</p>
5032
5123
  * <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
@@ -5066,9 +5157,9 @@ export interface UpdateConnectorRegistrationRequest {
5066
5157
  connectorProvisioningConfig?: ConnectorProvisioningConfig;
5067
5158
  /**
5068
5159
  * <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
5069
- * <code>UpdateConnectorRegistration</code> request completes only once. You choose the value to
5070
- * pass. For example, if you don't receive a response from your request, you can safely retry the
5071
- * request with the same <code>clientToken</code> parameter value.</p>
5160
+ * <code>UpdateConnectorRegistration</code> request completes only once. You choose the value
5161
+ * to pass. For example, if you don't receive a response from your request, you can safely retry
5162
+ * the request with the same <code>clientToken</code> parameter value.</p>
5072
5163
  * <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
5073
5164
  * using inserts a value for you. This way, the SDK can safely retry requests multiple times
5074
5165
  * after a network error. You must provide your own value for other use cases.</p>
@@ -5127,9 +5218,9 @@ export interface UpdateFlowRequest {
5127
5218
  metadataCatalogConfig?: MetadataCatalogConfig;
5128
5219
  /**
5129
5220
  * <p>The <code>clientToken</code> parameter is an idempotency token. It ensures that your
5130
- * <code>UpdateFlow</code> request completes only once. You choose the value to
5131
- * pass. For example, if you don't receive a response from your request, you can safely retry the
5132
- * request with the same <code>clientToken</code> parameter value.</p>
5221
+ * <code>UpdateFlow</code> request completes only once. You choose the value to pass. For
5222
+ * example, if you don't receive a response from your request, you can safely retry the request
5223
+ * with the same <code>clientToken</code> parameter value.</p>
5133
5224
  * <p>If you omit a <code>clientToken</code> value, the Amazon Web Services SDK that you are
5134
5225
  * using inserts a value for you. This way, the SDK can safely retry requests multiple times
5135
5226
  * after a network error. You must provide your own value for other use cases.</p>
@@ -1,5 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
+ import { CancelFlowExecutionsCommandInput, CancelFlowExecutionsCommandOutput } from "../commands/CancelFlowExecutionsCommand";
3
4
  import { CreateConnectorProfileCommandInput, CreateConnectorProfileCommandOutput } from "../commands/CreateConnectorProfileCommand";
4
5
  import { CreateFlowCommandInput, CreateFlowCommandOutput } from "../commands/CreateFlowCommand";
5
6
  import { DeleteConnectorProfileCommandInput, DeleteConnectorProfileCommandOutput } from "../commands/DeleteConnectorProfileCommand";
@@ -23,6 +24,10 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../comman
23
24
  import { UpdateConnectorProfileCommandInput, UpdateConnectorProfileCommandOutput } from "../commands/UpdateConnectorProfileCommand";
24
25
  import { UpdateConnectorRegistrationCommandInput, UpdateConnectorRegistrationCommandOutput } from "../commands/UpdateConnectorRegistrationCommand";
25
26
  import { UpdateFlowCommandInput, UpdateFlowCommandOutput } from "../commands/UpdateFlowCommand";
27
+ /**
28
+ * serializeAws_restJson1CancelFlowExecutionsCommand
29
+ */
30
+ export declare const se_CancelFlowExecutionsCommand: (input: CancelFlowExecutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
26
31
  /**
27
32
  * serializeAws_restJson1CreateConnectorProfileCommand
28
33
  */
@@ -115,6 +120,10 @@ export declare const se_UpdateConnectorRegistrationCommand: (input: UpdateConnec
115
120
  * serializeAws_restJson1UpdateFlowCommand
116
121
  */
117
122
  export declare const se_UpdateFlowCommand: (input: UpdateFlowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
123
+ /**
124
+ * deserializeAws_restJson1CancelFlowExecutionsCommand
125
+ */
126
+ export declare const de_CancelFlowExecutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CancelFlowExecutionsCommandOutput>;
118
127
  /**
119
128
  * deserializeAws_restJson1CreateConnectorProfileCommand
120
129
  */
@@ -1,5 +1,9 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AppflowClient } from "./AppflowClient";
3
+ import {
4
+ CancelFlowExecutionsCommandInput,
5
+ CancelFlowExecutionsCommandOutput,
6
+ } from "./commands/CancelFlowExecutionsCommand";
3
7
  import {
4
8
  CreateConnectorProfileCommandInput,
5
9
  CreateConnectorProfileCommandOutput,
@@ -93,6 +97,19 @@ import {
93
97
  UpdateFlowCommandOutput,
94
98
  } from "./commands/UpdateFlowCommand";
95
99
  export interface Appflow {
100
+ cancelFlowExecutions(
101
+ args: CancelFlowExecutionsCommandInput,
102
+ options?: __HttpHandlerOptions
103
+ ): Promise<CancelFlowExecutionsCommandOutput>;
104
+ cancelFlowExecutions(
105
+ args: CancelFlowExecutionsCommandInput,
106
+ cb: (err: any, data?: CancelFlowExecutionsCommandOutput) => void
107
+ ): void;
108
+ cancelFlowExecutions(
109
+ args: CancelFlowExecutionsCommandInput,
110
+ options: __HttpHandlerOptions,
111
+ cb: (err: any, data?: CancelFlowExecutionsCommandOutput) => void
112
+ ): void;
96
113
  createConnectorProfile(
97
114
  args: CreateConnectorProfileCommandInput,
98
115
  options?: __HttpHandlerOptions