:doc:`ECS <../../ecs>` / Client / submit_attachment_state_changes

*******************************
submit_attachment_state_changes
*******************************



.. py:method:: ECS.Client.submit_attachment_state_changes(**kwargs)

  

  .. note::

    

    This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

    

   

  Sent to acknowledge that an attachment changed states.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitAttachmentStateChanges>`_  


  **Request Syntax**
  ::

    response = client.submit_attachment_state_changes(
        cluster='string',
        attachments=[
            {
                'attachmentArn': 'string',
                'status': 'string'
            },
        ]
    )
    
  :type cluster: string
  :param cluster: 

    The short name or full ARN of the cluster that hosts the container instance the attachment belongs to.

    

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

    Any attachments associated with the state change request.

    

  
    - *(dict) --* 

      An object representing a change in state for a task attachment.

      

    
      - **attachmentArn** *(string) --* **[REQUIRED]** 

        The Amazon Resource Name (ARN) of the attachment.

        

      
      - **status** *(string) --* **[REQUIRED]** 

        The status of the attachment.

        

      
    

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

    
    ::

      {
          'acknowledgment': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **acknowledgment** *(string) --* 

        Acknowledgement of the state change.

        
  
  **Exceptions**
  
  *   :py:class:`ECS.Client.exceptions.ServerException`

  
  *   :py:class:`ECS.Client.exceptions.ClientException`

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

  
  *   :py:class:`ECS.Client.exceptions.InvalidParameterException`

  