:doc:`ElasticsearchService <../../es>` / Client / dissociate_package

******************
dissociate_package
******************



.. py:method:: ElasticsearchService.Client.dissociate_package(**kwargs)

  

  Dissociates a package from the Amazon ES domain.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DissociatePackage>`_  


  **Request Syntax**
  ::

    response = client.dissociate_package(
        PackageID='string',
        DomainName='string'
    )
    
  :type PackageID: string
  :param PackageID: **[REQUIRED]** 

    Internal ID of the package that you want to associate with a domain. Use ``DescribePackages`` to find this value.

    

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

    Name of the domain that you want to associate the package with.

    

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

    
    ::

      {
          'DomainPackageDetails': {
              'PackageID': 'string',
              'PackageName': 'string',
              'PackageType': 'TXT-DICTIONARY',
              'LastUpdated': datetime(2015, 1, 1),
              'DomainName': 'string',
              'DomainPackageStatus': 'ASSOCIATING'|'ASSOCIATION_FAILED'|'ACTIVE'|'DISSOCIATING'|'DISSOCIATION_FAILED',
              'PackageVersion': 'string',
              'ReferencePath': 'string',
              'ErrorDetails': {
                  'ErrorType': 'string',
                  'ErrorMessage': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Container for response returned by ``DissociatePackage`` operation.

      
      

      - **DomainPackageDetails** *(dict) --* 

        ``DomainPackageDetails``

        
        

        - **PackageID** *(string) --* 

          Internal ID of the package.

          
        

        - **PackageName** *(string) --* 

          User specified name of the package.

          
        

        - **PackageType** *(string) --* 

          Currently supports only TXT-DICTIONARY.

          
        

        - **LastUpdated** *(datetime) --* 

          Timestamp of the most-recent update to the association status.

          
        

        - **DomainName** *(string) --* 

          Name of the domain you've associated a package with.

          
        

        - **DomainPackageStatus** *(string) --* 

          State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED.

          
        

        - **PackageVersion** *(string) --* 
        

        - **ReferencePath** *(string) --* 

          The relative path on Amazon ES nodes, which can be used as synonym_path when the package is synonym file.

          
        

        - **ErrorDetails** *(dict) --* 

          Additional information if the package is in an error state. Null otherwise.

          
          

          - **ErrorType** *(string) --* 
          

          - **ErrorMessage** *(string) --* 
      
    
  
  **Exceptions**
  
  *   :py:class:`ElasticsearchService.Client.exceptions.BaseException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.InternalException`

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

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

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

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

  