Expand description
Manages an EC2 Local Gateway Route. More information can be found in the Outposts User Guide.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let example = local_gateway_route::create(
"example",
LocalGatewayRouteArgs::builder()
.destination_cidr_block("172.16.0.0/16")
.local_gateway_route_table_id("${exampleAwsEc2LocalGatewayRouteTable.id}")
.local_gateway_virtual_interface_group_id(
"${exampleAwsEc2LocalGatewayVirtualInterfaceGroup.id}",
)
.build_struct(),
);
}
§Import
Using pulumi import
, import aws_ec2_local_gateway_route
using the EC2 Local Gateway Route Table identifier and destination CIDR block separated by underscores (_
). For example:
$ pulumi import aws:ec2/localGatewayRoute:LocalGatewayRoute example lgw-rtb-12345678_172.16.0.0/16
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments