in chalice/deploy/validate.py [0:0]
def _is_valid_queue_name(queue_name, queue_arn):
# type: (Optional[str], Optional[str]) -> bool
# The mutually exclusiveness is verified in the on_sqs_message decorator.
if queue_name is not None and queue_name.startswith(('https:', 'arn:')):
return False
if queue_arn is not None and not queue_arn.startswith('arn:'):
return False
# We're not validating that the queue has only valid chars because SQS
# won't let you create a queue with that name in the first place. We just
# want to detect the case where a user puts the queue URL/ARN instead of
# the name for the queue_name.
return True