// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * API Gateway */ export interface ApiGatewayModelConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_model.html#content_type ApiGatewayModel#content_type} */ readonly contentType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_model.html#description ApiGatewayModel#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_model.html#name ApiGatewayModel#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_model.html#rest_api_id ApiGatewayModel#rest_api_id} */ readonly restApiId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_model.html#schema ApiGatewayModel#schema} */ readonly schema?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_model.html aws_api_gateway_model} */ export class ApiGatewayModel extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_api_gateway_model"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_model.html aws_api_gateway_model} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options ApiGatewayModelConfig */ public constructor(scope: Construct, id: string, config: ApiGatewayModelConfig) { super(scope, id, { terraformResourceType: 'aws_api_gateway_model', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._contentType = config.contentType; this._description = config.description; this._name = config.name; this._restApiId = config.restApiId; this._schema = config.schema; } // ========== // ATTRIBUTES // ========== // content_type - computed: false, optional: false, required: true private _contentType?: string; public get contentType() { return this.getStringAttribute('content_type'); } public set contentType(value: string) { this._contentType = value; } // Temporarily expose input value. Use with caution. public get contentTypeInput() { return this._contentType; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // rest_api_id - computed: false, optional: false, required: true private _restApiId?: string; public get restApiId() { return this.getStringAttribute('rest_api_id'); } public set restApiId(value: string) { this._restApiId = value; } // Temporarily expose input value. Use with caution. public get restApiIdInput() { return this._restApiId; } // schema - computed: false, optional: true, required: false private _schema?: string; public get schema() { return this.getStringAttribute('schema'); } public set schema(value: string) { this._schema = value; } public resetSchema() { this._schema = undefined; } // Temporarily expose input value. Use with caution. public get schemaInput() { return this._schema; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { content_type: cdktf.stringToTerraform(this._contentType), description: cdktf.stringToTerraform(this._description), name: cdktf.stringToTerraform(this._name), rest_api_id: cdktf.stringToTerraform(this._restApiId), schema: cdktf.stringToTerraform(this._schema), }; } }