deleteRcsAgent method

Future<DeleteRcsAgentResult> deleteRcsAgent({
  1. required String rcsAgentId,
})

Deletes an existing RCS agent. If deletion protection is enabled, an error is returned.

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

Parameter rcsAgentId : The unique identifier of the RCS agent to delete. You can use either the RcsAgentId or RcsAgentArn.

Implementation

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

  return DeleteRcsAgentResult.fromJson(jsonResponse.body);
}