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_datazone as datazone } from 'aws-cdk-lib';
const cfnDataSourceProps: datazone.CfnDataSourceProps = {
  domainIdentifier: 'domainIdentifier',
  name: 'name',
  projectIdentifier: 'projectIdentifier',
  type: 'type',

  // the properties below are optional
  assetFormsInput: [{
    formName: 'formName',

    // the properties below are optional
    content: 'content',
    typeIdentifier: 'typeIdentifier',
    typeRevision: 'typeRevision',
  }],
  configuration: {
    glueRunConfiguration: {
      relationalFilterConfigurations: [{
        databaseName: 'databaseName',

        // the properties below are optional
        filterExpressions: [{
          expression: 'expression',
          type: 'type',
        }],
        schemaName: 'schemaName',
      }],

      // the properties below are optional
      autoImportDataQualityResult: false,
      catalogName: 'catalogName',
      dataAccessRole: 'dataAccessRole',
    },
    redshiftRunConfiguration: {
      relationalFilterConfigurations: [{
        databaseName: 'databaseName',

        // the properties below are optional
        filterExpressions: [{
          expression: 'expression',
          type: 'type',
        }],
        schemaName: 'schemaName',
      }],

      // the properties below are optional
      dataAccessRole: 'dataAccessRole',
      redshiftCredentialConfiguration: {
        secretManagerArn: 'secretManagerArn',
      },
      redshiftStorage: {
        redshiftClusterSource: {
          clusterName: 'clusterName',
        },
        redshiftServerlessSource: {
          workgroupName: 'workgroupName',
        },
      },
    },
    sageMakerRunConfiguration: {
      trackingAssets: {
        trackingAssetsKey: ['trackingAssets'],
      },
    },
  },
  connectionIdentifier: 'connectionIdentifier',
  description: 'description',
  enableSetting: 'enableSetting',
  environmentIdentifier: 'environmentIdentifier',
  publishOnImport: false,
  recommendation: {
    enableBusinessNameGeneration: false,
  },
  schedule: {
    schedule: 'schedule',
    timezone: 'timezone',
  },
};
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_datazone as datazone

cfn_data_source_props = datazone.CfnDataSourceProps(
    domain_identifier="domainIdentifier",
    name="name",
    project_identifier="projectIdentifier",
    type="type",

    # the properties below are optional
    asset_forms_input=[datazone.CfnDataSource.FormInputProperty(
        form_name="formName",

        # the properties below are optional
        content="content",
        type_identifier="typeIdentifier",
        type_revision="typeRevision"
    )],
    configuration=datazone.CfnDataSource.DataSourceConfigurationInputProperty(
        glue_run_configuration=datazone.CfnDataSource.GlueRunConfigurationInputProperty(
            relational_filter_configurations=[datazone.CfnDataSource.RelationalFilterConfigurationProperty(
                database_name="databaseName",

                # the properties below are optional
                filter_expressions=[datazone.CfnDataSource.FilterExpressionProperty(
                    expression="expression",
                    type="type"
                )],
                schema_name="schemaName"
            )],

            # the properties below are optional
            auto_import_data_quality_result=False,
            catalog_name="catalogName",
            data_access_role="dataAccessRole"
        ),
        redshift_run_configuration=datazone.CfnDataSource.RedshiftRunConfigurationInputProperty(
            relational_filter_configurations=[datazone.CfnDataSource.RelationalFilterConfigurationProperty(
                database_name="databaseName",

                # the properties below are optional
                filter_expressions=[datazone.CfnDataSource.FilterExpressionProperty(
                    expression="expression",
                    type="type"
                )],
                schema_name="schemaName"
            )],

            # the properties below are optional
            data_access_role="dataAccessRole",
            redshift_credential_configuration=datazone.CfnDataSource.RedshiftCredentialConfigurationProperty(
                secret_manager_arn="secretManagerArn"
            ),
            redshift_storage=datazone.CfnDataSource.RedshiftStorageProperty(
                redshift_cluster_source=datazone.CfnDataSource.RedshiftClusterStorageProperty(
                    cluster_name="clusterName"
                ),
                redshift_serverless_source=datazone.CfnDataSource.RedshiftServerlessStorageProperty(
                    workgroup_name="workgroupName"
                )
            )
        ),
        sage_maker_run_configuration=datazone.CfnDataSource.SageMakerRunConfigurationInputProperty(
            tracking_assets={
                "tracking_assets_key": ["trackingAssets"]
            }
        )
    ),
    connection_identifier="connectionIdentifier",
    description="description",
    enable_setting="enableSetting",
    environment_identifier="environmentIdentifier",
    publish_on_import=False,
    recommendation=datazone.CfnDataSource.RecommendationConfigurationProperty(
        enable_business_name_generation=False
    ),
    schedule=datazone.CfnDataSource.ScheduleConfigurationProperty(
        schedule="schedule",
        timezone="timezone"
    )
)
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.datazone.*;

CfnDataSourceProps cfnDataSourceProps = CfnDataSourceProps.builder()
        .domainIdentifier("domainIdentifier")
        .name("name")
        .projectIdentifier("projectIdentifier")
        .type("type")

        // the properties below are optional
        .assetFormsInput(List.of(FormInputProperty.builder()
                .formName("formName")

                // the properties below are optional
                .content("content")
                .typeIdentifier("typeIdentifier")
                .typeRevision("typeRevision")
                .build()))
        .configuration(DataSourceConfigurationInputProperty.builder()
                .glueRunConfiguration(GlueRunConfigurationInputProperty.builder()
                        .relationalFilterConfigurations(List.of(RelationalFilterConfigurationProperty.builder()
                                .databaseName("databaseName")

                                // the properties below are optional
                                .filterExpressions(List.of(FilterExpressionProperty.builder()
                                        .expression("expression")
                                        .type("type")
                                        .build()))
                                .schemaName("schemaName")
                                .build()))

                        // the properties below are optional
                        .autoImportDataQualityResult(false)
                        .catalogName("catalogName")
                        .dataAccessRole("dataAccessRole")
                        .build())
                .redshiftRunConfiguration(RedshiftRunConfigurationInputProperty.builder()
                        .relationalFilterConfigurations(List.of(RelationalFilterConfigurationProperty.builder()
                                .databaseName("databaseName")

                                // the properties below are optional
                                .filterExpressions(List.of(FilterExpressionProperty.builder()
                                        .expression("expression")
                                        .type("type")
                                        .build()))
                                .schemaName("schemaName")
                                .build()))

                        // the properties below are optional
                        .dataAccessRole("dataAccessRole")
                        .redshiftCredentialConfiguration(RedshiftCredentialConfigurationProperty.builder()
                                .secretManagerArn("secretManagerArn")
                                .build())
                        .redshiftStorage(RedshiftStorageProperty.builder()
                                .redshiftClusterSource(RedshiftClusterStorageProperty.builder()
                                        .clusterName("clusterName")
                                        .build())
                                .redshiftServerlessSource(RedshiftServerlessStorageProperty.builder()
                                        .workgroupName("workgroupName")
                                        .build())
                                .build())
                        .build())
                .sageMakerRunConfiguration(SageMakerRunConfigurationInputProperty.builder()
                        .trackingAssets(Map.of(
                                "trackingAssetsKey", List.of("trackingAssets")))
                        .build())
                .build())
        .connectionIdentifier("connectionIdentifier")
        .description("description")
        .enableSetting("enableSetting")
        .environmentIdentifier("environmentIdentifier")
        .publishOnImport(false)
        .recommendation(RecommendationConfigurationProperty.builder()
                .enableBusinessNameGeneration(false)
                .build())
        .schedule(ScheduleConfigurationProperty.builder()
                .schedule("schedule")
                .timezone("timezone")
                .build())
        .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.DataZone;

var cfnDataSourceProps = new CfnDataSourceProps {
    DomainIdentifier = "domainIdentifier",
    Name = "name",
    ProjectIdentifier = "projectIdentifier",
    Type = "type",

    // the properties below are optional
    AssetFormsInput = new [] { new FormInputProperty {
        FormName = "formName",

        // the properties below are optional
        Content = "content",
        TypeIdentifier = "typeIdentifier",
        TypeRevision = "typeRevision"
    } },
    Configuration = new DataSourceConfigurationInputProperty {
        GlueRunConfiguration = new GlueRunConfigurationInputProperty {
            RelationalFilterConfigurations = new [] { new RelationalFilterConfigurationProperty {
                DatabaseName = "databaseName",

                // the properties below are optional
                FilterExpressions = new [] { new FilterExpressionProperty {
                    Expression = "expression",
                    Type = "type"
                } },
                SchemaName = "schemaName"
            } },

            // the properties below are optional
            AutoImportDataQualityResult = false,
            CatalogName = "catalogName",
            DataAccessRole = "dataAccessRole"
        },
        RedshiftRunConfiguration = new RedshiftRunConfigurationInputProperty {
            RelationalFilterConfigurations = new [] { new RelationalFilterConfigurationProperty {
                DatabaseName = "databaseName",

                // the properties below are optional
                FilterExpressions = new [] { new FilterExpressionProperty {
                    Expression = "expression",
                    Type = "type"
                } },
                SchemaName = "schemaName"
            } },

            // the properties below are optional
            DataAccessRole = "dataAccessRole",
            RedshiftCredentialConfiguration = new RedshiftCredentialConfigurationProperty {
                SecretManagerArn = "secretManagerArn"
            },
            RedshiftStorage = new RedshiftStorageProperty {
                RedshiftClusterSource = new RedshiftClusterStorageProperty {
                    ClusterName = "clusterName"
                },
                RedshiftServerlessSource = new RedshiftServerlessStorageProperty {
                    WorkgroupName = "workgroupName"
                }
            }
        },
        SageMakerRunConfiguration = new SageMakerRunConfigurationInputProperty {
            TrackingAssets = new Dictionary<string, string[]> {
                { "trackingAssetsKey", new [] { "trackingAssets" } }
            }
        }
    },
    ConnectionIdentifier = "connectionIdentifier",
    Description = "description",
    EnableSetting = "enableSetting",
    EnvironmentIdentifier = "environmentIdentifier",
    PublishOnImport = false,
    Recommendation = new RecommendationConfigurationProperty {
        EnableBusinessNameGeneration = false
    },
    Schedule = new ScheduleConfigurationProperty {
        Schedule = "schedule",
        Timezone = "timezone"
    }
};
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{
	DomainIdentifier: jsii.String("domainIdentifier"),
	Name: jsii.String("name"),
	ProjectIdentifier: jsii.String("projectIdentifier"),
	Type: jsii.String("type"),

	// the properties below are optional
	AssetFormsInput: []interface{}{
		&FormInputProperty{
			FormName: jsii.String("formName"),

			// the properties below are optional
			Content: jsii.String("content"),
			TypeIdentifier: jsii.String("typeIdentifier"),
			TypeRevision: jsii.String("typeRevision"),
		},
	},
	Configuration: &DataSourceConfigurationInputProperty{
		GlueRunConfiguration: &GlueRunConfigurationInputProperty{
			RelationalFilterConfigurations: []interface{}{
				&RelationalFilterConfigurationProperty{
					DatabaseName: jsii.String("databaseName"),

					// the properties below are optional
					FilterExpressions: []interface{}{
						&FilterExpressionProperty{
							Expression: jsii.String("expression"),
							Type: jsii.String("type"),
						},
					},
					SchemaName: jsii.String("schemaName"),
				},
			},

			// the properties below are optional
			AutoImportDataQualityResult: jsii.Boolean(false),
			CatalogName: jsii.String("catalogName"),
			DataAccessRole: jsii.String("dataAccessRole"),
		},
		RedshiftRunConfiguration: &RedshiftRunConfigurationInputProperty{
			RelationalFilterConfigurations: []interface{}{
				&RelationalFilterConfigurationProperty{
					DatabaseName: jsii.String("databaseName"),

					// the properties below are optional
					FilterExpressions: []interface{}{
						&FilterExpressionProperty{
							Expression: jsii.String("expression"),
							Type: jsii.String("type"),
						},
					},
					SchemaName: jsii.String("schemaName"),
				},
			},

			// the properties below are optional
			DataAccessRole: jsii.String("dataAccessRole"),
			RedshiftCredentialConfiguration: &RedshiftCredentialConfigurationProperty{
				SecretManagerArn: jsii.String("secretManagerArn"),
			},
			RedshiftStorage: &RedshiftStorageProperty{
				RedshiftClusterSource: &RedshiftClusterStorageProperty{
					ClusterName: jsii.String("clusterName"),
				},
				RedshiftServerlessSource: &RedshiftServerlessStorageProperty{
					WorkgroupName: jsii.String("workgroupName"),
				},
			},
		},
		SageMakerRunConfiguration: &SageMakerRunConfigurationInputProperty{
			TrackingAssets: map[string][]*string{
				"trackingAssetsKey": []*string{
					jsii.String("trackingAssets"),
				},
			},
		},
	},
	ConnectionIdentifier: jsii.String("connectionIdentifier"),
	Description: jsii.String("description"),
	EnableSetting: jsii.String("enableSetting"),
	EnvironmentIdentifier: jsii.String("environmentIdentifier"),
	PublishOnImport: jsii.Boolean(false),
	Recommendation: &RecommendationConfigurationProperty{
		EnableBusinessNameGeneration: jsii.Boolean(false),
	},
	Schedule: &ScheduleConfigurationProperty{
		Schedule: jsii.String("schedule"),
		Timezone: jsii.String("timezone"),
	},
}

Properties ​

assetFormsInputoptionalIResolvable | IResolvable | CfnDataSource.FormInputProperty[]asset_forms_inputoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FormInputProperty]]]assetFormsInputoptionalIResolvableAssetFormsInputoptionalIResolvableAssetFormsInputoptionalinterface{} #
The metadata forms attached to the assets that the data source works with.
configurationoptionalIResolvable | CfnDataSource.DataSourceConfigurationInputPropertyconfigurationoptionaltyping.Union[IResolvable, DataSourceConfigurationInputProperty]configurationoptionalIResolvableConfigurationoptionalIResolvableConfigurationoptionalinterface{} #
The configuration of the data source.
connectionIdentifieroptionalstringconnection_identifieroptionalstrconnectionIdentifieroptionalStringConnectionIdentifieroptionalstringConnectionIdentifieroptional*string #
The unique identifier of a connection used to fetch relevant parameters from connection during Datasource run.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the data source.
domainIdentifierstringdomain_identifierstrdomainIdentifierStringDomainIdentifierstringDomainIdentifier*string required #
The ID of the Amazon DataZone domain where the data source is created.
enableSettingoptionalstringenable_settingoptionalstrenableSettingoptionalStringEnableSettingoptionalstringEnableSettingoptional*string #
Specifies whether the data source is enabled.
environmentIdentifieroptionalstringenvironment_identifieroptionalstrenvironmentIdentifieroptionalStringEnvironmentIdentifieroptionalstringEnvironmentIdentifieroptional*string #
The unique identifier of the Amazon DataZone environment to which the data source publishes assets.
namestringnamestrnameStringNamestringName*string required #
The name of the data source.
projectIdentifierstringproject_identifierstrprojectIdentifierStringProjectIdentifierstringProjectIdentifier*string required #
The identifier of the Amazon DataZone project in which you want to add this data source.
publishOnImportoptionalboolean | IResolvablepublish_on_importoptionaltyping.Union[bool, IResolvable]publishOnImportoptionalBooleanPublishOnImportoptionalboolPublishOnImportoptionalinterface{} #
Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.
recommendationoptionalIResolvable | CfnDataSource.RecommendationConfigurationPropertyrecommendationoptionaltyping.Union[IResolvable, RecommendationConfigurationProperty]recommendationoptionalIResolvableRecommendationoptionalIResolvableRecommendationoptionalinterface{} #
Specifies whether the business name generation is to be enabled for this data source.
scheduleoptionalIResolvable | CfnDataSource.ScheduleConfigurationPropertyscheduleoptionaltyping.Union[IResolvable, ScheduleConfigurationProperty]scheduleoptionalIResolvableScheduleoptionalIResolvableScheduleoptionalinterface{} #
The schedule of the data source runs.
typestringtypestrtypeStringTypestringType*string required #
The type of the data source.
notes

In Amazon DataZone, you can use data sources to import technical metadata of assets (data) from the source databases or data warehouses into Amazon DataZone. In the current release of Amazon DataZone, you can create and run data sources for AWS Glue and Amazon Redshift.