Struct: types.EncryptionTypeMismatch

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

Implemented Interfaces

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

Method Summary collapse

Method Details

func (e *EncryptionTypeMismatch) Error() string



78
79
80
// File 'service/s3/types/errors.go', line 78

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

func (e *EncryptionTypeMismatch) ErrorCode() string



87
88
89
90
91
92
// File 'service/s3/types/errors.go', line 87

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

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



93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// File 'service/s3/types/errors.go', line 93

func (e *EncryptionTypeMismatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Object is archived and inaccessible until restored. // // If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval // storage class, the S3 Glacier Deep Archive storage class, the S3 // Intelligent-Tiering Archive Access tier, or the S3 Intelligent-Tiering Deep // Archive Access tier, before you can retrieve the object you must first restore a // copy using [RestoreObject]. Otherwise, this operation returns an InvalidObjectState error. For // information about restoring archived objects, see [Restoring Archived Objects]in the Amazon S3 User Guide. // // [RestoreObject]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html // [Restoring Archived Objects]: https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html type InvalidObjectState struct { Message *string ErrorCodeOverride *string StorageClass StorageClass AccessTier IntelligentTieringAccessTier noSmithyDocumentSerde }

func (e *EncryptionTypeMismatch) ErrorMessage() string



81
82
83
84
85
86
// File 'service/s3/types/errors.go', line 81

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