Struct: types.InvalidImportTokenException

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



733
734
735
// File 'service/kms/types/errors.go', line 733

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

func (e *InvalidImportTokenException) ErrorCode() string



742
743
744
745
746
747
// File 'service/kms/types/errors.go', line 742

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

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



748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
// File 'service/kms/types/errors.go', line 748

func (e *InvalidImportTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected for one of the following reasons: // // - The KeyUsage value of the KMS key is incompatible with the API operation. // // - The encryption algorithm or signing algorithm specified for the operation // is incompatible with the type of key material in the KMS key (KeySpec ). // // For encrypting, decrypting, re-encrypting, and generating data keys, the // KeyUsage must be ENCRYPT_DECRYPT . For signing and verifying messages, the // KeyUsage must be SIGN_VERIFY . For generating and verifying message // authentication codes (MACs), the KeyUsage must be GENERATE_VERIFY_MAC . For // deriving key agreement secrets, the KeyUsage must be KEY_AGREEMENT . To find the // KeyUsage of a KMS key, use the DescribeKey operation. // // To find the encryption or signing algorithms supported for a particular KMS // key, use the DescribeKeyoperation. type InvalidKeyUsageException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *InvalidImportTokenException) ErrorMessage() string



736
737
738
739
740
741
// File 'service/kms/types/errors.go', line 736

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