:doc:`Route53 <../../route53>` / Client / activate_key_signing_key

************************
activate_key_signing_key
************************



.. py:method:: Route53.Client.activate_key_signing_key(**kwargs)

  

  Activates a key-signing key (KSK) so that it can be used for signing by DNSSEC. This operation changes the KSK status to ``ACTIVE``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ActivateKeySigningKey>`_  


  **Request Syntax**
  ::

    response = client.activate_key_signing_key(
        HostedZoneId='string',
        Name='string'
    )
    
  :type HostedZoneId: string
  :param HostedZoneId: **[REQUIRED]** 

    A unique string used to identify a hosted zone.

    

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

    A string used to identify a key-signing key (KSK). ``Name`` can include numbers, letters, and underscores (_). ``Name`` must be unique for each key-signing key in the same hosted zone.

    

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

    
    ::

      {
          'ChangeInfo': {
              'Id': 'string',
              'Status': 'PENDING'|'INSYNC',
              'SubmittedAt': datetime(2015, 1, 1),
              'Comment': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ChangeInfo** *(dict) --* 

        A complex type that describes change information about changes made to your hosted zone.

        
        

        - **Id** *(string) --* 

          This element contains an ID that you use when performing a `GetChange <https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetChange.html>`__ action to get detailed information about the change.

          
        

        - **Status** *(string) --* 

          The current state of the request. ``PENDING`` indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

          
        

        - **SubmittedAt** *(datetime) --* 

          The date and time that the change request was submitted in `ISO 8601 format <https://en.wikipedia.org/wiki/ISO_8601>`__ and Coordinated Universal Time (UTC). For example, the value ``2017-03-27T17:48:16.751Z`` represents March 27, 2017 at 17:48:16.751 UTC.

          
        

        - **Comment** *(string) --* 

          A comment you can provide.

          
    
  
  **Exceptions**
  
  *   :py:class:`Route53.Client.exceptions.ConcurrentModification`

  
  *   :py:class:`Route53.Client.exceptions.NoSuchKeySigningKey`

  
  *   :py:class:`Route53.Client.exceptions.InvalidKeySigningKeyStatus`

  
  *   :py:class:`Route53.Client.exceptions.InvalidSigningStatus`

  
  *   :py:class:`Route53.Client.exceptions.InvalidKMSArn`

  
  *   :py:class:`Route53.Client.exceptions.InvalidInput`

  