TeamsLocationArgs

data class TeamsLocationArgs(val accountId: Output<String>? = null, val clientDefault: Output<Boolean>? = null, val dnsDestinationIpsId: Output<String>? = null, val dnsDestinationIpv6BlockId: Output<String>? = null, val ecsSupport: Output<Boolean>? = null, val endpoints: Output<TeamsLocationEndpointsArgs>? = null, val name: Output<String>? = null, val networks: Output<List<TeamsLocationNetworkArgs>>? = null) : ConvertibleToJava<TeamsLocationArgs>

Provides a Cloudflare Teams Location resource. Teams Locations are referenced when creating secure web gateway policies.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.TeamsLocation("example", {
accountId: "f037e56e89293a057740de681ac9abbe",
name: "office",
clientDefault: true,
ecsSupport: false,
networks: [
{
network: "203.0.113.1/32",
},
{
network: "203.0.113.2/32",
},
],
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.TeamsLocation("example",
account_id="f037e56e89293a057740de681ac9abbe",
name="office",
client_default=True,
ecs_support=False,
networks=[
{
"network": "203.0.113.1/32",
},
{
"network": "203.0.113.2/32",
},
])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.TeamsLocation("example", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Name = "office",
ClientDefault = true,
EcsSupport = false,
Networks = new[]
{
new Cloudflare.Inputs.TeamsLocationNetworkArgs
{
Network = "203.0.113.1/32",
},
new Cloudflare.Inputs.TeamsLocationNetworkArgs
{
Network = "203.0.113.2/32",
},
},
});
});
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.NewTeamsLocation(ctx, "example", &cloudflare.TeamsLocationArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Name: pulumi.String("office"),
ClientDefault: pulumi.Bool(true),
EcsSupport: pulumi.Bool(false),
Networks: cloudflare.TeamsLocationNetworkArray{
&cloudflare.TeamsLocationNetworkArgs{
Network: pulumi.String("203.0.113.1/32"),
},
&cloudflare.TeamsLocationNetworkArgs{
Network: pulumi.String("203.0.113.2/32"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.TeamsLocation;
import com.pulumi.cloudflare.TeamsLocationArgs;
import com.pulumi.cloudflare.inputs.TeamsLocationNetworkArgs;
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 TeamsLocation("example", TeamsLocationArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("office")
.clientDefault(true)
.ecsSupport(false)
.networks(
TeamsLocationNetworkArgs.builder()
.network("203.0.113.1/32")
.build(),
TeamsLocationNetworkArgs.builder()
.network("203.0.113.2/32")
.build())
.build());
}
}
resources:
example:
type: cloudflare:TeamsLocation
properties:
accountId: f037e56e89293a057740de681ac9abbe
name: office
clientDefault: true
ecsSupport: false
networks:
- network: 203.0.113.1/32
- network: 203.0.113.2/32

Import

$ pulumi import cloudflare:index/teamsLocation:TeamsLocation example <account_id>/<teams_location_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, clientDefault: Output<Boolean>? = null, dnsDestinationIpsId: Output<String>? = null, dnsDestinationIpv6BlockId: Output<String>? = null, ecsSupport: Output<Boolean>? = null, endpoints: Output<TeamsLocationEndpointsArgs>? = null, name: Output<String>? = null, networks: Output<List<TeamsLocationNetworkArgs>>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource.

Link copied to clipboard
val clientDefault: Output<Boolean>? = null

Indicator that this is the default location.

Link copied to clipboard
val dnsDestinationIpsId: Output<String>? = null

IPv4 binding assigned to this location.

Link copied to clipboard
val dnsDestinationIpv6BlockId: Output<String>? = null

IPv6 block binding assigned to this location.

Link copied to clipboard
val ecsSupport: Output<Boolean>? = null

Indicator that this location needs to resolve EDNS queries.

Link copied to clipboard

Endpoints assigned to this location.

Link copied to clipboard
val name: Output<String>? = null

Name of the teams location.

Link copied to clipboard
val networks: Output<List<TeamsLocationNetworkArgs>>? = null

The networks CIDRs that comprise the location.

Functions

Link copied to clipboard
open override fun toJava(): TeamsLocationArgs