Description

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

Example:

// Create a SWF client from just a session.
svc := swf.New(mySession)

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

New is referenced in 3 repositories

github.com/aws/aws-sdk-go

...