Prefix List Reference
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());
}
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
Identifier of EC2 Prefix List.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Identifier of EC2 Transit Gateway Attachment.
Link copied to clipboard
Identifier of EC2 Transit Gateway Route Table. The following arguments are optional: