Viewing docs for AWS v7.27.0
published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
Viewing docs for AWS v7.27.0
published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
Provides a list of EC2 Service Link Virtual Interface IDs matching the provided filters. 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.getServiceLinkVirtualInterfaces({
filters: [{
name: "outpost-arn",
values: [exampleAwsOutpostsOutpost.arn],
}],
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.get_service_link_virtual_interfaces(filters=[{
"name": "outpost-arn",
"values": [example_aws_outposts_outpost["arn"]],
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.GetServiceLinkVirtualInterfaces(ctx, &ec2.GetServiceLinkVirtualInterfacesArgs{
Filters: []ec2.GetServiceLinkVirtualInterfacesFilter{
{
Name: "outpost-arn",
Values: interface{}{
exampleAwsOutpostsOutpost.Arn,
},
},
},
}, 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.GetServiceLinkVirtualInterfaces.Invoke(new()
{
Filters = new[]
{
new Aws.Ec2.Inputs.GetServiceLinkVirtualInterfacesFilterInputArgs
{
Name = "outpost-arn",
Values = new[]
{
exampleAwsOutpostsOutpost.Arn,
},
},
},
});
});
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.GetServiceLinkVirtualInterfacesArgs;
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.getServiceLinkVirtualInterfaces(GetServiceLinkVirtualInterfacesArgs.builder()
.filters(GetServiceLinkVirtualInterfacesFilterArgs.builder()
.name("outpost-arn")
.values(exampleAwsOutpostsOutpost.arn())
.build())
.build());
}
}
variables:
example:
fn::invoke:
function: aws:ec2:getServiceLinkVirtualInterfaces
arguments:
filters:
- name: outpost-arn
values:
- ${exampleAwsOutpostsOutpost.arn}
Using getServiceLinkVirtualInterfaces
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 getServiceLinkVirtualInterfaces(args: GetServiceLinkVirtualInterfacesArgs, opts?: InvokeOptions): Promise<GetServiceLinkVirtualInterfacesResult>
function getServiceLinkVirtualInterfacesOutput(args: GetServiceLinkVirtualInterfacesOutputArgs, opts?: InvokeOptions): Output<GetServiceLinkVirtualInterfacesResult>def get_service_link_virtual_interfaces(filters: Optional[Sequence[GetServiceLinkVirtualInterfacesFilter]] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceLinkVirtualInterfacesResult
def get_service_link_virtual_interfaces_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetServiceLinkVirtualInterfacesFilterArgs]]]] = None,
region: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceLinkVirtualInterfacesResult]func GetServiceLinkVirtualInterfaces(ctx *Context, args *GetServiceLinkVirtualInterfacesArgs, opts ...InvokeOption) (*GetServiceLinkVirtualInterfacesResult, error)
func GetServiceLinkVirtualInterfacesOutput(ctx *Context, args *GetServiceLinkVirtualInterfacesOutputArgs, opts ...InvokeOption) GetServiceLinkVirtualInterfacesResultOutput> Note: This function is named GetServiceLinkVirtualInterfaces in the Go SDK.
public static class GetServiceLinkVirtualInterfaces
{
public static Task<GetServiceLinkVirtualInterfacesResult> InvokeAsync(GetServiceLinkVirtualInterfacesArgs args, InvokeOptions? opts = null)
public static Output<GetServiceLinkVirtualInterfacesResult> Invoke(GetServiceLinkVirtualInterfacesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceLinkVirtualInterfacesResult> getServiceLinkVirtualInterfaces(GetServiceLinkVirtualInterfacesArgs args, InvokeOptions options)
public static Output<GetServiceLinkVirtualInterfacesResult> getServiceLinkVirtualInterfaces(GetServiceLinkVirtualInterfacesArgs args, InvokeOptions options)
fn::invoke:
function: aws:ec2/getServiceLinkVirtualInterfaces:getServiceLinkVirtualInterfaces
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Service Link Virtual Interfaces Filter> - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- 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 Service Link Virtual Interfaces.
- Filters
[]Get
Service Link Virtual Interfaces Filter - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- 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 Service Link Virtual Interfaces.
- filters
List<Get
Service Link Virtual Interfaces Filter> - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- 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 Service Link Virtual Interfaces.
- filters
Get
Service Link Virtual Interfaces Filter[] - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- 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 Service Link Virtual Interfaces.
- filters
Sequence[Get
Service Link Virtual Interfaces Filter] - One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- 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 Service Link Virtual Interfaces.
- filters List<Property Map>
- One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
- 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 Service Link Virtual Interfaces.
getServiceLinkVirtualInterfaces Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- List of EC2 Service Link Virtual Interface identifiers.
- Region string
- Filters
List<Get
Service Link Virtual Interfaces Filter> - Dictionary<string, string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- List of EC2 Service Link Virtual Interface identifiers.
- Region string
- Filters
[]Get
Service Link Virtual Interfaces Filter - map[string]string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- List of EC2 Service Link Virtual Interface identifiers.
- region String
- filters
List<Get
Service Link Virtual Interfaces Filter> - Map<String,String>
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- List of EC2 Service Link Virtual Interface identifiers.
- region string
- filters
Get
Service Link Virtual Interfaces Filter[] - {[key: string]: string}
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- List of EC2 Service Link Virtual Interface identifiers.
- region str
- filters
Sequence[Get
Service Link Virtual Interfaces Filter] - Mapping[str, str]
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- List of EC2 Service Link Virtual Interface identifiers.
- region String
- filters List<Property Map>
- Map<String>
Supporting Types
GetServiceLinkVirtualInterfacesFilter
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.27.0
published on Thursday, Apr 23, 2026 by Pulumi
published on Thursday, Apr 23, 2026 by Pulumi
