Struct: kms.KeyUnavailableException

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

Overview

The request was rejected because the specified KMS key was not available. You can retry the request.

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

Code returns the exception type name.



14476
14477
14478
// File 'service/kms/api.go', line 14476

func (s *KeyUnavailableException) Code() string { return "KeyUnavailableException" }

func (s *KeyUnavailableException) Error() string



14493
14494
14495
// File 'service/kms/api.go', line 14493

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

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



14465
14466
14467
// File 'service/kms/api.go', line 14465

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

func (s *KeyUnavailableException) Message() string

Message returns the exception's message.



14481
14482
14483
14484
14485
14486
// File 'service/kms/api.go', line 14481

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

func (s *KeyUnavailableException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



14489
14490
14491
// File 'service/kms/api.go', line 14489

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

func (s *KeyUnavailableException) RequestID() string

RequestID returns the service's response RequestID for request.



14503
14504
14505
// File 'service/kms/api.go', line 14503

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

func (s *KeyUnavailableException) StatusCode() int

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



14498
14499
14500
// File 'service/kms/api.go', line 14498

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

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



14456
14457
14458
// File 'service/kms/api.go', line 14456

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