Show / Hide Table of Contents

Enum KeyPairFormat

The format of the Key Pair.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum KeyPairFormat
Syntax (vb)
Public Enum KeyPairFormat
Remarks

ExampleMetadata: infused

Examples
Vpc vpc;
            InstanceType instanceType;


            var keyPair = new KeyPair(this, "KeyPair", new KeyPairProps {
                Type = KeyPairType.ED25519,
                Format = KeyPairFormat.PEM
            });
            var instance = new Instance(this, "Instance", new InstanceProps {
                Vpc = vpc,
                InstanceType = instanceType,
                MachineImage = MachineImage.LatestAmazonLinux2023(),
                // Use the custom key pair
                KeyPair = keyPair
            });

Synopsis

Fields

PEM

A PEM file.

PPK

A PPK file, typically used with PuTTY.

Fields

Name Description
PEM

A PEM file.

PPK

A PPK file, typically used with PuTTY.

Back to top Generated by DocFX