KeyAlias

class KeyAlias : KotlinCustomResource

Resource for managing an AWS Payment Cryptography Control Plane Key Alias.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.paymentcryptography.Key;
import com.pulumi.aws.paymentcryptography.KeyArgs;
import com.pulumi.aws.paymentcryptography.KeyAlias;
import com.pulumi.aws.paymentcryptography.KeyAliasArgs;
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 test = new Key("test", KeyArgs.builder()
.exportable(true)
.keyAttributes(KeyKeyAttributesArgs.builder()
.keyAlgorithm("TDES_3KEY")
.keyClass("SYMMETRIC_KEY")
.keyUsage("TR31_P0_PIN_ENCRYPTION_KEY")
.keyModesOfUse(KeyKeyAttributesKeyModesOfUseArgs.builder()
.decrypt(true)
.encrypt(true)
.wrap(true)
.unwrap(true)
.build())
.build())
.build());
var testKeyAlias = new KeyAlias("testKeyAlias", KeyAliasArgs.builder()
.aliasName("alias/test-alias")
.keyArn(test.arn())
.build());
}
}
resources:
test:
type: aws:paymentcryptography:Key
properties:
exportable: true
keyAttributes:
- keyAlgorithm: TDES_3KEY
keyClass: SYMMETRIC_KEY
keyUsage: TR31_P0_PIN_ENCRYPTION_KEY
keyModesOfUse:
- decrypt: true
encrypt: true
wrap: true
unwrap: true
testKeyAlias:
type: aws:paymentcryptography:KeyAlias
name: test
properties:
aliasName: alias/test-alias
keyArn: ${test.arn}

Import

Using pulumi import, import Payment Cryptography Control Plane Key Alias using the alias/4681482429376900170. For example:

$ pulumi import aws:paymentcryptography/keyAlias:KeyAlias example alias/4681482429376900170

Properties

Link copied to clipboard
val aliasName: Output<String>

Name of the Key Alias. The following arguments are optional:

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val keyArn: Output<String>?

ARN of the key.

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