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

export interface DsApiKeyArgs {
  id: string | core.StringOut;

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsApiKeyArgs) {
    super(name, "aws_api_gateway_api_key", args);
  }

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