Assurance / Client / create_invitation
create_invitation¶
- Assurance.Client.create_invitation(**kwargs)¶
Creates a pending invitation for a customer account to connect to an environment. Call this operation from the account that owns the environment.
At most one non-terminal (PENDING or ACTIVE) invitation can exist per
(environment, inviteeAccountId)pair. If you call this operation when a non-terminal invitation already exists, the service returnsConflictException.See also: AWS API Documentation
Request Syntax
response = client.create_invitation( environmentArn='string', inviteeAccountId='string' )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of this governance environment.
inviteeAccountId (string) –
[REQUIRED]
The ID of the invited AWS account.
- Return type:
dict
- Returns:
Response Syntax
{ 'status': 'PENDING'|'ACTIVE'|'REJECTED'|'REVOKED'|'EXPIRED', 'expiresAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
status (string) –
The lifecycle state of the created invitation. PENDING for a freshly created invitation. If an active invitation already exists for the same environment and account, the operation returns the current state (for example, ACTIVE) unchanged.
expiresAt (datetime) –
The time when the invitation expires if not accepted.
Exceptions