class_docstr: Contains static methods for downloading directories or files from S3.
class_docstr_tok: ["Contains","static","methods","for","downloading","directories","or","files","from","S3","."]
docstr: Static method that lists the contents of an S3 uri.
  
  Args:
      s3_uri (str): The S3 base uri to list objects in.
      sagemaker_session (sagemaker.session.Session): Session object which
          manages interactions with Amazon SageMaker APIs and any other
          AWS services needed. If not specified, one is created
          using the default AWS configuration chain.
  
  Returns:
      [str]: The list of S3 URIs in the given S3 base uri.
docstr_tok: ["Static","method","that","lists","the","contents","of","an","S3","uri",".","Args",":","s3_uri","(","str",")",":","The","S3","base","uri","to","list","objects","in",".","sagemaker_session","(","sagemaker.session.Session",")",":","Session","object","which","manages","interactions","with","Amazon","SageMaker","APIs","and","any","other","AWS","services","needed",".","If","not","specified",",","one","is","created","using","the","default","AWS","configuration","chain",".","Returns",":","[","str","]",":","The","list","of","S3","URIs","in","the","given","S3","base","uri","."]
code: def list(s3_uri, sagemaker_session=None):
      """Static method that lists the contents of an S3 uri.
  
      Args:
          s3_uri (str): The S3 base uri to list objects in.
          sagemaker_session (sagemaker.session.Session): Session object which
              manages interactions with Amazon SageMaker APIs and any other
              AWS services needed. If not specified, one is created
              using the default AWS configuration chain.
  
      Returns:
          [str]: The list of S3 URIs in the given S3 base uri.
      """
      sagemaker_session = sagemaker_session or Session()
      bucket, key_prefix = parse_s3_url(url=s3_uri)
  
      file_keys = sagemaker_session.list_s3_files(
          bucket=bucket, key_prefix=key_prefix
      )
      return [
          s3_path_join("s3://", bucket, file_key)
          for file_key in file_keys
      ]
  
file_path: sagemaker-python-sdk/src/sagemaker/s3.py
imports: from __future__ import print_function, absolute_import
  import logging
  import io
  from typing import Union
  from sagemaker.session import Session
  from sagemaker.s3_utils import parse_s3_url, s3_path_join, determine_bucket_and_prefix
label_desc: Use image node_id 4 for calling the S3Downloader obj's underlying member method code with example usage: obj.list(s3_uri, sagemaker_session) and returns: unknown