Skip to content
Discussion options

You must be logged in to vote

Yes, it can be trusted. The reason why it is i64 is that it is defined as such in a Smithy model for S3:

"com.amazonaws.s3#ContentLength": {
            "type": "long",
            "traits": {
                "smithy.api#default": 0
            }
        },

The SDK in another language, such as Java, may not have unsigned long type. So for consistency across SDKs generated out of the model, the return type of content_length is defined to be i64.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rcoh
Comment options

rcoh Oct 10, 2023
Collaborator

Answer selected by rcoh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants