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

export interface DsResourceArgs {
  path: string | core.StringOut;

  restApiId: string | core.StringOut;
}

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

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

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

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

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

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

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