public static AwsEc2ServerSecretsSerialization AddUserAuthentication(this AwsEc2ServerSecretsSerialization serialization, string friendlyName, string userID, string password, string privateKeyFilePath) { var userAuthentication = new AwsEc2UserAuthentication() { UserID = userID, Password = password, PrivateKeyFilePath = privateKeyFilePath, }; serialization.AddUserAuthentication(friendlyName, userAuthentication); return(serialization); }
public static AwsEc2ServerSecretsSerialization AddUserAuthentication(this AwsEc2ServerSecretsSerialization serialization, string friendlyName, AwsEc2UserAuthentication userAuthentication) { serialization.UserAuthenticationsByFriendlyName.Add(friendlyName, userAuthentication); return(serialization); }