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

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

  roleArn?: string | core.StringOut;
}

export class Resource extends core.Resource<ResourceArgs> {
  @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?: ResourceArgs) {
    super(name, "aws_lakeformation_resource", args);
  }

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