Struct: kms.InvalidStateException

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

Overview

The request was rejected because the state of the specified resource is not valid for this request.

For more information about how key state affects the use of a CMK, see How Key State Affects Use of a Customer Master Key (docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the AWS Key Management Service Developer Guide .

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 *InvalidStateException) Code() string

Code returns the exception type name.



14061
14062
14063
// File 'service/kms/api.go', line 14061

func (s *InvalidStateException) Code() string { return "KMSInvalidStateException" }

func (s *InvalidStateException) Error() string



14078
14079
14080
// File 'service/kms/api.go', line 14078

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

func (s InvalidStateException) 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”.



14050
14051
14052
// File 'service/kms/api.go', line 14050

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

func (s *InvalidStateException) Message() string

Message returns the exception's message.



14066
14067
14068
14069
14070
14071
// File 'service/kms/api.go', line 14066

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

func (s *InvalidStateException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



14074
14075
14076
// File 'service/kms/api.go', line 14074

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

func (s *InvalidStateException) RequestID() string

RequestID returns the service's response RequestID for request.



14088
14089
14090
// File 'service/kms/api.go', line 14088

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

func (s *InvalidStateException) StatusCode() int

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



14083
14084
14085
// File 'service/kms/api.go', line 14083

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

func (s InvalidStateException) 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”.



14041
14042
14043
// File 'service/kms/api.go', line 14041

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