EcsPrefixList

class EcsPrefixList : KotlinCustomResource

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>

Properties

Link copied to clipboard
val addressFamily: Output<String>

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

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

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

The Entry. The details see Block entry.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val maxEntries: Output<Int>

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

Link copied to clipboard
val prefixListName: Output<String>

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 (-).

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>