Ciphertext constructor
Ciphertext(
- String name, {
- CiphertextArgs? args,
- CustomResourceOptions? options,
Creates a new Ciphertext.
name The Pulumi resource name.
args Arguments used to configure this Ciphertext. The set of arguments for Ciphertext.
options Resource options controlling this resource's behavior.
Implementation
Ciphertext(
String name, {
CiphertextArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:kms/ciphertext:Ciphertext',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
additionalSecretOutputs: const ['plaintext', 'plaintextWo'],
) {
ciphertextBlob = registerOutput<String>('ciphertextBlob');
context = registerOutput<Map<String, String>?>('context', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
keyId = registerOutput<String>('keyId');
plaintext = registerOutput<String?>('plaintext', isSecret: true);
plaintextWo = registerOutput<String?>('plaintextWo', isSecret: true);
plaintextWoVersion = registerOutput<String?>('plaintextWoVersion');
region = registerOutput<String>('region');
}