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