# CfnDataSourceProps

Properties for defining a `CfnDataSource`.

Extends: CfnDataSourceProps
Used as props by: CfnDataSource

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearch as opensearch } from 'aws-cdk-lib';
const cfnDataSourceProps: opensearch.CfnDataSourceProps = {
  dataSourceType: {
    s3GlueDataCatalog: {
      roleArn: 'roleArn',
    },
  },
  domainName: 'domainName',
  name: 'name',

  // the properties below are optional
  description: 'description',
};
```

## Properties

- `dataSourceType`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DataSourceTypeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_opensearch.CfnDataSource.DataSourceTypeProperty.html) (required) — The type of data source.

- `description`: string — A description of the data source.

- `domainName`: string (required) — The name of the OpenSearch Service domain.

- `name`: string (required) — The name of the data source.
