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
12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 | |