Description

NewCredentials returns a pointer to a new Credentials object wrapping the AssumeRoleProvider. The credentials will expire every 15 minutes and the role will be named after a nanosecond timestamp of this operation.

Takes a Config provider to create the STS client. The ConfigProvider is satisfied by the session.Session type.

NewCredentials is referenced in 3 repositories

github.com/aws/aws-sdk-go github.com/influxdata/telegraf

...