I have the following objects in my S3 bucket:
123_foo_bar
123_bar_foo
638j7_they_good
xxx_something_else
I would like to know if is there a way to get all 123_* objects using the GetObjectCommand? Here is a code example by AWS but no mention to that wildcard usage.
Wildcards are not supported, however there is a request property Prefix which should work if the text you want is at the start of the filename, and the rest of the path before the text is the same.
prefix
Limits the response to keys that begin with the specified prefix.