:doc:`SESV2 <../../sesv2>` / Client / create_tenant_resource_association

**********************************
create_tenant_resource_association
**********************************



.. py:method:: SESV2.Client.create_tenant_resource_association(**kwargs)

  

  Associate a resource with a tenant.

   

  *Resources* can be email identities, configuration sets, or email templates. When you associate a resource with a tenant, you can use that resource when sending emails on behalf of that tenant.

   

  A single resource can be associated with multiple tenants, allowing for resource sharing across different tenants while maintaining isolation in email sending operations.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/CreateTenantResourceAssociation>`_  


  **Request Syntax**
  ::

    response = client.create_tenant_resource_association(
        TenantName='string',
        ResourceArn='string'
    )
    
  :type TenantName: string
  :param TenantName: **[REQUIRED]** 

    The name of the tenant to associate the resource with.

    

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

    The Amazon Resource Name (ARN) of the resource to associate with the tenant.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

      
  
  **Exceptions**
  
  *   :py:class:`SESV2.Client.exceptions.AlreadyExistsException`

  
  *   :py:class:`SESV2.Client.exceptions.NotFoundException`

  
  *   :py:class:`SESV2.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`SESV2.Client.exceptions.BadRequestException`

  