ZeroTrustListArgs

data class ZeroTrustListArgs(val accountId: Output<String>? = null, val description: Output<String>? = null, val items: Output<List<ZeroTrustListItemArgs>>? = null, val name: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<ZeroTrustListArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustList = new cloudflare.ZeroTrustList("example_zero_trust_list", {
accountId: "699d98642c564d2e855e9661899b7252",
name: "Admin Serial Numbers",
type: "SERIAL",
description: "The serial numbers for administrators",
items: [{
description: "Austin office IP",
value: "8GE8721REF",
}],
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_list = cloudflare.ZeroTrustList("example_zero_trust_list",
account_id="699d98642c564d2e855e9661899b7252",
name="Admin Serial Numbers",
type="SERIAL",
description="The serial numbers for administrators",
items=[{
"description": "Austin office IP",
"value": "8GE8721REF",
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZeroTrustList = new Cloudflare.ZeroTrustList("example_zero_trust_list", new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
Name = "Admin Serial Numbers",
Type = "SERIAL",
Description = "The serial numbers for administrators",
Items = new[]
{
new Cloudflare.Inputs.ZeroTrustListItemArgs
{
Description = "Austin office IP",
Value = "8GE8721REF",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewZeroTrustList(ctx, "example_zero_trust_list", &cloudflare.ZeroTrustListArgs{
AccountId: pulumi.String("699d98642c564d2e855e9661899b7252"),
Name: pulumi.String("Admin Serial Numbers"),
Type: pulumi.String("SERIAL"),
Description: pulumi.String("The serial numbers for administrators"),
Items: cloudflare.ZeroTrustListItemArray{
&cloudflare.ZeroTrustListItemArgs{
Description: pulumi.String("Austin office IP"),
Value: pulumi.String("8GE8721REF"),
},
},
})
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.ZeroTrustList;
import com.pulumi.cloudflare.ZeroTrustListArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustListItemArgs;
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 exampleZeroTrustList = new ZeroTrustList("exampleZeroTrustList", ZeroTrustListArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.name("Admin Serial Numbers")
.type("SERIAL")
.description("The serial numbers for administrators")
.items(ZeroTrustListItemArgs.builder()
.description("Austin office IP")
.value("8GE8721REF")
.build())
.build());
}
}
resources:
exampleZeroTrustList:
type: cloudflare:ZeroTrustList
name: example_zero_trust_list
properties:
accountId: 699d98642c564d2e855e9661899b7252
name: Admin Serial Numbers
type: SERIAL
description: The serial numbers for administrators
items:
- description: Austin office IP
value: 8GE8721REF

Import

$ pulumi import cloudflare:index/zeroTrustList:ZeroTrustList example '<account_id>/<list_id>'

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, description: Output<String>? = null, items: Output<List<ZeroTrustListItemArgs>>? = null, name: Output<String>? = null, type: Output<String>? = null)

Properties

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

The description of the list.

Link copied to clipboard
val items: Output<List<ZeroTrustListItemArgs>>? = null

The items in the list.

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

The name of the list.

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

The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".

Functions

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