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

export interface ContributorInsightsArgs extends core.ResourceArgs {
  indexName?: string | core.StringOut;

  tableName: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: ContributorInsightsArgs) {
    super(name, "aws_dynamodb_contributor_insights", args);
  }

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