You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: aws.go
    path of file: ./repos/pipeline/internal/providers/pke/pkeworkflow
    
    the code of the file until where you have to start completion: // Copyright Â© 2019 Banzai Cloud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/lic
    
func (f *AWSClientFactory) New(organizationID uint, secretID string, region string) (*session.Session, error) {
	s, err := f.secrets.GetSecret(organizationID, secretID)
	if err != nil {
		return nil, errors.WrapIf(err, "failed to get AWS secret")
	}

	err = s.ValidateSecretType(amazon.Provider)
	if err != nil {
		return nil, err
	}

	awsCred := amazon.CreateAWSCredentials(s.GetValues())

	return session.NewSession(&aws.Config{
		Region:      aws.String(region),
		Credentials: awsCred,
	})
}