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

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