update_asset_owner
¶
update_asset_owner(
domain_identifier: DomainId,
identifier: AssetIdentifier,
target_project_identifier: ProjectId,
*,
config_overrides: Optional[DataZoneClientConfig] = 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/data_zone.py
12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 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 | |