Struct: types.IncorrectKeyException

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

Implemented Interfaces

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

Method Summary collapse

Method Details

func (e *IncorrectKeyException) Error() string



509
510
511
// File 'service/kms/types/errors.go', line 509

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

func (e *IncorrectKeyException) ErrorCode() string



518
519
520
521
522
523
// File 'service/kms/types/errors.go', line 518

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

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



524
525
526
527
528
529
530
531
532
533
534
535
// File 'service/kms/types/errors.go', line 524

func (e *IncorrectKeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the key material in the request is, expired, // invalid, or is not the same key material that was previously imported into this // KMS key. type IncorrectKeyMaterialException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *IncorrectKeyException) ErrorMessage() string



512
513
514
515
516
517
// File 'service/kms/types/errors.go', line 512

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