:doc:`IoT <../../iot>` / Client / get_package

***********
get_package
***********



.. py:method:: IoT.Client.get_package(**kwargs)

  

  Gets information about the specified software package.

   

  Requires permission to access the `GetPackage <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/GetPackage>`_  


  **Request Syntax**
  ::

    response = client.get_package(
        packageName='string'
    )
    
  :type packageName: string
  :param packageName: **[REQUIRED]** 

    The name of the target software package.

    

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

    
    ::

      {
          'packageName': 'string',
          'packageArn': 'string',
          'description': 'string',
          'defaultVersionName': 'string',
          'creationDate': datetime(2015, 1, 1),
          'lastModifiedDate': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **packageName** *(string) --* 

        The name of the software package.

        
      

      - **packageArn** *(string) --* 

        The ARN for the package.

        
      

      - **description** *(string) --* 

        The package description.

        
      

      - **defaultVersionName** *(string) --* 

        The name of the default package version.

        
      

      - **creationDate** *(datetime) --* 

        The date the package was created.

        
      

      - **lastModifiedDate** *(datetime) --* 

        The date when the package was last updated.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

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

  
  *   :py:class:`IoT.Client.exceptions.ValidationException`

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

  