@aws-sdk/client-appflow 3.398.0 → 3.403.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,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const q = "required", r = "fn", s = "argv", t = "ref";
5
5
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appflow-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appflow.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://appflow.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://appflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://appflow-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://appflow.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://appflow.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -706,6 +706,9 @@ const de_CreateFlowCommandError = async (output, context) => {
706
706
  };
707
707
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
708
708
  switch (errorCode) {
709
+ case "AccessDeniedException":
710
+ case "com.amazonaws.appflow#AccessDeniedException":
711
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
709
712
  case "ConflictException":
710
713
  case "com.amazonaws.appflow#ConflictException":
711
714
  throw await de_ConflictExceptionRes(parsedOutput, context);
@@ -1650,6 +1653,9 @@ const de_UpdateFlowCommandError = async (output, context) => {
1650
1653
  };
1651
1654
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1652
1655
  switch (errorCode) {
1656
+ case "AccessDeniedException":
1657
+ case "com.amazonaws.appflow#AccessDeniedException":
1658
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1653
1659
  case "ConflictException":
1654
1660
  case "com.amazonaws.appflow#ConflictException":
1655
1661
  throw await de_ConflictExceptionRes(parsedOutput, context);
@@ -1,4 +1,4 @@
1
1
  const q = "required", r = "fn", s = "argv", t = "ref";
2
2
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appflow-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appflow.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://appflow.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://appflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://appflow-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://appflow.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://appflow.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -675,6 +675,9 @@ const de_CreateFlowCommandError = async (output, context) => {
675
675
  };
676
676
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
677
677
  switch (errorCode) {
678
+ case "AccessDeniedException":
679
+ case "com.amazonaws.appflow#AccessDeniedException":
680
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
678
681
  case "ConflictException":
679
682
  case "com.amazonaws.appflow#ConflictException":
680
683
  throw await de_ConflictExceptionRes(parsedOutput, context);
@@ -1597,6 +1600,9 @@ const de_UpdateFlowCommandError = async (output, context) => {
1597
1600
  };
1598
1601
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1599
1602
  switch (errorCode) {
1603
+ case "AccessDeniedException":
1604
+ case "com.amazonaws.appflow#AccessDeniedException":
1605
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1600
1606
  case "ConflictException":
1601
1607
  case "com.amazonaws.appflow#ConflictException":
1602
1608
  throw await de_ConflictExceptionRes(parsedOutput, context);
@@ -113,6 +113,12 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB
113
113
  * },
114
114
  * SAPOData: { // SAPODataSourceProperties
115
115
  * objectPath: "STRING_VALUE",
116
+ * parallelismConfig: { // SAPODataParallelismConfig
117
+ * maxParallelism: Number("int"), // required
118
+ * },
119
+ * paginationConfig: { // SAPODataPaginationConfig
120
+ * maxPageSize: Number("int"), // required
121
+ * },
116
122
  * },
117
123
  * CustomConnector: { // CustomConnectorSourceProperties
118
124
  * entityName: "STRING_VALUE", // required
@@ -325,6 +331,9 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB
325
331
  * @see {@link CreateFlowCommandOutput} for command's `response` shape.
326
332
  * @see {@link AppflowClientResolvedConfig | config} for AppflowClient's `config` shape.
327
333
  *
334
+ * @throws {@link AccessDeniedException} (client fault)
335
+ * <p>AppFlow/Requester has invalid or missing permissions.</p>
336
+ *
328
337
  * @throws {@link ConflictException} (client fault)
329
338
  * <p> There was a conflict when processing the request (for example, a flow with the given name
330
339
  * already exists within the account. Check for conflicting resource names and try again. </p>
@@ -102,6 +102,12 @@ export interface DescribeFlowCommandOutput extends DescribeFlowResponse, __Metad
102
102
  * // },
103
103
  * // SAPOData: { // SAPODataSourceProperties
104
104
  * // objectPath: "STRING_VALUE",
105
+ * // parallelismConfig: { // SAPODataParallelismConfig
106
+ * // maxParallelism: Number("int"), // required
107
+ * // },
108
+ * // paginationConfig: { // SAPODataPaginationConfig
109
+ * // maxPageSize: Number("int"), // required
110
+ * // },
105
111
  * // },
106
112
  * // CustomConnector: { // CustomConnectorSourceProperties
107
113
  * // entityName: "STRING_VALUE", // required
@@ -50,6 +50,8 @@ export interface DescribeFlowExecutionRecordsCommandOutput extends DescribeFlowE
50
50
  * // bytesProcessed: Number("long"),
51
51
  * // bytesWritten: Number("long"),
52
52
  * // recordsProcessed: Number("long"),
53
+ * // numParallelProcesses: Number("long"),
54
+ * // maxPageSize: Number("long"),
53
55
  * // },
54
56
  * // startedAt: new Date("TIMESTAMP"),
55
57
  * // lastUpdatedAt: new Date("TIMESTAMP"),
@@ -108,6 +108,12 @@ export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataB
108
108
  * },
109
109
  * SAPOData: { // SAPODataSourceProperties
110
110
  * objectPath: "STRING_VALUE",
111
+ * parallelismConfig: { // SAPODataParallelismConfig
112
+ * maxParallelism: Number("int"), // required
113
+ * },
114
+ * paginationConfig: { // SAPODataPaginationConfig
115
+ * maxPageSize: Number("int"), // required
116
+ * },
111
117
  * },
112
118
  * CustomConnector: { // CustomConnectorSourceProperties
113
119
  * entityName: "STRING_VALUE", // required
@@ -316,6 +322,9 @@ export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataB
316
322
  * @see {@link UpdateFlowCommandOutput} for command's `response` shape.
317
323
  * @see {@link AppflowClientResolvedConfig | config} for AppflowClient's `config` shape.
318
324
  *
325
+ * @throws {@link AccessDeniedException} (client fault)
326
+ * <p>AppFlow/Requester has invalid or missing permissions.</p>
327
+ *
319
328
  * @throws {@link ConflictException} (client fault)
320
329
  * <p> There was a conflict when processing the request (for example, a flow with the given name
321
330
  * already exists within the account. Check for conflicting resource names and try again. </p>
@@ -2327,8 +2327,8 @@ export interface SAPODataConnectorProfileProperties {
2327
2327
  * @public
2328
2328
  * <p>If you set this parameter to <code>true</code>, Amazon AppFlow bypasses the single
2329
2329
  * sign-on (SSO) settings in your SAP account when it accesses your SAP OData instance.</p>
2330
- * <p>Whether you need this option depends on the types of credentials that you applied to
2331
- * your SAP OData connection profile. If your profile uses basic authentication credentials, SAP SSO
2330
+ * <p>Whether you need this option depends on the types of credentials that you applied to your
2331
+ * SAP OData connection profile. If your profile uses basic authentication credentials, SAP SSO
2332
2332
  * can prevent Amazon AppFlow from connecting to your account with your username and
2333
2333
  * password. In this case, bypassing SSO makes it possible for Amazon AppFlow to connect
2334
2334
  * successfully. However, if your profile uses OAuth credentials, this parameter has no
@@ -4318,6 +4318,38 @@ export interface SalesforceSourceProperties {
4318
4318
  */
4319
4319
  dataTransferApi?: SalesforceDataTransferApi | string;
4320
4320
  }
4321
+ /**
4322
+ * @public
4323
+ * <p>Sets the page size for each <i>concurrent process</i> that transfers OData
4324
+ * records from your SAP instance. A concurrent process is query that retrieves a batch of
4325
+ * records as part of a flow run. Amazon AppFlow can run multiple concurrent processes in
4326
+ * parallel to transfer data faster.</p>
4327
+ */
4328
+ export interface SAPODataPaginationConfig {
4329
+ /**
4330
+ * @public
4331
+ * <p>The maximum number of records that Amazon AppFlow receives in each page of the
4332
+ * response from your SAP application. For transfers of OData records, the maximum page size is
4333
+ * 3,000. For transfers of data that comes from an ODP provider, the maximum page size
4334
+ * is 10,000.</p>
4335
+ */
4336
+ maxPageSize: number | undefined;
4337
+ }
4338
+ /**
4339
+ * @public
4340
+ * <p>Sets the number of <i>concurrent processes</i> that transfer OData records
4341
+ * from your SAP instance. A concurrent process is query that retrieves a batch of records as
4342
+ * part of a flow run. Amazon AppFlow can run multiple concurrent processes in parallel to
4343
+ * transfer data faster.</p>
4344
+ */
4345
+ export interface SAPODataParallelismConfig {
4346
+ /**
4347
+ * @public
4348
+ * <p>The maximum number of processes that Amazon AppFlow runs at the same time when it
4349
+ * retrieves your data from your SAP application.</p>
4350
+ */
4351
+ maxParallelism: number | undefined;
4352
+ }
4321
4353
  /**
4322
4354
  * @public
4323
4355
  * <p> The properties that are applied when using SAPOData as a flow source. </p>
@@ -4328,6 +4360,18 @@ export interface SAPODataSourceProperties {
4328
4360
  * <p> The object path specified in the SAPOData flow source. </p>
4329
4361
  */
4330
4362
  objectPath?: string;
4363
+ /**
4364
+ * @public
4365
+ * <p>Sets the number of concurrent processes that transfers OData records from your SAP
4366
+ * instance.</p>
4367
+ */
4368
+ parallelismConfig?: SAPODataParallelismConfig;
4369
+ /**
4370
+ * @public
4371
+ * <p>Sets the page size for each concurrent process that transfers OData records from your SAP
4372
+ * instance.</p>
4373
+ */
4374
+ paginationConfig?: SAPODataPaginationConfig;
4331
4375
  }
4332
4376
  /**
4333
4377
  * @public
@@ -5335,6 +5379,18 @@ export interface ExecutionResult {
5335
5379
  * <p> The number of records processed in the flow run. </p>
5336
5380
  */
5337
5381
  recordsProcessed?: number;
5382
+ /**
5383
+ * @public
5384
+ * <p>The number of processes that Amazon AppFlow ran at the same time when it retrieved
5385
+ * your data.</p>
5386
+ */
5387
+ numParallelProcesses?: number;
5388
+ /**
5389
+ * @public
5390
+ * <p>The maximum number of records that Amazon AppFlow receives in each page of the
5391
+ * response from your SAP application.</p>
5392
+ */
5393
+ maxPageSize?: number;
5338
5394
  }
5339
5395
  /**
5340
5396
  * @public
@@ -1260,8 +1260,16 @@ export interface SalesforceSourceProperties {
1260
1260
  includeDeletedRecords?: boolean;
1261
1261
  dataTransferApi?: SalesforceDataTransferApi | string;
1262
1262
  }
1263
+ export interface SAPODataPaginationConfig {
1264
+ maxPageSize: number | undefined;
1265
+ }
1266
+ export interface SAPODataParallelismConfig {
1267
+ maxParallelism: number | undefined;
1268
+ }
1263
1269
  export interface SAPODataSourceProperties {
1264
1270
  objectPath?: string;
1271
+ parallelismConfig?: SAPODataParallelismConfig;
1272
+ paginationConfig?: SAPODataPaginationConfig;
1265
1273
  }
1266
1274
  export interface ServiceNowSourceProperties {
1267
1275
  object: string | undefined;
@@ -1509,6 +1517,8 @@ export interface ExecutionResult {
1509
1517
  bytesProcessed?: number;
1510
1518
  bytesWritten?: number;
1511
1519
  recordsProcessed?: number;
1520
+ numParallelProcesses?: number;
1521
+ maxPageSize?: number;
1512
1522
  }
1513
1523
  export interface ExecutionRecord {
1514
1524
  executionId?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appflow",
3
3
  "description": "AWS SDK for JavaScript Appflow Client for Node.js, Browser and React Native",
4
- "version": "3.398.0",
4
+ "version": "3.403.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",