Package com.hashicorp.cdktf
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 Summary
Modifier and TypeMethodDescriptionbuild()
static LocalBackend.Builder
create
(software.constructs.Construct scope) (experimental) Path where the state file is stored.workspaceDir
(String workspaceDir) (experimental) (Optional) The path to non-default workspaces.
-
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
(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
(experimental) (Optional) The path to non-default workspaces.- Parameters:
workspaceDir
- (Optional) The path to non-default workspaces. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LocalBackend>
- Returns:
- a newly built instance of
LocalBackend
.
-