:doc:`Panorama <../../panorama>` / Client / create_package

**************
create_package
**************



.. py:method:: Panorama.Client.create_package(**kwargs)

  

  Creates a package and storage location in an Amazon S3 access point.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/panorama-2019-07-24/CreatePackage>`_  


  **Request Syntax**
  ::

    response = client.create_package(
        PackageName='string',
        Tags={
            'string': 'string'
        }
    )
    
  :type PackageName: string
  :param PackageName: **[REQUIRED]** 

    A name for the package.

    

  
  :type Tags: dict
  :param Tags: 

    Tags for the package.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'Arn': 'string',
          'PackageId': 'string',
          'StorageLocation': {
              'BinaryPrefixLocation': 'string',
              'Bucket': 'string',
              'GeneratedPrefixLocation': 'string',
              'ManifestPrefixLocation': 'string',
              'RepoPrefixLocation': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The package's ARN.

        
      

      - **PackageId** *(string) --* 

        The package's ID.

        
      

      - **StorageLocation** *(dict) --* 

        The package's storage location.

        
        

        - **BinaryPrefixLocation** *(string) --* 

          The location's binary prefix.

          
        

        - **Bucket** *(string) --* 

          The location's bucket.

          
        

        - **GeneratedPrefixLocation** *(string) --* 

          The location's generated prefix.

          
        

        - **ManifestPrefixLocation** *(string) --* 

          The location's manifest prefix.

          
        

        - **RepoPrefixLocation** *(string) --* 

          The location's repo prefix.

          
    
  
  **Exceptions**
  
  *   :py:class:`Panorama.Client.exceptions.ConflictException`

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

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

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

  