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
12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 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 | |