import click


def validate_reset_link(ctx, param, value):  # pylint: disable=unused-argument
    """Validates a reset link."""
    valid_prefix = 'https://signin.aws.amazon.com/resetpassword?type=RootUser&token='
    if not value.startswith(valid_prefix):
        raise click.BadParameter('The reset link provided is not valid.')
    return value