PrefixListReferenceArgs

data class PrefixListReferenceArgs(val blackhole: Output<Boolean>? = null, val prefixListId: Output<String>? = null, val transitGatewayAttachmentId: Output<String>? = null, val transitGatewayRouteTableId: Output<String>? = null) : ConvertibleToJava<PrefixListReferenceArgs>

Manages an EC2 Transit Gateway Prefix List Reference.

Example Usage

Attachment Routing

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.PrefixListReference;
import com.pulumi.aws.ec2transitgateway.PrefixListReferenceArgs;
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 PrefixListReference("example", PrefixListReferenceArgs.builder()
.prefixListId(aws_ec2_managed_prefix_list.example().id())
.transitGatewayAttachmentId(aws_ec2_transit_gateway_vpc_attachment.example().id())
.transitGatewayRouteTableId(aws_ec2_transit_gateway.example().association_default_route_table_id())
.build());
}
}

Blackhole Routing

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.PrefixListReference;
import com.pulumi.aws.ec2transitgateway.PrefixListReferenceArgs;
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 PrefixListReference("example", PrefixListReferenceArgs.builder()
.blackhole(true)
.prefixListId(aws_ec2_managed_prefix_list.example().id())
.transitGatewayRouteTableId(aws_ec2_transit_gateway.example().association_default_route_table_id())
.build());
}
}

Import

aws_ec2_transit_gateway_prefix_list_reference can be imported by using the EC2 Transit Gateway Route Table identifier and EC2 Prefix List identifier, separated by an underscore (_), e.g., console

$ pulumi import aws:ec2transitgateway/prefixListReference:PrefixListReference example tgw-rtb-12345678_pl-12345678

Constructors

Link copied to clipboard
constructor(blackhole: Output<Boolean>? = null, prefixListId: Output<String>? = null, transitGatewayAttachmentId: Output<String>? = null, transitGatewayRouteTableId: Output<String>? = null)

Properties

Link copied to clipboard
val blackhole: Output<Boolean>? = null

Indicates whether to drop traffic that matches the Prefix List. Defaults to false.

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

Identifier of EC2 Prefix List.

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

Identifier of EC2 Transit Gateway Attachment.

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

Identifier of EC2 Transit Gateway Route Table. The following arguments are optional:

Functions

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