GuardDuty / Client / accept_invitation

accept_invitation#

GuardDuty.Client.accept_invitation(**kwargs)#

Accepts the invitation to be monitored by a GuardDuty administrator account.

Danger

This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.

See also: AWS API Documentation

Request Syntax

response = client.accept_invitation(
    DetectorId='string',
    MasterId='string',
    InvitationId='string'
)
Parameters:
  • DetectorId (string) –

    [REQUIRED]

    The unique ID of the detector of the GuardDuty member account.

    To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

  • MasterId (string) –

    [REQUIRED]

    The account ID of the GuardDuty administrator account whose invitation you’re accepting.

  • InvitationId (string) –

    [REQUIRED]

    The value that is used to validate the administrator account to the member account.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • GuardDuty.Client.exceptions.BadRequestException

  • GuardDuty.Client.exceptions.InternalServerErrorException