Skip to content
v2.278.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',
};
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

cfn_data_source_props = opensearch.CfnDataSourceProps(
    data_source_type=opensearch.CfnDataSource.DataSourceTypeProperty(
        s3_glue_data_catalog=opensearch.CfnDataSource.S3GlueDataCatalogProperty(
            role_arn="roleArn"
        )
    ),
    domain_name="domainName",
    name="name",

    # the properties below are optional
    description="description"
)
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.*;

CfnDataSourceProps cfnDataSourceProps = CfnDataSourceProps.builder()
        .dataSourceType(DataSourceTypeProperty.builder()
                .s3GlueDataCatalog(S3GlueDataCatalogProperty.builder()
                        .roleArn("roleArn")
                        .build())
                .build())
        .domainName("domainName")
        .name("name")

        // the properties below are optional
        .description("description")
        .build();
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 cfnDataSourceProps = new CfnDataSourceProps {
    DataSourceType = new DataSourceTypeProperty {
        S3GlueDataCatalog = new S3GlueDataCatalogProperty {
            RoleArn = "roleArn"
        }
    },
    DomainName = "domainName",
    Name = "name",

    // the properties below are optional
    Description = "description"
};
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"

cfnDataSourceProps := &CfnDataSourceProps{
	DataSourceType: &DataSourceTypeProperty{
		S3GlueDataCatalog: &S3GlueDataCatalogProperty{
			RoleArn: jsii.String("roleArn"),
		},
	},
	DomainName: jsii.String("domainName"),
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("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*string required #
The name of the OpenSearch Service domain.
namestringnamestrnameStringNamestringName*string required #
The name of the data source.