updateGlossaryTerm method
Updates a glossary term in Glue Data Catalog.
May throw AccessDeniedException.
May throw AlreadyExistsException.
May throw ConcurrentModificationException.
May throw EntityNotFoundException.
May throw InternalServiceException.
May throw InvalidInputException.
May throw ThrottlingException.
Parameter identifier :
The unique identifier of the glossary term to update.
Parameter clientToken :
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
Parameter longDescription :
The updated long description of the glossary term.
Parameter name :
The updated name of the glossary term.
Parameter shortDescription :
The updated short description of the glossary term.
Implementation
Future<UpdateGlossaryTermResponse> updateGlossaryTerm({
required String identifier,
String? clientToken,
String? longDescription,
String? name,
String? shortDescription,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.UpdateGlossaryTerm'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Identifier': identifier,
'ClientToken': clientToken ?? _s.generateIdempotencyToken(),
if (longDescription != null) 'LongDescription': longDescription,
if (name != null) 'Name': name,
if (shortDescription != null) 'ShortDescription': shortDescription,
},
);
return UpdateGlossaryTermResponse.fromJson(jsonResponse.body);
}