class_docstr: List all objects from the bucket with the given string prefix in name.
  
  This operator returns a python list with the name of objects which can be
  used by `xcom` in the downstream task.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:S3ListOperator`
  
  :param bucket: The S3 bucket where to find the objects. (templated)
  :param prefix: Prefix string to filters the objects whose name begin with
      such prefix. (templated)
  :param delimiter: the delimiter marks key hierarchy. (templated)
  :param aws_conn_id: The connection ID to use when connecting to S3 storage.
  :param verify: Whether or not to verify SSL certificates for S3 connection.
      By default SSL certificates are verified.
      You can provide the following values:
  
      - ``False``: do not validate SSL certificates. SSL will still be used
               (unless use_ssl is False), but SSL certificates will not be
               verified.
      - ``path/to/cert/bundle.pem``: A filename of the CA cert bundle to uses.
               You can specify this argument if you want to use a different
               CA cert bundle than the one used by botocore.
  :param apply_wildcard: whether to treat '*' as a wildcard or a plain symbol in the prefix.
  
  
  **Example**:
      The following operator would list all the files
      (excluding subfolders) from the S3
      ``customers/2018/04/`` key in the ``data`` bucket. ::
  
          s3_file = S3ListOperator(
              task_id="list_3s_files",
              bucket="data",
              prefix="customers/2018/04/",
              delimiter="/",
              aws_conn_id="aws_customers_conn",
          )
class_docstr_tok: ["List","all","objects","from","the","bucket","with","the","given","string","prefix","in","name",".","This","operator","returns","a","python","list","with","the","name","of","objects","which","can","be","used","by","`","xcom","`","in","the","downstream","task",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","S3ListOperator","`",":","param","bucket",":","The","S3","bucket","where","to","find","the","objects",".","(","templated",")",":","param","prefix",":","Prefix","string","to","filters","the","objects","whose","name","begin","with","such","prefix",".","(","templated",")",":","param","delimiter",":","the","delimiter","marks","key","hierarchy",".","(","templated",")",":","param","aws_conn_id",":","The","connection","ID","to","use","when","connecting","to","S3","storage",".",":","param","verify",":","Whether","or","not","to","verify","SSL","certificates","for","S3","connection",".","By","default","SSL","certificates","are","verified",".","You","can","provide","the","following","values",":","-","``","False","``",":","do","not","validate","SSL","certificates",".","SSL","will","still","be","used","(","unless","use_ssl","is","False",")",",","but","SSL","certificates","will","not","be","verified",".","-","``","path\/to\/cert\/bundle.pem","``",":","A","filename","of","the","CA","cert","bundle","to","uses",".","You","can","specify","this","argument","if","you","want","to","use","a","different","CA","cert","bundle","than","the","one","used","by","botocore",".",":","param","apply_wildcard",":","whether","to","treat","'","*","'","as","a","wildcard","or","a","plain","symbol","in","the","prefix",".","*","*","Example","*","*",":","The","following","operator","would","list","all","the","files","(","excluding","subfolders",")","from","the","S3","``","customers\/2018\/04\/","``","key","in","the","``","data","``","bucket",".",":",":","s3_file","=","S3ListOperator","(","task_id=","''","list_3s_files","''",",","bucket=","''","data","''",",","prefix=","''","customers\/2018\/04\/","''",",","delimiter=","''","\/","''",",","aws_conn_id=","''","aws_customers_conn","''",",",")"]
code: def execute(self, context: Context):
      hook = S3Hook(aws_conn_id=self.aws_conn_id, verify=self.verify)
  
      self.log.info(
          "Getting the list of files from bucket: %s in prefix: %s (Delimiter %s)",
          self.bucket,
          self.prefix,
          self.delimiter,
      )
  
      return hook.list_keys(
          bucket_name=self.bucket,
          prefix=self.prefix,
          delimiter=self.delimiter,
          apply_wildcard=self.apply_wildcard,
      )
  
imports: from __future__ import annotations
  import subprocess
  import sys
  from tempfile import NamedTemporaryFile
  from typing import TYPE_CHECKING, Sequence
  from airflow.exceptions import AirflowException
  from airflow.models import BaseOperator
  from airflow.providers.amazon.aws.hooks.s3 import S3Hook
  from airflow.utils.helpers import exactly_one
label_desc: Use image node_id 2 for calling the S3ListOperator obj's underlying member method code with example usage: obj.execute(context) and returns: hook