Struct: types.BucketAlreadyExists

import "../ibm-cos-sdk-go-v2/service/s3/types"

Overview

The requested bucket name is not available. The bucket namespace is shared by all users of the system. Select a different name and try again.

Implemented Interfaces

types.AnalyticsFilter, v4.HTTPPresigner, s3.HTTPPresignerV4, types.MetricsFilter, s3.PresignPost, arn.S3ObjectLambdaARN, types.SelectObjectContentEventStream

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

ErrorCodeOverride *string

Message *string

Method Details

func (e *BucketAlreadyExists) Error() string



19
20
21
// File 'service/s3/types/errors.go', line 19

func (e *BucketAlreadyExists) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) }

func (e *BucketAlreadyExists) ErrorCode() string



28
29
30
31
32
33
// File 'service/s3/types/errors.go', line 28

func (e *BucketAlreadyExists) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "BucketAlreadyExists" } return *e.ErrorCodeOverride }

func (e *BucketAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }



34
35
36
37
38
39
40
41
42
43
44
45
46
47
// File 'service/s3/types/errors.go', line 34

func (e *BucketAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The bucket you tried to create already exists, and you own it. Amazon S3 // returns this error in all Amazon Web Services Regions except in the North // Virginia Region. For legacy compatibility, if you re-create an existing bucket // that you already own in the North Virginia Region, Amazon S3 returns 200 OK and // resets the bucket access control lists (ACLs). type BucketAlreadyOwnedByYou struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *BucketAlreadyExists) ErrorMessage() string



22
23
24
25
26
27
// File 'service/s3/types/errors.go', line 22

func (e *BucketAlreadyExists) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message }