Skip to content

KeyPairProps

Properties for defining a KeyPair.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-keypair

Initializer

import com.aliyun.ros.cdk.ens.KeyPairProps;
KeyPairProps.builder()
    .keyPairName(java.lang.String)
    .keyPairName(IResolvable)
//  .publicKeyBody(java.lang.String)
//  .publicKeyBody(IResolvable)
    .build();

Properties

Name Type Description
keyPairName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property keyPairName: The name of the key pair.
publicKeyBody java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property publicKeyBody: SSH Public key.

keyPairNameRequired

public java.lang.Object getKeyPairName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property keyPairName: The name of the key pair.

The name must conform to the following naming conventions: The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter but cannot start with http:// or https://.


publicKeyBodyOptional

public java.lang.Object getPublicKeyBody();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property publicKeyBody: SSH Public key.

If PublicKeyBody is specified, existed public key body will be imported instead of creating new SSH key pair.