Assurance / Client / get_invitation
get_invitation¶
- Assurance.Client.get_invitation(**kwargs)¶
Retrieves a single invitation, identified by
environmentArnandinviteeAccountId. You can call this operation from the account that owns the environment or from the invited account.See also: AWS API Documentation
Request Syntax
response = client.get_invitation( environmentArn='string', inviteeAccountId='string' )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of the environment the invitation is for.
inviteeAccountId (string) – The AWS account ID of the invited account. Supply this value when you are the environment owner reading a specific invitee’s invitation. Omit it when you are the invited account reading your own invitation for the environment.
- Return type:
dict
- Returns:
Response Syntax
{ 'environmentArn': 'string', 'inviteeAccountId': 'string', 'status': 'PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED', 'roleArn': 'string', 'createdAt': datetime(2015, 1, 1), 'expiresAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
environmentArn (string) –
The ARN of the environment that extended the invitation to you. Use this value to identify the environment or owner account inviting you.
inviteeAccountId (string) –
The ID of the invited AWS account.
status (string) –
The current lifecycle state of the invitation.
roleArn (string) –
The ARN of the role that AWS Assurance assumes in the invitee account. Present only when status is ACTIVE.
createdAt (datetime) –
The time when you created the invitation. If you called
CreateInvitationagain after the invitation was rejected, revoked, or expired, this is the time of your most recent call.expiresAt (datetime) –
The time when the invitation expires if not accepted.
updatedAt (datetime) –
The time when the invitation last changed state (accept, reject, or revoke).
Exceptions