### Is there an existing issue for this?

- [X] I have searched the existing issues and read the documentation

### Question

After configuring it  withEnv("DYNAMODB_WRITE_ERROR_PROBABILITY", "1.0") — it is expected to throw dynamo throuput exception , but throwing 500 error - `(Service: DynamoDb, Status Code: 500, Request ID: null, Extended Request ID: null)","operationType":"PutItem","kinesisRecordMetaData":{"recordInsertionDate":"01-01-2021"}}, Response - PutObjectResponse(ETag="5435b0664a1337227d380fbd83ebcc89")

### Anything else?

_No response_
LOCALHOST,
    MAX_POOL_CONNECTIONS,
    MOTO_ACCOUNT_ID,
    REGION_LOCAL,
    S3_VIRTUAL_HOSTNAME,
    TEST_AWS_ACCESS_KEY_ID,
    TEST_AWS_ACCOUNT_ID,
    TEST_AWS_SECRET_ACCESS_KEY,
)
from localstack.utils.aws.aws_models import KinesisStream
from localstack.utils.collections import pick_attributes
from localstack.utils.functions import run_safe
from localstack.utils.http import make_http_request
from localstack.utils.strings import is_string, is_string_or_bytes, to_str
from localstack.utils.sync import retry
ENV_ACCESS_KEY = "AWS_ACCESS_KEY_ID"
ENV_SECRET_KEY = "AWS_SECRET_ACCESS_KEY"
ENV_SESSION_TOKEN = "AWS_SESSION_TOKEN"
LOG = logging.getLogger(__name__)
LOCAL_REGION = None
CREATE_NEW_SESSION_PER_BOTO3_CONNECTION = False
INITIAL_BOTO3_SESSION = None
BOTO_CLIENTS_CACHE = {}
DEFAULT_TIMER_LOOP_SECONDS = 60 * 50
SQS_ARN_TO_URL_CACHE = {}
EVENT_TARGET_PARAMETERS = ["$.SqsParameters", "$.KinesisParameters"]
CACHE_S3_HOSTNAME_DNS_STATUS = None
BOTO_CLIENT_CREATE_LOCK = threading.RLock()
@lru_cache()
def get_valid_regions():