deleteArchiveRule method
Deletes the specified archive rule.
May throw ResourceNotFoundException. May throw ValidationException. May throw InternalServerException. May throw ThrottlingException. May throw AccessDeniedException.
Parameter analyzerName
:
The name of the analyzer that associated with the archive rule to delete.
Parameter ruleName
:
The name of the rule to delete.
Parameter clientToken
:
A client token.
Implementation
Future<void> deleteArchiveRule({
required String analyzerName,
required String ruleName,
String? clientToken,
}) async {
ArgumentError.checkNotNull(analyzerName, 'analyzerName');
_s.validateStringLength(
'analyzerName',
analyzerName,
1,
255,
isRequired: true,
);
ArgumentError.checkNotNull(ruleName, 'ruleName');
_s.validateStringLength(
'ruleName',
ruleName,
1,
255,
isRequired: true,
);
final $query = <String, List<String>>{
if (clientToken != null) 'clientToken': [clientToken],
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/analyzer/${Uri.encodeComponent(analyzerName)}/archive-rule/${Uri.encodeComponent(ruleName)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}