create_asset_revision
¶
create_asset_revision(
name: AssetName,
domain_identifier: DomainId,
identifier: AssetIdentifier,
*,
config_overrides: Optional[DataZoneClientConfig] = 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,
) -> CreateAssetRevisionOutput
Creates a revision of the asset.
Asset revisions represent new versions of existing assets, capturing changes to either the underlying data or its metadata. They maintain a historical record of how assets evolve over time, who made changes, and when those changes occurred. This versioning capability is crucial for governance and compliance, allowing organizations to track changes, understand their impact, and roll back if necessary.
Prerequisites:
-
Asset must already exist in the domain with identifier.
-
formsInputis required when asset has the form type.typeRevisionshould be the latest version of form type. -
The form content must include all required fields (e.g.,
bucketArnforS3ObjectCollectionForm). -
The owning project of the original asset must still exist and be active.
-
User must have write access to the project and domain.
Parameters:
-
name(AssetName) –Te revised name of the asset.
-
domain_identifier(DomainId) –The unique identifier of the domain where the asset is being revised.
-
identifier(AssetIdentifier) –The identifier of the asset.
-
type_revision(Optional[Revision], default:None) –The revision type of the asset.
-
description(Optional[Description], default:None) –The revised description of the asset.
-
glossary_terms(Optional[GlossaryTerms], default:None) –The glossary terms to be attached to the asset as part of asset revision.
-
forms_input(Optional[FormInputList], default:None) –The metadata forms to be attached to the asset as part of asset revision.
-
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.
-
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
11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 | |