deleteProtectConfiguration method

Future<DeleteProtectConfigurationResult> deleteProtectConfiguration({
  1. required String protectConfigurationId,
})

Permanently delete the protect configuration. The protect configuration must have deletion protection disabled and must not be associated as the account default protect configuration or associated with a configuration set.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter protectConfigurationId : The unique identifier for the protect configuration.

Implementation

Future<DeleteProtectConfigurationResult> deleteProtectConfiguration({
  required String protectConfigurationId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'PinpointSMSVoiceV2.DeleteProtectConfiguration'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ProtectConfigurationId': protectConfigurationId,
    },
  );

  return DeleteProtectConfigurationResult.fromJson(jsonResponse.body);
}