import * as core from "@terrascript/core"; export interface DsResourceArgs { /** * (Required) The full path of the resource. If no path is found, an error will be returned. */ path: string | core.StringOut; /** * (Required) The REST API id that owns the resource. If no REST API is found, an error will be returne * d. */ restApiId: string | core.StringOut; } export class DsResource extends core.Data { /** * Set to the ID of the found Resource. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Set to the ID of the parent Resource. */ @core.attr(String, { computed: true }) public parentId!: string | core.StringOut; /** * (Required) The full path of the resource. If no path is found, an error will be returned. */ @core.attr(String) public path!: string | core.StringOut; /** * Set to the path relative to the parent Resource. */ @core.attr(String, { computed: true }) public pathPart!: string | core.StringOut; /** * (Required) The REST API id that owns the resource. If no REST API is found, an error will be returne * d. */ @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"; } }