ManagedPrefixListEntry

class ManagedPrefixListEntry : KotlinCustomResource

Use the aws_prefix_list_entry resource to manage a managed prefix list entry.

NOTE: Pulumi currently provides two resources for managing Managed Prefix Lists and Managed Prefix List Entries. The standalone resource, Managed Prefix List Entry, is used to manage a single entry. The Managed Prefix List resource is used to manage multiple entries defined in-line. It is important to note that you cannot use a Managed Prefix List with in-line rules in conjunction with any Managed Prefix List Entry resources. This will result in a conflict of entries and will cause the entries to be overwritten. NOTE: To improve execution times on larger updates, it is recommended to use the inline entry block as part of the Managed Prefix List resource when creating a prefix list with more than 100 entries. You can find more information about the resource here.

Example Usage

Basic usage.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.ManagedPrefixList;
import com.pulumi.aws.ec2.ManagedPrefixListArgs;
import com.pulumi.aws.ec2.ManagedPrefixListEntry;
import com.pulumi.aws.ec2.ManagedPrefixListEntryArgs;
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 example = new ManagedPrefixList("example", ManagedPrefixListArgs.builder()
.addressFamily("IPv4")
.maxEntries(5)
.tags(Map.of("Env", "live"))
.build());
var entry1 = new ManagedPrefixListEntry("entry1", ManagedPrefixListEntryArgs.builder()
.cidr(aws_vpc.example().cidr_block())
.description("Primary")
.prefixListId(example.id())
.build());
}
}

Import

Using pulumi import, import prefix list entries using prefix_list_id and cidr separated by a comma (,). For example:

$ pulumi import aws:ec2/managedPrefixListEntry:ManagedPrefixListEntry default pl-0570a1d2d725c16be,10.0.3.0/24

Properties

Link copied to clipboard
val cidr: Output<String>

CIDR block of this entry.

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

Description of this entry. Please note that due to API limitations, updating only the description of an entry will require recreating the entry.

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

CIDR block of this entry.

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