Struct: types.CustomKeyStoreHasCMKsException

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



267
268
269
// File 'service/kms/types/errors.go', line 267

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

func (e *CustomKeyStoreHasCMKsException) ErrorCode() string



276
277
278
279
280
281
// File 'service/kms/types/errors.go', line 276

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

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



282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
// File 'service/kms/types/errors.go', line 282

func (e *CustomKeyStoreHasCMKsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The request was rejected because of the ConnectionState of the custom key // store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores operation. // // This exception is thrown under the following conditions: // // - You requested the ConnectCustomKeyStoreoperation on a custom key store with a ConnectionState of // DISCONNECTING or FAILED . This operation is valid for all other // ConnectionState values. To reconnect a custom key store in a FAILED state, // disconnect it (DisconnectCustomKeyStore ), then connect it ( ConnectCustomKeyStore ). // // - You requested the CreateKeyoperation in a custom key store that is not connected. // This operations is valid only when the custom key store ConnectionState is // CONNECTED . // // - You requested the DisconnectCustomKeyStoreoperation on a custom key store with a ConnectionState of // DISCONNECTING or DISCONNECTED . This operation is valid for all other // ConnectionState values. // // - You requested the UpdateCustomKeyStoreor DeleteCustomKeyStoreoperation on a custom key store that is not // disconnected. This operation is valid only when the custom key store // ConnectionState is DISCONNECTED . // // - You requested the GenerateRandomoperation in an CloudHSM key store that is not connected. // This operation is valid only when the CloudHSM key store ConnectionState is // CONNECTED . type CustomKeyStoreInvalidStateException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *CustomKeyStoreHasCMKsException) ErrorMessage() string



270
271
272
273
274
275
// File 'service/kms/types/errors.go', line 270

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