:doc:`WorkSpaces <../../workspaces>` / Client / describe_bundle_associations

****************************
describe_bundle_associations
****************************



.. py:method:: WorkSpaces.Client.describe_bundle_associations(**kwargs)

  

  Describes the associations between the applications and the specified bundle.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeBundleAssociations>`_  


  **Request Syntax**
  ::

    response = client.describe_bundle_associations(
        BundleId='string',
        AssociatedResourceTypes=[
            'APPLICATION',
        ]
    )
    
  :type BundleId: string
  :param BundleId: **[REQUIRED]** 

    The identifier of the bundle.

    

  
  :type AssociatedResourceTypes: list
  :param AssociatedResourceTypes: **[REQUIRED]** 

    The resource types of the associated resource.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'Associations': [
              {
                  'AssociatedResourceId': 'string',
                  'AssociatedResourceType': 'APPLICATION',
                  'BundleId': 'string',
                  'Created': datetime(2015, 1, 1),
                  'LastUpdatedTime': datetime(2015, 1, 1),
                  'State': 'PENDING_INSTALL'|'PENDING_INSTALL_DEPLOYMENT'|'PENDING_UNINSTALL'|'PENDING_UNINSTALL_DEPLOYMENT'|'INSTALLING'|'UNINSTALLING'|'ERROR'|'COMPLETED'|'REMOVED',
                  'StateReason': {
                      'ErrorCode': 'ValidationError.InsufficientDiskSpace'|'ValidationError.InsufficientMemory'|'ValidationError.UnsupportedOperatingSystem'|'DeploymentError.InternalServerError'|'DeploymentError.WorkspaceUnreachable'|'ValidationError.ApplicationOldVersionExists',
                      'ErrorMessage': 'string'
                  }
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Associations** *(list) --* 

        List of information about the specified associations.

        
        

        - *(dict) --* 

          Describes the association between an application and a bundle resource.

          
          

          - **AssociatedResourceId** *(string) --* 

            The identifier of the associated resource.

            
          

          - **AssociatedResourceType** *(string) --* 

            The resource type of the associated resources.

            
          

          - **BundleId** *(string) --* 

            The identifier of the bundle.

            
          

          - **Created** *(datetime) --* 

            The time the association is created.

            
          

          - **LastUpdatedTime** *(datetime) --* 

            The time the association status was last updated.

            
          

          - **State** *(string) --* 

            The status of the bundle resource association.

            
          

          - **StateReason** *(dict) --* 

            The reason the association deployment failed.

            
            

            - **ErrorCode** *(string) --* 

              The error code of the association deployment failure.

              
            

            - **ErrorMessage** *(string) --* 

              The error message of the association deployment failure.

              
        
      
    
  
  **Exceptions**
  
  *   :py:class:`WorkSpaces.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.InvalidParameterValuesException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.OperationNotSupportedException`

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

  