func NewEksClientFromSession(sess *session.Session) EksClient {
	return &awsClient{
		sess: sess,
	}
}
Construct client from preconfigured session.
package cloud
import (
	"context"
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/credentials"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/eks"
	"sigs.k8s.io/aws-iam-authenticator/pkg/token"
)
func NewEksClient(region string, creds *credentials.Credentials) (EksClient, error) {
	sess, err := session.NewSession(&aws.Config{
		Region:      aws.String(region),
		Credentials: creds,
	})
	if err != nil {
		return nil, err
	}
	return &awsClient{
		sess: sess,
	}, nil
}