@aws-sdk/client-appflow 3.185.0 → 3.188.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 (43) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/models/models_0.js +12 -5
  3. package/dist-cjs/protocols/Aws_restJson1.js +18 -0
  4. package/dist-es/Appflow.js +90 -97
  5. package/dist-es/AppflowClient.js +22 -28
  6. package/dist-es/commands/CreateConnectorProfileCommand.js +21 -28
  7. package/dist-es/commands/CreateFlowCommand.js +21 -28
  8. package/dist-es/commands/DeleteConnectorProfileCommand.js +21 -28
  9. package/dist-es/commands/DeleteFlowCommand.js +21 -28
  10. package/dist-es/commands/DescribeConnectorCommand.js +21 -28
  11. package/dist-es/commands/DescribeConnectorEntityCommand.js +21 -28
  12. package/dist-es/commands/DescribeConnectorProfilesCommand.js +21 -28
  13. package/dist-es/commands/DescribeConnectorsCommand.js +21 -28
  14. package/dist-es/commands/DescribeFlowCommand.js +21 -28
  15. package/dist-es/commands/DescribeFlowExecutionRecordsCommand.js +21 -28
  16. package/dist-es/commands/ListConnectorEntitiesCommand.js +21 -28
  17. package/dist-es/commands/ListConnectorsCommand.js +21 -28
  18. package/dist-es/commands/ListFlowsCommand.js +21 -28
  19. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  20. package/dist-es/commands/RegisterConnectorCommand.js +21 -28
  21. package/dist-es/commands/StartFlowCommand.js +21 -28
  22. package/dist-es/commands/StopFlowCommand.js +21 -28
  23. package/dist-es/commands/TagResourceCommand.js +21 -28
  24. package/dist-es/commands/UnregisterConnectorCommand.js +21 -28
  25. package/dist-es/commands/UntagResourceCommand.js +21 -28
  26. package/dist-es/commands/UpdateConnectorProfileCommand.js +21 -28
  27. package/dist-es/commands/UpdateFlowCommand.js +21 -28
  28. package/dist-es/endpoints.js +8 -8
  29. package/dist-es/models/AppflowServiceException.js +5 -10
  30. package/dist-es/models/models_0.js +727 -302
  31. package/dist-es/pagination/DescribeConnectorProfilesPaginator.js +25 -68
  32. package/dist-es/pagination/DescribeConnectorsPaginator.js +25 -68
  33. package/dist-es/pagination/DescribeFlowExecutionRecordsPaginator.js +25 -68
  34. package/dist-es/pagination/ListConnectorsPaginator.js +25 -68
  35. package/dist-es/pagination/ListFlowsPaginator.js +25 -68
  36. package/dist-es/protocols/Aws_restJson1.js +2731 -2943
  37. package/dist-es/runtimeConfig.browser.js +26 -12
  38. package/dist-es/runtimeConfig.js +30 -12
  39. package/dist-es/runtimeConfig.native.js +8 -5
  40. package/dist-es/runtimeConfig.shared.js +8 -11
  41. package/dist-types/models/models_0.d.ts +98 -5
  42. package/dist-types/ts3.4/models/models_0.d.ts +9 -0
  43. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
3
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
12
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
13
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
- export var getRuntimeConfig = function (config) {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
- var defaultsMode = resolveDefaultsModeConfig(config);
18
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
- var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
- switch (_a.label) {
22
- case 0: return [4, defaultConfigProvider()];
23
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
- }
25
- }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
14
+ export const getRuntimeConfig = (config) => {
15
+ const defaultsMode = resolveDefaultsModeConfig(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
+ return {
19
+ ...clientSharedValues,
20
+ ...config,
21
+ runtime: "browser",
22
+ defaultsMode,
23
+ base64Decoder: config?.base64Decoder ?? fromBase64,
24
+ base64Encoder: config?.base64Encoder ?? toBase64,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
29
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? invalidProvider("Region is missing"),
31
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? Sha256,
34
+ streamCollector: config?.streamCollector ?? streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
37
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
+ };
26
40
  };
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
15
14
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
15
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
16
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
18
- export var getRuntimeConfig = function (config) {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ export const getRuntimeConfig = (config) => {
20
18
  emitWarningIfUnsupportedVersion(process.version);
21
- var defaultsMode = resolveDefaultsModeConfig(config);
22
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
- var clientSharedValues = getSharedRuntimeConfig(config);
24
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
- switch (_a.label) {
26
- case 0: return [4, defaultConfigProvider()];
27
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
- }
29
- }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
+ const defaultsMode = resolveDefaultsModeConfig(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
+ const clientSharedValues = getSharedRuntimeConfig(config);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ base64Decoder: config?.base64Decoder ?? fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
34
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
35
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ??
37
+ loadNodeConfig({
38
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
39
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
40
+ }),
41
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
+ streamCollector: config?.streamCollector ?? streamCollector,
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
45
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
46
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
47
+ };
30
48
  };
@@ -1,8 +1,11 @@
1
- import { __assign } from "tslib";
2
1
  import { Sha256 } from "@aws-crypto/sha256-js";
3
2
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
- export var getRuntimeConfig = function (config) {
5
- var _a;
6
- var browserDefaults = getBrowserRuntimeConfig(config);
7
- return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
8
11
  };
@@ -1,13 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
2
  import { defaultRegionInfoProvider } from "./endpoints";
3
- export var getRuntimeConfig = function (config) {
4
- var _a, _b, _c, _d, _e;
5
- return ({
6
- apiVersion: "2020-08-23",
7
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
- logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
- regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Appflow",
11
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
- });
13
- };
3
+ export const getRuntimeConfig = (config) => ({
4
+ apiVersion: "2020-08-23",
5
+ disableHostPrefix: config?.disableHostPrefix ?? false,
6
+ logger: config?.logger ?? {},
7
+ regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
+ serviceId: config?.serviceId ?? "Appflow",
9
+ urlParser: config?.urlParser ?? parseUrl,
10
+ });
@@ -318,6 +318,11 @@ export interface RedshiftMetadata {
318
318
  */
319
319
  export interface S3Metadata {
320
320
  }
321
+ export declare enum SalesforceDataTransferApi {
322
+ AUTOMATIC = "AUTOMATIC",
323
+ BULKV2 = "BULKV2",
324
+ REST_SYNC = "REST_SYNC"
325
+ }
321
326
  /**
322
327
  * <p> The connector metadata specific to Salesforce. </p>
323
328
  */
@@ -326,6 +331,11 @@ export interface SalesforceMetadata {
326
331
  * <p> The desired authorization scope for the Salesforce account. </p>
327
332
  */
328
333
  oAuthScopes?: string[];
334
+ /**
335
+ * <p>The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers
336
+ * data to or from Salesforce.</p>
337
+ */
338
+ dataTransferApis?: (SalesforceDataTransferApi | string)[];
329
339
  }
330
340
  /**
331
341
  * <p> The connector metadata specific to SAPOData. </p>
@@ -2524,6 +2534,46 @@ export interface SalesforceDestinationProperties {
2524
2534
  * is <code>UPSERT</code>, then <code>idFieldNames</code> is required. </p>
2525
2535
  */
2526
2536
  writeOperationType?: WriteOperationType | string;
2537
+ /**
2538
+ * <p>Specifies which Salesforce API is used by Amazon AppFlow when your flow transfers
2539
+ * data to Salesforce.</p>
2540
+ * <dl>
2541
+ * <dt>AUTOMATIC</dt>
2542
+ * <dd>
2543
+ * <p>The default. Amazon AppFlow selects which API to use based on the number of
2544
+ * records that your flow transfers to Salesforce. If your flow transfers fewer than 1,000
2545
+ * records, Amazon AppFlow uses Salesforce REST API. If your flow transfers 1,000
2546
+ * records or more, Amazon AppFlow uses Salesforce Bulk API 2.0.</p>
2547
+ * <p>Each of these Salesforce APIs structures data differently. If Amazon AppFlow
2548
+ * selects the API automatically, be aware that, for recurring flows, the data output might
2549
+ * vary from one flow run to the next. For example, if a flow runs daily, it might use REST
2550
+ * API on one day to transfer 900 records, and it might use Bulk API 2.0 on the next day to
2551
+ * transfer 1,100 records. For each of these flow runs, the respective Salesforce API
2552
+ * formats the data differently. Some of the differences include how dates are formatted
2553
+ * and null values are represented. Also, Bulk API 2.0 doesn't transfer Salesforce compound
2554
+ * fields.</p>
2555
+ * <p>By choosing this option, you optimize flow performance for both small and large data
2556
+ * transfers, but the tradeoff is inconsistent formatting in the output.</p>
2557
+ * </dd>
2558
+ * <dt>BULKV2</dt>
2559
+ * <dd>
2560
+ * <p>Amazon AppFlow uses only Salesforce Bulk API 2.0. This API runs asynchronous
2561
+ * data transfers, and it's optimal for large sets of data. By choosing this option, you
2562
+ * ensure that your flow writes consistent output, but you optimize performance only for
2563
+ * large data transfers.</p>
2564
+ * <p>Note that Bulk API 2.0 does not transfer Salesforce compound fields.</p>
2565
+ * </dd>
2566
+ * <dt>REST_SYNC</dt>
2567
+ * <dd>
2568
+ * <p>Amazon AppFlow uses only Salesforce REST API. By choosing this option, you
2569
+ * ensure that your flow writes consistent output, but you decrease performance for large
2570
+ * data transfers that are better suited for Bulk API 2.0. In some cases, if your flow
2571
+ * attempts to transfer a vary large set of data, it might fail with a timed out
2572
+ * error.</p>
2573
+ * </dd>
2574
+ * </dl>
2575
+ */
2576
+ dataTransferApi?: SalesforceDataTransferApi | string;
2527
2577
  }
2528
2578
  /**
2529
2579
  * <p>Determines how Amazon AppFlow handles the success response that it gets from the
@@ -2869,6 +2919,46 @@ export interface SalesforceSourceProperties {
2869
2919
  * <p> Indicates whether Amazon AppFlow includes deleted files in the flow run. </p>
2870
2920
  */
2871
2921
  includeDeletedRecords?: boolean;
2922
+ /**
2923
+ * <p>Specifies which Salesforce API is used by Amazon AppFlow when your flow transfers
2924
+ * data from Salesforce.</p>
2925
+ * <dl>
2926
+ * <dt>AUTOMATIC</dt>
2927
+ * <dd>
2928
+ * <p>The default. Amazon AppFlow selects which API to use based on the number of
2929
+ * records that your flow transfers from Salesforce. If your flow transfers fewer than
2930
+ * 1,000,000 records, Amazon AppFlow uses Salesforce REST API. If your flow transfers
2931
+ * 1,000,000 records or more, Amazon AppFlow uses Salesforce Bulk API 2.0.</p>
2932
+ * <p>Each of these Salesforce APIs structures data differently. If Amazon AppFlow
2933
+ * selects the API automatically, be aware that, for recurring flows, the data output might
2934
+ * vary from one flow run to the next. For example, if a flow runs daily, it might use REST
2935
+ * API on one day to transfer 900,000 records, and it might use Bulk API 2.0 on the next
2936
+ * day to transfer 1,100,000 records. For each of these flow runs, the respective
2937
+ * Salesforce API formats the data differently. Some of the differences include how dates
2938
+ * are formatted and null values are represented. Also, Bulk API 2.0 doesn't transfer
2939
+ * Salesforce compound fields.</p>
2940
+ * <p>By choosing this option, you optimize flow performance for both small and large data
2941
+ * transfers, but the tradeoff is inconsistent formatting in the output.</p>
2942
+ * </dd>
2943
+ * <dt>BULKV2</dt>
2944
+ * <dd>
2945
+ * <p>Amazon AppFlow uses only Salesforce Bulk API 2.0. This API runs asynchronous
2946
+ * data transfers, and it's optimal for large sets of data. By choosing this option, you
2947
+ * ensure that your flow writes consistent output, but you optimize performance only for
2948
+ * large data transfers.</p>
2949
+ * <p>Note that Bulk API 2.0 does not transfer Salesforce compound fields.</p>
2950
+ * </dd>
2951
+ * <dt>REST_SYNC</dt>
2952
+ * <dd>
2953
+ * <p>Amazon AppFlow uses only Salesforce REST API. By choosing this option, you
2954
+ * ensure that your flow writes consistent output, but you decrease performance for large
2955
+ * data transfers that are better suited for Bulk API 2.0. In some cases, if your flow
2956
+ * attempts to transfer a vary large set of data, it might fail with a timed out
2957
+ * error.</p>
2958
+ * </dd>
2959
+ * </dl>
2960
+ */
2961
+ dataTransferApi?: SalesforceDataTransferApi | string;
2872
2962
  }
2873
2963
  /**
2874
2964
  * <p> The properties that are applied when using SAPOData as a flow source. </p>
@@ -3054,6 +3144,7 @@ export declare enum OperatorPropertiesKeys {
3054
3144
  DATA_TYPE = "DATA_TYPE",
3055
3145
  DESTINATION_DATA_TYPE = "DESTINATION_DATA_TYPE",
3056
3146
  EXCLUDE_SOURCE_FIELDS_LIST = "EXCLUDE_SOURCE_FIELDS_LIST",
3147
+ INCLUDE_NEW_FIELDS = "INCLUDE_NEW_FIELDS",
3057
3148
  LOWER_BOUND = "LOWER_BOUND",
3058
3149
  MASK_LENGTH = "MASK_LENGTH",
3059
3150
  MASK_VALUE = "MASK_VALUE",
@@ -3136,11 +3227,13 @@ export interface ScheduledTriggerProperties {
3136
3227
  scheduleEndTime?: Date;
3137
3228
  /**
3138
3229
  * <p>Specifies the time zone used when referring to the dates and times of a scheduled flow,
3139
- * such as <code>America/New_York</code>. This time zone is only a descriptive label. It doesn't affect how
3140
- * Amazon AppFlow interprets the timestamps that you specify to schedule the flow.</p>
3141
- * <p>If you want to schedule a flow by using times in a particular time zone, indicate the time zone as a UTC
3142
- * offset in your timestamps. For example, the UTC offsets for the <code>America/New_York</code> timezone are
3143
- * <code>-04:00</code> EDT and <code>-05:00 EST</code>.</p>
3230
+ * such as <code>America/New_York</code>. This time zone is only a descriptive label. It doesn't
3231
+ * affect how Amazon AppFlow interprets the timestamps that you specify to schedule the
3232
+ * flow.</p>
3233
+ * <p>If you want to schedule a flow by using times in a particular time zone, indicate the time
3234
+ * zone as a UTC offset in your timestamps. For example, the UTC offsets for the
3235
+ * <code>America/New_York</code> timezone are <code>-04:00</code> EDT and <code>-05:00
3236
+ * EST</code>.</p>
3144
3237
  */
3145
3238
  timezone?: string;
3146
3239
  /**
@@ -117,8 +117,14 @@ export interface InforNexusMetadata {}
117
117
  export interface MarketoMetadata {}
118
118
  export interface RedshiftMetadata {}
119
119
  export interface S3Metadata {}
120
+ export declare enum SalesforceDataTransferApi {
121
+ AUTOMATIC = "AUTOMATIC",
122
+ BULKV2 = "BULKV2",
123
+ REST_SYNC = "REST_SYNC",
124
+ }
120
125
  export interface SalesforceMetadata {
121
126
  oAuthScopes?: string[];
127
+ dataTransferApis?: (SalesforceDataTransferApi | string)[];
122
128
  }
123
129
  export interface SAPODataMetadata {}
124
130
  export interface ServiceNowMetadata {}
@@ -986,6 +992,7 @@ export interface SalesforceDestinationProperties {
986
992
  idFieldNames?: string[];
987
993
  errorHandlingConfig?: ErrorHandlingConfig;
988
994
  writeOperationType?: WriteOperationType | string;
995
+ dataTransferApi?: SalesforceDataTransferApi | string;
989
996
  }
990
997
  export interface SuccessResponseHandlingConfig {
991
998
  bucketPrefix?: string;
@@ -1079,6 +1086,7 @@ export interface SalesforceSourceProperties {
1079
1086
  object: string | undefined;
1080
1087
  enableDynamicFieldUpdate?: boolean;
1081
1088
  includeDeletedRecords?: boolean;
1089
+ dataTransferApi?: SalesforceDataTransferApi | string;
1082
1090
  }
1083
1091
  export interface SAPODataSourceProperties {
1084
1092
  objectPath?: string;
@@ -1135,6 +1143,7 @@ export declare enum OperatorPropertiesKeys {
1135
1143
  DATA_TYPE = "DATA_TYPE",
1136
1144
  DESTINATION_DATA_TYPE = "DESTINATION_DATA_TYPE",
1137
1145
  EXCLUDE_SOURCE_FIELDS_LIST = "EXCLUDE_SOURCE_FIELDS_LIST",
1146
+ INCLUDE_NEW_FIELDS = "INCLUDE_NEW_FIELDS",
1138
1147
  LOWER_BOUND = "LOWER_BOUND",
1139
1148
  MASK_LENGTH = "MASK_LENGTH",
1140
1149
  MASK_VALUE = "MASK_VALUE",
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.185.0",
4
+ "version": "3.188.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",
@@ -19,41 +19,41 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.185.0",
23
- "@aws-sdk/config-resolver": "3.183.0",
24
- "@aws-sdk/credential-provider-node": "3.185.0",
25
- "@aws-sdk/fetch-http-handler": "3.183.0",
26
- "@aws-sdk/hash-node": "3.183.0",
27
- "@aws-sdk/invalid-dependency": "3.183.0",
28
- "@aws-sdk/middleware-content-length": "3.183.0",
29
- "@aws-sdk/middleware-host-header": "3.183.0",
30
- "@aws-sdk/middleware-logger": "3.183.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.183.0",
32
- "@aws-sdk/middleware-retry": "3.185.0",
33
- "@aws-sdk/middleware-serde": "3.183.0",
34
- "@aws-sdk/middleware-signing": "3.183.0",
35
- "@aws-sdk/middleware-stack": "3.183.0",
36
- "@aws-sdk/middleware-user-agent": "3.183.0",
37
- "@aws-sdk/node-config-provider": "3.183.0",
38
- "@aws-sdk/node-http-handler": "3.185.0",
39
- "@aws-sdk/protocol-http": "3.183.0",
40
- "@aws-sdk/smithy-client": "3.183.0",
41
- "@aws-sdk/types": "3.183.0",
42
- "@aws-sdk/url-parser": "3.183.0",
43
- "@aws-sdk/util-base64-browser": "3.183.0",
44
- "@aws-sdk/util-base64-node": "3.183.0",
45
- "@aws-sdk/util-body-length-browser": "3.183.0",
46
- "@aws-sdk/util-body-length-node": "3.183.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.183.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.183.0",
49
- "@aws-sdk/util-user-agent-browser": "3.183.0",
50
- "@aws-sdk/util-user-agent-node": "3.183.0",
51
- "@aws-sdk/util-utf8-browser": "3.183.0",
52
- "@aws-sdk/util-utf8-node": "3.183.0",
22
+ "@aws-sdk/client-sts": "3.188.0",
23
+ "@aws-sdk/config-resolver": "3.188.0",
24
+ "@aws-sdk/credential-provider-node": "3.188.0",
25
+ "@aws-sdk/fetch-http-handler": "3.188.0",
26
+ "@aws-sdk/hash-node": "3.188.0",
27
+ "@aws-sdk/invalid-dependency": "3.188.0",
28
+ "@aws-sdk/middleware-content-length": "3.188.0",
29
+ "@aws-sdk/middleware-host-header": "3.188.0",
30
+ "@aws-sdk/middleware-logger": "3.188.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.188.0",
32
+ "@aws-sdk/middleware-retry": "3.188.0",
33
+ "@aws-sdk/middleware-serde": "3.188.0",
34
+ "@aws-sdk/middleware-signing": "3.188.0",
35
+ "@aws-sdk/middleware-stack": "3.188.0",
36
+ "@aws-sdk/middleware-user-agent": "3.188.0",
37
+ "@aws-sdk/node-config-provider": "3.188.0",
38
+ "@aws-sdk/node-http-handler": "3.188.0",
39
+ "@aws-sdk/protocol-http": "3.188.0",
40
+ "@aws-sdk/smithy-client": "3.188.0",
41
+ "@aws-sdk/types": "3.188.0",
42
+ "@aws-sdk/url-parser": "3.188.0",
43
+ "@aws-sdk/util-base64-browser": "3.188.0",
44
+ "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-body-length-browser": "3.188.0",
46
+ "@aws-sdk/util-body-length-node": "3.188.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.188.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.188.0",
49
+ "@aws-sdk/util-user-agent-browser": "3.188.0",
50
+ "@aws-sdk/util-user-agent-node": "3.188.0",
51
+ "@aws-sdk/util-utf8-browser": "3.188.0",
52
+ "@aws-sdk/util-utf8-node": "3.188.0",
53
53
  "tslib": "^2.3.1"
54
54
  },
55
55
  "devDependencies": {
56
- "@aws-sdk/service-client-documentation-generator": "3.183.0",
56
+ "@aws-sdk/service-client-documentation-generator": "3.188.0",
57
57
  "@tsconfig/recommended": "1.0.1",
58
58
  "@types/node": "^12.7.5",
59
59
  "concurrently": "7.0.0",