Class CloudBackendConfig.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • organization

      @Stability(Experimental) public CloudBackendConfig.Builder organization(String organization)
      Parameters:
      organization - The name of the organization containing the workspace(s) the current configuration should use. This parameter is required.
      Returns:
      this
    • workspaces

      @Stability(Experimental) public CloudBackendConfig.Builder workspaces(NamedCloudWorkspace workspaces)
      Parameters:
      workspaces - A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration. This parameter is required. The workspaces block must contain exactly one of the following arguments, each denoting a strategy for how workspaces should be mapped:
      Returns:
      this
    • workspaces

      @Stability(Experimental) public CloudBackendConfig.Builder workspaces(TaggedCloudWorkspaces workspaces)
      Parameters:
      workspaces - A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration. This parameter is required. The workspaces block must contain exactly one of the following arguments, each denoting a strategy for how workspaces should be mapped:
      Returns:
      this
    • hostname

      @Stability(Experimental) public CloudBackendConfig.Builder hostname(String hostname)
      Parameters:
      hostname - The hostname of a Terraform Enterprise installation, if using Terraform Enterprise.
      Returns:
      this
    • token

      @Stability(Experimental) public CloudBackendConfig.Builder token(String token)
      Parameters:
      token - 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.
      Returns:
      this
    • build

      @Stability(Experimental) public CloudBackendConfig build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CloudBackendConfig>
      Returns:
      a new instance of CloudBackendConfig
      Throws:
      NullPointerException - if any required attribute was not provided