Class ComputeNetworkPeering.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static ComputeNetworkPeering.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 ComputeNetworkPeering.Builder.
      • connection

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

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

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

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

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

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

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

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

        @Stability(Stable)
        public ComputeNetworkPeering.Builder name​(String name)
        Name of the peering.

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

        Parameters:
        name - Name of the peering. This parameter is required.
        Returns:
        this
      • network

        @Stability(Stable)
        public ComputeNetworkPeering.Builder network​(String network)
        The primary network of the peering.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#network ComputeNetworkPeering#network}

        Parameters:
        network - The primary network of the peering. This parameter is required.
        Returns:
        this
      • peerNetwork

        @Stability(Stable)
        public ComputeNetworkPeering.Builder peerNetwork​(String peerNetwork)
        The peer network in the peering. The peer network may belong to a different project.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#peer_network ComputeNetworkPeering#peer_network}

        Parameters:
        peerNetwork - The peer network in the peering. The peer network may belong to a different project. This parameter is required.
        Returns:
        this
      • exportCustomRoutes

        @Stability(Stable)
        public ComputeNetworkPeering.Builder exportCustomRoutes​(Boolean exportCustomRoutes)
        Whether to export the custom routes to the peer network. Defaults to false.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_custom_routes ComputeNetworkPeering#export_custom_routes}

        Parameters:
        exportCustomRoutes - Whether to export the custom routes to the peer network. Defaults to false. This parameter is required.
        Returns:
        this
      • exportCustomRoutes

        @Stability(Stable)
        public ComputeNetworkPeering.Builder exportCustomRoutes​(com.hashicorp.cdktf.IResolvable exportCustomRoutes)
        Whether to export the custom routes to the peer network. Defaults to false.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_custom_routes ComputeNetworkPeering#export_custom_routes}

        Parameters:
        exportCustomRoutes - Whether to export the custom routes to the peer network. Defaults to false. This parameter is required.
        Returns:
        this
      • exportSubnetRoutesWithPublicIp

        @Stability(Stable)
        public ComputeNetworkPeering.Builder exportSubnetRoutesWithPublicIp​(Boolean exportSubnetRoutesWithPublicIp)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_subnet_routes_with_public_ip ComputeNetworkPeering#export_subnet_routes_with_public_ip}.

        Parameters:
        exportSubnetRoutesWithPublicIp - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_subnet_routes_with_public_ip ComputeNetworkPeering#export_subnet_routes_with_public_ip}. This parameter is required.
        Returns:
        this
      • exportSubnetRoutesWithPublicIp

        @Stability(Stable)
        public ComputeNetworkPeering.Builder exportSubnetRoutesWithPublicIp​(com.hashicorp.cdktf.IResolvable exportSubnetRoutesWithPublicIp)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_subnet_routes_with_public_ip ComputeNetworkPeering#export_subnet_routes_with_public_ip}.

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

        @Stability(Stable)
        public ComputeNetworkPeering.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#id ComputeNetworkPeering#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/compute_network_peering#id ComputeNetworkPeering#id}. This parameter is required.
        Returns:
        this
      • importCustomRoutes

        @Stability(Stable)
        public ComputeNetworkPeering.Builder importCustomRoutes​(Boolean importCustomRoutes)
        Whether to export the custom routes from the peer network. Defaults to false.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_custom_routes ComputeNetworkPeering#import_custom_routes}

        Parameters:
        importCustomRoutes - Whether to export the custom routes from the peer network. Defaults to false. This parameter is required.
        Returns:
        this
      • importCustomRoutes

        @Stability(Stable)
        public ComputeNetworkPeering.Builder importCustomRoutes​(com.hashicorp.cdktf.IResolvable importCustomRoutes)
        Whether to export the custom routes from the peer network. Defaults to false.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_custom_routes ComputeNetworkPeering#import_custom_routes}

        Parameters:
        importCustomRoutes - Whether to export the custom routes from the peer network. Defaults to false. This parameter is required.
        Returns:
        this
      • importSubnetRoutesWithPublicIp

        @Stability(Stable)
        public ComputeNetworkPeering.Builder importSubnetRoutesWithPublicIp​(Boolean importSubnetRoutesWithPublicIp)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_subnet_routes_with_public_ip ComputeNetworkPeering#import_subnet_routes_with_public_ip}.

        Parameters:
        importSubnetRoutesWithPublicIp - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_subnet_routes_with_public_ip ComputeNetworkPeering#import_subnet_routes_with_public_ip}. This parameter is required.
        Returns:
        this
      • importSubnetRoutesWithPublicIp

        @Stability(Stable)
        public ComputeNetworkPeering.Builder importSubnetRoutesWithPublicIp​(com.hashicorp.cdktf.IResolvable importSubnetRoutesWithPublicIp)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_subnet_routes_with_public_ip ComputeNetworkPeering#import_subnet_routes_with_public_ip}.

        Parameters:
        importSubnetRoutesWithPublicIp - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_subnet_routes_with_public_ip ComputeNetworkPeering#import_subnet_routes_with_public_ip}. This parameter is required.
        Returns:
        this
      • stackType

        @Stability(Stable)
        public ComputeNetworkPeering.Builder stackType​(String stackType)
        Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.

        The default value is IPV4_ONLY. Possible values: ["IPV4_ONLY", "IPV4_IPV6"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#stack_type ComputeNetworkPeering#stack_type}

        Parameters:
        stackType - Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public ComputeNetworkPeering.Builder timeouts​(ComputeNetworkPeeringTimeouts timeouts)
        timeouts block.

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

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