updateNamedQuery method
Updates a NamedQuery object. The database or workgroup cannot be updated.
May throw InternalServerException.
May throw InvalidRequestException.
Parameter name :
The name of the query.
Parameter namedQueryId :
The unique identifier (UUID) of the query.
Parameter queryString :
The contents of the query with all query statements.
Parameter description :
The query description.
Implementation
Future<void> updateNamedQuery({
required String name,
required String namedQueryId,
required String queryString,
String? description,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.UpdateNamedQuery'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
'NamedQueryId': namedQueryId,
'QueryString': queryString,
if (description != null) 'Description': description,
},
);
}