Struct: kms.MalformedPolicyDocumentException

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

Overview

The request was rejected because the specified policy is not syntactically or semantically correct.

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

Code returns the exception type name.



15419
15420
15421
// File 'service/kms/api.go', line 15419

func (s *MalformedPolicyDocumentException) Error() string



15436
15437
15438
// File 'service/kms/api.go', line 15436

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

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



15408
15409
15410
// File 'service/kms/api.go', line 15408

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

func (s *MalformedPolicyDocumentException) Message() string

Message returns the exception's message.



15424
15425
15426
15427
15428
15429
// File 'service/kms/api.go', line 15424

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

func (s *MalformedPolicyDocumentException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



15432
15433
15434
// File 'service/kms/api.go', line 15432

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

func (s *MalformedPolicyDocumentException) RequestID() string

RequestID returns the service's response RequestID for request.



15446
15447
15448
// File 'service/kms/api.go', line 15446

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

func (s *MalformedPolicyDocumentException) StatusCode() int

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



15441
15442
15443
// File 'service/kms/api.go', line 15441

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

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



15399
15400
15401
// File 'service/kms/api.go', line 15399

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