Class NetworkConnectivityHub.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static NetworkConnectivityHub.Builder create​(software.constructs.Construct scope,
                                                            String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of NetworkConnectivityHub.Builder.
      • connection

        @Stability(Experimental)
        public NetworkConnectivityHub.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public NetworkConnectivityHub.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public NetworkConnectivityHub.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public NetworkConnectivityHub.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public NetworkConnectivityHub.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public NetworkConnectivityHub.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public NetworkConnectivityHub.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public NetworkConnectivityHub.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public NetworkConnectivityHub.Builder description​(String description)
        An optional description of the hub.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#description NetworkConnectivityHub#description}

        Parameters:
        description - An optional description of the hub. This parameter is required.
        Returns:
        this
      • exportPsc

        @Stability(Stable)
        public NetworkConnectivityHub.Builder exportPsc​(Boolean exportPsc)
        Whether Private Service Connect transitivity is enabled for the hub.

        If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#export_psc NetworkConnectivityHub#export_psc}

        Parameters:
        exportPsc - Whether Private Service Connect transitivity is enabled for the hub. This parameter is required.
        Returns:
        this
      • exportPsc

        @Stability(Stable)
        public NetworkConnectivityHub.Builder exportPsc​(com.hashicorp.cdktf.IResolvable exportPsc)
        Whether Private Service Connect transitivity is enabled for the hub.

        If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#export_psc NetworkConnectivityHub#export_psc}

        Parameters:
        exportPsc - Whether Private Service Connect transitivity is enabled for the hub. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public NetworkConnectivityHub.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#id NetworkConnectivityHub#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#id NetworkConnectivityHub#id}. This parameter is required.
        Returns:
        this
      • labels

        @Stability(Stable)
        public NetworkConnectivityHub.Builder labels​(Map<String,​String> labels)
        Optional labels in key:value format. For more information about labels, see Requirements for labels.

        **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#labels NetworkConnectivityHub#labels}

        Parameters:
        labels - Optional labels in key:value format. For more information about labels, see Requirements for labels. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public NetworkConnectivityHub.Builder name​(String name)
        Immutable. The name of the hub. Hub names must be unique. They use the following form: 'projects/{project_number}/locations/global/hubs/{hub_id}'.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#name NetworkConnectivityHub#name}

        Parameters:
        name - Immutable. The name of the hub. Hub names must be unique. They use the following form: 'projects/{project_number}/locations/global/hubs/{hub_id}'. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public NetworkConnectivityHub.Builder project​(String project)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#project NetworkConnectivityHub#project}.

        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#project NetworkConnectivityHub#project}. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public NetworkConnectivityHub.Builder timeouts​(NetworkConnectivityHubTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#timeouts NetworkConnectivityHub#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this