Skip to content
v2.275.0

CfnDataSourceProps Struct ​

Properties for defining a CfnDataSource.

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 ​

dataSourceTypeIResolvable | CfnDataSource.DataSourceTypePropertydata_source_typetyping.Union[IResolvable, DataSourceTypeProperty]dataSourceTypeIResolvableDataSourceTypeIResolvableDataSourceTypeinterface{}required#
The type of data source.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
A description of the data source.
domainNamestringdomain_namestrdomainNameStringDomainNamestringDomainName*stringrequired#
The name of the OpenSearch Service domain.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the data source.