@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.
package/README.md CHANGED
@@ -60,16 +60,16 @@ using your favorite package manager:
60
60
 
61
61
  The AWS SDK is modulized by clients and commands.
62
62
  To send a request, you only need to import the `AppflowClient` and
63
- the commands you need, for example `CreateConnectorProfileCommand`:
63
+ the commands you need, for example `CancelFlowExecutionsCommand`:
64
64
 
65
65
  ```js
66
66
  // ES5 example
67
- const { AppflowClient, CreateConnectorProfileCommand } = require("@aws-sdk/client-appflow");
67
+ const { AppflowClient, CancelFlowExecutionsCommand } = require("@aws-sdk/client-appflow");
68
68
  ```
69
69
 
70
70
  ```ts
71
71
  // ES6+ example
72
- import { AppflowClient, CreateConnectorProfileCommand } from "@aws-sdk/client-appflow";
72
+ import { AppflowClient, CancelFlowExecutionsCommand } from "@aws-sdk/client-appflow";
73
73
  ```
74
74
 
75
75
  ### Usage
@@ -88,7 +88,7 @@ const client = new AppflowClient({ region: "REGION" });
88
88
  const params = {
89
89
  /** input parameters */
90
90
  };
91
- const command = new CreateConnectorProfileCommand(params);
91
+ const command = new CancelFlowExecutionsCommand(params);
92
92
  ```
93
93
 
94
94
  #### Async/await
@@ -167,7 +167,7 @@ const client = new AWS.Appflow({ region: "REGION" });
167
167
 
168
168
  // async/await.
169
169
  try {
170
- const data = await client.createConnectorProfile(params);
170
+ const data = await client.cancelFlowExecutions(params);
171
171
  // process data.
172
172
  } catch (error) {
173
173
  // error handling.
@@ -175,7 +175,7 @@ try {
175
175
 
176
176
  // Promises.
177
177
  client
178
- .createConnectorProfile(params)
178
+ .cancelFlowExecutions(params)
179
179
  .then((data) => {
180
180
  // process data.
181
181
  })
@@ -184,7 +184,7 @@ client
184
184
  });
185
185
 
186
186
  // callbacks.
187
- client.createConnectorProfile(params, (err, data) => {
187
+ client.cancelFlowExecutions(params, (err, data) => {
188
188
  // process err and data.
189
189
  });
190
190
  ```
@@ -240,6 +240,14 @@ see LICENSE for more information.
240
240
 
241
241
  ## Client Commands (Operations List)
242
242
 
243
+ <details>
244
+ <summary>
245
+ CancelFlowExecutions
246
+ </summary>
247
+
248
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appflow/classes/cancelflowexecutionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appflow/interfaces/cancelflowexecutionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-appflow/interfaces/cancelflowexecutionscommandoutput.html)
249
+
250
+ </details>
243
251
  <details>
244
252
  <summary>
245
253
  CreateConnectorProfile
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Appflow = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const AppflowClient_1 = require("./AppflowClient");
6
+ const CancelFlowExecutionsCommand_1 = require("./commands/CancelFlowExecutionsCommand");
6
7
  const CreateConnectorProfileCommand_1 = require("./commands/CreateConnectorProfileCommand");
7
8
  const CreateFlowCommand_1 = require("./commands/CreateFlowCommand");
8
9
  const DeleteConnectorProfileCommand_1 = require("./commands/DeleteConnectorProfileCommand");
@@ -27,6 +28,7 @@ const UpdateConnectorProfileCommand_1 = require("./commands/UpdateConnectorProfi
27
28
  const UpdateConnectorRegistrationCommand_1 = require("./commands/UpdateConnectorRegistrationCommand");
28
29
  const UpdateFlowCommand_1 = require("./commands/UpdateFlowCommand");
29
30
  const commands = {
31
+ CancelFlowExecutionsCommand: CancelFlowExecutionsCommand_1.CancelFlowExecutionsCommand,
30
32
  CreateConnectorProfileCommand: CreateConnectorProfileCommand_1.CreateConnectorProfileCommand,
31
33
  CreateFlowCommand: CreateFlowCommand_1.CreateFlowCommand,
32
34
  DeleteConnectorProfileCommand: DeleteConnectorProfileCommand_1.DeleteConnectorProfileCommand,
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelFlowExecutionsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CancelFlowExecutionsCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CancelFlowExecutionsCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "AppflowClient";
27
+ const commandName = "CancelFlowExecutionsCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_CancelFlowExecutionsCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_CancelFlowExecutionsCommand)(output, context);
43
+ }
44
+ }
45
+ exports.CancelFlowExecutionsCommand = CancelFlowExecutionsCommand;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CancelFlowExecutionsCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CreateConnectorProfileCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateFlowCommand"), exports);
6
7
  tslib_1.__exportStar(require("./DeleteConnectorProfileCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExecutionStatus = exports.ResourceNotFoundException = exports.FlowStatus = exports.DataPullMode = exports.TaskType = exports.OperatorPropertiesKeys = exports.S3InputFileType = exports.PrefixType = exports.PrefixFormat = exports.PathPrefix = exports.FileType = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConnectorServerException = exports.PrivateConnectionProvisioningStatus = exports.PrivateConnectionProvisioningFailureCause = exports.ZendeskConnectorOperator = exports.VeevaConnectorOperator = exports.TrendmicroConnectorOperator = exports.SlackConnectorOperator = exports.SingularConnectorOperator = exports.ServiceNowConnectorOperator = exports.SAPODataConnectorOperator = exports.SalesforceConnectorOperator = exports.S3ConnectorOperator = exports.PardotConnectorOperator = exports.MarketoConnectorOperator = exports.InforNexusConnectorOperator = exports.GoogleAnalyticsConnectorOperator = exports.DynatraceConnectorOperator = exports.DatadogConnectorOperator = exports.Operator = exports.WriteOperationType = exports.TriggerType = exports.ScheduleFrequencyType = exports.Operators = exports.ConnectorType = exports.ConnectorProvisioningType = exports.SalesforceDataTransferApi = exports.ConnectorAuthenticationException = exports.ConnectionMode = exports.ConflictException = exports.CatalogType = exports.AuthenticationType = exports.OAuth2GrantType = exports.OAuth2CustomPropType = exports.AmplitudeConnectorOperator = exports.AggregationType = exports.AccessDeniedException = void 0;
4
- exports.UpdateConnectorProfileRequestFilterSensitiveLog = exports.CreateConnectorProfileRequestFilterSensitiveLog = exports.ConnectorProfileConfigFilterSensitiveLog = exports.ConnectorProfileCredentialsFilterSensitiveLog = exports.ZendeskConnectorProfileCredentialsFilterSensitiveLog = exports.VeevaConnectorProfileCredentialsFilterSensitiveLog = exports.TrendmicroConnectorProfileCredentialsFilterSensitiveLog = exports.SnowflakeConnectorProfileCredentialsFilterSensitiveLog = exports.SlackConnectorProfileCredentialsFilterSensitiveLog = exports.SingularConnectorProfileCredentialsFilterSensitiveLog = exports.ServiceNowConnectorProfileCredentialsFilterSensitiveLog = exports.SAPODataConnectorProfileCredentialsFilterSensitiveLog = exports.OAuthCredentialsFilterSensitiveLog = exports.SalesforceConnectorProfileCredentialsFilterSensitiveLog = exports.RedshiftConnectorProfileCredentialsFilterSensitiveLog = exports.PardotConnectorProfileCredentialsFilterSensitiveLog = exports.MarketoConnectorProfileCredentialsFilterSensitiveLog = exports.InforNexusConnectorProfileCredentialsFilterSensitiveLog = exports.HoneycodeConnectorProfileCredentialsFilterSensitiveLog = exports.GoogleAnalyticsConnectorProfileCredentialsFilterSensitiveLog = exports.DatadogConnectorProfileCredentialsFilterSensitiveLog = exports.CustomConnectorProfileCredentialsFilterSensitiveLog = exports.OAuth2CredentialsFilterSensitiveLog = exports.CustomAuthCredentialsFilterSensitiveLog = exports.BasicAuthCredentialsFilterSensitiveLog = exports.ApiKeyCredentialsFilterSensitiveLog = exports.AmplitudeConnectorProfileCredentialsFilterSensitiveLog = exports.UnsupportedOperationException = exports.ThrottlingException = void 0;
3
+ exports.FlowStatus = exports.DataPullMode = exports.TaskType = exports.OperatorPropertiesKeys = exports.S3InputFileType = exports.PrefixType = exports.PrefixFormat = exports.PathPrefix = exports.FileType = exports.ServiceQuotaExceededException = exports.ConnectorServerException = exports.PrivateConnectionProvisioningStatus = exports.PrivateConnectionProvisioningFailureCause = exports.ZendeskConnectorOperator = exports.VeevaConnectorOperator = exports.TrendmicroConnectorOperator = exports.SlackConnectorOperator = exports.SingularConnectorOperator = exports.ServiceNowConnectorOperator = exports.SAPODataConnectorOperator = exports.SalesforceConnectorOperator = exports.S3ConnectorOperator = exports.PardotConnectorOperator = exports.MarketoConnectorOperator = exports.InforNexusConnectorOperator = exports.GoogleAnalyticsConnectorOperator = exports.DynatraceConnectorOperator = exports.DatadogConnectorOperator = exports.Operator = exports.WriteOperationType = exports.TriggerType = exports.ScheduleFrequencyType = exports.Operators = exports.ConnectorType = exports.ConnectorProvisioningType = exports.SalesforceDataTransferApi = exports.ConnectorAuthenticationException = exports.ConnectionMode = exports.ConflictException = exports.CatalogType = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AuthenticationType = exports.OAuth2GrantType = exports.OAuth2CustomPropType = exports.AmplitudeConnectorOperator = exports.AggregationType = exports.AccessDeniedException = void 0;
4
+ exports.UpdateConnectorProfileRequestFilterSensitiveLog = exports.CreateConnectorProfileRequestFilterSensitiveLog = exports.ConnectorProfileConfigFilterSensitiveLog = exports.ConnectorProfileCredentialsFilterSensitiveLog = exports.ZendeskConnectorProfileCredentialsFilterSensitiveLog = exports.VeevaConnectorProfileCredentialsFilterSensitiveLog = exports.TrendmicroConnectorProfileCredentialsFilterSensitiveLog = exports.SnowflakeConnectorProfileCredentialsFilterSensitiveLog = exports.SlackConnectorProfileCredentialsFilterSensitiveLog = exports.SingularConnectorProfileCredentialsFilterSensitiveLog = exports.ServiceNowConnectorProfileCredentialsFilterSensitiveLog = exports.SAPODataConnectorProfileCredentialsFilterSensitiveLog = exports.OAuthCredentialsFilterSensitiveLog = exports.SalesforceConnectorProfileCredentialsFilterSensitiveLog = exports.RedshiftConnectorProfileCredentialsFilterSensitiveLog = exports.PardotConnectorProfileCredentialsFilterSensitiveLog = exports.MarketoConnectorProfileCredentialsFilterSensitiveLog = exports.InforNexusConnectorProfileCredentialsFilterSensitiveLog = exports.HoneycodeConnectorProfileCredentialsFilterSensitiveLog = exports.GoogleAnalyticsConnectorProfileCredentialsFilterSensitiveLog = exports.DatadogConnectorProfileCredentialsFilterSensitiveLog = exports.CustomConnectorProfileCredentialsFilterSensitiveLog = exports.OAuth2CredentialsFilterSensitiveLog = exports.CustomAuthCredentialsFilterSensitiveLog = exports.BasicAuthCredentialsFilterSensitiveLog = exports.ApiKeyCredentialsFilterSensitiveLog = exports.AmplitudeConnectorProfileCredentialsFilterSensitiveLog = exports.UnsupportedOperationException = exports.ExecutionStatus = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const AppflowServiceException_1 = require("./AppflowServiceException");
7
7
  class AccessDeniedException extends AppflowServiceException_1.AppflowServiceException {
@@ -31,6 +31,7 @@ exports.OAuth2CustomPropType = {
31
31
  exports.OAuth2GrantType = {
32
32
  AUTHORIZATION_CODE: "AUTHORIZATION_CODE",
33
33
  CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS",
34
+ JWT_BEARER: "JWT_BEARER",
34
35
  };
35
36
  exports.AuthenticationType = {
36
37
  APIKEY: "APIKEY",
@@ -38,6 +39,58 @@ exports.AuthenticationType = {
38
39
  CUSTOM: "CUSTOM",
39
40
  OAUTH2: "OAUTH2",
40
41
  };
42
+ class InternalServerException extends AppflowServiceException_1.AppflowServiceException {
43
+ constructor(opts) {
44
+ super({
45
+ name: "InternalServerException",
46
+ $fault: "server",
47
+ ...opts,
48
+ });
49
+ this.name = "InternalServerException";
50
+ this.$fault = "server";
51
+ Object.setPrototypeOf(this, InternalServerException.prototype);
52
+ }
53
+ }
54
+ exports.InternalServerException = InternalServerException;
55
+ class ResourceNotFoundException extends AppflowServiceException_1.AppflowServiceException {
56
+ constructor(opts) {
57
+ super({
58
+ name: "ResourceNotFoundException",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ this.name = "ResourceNotFoundException";
63
+ this.$fault = "client";
64
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
65
+ }
66
+ }
67
+ exports.ResourceNotFoundException = ResourceNotFoundException;
68
+ class ThrottlingException extends AppflowServiceException_1.AppflowServiceException {
69
+ constructor(opts) {
70
+ super({
71
+ name: "ThrottlingException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ this.name = "ThrottlingException";
76
+ this.$fault = "client";
77
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
78
+ }
79
+ }
80
+ exports.ThrottlingException = ThrottlingException;
81
+ class ValidationException extends AppflowServiceException_1.AppflowServiceException {
82
+ constructor(opts) {
83
+ super({
84
+ name: "ValidationException",
85
+ $fault: "client",
86
+ ...opts,
87
+ });
88
+ this.name = "ValidationException";
89
+ this.$fault = "client";
90
+ Object.setPrototypeOf(this, ValidationException.prototype);
91
+ }
92
+ }
93
+ exports.ValidationException = ValidationException;
41
94
  exports.CatalogType = {
42
95
  GLUE: "GLUE",
43
96
  };
@@ -467,19 +520,6 @@ class ConnectorServerException extends AppflowServiceException_1.AppflowServiceE
467
520
  }
468
521
  }
469
522
  exports.ConnectorServerException = ConnectorServerException;
470
- class InternalServerException extends AppflowServiceException_1.AppflowServiceException {
471
- constructor(opts) {
472
- super({
473
- name: "InternalServerException",
474
- $fault: "server",
475
- ...opts,
476
- });
477
- this.name = "InternalServerException";
478
- this.$fault = "server";
479
- Object.setPrototypeOf(this, InternalServerException.prototype);
480
- }
481
- }
482
- exports.InternalServerException = InternalServerException;
483
523
  class ServiceQuotaExceededException extends AppflowServiceException_1.AppflowServiceException {
484
524
  constructor(opts) {
485
525
  super({
@@ -493,19 +533,6 @@ class ServiceQuotaExceededException extends AppflowServiceException_1.AppflowSer
493
533
  }
494
534
  }
495
535
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
496
- class ValidationException extends AppflowServiceException_1.AppflowServiceException {
497
- constructor(opts) {
498
- super({
499
- name: "ValidationException",
500
- $fault: "client",
501
- ...opts,
502
- });
503
- this.name = "ValidationException";
504
- this.$fault = "client";
505
- Object.setPrototypeOf(this, ValidationException.prototype);
506
- }
507
- }
508
- exports.ValidationException = ValidationException;
509
536
  exports.FileType = {
510
537
  CSV: "CSV",
511
538
  JSON: "JSON",
@@ -574,37 +601,13 @@ exports.FlowStatus = {
574
601
  ERRORED: "Errored",
575
602
  SUSPENDED: "Suspended",
576
603
  };
577
- class ResourceNotFoundException extends AppflowServiceException_1.AppflowServiceException {
578
- constructor(opts) {
579
- super({
580
- name: "ResourceNotFoundException",
581
- $fault: "client",
582
- ...opts,
583
- });
584
- this.name = "ResourceNotFoundException";
585
- this.$fault = "client";
586
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
587
- }
588
- }
589
- exports.ResourceNotFoundException = ResourceNotFoundException;
590
604
  exports.ExecutionStatus = {
605
+ CANCELED: "Canceled",
606
+ CANCELSTARTED: "CancelStarted",
591
607
  ERROR: "Error",
592
608
  INPROGRESS: "InProgress",
593
609
  SUCCESSFUL: "Successful",
594
610
  };
595
- class ThrottlingException extends AppflowServiceException_1.AppflowServiceException {
596
- constructor(opts) {
597
- super({
598
- name: "ThrottlingException",
599
- $fault: "client",
600
- ...opts,
601
- });
602
- this.name = "ThrottlingException";
603
- this.$fault = "client";
604
- Object.setPrototypeOf(this, ThrottlingException.prototype);
605
- }
606
- }
607
- exports.ThrottlingException = ThrottlingException;
608
611
  class UnsupportedOperationException extends AppflowServiceException_1.AppflowServiceException {
609
612
  constructor(opts) {
610
613
  super({
@@ -696,6 +699,7 @@ const SalesforceConnectorProfileCredentialsFilterSensitiveLog = (obj) => ({
696
699
  ...obj,
697
700
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
698
701
  ...(obj.clientCredentialsArn && { clientCredentialsArn: smithy_client_1.SENSITIVE_STRING }),
702
+ ...(obj.jwtToken && { jwtToken: smithy_client_1.SENSITIVE_STRING }),
699
703
  });
700
704
  exports.SalesforceConnectorProfileCredentialsFilterSensitiveLog = SalesforceConnectorProfileCredentialsFilterSensitiveLog;
701
705
  const OAuthCredentialsFilterSensitiveLog = (obj) => ({
@@ -1,11 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateFlowCommand = exports.de_UpdateConnectorRegistrationCommand = exports.de_UpdateConnectorProfileCommand = exports.de_UntagResourceCommand = exports.de_UnregisterConnectorCommand = exports.de_TagResourceCommand = exports.de_StopFlowCommand = exports.de_StartFlowCommand = exports.de_RegisterConnectorCommand = exports.de_ListTagsForResourceCommand = exports.de_ListFlowsCommand = exports.de_ListConnectorsCommand = exports.de_ListConnectorEntitiesCommand = exports.de_DescribeFlowExecutionRecordsCommand = exports.de_DescribeFlowCommand = exports.de_DescribeConnectorsCommand = exports.de_DescribeConnectorProfilesCommand = exports.de_DescribeConnectorEntityCommand = exports.de_DescribeConnectorCommand = exports.de_DeleteFlowCommand = exports.de_DeleteConnectorProfileCommand = exports.de_CreateFlowCommand = exports.de_CreateConnectorProfileCommand = exports.se_UpdateFlowCommand = exports.se_UpdateConnectorRegistrationCommand = exports.se_UpdateConnectorProfileCommand = exports.se_UntagResourceCommand = exports.se_UnregisterConnectorCommand = exports.se_TagResourceCommand = exports.se_StopFlowCommand = exports.se_StartFlowCommand = exports.se_RegisterConnectorCommand = exports.se_ListTagsForResourceCommand = exports.se_ListFlowsCommand = exports.se_ListConnectorsCommand = exports.se_ListConnectorEntitiesCommand = exports.se_DescribeFlowExecutionRecordsCommand = exports.se_DescribeFlowCommand = exports.se_DescribeConnectorsCommand = exports.se_DescribeConnectorProfilesCommand = exports.se_DescribeConnectorEntityCommand = exports.se_DescribeConnectorCommand = exports.se_DeleteFlowCommand = exports.se_DeleteConnectorProfileCommand = exports.se_CreateFlowCommand = exports.se_CreateConnectorProfileCommand = void 0;
3
+ exports.de_UpdateFlowCommand = exports.de_UpdateConnectorRegistrationCommand = exports.de_UpdateConnectorProfileCommand = exports.de_UntagResourceCommand = exports.de_UnregisterConnectorCommand = exports.de_TagResourceCommand = exports.de_StopFlowCommand = exports.de_StartFlowCommand = exports.de_RegisterConnectorCommand = exports.de_ListTagsForResourceCommand = exports.de_ListFlowsCommand = exports.de_ListConnectorsCommand = exports.de_ListConnectorEntitiesCommand = exports.de_DescribeFlowExecutionRecordsCommand = exports.de_DescribeFlowCommand = exports.de_DescribeConnectorsCommand = exports.de_DescribeConnectorProfilesCommand = exports.de_DescribeConnectorEntityCommand = exports.de_DescribeConnectorCommand = exports.de_DeleteFlowCommand = exports.de_DeleteConnectorProfileCommand = exports.de_CreateFlowCommand = exports.de_CreateConnectorProfileCommand = exports.de_CancelFlowExecutionsCommand = exports.se_UpdateFlowCommand = exports.se_UpdateConnectorRegistrationCommand = exports.se_UpdateConnectorProfileCommand = exports.se_UntagResourceCommand = exports.se_UnregisterConnectorCommand = exports.se_TagResourceCommand = exports.se_StopFlowCommand = exports.se_StartFlowCommand = exports.se_RegisterConnectorCommand = exports.se_ListTagsForResourceCommand = exports.se_ListFlowsCommand = exports.se_ListConnectorsCommand = exports.se_ListConnectorEntitiesCommand = exports.se_DescribeFlowExecutionRecordsCommand = exports.se_DescribeFlowCommand = exports.se_DescribeConnectorsCommand = exports.se_DescribeConnectorProfilesCommand = exports.se_DescribeConnectorEntityCommand = exports.se_DescribeConnectorCommand = exports.se_DeleteFlowCommand = exports.se_DeleteConnectorProfileCommand = exports.se_CreateFlowCommand = exports.se_CreateConnectorProfileCommand = exports.se_CancelFlowExecutionsCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const uuid_1 = require("uuid");
7
7
  const AppflowServiceException_1 = require("../models/AppflowServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
+ const se_CancelFlowExecutionsCommand = async (input, context) => {
10
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const headers = {
12
+ "content-type": "application/json",
13
+ };
14
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cancel-flow-executions";
15
+ let body;
16
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
17
+ executionIds: (_) => (0, smithy_client_1._json)(_),
18
+ flowName: [],
19
+ }));
20
+ return new protocol_http_1.HttpRequest({
21
+ protocol,
22
+ hostname,
23
+ port,
24
+ method: "POST",
25
+ headers,
26
+ path: resolvedPath,
27
+ body,
28
+ });
29
+ };
30
+ exports.se_CancelFlowExecutionsCommand = se_CancelFlowExecutionsCommand;
9
31
  const se_CreateConnectorProfileCommand = async (input, context) => {
10
32
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
33
  const headers = {
@@ -544,6 +566,52 @@ const se_UpdateFlowCommand = async (input, context) => {
544
566
  });
545
567
  };
546
568
  exports.se_UpdateFlowCommand = se_UpdateFlowCommand;
569
+ const de_CancelFlowExecutionsCommand = async (output, context) => {
570
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
571
+ return de_CancelFlowExecutionsCommandError(output, context);
572
+ }
573
+ const contents = (0, smithy_client_1.map)({
574
+ $metadata: deserializeMetadata(output),
575
+ });
576
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
577
+ const doc = (0, smithy_client_1.take)(data, {
578
+ invalidExecutions: smithy_client_1._json,
579
+ });
580
+ Object.assign(contents, doc);
581
+ return contents;
582
+ };
583
+ exports.de_CancelFlowExecutionsCommand = de_CancelFlowExecutionsCommand;
584
+ const de_CancelFlowExecutionsCommandError = async (output, context) => {
585
+ const parsedOutput = {
586
+ ...output,
587
+ body: await parseErrorBody(output.body, context),
588
+ };
589
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
590
+ switch (errorCode) {
591
+ case "AccessDeniedException":
592
+ case "com.amazonaws.appflow#AccessDeniedException":
593
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
594
+ case "InternalServerException":
595
+ case "com.amazonaws.appflow#InternalServerException":
596
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
597
+ case "ResourceNotFoundException":
598
+ case "com.amazonaws.appflow#ResourceNotFoundException":
599
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
600
+ case "ThrottlingException":
601
+ case "com.amazonaws.appflow#ThrottlingException":
602
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
603
+ case "ValidationException":
604
+ case "com.amazonaws.appflow#ValidationException":
605
+ throw await de_ValidationExceptionRes(parsedOutput, context);
606
+ default:
607
+ const parsedBody = parsedOutput.body;
608
+ return throwDefaultError({
609
+ output,
610
+ parsedBody,
611
+ errorCode,
612
+ });
613
+ }
614
+ };
547
615
  const de_CreateConnectorProfileCommand = async (output, context) => {
548
616
  if (output.statusCode !== 200 && output.statusCode >= 300) {
549
617
  return de_CreateConnectorProfileCommandError(output, context);
@@ -1,5 +1,6 @@
1
1
  import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
2
  import { AppflowClient } from "./AppflowClient";
3
+ import { CancelFlowExecutionsCommand, } from "./commands/CancelFlowExecutionsCommand";
3
4
  import { CreateConnectorProfileCommand, } from "./commands/CreateConnectorProfileCommand";
4
5
  import { CreateFlowCommand } from "./commands/CreateFlowCommand";
5
6
  import { DeleteConnectorProfileCommand, } from "./commands/DeleteConnectorProfileCommand";
@@ -24,6 +25,7 @@ import { UpdateConnectorProfileCommand, } from "./commands/UpdateConnectorProfil
24
25
  import { UpdateConnectorRegistrationCommand, } from "./commands/UpdateConnectorRegistrationCommand";
25
26
  import { UpdateFlowCommand } from "./commands/UpdateFlowCommand";
26
27
  const commands = {
28
+ CancelFlowExecutionsCommand,
27
29
  CreateConnectorProfileCommand,
28
30
  CreateFlowCommand,
29
31
  DeleteConnectorProfileCommand,
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CancelFlowExecutionsCommand, se_CancelFlowExecutionsCommand } from "../protocols/Aws_restJson1";
5
+ export class CancelFlowExecutionsCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, CancelFlowExecutionsCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "AppflowClient";
24
+ const commandName = "CancelFlowExecutionsCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_CancelFlowExecutionsCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_CancelFlowExecutionsCommand(output, context);
40
+ }
41
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./CancelFlowExecutionsCommand";
1
2
  export * from "./CreateConnectorProfileCommand";
2
3
  export * from "./CreateFlowCommand";
3
4
  export * from "./DeleteConnectorProfileCommand";
@@ -26,6 +26,7 @@ export const OAuth2CustomPropType = {
26
26
  export const OAuth2GrantType = {
27
27
  AUTHORIZATION_CODE: "AUTHORIZATION_CODE",
28
28
  CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS",
29
+ JWT_BEARER: "JWT_BEARER",
29
30
  };
30
31
  export const AuthenticationType = {
31
32
  APIKEY: "APIKEY",
@@ -33,6 +34,54 @@ export const AuthenticationType = {
33
34
  CUSTOM: "CUSTOM",
34
35
  OAUTH2: "OAUTH2",
35
36
  };
37
+ export class InternalServerException extends __BaseException {
38
+ constructor(opts) {
39
+ super({
40
+ name: "InternalServerException",
41
+ $fault: "server",
42
+ ...opts,
43
+ });
44
+ this.name = "InternalServerException";
45
+ this.$fault = "server";
46
+ Object.setPrototypeOf(this, InternalServerException.prototype);
47
+ }
48
+ }
49
+ export class ResourceNotFoundException extends __BaseException {
50
+ constructor(opts) {
51
+ super({
52
+ name: "ResourceNotFoundException",
53
+ $fault: "client",
54
+ ...opts,
55
+ });
56
+ this.name = "ResourceNotFoundException";
57
+ this.$fault = "client";
58
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
59
+ }
60
+ }
61
+ export class ThrottlingException extends __BaseException {
62
+ constructor(opts) {
63
+ super({
64
+ name: "ThrottlingException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ this.name = "ThrottlingException";
69
+ this.$fault = "client";
70
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
71
+ }
72
+ }
73
+ export class ValidationException extends __BaseException {
74
+ constructor(opts) {
75
+ super({
76
+ name: "ValidationException",
77
+ $fault: "client",
78
+ ...opts,
79
+ });
80
+ this.name = "ValidationException";
81
+ this.$fault = "client";
82
+ Object.setPrototypeOf(this, ValidationException.prototype);
83
+ }
84
+ }
36
85
  export const CatalogType = {
37
86
  GLUE: "GLUE",
38
87
  };
@@ -459,18 +508,6 @@ export class ConnectorServerException extends __BaseException {
459
508
  Object.setPrototypeOf(this, ConnectorServerException.prototype);
460
509
  }
461
510
  }
462
- export class InternalServerException extends __BaseException {
463
- constructor(opts) {
464
- super({
465
- name: "InternalServerException",
466
- $fault: "server",
467
- ...opts,
468
- });
469
- this.name = "InternalServerException";
470
- this.$fault = "server";
471
- Object.setPrototypeOf(this, InternalServerException.prototype);
472
- }
473
- }
474
511
  export class ServiceQuotaExceededException extends __BaseException {
475
512
  constructor(opts) {
476
513
  super({
@@ -483,18 +520,6 @@ export class ServiceQuotaExceededException extends __BaseException {
483
520
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
484
521
  }
485
522
  }
486
- export class ValidationException extends __BaseException {
487
- constructor(opts) {
488
- super({
489
- name: "ValidationException",
490
- $fault: "client",
491
- ...opts,
492
- });
493
- this.name = "ValidationException";
494
- this.$fault = "client";
495
- Object.setPrototypeOf(this, ValidationException.prototype);
496
- }
497
- }
498
523
  export const FileType = {
499
524
  CSV: "CSV",
500
525
  JSON: "JSON",
@@ -563,35 +588,13 @@ export const FlowStatus = {
563
588
  ERRORED: "Errored",
564
589
  SUSPENDED: "Suspended",
565
590
  };
566
- export class ResourceNotFoundException extends __BaseException {
567
- constructor(opts) {
568
- super({
569
- name: "ResourceNotFoundException",
570
- $fault: "client",
571
- ...opts,
572
- });
573
- this.name = "ResourceNotFoundException";
574
- this.$fault = "client";
575
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
576
- }
577
- }
578
591
  export const ExecutionStatus = {
592
+ CANCELED: "Canceled",
593
+ CANCELSTARTED: "CancelStarted",
579
594
  ERROR: "Error",
580
595
  INPROGRESS: "InProgress",
581
596
  SUCCESSFUL: "Successful",
582
597
  };
583
- export class ThrottlingException extends __BaseException {
584
- constructor(opts) {
585
- super({
586
- name: "ThrottlingException",
587
- $fault: "client",
588
- ...opts,
589
- });
590
- this.name = "ThrottlingException";
591
- this.$fault = "client";
592
- Object.setPrototypeOf(this, ThrottlingException.prototype);
593
- }
594
- }
595
598
  export class UnsupportedOperationException extends __BaseException {
596
599
  constructor(opts) {
597
600
  super({
@@ -669,6 +672,7 @@ export const SalesforceConnectorProfileCredentialsFilterSensitiveLog = (obj) =>
669
672
  ...obj,
670
673
  ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
671
674
  ...(obj.clientCredentialsArn && { clientCredentialsArn: SENSITIVE_STRING }),
675
+ ...(obj.jwtToken && { jwtToken: SENSITIVE_STRING }),
672
676
  });
673
677
  export const OAuthCredentialsFilterSensitiveLog = (obj) => ({
674
678
  ...obj,