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

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