create_asset
async
¶
create_asset(
name: AssetName,
domain_identifier: DomainId,
type_identifier: AssetTypeIdentifier,
owning_project_identifier: ProjectId,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = 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/async_data_zone.py
11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 | |