AWS v6.54.0 published on Friday, Sep 27, 2024 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, [, ]) => ({ ...__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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:ec2/getLocalGatewayVirtualInterface:getLocalGatewayVirtualInterface
arguments:
# arguments dictionary
The 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.
- 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.
- 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.
- 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.
- {[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.
- 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
- 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.
- 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.
- 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.
- 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.
- {[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.
- 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.
- 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
aws
Terraform Provider.