:doc:`CleanRoomsService <../../cleanrooms>` / Client / create_configured_audience_model_association

********************************************
create_configured_audience_model_association
********************************************



.. py:method:: CleanRoomsService.Client.create_configured_audience_model_association(**kwargs)

  

  Provides the details necessary to create a configured audience model association.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cleanrooms-2022-02-17/CreateConfiguredAudienceModelAssociation>`_  


  **Request Syntax**
  ::

    response = client.create_configured_audience_model_association(
        membershipIdentifier='string',
        configuredAudienceModelArn='string',
        configuredAudienceModelAssociationName='string',
        manageResourcePolicies=True|False,
        tags={
            'string': 'string'
        },
        description='string'
    )
    
  :type membershipIdentifier: string
  :param membershipIdentifier: **[REQUIRED]** 

    A unique identifier for one of your memberships for a collaboration. The configured audience model is associated to the collaboration that this membership belongs to. Accepts a membership ID.

    

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

    A unique identifier for the configured audience model that you want to associate.

    

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

    The name of the configured audience model association.

    

  
  :type manageResourcePolicies: boolean
  :param manageResourcePolicies: **[REQUIRED]** 

    When ``TRUE``, indicates that the resource policy for the configured audience model resource being associated is configured for Clean Rooms to manage permissions related to the given collaboration. When ``FALSE``, indicates that the configured audience model resource owner will manage permissions related to the given collaboration.

     

    Setting this to ``TRUE`` requires you to have permissions to create, update, and delete the resource policy for the ``cleanrooms-ml`` resource when you call the  DeleteConfiguredAudienceModelAssociation resource. In addition, if you are the collaboration creator and specify ``TRUE``, you must have the same permissions when you call the  DeleteMember and  DeleteCollaboration APIs.

    

  
  :type tags: dict
  :param tags: 

    An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type description: string
  :param description: 

    A description of the configured audience model association.

    

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

    
    ::

      {
          'configuredAudienceModelAssociation': {
              'id': 'string',
              'arn': 'string',
              'configuredAudienceModelArn': 'string',
              'membershipId': 'string',
              'membershipArn': 'string',
              'collaborationId': 'string',
              'collaborationArn': 'string',
              'name': 'string',
              'manageResourcePolicies': True|False,
              'description': 'string',
              'createTime': datetime(2015, 1, 1),
              'updateTime': datetime(2015, 1, 1)
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **configuredAudienceModelAssociation** *(dict) --* 

        Information about the configured audience model association.

        
        

        - **id** *(string) --* 

          A unique identifier of the configured audience model association.

          
        

        - **arn** *(string) --* 

          The Amazon Resource Name (ARN) of the configured audience model association.

          
        

        - **configuredAudienceModelArn** *(string) --* 

          The Amazon Resource Name (ARN) of the configured audience model that was used for this configured audience model association.

          
        

        - **membershipId** *(string) --* 

          A unique identifier for the membership that contains this configured audience model association.

          
        

        - **membershipArn** *(string) --* 

          The Amazon Resource Name (ARN) of the membership that contains this configured audience model association.

          
        

        - **collaborationId** *(string) --* 

          A unique identifier of the collaboration that contains this configured audience model association.

          
        

        - **collaborationArn** *(string) --* 

          The Amazon Resource Name (ARN) of the collaboration that contains this configured audience model association.

          
        

        - **name** *(string) --* 

          The name of the configured audience model association.

          
        

        - **manageResourcePolicies** *(boolean) --* 

          When ``TRUE``, indicates that the resource policy for the configured audience model resource being associated is configured for Clean Rooms to manage permissions related to the given collaboration. When ``FALSE``, indicates that the configured audience model resource owner will manage permissions related to the given collaboration.

          
        

        - **description** *(string) --* 

          The description of the configured audience model association.

          
        

        - **createTime** *(datetime) --* 

          The time at which the configured audience model association was created.

          
        

        - **updateTime** *(datetime) --* 

          The most recent time at which the configured audience model association was updated.

          
    
  
  **Exceptions**
  
  *   :py:class:`CleanRoomsService.Client.exceptions.ConflictException`

  
  *   :py:class:`CleanRoomsService.Client.exceptions.ServiceQuotaExceededException`

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

  
  *   :py:class:`CleanRoomsService.Client.exceptions.InternalServerException`

  
  *   :py:class:`CleanRoomsService.Client.exceptions.ValidationException`

  
  *   :py:class:`CleanRoomsService.Client.exceptions.ThrottlingException`

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

  