Struct: kms.ExpiredImportTokenException

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

Overview

The request was rejected because the specified import token is expired. Use GetParametersForImport to get a new import token and public key, use the new public key to encrypt the key material, and then try the request again.

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

Code returns the exception type name.



11396
11397
11398
// File 'service/kms/api.go', line 11396

func (s *ExpiredImportTokenException) Error() string



11413
11414
11415
// File 'service/kms/api.go', line 11413

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

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



11385
11386
11387
// File 'service/kms/api.go', line 11385

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

func (s *ExpiredImportTokenException) Message() string

Message returns the exception's message.



11401
11402
11403
11404
11405
11406
// File 'service/kms/api.go', line 11401

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

func (s *ExpiredImportTokenException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



11409
11410
11411
// File 'service/kms/api.go', line 11409

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

func (s *ExpiredImportTokenException) RequestID() string

RequestID returns the service's response RequestID for request.



11423
11424
11425
// File 'service/kms/api.go', line 11423

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

func (s *ExpiredImportTokenException) StatusCode() int

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



11418
11419
11420
// File 'service/kms/api.go', line 11418

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

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



11376
11377
11378
// File 'service/kms/api.go', line 11376

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