Try AWS Native preview for resources not in the classic version.
aws.ec2.getLocalGatewayVirtualInterfaceGroup
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides details about an EC2 Local Gateway Virtual Interface Group. 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 = aws.ec2.getLocalGatewayVirtualInterfaceGroup({
localGatewayId: exampleAwsEc2LocalGateway.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.get_local_gateway_virtual_interface_group(local_gateway_id=example_aws_ec2_local_gateway["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.GetLocalGatewayVirtualInterfaceGroup(ctx, &ec2.GetLocalGatewayVirtualInterfaceGroupArgs{
LocalGatewayId: pulumi.StringRef(exampleAwsEc2LocalGateway.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Ec2.GetLocalGatewayVirtualInterfaceGroup.Invoke(new()
{
LocalGatewayId = exampleAwsEc2LocalGateway.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetLocalGatewayVirtualInterfaceGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Ec2Functions.getLocalGatewayVirtualInterfaceGroup(GetLocalGatewayVirtualInterfaceGroupArgs.builder()
.localGatewayId(exampleAwsEc2LocalGateway.id())
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:ec2:getLocalGatewayVirtualInterfaceGroup
Arguments:
localGatewayId: ${exampleAwsEc2LocalGateway.id}
Using getLocalGatewayVirtualInterfaceGroup
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 getLocalGatewayVirtualInterfaceGroup(args: GetLocalGatewayVirtualInterfaceGroupArgs, opts?: InvokeOptions): Promise<GetLocalGatewayVirtualInterfaceGroupResult>
function getLocalGatewayVirtualInterfaceGroupOutput(args: GetLocalGatewayVirtualInterfaceGroupOutputArgs, opts?: InvokeOptions): Output<GetLocalGatewayVirtualInterfaceGroupResult>
def get_local_gateway_virtual_interface_group(filters: Optional[Sequence[GetLocalGatewayVirtualInterfaceGroupFilter]] = None,
id: Optional[str] = None,
local_gateway_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetLocalGatewayVirtualInterfaceGroupResult
def get_local_gateway_virtual_interface_group_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetLocalGatewayVirtualInterfaceGroupFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
local_gateway_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLocalGatewayVirtualInterfaceGroupResult]
func GetLocalGatewayVirtualInterfaceGroup(ctx *Context, args *GetLocalGatewayVirtualInterfaceGroupArgs, opts ...InvokeOption) (*GetLocalGatewayVirtualInterfaceGroupResult, error)
func GetLocalGatewayVirtualInterfaceGroupOutput(ctx *Context, args *GetLocalGatewayVirtualInterfaceGroupOutputArgs, opts ...InvokeOption) GetLocalGatewayVirtualInterfaceGroupResultOutput
> Note: This function is named GetLocalGatewayVirtualInterfaceGroup
in the Go SDK.
public static class GetLocalGatewayVirtualInterfaceGroup
{
public static Task<GetLocalGatewayVirtualInterfaceGroupResult> InvokeAsync(GetLocalGatewayVirtualInterfaceGroupArgs args, InvokeOptions? opts = null)
public static Output<GetLocalGatewayVirtualInterfaceGroupResult> Invoke(GetLocalGatewayVirtualInterfaceGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLocalGatewayVirtualInterfaceGroupResult> getLocalGatewayVirtualInterfaceGroup(GetLocalGatewayVirtualInterfaceGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:ec2/getLocalGatewayVirtualInterfaceGroup:getLocalGatewayVirtualInterfaceGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Local Gateway Virtual Interface Group 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 Group.
- Local
Gateway stringId - Identifier of EC2 Local Gateway.
- 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 Group 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 Group.
- Local
Gateway stringId - Identifier of EC2 Local Gateway.
- 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 Group 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 Group.
- local
Gateway StringId - Identifier of EC2 Local Gateway.
- 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 Group 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 Group.
- local
Gateway stringId - Identifier of EC2 Local Gateway.
- {[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 Group 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 Group.
- local_
gateway_ strid - Identifier of EC2 Local Gateway.
- 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 Group.
- local
Gateway StringId - Identifier of EC2 Local Gateway.
- Map<String>
- Key-value map of resource tags, each pair of which must exactly match a pair on the desired local gateway route table.
getLocalGatewayVirtualInterfaceGroup Result
The following output properties are available:
- Id string
- Local
Gateway stringId - Local
Gateway List<string>Virtual Interface Ids - Set of EC2 Local Gateway Virtual Interface identifiers.
- Dictionary<string, string>
- Filters
List<Get
Local Gateway Virtual Interface Group Filter>
- Id string
- Local
Gateway stringId - Local
Gateway []stringVirtual Interface Ids - Set of EC2 Local Gateway Virtual Interface identifiers.
- map[string]string
- Filters
[]Get
Local Gateway Virtual Interface Group Filter
- id String
- local
Gateway StringId - local
Gateway List<String>Virtual Interface Ids - Set of EC2 Local Gateway Virtual Interface identifiers.
- Map<String,String>
- filters
List<Get
Local Gateway Virtual Interface Group Filter>
- id string
- local
Gateway stringId - local
Gateway string[]Virtual Interface Ids - Set of EC2 Local Gateway Virtual Interface identifiers.
- {[key: string]: string}
- filters
Get
Local Gateway Virtual Interface Group Filter[]
- id str
- local_
gateway_ strid - local_
gateway_ Sequence[str]virtual_ interface_ ids - Set of EC2 Local Gateway Virtual Interface identifiers.
- Mapping[str, str]
- filters
Sequence[Get
Local Gateway Virtual Interface Group Filter]
- id String
- local
Gateway StringId - local
Gateway List<String>Virtual Interface Ids - Set of EC2 Local Gateway Virtual Interface identifiers.
- Map<String>
- filters List<Property Map>
Supporting Types
GetLocalGatewayVirtualInterfaceGroupFilter
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.