// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * API Gateway */ export interface ApiGatewayGatewayResponseConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_gateway_response.html#response_parameters ApiGatewayGatewayResponse#response_parameters} */ readonly responseParameters?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_gateway_response.html#response_templates ApiGatewayGatewayResponse#response_templates} */ readonly responseTemplates?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_gateway_response.html#response_type ApiGatewayGatewayResponse#response_type} */ readonly responseType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_gateway_response.html#rest_api_id ApiGatewayGatewayResponse#rest_api_id} */ readonly restApiId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_gateway_response.html#status_code ApiGatewayGatewayResponse#status_code} */ readonly statusCode?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_gateway_response.html aws_api_gateway_gateway_response} */ export class ApiGatewayGatewayResponse extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_api_gateway_gateway_response"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_gateway_response.html aws_api_gateway_gateway_response} 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 ApiGatewayGatewayResponseConfig */ public constructor(scope: Construct, id: string, config: ApiGatewayGatewayResponseConfig) { super(scope, id, { terraformResourceType: 'aws_api_gateway_gateway_response', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._responseParameters = config.responseParameters; this._responseTemplates = config.responseTemplates; this._responseType = config.responseType; this._restApiId = config.restApiId; this._statusCode = config.statusCode; } // ========== // ATTRIBUTES // ========== // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // response_parameters - computed: false, optional: true, required: false private _responseParameters?: { [key: string]: string } | cdktf.IResolvable; public get responseParameters() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('response_parameters') as any; } public set responseParameters(value: { [key: string]: string } | cdktf.IResolvable) { this._responseParameters = value; } public resetResponseParameters() { this._responseParameters = undefined; } // Temporarily expose input value. Use with caution. public get responseParametersInput() { return this._responseParameters; } // response_templates - computed: false, optional: true, required: false private _responseTemplates?: { [key: string]: string } | cdktf.IResolvable; public get responseTemplates() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('response_templates') as any; } public set responseTemplates(value: { [key: string]: string } | cdktf.IResolvable) { this._responseTemplates = value; } public resetResponseTemplates() { this._responseTemplates = undefined; } // Temporarily expose input value. Use with caution. public get responseTemplatesInput() { return this._responseTemplates; } // response_type - computed: false, optional: false, required: true private _responseType?: string; public get responseType() { return this.getStringAttribute('response_type'); } public set responseType(value: string) { this._responseType = value; } // Temporarily expose input value. Use with caution. public get responseTypeInput() { return this._responseType; } // 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; } // status_code - computed: false, optional: true, required: false private _statusCode?: string; public get statusCode() { return this.getStringAttribute('status_code'); } public set statusCode(value: string) { this._statusCode = value; } public resetStatusCode() { this._statusCode = undefined; } // Temporarily expose input value. Use with caution. public get statusCodeInput() { return this._statusCode; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { response_parameters: cdktf.hashMapper(cdktf.anyToTerraform)(this._responseParameters), response_templates: cdktf.hashMapper(cdktf.anyToTerraform)(this._responseTemplates), response_type: cdktf.stringToTerraform(this._responseType), rest_api_id: cdktf.stringToTerraform(this._restApiId), status_code: cdktf.stringToTerraform(this._statusCode), }; } }