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

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

  pathPart: string | core.StringOut;

  restApiId: string | core.StringOut;
}

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

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

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

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

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

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

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