deleteRemediationConfiguration method
Deletes the remediation configuration.
May throw NoSuchRemediationConfigurationException. May throw RemediationInProgressException. May throw InsufficientPermissionsException.
Parameter configRuleName
:
The name of the AWS Config rule for which you want to delete remediation
configuration.
Parameter resourceType
:
The type of a resource.
Implementation
Future<void> deleteRemediationConfiguration({
required String configRuleName,
String? resourceType,
}) async {
ArgumentError.checkNotNull(configRuleName, 'configRuleName');
_s.validateStringLength(
'configRuleName',
configRuleName,
1,
128,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.DeleteRemediationConfiguration'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigRuleName': configRuleName,
if (resourceType != null) 'ResourceType': resourceType,
},
);
}