:doc:`Macie2 <../../macie2>` / Client / decline_invitations

*******************
decline_invitations
*******************



.. py:method:: Macie2.Client.decline_invitations(**kwargs)

  

  Declines Amazon Macie membership invitations that were received from specific accounts.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeclineInvitations>`_  


  **Request Syntax**
  ::

    response = client.decline_invitations(
        accountIds=[
            'string',
        ]
    )
    
  :type accountIds: list
  :param accountIds: **[REQUIRED]** 

    An array that lists Amazon Web Services account IDs, one for each account that sent an invitation to decline.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'unprocessedAccounts': [
              {
                  'accountId': 'string',
                  'errorCode': 'ClientError'|'InternalError',
                  'errorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The request succeeded. Processing might not be complete.

      
      

      - **unprocessedAccounts** *(list) --* 

        An array of objects, one for each account whose invitation hasn't been declined. Each object identifies the account and explains why the request hasn't been processed for that account.

        
        

        - *(dict) --* 

          Provides information about an account-related request that hasn't been processed.

          
          

          - **accountId** *(string) --* 

            The Amazon Web Services account ID for the account that the request applies to.

            
          

          - **errorCode** *(string) --* 

            The source of the issue or delay in processing the request.

            
          

          - **errorMessage** *(string) --* 

            The reason why the request hasn't been processed.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Macie2.Client.exceptions.ValidationException`

  
  *   :py:class:`Macie2.Client.exceptions.InternalServerException`

  
  *   :py:class:`Macie2.Client.exceptions.ServiceQuotaExceededException`

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

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

  
  *   :py:class:`Macie2.Client.exceptions.ThrottlingException`

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

  