def METHOD_NAME(
    account_id: str,
    region_name: str,
    properties: dict,
    logical_resource_id: str,
    resource: dict,
    stack_name: str,
):
    provider = cls(account_id, region_name, resource)
    queue_url = provider.physical_resource_id or properties.get("QueueUrl")
    if queue_url:
        return queue_url
    return arns.sqs_queue_url_for_arn(properties["QueueArn"])