:doc:`CleanRoomsML <../../cleanroomsml>` / Client / put_configured_audience_model_policy

************************************
put_configured_audience_model_policy
************************************



.. py:method:: CleanRoomsML.Client.put_configured_audience_model_policy(**kwargs)

  

  Create or update the resource policy for a configured audience model.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cleanroomsml-2023-09-06/PutConfiguredAudienceModelPolicy>`_  


  **Request Syntax**
  ::

    response = client.put_configured_audience_model_policy(
        configuredAudienceModelArn='string',
        configuredAudienceModelPolicy='string',
        previousPolicyHash='string',
        policyExistenceCondition='POLICY_MUST_EXIST'|'POLICY_MUST_NOT_EXIST'
    )
    
  :type configuredAudienceModelArn: string
  :param configuredAudienceModelArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the configured audience model that the resource policy will govern.

    

  
  :type configuredAudienceModelPolicy: string
  :param configuredAudienceModelPolicy: **[REQUIRED]** 

    The IAM resource policy.

    

  
  :type previousPolicyHash: string
  :param previousPolicyHash: 

    A cryptographic hash of the contents of the policy used to prevent unexpected concurrent modification of the policy.

    

  
  :type policyExistenceCondition: string
  :param policyExistenceCondition: 

    Use this to prevent unexpected concurrent modification of the policy.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'configuredAudienceModelPolicy': 'string',
          'policyHash': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **configuredAudienceModelPolicy** *(string) --* 

        The IAM resource policy.

        
      

      - **policyHash** *(string) --* 

        A cryptographic hash of the contents of the policy used to prevent unexpected concurrent modification of the policy.

        
  
  **Exceptions**
  
  *   :py:class:`CleanRoomsML.Client.exceptions.ValidationException`

  
  *   :py:class:`CleanRoomsML.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`CleanRoomsML.Client.exceptions.ResourceNotFoundException`

  