KeyArgs

data class KeyArgs(val deletionWindowInDays: Output<Int>? = null, val enabled: Output<Boolean>? = null, val exportable: Output<Boolean>? = null, val keyAttributes: Output<KeyKeyAttributesArgs>? = null, val keyCheckValueAlgorithm: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val timeouts: Output<KeyTimeoutsArgs>? = null) : ConvertibleToJava<KeyArgs>

Resource for managing an AWS Payment Cryptography Control Plane Key.

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 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());
}
}
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

Import

Using pulumi import, import Payment Cryptography Control Plane Key using the arn:aws:payment-cryptography:us-east-1:123456789012:key/qtbojf64yshyvyzf. For example:

$ pulumi import aws:paymentcryptography/key:Key example arn:aws:payment-cryptography:us-east-1:123456789012:key/qtbojf64yshyvyzf

Constructors

Link copied to clipboard
constructor(deletionWindowInDays: Output<Int>? = null, enabled: Output<Boolean>? = null, exportable: Output<Boolean>? = null, keyAttributes: Output<KeyKeyAttributesArgs>? = null, keyCheckValueAlgorithm: Output<String>? = null, tags: Output<Map<String, String>>? = null, timeouts: Output<KeyTimeoutsArgs>? = null)

Properties

Link copied to clipboard
val deletionWindowInDays: Output<Int>? = null
Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether to enable the key.

Link copied to clipboard
val exportable: Output<Boolean>? = null

Whether the key is exportable from the service.

Link copied to clipboard
val keyAttributes: Output<KeyKeyAttributesArgs>? = null

Role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. The following arguments are optional:

Link copied to clipboard
val keyCheckValueAlgorithm: Output<String>? = null

Algorithm that AWS Payment Cryptography uses to calculate the key check value (KCV).

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Map of tags assigned to the WorkSpaces Connection Alias. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val timeouts: Output<KeyTimeoutsArgs>? = null

Functions

Link copied to clipboard
open override fun toJava(): KeyArgs