getUsageProfile method
Retrieves information about the specified Glue usage profile.
May throw EntityNotFoundException.
May throw InternalServiceException.
May throw InvalidInputException.
May throw OperationNotSupportedException.
May throw OperationTimeoutException.
Parameter name :
The name of the usage profile to retrieve.
Implementation
Future<GetUsageProfileResponse> getUsageProfile({
required String name,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.GetUsageProfile'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
return GetUsageProfileResponse.fromJson(jsonResponse.body);
}