deleteResolverRule method
Deletes a Resolver rule. Before you can delete a Resolver rule, you must disassociate it from all the VPCs that you associated the Resolver rule with. For more information, see DisassociateResolverRule.
May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ResourceInUseException. May throw InternalServiceErrorException. May throw ThrottlingException.
Parameter resolverRuleId
:
The ID of the Resolver rule that you want to delete.
Implementation
Future<DeleteResolverRuleResponse> deleteResolverRule({
required String resolverRuleId,
}) async {
ArgumentError.checkNotNull(resolverRuleId, 'resolverRuleId');
_s.validateStringLength(
'resolverRuleId',
resolverRuleId,
1,
64,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53Resolver.DeleteResolverRule'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResolverRuleId': resolverRuleId,
},
);
return DeleteResolverRuleResponse.fromJson(jsonResponse.body);
}