Skip to content

S3 ListObjectVersions ObjectVersionStorageClass type is incorrect #6609

@rawpixel-vincent

Description

@rawpixel-vincent

Checkboxes for prior research

Describe the bug

the type of ObjectVersionStorageClass in the result output of ListObjectVersionsOutput.Versions[].StorageClass is allowing only "STANDARD", it should allow all possible storage class.

Screenshot 2024-02-27 at 13 06 36 Screenshot 2024-02-27 at 13 09 20 Screenshot 2024-02-27 at 13 09 11

SDK version number

@aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v20.11.0

Reproduction Steps

Request ListObjectVersionsCommand

example:

    const VS = await s3ClientApSoutheast1.send(
      new ListObjectVersionsCommand({
        Bucket: 'bucket-name',
      }),
    );

Observed Behavior

Versions[].StorageClass type is fixed to "STANDARD"

Expected Behavior

Versions[].StorageClass type should allow any valid storage class

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p2This is a standard priority issues3service-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions