KeyPair

Provides a ENS Key Pair resource. For information about ENS Key Pair and how to use it, see What is Key Pair.

NOTE: Available in v1.133.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ens.KeyPair;
import com.pulumi.alicloud.ens.KeyPairArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new KeyPair("example", KeyPairArgs.builder()
.keyPairName("example_value")
.version("example_value")
.build());
}
}

Import

ENS Key Pair can be imported using the id, e.g.

$ pulumi import alicloud:ens/keyPair:KeyPair example <key_pair_name>:<version>

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val keyPairName: Output<String>

The name of the key pair.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

The version number.