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

export interface ApiKeyArgs extends core.ResourceArgs {
  apiId: string | core.StringOut;

  description?: string | core.StringOut;

  expires?: string | core.StringOut;
}

export class ApiKey extends core.Resource<ApiKeyArgs> {
  @core.attr(String)
  public apiId!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: ApiKeyArgs) {
    super(name, "aws_appsync_api_key", args);
  }

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