All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.networkconnectivity.kotlin.RegionalEndpointArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkconnectivity.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkconnectivity.RegionalEndpointArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Regional Private Service Connect (PSC) endpoint resource.
 * To get more information about RegionalEndpoint, see:
 * * [API documentation](https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest/v1/projects.locations.regionalEndpoints)
 * * How-to Guides
 *     * [Access regional Google APIs through endpoints](https://cloud.google.com/vpc/docs/access-regional-google-apis-endpoints)
 * ## Example Usage
 * ### Network Connectivity Regional Endpoint Regional Access
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const myNetwork = new gcp.compute.Network("my_network", {
 *     name: "my-network",
 *     autoCreateSubnetworks: false,
 * });
 * const mySubnetwork = new gcp.compute.Subnetwork("my_subnetwork", {
 *     name: "my-subnetwork",
 *     ipCidrRange: "192.168.0.0/24",
 *     region: "us-central1",
 *     network: myNetwork.id,
 * });
 * const _default = new gcp.networkconnectivity.RegionalEndpoint("default", {
 *     name: "my-rep",
 *     location: "us-central1",
 *     targetGoogleApi: "boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
 *     accessType: "REGIONAL",
 *     address: "192.168.0.5",
 *     network: myNetwork.id,
 *     subnetwork: mySubnetwork.id,
 *     description: "My RegionalEndpoint targeting Google API boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
 *     labels: {
 *         env: "default",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * my_network = gcp.compute.Network("my_network",
 *     name="my-network",
 *     auto_create_subnetworks=False)
 * my_subnetwork = gcp.compute.Subnetwork("my_subnetwork",
 *     name="my-subnetwork",
 *     ip_cidr_range="192.168.0.0/24",
 *     region="us-central1",
 *     network=my_network.id)
 * default = gcp.networkconnectivity.RegionalEndpoint("default",
 *     name="my-rep",
 *     location="us-central1",
 *     target_google_api="boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
 *     access_type="REGIONAL",
 *     address="192.168.0.5",
 *     network=my_network.id,
 *     subnetwork=my_subnetwork.id,
 *     description="My RegionalEndpoint targeting Google API boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
 *     labels={
 *         "env": "default",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var myNetwork = new Gcp.Compute.Network("my_network", new()
 *     {
 *         Name = "my-network",
 *         AutoCreateSubnetworks = false,
 *     });
 *     var mySubnetwork = new Gcp.Compute.Subnetwork("my_subnetwork", new()
 *     {
 *         Name = "my-subnetwork",
 *         IpCidrRange = "192.168.0.0/24",
 *         Region = "us-central1",
 *         Network = myNetwork.Id,
 *     });
 *     var @default = new Gcp.NetworkConnectivity.RegionalEndpoint("default", new()
 *     {
 *         Name = "my-rep",
 *         Location = "us-central1",
 *         TargetGoogleApi = "boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
 *         AccessType = "REGIONAL",
 *         Address = "192.168.0.5",
 *         Network = myNetwork.Id,
 *         Subnetwork = mySubnetwork.Id,
 *         Description = "My RegionalEndpoint targeting Google API boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
 *         Labels =
 *         {
 *             { "env", "default" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networkconnectivity"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		myNetwork, err := compute.NewNetwork(ctx, "my_network", &compute.NetworkArgs{
 * 			Name:                  pulumi.String("my-network"),
 * 			AutoCreateSubnetworks: pulumi.Bool(false),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		mySubnetwork, err := compute.NewSubnetwork(ctx, "my_subnetwork", &compute.SubnetworkArgs{
 * 			Name:        pulumi.String("my-subnetwork"),
 * 			IpCidrRange: pulumi.String("192.168.0.0/24"),
 * 			Region:      pulumi.String("us-central1"),
 * 			Network:     myNetwork.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = networkconnectivity.NewRegionalEndpoint(ctx, "default", &networkconnectivity.RegionalEndpointArgs{
 * 			Name:            pulumi.String("my-rep"),
 * 			Location:        pulumi.String("us-central1"),
 * 			TargetGoogleApi: pulumi.String("boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com"),
 * 			AccessType:      pulumi.String("REGIONAL"),
 * 			Address:         pulumi.String("192.168.0.5"),
 * 			Network:         myNetwork.ID(),
 * 			Subnetwork:      mySubnetwork.ID(),
 * 			Description:     pulumi.String("My RegionalEndpoint targeting Google API boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com"),
 * 			Labels: pulumi.StringMap{
 * 				"env": pulumi.String("default"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.compute.Network;
 * import com.pulumi.gcp.compute.NetworkArgs;
 * import com.pulumi.gcp.compute.Subnetwork;
 * import com.pulumi.gcp.compute.SubnetworkArgs;
 * import com.pulumi.gcp.networkconnectivity.RegionalEndpoint;
 * import com.pulumi.gcp.networkconnectivity.RegionalEndpointArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var myNetwork = new Network("myNetwork", NetworkArgs.builder()
 *             .name("my-network")
 *             .autoCreateSubnetworks(false)
 *             .build());
 *         var mySubnetwork = new Subnetwork("mySubnetwork", SubnetworkArgs.builder()
 *             .name("my-subnetwork")
 *             .ipCidrRange("192.168.0.0/24")
 *             .region("us-central1")
 *             .network(myNetwork.id())
 *             .build());
 *         var default_ = new RegionalEndpoint("default", RegionalEndpointArgs.builder()
 *             .name("my-rep")
 *             .location("us-central1")
 *             .targetGoogleApi("boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com")
 *             .accessType("REGIONAL")
 *             .address("192.168.0.5")
 *             .network(myNetwork.id())
 *             .subnetwork(mySubnetwork.id())
 *             .description("My RegionalEndpoint targeting Google API boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com")
 *             .labels(Map.of("env", "default"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   myNetwork:
 *     type: gcp:compute:Network
 *     name: my_network
 *     properties:
 *       name: my-network
 *       autoCreateSubnetworks: false
 *   mySubnetwork:
 *     type: gcp:compute:Subnetwork
 *     name: my_subnetwork
 *     properties:
 *       name: my-subnetwork
 *       ipCidrRange: 192.168.0.0/24
 *       region: us-central1
 *       network: ${myNetwork.id}
 *   default:
 *     type: gcp:networkconnectivity:RegionalEndpoint
 *     properties:
 *       name: my-rep
 *       location: us-central1
 *       targetGoogleApi: boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com
 *       accessType: REGIONAL
 *       address: 192.168.0.5
 *       network: ${myNetwork.id}
 *       subnetwork: ${mySubnetwork.id}
 *       description: My RegionalEndpoint targeting Google API boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com
 *       labels:
 *         env: default
 * ```
 * 
 * ### Network Connectivity Regional Endpoint Global Access
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const myNetwork = new gcp.compute.Network("my_network", {
 *     name: "my-network",
 *     autoCreateSubnetworks: false,
 * });
 * const mySubnetwork = new gcp.compute.Subnetwork("my_subnetwork", {
 *     name: "my-subnetwork",
 *     ipCidrRange: "192.168.0.0/24",
 *     region: "us-central1",
 *     network: myNetwork.id,
 * });
 * const _default = new gcp.networkconnectivity.RegionalEndpoint("default", {
 *     name: "my-rep",
 *     location: "us-central1",
 *     targetGoogleApi: "boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
 *     accessType: "GLOBAL",
 *     address: "192.168.0.4",
 *     network: myNetwork.id,
 *     subnetwork: mySubnetwork.id,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * my_network = gcp.compute.Network("my_network",
 *     name="my-network",
 *     auto_create_subnetworks=False)
 * my_subnetwork = gcp.compute.Subnetwork("my_subnetwork",
 *     name="my-subnetwork",
 *     ip_cidr_range="192.168.0.0/24",
 *     region="us-central1",
 *     network=my_network.id)
 * default = gcp.networkconnectivity.RegionalEndpoint("default",
 *     name="my-rep",
 *     location="us-central1",
 *     target_google_api="boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
 *     access_type="GLOBAL",
 *     address="192.168.0.4",
 *     network=my_network.id,
 *     subnetwork=my_subnetwork.id)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var myNetwork = new Gcp.Compute.Network("my_network", new()
 *     {
 *         Name = "my-network",
 *         AutoCreateSubnetworks = false,
 *     });
 *     var mySubnetwork = new Gcp.Compute.Subnetwork("my_subnetwork", new()
 *     {
 *         Name = "my-subnetwork",
 *         IpCidrRange = "192.168.0.0/24",
 *         Region = "us-central1",
 *         Network = myNetwork.Id,
 *     });
 *     var @default = new Gcp.NetworkConnectivity.RegionalEndpoint("default", new()
 *     {
 *         Name = "my-rep",
 *         Location = "us-central1",
 *         TargetGoogleApi = "boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
 *         AccessType = "GLOBAL",
 *         Address = "192.168.0.4",
 *         Network = myNetwork.Id,
 *         Subnetwork = mySubnetwork.Id,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networkconnectivity"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		myNetwork, err := compute.NewNetwork(ctx, "my_network", &compute.NetworkArgs{
 * 			Name:                  pulumi.String("my-network"),
 * 			AutoCreateSubnetworks: pulumi.Bool(false),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		mySubnetwork, err := compute.NewSubnetwork(ctx, "my_subnetwork", &compute.SubnetworkArgs{
 * 			Name:        pulumi.String("my-subnetwork"),
 * 			IpCidrRange: pulumi.String("192.168.0.0/24"),
 * 			Region:      pulumi.String("us-central1"),
 * 			Network:     myNetwork.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = networkconnectivity.NewRegionalEndpoint(ctx, "default", &networkconnectivity.RegionalEndpointArgs{
 * 			Name:            pulumi.String("my-rep"),
 * 			Location:        pulumi.String("us-central1"),
 * 			TargetGoogleApi: pulumi.String("boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com"),
 * 			AccessType:      pulumi.String("GLOBAL"),
 * 			Address:         pulumi.String("192.168.0.4"),
 * 			Network:         myNetwork.ID(),
 * 			Subnetwork:      mySubnetwork.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.compute.Network;
 * import com.pulumi.gcp.compute.NetworkArgs;
 * import com.pulumi.gcp.compute.Subnetwork;
 * import com.pulumi.gcp.compute.SubnetworkArgs;
 * import com.pulumi.gcp.networkconnectivity.RegionalEndpoint;
 * import com.pulumi.gcp.networkconnectivity.RegionalEndpointArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var myNetwork = new Network("myNetwork", NetworkArgs.builder()
 *             .name("my-network")
 *             .autoCreateSubnetworks(false)
 *             .build());
 *         var mySubnetwork = new Subnetwork("mySubnetwork", SubnetworkArgs.builder()
 *             .name("my-subnetwork")
 *             .ipCidrRange("192.168.0.0/24")
 *             .region("us-central1")
 *             .network(myNetwork.id())
 *             .build());
 *         var default_ = new RegionalEndpoint("default", RegionalEndpointArgs.builder()
 *             .name("my-rep")
 *             .location("us-central1")
 *             .targetGoogleApi("boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com")
 *             .accessType("GLOBAL")
 *             .address("192.168.0.4")
 *             .network(myNetwork.id())
 *             .subnetwork(mySubnetwork.id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   myNetwork:
 *     type: gcp:compute:Network
 *     name: my_network
 *     properties:
 *       name: my-network
 *       autoCreateSubnetworks: false
 *   mySubnetwork:
 *     type: gcp:compute:Subnetwork
 *     name: my_subnetwork
 *     properties:
 *       name: my-subnetwork
 *       ipCidrRange: 192.168.0.0/24
 *       region: us-central1
 *       network: ${myNetwork.id}
 *   default:
 *     type: gcp:networkconnectivity:RegionalEndpoint
 *     properties:
 *       name: my-rep
 *       location: us-central1
 *       targetGoogleApi: boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com
 *       accessType: GLOBAL
 *       address: 192.168.0.4
 *       network: ${myNetwork.id}
 *       subnetwork: ${mySubnetwork.id}
 * ```
 * 
 * ## Import
 * RegionalEndpoint can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/regionalEndpoints/{{name}}`
 * * `{{project}}/{{location}}/{{name}}`
 * * `{{location}}/{{name}}`
 * When using the `pulumi import` command, RegionalEndpoint can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint default projects/{{project}}/locations/{{location}}/regionalEndpoints/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint default {{project}}/{{location}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint default {{location}}/{{name}}
 * ```
 * @property accessType The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
 * Possible values are: `GLOBAL`, `REGIONAL`.
 * @property address The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
 * > **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
 * @property description A description of this resource.
 * @property labels User-defined 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.
 * @property location The location of the RegionalEndpoint.
 * - - -
 * @property name The name of the RegionalEndpoint.
 * @property network The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property subnetwork The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
 * @property targetGoogleApi The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \"cloudkms.us-central1.p.rep.googleapis.com\".
 */
public data class RegionalEndpointArgs(
    public val accessType: Output? = null,
    public val address: Output? = null,
    public val description: Output? = null,
    public val labels: Output>? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val network: Output? = null,
    public val project: Output? = null,
    public val subnetwork: Output? = null,
    public val targetGoogleApi: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkconnectivity.RegionalEndpointArgs =
        com.pulumi.gcp.networkconnectivity.RegionalEndpointArgs.builder()
            .accessType(accessType?.applyValue({ args0 -> args0 }))
            .address(address?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .subnetwork(subnetwork?.applyValue({ args0 -> args0 }))
            .targetGoogleApi(targetGoogleApi?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionalEndpointArgs].
 */
@PulumiTagMarker
public class RegionalEndpointArgsBuilder internal constructor() {
    private var accessType: Output? = null

    private var address: Output? = null

    private var description: Output? = null

    private var labels: Output>? = null

    private var location: Output? = null

    private var name: Output? = null

    private var network: Output? = null

    private var project: Output? = null

    private var subnetwork: Output? = null

    private var targetGoogleApi: Output? = null

    /**
     * @param value The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
     * Possible values are: `GLOBAL`, `REGIONAL`.
     */
    @JvmName("nodpxewxkmcmcyjd")
    public suspend fun accessType(`value`: Output) {
        this.accessType = value
    }

    /**
     * @param value The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
     * > **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
     */
    @JvmName("sbeoagrhgkgwslrn")
    public suspend fun address(`value`: Output) {
        this.address = value
    }

    /**
     * @param value A description of this resource.
     */
    @JvmName("gdyqqqbbddwadeci")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value User-defined 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.
     */
    @JvmName("doxdhxcuqitkwfvw")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The location of the RegionalEndpoint.
     * - - -
     */
    @JvmName("diytuiutxtvewmup")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the RegionalEndpoint.
     */
    @JvmName("pfgqlvtldtylggxf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
     */
    @JvmName("nrpaecvpncsaadtv")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("mkywksvksfntfasc")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
     */
    @JvmName("irwljhthcbmgpuwi")
    public suspend fun subnetwork(`value`: Output) {
        this.subnetwork = value
    }

    /**
     * @param value The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \"cloudkms.us-central1.p.rep.googleapis.com\".
     */
    @JvmName("jjvsnvwxrheuvyoy")
    public suspend fun targetGoogleApi(`value`: Output) {
        this.targetGoogleApi = value
    }

    /**
     * @param value The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
     * Possible values are: `GLOBAL`, `REGIONAL`.
     */
    @JvmName("weunuydmiiwclqne")
    public suspend fun accessType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessType = mapped
    }

    /**
     * @param value The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
     * > **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
     */
    @JvmName("bvqaciphjfcrroqi")
    public suspend fun address(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.address = mapped
    }

    /**
     * @param value A description of this resource.
     */
    @JvmName("qaboojokaqbrigbg")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value User-defined 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.
     */
    @JvmName("ylbdrrhwbaqgoypt")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values User-defined 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.
     */
    @JvmName("ouwrmbckaeyvyjyx")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The location of the RegionalEndpoint.
     * - - -
     */
    @JvmName("tyodhjirwxfoeapc")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the RegionalEndpoint.
     */
    @JvmName("gphmtvarfetotjel")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
     */
    @JvmName("ynaqrmxwamkbibds")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("gqooigjftirmicgh")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
     */
    @JvmName("iboegejeyypnvtmp")
    public suspend fun subnetwork(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetwork = mapped
    }

    /**
     * @param value The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \"cloudkms.us-central1.p.rep.googleapis.com\".
     */
    @JvmName("sjvgukeoqnvlslrn")
    public suspend fun targetGoogleApi(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetGoogleApi = mapped
    }

    internal fun build(): RegionalEndpointArgs = RegionalEndpointArgs(
        accessType = accessType,
        address = address,
        description = description,
        labels = labels,
        location = location,
        name = name,
        network = network,
        project = project,
        subnetwork = subnetwork,
        targetGoogleApi = targetGoogleApi,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy