package
0.0.0-20250312200722-bc14b7464845
Repository: https://github.com/awsdocs/aws-doc-sdk-examples.git
Documentation: pkg.go.dev

# Functions

TakeRole gets temporary security credentials to access resources Inputs: svc is an AWS STS service client roleARN is the Amazon Resource Name (ARN) of the role to assume sessionName is a unique identifier for the session Output: If success, information about the assumed role and nil Otherwise, nil and an error from the call to AssumeRole.