Class LocalBackend.Builder

java.lang.Object
com.hashicorp.cdktf.LocalBackend.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<LocalBackend>
Enclosing class:
LocalBackend

@Stability(Experimental) public static final class LocalBackend.Builder extends Object implements software.amazon.jsii.Builder<LocalBackend>
(experimental) A fluent builder for LocalBackend.
  • Method Details

    • create

      @Stability(Experimental) public static LocalBackend.Builder create(software.constructs.Construct scope)
      Parameters:
      scope - This parameter is required.
      Returns:
      a new instance of LocalBackend.Builder.
    • path

      @Stability(Experimental) public LocalBackend.Builder path(String path)
      (experimental) Path where the state file is stored.

      Default: - defaults to terraform.${stackId}.tfstate

      Parameters:
      path - Path where the state file is stored. This parameter is required.
      Returns:
      this
    • workspaceDir

      @Stability(Experimental) public LocalBackend.Builder workspaceDir(String workspaceDir)
      (experimental) (Optional) The path to non-default workspaces.

      Parameters:
      workspaceDir - (Optional) The path to non-default workspaces. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public LocalBackend build()
      Specified by:
      build in interface software.amazon.jsii.Builder<LocalBackend>
      Returns:
      a newly built instance of LocalBackend.