put_product_sharing_policy
async
¶
put_product_sharing_policy(
product_id: ProductId,
policy_document: PolicyDocument,
*,
config_overrides: Optional[AsyncAPIPortalClientConfig] = None,
tags: Optional[Tags] = None,
) -> None
Creates or replaces the sharing policy of a product. The policy controls which other accounts can read the product.
Parameters:
-
product_id(ProductId) –The identifier of the product.
-
policy_document(PolicyDocument) –The sharing policy as a JSON resource policy document.
Raises:
-
AccessDeniedException–You do not have permission to perform this operation.
-
BadRequestException–The request is not valid. The message identifies the field or value that failed validation.
-
LimitExceededException–The request rate or a service quota was exceeded. Reduce the request rate or the number of resources and try again.
-
ResourceNotFoundException–The requested resource does not exist, or you do not have access to it.
-
UnknownServiceError–The service returned an error code this client does not model.