in smdebug_rulesconfig/actions/utils.py [0:0]
def validate_phone_number(key, value):
if not isinstance(value, str):
raise ValueError(f"{key} must be a string!")
if not re.match(PHONE_NUMBER_REGEX, value):
raise ValueError(
"""Invalid phone number provided! Must follow the E.164 format.
See https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html for more info."""
)