Skip to content

Determine if DeleteBucket returns NoSuchBucket #1985

Answered by RanVaknin
zchenyu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zchenyu ,

The S3 API model is the source of truth for this kind of information.
DeleteBucket has no typed errors associated with that particular operation, thus the SDK will not map the response to a typed error:

"com.amazonaws.s3#DeleteBucket": {
            "type": "operation",
            "input": {
                "target": "com.amazonaws.s3#DeleteBucketRequest"
            },
            "output": {
                "target": "smithy.api#Unit"
            },
}

CreateBucket does have 2 typed errors associated with it:

"com.amazonaws.s3#CreateBucket": {
            "type": "operation",
            "input": {
                "target": "com.amazonaws.s3#CreateBucketRequest"

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zchenyu
Comment options

@RanVaknin
Comment options

Answer selected by RanVaknin
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
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
2 participants