Struct: kms.CustomKeyStoreInvalidStateException

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

Overview

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 ConnectCustomKeyStore operation 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 CreateKey operation 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 DisconnectCustomKeyStore operation on a custom key store with a ConnectionState of DISCONNECTING or DISCONNECTED. This operation is valid for all other ConnectionState values.

  • You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation 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 GenerateRandom operation in an CloudHSM key store that is not connected. This operation is valid only when the CloudHSM key store ConnectionState is CONNECTED.

Implemented Interfaces

s3crypto.Cipher, awserr.Error, s3manager.ReadSeekerWriteTo, awserr.RequestFailure, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Message_ *string `locationName:"message" type:"string"`

RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

_ struct{} `type:"structure"`

Method Details

func (s *CustomKeyStoreInvalidStateException) Code() string

Code returns the exception type name.



9534
9535
9536
// File 'service/kms/api.go', line 9534

func (s *CustomKeyStoreInvalidStateException) Error() string



9551
9552
9553
// File 'service/kms/api.go', line 9551

func (s *CustomKeyStoreInvalidStateException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) }

func (s CustomKeyStoreInvalidStateException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



9523
9524
9525
// File 'service/kms/api.go', line 9523

func (s CustomKeyStoreInvalidStateException) GoString() string { return s.String() }

func (s *CustomKeyStoreInvalidStateException) Message() string

Message returns the exception's message.



9539
9540
9541
9542
9543
9544
// File 'service/kms/api.go', line 9539

func (s *CustomKeyStoreInvalidStateException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" }

func (s *CustomKeyStoreInvalidStateException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



9547
9548
9549
// File 'service/kms/api.go', line 9547

func (s *CustomKeyStoreInvalidStateException) OrigErr() error { return nil }

func (s *CustomKeyStoreInvalidStateException) RequestID() string

RequestID returns the service's response RequestID for request.



9561
9562
9563
// File 'service/kms/api.go', line 9561

func (s *CustomKeyStoreInvalidStateException) RequestID() string { return s.RespMetadata.RequestID }

func (s *CustomKeyStoreInvalidStateException) StatusCode() int

Status code returns the HTTP status code for the request's response error.



9556
9557
9558
// File 'service/kms/api.go', line 9556

func (s *CustomKeyStoreInvalidStateException) StatusCode() int { return s.RespMetadata.StatusCode }

func (s CustomKeyStoreInvalidStateException) String() string

String returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



9514
9515
9516
// File 'service/kms/api.go', line 9514

func (s CustomKeyStoreInvalidStateException) String() string { return awsutil.Prettify(s) }