com.pulumi.cloudflare.kotlin.ZeroTrustTunnelCloudflaredArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin
import com.pulumi.cloudflare.ZeroTrustTunnelCloudflaredArgs.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.jvm.JvmName
/**
* Tunnel exposes applications running on your local web server on any
* network with an internet connection without manually adding DNS
* records or configuring a firewall or router.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cloudflare from "@pulumi/cloudflare";
* const example = new cloudflare.ZeroTrustTunnelCloudflared("example", {
* accountId: "f037e56e89293a057740de681ac9abbe",
* name: "my-tunnel",
* secret: "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
* });
* ```
* ```python
* import pulumi
* import pulumi_cloudflare as cloudflare
* example = cloudflare.ZeroTrustTunnelCloudflared("example",
* account_id="f037e56e89293a057740de681ac9abbe",
* name="my-tunnel",
* secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Cloudflare = Pulumi.Cloudflare;
* return await Deployment.RunAsync(() =>
* {
* var example = new Cloudflare.ZeroTrustTunnelCloudflared("example", new()
* {
* AccountId = "f037e56e89293a057740de681ac9abbe",
* Name = "my-tunnel",
* Secret = "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
* });
* });
* ```
* ```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.NewZeroTrustTunnelCloudflared(ctx, "example", &cloudflare.ZeroTrustTunnelCloudflaredArgs{
* AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
* Name: pulumi.String("my-tunnel"),
* Secret: pulumi.String("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg="),
* })
* 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.ZeroTrustTunnelCloudflared;
* import com.pulumi.cloudflare.ZeroTrustTunnelCloudflaredArgs;
* 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 ZeroTrustTunnelCloudflared("example", ZeroTrustTunnelCloudflaredArgs.builder()
* .accountId("f037e56e89293a057740de681ac9abbe")
* .name("my-tunnel")
* .secret("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: cloudflare:ZeroTrustTunnelCloudflared
* properties:
* accountId: f037e56e89293a057740de681ac9abbe
* name: my-tunnel
* secret: AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=
* ```
*
* ## Import
* ```sh
* $ pulumi import cloudflare:index/zeroTrustTunnelCloudflared:ZeroTrustTunnelCloudflared example /
* ```
* @property accountId The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
* @property configSrc Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard or using tunnel*config, tunnel*route or tunnel*virtual*network resources. Available values: `local`, `cloudflare`. **Modifying this attribute will force creation of a new resource.**
* @property name A user-friendly name chosen when the tunnel is created. **Modifying this attribute will force creation of a new resource.**
* @property secret 32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password. **Modifying this attribute will force creation of a new resource.**
*/
public data class ZeroTrustTunnelCloudflaredArgs(
public val accountId: Output? = null,
public val configSrc: Output? = null,
public val name: Output? = null,
public val secret: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.ZeroTrustTunnelCloudflaredArgs =
com.pulumi.cloudflare.ZeroTrustTunnelCloudflaredArgs.builder()
.accountId(accountId?.applyValue({ args0 -> args0 }))
.configSrc(configSrc?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.secret(secret?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ZeroTrustTunnelCloudflaredArgs].
*/
@PulumiTagMarker
public class ZeroTrustTunnelCloudflaredArgsBuilder internal constructor() {
private var accountId: Output? = null
private var configSrc: Output? = null
private var name: Output? = null
private var secret: Output? = null
/**
* @param value The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("nurpycqpcfrjsbvv")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard or using tunnel*config, tunnel*route or tunnel*virtual*network resources. Available values: `local`, `cloudflare`. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("btdtietxxhctejla")
public suspend fun configSrc(`value`: Output) {
this.configSrc = value
}
/**
* @param value A user-friendly name chosen when the tunnel is created. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("oxilqvepbgkmaxgg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value 32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("hignhrskyicigxpj")
public suspend fun secret(`value`: Output) {
this.secret = value
}
/**
* @param value The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("ayaiorqxvdiqnfod")
public suspend fun accountId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountId = mapped
}
/**
* @param value Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard or using tunnel*config, tunnel*route or tunnel*virtual*network resources. Available values: `local`, `cloudflare`. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("pnplnpsosbckrfuc")
public suspend fun configSrc(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.configSrc = mapped
}
/**
* @param value A user-friendly name chosen when the tunnel is created. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("mavkfjrmknucndnx")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value 32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("udsmwcflutajylpw")
public suspend fun secret(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secret = mapped
}
internal fun build(): ZeroTrustTunnelCloudflaredArgs = ZeroTrustTunnelCloudflaredArgs(
accountId = accountId,
configSrc = configSrc,
name = name,
secret = secret,
)
}