interface CfnKeyPairMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnKeyPairMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnKeyPairMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnKeyPairMixinProps |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnKeyPairMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnKeyPairMixinProps |
Properties for CfnKeyPairPropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-keypair.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const cfnKeyPairMixinProps: ec2_mixins.CfnKeyPairMixinProps = {
keyFormat: 'keyFormat',
keyName: 'keyName',
keyType: 'keyType',
publicKeyMaterial: 'publicKeyMaterial',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| key | string | The format of the key pair. |
| key | string | A unique name for the key pair. |
| key | string | The type of key pair. Note that ED25519 keys are not supported for Windows instances. |
| public | string | The public key material. |
| tags? | Cfn[] | The tags to apply to the key pair. |
keyFormat?
Type:
string
(optional, default: "pem")
The format of the key pair.
Default: pem
keyName?
Type:
string
(optional)
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
keyType?
Type:
string
(optional, default: "rsa")
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value.
Default: rsa
publicKeyMaterial?
Type:
string
(optional)
The public key material.
The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
tags?
Type:
Cfn[]
(optional)
The tags to apply to the key pair.

.NET
Go
Java
Python
TypeScript