:doc:`Connect <../../connect>` / Client / associate_security_key

**********************
associate_security_key
**********************



.. py:method:: Connect.Client.associate_security_key(**kwargs)

  

  This API is in preview release for Amazon Connect and is subject to change.

   

  Associates a security key to the instance.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateSecurityKey>`_  


  **Request Syntax**
  ::

    response = client.associate_security_key(
        InstanceId='string',
        Key='string',
        ClientToken='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

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

    A valid security key in PEM format as a String.

    

  
  :type ClientToken: string
  :param ClientToken: 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see `Making retries safe with idempotent APIs <https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/>`__.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'AssociationId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AssociationId** *(string) --* 

        The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

        
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Connect.Client.exceptions.ResourceConflictException`

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

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

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

  