@decentm/concourse-ts-resource-terraform
v0.2.1
Published
`npm i --save-dev @decentm/concourse-ts @decentm/concourse-ts-resource-terraform`
Downloads
11
Readme
Typed Terraform resource for concourse-ts
Installation
npm i --save-dev @decentm/concourse-ts @decentm/concourse-ts-resource-terraform
yarn add -D @decentm/concourse-ts @decentm/concourse-ts-resource-terraform
Usage
The Terraform resource is a typed class that extends the base Resource class. Therefore, it has the same properties. See the Resource documentation for details.
import {Type} from '@decentm/concourse-ts'
import {TerraformResource, TerraformResourceType} from '@decentm/concourse-ts-resource-terraform'
export class CorpityCorpTerraform extends TerraformResource {
constructor(name: string, init?: Type.Initer<CorpityCorpTerraform>) {
super(name, new TerraformResourceType(/*...*/))
// Set defaults here
if (init) {
init(this)
}
}
}