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

*********************
list_tenant_resources
*********************



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

  

  List all resources associated with a specific tenant.

   

  This operation returns a list of resources (email identities, configuration sets, or email templates) that are associated with the specified tenant. You can optionally filter the results by resource type.

  

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


  **Request Syntax**
  ::

    response = client.list_tenant_resources(
        TenantName='string',
        Filter={
            'string': 'string'
        },
        PageSize=123,
        NextToken='string'
    )
    
  :type TenantName: string
  :param TenantName: **[REQUIRED]** 

    The name of the tenant to list resources for.

    

  
  :type Filter: dict
  :param Filter: 

    A map of filter keys and values for filtering the list of tenant resources. Currently, the only supported filter key is ``RESOURCE_TYPE``.

    

  
    - *(string) --* 

      The key used to filter tenant resources. Currently, the only supported filter key is ``RESOURCE_TYPE``.

      

    
      - *(string) --* 

        The value used to filter tenant resources. When filtering by ``RESOURCE_TYPE``, valid values are ``EMAIL_IDENTITY``, ``CONFIGURATION_SET``, or ``EMAIL_TEMPLATE``.

        

      


  :type PageSize: integer
  :param PageSize: 

    The number of results to show in a single call to ``ListTenantResources``. If the number of results is larger than the number you specified in this parameter, then the response includes a ``NextToken`` element, which you can use to obtain additional results.

    

  
  :type NextToken: string
  :param NextToken: 

    A token returned from a previous call to ``ListTenantResources`` to indicate the position in the list of tenant resources.

    

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

    
    ::

      {
          'TenantResources': [
              {
                  'ResourceType': 'EMAIL_IDENTITY'|'CONFIGURATION_SET'|'EMAIL_TEMPLATE',
                  'ResourceArn': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Information about resources associated with a specific tenant.

      
      

      - **TenantResources** *(list) --* 

        An array that contains information about each resource associated with the tenant.

        
        

        - *(dict) --* 

          A structure that contains information about a resource associated with a tenant.

          
          

          - **ResourceType** *(string) --* 

            The type of resource associated with the tenant. Valid values are ``EMAIL_IDENTITY``, ``CONFIGURATION_SET``, or ``EMAIL_TEMPLATE``.

            
          

          - **ResourceArn** *(string) --* 

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

            
      
    
      

      - **NextToken** *(string) --* 

        A token that indicates that there are additional resources to list. To view additional resources, issue another request to ``ListTenantResources``, and pass this token in the ``NextToken`` parameter.

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

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

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

  