import * as core from "@terrascript/core";

export interface CiphertextArgs extends core.ResourceArgs {
  context?: core.Map<string, string> | core.MapOut<core.StringOut>;

  keyId: string | core.StringOut;

  plaintext: string | core.StringOut;
}

export class Ciphertext extends core.Resource<CiphertextArgs> {
  @core.attr(String, { computed: true })
  public ciphertextBlob!: string | core.StringOut;

  @core.attr(String, { kind: "map" })
  public context?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public keyId!: string | core.StringOut;

  @core.attr(String)
  public plaintext!: string | core.StringOut;

  constructor(name: string, args?: CiphertextArgs) {
    super(name, "aws_kms_ciphertext", args);
  }

  public override getNamespace(): string {
    return "aws_kms";
  }
}
