Struct: kms.DisabledException

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

Overview

The request was rejected because the specified CMK is not enabled.

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

Code returns the exception type name.



10891
10892
10893
// File 'service/kms/api.go', line 10891

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

func (s *DisabledException) Error() string



10908
10909
10910
// File 'service/kms/api.go', line 10908

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

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



10880
10881
10882
// File 'service/kms/api.go', line 10880

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

func (s *DisabledException) Message() string

Message returns the exception's message.



10896
10897
10898
10899
10900
10901
// File 'service/kms/api.go', line 10896

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

func (s *DisabledException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



10904
10905
10906
// File 'service/kms/api.go', line 10904

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

func (s *DisabledException) RequestID() string

RequestID returns the service's response RequestID for request.



10918
10919
10920
// File 'service/kms/api.go', line 10918

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

func (s *DisabledException) StatusCode() int

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



10913
10914
10915
// File 'service/kms/api.go', line 10913

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

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



10871
10872
10873
// File 'service/kms/api.go', line 10871

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