Amazon.Lightsail.AmazonLightsailClient.ImportKeyPair C# (CSharp) Метод

ImportKeyPair() публичный Метод

Imports a public SSH key from a specific key pair.
/// Lightsail throws this exception when the user cannot be authenticated or uses invalid /// credentials to access a resource. /// /// Lightsail throws this exception when an account is still in the setup in progress /// state. /// /// Lightsail throws this exception when user input does not conform to the validation /// rules of an input field. /// /// Lightsail throws this exception when it cannot find a resource. /// /// Lightsail throws this exception when an operation fails to execute. /// /// A general service exception. /// /// Lightsail throws this exception when the user has not been authenticated. ///
public ImportKeyPair ( ImportKeyPairRequest request ) : ImportKeyPairResponse
request Amazon.Lightsail.Model.ImportKeyPairRequest Container for the necessary parameters to execute the ImportKeyPair service method.
Результат Amazon.Lightsail.Model.ImportKeyPairResponse
        public ImportKeyPairResponse ImportKeyPair(ImportKeyPairRequest request)
        {
            var marshaller = new ImportKeyPairRequestMarshaller();
            var unmarshaller = ImportKeyPairResponseUnmarshaller.Instance;

            return Invoke<ImportKeyPairRequest,ImportKeyPairResponse>(request, marshaller, unmarshaller);
        }
AmazonLightsailClient