getAccountLink method
Retrieves account link information.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter linkId :
The identifier of the account to link.
Parameter linkedAccountId :
The identifier of the account link
Implementation
Future<GetAccountLinkResult> getAccountLink({
String? linkId,
String? linkedAccountId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.GetAccountLink'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (linkId != null) 'LinkId': linkId,
if (linkedAccountId != null) 'LinkedAccountId': linkedAccountId,
},
);
return GetAccountLinkResult.fromJson(jsonResponse.body);
}