:doc:`MediaConnect <../../mediaconnect>` / Client / remove_flow_media_stream

************************
remove_flow_media_stream
************************



.. py:method:: MediaConnect.Client.remove_flow_media_stream(**kwargs)

  

  Removes a media stream from a flow. This action is only available if the media stream is not associated with a source or output.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RemoveFlowMediaStream>`_  


  **Request Syntax**
  ::

    response = client.remove_flow_media_stream(
        FlowArn='string',
        MediaStreamName='string'
    )
    
  :type FlowArn: string
  :param FlowArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the flow that you want to update.

    

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

    The name of the media stream that you want to remove.

    

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

    
    ::

      {
          'FlowArn': 'string',
          'MediaStreamName': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **FlowArn** *(string) --* 

        The ARN of the flow that was updated.

        
      

      - **MediaStreamName** *(string) --* 

        The name of the media stream that was removed.

        
  
  **Exceptions**
  
  *   :py:class:`MediaConnect.Client.exceptions.BadRequestException`

  
  *   :py:class:`MediaConnect.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`MediaConnect.Client.exceptions.ForbiddenException`

  
  *   :py:class:`MediaConnect.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`MediaConnect.Client.exceptions.NotFoundException`

  
  *   :py:class:`MediaConnect.Client.exceptions.ServiceUnavailableException`

  