:doc:`ivsrealtime <../../ivs-realtime>` / Client / import_public_key

*****************
import_public_key
*****************



.. py:method:: ivsrealtime.Client.import_public_key(**kwargs)

  

  Import a public key to be used for signing stage participant tokens.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/ImportPublicKey>`_  


  **Request Syntax**
  ::

    response = client.import_public_key(
        publicKeyMaterial='string',
        name='string',
        tags={
            'string': 'string'
        }
    )
    
  :type publicKeyMaterial: string
  :param publicKeyMaterial: **[REQUIRED]** 

    The content of the public key to be imported.

    

  
  :type name: string
  :param name: 

    Name of the public key to be imported.

    

  
  :type tags: dict
  :param tags: 

    Tags attached to the resource. Array of maps, each of the form ``string:string (key:value)``. See `Best practices and strategies <https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html>`__ in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'publicKey': {
              'arn': 'string',
              'name': 'string',
              'publicKeyMaterial': 'string',
              'fingerprint': 'string',
              'tags': {
                  'string': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **publicKey** *(dict) --* 

        The public key that was imported.

        
        

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

          Public key ARN.

          
        

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

          Public key name.

          
        

        - **publicKeyMaterial** *(string) --* 

          Public key material.

          
        

        - **fingerprint** *(string) --* 

          The public key fingerprint, a short string used to identify or verify the full public key.

          
        

        - **tags** *(dict) --* 

          Tags attached to the resource. Array of maps, each of the form ``string:string (key:value)``. See `Best practices and strategies <https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html>`__ in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.

          
          

          - *(string) --* 
            

            - *(string) --* 
      
    
    
  
  **Exceptions**
  
  *   :py:class:`ivsrealtime.Client.exceptions.ValidationException`

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

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

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

  
  *   :py:class:`ivsrealtime.Client.exceptions.PendingVerification`

  