Skip to main content

TerraformCommandFinishedEvent

This event is emitted after a terraform/terragrunt command returns, whatever its exit code.

@group

Events/Terraform

Hierarchy

  • TerraformEvent<{ command: string; dir: string; durationInMs: number; exitCode: number }>
    • TerraformCommandFinishedEvent

Index

Constructors

Properties

Constructors

constructor

  • TerraformCommandFinishedEvent(name?: string, payload?: { command: string; dir: string; durationInMs: number; exitCode: number }): TerraformCommandFinishedEvent
  • Parameters

    • optionalname: string

      The subject of the event, when the event type alone does not identify it.

    • optionalpayload: { command: string; dir: string; durationInMs: number; exitCode: number }

      The event's data.

      • command: string
      • dir: string
      • durationInMs: number
      • exitCode: number

    Returns TerraformCommandFinishedEvent

Properties

readonlyinheritedheader

header: { sequence: number; timestamp: number }

When the event was created. sequence counts every event this process created, so it orders two events created in the same millisecond, and events a late listener receives replayed.


Type declaration

  • sequence: number
  • timestamp: number

readonlyinheritedname

name: string

The subject of the event, when the event type alone does not identify it - e.g. the class name on a registration event. Empty otherwise.

readonlyinheritedpayload

payload: { command: string; dir: string; durationInMs: number; exitCode: number }

The event's data. Its shape is fixed by the event type.


Type declaration

  • command: string
  • dir: string
  • durationInMs: number
  • exitCode: number
Page Options