ListArgs

data class ListArgs(val accountId: Output<String>? = null, val description: Output<String>? = null, val kind: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<ListArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleList = new cloudflare.List("example_list", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
kind: "ip",
name: "list1",
description: "This is a note",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_list = cloudflare.List("example_list",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
kind="ip",
name="list1",
description="This is a note")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleList = new Cloudflare.List("example_list", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
Kind = "ip",
Name = "list1",
Description = "This is a note",
});
});
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.NewList(ctx, "example_list", &cloudflare.ListArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
Kind: pulumi.String("ip"),
Name: pulumi.String("list1"),
Description: pulumi.String("This is a note"),
})
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.List;
import com.pulumi.cloudflare.ListArgs;
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 exampleList = new List("exampleList", ListArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.kind("ip")
.name("list1")
.description("This is a note")
.build());
}
}
resources:
exampleList:
type: cloudflare:List
name: example_list
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
kind: ip
name: list1
description: This is a note

Import

$ pulumi import cloudflare:index/list:List example '<account_id>/<list_id>'

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, description: Output<String>? = null, kind: Output<String>? = null, name: Output<String>? = null)

Properties

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

Identifier

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

An informative summary of the list.

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

The type of the list. Each type supports specific list items (IP addresses, ASNs, hostnames or redirects). Available values: "ip", "redirect", "hostname", "asn".

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

An informative name for the list. Use this name in filter and rule expressions.

Functions

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