Struct: kms.InvalidImportTokenException

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

Overview

The request was rejected because the provided import token is invalid or is associated with a different customer master key (CMK).

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

Code returns the exception type name.



13851
13852
13853
// File 'service/kms/api.go', line 13851

func (s *InvalidImportTokenException) Error() string



13868
13869
13870
// File 'service/kms/api.go', line 13868

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

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



13840
13841
13842
// File 'service/kms/api.go', line 13840

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

func (s *InvalidImportTokenException) Message() string

Message returns the exception's message.



13856
13857
13858
13859
13860
13861
// File 'service/kms/api.go', line 13856

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

func (s *InvalidImportTokenException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



13864
13865
13866
// File 'service/kms/api.go', line 13864

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

func (s *InvalidImportTokenException) RequestID() string

RequestID returns the service's response RequestID for request.



13878
13879
13880
// File 'service/kms/api.go', line 13878

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

func (s *InvalidImportTokenException) StatusCode() int

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



13873
13874
13875
// File 'service/kms/api.go', line 13873

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

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



13831
13832
13833
// File 'service/kms/api.go', line 13831

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