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

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