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

export interface ReplicaExternalKeyArgs extends core.ResourceArgs {
  bypassPolicyLockoutSafetyCheck?: boolean | core.BooleanOut;

  deletionWindowInDays?: number | core.NumberOut;

  description?: string | core.StringOut;

  enabled?: boolean | core.BooleanOut;

  keyMaterialBase64?: string | core.StringOut;

  policy?: string | core.StringOut;

  primaryKeyArn: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  validTo?: string | core.StringOut;
}

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

  @core.attr(Boolean)
  public bypassPolicyLockoutSafetyCheck?: boolean | core.BooleanOut;

  @core.attr(Number)
  public deletionWindowInDays?: number | core.NumberOut;

  @core.attr(String)
  public description?: string | core.StringOut;

  @core.attr(Boolean, { computed: true })
  public enabled?: boolean | core.BooleanOut;

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

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

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

  @core.attr(String)
  public keyMaterialBase64?: string | core.StringOut;

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

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

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

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

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

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

  @core.attr(String)
  public validTo?: string | core.StringOut;

  constructor(name: string, args?: ReplicaExternalKeyArgs) {
    super(name, "aws_kms_replica_external_key", args);
  }

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