deleteDefaultSenderId method

Future<DeleteDefaultSenderIdResult> deleteDefaultSenderId({
  1. required String configurationSetName,
})

Deletes an existing default sender ID on a configuration set.

A default sender ID is the identity that appears on recipients' devices when they receive SMS messages. Support for sender ID capabilities varies by country or region.

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

Parameter configurationSetName : The name of the configuration set or the configuration set Amazon Resource Name (ARN) to delete the default sender ID from. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.

Implementation

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

  return DeleteDefaultSenderIdResult.fromJson(jsonResponse.body);
}