@aws-sdk/client-appflow 3.215.0 → 3.218.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.
@@ -6,7 +6,7 @@ exports.ruleSet = {
6
6
  parameters: {
7
7
  Region: {
8
8
  builtIn: "AWS::Region",
9
- required: false,
9
+ required: true,
10
10
  documentation: "The AWS region used to dispatch the request.",
11
11
  type: "String",
12
12
  },
@@ -459,7 +459,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
459
459
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
460
460
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
461
461
  const query = map({
462
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
462
+ tagKeys: [
463
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
464
+ () => (input.tagKeys || []).map((_entry) => _entry),
465
+ ],
463
466
  });
464
467
  let body;
465
468
  return new protocol_http_1.HttpRequest({
@@ -2320,8 +2323,13 @@ const serializeAws_restJson1RedshiftConnectorProfileProperties = (input, context
2320
2323
  return {
2321
2324
  ...(input.bucketName != null && { bucketName: input.bucketName }),
2322
2325
  ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2326
+ ...(input.clusterIdentifier != null && { clusterIdentifier: input.clusterIdentifier }),
2327
+ ...(input.dataApiRoleArn != null && { dataApiRoleArn: input.dataApiRoleArn }),
2328
+ ...(input.databaseName != null && { databaseName: input.databaseName }),
2323
2329
  ...(input.databaseUrl != null && { databaseUrl: input.databaseUrl }),
2330
+ ...(input.isRedshiftServerless != null && { isRedshiftServerless: input.isRedshiftServerless }),
2324
2331
  ...(input.roleArn != null && { roleArn: input.roleArn }),
2332
+ ...(input.workgroupName != null && { workgroupName: input.workgroupName }),
2325
2333
  };
2326
2334
  };
2327
2335
  const serializeAws_restJson1RedshiftDestinationProperties = (input, context) => {
@@ -3731,8 +3739,13 @@ const deserializeAws_restJson1RedshiftConnectorProfileProperties = (output, cont
3731
3739
  return {
3732
3740
  bucketName: (0, smithy_client_1.expectString)(output.bucketName),
3733
3741
  bucketPrefix: (0, smithy_client_1.expectString)(output.bucketPrefix),
3742
+ clusterIdentifier: (0, smithy_client_1.expectString)(output.clusterIdentifier),
3743
+ dataApiRoleArn: (0, smithy_client_1.expectString)(output.dataApiRoleArn),
3744
+ databaseName: (0, smithy_client_1.expectString)(output.databaseName),
3734
3745
  databaseUrl: (0, smithy_client_1.expectString)(output.databaseUrl),
3746
+ isRedshiftServerless: (0, smithy_client_1.expectBoolean)(output.isRedshiftServerless),
3735
3747
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3748
+ workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
3736
3749
  };
3737
3750
  };
3738
3751
  const deserializeAws_restJson1RedshiftDestinationProperties = (output, context) => {
@@ -3,7 +3,7 @@ export const ruleSet = {
3
3
  parameters: {
4
4
  Region: {
5
5
  builtIn: "AWS::Region",
6
- required: false,
6
+ required: true,
7
7
  documentation: "The AWS region used to dispatch the request.",
8
8
  type: "String",
9
9
  },
@@ -437,7 +437,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
437
437
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
438
438
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
439
439
  const query = map({
440
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
440
+ tagKeys: [
441
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
442
+ () => (input.tagKeys || []).map((_entry) => _entry),
443
+ ],
441
444
  });
442
445
  let body;
443
446
  return new __HttpRequest({
@@ -2271,8 +2274,13 @@ const serializeAws_restJson1RedshiftConnectorProfileProperties = (input, context
2271
2274
  return {
2272
2275
  ...(input.bucketName != null && { bucketName: input.bucketName }),
2273
2276
  ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2277
+ ...(input.clusterIdentifier != null && { clusterIdentifier: input.clusterIdentifier }),
2278
+ ...(input.dataApiRoleArn != null && { dataApiRoleArn: input.dataApiRoleArn }),
2279
+ ...(input.databaseName != null && { databaseName: input.databaseName }),
2274
2280
  ...(input.databaseUrl != null && { databaseUrl: input.databaseUrl }),
2281
+ ...(input.isRedshiftServerless != null && { isRedshiftServerless: input.isRedshiftServerless }),
2275
2282
  ...(input.roleArn != null && { roleArn: input.roleArn }),
2283
+ ...(input.workgroupName != null && { workgroupName: input.workgroupName }),
2276
2284
  };
2277
2285
  };
2278
2286
  const serializeAws_restJson1RedshiftDestinationProperties = (input, context) => {
@@ -3682,8 +3690,13 @@ const deserializeAws_restJson1RedshiftConnectorProfileProperties = (output, cont
3682
3690
  return {
3683
3691
  bucketName: __expectString(output.bucketName),
3684
3692
  bucketPrefix: __expectString(output.bucketPrefix),
3693
+ clusterIdentifier: __expectString(output.clusterIdentifier),
3694
+ dataApiRoleArn: __expectString(output.dataApiRoleArn),
3695
+ databaseName: __expectString(output.databaseName),
3685
3696
  databaseUrl: __expectString(output.databaseUrl),
3697
+ isRedshiftServerless: __expectBoolean(output.isRedshiftServerless),
3686
3698
  roleArn: __expectString(output.roleArn),
3699
+ workgroupName: __expectString(output.workgroupName),
3687
3700
  };
3688
3701
  };
3689
3702
  const deserializeAws_restJson1RedshiftDestinationProperties = (output, context) => {
@@ -169,8 +169,9 @@ export declare class Appflow extends AppflowClient {
169
169
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
170
170
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
171
171
  /**
172
- * <p>Registers a new custom connector with your Amazon Web Services account. Before you can register
173
- * the connector, you must deploy the associated AWS lambda function in your account.</p>
172
+ * <p>Registers a new custom connector with your Amazon Web Services account. Before you can
173
+ * register the connector, you must deploy the associated AWS lambda function in your
174
+ * account.</p>
174
175
  */
175
176
  registerConnector(args: RegisterConnectorCommandInput, options?: __HttpHandlerOptions): Promise<RegisterConnectorCommandOutput>;
176
177
  registerConnector(args: RegisterConnectorCommandInput, cb: (err: any, data?: RegisterConnectorCommandOutput) => void): void;
@@ -197,8 +198,8 @@ export declare class Appflow extends AppflowClient {
197
198
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
198
199
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
199
200
  /**
200
- * <p>Unregisters the custom connector registered in your account that matches the
201
- * connector label provided in the request.</p>
201
+ * <p>Unregisters the custom connector registered in your account that matches the connector
202
+ * label provided in the request.</p>
202
203
  */
203
204
  unregisterConnector(args: UnregisterConnectorCommandInput, options?: __HttpHandlerOptions): Promise<UnregisterConnectorCommandOutput>;
204
205
  unregisterConnector(args: UnregisterConnectorCommandInput, cb: (err: any, data?: UnregisterConnectorCommandOutput) => void): void;
@@ -216,7 +217,8 @@ export declare class Appflow extends AppflowClient {
216
217
  updateConnectorProfile(args: UpdateConnectorProfileCommandInput, cb: (err: any, data?: UpdateConnectorProfileCommandOutput) => void): void;
217
218
  updateConnectorProfile(args: UpdateConnectorProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectorProfileCommandOutput) => void): void;
218
219
  /**
219
- * <p>Updates a custom connector that you've previously registered. This operation updates the connector with one of the following:</p>
220
+ * <p>Updates a custom connector that you've previously registered. This operation updates the
221
+ * connector with one of the following:</p>
220
222
  * <ul>
221
223
  * <li>
222
224
  * <p>The latest version of the AWS Lambda function that's assigned to the connector</p>
@@ -8,8 +8,9 @@ export interface RegisterConnectorCommandInput extends RegisterConnectorRequest
8
8
  export interface RegisterConnectorCommandOutput extends RegisterConnectorResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Registers a new custom connector with your Amazon Web Services account. Before you can register
12
- * the connector, you must deploy the associated AWS lambda function in your account.</p>
11
+ * <p>Registers a new custom connector with your Amazon Web Services account. Before you can
12
+ * register the connector, you must deploy the associated AWS lambda function in your
13
+ * account.</p>
13
14
  * @example
14
15
  * Use a bare-bones client and the command you need to make an API call.
15
16
  * ```javascript
@@ -8,8 +8,8 @@ export interface UnregisterConnectorCommandInput extends UnregisterConnectorRequ
8
8
  export interface UnregisterConnectorCommandOutput extends UnregisterConnectorResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Unregisters the custom connector registered in your account that matches the
12
- * connector label provided in the request.</p>
11
+ * <p>Unregisters the custom connector registered in your account that matches the connector
12
+ * label provided in the request.</p>
13
13
  * @example
14
14
  * Use a bare-bones client and the command you need to make an API call.
15
15
  * ```javascript
@@ -8,7 +8,8 @@ export interface UpdateConnectorRegistrationCommandInput extends UpdateConnector
8
8
  export interface UpdateConnectorRegistrationCommandOutput extends UpdateConnectorRegistrationResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Updates a custom connector that you've previously registered. This operation updates the connector with one of the following:</p>
11
+ * <p>Updates a custom connector that you've previously registered. This operation updates the
12
+ * connector with one of the following:</p>
12
13
  * <ul>
13
14
  * <li>
14
15
  * <p>The latest version of the AWS Lambda function that's assigned to the connector</p>
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -1416,7 +1416,7 @@ export interface RedshiftConnectorProfileProperties {
1416
1416
  /**
1417
1417
  * <p> The JDBC URL of the Amazon Redshift cluster. </p>
1418
1418
  */
1419
- databaseUrl: string | undefined;
1419
+ databaseUrl?: string;
1420
1420
  /**
1421
1421
  * <p> A name for the associated Amazon S3 bucket. </p>
1422
1422
  */
@@ -1427,9 +1427,34 @@ export interface RedshiftConnectorProfileProperties {
1427
1427
  */
1428
1428
  bucketPrefix?: string;
1429
1429
  /**
1430
- * <p> The Amazon Resource Name (ARN) of the IAM role. </p>
1430
+ * <p> The Amazon Resource Name (ARN) of IAM role that grants Amazon Redshift
1431
+ * read-only access to Amazon S3. For more information, and for the polices that you
1432
+ * attach to this role, see <a href="https://docs.aws.amazon.com/appflow/latest/userguide/security_iam_service-role-policies.html#redshift-access-s3">Allow Amazon Redshift to access your Amazon AppFlow data in Amazon S3</a>.</p>
1431
1433
  */
1432
1434
  roleArn: string | undefined;
1435
+ /**
1436
+ * <p>The Amazon Resource Name (ARN) of an IAM role that permits Amazon AppFlow to access your Amazon Redshift database through the Data API. For more
1437
+ * information, and for the polices that you attach to this role, see <a href="https://docs.aws.amazon.com/appflow/latest/userguide/security_iam_service-role-policies.html#access-redshift">Allow Amazon AppFlow to access Amazon Redshift databases with the Data
1438
+ * API</a>.</p>
1439
+ */
1440
+ dataApiRoleArn?: string;
1441
+ /**
1442
+ * <p>Indicates whether the connector profile defines a connection to an Amazon Redshift
1443
+ * Serverless data warehouse.</p>
1444
+ */
1445
+ isRedshiftServerless?: boolean;
1446
+ /**
1447
+ * <p>The unique ID that's assigned to an Amazon Redshift cluster.</p>
1448
+ */
1449
+ clusterIdentifier?: string;
1450
+ /**
1451
+ * <p>The name of an Amazon Redshift workgroup.</p>
1452
+ */
1453
+ workgroupName?: string;
1454
+ /**
1455
+ * <p>The name of an Amazon Redshift database.</p>
1456
+ */
1457
+ databaseName?: string;
1433
1458
  }
1434
1459
  /**
1435
1460
  * <p> The connector-specific profile properties required when using Salesforce. </p>
@@ -1925,11 +1950,11 @@ export interface RedshiftConnectorProfileCredentials {
1925
1950
  /**
1926
1951
  * <p> The name of the user. </p>
1927
1952
  */
1928
- username: string | undefined;
1953
+ username?: string;
1929
1954
  /**
1930
1955
  * <p> The password that corresponds to the user name. </p>
1931
1956
  */
1932
- password: string | undefined;
1957
+ password?: string;
1933
1958
  }
1934
1959
  /**
1935
1960
  * <p> The connector-specific profile credentials required when using Salesforce. </p>
@@ -2188,7 +2213,7 @@ export interface ConnectorProfileConfig {
2188
2213
  /**
2189
2214
  * <p> The connector-specific credentials required by each connector. </p>
2190
2215
  */
2191
- connectorProfileCredentials: ConnectorProfileCredentials | undefined;
2216
+ connectorProfileCredentials?: ConnectorProfileCredentials;
2192
2217
  }
2193
2218
  /**
2194
2219
  * <p> An error occurred when retrieving data from the connector endpoint. </p>
@@ -2460,7 +2485,8 @@ export interface PrefixConfig {
2460
2485
  */
2461
2486
  prefixType?: PrefixType | string;
2462
2487
  /**
2463
- * <p>Determines the level of granularity for the date and time that's included in the prefix. </p>
2488
+ * <p>Determines the level of granularity for the date and time that's included in the prefix.
2489
+ * </p>
2464
2490
  */
2465
2491
  prefixFormat?: PrefixFormat | string;
2466
2492
  /**
@@ -2881,8 +2907,8 @@ export interface GlueDataCatalogConfig {
2881
2907
  */
2882
2908
  export interface MetadataCatalogConfig {
2883
2909
  /**
2884
- * <p>Specifies the configuration that Amazon AppFlow uses when it catalogs your data with the
2885
- * Glue Data Catalog.</p>
2910
+ * <p>Specifies the configuration that Amazon AppFlow uses when it catalogs your data with
2911
+ * the Glue Data Catalog.</p>
2886
2912
  */
2887
2913
  glueDataCatalog?: GlueDataCatalogConfig;
2888
2914
  }
@@ -3669,7 +3695,7 @@ export interface MetadataCatalogDetail {
3669
3695
  /**
3670
3696
  * <p>Describes the status of the attempt from Amazon AppFlow to register the data
3671
3697
  * partitions with the metadata catalog. The data partitions organize the flow output into a
3672
- * hierarchical path, such as a folder path in an S3 bucket. Amazon AppFlow creates the
3698
+ * hierarchical path, such as a folder path in an S3 bucket. Amazon AppFlow creates the
3673
3699
  * partitions (if they don't already exist) based on your flow configuration.</p>
3674
3700
  */
3675
3701
  partitionRegistrationOutput?: RegistrationOutput;
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -666,10 +666,15 @@ export interface MarketoConnectorProfileProperties {
666
666
  instanceUrl: string | undefined;
667
667
  }
668
668
  export interface RedshiftConnectorProfileProperties {
669
- databaseUrl: string | undefined;
669
+ databaseUrl?: string;
670
670
  bucketName: string | undefined;
671
671
  bucketPrefix?: string;
672
672
  roleArn: string | undefined;
673
+ dataApiRoleArn?: string;
674
+ isRedshiftServerless?: boolean;
675
+ clusterIdentifier?: string;
676
+ workgroupName?: string;
677
+ databaseName?: string;
673
678
  }
674
679
  export interface SalesforceConnectorProfileProperties {
675
680
  instanceUrl?: string;
@@ -811,8 +816,8 @@ export interface MarketoConnectorProfileCredentials {
811
816
  oAuthRequest?: ConnectorOAuthRequest;
812
817
  }
813
818
  export interface RedshiftConnectorProfileCredentials {
814
- username: string | undefined;
815
- password: string | undefined;
819
+ username?: string;
820
+ password?: string;
816
821
  }
817
822
  export interface SalesforceConnectorProfileCredentials {
818
823
  accessToken?: string;
@@ -883,7 +888,7 @@ export interface ConnectorProfileCredentials {
883
888
  }
884
889
  export interface ConnectorProfileConfig {
885
890
  connectorProfileProperties: ConnectorProfileProperties | undefined;
886
- connectorProfileCredentials: ConnectorProfileCredentials | undefined;
891
+ connectorProfileCredentials?: ConnectorProfileCredentials;
887
892
  }
888
893
  export declare class ConnectorServerException extends __BaseException {
889
894
  readonly name: "ConnectorServerException";
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.215.0",
4
+ "version": "3.218.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,9 +19,9 @@
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.215.0",
22
+ "@aws-sdk/client-sts": "3.218.0",
23
23
  "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.215.0",
24
+ "@aws-sdk/credential-provider-node": "3.218.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.215.0",
26
26
  "@aws-sdk/hash-node": "3.215.0",
27
27
  "@aws-sdk/invalid-dependency": "3.215.0",
@@ -46,7 +46,7 @@
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.215.0",
48
48
  "@aws-sdk/util-defaults-mode-node": "3.215.0",
49
- "@aws-sdk/util-endpoints": "3.215.0",
49
+ "@aws-sdk/util-endpoints": "3.216.0",
50
50
  "@aws-sdk/util-user-agent-browser": "3.215.0",
51
51
  "@aws-sdk/util-user-agent-node": "3.215.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",