Struct: types.InvalidGrantTokenException

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



706
707
708
// File 'service/kms/types/errors.go', line 706

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

func (e *InvalidGrantTokenException) ErrorCode() string



715
716
717
718
719
720
// File 'service/kms/types/errors.go', line 715

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

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



721
722
723
724
725
726
727
728
729
730
731
// File 'service/kms/types/errors.go', line 721

func (e *InvalidGrantTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the provided import token is invalid or is // associated with a different KMS key. type InvalidImportTokenException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *InvalidGrantTokenException) ErrorMessage() string



709
710
711
712
713
714
// File 'service/kms/types/errors.go', line 709

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