1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustSplitTunnel
Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi

cloudflare.ZeroTrustSplitTunnel

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi

    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=[cloudflare.ZeroTrustSplitTunnelTunnelArgs(
            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

    The ZeroTrustSplitTunnel resource accepts the following input properties:

    AccountId string
    The account identifier to target for the resource.
    Mode string
    The mode of the split tunnel policy. Available values: include, exclude.
    Tunnels List<ZeroTrustSplitTunnelTunnel>
    The value of the tunnel attributes.
    PolicyId string
    The settings policy for which to configure this split tunnel policy.
    AccountId string
    The account identifier to target for the resource.
    Mode string
    The mode of the split tunnel policy. Available values: include, exclude.
    Tunnels []ZeroTrustSplitTunnelTunnelArgs
    The value of the tunnel attributes.
    PolicyId string
    The settings policy for which to configure this split tunnel policy.
    accountId String
    The account identifier to target for the resource.
    mode String
    The mode of the split tunnel policy. Available values: include, exclude.
    tunnels List<ZeroTrustSplitTunnelTunnel>
    The value of the tunnel attributes.
    policyId String
    The settings policy for which to configure this split tunnel policy.
    accountId string
    The account identifier to target for the resource.
    mode string
    The mode of the split tunnel policy. Available values: include, exclude.
    tunnels ZeroTrustSplitTunnelTunnel[]
    The value of the tunnel attributes.
    policyId 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[ZeroTrustSplitTunnelTunnelArgs]
    The value of the tunnel attributes.
    policy_id str
    The settings policy for which to configure this split tunnel policy.
    accountId 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.
    policyId 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.
    The following state arguments are supported:
    AccountId string
    The account identifier to target for the resource.
    Mode string
    The mode of the split tunnel policy. Available values: include, exclude.
    PolicyId string
    The settings policy for which to configure this split tunnel policy.
    Tunnels List<ZeroTrustSplitTunnelTunnel>
    The value of the tunnel attributes.
    AccountId string
    The account identifier to target for the resource.
    Mode string
    The mode of the split tunnel policy. Available values: include, exclude.
    PolicyId string
    The settings policy for which to configure this split tunnel policy.
    Tunnels []ZeroTrustSplitTunnelTunnelArgs
    The value of the tunnel attributes.
    accountId String
    The account identifier to target for the resource.
    mode String
    The mode of the split tunnel policy. Available values: include, exclude.
    policyId String
    The settings policy for which to configure this split tunnel policy.
    tunnels List<ZeroTrustSplitTunnelTunnel>
    The value of the tunnel attributes.
    accountId string
    The account identifier to target for the resource.
    mode string
    The mode of the split tunnel policy. Available values: include, exclude.
    policyId string
    The settings policy for which to configure this split tunnel policy.
    tunnels ZeroTrustSplitTunnelTunnel[]
    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[ZeroTrustSplitTunnelTunnelArgs]
    The value of the tunnel attributes.
    accountId String
    The account identifier to target for the resource.
    mode String
    The mode of the split tunnel policy. Available values: include, exclude.
    policyId 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.
    cloudflare logo
    Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi