Struct: kms.IncorrectKeyException

import "../ibm-cos-sdk-go/service/kms"

Overview

The request was rejected because the specified KMS key cannot decrypt the data. The KeyId in a Decrypt request and the SourceKeyId in a ReEncrypt request must identify the same KMS key that was used to encrypt the ciphertext.

Implemented Interfaces

s3crypto.Cipher, awserr.Error, s3manager.ReadSeekerWriteTo, awserr.RequestFailure, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Message_ *string `locationName:"message" type:"string"`

RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

_ struct{} `type:"structure"`

Method Details

func (s *IncorrectKeyException) Code() string

Code returns the exception type name.



13258
13259
13260
// File 'service/kms/api.go', line 13258

func (s *IncorrectKeyException) Code() string { return "IncorrectKeyException" }

func (s *IncorrectKeyException) Error() string



13275
13276
13277
// File 'service/kms/api.go', line 13275

func (s *IncorrectKeyException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) }

func (s IncorrectKeyException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



13247
13248
13249
// File 'service/kms/api.go', line 13247

func (s IncorrectKeyException) GoString() string { return s.String() }

func (s *IncorrectKeyException) Message() string

Message returns the exception's message.



13263
13264
13265
13266
13267
13268
// File 'service/kms/api.go', line 13263

func (s *IncorrectKeyException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" }

func (s *IncorrectKeyException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



13271
13272
13273
// File 'service/kms/api.go', line 13271

func (s *IncorrectKeyException) OrigErr() error { return nil }

func (s *IncorrectKeyException) RequestID() string

RequestID returns the service's response RequestID for request.



13285
13286
13287
// File 'service/kms/api.go', line 13285

func (s *IncorrectKeyException) RequestID() string { return s.RespMetadata.RequestID }

func (s *IncorrectKeyException) StatusCode() int

Status code returns the HTTP status code for the request's response error.



13280
13281
13282
// File 'service/kms/api.go', line 13280

func (s *IncorrectKeyException) StatusCode() int { return s.RespMetadata.StatusCode }

func (s IncorrectKeyException) String() string

String returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



13238
13239
13240
// File 'service/kms/api.go', line 13238

func (s IncorrectKeyException) String() string { return awsutil.Prettify(s) }