import * as core from "@terrascript/core"; export interface LocationArgs extends core.SchemaArgs { method?: string | core.StringOut; name?: string | core.StringOut; path?: string | core.StringOut; statusCode?: string | core.StringOut; type: string | core.StringOut; } export class Location extends core.Schema { @core.attr(String) public method?: string | core.StringOut; @core.attr(String) public name?: string | core.StringOut; @core.attr(String) public path?: string | core.StringOut; @core.attr(String) public statusCode?: string | core.StringOut; @core.attr(String) public type!: string | core.StringOut; } export interface DocumentationPartArgs extends core.ResourceArgs { /** * (Required) The location of the targeted API entity of the to-be-created documentation part. See belo * w. */ location: Location; /** * (Required) A content map of API-specific key-value pairs describing the targeted API entity. The map * must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only Swagger-c * ompliant key-value pairs can be exported and, hence, published. */ properties: string | core.StringOut; /** * (Required) The ID of the associated Rest API */ restApiId: string | core.StringOut; } export class DocumentationPart extends core.Resource { /** * The unique ID of the Documentation Part */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The location of the targeted API entity of the to-be-created documentation part. See belo * w. */ @core.attr(Location) public location!: Location; /** * (Required) A content map of API-specific key-value pairs describing the targeted API entity. The map * must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only Swagger-c * ompliant key-value pairs can be exported and, hence, published. */ @core.attr(String) public properties!: string | core.StringOut; /** * (Required) The ID of the associated Rest API */ @core.attr(String) public restApiId!: string | core.StringOut; constructor(name: string, args?: DocumentationPartArgs) { super(name, "aws_api_gateway_documentation_part", args); } public override getNamespace(): string { return "aws_api_gateway"; } }