1. Packages
  2. AWS
  3. API Docs
  4. ec2
  5. getLocalGatewayVirtualInterface
AWS v6.76.0 published on Tuesday, Apr 8, 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,
}) }));
Copy
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"]}
Copy
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,
        });
    });

});
Copy
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>
Copy
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]
Copy
func GetLocalGatewayVirtualInterface(ctx *Context, args *GetLocalGatewayVirtualInterfaceArgs, opts ...InvokeOption) (*GetLocalGatewayVirtualInterfaceResult, error)
func GetLocalGatewayVirtualInterfaceOutput(ctx *Context, args *GetLocalGatewayVirtualInterfaceOutputArgs, opts ...InvokeOption) GetLocalGatewayVirtualInterfaceResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetLocalGatewayVirtualInterfaceResult> getLocalGatewayVirtualInterface(GetLocalGatewayVirtualInterfaceArgs args, InvokeOptions options)
public static Output<GetLocalGatewayVirtualInterfaceResult> getLocalGatewayVirtualInterface(GetLocalGatewayVirtualInterfaceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:ec2/getLocalGatewayVirtualInterface:getLocalGatewayVirtualInterface
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetLocalGatewayVirtualInterfaceFilter>
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.
Tags 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 []GetLocalGatewayVirtualInterfaceFilter
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.
Tags 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<GetLocalGatewayVirtualInterfaceFilter>
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.
tags 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 GetLocalGatewayVirtualInterfaceFilter[]
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.
tags {[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[GetLocalGatewayVirtualInterfaceFilter]
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.
tags 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.
tags 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.
LocalBgpAsn int
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
LocalGatewayId string
Identifier of the EC2 Local Gateway.
LocalGatewayVirtualInterfaceIds List<string>
PeerAddress string
Peer address.
PeerBgpAsn int
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
Tags Dictionary<string, string>
Vlan int
Virtual Local Area Network.
Filters List<GetLocalGatewayVirtualInterfaceFilter>
Id string
LocalAddress string
Local address.
LocalBgpAsn int
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
LocalGatewayId string
Identifier of the EC2 Local Gateway.
LocalGatewayVirtualInterfaceIds []string
PeerAddress string
Peer address.
PeerBgpAsn int
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
Tags map[string]string
Vlan int
Virtual Local Area Network.
Filters []GetLocalGatewayVirtualInterfaceFilter
id String
localAddress String
Local address.
localBgpAsn Integer
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
localGatewayId String
Identifier of the EC2 Local Gateway.
localGatewayVirtualInterfaceIds List<String>
peerAddress String
Peer address.
peerBgpAsn Integer
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
tags Map<String,String>
vlan Integer
Virtual Local Area Network.
filters List<GetLocalGatewayVirtualInterfaceFilter>
id string
localAddress string
Local address.
localBgpAsn number
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
localGatewayId string
Identifier of the EC2 Local Gateway.
localGatewayVirtualInterfaceIds string[]
peerAddress string
Peer address.
peerBgpAsn number
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
tags {[key: string]: string}
vlan number
Virtual Local Area Network.
filters GetLocalGatewayVirtualInterfaceFilter[]
id str
local_address str
Local address.
local_bgp_asn int
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
local_gateway_id str
Identifier of the EC2 Local Gateway.
local_gateway_virtual_interface_ids Sequence[str]
peer_address str
Peer address.
peer_bgp_asn int
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
tags Mapping[str, str]
vlan int
Virtual Local Area Network.
filters Sequence[GetLocalGatewayVirtualInterfaceFilter]
id String
localAddress String
Local address.
localBgpAsn Number
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
localGatewayId String
Identifier of the EC2 Local Gateway.
localGatewayVirtualInterfaceIds List<String>
peerAddress String
Peer address.
peerBgpAsn Number
Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
tags Map<String>
vlan Number
Virtual Local Area Network.
filters List<Property Map>

Supporting Types

GetLocalGatewayVirtualInterfaceFilter

Name This property is required. string
Name of the filter.
Values This property is required. List<string>
List of one or more values for the filter.
Name This property is required. string
Name of the filter.
Values This property is required. []string
List of one or more values for the filter.
name This property is required. String
Name of the filter.
values This property is required. List<String>
List of one or more values for the filter.
name This property is required. string
Name of the filter.
values This property is required. string[]
List of one or more values for the filter.
name This property is required. str
Name of the filter.
values This property is required. Sequence[str]
List of one or more values for the filter.
name This property is required. String
Name of the filter.
values This property is required. List<String>
List of one or more values for the filter.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.