Assurance / Client / list_outbound_invitations

list_outbound_invitations

Assurance.Client.list_outbound_invitations(**kwargs)

Lists the invitations that you extended from an environment you own. Supports pagination and an optional status filter.

See also: AWS API Documentation

Request Syntax

response = client.list_outbound_invitations(
    environmentArn='string',
    status='PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • environmentArn (string) –

    [REQUIRED]

    The ARN of this governance environment.

  • status (string) – The lifecycle state to filter results by. When specified, the operation returns only invitations in this state.

  • maxResults (integer) – The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • nextToken (string) – The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Return type:

dict

Returns:

Response Syntax

{
    'invitationSummaries': [
        {
            'inviteeAccountId': 'string',
            'status': 'PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED',
            'expiresAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • invitationSummaries (list) –

      The invitations extended from the environment, for this page of results.

      • (dict) –

        A summary view of an invitation returned in list responses. Additional fields (such as roleArn and updatedAt) are available through GetInvitation.

        • inviteeAccountId (string) –

          The ID of the invited AWS account.

        • status (string) –

          The current lifecycle state of the invitation.

        • expiresAt (datetime) –

          The time when the invitation expires if not accepted. Present only while the invitation is PENDING.

    • nextToken (string) –

      The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Exceptions