Hierarchy (view full)

Constructors

  • Construct resource.

    Refer to Terraform documentation on what can be put as type & arguments.

    Parameters

    • type: string

      type

    • name: string

      name

    • Optional args: TerraformArgs

      arguments

    • Optional provisioners: Provisioner[]

      provisioners

    Returns Resource

Properties

blockNames: string[]
blockType: string
name: string
type: string

Accessors

Methods

  • Delete argument by key.

    Parameters

    • key: string

      key

    Returns this

  • Get argument by key.

    Type Parameters

    • K extends string

    Parameters

    • key: K

      key

    Returns any

  • Is this block to be placed inside top-level terraform block.

    Returns boolean

  • Set argument.

    Type Parameters

    • K extends string

    Parameters

    • key: K

      key

    • value: any

      value

    Returns this

  • Set provisioners.

    Parameters

    Returns this

  • Convert resource into data source.

    Refer to Terraform documentation on what can be put as arguments.

    Parameters

    • options: undefined | ResourceToDataOptions

      options

    • argNames: (string | [string, string])[]

      names of resource arguments to converted into data source arguments; use array for name mapping, position 0 = original resource's argument name, position 1 = mapped data source's argument name

    • Optional args: TerraformArgs

      extra arguments

    Returns Data

  • To Terraform representation.

    Returns string