@aws-sdk/client-appflow 3.323.0 → 3.326.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.
Files changed (47) hide show
  1. package/README.md +15 -7
  2. package/dist-cjs/Appflow.js +2 -0
  3. package/dist-cjs/commands/CancelFlowExecutionsCommand.js +45 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +56 -54
  6. package/dist-cjs/protocols/Aws_restJson1.js +69 -1
  7. package/dist-es/Appflow.js +2 -0
  8. package/dist-es/commands/CancelFlowExecutionsCommand.js +41 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +50 -48
  11. package/dist-es/protocols/Aws_restJson1.js +66 -0
  12. package/dist-types/Appflow.d.ts +7 -0
  13. package/dist-types/AppflowClient.d.ts +3 -2
  14. package/dist-types/commands/CancelFlowExecutionsCommand.d.ts +101 -0
  15. package/dist-types/commands/CreateConnectorProfileCommand.d.ts +6 -0
  16. package/dist-types/commands/CreateFlowCommand.d.ts +7 -0
  17. package/dist-types/commands/DeleteConnectorProfileCommand.d.ts +4 -0
  18. package/dist-types/commands/DeleteFlowCommand.d.ts +4 -0
  19. package/dist-types/commands/DescribeConnectorCommand.d.ts +163 -0
  20. package/dist-types/commands/DescribeConnectorEntityCommand.d.ts +55 -0
  21. package/dist-types/commands/DescribeConnectorProfilesCommand.d.ts +111 -0
  22. package/dist-types/commands/DescribeConnectorsCommand.d.ts +183 -0
  23. package/dist-types/commands/DescribeFlowCommand.d.ts +303 -0
  24. package/dist-types/commands/DescribeFlowExecutionRecordsCommand.d.ts +41 -0
  25. package/dist-types/commands/ListConnectorEntitiesCommand.d.ts +15 -0
  26. package/dist-types/commands/ListConnectorsCommand.d.ts +23 -0
  27. package/dist-types/commands/ListFlowsCommand.d.ts +31 -0
  28. package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -0
  29. package/dist-types/commands/RegisterConnectorCommand.d.ts +6 -0
  30. package/dist-types/commands/StartFlowCommand.d.ts +8 -0
  31. package/dist-types/commands/StopFlowCommand.d.ts +7 -0
  32. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  33. package/dist-types/commands/UnregisterConnectorCommand.d.ts +4 -0
  34. package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  35. package/dist-types/commands/UpdateConnectorProfileCommand.d.ts +6 -0
  36. package/dist-types/commands/UpdateConnectorRegistrationCommand.d.ts +6 -0
  37. package/dist-types/commands/UpdateFlowCommand.d.ts +6 -0
  38. package/dist-types/commands/index.d.ts +1 -0
  39. package/dist-types/models/models_0.d.ts +79 -51
  40. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  41. package/dist-types/ts3.4/Appflow.d.ts +17 -0
  42. package/dist-types/ts3.4/AppflowClient.d.ts +6 -0
  43. package/dist-types/ts3.4/commands/CancelFlowExecutionsCommand.d.ts +41 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +37 -28
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  47. package/package.json +16 -16
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 {
@@ -39,6 +39,58 @@ exports.AuthenticationType = {
39
39
  CUSTOM: "CUSTOM",
40
40
  OAUTH2: "OAUTH2",
41
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;
42
94
  exports.CatalogType = {
43
95
  GLUE: "GLUE",
44
96
  };
@@ -468,19 +520,6 @@ class ConnectorServerException extends AppflowServiceException_1.AppflowServiceE
468
520
  }
469
521
  }
470
522
  exports.ConnectorServerException = ConnectorServerException;
471
- class InternalServerException extends AppflowServiceException_1.AppflowServiceException {
472
- constructor(opts) {
473
- super({
474
- name: "InternalServerException",
475
- $fault: "server",
476
- ...opts,
477
- });
478
- this.name = "InternalServerException";
479
- this.$fault = "server";
480
- Object.setPrototypeOf(this, InternalServerException.prototype);
481
- }
482
- }
483
- exports.InternalServerException = InternalServerException;
484
523
  class ServiceQuotaExceededException extends AppflowServiceException_1.AppflowServiceException {
485
524
  constructor(opts) {
486
525
  super({
@@ -494,19 +533,6 @@ class ServiceQuotaExceededException extends AppflowServiceException_1.AppflowSer
494
533
  }
495
534
  }
496
535
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
497
- class ValidationException extends AppflowServiceException_1.AppflowServiceException {
498
- constructor(opts) {
499
- super({
500
- name: "ValidationException",
501
- $fault: "client",
502
- ...opts,
503
- });
504
- this.name = "ValidationException";
505
- this.$fault = "client";
506
- Object.setPrototypeOf(this, ValidationException.prototype);
507
- }
508
- }
509
- exports.ValidationException = ValidationException;
510
536
  exports.FileType = {
511
537
  CSV: "CSV",
512
538
  JSON: "JSON",
@@ -575,37 +601,13 @@ exports.FlowStatus = {
575
601
  ERRORED: "Errored",
576
602
  SUSPENDED: "Suspended",
577
603
  };
578
- class ResourceNotFoundException extends AppflowServiceException_1.AppflowServiceException {
579
- constructor(opts) {
580
- super({
581
- name: "ResourceNotFoundException",
582
- $fault: "client",
583
- ...opts,
584
- });
585
- this.name = "ResourceNotFoundException";
586
- this.$fault = "client";
587
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
588
- }
589
- }
590
- exports.ResourceNotFoundException = ResourceNotFoundException;
591
604
  exports.ExecutionStatus = {
605
+ CANCELED: "Canceled",
606
+ CANCELSTARTED: "CancelStarted",
592
607
  ERROR: "Error",
593
608
  INPROGRESS: "InProgress",
594
609
  SUCCESSFUL: "Successful",
595
610
  };
596
- class ThrottlingException extends AppflowServiceException_1.AppflowServiceException {
597
- constructor(opts) {
598
- super({
599
- name: "ThrottlingException",
600
- $fault: "client",
601
- ...opts,
602
- });
603
- this.name = "ThrottlingException";
604
- this.$fault = "client";
605
- Object.setPrototypeOf(this, ThrottlingException.prototype);
606
- }
607
- }
608
- exports.ThrottlingException = ThrottlingException;
609
611
  class UnsupportedOperationException extends AppflowServiceException_1.AppflowServiceException {
610
612
  constructor(opts) {
611
613
  super({
@@ -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";
@@ -34,6 +34,54 @@ export const AuthenticationType = {
34
34
  CUSTOM: "CUSTOM",
35
35
  OAUTH2: "OAUTH2",
36
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
+ }
37
85
  export const CatalogType = {
38
86
  GLUE: "GLUE",
39
87
  };
@@ -460,18 +508,6 @@ export class ConnectorServerException extends __BaseException {
460
508
  Object.setPrototypeOf(this, ConnectorServerException.prototype);
461
509
  }
462
510
  }
463
- export class InternalServerException extends __BaseException {
464
- constructor(opts) {
465
- super({
466
- name: "InternalServerException",
467
- $fault: "server",
468
- ...opts,
469
- });
470
- this.name = "InternalServerException";
471
- this.$fault = "server";
472
- Object.setPrototypeOf(this, InternalServerException.prototype);
473
- }
474
- }
475
511
  export class ServiceQuotaExceededException extends __BaseException {
476
512
  constructor(opts) {
477
513
  super({
@@ -484,18 +520,6 @@ export class ServiceQuotaExceededException extends __BaseException {
484
520
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
485
521
  }
486
522
  }
487
- export class ValidationException extends __BaseException {
488
- constructor(opts) {
489
- super({
490
- name: "ValidationException",
491
- $fault: "client",
492
- ...opts,
493
- });
494
- this.name = "ValidationException";
495
- this.$fault = "client";
496
- Object.setPrototypeOf(this, ValidationException.prototype);
497
- }
498
- }
499
523
  export const FileType = {
500
524
  CSV: "CSV",
501
525
  JSON: "JSON",
@@ -564,35 +588,13 @@ export const FlowStatus = {
564
588
  ERRORED: "Errored",
565
589
  SUSPENDED: "Suspended",
566
590
  };
567
- export class ResourceNotFoundException extends __BaseException {
568
- constructor(opts) {
569
- super({
570
- name: "ResourceNotFoundException",
571
- $fault: "client",
572
- ...opts,
573
- });
574
- this.name = "ResourceNotFoundException";
575
- this.$fault = "client";
576
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
577
- }
578
- }
579
591
  export const ExecutionStatus = {
592
+ CANCELED: "Canceled",
593
+ CANCELSTARTED: "CancelStarted",
580
594
  ERROR: "Error",
581
595
  INPROGRESS: "InProgress",
582
596
  SUCCESSFUL: "Successful",
583
597
  };
584
- export class ThrottlingException extends __BaseException {
585
- constructor(opts) {
586
- super({
587
- name: "ThrottlingException",
588
- $fault: "client",
589
- ...opts,
590
- });
591
- this.name = "ThrottlingException";
592
- this.$fault = "client";
593
- Object.setPrototypeOf(this, ThrottlingException.prototype);
594
- }
595
- }
596
598
  export class UnsupportedOperationException extends __BaseException {
597
599
  constructor(opts) {
598
600
  super({
@@ -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);