Struct: types.ExpiredImportTokenException

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 *ExpiredImportTokenException) Error() string



481
482
483
// File 'service/kms/types/errors.go', line 481

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

func (e *ExpiredImportTokenException) ErrorCode() string



490
491
492
493
494
495
// File 'service/kms/types/errors.go', line 490

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

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



496
497
498
499
500
501
502
503
504
505
506
507
// File 'service/kms/types/errors.go', line 496

func (e *ExpiredImportTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // 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. type IncorrectKeyException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *ExpiredImportTokenException) ErrorMessage() string



484
485
486
487
488
489
// File 'service/kms/types/errors.go', line 484

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