cloudflare.ZeroTrustSplitTunnel
Explore with Pulumi AI
Provides a Cloudflare Split Tunnel resource. Split tunnels are used to either include or exclude lists of routes from the WARP client’s tunnel.
Create ZeroTrustSplitTunnel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustSplitTunnel(name: string, args: ZeroTrustSplitTunnelArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustSplitTunnel(resource_name: str,
args: ZeroTrustSplitTunnelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustSplitTunnel(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
mode: Optional[str] = None,
tunnels: Optional[Sequence[ZeroTrustSplitTunnelTunnelArgs]] = None,
policy_id: Optional[str] = None)
func NewZeroTrustSplitTunnel(ctx *Context, name string, args ZeroTrustSplitTunnelArgs, opts ...ResourceOption) (*ZeroTrustSplitTunnel, error)
public ZeroTrustSplitTunnel(string name, ZeroTrustSplitTunnelArgs args, CustomResourceOptions? opts = null)
public ZeroTrustSplitTunnel(String name, ZeroTrustSplitTunnelArgs args)
public ZeroTrustSplitTunnel(String name, ZeroTrustSplitTunnelArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustSplitTunnel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ZeroTrustSplitTunnelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ZeroTrustSplitTunnelArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZeroTrustSplitTunnelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustSplitTunnelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustSplitTunnelArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var zeroTrustSplitTunnelResource = new Cloudflare.ZeroTrustSplitTunnel("zeroTrustSplitTunnelResource", new()
{
AccountId = "string",
Mode = "string",
Tunnels = new[]
{
new Cloudflare.Inputs.ZeroTrustSplitTunnelTunnelArgs
{
Address = "string",
Description = "string",
Host = "string",
},
},
PolicyId = "string",
});
example, err := cloudflare.NewZeroTrustSplitTunnel(ctx, "zeroTrustSplitTunnelResource", &cloudflare.ZeroTrustSplitTunnelArgs{
AccountId: pulumi.String("string"),
Mode: pulumi.String("string"),
Tunnels: cloudflare.ZeroTrustSplitTunnelTunnelArray{
&cloudflare.ZeroTrustSplitTunnelTunnelArgs{
Address: pulumi.String("string"),
Description: pulumi.String("string"),
Host: pulumi.String("string"),
},
},
PolicyId: pulumi.String("string"),
})
var zeroTrustSplitTunnelResource = new ZeroTrustSplitTunnel("zeroTrustSplitTunnelResource", ZeroTrustSplitTunnelArgs.builder()
.accountId("string")
.mode("string")
.tunnels(ZeroTrustSplitTunnelTunnelArgs.builder()
.address("string")
.description("string")
.host("string")
.build())
.policyId("string")
.build());
zero_trust_split_tunnel_resource = cloudflare.ZeroTrustSplitTunnel("zeroTrustSplitTunnelResource",
account_id="string",
mode="string",
tunnels=[{
"address": "string",
"description": "string",
"host": "string",
}],
policy_id="string")
const zeroTrustSplitTunnelResource = new cloudflare.ZeroTrustSplitTunnel("zeroTrustSplitTunnelResource", {
accountId: "string",
mode: "string",
tunnels: [{
address: "string",
description: "string",
host: "string",
}],
policyId: "string",
});
type: cloudflare:ZeroTrustSplitTunnel
properties:
accountId: string
mode: string
policyId: string
tunnels:
- address: string
description: string
host: string
ZeroTrustSplitTunnel Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ZeroTrustSplitTunnel resource accepts the following input properties:
- Account
Id string - The account identifier to target for the resource.
- Mode string
- The mode of the split tunnel policy. Available values:
include
,exclude
. - Tunnels
List<Zero
Trust Split Tunnel Tunnel> - The value of the tunnel attributes.
- Policy
Id string - The settings policy for which to configure this split tunnel policy.
- Account
Id string - The account identifier to target for the resource.
- Mode string
- The mode of the split tunnel policy. Available values:
include
,exclude
. - Tunnels
[]Zero
Trust Split Tunnel Tunnel Args - The value of the tunnel attributes.
- Policy
Id string - The settings policy for which to configure this split tunnel policy.
- account
Id String - The account identifier to target for the resource.
- mode String
- The mode of the split tunnel policy. Available values:
include
,exclude
. - tunnels
List<Zero
Trust Split Tunnel Tunnel> - The value of the tunnel attributes.
- policy
Id String - The settings policy for which to configure this split tunnel policy.
- account
Id string - The account identifier to target for the resource.
- mode string
- The mode of the split tunnel policy. Available values:
include
,exclude
. - tunnels
Zero
Trust Split Tunnel Tunnel[] - The value of the tunnel attributes.
- policy
Id string - The settings policy for which to configure this split tunnel policy.
- account_
id str - The account identifier to target for the resource.
- mode str
- The mode of the split tunnel policy. Available values:
include
,exclude
. - tunnels
Sequence[Zero
Trust Split Tunnel Tunnel Args] - The value of the tunnel attributes.
- policy_
id str - The settings policy for which to configure this split tunnel policy.
- account
Id String - The account identifier to target for the resource.
- mode String
- The mode of the split tunnel policy. Available values:
include
,exclude
. - tunnels List<Property Map>
- The value of the tunnel attributes.
- policy
Id String - The settings policy for which to configure this split tunnel policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustSplitTunnel resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ZeroTrustSplitTunnel Resource
Get an existing ZeroTrustSplitTunnel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ZeroTrustSplitTunnelState, opts?: CustomResourceOptions): ZeroTrustSplitTunnel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
mode: Optional[str] = None,
policy_id: Optional[str] = None,
tunnels: Optional[Sequence[ZeroTrustSplitTunnelTunnelArgs]] = None) -> ZeroTrustSplitTunnel
func GetZeroTrustSplitTunnel(ctx *Context, name string, id IDInput, state *ZeroTrustSplitTunnelState, opts ...ResourceOption) (*ZeroTrustSplitTunnel, error)
public static ZeroTrustSplitTunnel Get(string name, Input<string> id, ZeroTrustSplitTunnelState? state, CustomResourceOptions? opts = null)
public static ZeroTrustSplitTunnel get(String name, Output<String> id, ZeroTrustSplitTunnelState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - The account identifier to target for the resource.
- Mode string
- The mode of the split tunnel policy. Available values:
include
,exclude
. - Policy
Id string - The settings policy for which to configure this split tunnel policy.
- Tunnels
List<Zero
Trust Split Tunnel Tunnel> - The value of the tunnel attributes.
- Account
Id string - The account identifier to target for the resource.
- Mode string
- The mode of the split tunnel policy. Available values:
include
,exclude
. - Policy
Id string - The settings policy for which to configure this split tunnel policy.
- Tunnels
[]Zero
Trust Split Tunnel Tunnel Args - The value of the tunnel attributes.
- account
Id String - The account identifier to target for the resource.
- mode String
- The mode of the split tunnel policy. Available values:
include
,exclude
. - policy
Id String - The settings policy for which to configure this split tunnel policy.
- tunnels
List<Zero
Trust Split Tunnel Tunnel> - The value of the tunnel attributes.
- account
Id string - The account identifier to target for the resource.
- mode string
- The mode of the split tunnel policy. Available values:
include
,exclude
. - policy
Id string - The settings policy for which to configure this split tunnel policy.
- tunnels
Zero
Trust Split Tunnel Tunnel[] - The value of the tunnel attributes.
- account_
id str - The account identifier to target for the resource.
- mode str
- The mode of the split tunnel policy. Available values:
include
,exclude
. - policy_
id str - The settings policy for which to configure this split tunnel policy.
- tunnels
Sequence[Zero
Trust Split Tunnel Tunnel Args] - The value of the tunnel attributes.
- account
Id String - The account identifier to target for the resource.
- mode String
- The mode of the split tunnel policy. Available values:
include
,exclude
. - policy
Id String - The settings policy for which to configure this split tunnel policy.
- tunnels List<Property Map>
- The value of the tunnel attributes.
Supporting Types
ZeroTrustSplitTunnelTunnel, ZeroTrustSplitTunnelTunnelArgs
- Address string
- The address for the tunnel.
- Description string
- A description for the tunnel.
- Host string
- The domain name for the tunnel.
- Address string
- The address for the tunnel.
- Description string
- A description for the tunnel.
- Host string
- The domain name for the tunnel.
- address String
- The address for the tunnel.
- description String
- A description for the tunnel.
- host String
- The domain name for the tunnel.
- address string
- The address for the tunnel.
- description string
- A description for the tunnel.
- host string
- The domain name for the tunnel.
- address str
- The address for the tunnel.
- description str
- A description for the tunnel.
- host str
- The domain name for the tunnel.
- address String
- The address for the tunnel.
- description String
- A description for the tunnel.
- host String
- The domain name for the tunnel.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.