terraform-generator
Version:
Generate Terraform configurations with Node.js.
32 lines (31 loc) • 741 B
TypeScript
import { Argument, Attribute } from '../arguments';
import { TerraformArgs } from '../utils';
import { Block } from '.';
/**
* @category Block
*/
export interface VariableArgs {
type: Argument;
default?: any;
description?: string;
sensitive?: boolean;
nullable?: boolean;
validation?: TerraformArgs;
}
/**
* @category Block
*/
export declare class Variable extends Block<VariableArgs> {
readonly name: string;
/**
* Construct variable.
*
* Refer to Terraform documentation on what can be put as arguments.
*
* @param name name
* @param args arguments
*/
constructor(name: string, args: VariableArgs);
asArgument(): Argument;
attr(name: string): Attribute;
}