update_asset_owner
async
¶
update_asset_owner(
domain_identifier: DomainId,
identifier: AssetIdentifier,
target_project_identifier: ProjectId,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateAssetOwnerOutput
Transfers the ownership of an asset to another project in the same Amazon DataZone domain. The transfer changes the asset's owning project and moves its published listing, subscriptions, and subscription grants to the target project.
The transfer runs asynchronously, and the operation returns HTTP status code 202. To follow the transfer, call GetAsset and check ownershipTransfer.status until it is SUCCEEDED or FAILED.
You need to be an owner of the project that currently owns the asset. You can transfer an asset from the domain's administration project to any project. You can also transfer an asset from any project to the administration project.
An asset can have only one ownership transfer in progress at a time. While a transfer is in progress, requests that change the asset or its listing fail with a ConflictException.
Parameters:
-
domain_identifier(DomainId) –The ID of the Amazon DataZone domain that contains the asset.
-
identifier(AssetIdentifier) –The ID of the asset whose ownership is transferred.
-
target_project_identifier(ProjectId) –The ID of the project that the asset is transferred to. The project must be in the same domain and must be different from the project that currently owns the asset.
If the domain's administration project owns the asset, the target can be any project. Otherwise, the target must be the administration project.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request while its transfer is in progress, the service returns that transfer and doesn't start a new one. This field is automatically populated if not provided.
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
12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 | |