예제 #1
0
        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);
        }
예제 #2
0
        public static AwsEc2ServerSecretsSerialization AddUserAuthentication(this AwsEc2ServerSecretsSerialization serialization,
                                                                             string friendlyName, AwsEc2UserAuthentication userAuthentication)
        {
            serialization.UserAuthenticationsByFriendlyName.Add(friendlyName, userAuthentication);

            return(serialization);
        }