public Task GenerateAuthTokenFromProfileAsync()

in src/AWSMSKAuthTokenGenerator.cs [216:226]


    public Task<(string, long)> GenerateAuthTokenFromProfileAsync(string profileName, RegionEndpoint region)
    {
        var chain = new CredentialProfileStoreChain();

        if (chain.TryGetAWSCredentials(profileName, out var awsCredentials))
        {
            return GenerateAuthTokenFromCredentialsProvider(() => awsCredentials, region).AsTask();
        }

        throw new ArgumentException($"Could not find credentials using profile {profileName}");
    }