# DataSourceTypeProperty

The type of data source.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```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 dataSourceTypeProperty: opensearch.CfnDataSource.DataSourceTypeProperty = {
  s3GlueDataCatalog: {
    roleArn: 'roleArn',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearch as opensearch

data_source_type_property = opensearch.CfnDataSource.DataSourceTypeProperty(
    s3_glue_data_catalog=opensearch.CfnDataSource.S3GlueDataCatalogProperty(
        role_arn="roleArn"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearch.*;

DataSourceTypeProperty dataSourceTypeProperty = DataSourceTypeProperty.builder()
        .s3GlueDataCatalog(S3GlueDataCatalogProperty.builder()
                .roleArn("roleArn")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearch;

var dataSourceTypeProperty = new DataSourceTypeProperty {
    S3GlueDataCatalog = new S3GlueDataCatalogProperty {
        RoleArn = "roleArn"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dataSourceTypeProperty := &DataSourceTypeProperty{
	S3GlueDataCatalog: &S3GlueDataCatalogProperty{
		RoleArn: jsii.String("roleArn"),
	},
}
```

## Properties

- `s3GlueDataCatalog`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.S3GlueDataCatalogProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opensearch.CfnDataSource.S3GlueDataCatalogProperty.html) — Configuration for an S3 Glue Data Catalog data source.
