Discover Objects

Discover objects in an S3 bucket.

Source codePermissions

Usage

Input

Parameter Description Type Required Default value
bucket Name of the S3 bucket to discover objects in string Yes None
prefix Prefix to filter objects by string No None
modified_before Get objects last modified before date (YYYY/MM//DD) string No None
modified_after Get objects last modified after date (YYYY/MM//DD) string No None
name_only Return only the object name, not the entire path bool No False
region Region for operation string No Session default
debug Increase log verbosity bool No False
silent Decrease log verbosity bool No False
output Output format
table
string No None
session Established session object No None

Output

Returns a list of discovered objects:

['object1', 'object2']

Examples

Discover objects in example-bucket:

aaws s3 discover_objects --bucket example-bucket