deleteTrafficPolicy method
Delete a traffic policy resource.
May throw ConflictException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter trafficPolicyId :
The identifier of the traffic policy that you want to delete.
Implementation
Future<void> deleteTrafficPolicy({
required String trafficPolicyId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'MailManagerSvc.DeleteTrafficPolicy'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'TrafficPolicyId': trafficPolicyId,
},
);
}