Skip to content

ListObjectsOutput

Source code in docs_src/capo_s3/types/list_objects_output.py
class ListObjectsOutput(TypedDict, closed=True):
    is_truncated: NotRequired["capo_s3.types.is_truncated.IsTruncated"]
    """<p>A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria.</p>"""
    marker: NotRequired["capo_s3.types.marker.Marker"]
    """<p>Indicates where in the bucket listing begins. Marker is included in the response if it was sent with the request.</p>"""
    next_marker: NotRequired["capo_s3.types.next_marker.NextMarker"]
    """<p>When the response is truncated (the <code>IsTruncated</code> element value in the response is <code>true</code>), you can use the key name in this field as the <code>marker</code> parameter in the subsequent request to get the next set of objects. Amazon S3 lists objects in alphabetical order. </p> <note> <p>This element is returned only if you have the <code>delimiter</code> request parameter specified. If the response does not include the <code>NextMarker</code> element and it is truncated, you can use the value of the last <code>Key</code> element in the response as the <code>marker</code> parameter in the subsequent request to get the next set of object keys.</p> </note>"""
    contents: NotRequired["capo_s3.types.object_list.ObjectList"]
    """<p>Metadata about each object returned.</p>"""
    name: NotRequired["capo_s3.types.bucket_name.BucketName"]
    """<p>The bucket name.</p>"""
    prefix: NotRequired["capo_s3.types.prefix.Prefix"]
    """<p>Keys that begin with the indicated prefix.</p>"""
    delimiter: NotRequired["capo_s3.types.delimiter.Delimiter"]
    """<p>Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the <code>CommonPrefixes</code> collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the <code>MaxKeys</code> value.</p>"""
    max_keys: NotRequired["capo_s3.types.max_keys.MaxKeys"]
    """<p>The maximum number of keys returned in the response body.</p>"""
    common_prefixes: NotRequired["capo_s3.types.common_prefix_list.CommonPrefixList"]
    """<p>All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns. </p> <p>A response can contain <code>CommonPrefixes</code> only if you specify a delimiter.</p> <p> <code>CommonPrefixes</code> contains all (if there are any) keys between <code>Prefix</code> and the next occurrence of the string specified by the delimiter.</p> <p> <code>CommonPrefixes</code> lists keys that act like subdirectories in the directory specified by <code>Prefix</code>.</p> <p>For example, if the prefix is <code>notes/</code> and the delimiter is a slash (<code>/</code>), as in <code>notes/summer/july</code>, the common prefix is <code>notes/summer/</code>. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.</p>"""
    encoding_type: NotRequired["capo_s3.types.encoding_type.EncodingType"]
    """<p>Encoding type used by Amazon S3 to encode the <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html">object keys</a> in the response. Responses are encoded only in UTF-8. An object key can contain any Unicode character. However, the XML 1.0 parser can't parse certain characters, such as characters with an ASCII value from 0 to 10. For characters that aren't supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. For more information about characters to avoid in object key names, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines">Object key naming guidelines</a>.</p> <note> <p>When using the URL encoding type, non-ASCII characters that are used in an object's key name will be percent-encoded according to UTF-8 code values. For example, the object <code>test_file(3).png</code> will appear as <code>test_file%283%29.png</code>.</p> </note>"""
    request_charged: NotRequired["capo_s3.types.request_charged.RequestCharged"]

common_prefixes instance-attribute

common_prefixes: NotRequired[CommonPrefixList]

All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns.

A response can contain CommonPrefixes only if you specify a delimiter.

CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by the delimiter.

CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix.

For example, if the prefix is notes/ and the delimiter is a slash (/), as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.

contents instance-attribute

contents: NotRequired[ObjectList]

Metadata about each object returned.

delimiter instance-attribute

delimiter: NotRequired[Delimiter]

Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the MaxKeys value.

encoding_type instance-attribute

encoding_type: NotRequired[EncodingType]

Encoding type used by Amazon S3 to encode the object keys in the response. Responses are encoded only in UTF-8. An object key can contain any Unicode character. However, the XML 1.0 parser can't parse certain characters, such as characters with an ASCII value from 0 to 10. For characters that aren't supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. For more information about characters to avoid in object key names, see Object key naming guidelines.

When using the URL encoding type, non-ASCII characters that are used in an object's key name will be percent-encoded according to UTF-8 code values. For example, the object test_file(3).png will appear as test_file%283%29.png.

is_truncated instance-attribute

is_truncated: NotRequired[IsTruncated]

A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria.

marker instance-attribute

marker: NotRequired[Marker]

Indicates where in the bucket listing begins. Marker is included in the response if it was sent with the request.

max_keys instance-attribute

max_keys: NotRequired[MaxKeys]

The maximum number of keys returned in the response body.

name instance-attribute

name: NotRequired[BucketName]

The bucket name.

next_marker instance-attribute

next_marker: NotRequired[NextMarker]

When the response is truncated (the IsTruncated element value in the response is true), you can use the key name in this field as the marker parameter in the subsequent request to get the next set of objects. Amazon S3 lists objects in alphabetical order.

This element is returned only if you have the delimiter request parameter specified. If the response does not include the NextMarker element and it is truncated, you can use the value of the last Key element in the response as the marker parameter in the subsequent request to get the next set of object keys.

prefix instance-attribute

prefix: NotRequired[Prefix]

Keys that begin with the indicated prefix.

request_charged instance-attribute

request_charged: NotRequired[RequestCharged]