Package com.hashicorp.cdktf
Interface CloudBackendConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CloudBackendConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.79.0 (build b22f628)",
date="2023-07-26T11:31:27.463Z")
@Stability(Experimental)
public interface CloudBackendConfig
extends software.amazon.jsii.JsiiSerializable
(experimental) The Cloud Backend synthesizes a
cloud block}. The cloud block is a nested block within the top-level terraform settings block. It specifies which Terraform Cloud workspaces to use for the current working directory. The cloud block only affects Terraform CLI's behavior. When Terraform Cloud uses a configuration that contains a cloud block - for example, when a workspace is configured to use a VCS provider directly - it ignores the block and behaves according to its own workspace settings.
invalid @link
{@link https://developer.hashicorp.com/terraform/cli/cloud/settings#the-cloud-block
https://developer.hashicorp.com/terraform/cli/cloud/settings#arguments
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCloudBackendConfig
static final class
An implementation forCloudBackendConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic CloudBackendConfig.Builder
builder()
default String
(experimental) The hostname of a Terraform Enterprise installation, if using Terraform Enterprise.(experimental) The name of the organization containing the workspace(s) the current configuration should use.default String
getToken()
(experimental) The token used to authenticate with Terraform Cloud.(experimental) A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOrganization
(experimental) The name of the organization containing the workspace(s) the current configuration should use. -
getWorkspaces
(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:
-
getHostname
(experimental) The hostname of a Terraform Enterprise installation, if using Terraform Enterprise.Default: app.terraform.io
-
getToken
(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.
-
builder
- Returns:
- a
CloudBackendConfig.Builder
ofCloudBackendConfig
-