Struct: types.AlreadyExistsException

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

Overview

The request was rejected because it attempted to create a resource that already exists.

Implemented Interfaces

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

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

ErrorCodeOverride *string

Message *string

Method Details

func (e *AlreadyExistsException) Error() string



19
20
21
// File 'service/kms/types/errors.go', line 19

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

func (e *AlreadyExistsException) ErrorCode() string



28
29
30
31
32
33
// File 'service/kms/types/errors.go', line 28

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

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



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// File 'service/kms/types/errors.go', line 34

func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the specified CloudHSM cluster is already // associated with an CloudHSM key store in the account, or it shares a backup // history with an CloudHSM key store in the account. Each CloudHSM key store in // the account must be associated with a different CloudHSM cluster. // // CloudHSM clusters that share a backup history have the same cluster // certificate. To view the cluster certificate of an CloudHSM cluster, use the [DescribeClusters] // operation. // // [DescribeClusters]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html type CloudHsmClusterInUseException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *AlreadyExistsException) ErrorMessage() string



22
23
24
25
26
27
// File 'service/kms/types/errors.go', line 22

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