import * as core from "@terrascript/core"; export interface DsExportArgs { /** * (Optional) The content-type of the export. Valid values are `application/json` and `application/yaml * are supported for `export_type` `ofoas30` and `swagger`. */ accepts?: string | core.StringOut; /** * (Required) The type of export. Acceptable values are `oas30` for OpenAPI 3.0.x and `swagger` for Swa * gger/OpenAPI 2.0. */ exportType: string | core.StringOut; /** * (Optional) A key-value map of query string parameters that specify properties of the export. the fol * lowing parameters are supported: `extensions='integrations'` or `extensions='apigateway'` will expor * t the API with x-amazon-apigateway-integration extensions. `extensions='authorizers'` will export th * e API with x-amazon-apigateway-authorizer extensions. */ parameters?: core.Map | core.MapOut; /** * (Required) The identifier of the associated REST API. */ restApiId: string | core.StringOut; /** * (Required) The name of the Stage that will be exported. */ stageName: string | core.StringOut; } export class DsExport extends core.Data { /** * (Optional) The content-type of the export. Valid values are `application/json` and `application/yaml * are supported for `export_type` `ofoas30` and `swagger`. */ @core.attr(String) public accepts?: string | core.StringOut; /** * The API Spec. */ @core.attr(String, { computed: true }) public body!: string | core.StringOut; /** * The content-disposition header value in the HTTP response. */ @core.attr(String, { computed: true }) public contentDisposition!: string | core.StringOut; /** * The content-type header value in the HTTP response. */ @core.attr(String, { computed: true }) public contentType!: string | core.StringOut; /** * (Required) The type of export. Acceptable values are `oas30` for OpenAPI 3.0.x and `swagger` for Swa * gger/OpenAPI 2.0. */ @core.attr(String) public exportType!: string | core.StringOut; /** * The `REST-API-ID:STAGE-NAME` */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) A key-value map of query string parameters that specify properties of the export. the fol * lowing parameters are supported: `extensions='integrations'` or `extensions='apigateway'` will expor * t the API with x-amazon-apigateway-integration extensions. `extensions='authorizers'` will export th * e API with x-amazon-apigateway-authorizer extensions. */ @core.attr(String, { kind: "map" }) public parameters?: core.Map | core.MapOut; /** * (Required) The identifier of the associated REST API. */ @core.attr(String) public restApiId!: string | core.StringOut; /** * (Required) The name of the Stage that will be exported. */ @core.attr(String) public stageName!: string | core.StringOut; constructor(name: string, args?: DsExportArgs) { super(name, "aws_api_gateway_export", args); } public override getNamespace(): string { return "aws_api_gateway"; } }