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
12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 | |