/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the lightsail-2016-11-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Lightsail.Model { /// /// Container for the parameters to the DeleteKeyPair operation. /// Deletes the specified key pair by removing the public key from Amazon Lightsail. /// /// /// /// You can delete key pairs that were created using the ImportKeyPair /// and CreateKeyPair /// actions, as well as the Lightsail default key pair. A new default key pair will not /// be created unless you launch an instance without specifying a custom key pair, or /// you call the DownloadDefaultKeyPair /// API. /// /// /// /// The delete key pair operation supports tag-based access control via resource /// tags applied to the resource identified by key pair name. For more information, /// see the Amazon /// Lightsail Developer Guide. /// /// public partial class DeleteKeyPairRequest : AmazonLightsailRequest { private string _expectedFingerprint; private string _keyPairName; /// /// Gets and sets the property ExpectedFingerprint. /// /// The RSA fingerprint of the Lightsail default key pair to delete. /// /// /// /// The expectedFingerprint parameter is required only when specifying to /// delete a Lightsail default key pair. /// /// /// public string ExpectedFingerprint { get { return this._expectedFingerprint; } set { this._expectedFingerprint = value; } } // Check to see if ExpectedFingerprint property is set internal bool IsSetExpectedFingerprint() { return this._expectedFingerprint != null; } /// /// Gets and sets the property KeyPairName. /// /// The name of the key pair to delete. /// /// [AWSProperty(Required=true)] public string KeyPairName { get { return this._keyPairName; } set { this._keyPairName = value; } } // Check to see if KeyPairName property is set internal bool IsSetKeyPairName() { return this._keyPairName != null; } } }