Package com.pulumi.aws.ec2
Class LocalGatewayRoute
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ec2.LocalGatewayRoute
-
public class LocalGatewayRoute extends com.pulumi.resources.CustomResourceManages an EC2 Local Gateway Route. More information can be found in the [Outposts User Guide](https://docs.aws.amazon.com/outposts/latest/userguide/outposts-networking-components.html#routing). ## Example Usage
## Import Using `pulumi import`, import `aws.ec2.LocalGatewayRoute` using the EC2 Local Gateway Route Table identifier and destination CIDR block separated by underscores (`_`). For example: ```sh $ pulumi import aws:ec2/localGatewayRoute:LocalGatewayRoute example lgw-rtb-12345678_172.16.0.0/16 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.ec2.LocalGatewayRoute; import com.pulumi.aws.ec2.LocalGatewayRouteArgs; import java.util.ArrayList; import java.util.Arrays; 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 LocalGatewayRoute("example", LocalGatewayRouteArgs.builder() .destinationCidrBlock("172.16.0.0/16") .localGatewayRouteTableId(exampleAwsEc2LocalGatewayRouteTable.id()) .localGatewayVirtualInterfaceGroupId(exampleAwsEc2LocalGatewayVirtualInterfaceGroup.id()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description LocalGatewayRoute(java.lang.String name)LocalGatewayRoute(java.lang.String name, LocalGatewayRouteArgs args)LocalGatewayRoute(java.lang.String name, LocalGatewayRouteArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>destinationCidrBlock()static LocalGatewayRouteget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, LocalGatewayRouteState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>localGatewayRouteTableId()com.pulumi.core.Output<java.lang.String>localGatewayVirtualInterfaceGroupId()com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
LocalGatewayRoute
public LocalGatewayRoute(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
LocalGatewayRoute
public LocalGatewayRoute(java.lang.String name, LocalGatewayRouteArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
LocalGatewayRoute
public LocalGatewayRoute(java.lang.String name, LocalGatewayRouteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
destinationCidrBlock
public com.pulumi.core.Output<java.lang.String> destinationCidrBlock()
- Returns:
- IPv4 CIDR range used for destination matches. Routing decisions are based on the most specific match.
-
localGatewayRouteTableId
public com.pulumi.core.Output<java.lang.String> localGatewayRouteTableId()
- Returns:
- Identifier of EC2 Local Gateway Route Table.
-
localGatewayVirtualInterfaceGroupId
public com.pulumi.core.Output<java.lang.String> localGatewayVirtualInterfaceGroupId()
- Returns:
- Identifier of EC2 Local Gateway Virtual Interface Group.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
get
public static LocalGatewayRoute get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable LocalGatewayRouteState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-