:doc:`Backup <../../backup>` / Client / put_backup_vault_access_policy

******************************
put_backup_vault_access_policy
******************************



.. py:method:: Backup.Client.put_backup_vault_access_policy(**kwargs)

  

  Sets a resource-based policy that is used to manage access permissions on the target backup vault. Requires a backup vault name and an access policy document in JSON format.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultAccessPolicy>`_  


  **Request Syntax**
  ::

    response = client.put_backup_vault_access_policy(
        BackupVaultName='string',
        Policy='string'
    )
    
  :type BackupVaultName: string
  :param BackupVaultName: **[REQUIRED]** 

    The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.

    

  
  :type Policy: string
  :param Policy: 

    The backup vault access policy document in JSON format.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Backup.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Backup.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Backup.Client.exceptions.MissingParameterValueException`

  
  *   :py:class:`Backup.Client.exceptions.ServiceUnavailableException`

  