create_asset_revision
async
¶
create_asset_revision(
name: AssetName,
domain_identifier: DomainId,
identifier: AssetIdentifier,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = 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/async_data_zone.py
11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 | |