New creates a new instance of the CloudSearch 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 CloudSearch client from just a session.
svc := cloudsearch.New(mySession)

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