getServiceLinkVirtualInterfaces function
Future<GetServiceLinkVirtualInterfacesResult>
getServiceLinkVirtualInterfaces(
- GetServiceLinkVirtualInterfacesArgs args, {
- InvokeOptions? options,
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"]],
}])
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 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: pulumi.StringArray{
exampleAwsOutpostsOutpost.Arn,
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_ec2_getservicelinkvirtualinterfaces" "example" {
filters {
name = "outpost-arn"
values = [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 com.pulumi.aws.ec2.inputs.GetServiceLinkVirtualInterfacesFilterArgs;
import java.util.ArrayList;
import java.util.Arrays;
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}
args Arguments passed to this invoke. Arguments for getServiceLinkVirtualInterfaces.
options Invoke options controlling this call.
Implementation
Future<GetServiceLinkVirtualInterfacesResult> getServiceLinkVirtualInterfaces(
GetServiceLinkVirtualInterfacesArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'aws:ec2/getServiceLinkVirtualInterfaces:getServiceLinkVirtualInterfaces',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetServiceLinkVirtualInterfacesResult.fromMap(result);
}