create_data_source
¶
create_data_source(
name: Name,
domain_identifier: DomainId,
project_identifier: str,
type: DataSourceType,
*,
config_overrides: Optional[DataZoneClientConfig] = None,
description: Optional[Description] = None,
environment_identifier: Optional[str] = None,
connection_identifier: Optional[str] = None,
configuration: Optional[DataSourceConfigurationInput] = None,
recommendation: Optional[RecommendationConfiguration] = None,
enable_setting: Optional[EnableSetting] = None,
schedule: Optional[ScheduleConfiguration] = None,
publish_on_import: Optional[bool] = None,
asset_forms_input: Optional[FormInputList] = None,
client_token: Optional[str] = None,
) -> CreateDataSourceOutput
Creates an Amazon DataZone data source.
Parameters:
-
name(Name) –The name of the data source.
-
description(Optional[Description], default:None) –The description of the data source.
-
domain_identifier(DomainId) –The ID of the Amazon DataZone domain where the data source is created.
-
project_identifier(str) –The identifier of the Amazon DataZone project in which you want to add this data source.
-
environment_identifier(Optional[str], default:None) –The unique identifier of the Amazon DataZone environment to which the data source publishes assets.
-
connection_identifier(Optional[str], default:None) –The ID of the connection.
-
type(DataSourceType) –The type of the data source. 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 Amazon Web Services Glue and Amazon Redshift.
-
configuration(Optional[DataSourceConfigurationInput], default:None) –Specifies the configuration of the data source. It can be set to either
glueRunConfigurationorredshiftRunConfiguration. -
recommendation(Optional[RecommendationConfiguration], default:None) –Specifies whether the business name generation is to be enabled for this data source.
-
enable_setting(Optional[EnableSetting], default:None) –Specifies whether the data source is enabled.
-
schedule(Optional[ScheduleConfiguration], default:None) –The schedule of the data source runs.
-
publish_on_import(Optional[bool], default:None) –Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.
-
asset_forms_input(Optional[FormInputList], default:None) –The metadata forms that are to be attached to the assets that this data source works with.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
ConflictException–There is a conflict while performing this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The specified resource cannot be found.
-
ServiceQuotaExceededException–The request has exceeded the specified service quota.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/data_zone.py
12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 | |