:doc:`AppStream <../../appstream>` / Client / associate_application_fleet

***************************
associate_application_fleet
***************************



.. py:method:: AppStream.Client.associate_application_fleet(**kwargs)

  

  Associates the specified application with the specified fleet. This is only supported for Elastic fleets.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateApplicationFleet>`_  


  **Request Syntax**
  ::

    response = client.associate_application_fleet(
        FleetName='string',
        ApplicationArn='string'
    )
    
  :type FleetName: string
  :param FleetName: **[REQUIRED]** 

    The name of the fleet.

    

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

    The ARN of the application.

    

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

    
    ::

      {
          'ApplicationFleetAssociation': {
              'FleetName': 'string',
              'ApplicationArn': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ApplicationFleetAssociation** *(dict) --* 

        If fleet name is specified, this returns the list of applications that are associated to it. If application ARN is specified, this returns the list of fleets to which it is associated.

        
        

        - **FleetName** *(string) --* 

          The name of the fleet associated with the application.

          
        

        - **ApplicationArn** *(string) --* 

          The ARN of the application associated with the fleet.

          
    
  
  **Exceptions**
  
  *   :py:class:`AppStream.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`AppStream.Client.exceptions.LimitExceededException`

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

  
  *   :py:class:`AppStream.Client.exceptions.InvalidParameterCombinationException`

  
  *   :py:class:`AppStream.Client.exceptions.OperationNotPermittedException`

  