PrefixList

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

NOTE: Available in v1.182.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.vpc.PrefixList;
import com.pulumi.alicloud.vpc.PrefixListArgs;
import com.pulumi.alicloud.vpc.inputs.PrefixListEntryArgs;
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 PrefixList("default", PrefixListArgs.builder()
.entrys(PrefixListEntryArgs.builder()
.cidr("192.168.0.0/16")
.description("description")
.build())
.ipVersion("IPV4")
.maxEntries(50)
.prefixListName(var_.name())
.prefixListDescription("description")
.build());
}
}

Import

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

$ pulumi import alicloud:vpc/prefixList:PrefixList example <id>

Properties

Link copied to clipboard
val entrys: Output<List<PrefixListEntry>>?

The CIDR address block list of the prefix list. See the following Block entrys.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipVersion: Output<String>

The IP version of the prefix list. Valid values: IPV4, IPV6.

Link copied to clipboard
val maxEntries: Output<Int>

The maximum number of entries for CIDR address blocks in the prefix list.

Link copied to clipboard

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

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

The name of the prefix list. The name must be 2 to 128 characters in length and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

(Available in v1.196.0+) The status of the Prefix List.

Link copied to clipboard
val urn: Output<String>