:doc:`ManagedintegrationsforIoTDeviceManagement <../../iot-managed-integrations>` / Client / create_account_association

**************************
create_account_association
**************************



.. py:method:: ManagedintegrationsforIoTDeviceManagement.Client.create_account_association(**kwargs)

  

  Creates a new account association via the destination id.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-managed-integrations-2025-03-03/CreateAccountAssociation>`_  


  **Request Syntax**
  ::

    response = client.create_account_association(
        ClientToken='string',
        ConnectorDestinationId='string',
        Name='string',
        Description='string',
        Tags={
            'string': 'string'
        },
        GeneralAuthorization={
            'AuthMaterialName': 'string'
        }
    )
    
  :type ClientToken: string
  :param ClientToken: 

    An idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.

    This field is autopopulated if not provided.

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

    The identifier of the connector destination.

    

  
  :type Name: string
  :param Name: 

    The name of the destination for the new account association.

    

  
  :type Description: string
  :param Description: 

    A description of the account association request.

    

  
  :type Tags: dict
  :param Tags: 

    A set of key/value pairs that are used to manage the account association.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type GeneralAuthorization: dict
  :param GeneralAuthorization: 

    The General Authorization reference by authorization material name.

    

  
    - **AuthMaterialName** *(string) --* 

      The name of the authorization material.

      

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

    
    ::

      {
          'OAuthAuthorizationUrl': 'string',
          'AccountAssociationId': 'string',
          'AssociationState': 'ASSOCIATION_IN_PROGRESS'|'ASSOCIATION_FAILED'|'ASSOCIATION_SUCCEEDED'|'ASSOCIATION_DELETING'|'REFRESH_TOKEN_EXPIRED',
          'Arn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **OAuthAuthorizationUrl** *(string) --* 

        Third-party IoT platform OAuth authorization server URL backed with all the required parameters to perform end-user authentication. This field will be empty when using General Authorization flows that do not require OAuth.

        
      

      - **AccountAssociationId** *(string) --* 

        The identifier for the account association request.

        
      

      - **AssociationState** *(string) --* 

        The current state of the account association request.

        
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the account association.

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

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

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

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ConflictException`

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

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

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

  