Struct: session.SharedConfigAssumeRoleError

import "../ibm-cos-sdk-go/aws/session"

Overview

SharedConfigAssumeRoleError is an error for the shared config when the profile contains assume role information, but that information is invalid or not complete.

Implemented Interfaces

s3crypto.Cipher, awserr.Error, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

RoleARN string

SourceProfile string

Method Details

func (e SharedConfigAssumeRoleError) Code() string

Code is the short id of the error.



428
429
430
// File 'aws/session/shared_config.go', line 428

func (e SharedConfigAssumeRoleError) Code() string { return "SharedConfigAssumeRoleError" }

func (e SharedConfigAssumeRoleError) Error() string

Error satisfies the error interface.



446
447
448
// File 'aws/session/shared_config.go', line 446

func (e SharedConfigAssumeRoleError) Error() string { return awserr.SprintError(e.Code(), e.Message(), "", nil) }

func (e SharedConfigAssumeRoleError) Message() string

Message is the description of the error



433
434
435
436
437
438
// File 'aws/session/shared_config.go', line 433

func (e SharedConfigAssumeRoleError) Message() string { return fmt.Sprintf( "failed to load assume role for %s, source profile %s has no shared credentials", e.RoleARN, e.SourceProfile, ) }

func (e SharedConfigAssumeRoleError) OrigErr() error

OrigErr is the underlying error that caused the failure.



441
442
443
// File 'aws/session/shared_config.go', line 441

func (e SharedConfigAssumeRoleError) OrigErr() error { return nil }