New creates a new instance of the Lambda client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.


// Create a Lambda client from just a session.
svc := lambda.New(mySession)

// Create a Lambda client with additional configuration
svc := lambda.New(mySession, aws.NewConfig().WithRegion("us-west-2"))