import * as core from "@terrascript/core"; export interface ResourceArgs extends core.ResourceArgs { /** * (Required) The ID of the parent API resource */ parentId: string | core.StringOut; /** * (Required) The last path segment of this API resource. */ pathPart: string | core.StringOut; /** * (Required) The ID of the associated REST API */ restApiId: string | core.StringOut; } export class Resource extends core.Resource { /** * The resource's identifier. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The ID of the parent API resource */ @core.attr(String) public parentId!: string | core.StringOut; /** * The complete path for this API resource, including all parent paths. */ @core.attr(String, { computed: true }) public path!: string | core.StringOut; /** * (Required) The last path segment of this API resource. */ @core.attr(String) public pathPart!: string | core.StringOut; /** * (Required) The ID of the associated REST API */ @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"; } }