Module Values.DeleteKeyPairRequestSource

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.

Sourcetype nonrec t = {
  1. keyPairName : ResourceName.t;
    (*

    The name of the key pair to delete.

    *)
  2. expectedFingerprint : String_.t option;
    (*

    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.

    *)
}
Sourceval context_ : string
Sourceval make : ?expectedFingerprint:??? -> keyPairName:ResourceName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ResourceName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t