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

com.pulumi.cloudflare.kotlin.ZeroTrustGatewayProxyEndpointArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin

import com.pulumi.cloudflare.ZeroTrustGatewayProxyEndpointArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Provides a Cloudflare Teams Proxy Endpoint resource. Teams Proxy
 * Endpoints are used for pointing proxy clients at Cloudflare Secure
 * Gateway.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as cloudflare from "@pulumi/cloudflare";
 * const example = new cloudflare.ZeroTrustGatewayProxyEndpoint("example", {
 *     accountId: "f037e56e89293a057740de681ac9abbe",
 *     name: "office",
 *     ips: ["192.0.2.0/24"],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_cloudflare as cloudflare
 * example = cloudflare.ZeroTrustGatewayProxyEndpoint("example",
 *     account_id="f037e56e89293a057740de681ac9abbe",
 *     name="office",
 *     ips=["192.0.2.0/24"])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Cloudflare = Pulumi.Cloudflare;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Cloudflare.ZeroTrustGatewayProxyEndpoint("example", new()
 *     {
 *         AccountId = "f037e56e89293a057740de681ac9abbe",
 *         Name = "office",
 *         Ips = new[]
 *         {
 *             "192.0.2.0/24",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := cloudflare.NewZeroTrustGatewayProxyEndpoint(ctx, "example", &cloudflare.ZeroTrustGatewayProxyEndpointArgs{
 * 			AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
 * 			Name:      pulumi.String("office"),
 * 			Ips: pulumi.StringArray{
 * 				pulumi.String("192.0.2.0/24"),
 * 			},
 * 		})
 * 		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.cloudflare.ZeroTrustGatewayProxyEndpoint;
 * import com.pulumi.cloudflare.ZeroTrustGatewayProxyEndpointArgs;
 * 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 example = new ZeroTrustGatewayProxyEndpoint("example", ZeroTrustGatewayProxyEndpointArgs.builder()
 *             .accountId("f037e56e89293a057740de681ac9abbe")
 *             .name("office")
 *             .ips("192.0.2.0/24")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: cloudflare:ZeroTrustGatewayProxyEndpoint
 *     properties:
 *       accountId: f037e56e89293a057740de681ac9abbe
 *       name: office
 *       ips:
 *         - 192.0.2.0/24
 * ```
 * 
 * ## Import
 * ```sh
 * $ pulumi import cloudflare:index/zeroTrustGatewayProxyEndpoint:ZeroTrustGatewayProxyEndpoint example /
 * ```
 * @property accountId The account identifier to target for the resource.
 * @property ips The networks CIDRs that will be allowed to initiate proxy connections.
 * @property name Name of the teams proxy endpoint.
 */
public data class ZeroTrustGatewayProxyEndpointArgs(
    public val accountId: Output? = null,
    public val ips: Output>? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.ZeroTrustGatewayProxyEndpointArgs =
        com.pulumi.cloudflare.ZeroTrustGatewayProxyEndpointArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .ips(ips?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ZeroTrustGatewayProxyEndpointArgs].
 */
@PulumiTagMarker
public class ZeroTrustGatewayProxyEndpointArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var ips: Output>? = null

    private var name: Output? = null

    /**
     * @param value The account identifier to target for the resource.
     */
    @JvmName("hnigheuhwrhfqpbp")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value The networks CIDRs that will be allowed to initiate proxy connections.
     */
    @JvmName("foursxmwmwqiwccq")
    public suspend fun ips(`value`: Output>) {
        this.ips = value
    }

    @JvmName("cdfpylxtwasygijv")
    public suspend fun ips(vararg values: Output) {
        this.ips = Output.all(values.asList())
    }

    /**
     * @param values The networks CIDRs that will be allowed to initiate proxy connections.
     */
    @JvmName("twvhimcemnbopwfv")
    public suspend fun ips(values: List>) {
        this.ips = Output.all(values)
    }

    /**
     * @param value Name of the teams proxy endpoint.
     */
    @JvmName("vfxtbhgamownaipf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The account identifier to target for the resource.
     */
    @JvmName("sxurgmucsdkuvdlt")
    public suspend fun accountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value The networks CIDRs that will be allowed to initiate proxy connections.
     */
    @JvmName("cfoywmprkiulicro")
    public suspend fun ips(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ips = mapped
    }

    /**
     * @param values The networks CIDRs that will be allowed to initiate proxy connections.
     */
    @JvmName("twxnyqirdetkoloh")
    public suspend fun ips(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ips = mapped
    }

    /**
     * @param value Name of the teams proxy endpoint.
     */
    @JvmName("ksltpomeyfmbaqhv")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): ZeroTrustGatewayProxyEndpointArgs = ZeroTrustGatewayProxyEndpointArgs(
        accountId = accountId,
        ips = ips,
        name = name,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy