updateUsageProfile method
Update an Glue usage profile.
May throw ConcurrentModificationException.
May throw EntityNotFoundException.
May throw InternalServiceException.
May throw InvalidInputException.
May throw OperationNotSupportedException.
May throw OperationTimeoutException.
Parameter configuration :
A ProfileConfiguration object specifying the job and session
values for the profile.
Parameter name :
The name of the usage profile.
Parameter description :
A description of the usage profile.
Implementation
Future<UpdateUsageProfileResponse> updateUsageProfile({
required ProfileConfiguration configuration,
required String name,
String? description,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.UpdateUsageProfile'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Configuration': configuration,
'Name': name,
if (description != null) 'Description': description,
},
);
return UpdateUsageProfileResponse.fromJson(jsonResponse.body);
}