// IsCredsExpired returns true if given session is having expired credentials.
IsCredsExpired returns true if given session is having expired credentials.
// IsCredsExpired returns true if given session is having expired credentials .
func IsCredsExpired(svc stsiface.STSAPI) bool {
	_, err := svc.GetCallerIdentity(&sts.GetCallerIdentityInput{})
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			if aerr.Code() == "ExpiredToken" {
				return true
			}
		}
		clogger.Fatal(err)
	}
	return false
}
func IsCredsExpired ( svc stsiface . STSAPI ) bool { _ , err := svc . GetCallerIdentity ( & sts . GetCallerIdentityInput { } ) if err != nil { if aerr , ok := err . ( awserr . Error ) ; ok { if aerr . Code ( ) == " " { return true } } clogger . Fatal ( err ) } return false }
IsCredsExpired returns true if given session is having expired credentials.
IsCredsExpired returns true if given session is having expired credentials .