paws.storage (version 0.1.0)

s3_list_object_versions: Returns metadata about all of the versions of objects in a bucket

Description

Returns metadata about all of the versions of objects in a bucket.

Usage

s3_list_object_versions(Bucket, Delimiter, EncodingType, KeyMarker,
  MaxKeys, Prefix, VersionIdMarker)

Arguments

Bucket

[required]

Delimiter

A delimiter is a character you use to group keys.

EncodingType
KeyMarker

Specifies the key to start with when listing objects in a bucket.

MaxKeys

Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.

Prefix

Limits the response to keys that begin with the specified prefix.

VersionIdMarker

Specifies the object version you want to start listing from.

Request syntax

svc$list_object_versions(
  Bucket = "string",
  Delimiter = "string",
  EncodingType = "url",
  KeyMarker = "string",
  MaxKeys = 123,
  Prefix = "string",
  VersionIdMarker = "string"
)

Examples

Run this code
# NOT RUN {
# The following example return versions of an object with specific key
# name prefix. The request limits the number of items returned to two. If
# there are are more than two object version, S3 returns NextToken in the
# response. You can specify this token value in your next request to fetch
# next set of object versions.
# }
# NOT RUN {
svc$list_object_versions(
  Bucket = "examplebucket",
  Prefix = "HappyFace.jpg"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab