Package com.pulumi.aws.ec2
Class LocalGatewayRouteTable
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ec2.LocalGatewayRouteTable
-
public class LocalGatewayRouteTable extends com.pulumi.resources.CustomResourceManages an EC2 Local Gateway Route Table. More information can be found in the [Outposts User Guide](https://docs.aws.amazon.com/outposts/latest/userguide/outposts-local-gateways.html#route-tables). ## Example Usage
## Import Using `pulumi import`, import `aws.ec2.LocalGatewayRouteTable` using the Local Gateway Route Table identifier. For example: ```sh $ pulumi import aws:ec2/localGatewayRouteTable:LocalGatewayRouteTable example lgw-rtb-1234567890abcdef ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.ec2.Ec2Functions; import com.pulumi.aws.ec2.inputs.GetLocalGatewayArgs; import com.pulumi.aws.ec2.LocalGatewayRouteTable; import com.pulumi.aws.ec2.LocalGatewayRouteTableArgs; 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) { final var example = Ec2Functions.getLocalGateway(GetLocalGatewayArgs.builder() .id("lgw-1234567890abcdef") .build()); var exampleLocalGatewayRouteTable = new LocalGatewayRouteTable("exampleLocalGatewayRouteTable", LocalGatewayRouteTableArgs.builder() .localGatewayId(example.id()) .mode("direct-vpc-routing") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description LocalGatewayRouteTable(java.lang.String name)LocalGatewayRouteTable(java.lang.String name, LocalGatewayRouteTableArgs args)LocalGatewayRouteTable(java.lang.String name, LocalGatewayRouteTableArgs 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>arn()static LocalGatewayRouteTableget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, LocalGatewayRouteTableState 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>localGatewayId()com.pulumi.core.Output<java.lang.String>localGatewayRouteTableId()com.pulumi.core.Output<java.lang.String>mode()com.pulumi.core.Output<java.lang.String>outpostArn()com.pulumi.core.Output<java.lang.String>ownerId()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>state()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.util.Optional<LocalGatewayRouteTableTimeouts>>timeouts()
-
-
-
Constructor Detail
-
LocalGatewayRouteTable
public LocalGatewayRouteTable(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
LocalGatewayRouteTable
public LocalGatewayRouteTable(java.lang.String name, LocalGatewayRouteTableArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
LocalGatewayRouteTable
public LocalGatewayRouteTable(java.lang.String name, LocalGatewayRouteTableArgs 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
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the Local Gateway Route Table.
-
localGatewayId
public com.pulumi.core.Output<java.lang.String> localGatewayId()
- Returns:
- Identifier of the EC2 Local Gateway.
-
localGatewayRouteTableId
public com.pulumi.core.Output<java.lang.String> localGatewayRouteTableId()
- Returns:
- Identifier of the Local Gateway Route Table.
-
mode
public com.pulumi.core.Output<java.lang.String> mode()
- Returns:
- Mode of the Local Gateway Route Table. Valid values: `direct-vpc-routing`, `coip`. The following arguments are optional:
-
outpostArn
public com.pulumi.core.Output<java.lang.String> outpostArn()
- Returns:
- ARN of the Outpost.
-
ownerId
public com.pulumi.core.Output<java.lang.String> ownerId()
- Returns:
- AWS account identifier that owns the Local Gateway Route Table.
-
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.
-
state
public com.pulumi.core.Output<java.lang.String> state()
- Returns:
- State of the Local Gateway Route Table.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
timeouts
public com.pulumi.core.Output<java.util.Optional<LocalGatewayRouteTableTimeouts>> timeouts()
-
get
public static LocalGatewayRouteTable get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable LocalGatewayRouteTableState 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.
-
-