AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.networkmanager.getLinks
Explore with Pulumi AI
Retrieve information about link.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.networkmanager.getLinks({
    globalNetworkId: globalNetworkId,
    tags: {
        Env: "test",
    },
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.get_links(global_network_id=global_network_id,
    tags={
        "Env": "test",
    })
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkmanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := networkmanager.GetLinks(ctx, &networkmanager.GetLinksArgs{
			GlobalNetworkId: globalNetworkId,
			Tags: map[string]interface{}{
				"Env": "test",
			},
		}, 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.NetworkManager.GetLinks.Invoke(new()
    {
        GlobalNetworkId = globalNetworkId,
        Tags = 
        {
            { "Env", "test" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.NetworkmanagerFunctions;
import com.pulumi.aws.networkmanager.inputs.GetLinksArgs;
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 = NetworkmanagerFunctions.getLinks(GetLinksArgs.builder()
            .globalNetworkId(globalNetworkId)
            .tags(Map.of("Env", "test"))
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:networkmanager:getLinks
      arguments:
        globalNetworkId: ${globalNetworkId}
        tags:
          Env: test
Using getLinks
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 getLinks(args: GetLinksArgs, opts?: InvokeOptions): Promise<GetLinksResult>
function getLinksOutput(args: GetLinksOutputArgs, opts?: InvokeOptions): Output<GetLinksResult>def get_links(global_network_id: Optional[str] = None,
              provider_name: Optional[str] = None,
              site_id: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              type: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetLinksResult
def get_links_output(global_network_id: Optional[pulumi.Input[str]] = None,
              provider_name: Optional[pulumi.Input[str]] = None,
              site_id: Optional[pulumi.Input[str]] = None,
              tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
              type: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetLinksResult]func GetLinks(ctx *Context, args *GetLinksArgs, opts ...InvokeOption) (*GetLinksResult, error)
func GetLinksOutput(ctx *Context, args *GetLinksOutputArgs, opts ...InvokeOption) GetLinksResultOutput> Note: This function is named GetLinks in the Go SDK.
public static class GetLinks 
{
    public static Task<GetLinksResult> InvokeAsync(GetLinksArgs args, InvokeOptions? opts = null)
    public static Output<GetLinksResult> Invoke(GetLinksInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLinksResult> getLinks(GetLinksArgs args, InvokeOptions options)
public static Output<GetLinksResult> getLinks(GetLinksArgs args, InvokeOptions options)
fn::invoke:
  function: aws:networkmanager/getLinks:getLinks
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GlobalNetwork stringId 
- ID of the Global Network of the links to retrieve.
- ProviderName string
- Link provider to retrieve.
- SiteId string
- ID of the site of the links to retrieve.
- Dictionary<string, string>
- Restricts the list to the links with these tags.
- Type string
- Link type to retrieve.
- GlobalNetwork stringId 
- ID of the Global Network of the links to retrieve.
- ProviderName string
- Link provider to retrieve.
- SiteId string
- ID of the site of the links to retrieve.
- map[string]string
- Restricts the list to the links with these tags.
- Type string
- Link type to retrieve.
- globalNetwork StringId 
- ID of the Global Network of the links to retrieve.
- providerName String
- Link provider to retrieve.
- siteId String
- ID of the site of the links to retrieve.
- Map<String,String>
- Restricts the list to the links with these tags.
- type String
- Link type to retrieve.
- globalNetwork stringId 
- ID of the Global Network of the links to retrieve.
- providerName string
- Link provider to retrieve.
- siteId string
- ID of the site of the links to retrieve.
- {[key: string]: string}
- Restricts the list to the links with these tags.
- type string
- Link type to retrieve.
- global_network_ strid 
- ID of the Global Network of the links to retrieve.
- provider_name str
- Link provider to retrieve.
- site_id str
- ID of the site of the links to retrieve.
- Mapping[str, str]
- Restricts the list to the links with these tags.
- type str
- Link type to retrieve.
- globalNetwork StringId 
- ID of the Global Network of the links to retrieve.
- providerName String
- Link provider to retrieve.
- siteId String
- ID of the site of the links to retrieve.
- Map<String>
- Restricts the list to the links with these tags.
- type String
- Link type to retrieve.
getLinks Result
The following output properties are available:
- GlobalNetwork stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- IDs of the links.
- ProviderName string
- SiteId string
- Dictionary<string, string>
- Type string
- GlobalNetwork stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- IDs of the links.
- ProviderName string
- SiteId string
- map[string]string
- Type string
- globalNetwork StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- IDs of the links.
- providerName String
- siteId String
- Map<String,String>
- type String
- globalNetwork stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- IDs of the links.
- providerName string
- siteId string
- {[key: string]: string}
- type string
- global_network_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- IDs of the links.
- provider_name str
- site_id str
- Mapping[str, str]
- type str
- globalNetwork StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- IDs of the links.
- providerName String
- siteId String
- Map<String>
- type String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.