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

export interface DsResourceArgs {
  arn: string | core.StringOut;
}

export class DsResource extends core.Data<DsResourceArgs> {
  @core.attr(String)
  public arn!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: DsResourceArgs) {
    super(name, "aws_lakeformation_resource", args);
  }

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