deleteProtectConfigurationRuleSetNumberOverride method
Future<DeleteProtectConfigurationRuleSetNumberOverrideResult>
deleteProtectConfigurationRuleSetNumberOverride({})
Permanently delete the protect configuration rule set number override.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter destinationPhoneNumber :
The destination phone number in E.164 format.
Parameter protectConfigurationId :
The unique identifier for the protect configuration.
Implementation
Future<DeleteProtectConfigurationRuleSetNumberOverrideResult>
deleteProtectConfigurationRuleSetNumberOverride({
required String destinationPhoneNumber,
required String protectConfigurationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target':
'PinpointSMSVoiceV2.DeleteProtectConfigurationRuleSetNumberOverride'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DestinationPhoneNumber': destinationPhoneNumber,
'ProtectConfigurationId': protectConfigurationId,
},
);
return DeleteProtectConfigurationRuleSetNumberOverrideResult.fromJson(
jsonResponse.body);
}