terraform-generator
Version:
Generate Terraform configurations with Node.js.
23 lines (22 loc) • 592 B
TypeScript
import { Argument, Attribute } from '../arguments';
import { TerraformArgs } from '../utils';
import { Block } from '.';
/**
* @category Block
*/
export declare class Data extends Block {
readonly type: string;
readonly name: string;
/**
* Construct data source.
*
* Refer to Terraform documentation on what can be put as type & arguments.
*
* @param type type
* @param name name
* @param args arguments
*/
constructor(type: string, name: string, args: TerraformArgs);
asArgument(): Argument;
attr(name: string): Attribute;
}