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

export interface SchemaArgs extends core.ResourceArgs {
  compatibility: string | core.StringOut;

  dataFormat: string | core.StringOut;

  description?: string | core.StringOut;

  registryArn?: string | core.StringOut;

  schemaDefinition: string | core.StringOut;

  schemaName: string | core.StringOut;

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

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

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

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

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

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

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

  @core.attr(Number, { computed: true })
  public latestSchemaVersion!: number | core.NumberOut;

  @core.attr(Number, { computed: true })
  public nextSchemaVersion!: number | core.NumberOut;

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

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

  @core.attr(Number, { computed: true })
  public schemaCheckpoint!: number | core.NumberOut;

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

  @core.attr(String)
  public schemaName!: 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>;

  constructor(name: string, args?: SchemaArgs) {
    super(name, "aws_glue_schema", args);
  }

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