// GetCallerInfo returns the caller identity from the given service client session.
// It also returns an error if there was any.
GetCallerInfo returns the caller identity from the given service client session.
It also returns an error if there was any.
// GetCallerInfo returns the caller identity from the given service client session . // It also returns an error if there was any .
func GetCallerInfo(svc stsiface.STSAPI) (*sts.GetCallerIdentityOutput, error) {
	result, err := svc.GetCallerIdentity(&sts.GetCallerIdentityInput{})
	if err != nil {
		return nil, err
	}
	return result, nil
}
func GetCallerInfo ( svc stsiface . STSAPI ) ( * sts . GetCallerIdentityOutput , error ) { result , err := svc . GetCallerIdentity ( & sts . GetCallerIdentityInput { } ) if err != nil { return nil , err } return result , nil }
GetCallerInfo returns the caller identity from the given service client session.
GetCallerInfo returns the caller identity from the given service client session .