# CfnDataSourceProps

Properties for defining a `CfnDataSource`.

Extends: CfnDataSourceProps
Used as props by: CfnDataSource

- Source: Generated code
- Type last changed: v2.163.0 · 22 Oct 2024

## Example

```ts
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
```

## Properties

- `alternateDataSourceParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DataSourceParametersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.DataSourceParametersProperty.html)[] — A set of alternate data source parameters that you want to share for the credentials stored with this data source.

  The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the `DataSourceParameters` structure that's in the request with the structures in the `AlternateDataSourceParameters` allow list. If the structures are an exact match, the request is allowed to use the credentials from this existing data source. If the `AlternateDataSourceParameters` list is null, the `Credentials` originally used with this `DataSourceParameters` are automatically allowed.

- `awsAccountId`: string — The AWS account ID.

- `credentials`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DataSourceCredentialsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.DataSourceCredentialsProperty.html) — The credentials Amazon Quick Sight that uses to connect to your underlying source.

  Currently, only credentials based on user name and password are supported.

- `dataSourceId`: string — An ID for the data source.

  This ID is unique per AWS Region for each AWS account.

- `dataSourceParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DataSourceParametersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.DataSourceParametersProperty.html) — The parameters that Amazon Quick Sight uses to connect to your underlying source.

- `errorInfo`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DataSourceErrorInfoProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.DataSourceErrorInfoProperty.html) — Error information from the last update or the creation of the data source.

- `folderArns`: string[]

- `name`: string (required) — A display name for the data source.

- `permissions`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.ResourcePermissionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.ResourcePermissionProperty.html)[] — A list of resource permissions on the data source.

- `sslProperties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.SslPropertiesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.SslPropertiesProperty.html) — Secure Socket Layer (SSL) properties that apply when Amazon Quick Sight connects to your underlying source.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Contains a map of the key-value pairs for the resource tag or tags assigned to the data source.

- `type`: string (required) — The type of the data source. To return a list of all data sources, use `ListDataSources` .

  Use `AMAZON_ELASTICSEARCH` for Amazon OpenSearch Service.

- `vpcConnectionProperties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.VpcConnectionPropertiesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.VpcConnectionPropertiesProperty.html) — Use this parameter only when you want Amazon Quick Sight to use a VPC connection when connecting to your underlying source.
