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

export interface DsPublicKeyArgs {
  grantTokens?: core.Array<string> | core.ArrayOut<core.StringOut>;

  keyId: string | core.StringOut;
}

export class DsPublicKey extends core.Data<DsPublicKeyArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

  @core.attr(String, { computed: true, kind: "array" })
  public encryptionAlgorithms!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public grantTokens?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public signingAlgorithms!: core.Array<string> | core.ArrayOut<core.StringOut>;

  constructor(name: string, args?: DsPublicKeyArgs) {
    super(name, "aws_kms_public_key", args);
  }

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