Package com.hashicorp.cdktf
Class CloudBackend.Builder
java.lang.Object
com.hashicorp.cdktf.CloudBackend.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudBackend>
- Enclosing class:
CloudBackend
@Stability(Experimental)
public static final class CloudBackend.Builder
extends Object
implements software.amazon.jsii.Builder<CloudBackend>
(experimental) A fluent builder for
CloudBackend
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CloudBackend.Builder
create
(software.constructs.Construct scope) (experimental) The hostname of a Terraform Enterprise installation, if using Terraform Enterprise.organization
(String organization) (experimental) The name of the organization containing the workspace(s) the current configuration should use.(experimental) The token used to authenticate with Terraform Cloud.workspaces
(NamedCloudWorkspace workspaces) (experimental) A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration.workspaces
(TaggedCloudWorkspaces workspaces) (experimental) A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration.
-
Method Details
-
create
@Stability(Experimental) public static CloudBackend.Builder create(software.constructs.Construct scope) - Parameters:
scope
- This parameter is required.- Returns:
- a new instance of
CloudBackend.Builder
.
-
organization
(experimental) The name of the organization containing the workspace(s) the current configuration should use.- Parameters:
organization
- The name of the organization containing the workspace(s) the current configuration should use. This parameter is required.- Returns:
this
-
workspaces
(experimental) A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration.The workspaces block must contain exactly one of the following arguments, each denoting a strategy for how workspaces should be mapped:
- Parameters:
workspaces
- A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration. This parameter is required.- Returns:
this
-
workspaces
(experimental) A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration.The workspaces block must contain exactly one of the following arguments, each denoting a strategy for how workspaces should be mapped:
- Parameters:
workspaces
- A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration. This parameter is required.- Returns:
this
-
hostname
(experimental) The hostname of a Terraform Enterprise installation, if using Terraform Enterprise.Default: app.terraform.io
- Parameters:
hostname
- The hostname of a Terraform Enterprise installation, if using Terraform Enterprise. This parameter is required.- Returns:
this
-
token
(experimental) The token used to authenticate with Terraform Cloud.We recommend omitting the token from the configuration, and instead using terraform login or manually configuring credentials in the CLI config file.
- Parameters:
token
- The token used to authenticate with Terraform Cloud. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CloudBackend>
- Returns:
- a newly built instance of
CloudBackend
.
-