create_asset
¶
create_asset(
name: AssetName,
domain_identifier: DomainId,
type_identifier: AssetTypeIdentifier,
owning_project_identifier: ProjectId,
*,
config_overrides: Optional[DataZoneClientConfig] = None,
external_identifier: Optional[ExternalIdentifier] = None,
type_revision: Optional[Revision] = None,
description: Optional[Description] = None,
glossary_terms: Optional[GlossaryTerms] = None,
forms_input: Optional[FormInputList] = None,
prediction_configuration: Optional[PredictionConfiguration] = None,
client_token: Optional[ClientToken] = None,
) -> CreateAssetOutput
Creates an asset in Amazon DataZone catalog.
Before creating assets, make sure that the following requirements are met:
-
--domain-identifiermust refer to an existing domain. -
--owning-project-identifiermust be a valid project within the domain. -
Asset type must be created beforehand using
create-asset-type, or be a supported system-defined type. For more information, see create-asset-type. -
--type-revision(if used) must match a valid revision of the asset type. -
formsInputis required when it is associated as required in theasset-type. For more information, see create-form-type. -
Form content must include all required fields as per the form schema (e.g.,
bucketArn).
You must invoke the following pre-requisite commands before invoking this API:
Parameters:
-
name(AssetName) –Asset name.
-
domain_identifier(DomainId) –Amazon DataZone domain where the asset is created.
-
external_identifier(Optional[ExternalIdentifier], default:None) –The external identifier of the asset.
If the value for the
externalIdentifierparameter is specified, it must be a unique value. -
type_identifier(AssetTypeIdentifier) –The unique identifier of this asset's type.
-
type_revision(Optional[Revision], default:None) –The revision of this asset's type.
-
description(Optional[Description], default:None) –Asset description.
-
glossary_terms(Optional[GlossaryTerms], default:None) –Glossary terms attached to the asset.
-
forms_input(Optional[FormInputList], default:None) –Metadata forms attached to the asset.
-
owning_project_identifier(ProjectId) –The unique identifier of the project that owns this asset.
-
prediction_configuration(Optional[PredictionConfiguration], default:None) –The configuration of the automatically generated business-friendly metadata for the asset.
-
client_token(Optional[ClientToken], 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
11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 | |