DataSourceConfigurationInputProperty Struct
The configuration of the data source.
| Source | |
|---|---|
| Type last changed |
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 dataSourceConfigurationInputProperty: datazone.CfnDataSource.DataSourceConfigurationInputProperty = {
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'],
},
},
};
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
data_source_configuration_input_property = 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"]
}
)
)
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.*;
DataSourceConfigurationInputProperty dataSourceConfigurationInputProperty = 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();
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 dataSourceConfigurationInputProperty = 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" } }
}
}
};
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"
dataSourceConfigurationInputProperty := &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"),
},
},
},
}
Properties
glueRunConfigurationoptionalIResolvable | CfnDataSource.glue_run_configurationoptionaltyping.Union[IResolvable, GlueRunConfigurationInputProperty]glueRunConfigurationoptionalIResolvableGlueRunConfigurationoptionalIResolvableGlueRunConfigurationoptionalinterface{} #The configuration of the AWS Glue data source.
redshiftRunConfigurationoptionalIResolvable | CfnDataSource.redshift_run_configurationoptionaltyping.Union[IResolvable, RedshiftRunConfigurationInputProperty]redshiftRunConfigurationoptionalIResolvableRedshiftRunConfigurationoptionalIResolvableRedshiftRunConfigurationoptionalinterface{} #The configuration of the Amazon Redshift data source.
sageMakerRunConfigurationoptionalIResolvable | CfnDataSource.sage_maker_run_configurationoptionaltyping.Union[IResolvable, SageMakerRunConfigurationInputProperty]sageMakerRunConfigurationoptionalIResolvableSageMakerRunConfigurationoptionalIResolvableSageMakerRunConfigurationoptionalinterface{} #The configuration details of the Amazon SageMaker data source.