We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.ec2.getLocalGatewayRoute
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
Resource Type definition for Local Gateway Route which describes a route for a local gateway route table.
Using getLocalGatewayRoute
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLocalGatewayRoute(args: GetLocalGatewayRouteArgs, opts?: InvokeOptions): Promise<GetLocalGatewayRouteResult>
function getLocalGatewayRouteOutput(args: GetLocalGatewayRouteOutputArgs, opts?: InvokeOptions): Output<GetLocalGatewayRouteResult>def get_local_gateway_route(destination_cidr_block: Optional[str] = None,
                            local_gateway_route_table_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetLocalGatewayRouteResult
def get_local_gateway_route_output(destination_cidr_block: Optional[pulumi.Input[str]] = None,
                            local_gateway_route_table_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetLocalGatewayRouteResult]func LookupLocalGatewayRoute(ctx *Context, args *LookupLocalGatewayRouteArgs, opts ...InvokeOption) (*LookupLocalGatewayRouteResult, error)
func LookupLocalGatewayRouteOutput(ctx *Context, args *LookupLocalGatewayRouteOutputArgs, opts ...InvokeOption) LookupLocalGatewayRouteResultOutput> Note: This function is named LookupLocalGatewayRoute in the Go SDK.
public static class GetLocalGatewayRoute 
{
    public static Task<GetLocalGatewayRouteResult> InvokeAsync(GetLocalGatewayRouteArgs args, InvokeOptions? opts = null)
    public static Output<GetLocalGatewayRouteResult> Invoke(GetLocalGatewayRouteInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLocalGatewayRouteResult> getLocalGatewayRoute(GetLocalGatewayRouteArgs args, InvokeOptions options)
public static Output<GetLocalGatewayRouteResult> getLocalGatewayRoute(GetLocalGatewayRouteArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:ec2:getLocalGatewayRoute
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DestinationCidr stringBlock 
- The CIDR block used for destination matches.
- LocalGateway stringRoute Table Id 
- The ID of the local gateway route table.
- DestinationCidr stringBlock 
- The CIDR block used for destination matches.
- LocalGateway stringRoute Table Id 
- The ID of the local gateway route table.
- destinationCidr StringBlock 
- The CIDR block used for destination matches.
- localGateway StringRoute Table Id 
- The ID of the local gateway route table.
- destinationCidr stringBlock 
- The CIDR block used for destination matches.
- localGateway stringRoute Table Id 
- The ID of the local gateway route table.
- destination_cidr_ strblock 
- The CIDR block used for destination matches.
- local_gateway_ strroute_ table_ id 
- The ID of the local gateway route table.
- destinationCidr StringBlock 
- The CIDR block used for destination matches.
- localGateway StringRoute Table Id 
- The ID of the local gateway route table.
getLocalGatewayRoute Result
The following output properties are available:
- LocalGateway stringVirtual Interface Group Id 
- The ID of the virtual interface group.
- NetworkInterface stringId 
- The ID of the network interface.
- State string
- The state of the route.
- Type string
- The route type.
- LocalGateway stringVirtual Interface Group Id 
- The ID of the virtual interface group.
- NetworkInterface stringId 
- The ID of the network interface.
- State string
- The state of the route.
- Type string
- The route type.
- localGateway StringVirtual Interface Group Id 
- The ID of the virtual interface group.
- networkInterface StringId 
- The ID of the network interface.
- state String
- The state of the route.
- type String
- The route type.
- localGateway stringVirtual Interface Group Id 
- The ID of the virtual interface group.
- networkInterface stringId 
- The ID of the network interface.
- state string
- The state of the route.
- type string
- The route type.
- local_gateway_ strvirtual_ interface_ group_ id 
- The ID of the virtual interface group.
- network_interface_ strid 
- The ID of the network interface.
- state str
- The state of the route.
- type str
- The route type.
- localGateway StringVirtual Interface Group Id 
- The ID of the virtual interface group.
- networkInterface StringId 
- The ID of the network interface.
- state String
- The state of the route.
- type String
- The route type.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi