WorkSpaces / Client / accept_account_link_invitation
accept_account_link_invitation#
- WorkSpaces.Client.accept_account_link_invitation(**kwargs)#
Accepts the account link invitation.
Warning
There’s currently no unlinking capability after you accept the account linking invitation.
See also: AWS API Documentation
Request Syntax
response = client.accept_account_link_invitation( LinkId='string', ClientToken='string' )
- Parameters:
LinkId (string) –
[REQUIRED]
The identifier of the account link.
ClientToken (string) – A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.
- Return type:
dict
- Returns:
Response Syntax
{ 'AccountLink': { 'AccountLinkId': 'string', 'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', 'SourceAccountId': 'string', 'TargetAccountId': 'string' } }
Response Structure
(dict) –
AccountLink (dict) –
Information about the account link.
AccountLinkId (string) –
The identifier of the account link.
AccountLinkStatus (string) –
The status of the account link.
SourceAccountId (string) –
The identifier of the source account.
TargetAccountId (string) –
The identifier of the target account.
Exceptions
WorkSpaces.Client.exceptions.ValidationException
WorkSpaces.Client.exceptions.ResourceNotFoundException
WorkSpaces.Client.exceptions.AccessDeniedException
WorkSpaces.Client.exceptions.ConflictException
WorkSpaces.Client.exceptions.InternalServerException