Amazon.Lightsail.AmazonLightsailClient.DownloadDefaultKeyPair C# (CSharp) Method

DownloadDefaultKeyPair() public method

Downloads the default SSH key pair from the user's account.
/// 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 DownloadDefaultKeyPair ( DownloadDefaultKeyPairRequest request ) : DownloadDefaultKeyPairResponse
request DownloadDefaultKeyPairRequest Container for the necessary parameters to execute the DownloadDefaultKeyPair service method.
return Amazon.Lightsail.Model.DownloadDefaultKeyPairResponse
        public DownloadDefaultKeyPairResponse DownloadDefaultKeyPair(DownloadDefaultKeyPairRequest request)
        {
            var marshaller = new DownloadDefaultKeyPairRequestMarshaller();
            var unmarshaller = DownloadDefaultKeyPairResponseUnmarshaller.Instance;

            return Invoke<DownloadDefaultKeyPairRequest,DownloadDefaultKeyPairResponse>(request, marshaller, unmarshaller);
        }
AmazonLightsailClient