Alias

class Alias : KotlinCustomResource

Provides an alias for a KMS customer master key. AWS Console enforces 1-to-1 mapping between aliases & keys, but API (hence this provider too) allows you to create as many aliases as the account limits allow you.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kms.Key;
import com.pulumi.aws.kms.Alias;
import com.pulumi.aws.kms.AliasArgs;
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 key = new Key("key");
var alias = new Alias("alias", AliasArgs.builder()
.targetKeyId(key.keyId())
.build());
}
}

Import

KMS aliases can be imported using the name, e.g.,

$ pulumi import aws:kms/alias:Alias a alias/my-key-alias

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the key alias.

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

The display name of the alias. The name must start with the word "alias" followed by a forward slash (alias/)

Link copied to clipboard
val namePrefix: Output<String>

Creates an unique alias beginning with the specified prefix. The name must start with the word "alias" followed by a forward slash (alias/). Conflicts with name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val targetKeyArn: Output<String>

The Amazon Resource Name (ARN) of the target key identifier.

Link copied to clipboard
val targetKeyId: Output<String>

Identifier for the key for which the alias is for, can be either an ARN or key_id.

Link copied to clipboard
val urn: Output<String>