create_data_source
async
¶
create_data_source(
name: Name,
domain_identifier: DomainId,
project_identifier: str,
type: DataSourceType,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = 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/async_data_zone.py
12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 | |