terraform-generator
Version:
Generate Terraform configurations with Node.js.
32 lines (31 loc) • 744 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Locals = void 0;
const arguments_1 = require("../arguments");
const utils_1 = require("../utils");
const _1 = require(".");
/**
* @category Block
*/
class Locals extends _1.Block {
/**
* Construct locals.
*
* Refer to Terraform documentation on what can be put as arguments.
*
* @param args arguments
*/
constructor(args) {
super('locals', [], args);
}
asArgument() {
throw utils_1.Util.inaccessibleMethod();
}
attr(_name) {
throw utils_1.Util.inaccessibleMethod();
}
arg(name) {
return new arguments_1.Argument(`local.${name}`);
}
}
exports.Locals = Locals;