updateRuleMetadata method
Updates a rule's metadata. The description attribute can be updated.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter description :
The rule description.
Parameter rule :
The rule to update.
Implementation
Future<void> updateRuleMetadata({
required String description,
required Rule rule,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSHawksNestServiceFacade.UpdateRuleMetadata'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'description': description,
'rule': rule,
},
);
}