Class CfnDataSource
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.datazone.CfnDataSource
- All Implemented Interfaces:
IInspectable,IDataSourceRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:36.069Z")
@Stability(Stable)
public class CfnDataSource
extends CfnResource
implements IInspectable, IDataSourceRef
The
AWS::DataZone::DataSource resource specifies an Amazon DataZone data source that is used to import technical metadata of assets (data) from the source databases or data warehouses into Amazon DataZone.
Example:
// 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.*;
CfnDataSource cfnDataSource = CfnDataSource.Builder.create(this, "MyCfnDataSource")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDataSource.static interfaceThe configuration of the data source.static interfaceA filter expression in Amazon DataZone.static interfaceThe details of a metadata form.static interfaceThe configuration details of the AWS Glue data source.static interfaceThe recommendation configuration for the data source.static interfaceThe details of the Amazon Redshift cluster storage.static interfaceThe details of the credentials required to access an Amazon Redshift cluster.static interfaceThe relational filter configurations included in the configuration details of the Amazon Redshift data source.static interfaceThe details of the Amazon Redshift Serverless workgroup storage.static interfaceThe details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.static interfaceThe relational filter configuration for the data source.static interfaceThe configuration details of the Amazon SageMaker data source.static interfaceThe details of the schedule of the data source runs.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.datazone.IDataSourceRef
IDataSourceRef.Jsii$Default, IDataSourceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDataSource(software.amazon.jsii.JsiiObjectRef objRef) CfnDataSource(software.constructs.Construct scope, String id, CfnDataSourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe metadata forms attached to the assets that the data source works with.The connection ID that's part of the data source summary.The timestamp of when the data source was created.The ID of the Amazon DataZone domain in which the data source exists.The ID of the environment in which the data source exists.The identifier of the data source run.The count of the assets created during the last data source run.The timestamp of when the data source run was last performed.The status of the last data source run.The project ID included in the data source run activity.The status of the data source.The timestamp of when the data source was updated.The configuration of the data source.The unique identifier of a connection used to fetch relevant parameters from connection during Datasource run.A reference to a DataSource resource.The description of the data source.The ID of the Amazon DataZone domain where the data source is created.Specifies whether the data source is enabled.The unique identifier of the Amazon DataZone environment to which the data source publishes assets.getName()The name of the data source.The identifier of the Amazon DataZone project in which you want to add this data source.Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.Specifies whether the business name generation is to be enabled for this data source.The schedule of the data source runs.getType()The type of the data source.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAssetFormsInput(List<Object> value) The metadata forms attached to the assets that the data source works with.voidsetAssetFormsInput(IResolvable value) The metadata forms attached to the assets that the data source works with.voidsetConfiguration(IResolvable value) The configuration of the data source.voidThe configuration of the data source.voidsetConnectionIdentifier(String value) The unique identifier of a connection used to fetch relevant parameters from connection during Datasource run.voidsetDescription(String value) The description of the data source.voidsetDomainIdentifier(String value) The ID of the Amazon DataZone domain where the data source is created.voidsetEnableSetting(String value) Specifies whether the data source is enabled.voidsetEnvironmentIdentifier(String value) The unique identifier of the Amazon DataZone environment to which the data source publishes assets.voidThe name of the data source.voidsetProjectIdentifier(String value) The identifier of the Amazon DataZone project in which you want to add this data source.voidsetPublishOnImport(Boolean value) Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.voidsetPublishOnImport(IResolvable value) Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.voidsetRecommendation(IResolvable value) Specifies whether the business name generation is to be enabled for this data source.voidSpecifies whether the business name generation is to be enabled for this data source.voidsetSchedule(IResolvable value) The schedule of the data source runs.voidThe schedule of the data source runs.voidThe type of the data source.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDataSource
protected CfnDataSource(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDataSource
protected CfnDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDataSource
@Stability(Stable) public CfnDataSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDataSourceProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrConnectionId
The connection ID that's part of the data source summary. -
getAttrCreatedAt
The timestamp of when the data source was created. -
getAttrDomainId
The ID of the Amazon DataZone domain in which the data source exists. -
getAttrEnvironmentId
The ID of the environment in which the data source exists. -
getAttrId
The identifier of the data source run. -
getAttrLastRunAssetCount
The count of the assets created during the last data source run. -
getAttrLastRunAt
The timestamp of when the data source run was last performed. -
getAttrLastRunStatus
The status of the last data source run. -
getAttrProjectId
The project ID included in the data source run activity. -
getAttrStatus
The status of the data source. -
getAttrUpdatedAt
The timestamp of when the data source was updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDataSourceRef
A reference to a DataSource resource.- Specified by:
getDataSourceRefin interfaceIDataSourceRef
-
getDomainIdentifier
The ID of the Amazon DataZone domain where the data source is created. -
setDomainIdentifier
The ID of the Amazon DataZone domain where the data source is created. -
getName
The name of the data source. -
setName
The name of the data source. -
getProjectIdentifier
The identifier of the Amazon DataZone project in which you want to add this data source. -
setProjectIdentifier
The identifier of the Amazon DataZone project in which you want to add this data source. -
getType
The type of the data source. -
setType
The type of the data source. -
getAssetFormsInput
The metadata forms attached to the assets that the data source works with.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataSource.FormInputProperty> -
setAssetFormsInput
The metadata forms attached to the assets that the data source works with. -
setAssetFormsInput
The metadata forms attached to the assets that the data source works with. -
getConfiguration
The configuration of the data source.Returns union: either
IResolvableorCfnDataSource.DataSourceConfigurationInputProperty -
setConfiguration
The configuration of the data source. -
setConfiguration
@Stability(Stable) public void setConfiguration(@Nullable CfnDataSource.DataSourceConfigurationInputProperty value) The configuration of the data source. -
getConnectionIdentifier
The unique identifier of a connection used to fetch relevant parameters from connection during Datasource run. -
setConnectionIdentifier
The unique identifier of a connection used to fetch relevant parameters from connection during Datasource run. -
getDescription
The description of the data source. -
setDescription
The description of the data source. -
getEnableSetting
Specifies whether the data source is enabled. -
setEnableSetting
Specifies whether the data source is enabled. -
getEnvironmentIdentifier
The unique identifier of the Amazon DataZone environment to which the data source publishes assets. -
setEnvironmentIdentifier
The unique identifier of the Amazon DataZone environment to which the data source publishes assets. -
getPublishOnImport
Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.Returns union: either
BooleanorIResolvable -
setPublishOnImport
Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog. -
setPublishOnImport
Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog. -
getRecommendation
Specifies whether the business name generation is to be enabled for this data source.Returns union: either
IResolvableorCfnDataSource.RecommendationConfigurationProperty -
setRecommendation
Specifies whether the business name generation is to be enabled for this data source. -
setRecommendation
@Stability(Stable) public void setRecommendation(@Nullable CfnDataSource.RecommendationConfigurationProperty value) Specifies whether the business name generation is to be enabled for this data source. -
getSchedule
The schedule of the data source runs.Returns union: either
IResolvableorCfnDataSource.ScheduleConfigurationProperty -
setSchedule
The schedule of the data source runs. -
setSchedule
@Stability(Stable) public void setSchedule(@Nullable CfnDataSource.ScheduleConfigurationProperty value) The schedule of the data source runs.
-