SetTextMessageSpendLimitOverride - AWS End User Messaging SMS

SetTextMessageSpendLimitOverride

Sets an account level monthly spend limit override for sending text messages. The requested spend limit must be less than or equal to the MaxLimit, which is set by AWS.

Request Syntax

{ "MonthlyLimit": number }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

MonthlyLimit

The new monthly limit to enforce on text messages.

Type: Long

Valid Range: Minimum value of 0. Maximum value of 1000000000.

Required: Yes

Response Syntax

{ "MonthlyLimit": number }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

MonthlyLimit

The current monthly limit to enforce on sending text messages.

Type: Long

Valid Range: Minimum value of 0. Maximum value of 1000000000.

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

The request was denied because you don't have sufficient permissions to access the resource.

HTTP Status Code: 400

InternalServerException

The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

HTTP Status Code: 500

ThrottlingException

An error that occurred because too many requests were sent during a certain amount of time.

HTTP Status Code: 400

ValidationException

A validation exception for a field.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: