Struct: types.IncorrectKeyMaterialException

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



537
538
539
// File 'service/kms/types/errors.go', line 537

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

func (e *IncorrectKeyMaterialException) ErrorCode() string



546
547
548
549
550
551
// File 'service/kms/types/errors.go', line 546

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

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



552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
// File 'service/kms/types/errors.go', line 552

func (e *IncorrectKeyMaterialException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the trust anchor certificate in the request to // create an CloudHSM key store is not the trust anchor certificate for the // specified CloudHSM cluster. // // When you [initialize the CloudHSM cluster], you create the trust anchor certificate and save it in the // customerCA.crt file. // // [initialize the CloudHSM cluster]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr type IncorrectTrustAnchorException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *IncorrectKeyMaterialException) ErrorMessage() string



540
541
542
543
544
545
// File 'service/kms/types/errors.go', line 540

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