getProfile method
Get profile information.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter profileArn :
The profile ARN.
Parameter profileVersion :
The profile version.
Implementation
Future<GetProfileOutput> getProfile({
required String profileArn,
String? profileVersion,
}) async {
final $query = <String, List<String>>{
if (profileVersion != null) 'ProfileVersion': [profileVersion],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/profiles/${Uri.encodeComponent(profileArn)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetProfileOutput.fromJson(response);
}