AWS v7.11.0 published on Wednesday, Nov 5, 2025 by Pulumi
aws.ec2.getLocalGatewayVirtualInterface
Start a Neo task
Explain and create an aws.ec2.getLocalGatewayVirtualInterface resource
Provides details about an EC2 Local Gateway Virtual Interface. More information can be found in the Outposts User Guide.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: aws.ec2.getLocalGatewayVirtualInterface({
id: __value,
}) }));
import pulumi
import pulumi_aws as aws
example = {__key: aws.ec2.get_local_gateway_virtual_interface(id=__value) for __key, __value in example_aws_ec2_local_gateway_virtual_interface_group["localGatewayVirtualInterfaceIds"]}
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = .ToDictionary(item => {
var __key = item.Key;
return __key;
}, item => {
var __value = item.Value;
return Aws.Ec2.GetLocalGatewayVirtualInterface.Invoke(new()
{
Id = __value,
});
});
});
Example coming soon!
Example coming soon!
Using getLocalGatewayVirtualInterface
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 getLocalGatewayVirtualInterface(args: GetLocalGatewayVirtualInterfaceArgs, opts?: InvokeOptions): Promise<GetLocalGatewayVirtualInterfaceResult>
function getLocalGatewayVirtualInterfaceOutput(args: GetLocalGatewayVirtualInterfaceOutputArgs, opts?: InvokeOptions): Output<GetLocalGatewayVirtualInterfaceResult>def get_local_gateway_virtual_interface(filters: Optional[Sequence[GetLocalGatewayVirtualInterfaceFilter]] = None,
id: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetLocalGatewayVirtualInterfaceResult
def get_local_gateway_virtual_interface_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetLocalGatewayVirtualInterfaceFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLocalGatewayVirtualInterfaceResult]func GetLocalGatewayVirtualInterface(ctx *Context, args *GetLocalGatewayVirtualInterfaceArgs, opts ...InvokeOption) (*GetLocalGatewayVirtualInterfaceResult, error)
func GetLocalGatewayVirtualInterfaceOutput(ctx *Context, args *GetLocalGatewayVirtualInterfaceOutputArgs, opts ...InvokeOption) GetLocalGatewayVirtualInterfaceResultOutput> Note: This function is named GetLocalGatewayVirtualInterface in the Go SDK.
public static class GetLocalGatewayVirtualInterface
{
public static Task<GetLocalGatewayVirtualInterfaceResult> InvokeAsync(GetLocalGatewayVirtualInterfaceArgs args, InvokeOptions? opts = null)
public static Output<GetLocalGatewayVirtualInterfaceResult> Invoke(GetLocalGatewayVirtualInterfaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLocalGatewayVirtualInterfaceResult> getLocalGatewayVirtualInterface(GetLocalGatewayVirtualInterfaceArgs args, InvokeOptions options)
public static Output<GetLocalGatewayVirtualInterfaceResult> getLocalGatewayVirtualInterface(GetLocalGatewayVirtualInterfaceArgs args, InvokeOptions options)
fn::invoke:
function: aws:ec2/getLocalGatewayVirtualInterface:getLocalGatewayVirtualInterface
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Local Gateway Virtual Interface Filter> - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- Id string
- Identifier of EC2 Local Gateway Virtual Interface.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Key-value map of resource tags, each pair of which must exactly match a pair on the desired local gateway route table.
- Filters
[]Get
Local Gateway Virtual Interface Filter - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- Id string
- Identifier of EC2 Local Gateway Virtual Interface.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Key-value map of resource tags, each pair of which must exactly match a pair on the desired local gateway route table.
- filters
List<Get
Local Gateway Virtual Interface Filter> - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- id String
- Identifier of EC2 Local Gateway Virtual Interface.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Key-value map of resource tags, each pair of which must exactly match a pair on the desired local gateway route table.
- filters
Get
Local Gateway Virtual Interface Filter[] - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- id string
- Identifier of EC2 Local Gateway Virtual Interface.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Key-value map of resource tags, each pair of which must exactly match a pair on the desired local gateway route table.
- filters
Sequence[Get
Local Gateway Virtual Interface Filter] - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- id str
- Identifier of EC2 Local Gateway Virtual Interface.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Key-value map of resource tags, each pair of which must exactly match a pair on the desired local gateway route table.
- filters List<Property Map>
- One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- id String
- Identifier of EC2 Local Gateway Virtual Interface.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Key-value map of resource tags, each pair of which must exactly match a pair on the desired local gateway route table.
getLocalGatewayVirtualInterface Result
The following output properties are available:
- Id string
- Local
Address string - Local address.
- Local
Bgp intAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- Local
Gateway stringId - Identifier of the EC2 Local Gateway.
- Local
Gateway List<string>Virtual Interface Ids - Peer
Address string - Peer address.
- Peer
Bgp intAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- Region string
- Dictionary<string, string>
- Vlan int
- Virtual Local Area Network.
- Filters
List<Get
Local Gateway Virtual Interface Filter>
- Id string
- Local
Address string - Local address.
- Local
Bgp intAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- Local
Gateway stringId - Identifier of the EC2 Local Gateway.
- Local
Gateway []stringVirtual Interface Ids - Peer
Address string - Peer address.
- Peer
Bgp intAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- Region string
- map[string]string
- Vlan int
- Virtual Local Area Network.
- Filters
[]Get
Local Gateway Virtual Interface Filter
- id String
- local
Address String - Local address.
- local
Bgp IntegerAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- local
Gateway StringId - Identifier of the EC2 Local Gateway.
- local
Gateway List<String>Virtual Interface Ids - peer
Address String - Peer address.
- peer
Bgp IntegerAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- region String
- Map<String,String>
- vlan Integer
- Virtual Local Area Network.
- filters
List<Get
Local Gateway Virtual Interface Filter>
- id string
- local
Address string - Local address.
- local
Bgp numberAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- local
Gateway stringId - Identifier of the EC2 Local Gateway.
- local
Gateway string[]Virtual Interface Ids - peer
Address string - Peer address.
- peer
Bgp numberAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- region string
- {[key: string]: string}
- vlan number
- Virtual Local Area Network.
- filters
Get
Local Gateway Virtual Interface Filter[]
- id str
- local_
address str - Local address.
- local_
bgp_ intasn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- local_
gateway_ strid - Identifier of the EC2 Local Gateway.
- local_
gateway_ Sequence[str]virtual_ interface_ ids - peer_
address str - Peer address.
- peer_
bgp_ intasn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- region str
- Mapping[str, str]
- vlan int
- Virtual Local Area Network.
- filters
Sequence[Get
Local Gateway Virtual Interface Filter]
- id String
- local
Address String - Local address.
- local
Bgp NumberAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- local
Gateway StringId - Identifier of the EC2 Local Gateway.
- local
Gateway List<String>Virtual Interface Ids - peer
Address String - Peer address.
- peer
Bgp NumberAsn - Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- region String
- Map<String>
- vlan Number
- Virtual Local Area Network.
- filters List<Property Map>
Supporting Types
GetLocalGatewayVirtualInterfaceFilter
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
