EcsPrefixListArgs

data class EcsPrefixListArgs(val addressFamily: Output<String>? = null, val description: Output<String>? = null, val entries: Output<List<EcsPrefixListEntryArgs>>? = null, val maxEntries: Output<Int>? = null, val prefixListName: Output<String>? = null) : ConvertibleToJava<EcsPrefixListArgs>

Provides a ECS Prefix List resource. For information about ECS Prefix List and how to use it, see What is Prefix List..

NOTE: Available in v1.152.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EcsPrefixList;
import com.pulumi.alicloud.ecs.EcsPrefixListArgs;
import com.pulumi.alicloud.ecs.inputs.EcsPrefixListEntryArgs;
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 default_ = new EcsPrefixList("default", EcsPrefixListArgs.builder()
.addressFamily("IPv4")
.description("description")
.entries(EcsPrefixListEntryArgs.builder()
.cidr("192.168.0.0/24")
.description("description")
.build())
.maxEntries(2)
.prefixListName("tftest")
.build());
}
}

Import

ECS Prefix List can be imported using the id, e.g.

$ pulumi import alicloud:ecs/ecsPrefixList:EcsPrefixList example <id>

Constructors

Link copied to clipboard
fun EcsPrefixListArgs(addressFamily: Output<String>? = null, description: Output<String>? = null, entries: Output<List<EcsPrefixListEntryArgs>>? = null, maxEntries: Output<Int>? = null, prefixListName: Output<String>? = null)

Functions

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

Properties

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

The IP address family. Valid values: IPv4,IPv6.

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

The description of the prefix list. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

Link copied to clipboard
val entries: Output<List<EcsPrefixListEntryArgs>>? = null

The Entry. The details see Block entry.

Link copied to clipboard
val maxEntries: Output<Int>? = null

The maximum number of entries that the prefix list can contain. Valid values: 1 to 200.

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

The name of the prefix. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http://, https://, com.aliyun, or com.alibabacloud. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).