AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.ec2.getLocalGatewayVirtualInterface
Explore with Pulumi AI
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"]}
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,
        });
    });
});
Coming soon!
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,
                                        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,
                                        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<GetLocal 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.
- 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
[]GetLocal 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.
- 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<GetLocal 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.
- 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
GetLocal 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.
- {[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[GetLocal 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.
- 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.
- 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
- LocalAddress string
- Local address.
- LocalBgp intAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- LocalGateway stringId 
- Identifier of the EC2 Local Gateway.
- LocalGateway List<string>Virtual Interface Ids 
- PeerAddress string
- Peer address.
- PeerBgp intAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- Dictionary<string, string>
- Vlan int
- Virtual Local Area Network.
- Filters
List<GetLocal Gateway Virtual Interface Filter> 
- Id string
- LocalAddress string
- Local address.
- LocalBgp intAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- LocalGateway stringId 
- Identifier of the EC2 Local Gateway.
- LocalGateway []stringVirtual Interface Ids 
- PeerAddress string
- Peer address.
- PeerBgp intAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- map[string]string
- Vlan int
- Virtual Local Area Network.
- Filters
[]GetLocal Gateway Virtual Interface Filter 
- id String
- localAddress String
- Local address.
- localBgp IntegerAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- localGateway StringId 
- Identifier of the EC2 Local Gateway.
- localGateway List<String>Virtual Interface Ids 
- peerAddress String
- Peer address.
- peerBgp IntegerAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- Map<String,String>
- vlan Integer
- Virtual Local Area Network.
- filters
List<GetLocal Gateway Virtual Interface Filter> 
- id string
- localAddress string
- Local address.
- localBgp numberAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- localGateway stringId 
- Identifier of the EC2 Local Gateway.
- localGateway string[]Virtual Interface Ids 
- peerAddress string
- Peer address.
- peerBgp numberAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- {[key: string]: string}
- vlan number
- Virtual Local Area Network.
- filters
GetLocal 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.
- Mapping[str, str]
- vlan int
- Virtual Local Area Network.
- filters
Sequence[GetLocal Gateway Virtual Interface Filter] 
- id String
- localAddress String
- Local address.
- localBgp NumberAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
- localGateway StringId 
- Identifier of the EC2 Local Gateway.
- localGateway List<String>Virtual Interface Ids 
- peerAddress String
- Peer address.
- peerBgp NumberAsn 
- Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
- 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.