1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. ec2
  6. getServiceLinkVirtualInterface
Viewing docs for AWS v7.27.0
published on Thursday, Apr 23, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.27.0
published on Thursday, Apr 23, 2026 by Pulumi

    Provides details about an EC2 Service Link 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 = aws.ec2.getServiceLinkVirtualInterface({
        id: "slvif-1234567890abcdef0",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2.get_service_link_virtual_interface(id="slvif-1234567890abcdef0")
    
    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.GetServiceLinkVirtualInterface(ctx, &ec2.GetServiceLinkVirtualInterfaceArgs{
    			Id: pulumi.StringRef("slvif-1234567890abcdef0"),
    		}, 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.GetServiceLinkVirtualInterface.Invoke(new()
        {
            Id = "slvif-1234567890abcdef0",
        });
    
    });
    
    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.GetServiceLinkVirtualInterfaceArgs;
    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.getServiceLinkVirtualInterface(GetServiceLinkVirtualInterfaceArgs.builder()
                .id("slvif-1234567890abcdef0")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:ec2:getServiceLinkVirtualInterface
          arguments:
            id: slvif-1234567890abcdef0
    

    Using getServiceLinkVirtualInterface

    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 getServiceLinkVirtualInterface(args: GetServiceLinkVirtualInterfaceArgs, opts?: InvokeOptions): Promise<GetServiceLinkVirtualInterfaceResult>
    function getServiceLinkVirtualInterfaceOutput(args: GetServiceLinkVirtualInterfaceOutputArgs, opts?: InvokeOptions): Output<GetServiceLinkVirtualInterfaceResult>
    def get_service_link_virtual_interface(filters: Optional[Sequence[GetServiceLinkVirtualInterfaceFilter]] = None,
                                           id: Optional[str] = None,
                                           region: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetServiceLinkVirtualInterfaceResult
    def get_service_link_virtual_interface_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetServiceLinkVirtualInterfaceFilterArgs]]]] = None,
                                           id: Optional[pulumi.Input[str]] = None,
                                           region: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetServiceLinkVirtualInterfaceResult]
    func GetServiceLinkVirtualInterface(ctx *Context, args *GetServiceLinkVirtualInterfaceArgs, opts ...InvokeOption) (*GetServiceLinkVirtualInterfaceResult, error)
    func GetServiceLinkVirtualInterfaceOutput(ctx *Context, args *GetServiceLinkVirtualInterfaceOutputArgs, opts ...InvokeOption) GetServiceLinkVirtualInterfaceResultOutput

    > Note: This function is named GetServiceLinkVirtualInterface in the Go SDK.

    public static class GetServiceLinkVirtualInterface 
    {
        public static Task<GetServiceLinkVirtualInterfaceResult> InvokeAsync(GetServiceLinkVirtualInterfaceArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceLinkVirtualInterfaceResult> Invoke(GetServiceLinkVirtualInterfaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceLinkVirtualInterfaceResult> getServiceLinkVirtualInterface(GetServiceLinkVirtualInterfaceArgs args, InvokeOptions options)
    public static Output<GetServiceLinkVirtualInterfaceResult> getServiceLinkVirtualInterface(GetServiceLinkVirtualInterfaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:ec2/getServiceLinkVirtualInterface:getServiceLinkVirtualInterface
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetServiceLinkVirtualInterfaceFilter>
    One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
    Id string

    Identifier of the EC2 Service Link Virtual Interface.

    NOTE: At least one of filter or id must be specified.

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Filters []GetServiceLinkVirtualInterfaceFilter
    One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
    Id string

    Identifier of the EC2 Service Link Virtual Interface.

    NOTE: At least one of filter or id must be specified.

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    filters List<GetServiceLinkVirtualInterfaceFilter>
    One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
    id String

    Identifier of the EC2 Service Link Virtual Interface.

    NOTE: At least one of filter or id must be specified.

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    filters GetServiceLinkVirtualInterfaceFilter[]
    One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
    id string

    Identifier of the EC2 Service Link Virtual Interface.

    NOTE: At least one of filter or id must be specified.

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    filters Sequence[GetServiceLinkVirtualInterfaceFilter]
    One or more configuration blocks containing name-values filters. See the EC2 API Reference for supported filters. Detailed below.
    id str

    Identifier of the EC2 Service Link Virtual Interface.

    NOTE: At least one of filter or id must be specified.

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    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 the EC2 Service Link Virtual Interface.

    NOTE: At least one of filter or id must be specified.

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getServiceLinkVirtualInterface Result

    The following output properties are available:

    Arn string
    ARN of the Service Link Virtual Interface.
    ConfigurationState string
    Current state of the Service Link Virtual Interface.
    Id string
    LocalAddress string
    IPv4 address assigned to the local gateway virtual interface on the Outpost side.
    OutpostArn string
    Outpost ARN for the Service Link Virtual Interface.
    OutpostId string
    Outpost ID for the Service Link Virtual Interface.
    OutpostLagId string
    Link aggregation group (LAG) ID for the Service Link Virtual Interface.
    OwnerId string
    ID of the AWS account that owns the Service Link Virtual Interface.
    PeerAddress string
    IPv4 peer address for the Service Link Virtual Interface.
    PeerBgpAsn int
    BGP Autonomous System Number (ASN) of the peer.
    Region string
    Tags Dictionary<string, string>
    Key-value map of resource tags.
    Vlan int
    Virtual Local Area Network.
    Filters List<GetServiceLinkVirtualInterfaceFilter>
    Arn string
    ARN of the Service Link Virtual Interface.
    ConfigurationState string
    Current state of the Service Link Virtual Interface.
    Id string
    LocalAddress string
    IPv4 address assigned to the local gateway virtual interface on the Outpost side.
    OutpostArn string
    Outpost ARN for the Service Link Virtual Interface.
    OutpostId string
    Outpost ID for the Service Link Virtual Interface.
    OutpostLagId string
    Link aggregation group (LAG) ID for the Service Link Virtual Interface.
    OwnerId string
    ID of the AWS account that owns the Service Link Virtual Interface.
    PeerAddress string
    IPv4 peer address for the Service Link Virtual Interface.
    PeerBgpAsn int
    BGP Autonomous System Number (ASN) of the peer.
    Region string
    Tags map[string]string
    Key-value map of resource tags.
    Vlan int
    Virtual Local Area Network.
    Filters []GetServiceLinkVirtualInterfaceFilter
    arn String
    ARN of the Service Link Virtual Interface.
    configurationState String
    Current state of the Service Link Virtual Interface.
    id String
    localAddress String
    IPv4 address assigned to the local gateway virtual interface on the Outpost side.
    outpostArn String
    Outpost ARN for the Service Link Virtual Interface.
    outpostId String
    Outpost ID for the Service Link Virtual Interface.
    outpostLagId String
    Link aggregation group (LAG) ID for the Service Link Virtual Interface.
    ownerId String
    ID of the AWS account that owns the Service Link Virtual Interface.
    peerAddress String
    IPv4 peer address for the Service Link Virtual Interface.
    peerBgpAsn Integer
    BGP Autonomous System Number (ASN) of the peer.
    region String
    tags Map<String,String>
    Key-value map of resource tags.
    vlan Integer
    Virtual Local Area Network.
    filters List<GetServiceLinkVirtualInterfaceFilter>
    arn string
    ARN of the Service Link Virtual Interface.
    configurationState string
    Current state of the Service Link Virtual Interface.
    id string
    localAddress string
    IPv4 address assigned to the local gateway virtual interface on the Outpost side.
    outpostArn string
    Outpost ARN for the Service Link Virtual Interface.
    outpostId string
    Outpost ID for the Service Link Virtual Interface.
    outpostLagId string
    Link aggregation group (LAG) ID for the Service Link Virtual Interface.
    ownerId string
    ID of the AWS account that owns the Service Link Virtual Interface.
    peerAddress string
    IPv4 peer address for the Service Link Virtual Interface.
    peerBgpAsn number
    BGP Autonomous System Number (ASN) of the peer.
    region string
    tags {[key: string]: string}
    Key-value map of resource tags.
    vlan number
    Virtual Local Area Network.
    filters GetServiceLinkVirtualInterfaceFilter[]
    arn str
    ARN of the Service Link Virtual Interface.
    configuration_state str
    Current state of the Service Link Virtual Interface.
    id str
    local_address str
    IPv4 address assigned to the local gateway virtual interface on the Outpost side.
    outpost_arn str
    Outpost ARN for the Service Link Virtual Interface.
    outpost_id str
    Outpost ID for the Service Link Virtual Interface.
    outpost_lag_id str
    Link aggregation group (LAG) ID for the Service Link Virtual Interface.
    owner_id str
    ID of the AWS account that owns the Service Link Virtual Interface.
    peer_address str
    IPv4 peer address for the Service Link Virtual Interface.
    peer_bgp_asn int
    BGP Autonomous System Number (ASN) of the peer.
    region str
    tags Mapping[str, str]
    Key-value map of resource tags.
    vlan int
    Virtual Local Area Network.
    filters Sequence[GetServiceLinkVirtualInterfaceFilter]
    arn String
    ARN of the Service Link Virtual Interface.
    configurationState String
    Current state of the Service Link Virtual Interface.
    id String
    localAddress String
    IPv4 address assigned to the local gateway virtual interface on the Outpost side.
    outpostArn String
    Outpost ARN for the Service Link Virtual Interface.
    outpostId String
    Outpost ID for the Service Link Virtual Interface.
    outpostLagId String
    Link aggregation group (LAG) ID for the Service Link Virtual Interface.
    ownerId String
    ID of the AWS account that owns the Service Link Virtual Interface.
    peerAddress String
    IPv4 peer address for the Service Link Virtual Interface.
    peerBgpAsn Number
    BGP Autonomous System Number (ASN) of the peer.
    region String
    tags Map<String>
    Key-value map of resource tags.
    vlan Number
    Virtual Local Area Network.
    filters List<Property Map>

    Supporting Types

    GetServiceLinkVirtualInterfaceFilter

    Name string
    Name of the filter.
    Values List<string>
    List of one or more values for the filter.
    Name string
    Name of the filter.
    Values []string
    List of one or more values for the filter.
    name String
    Name of the filter.
    values List<String>
    List of one or more values for the filter.
    name string
    Name of the filter.
    values string[]
    List of one or more values for the filter.
    name str
    Name of the filter.
    values Sequence[str]
    List of one or more values for the filter.
    name String
    Name of the filter.
    values 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.
    aws logo
    Viewing docs for AWS v7.27.0
    published on Thursday, Apr 23, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.