MarketplaceCatalog / Client / put_resource_policy

put_resource_policy#

MarketplaceCatalog.Client.put_resource_policy(**kwargs)#

Attaches a resource-based policy to an entity. Examples of an entity include: AmiProduct and ContainerProduct.

See also: AWS API Documentation

Request Syntax

response = client.put_resource_policy(
    ResourceArn='string',
    Policy='string'
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the entity resource you want to associate with a resource policy.

  • Policy (string) –

    [REQUIRED]

    The policy document to set; formatted in JSON.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • MarketplaceCatalog.Client.exceptions.InternalServiceException

  • MarketplaceCatalog.Client.exceptions.AccessDeniedException

  • MarketplaceCatalog.Client.exceptions.ValidationException

  • MarketplaceCatalog.Client.exceptions.ResourceNotFoundException

  • MarketplaceCatalog.Client.exceptions.ThrottlingException