Class KeyPairAttributes
Attributes of a Key Pair.
Inheritance
System.Object
KeyPairAttributes
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class KeyPairAttributes : Object, IKeyPairAttributes
Syntax (vb)
Public Class KeyPairAttributes
Inherits Object
Implements IKeyPairAttributes
Remarks
ExampleMetadata: infused
Examples
var keyPair = KeyPair.FromKeyPairAttributes(this, "KeyPair", new KeyPairAttributes {
KeyPairName = "the-keypair-name",
Type = KeyPairType.RSA
});
Synopsis
Constructors
KeyPairAttributes() |
Properties
KeyPairName | The unique name of the key pair. |
Type | The type of the key pair. |
Constructors
KeyPairAttributes()
public KeyPairAttributes()
Properties
KeyPairName
The unique name of the key pair.
public string KeyPairName { get; set; }
Property Value
System.String
Type
The type of the key pair.
public Nullable<KeyPairType> Type { get; set; }
Property Value
System.Nullable<KeyPairType>
Remarks
Default: no type specified