Description

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

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

New is referenced in 16 repositories

github.com/aws/aws-sdk-go gopkg.in/aws/aws-sdk-go.v1 github.com/sam701/awstools

...