Struct: types.CloudHsmClusterInUseException

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



54
55
56
// File 'service/kms/types/errors.go', line 54

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

func (e *CloudHsmClusterInUseException) ErrorCode() string



63
64
65
66
67
68
// File 'service/kms/types/errors.go', line 63

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

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



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// File 'service/kms/types/errors.go', line 69

func (e *CloudHsmClusterInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because the associated CloudHSM cluster did not meet // the configuration requirements for an CloudHSM key store. // // - The CloudHSM cluster must be configured with private subnets in at least // two different Availability Zones in the Region. // // - The [security group for the cluster](cloudhsm-cluster--sg) must include inbound rules and outbound rules // that allow TCP traffic on ports 2223-2225. The Source in the inbound rules and // the Destination in the outbound rules must match the security group ID. These // rules are set by default when you create the CloudHSM cluster. Do not delete or // change them. To get information about a particular security group, use the [DescribeSecurityGroups] // operation. // // - The CloudHSM cluster must contain at least as many HSMs as the operation // requires. To add HSMs, use the CloudHSM [CreateHsm]operation. // // For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKeyoperations, the CloudHSM cluster must have at least two active // // HSMs, each in a different Availability Zone. For the ConnectCustomKeyStoreoperation, the CloudHSM // must contain at least one active HSM. // // For information about the requirements for an CloudHSM cluster that is // associated with an CloudHSM key store, see [Assemble the Prerequisites]in the Key Management Service // Developer Guide. For information about creating a private subnet for an CloudHSM // cluster, see [Create a Private Subnet]in the CloudHSM User Guide. For information about cluster security // groups, see [Configure a Default Security Group]in the CloudHSM User Guide . // // [Assemble the Prerequisites]: https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore // [Create a Private Subnet]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html // [Configure a Default Security Group]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html // [DescribeSecurityGroups]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html // [CreateHsm]: https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html // [security group for the cluster]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html type CloudHsmClusterInvalidConfigurationException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *CloudHsmClusterInUseException) ErrorMessage() string



57
58
59
60
61
62
// File 'service/kms/types/errors.go', line 57

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