AWS Classic
getLinks
Retrieve information about link.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.NetworkManager.GetLinks.InvokeAsync(new Aws.NetworkManager.GetLinksArgs
{
GlobalNetworkId = @var.Global_network_id,
Tags =
{
{ "Env", "test" },
},
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/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: _var.Global_network_id,
Tags: map[string]interface{}{
"Env": "test",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Output.of(NetworkmanagerFunctions.getLinks(GetLinksArgs.builder()
.globalNetworkId(var_.global_network_id())
.tags(Map.of("Env", "test"))
.build()));
}
}
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.get_links(global_network_id=var["global_network_id"],
tags={
"Env": "test",
})
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.networkmanager.getLinks({
globalNetworkId: _var.global_network_id,
tags: {
Env: "test",
},
});
variables:
example:
Fn::Invoke:
Function: aws:networkmanager:getLinks
Arguments:
globalNetworkId: ${var.global_network_id}
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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: aws:networkmanager/getLinks:getLinks
Arguments:
# Arguments dictionary
The following arguments are supported:
- Global
Network stringId The ID of the Global Network of the links to retrieve.
- Provider
Name string The link provider to retrieve.
- Site
Id string The ID of the site of the links to retrieve.
- Dictionary<string, string>
Restricts the list to the links with these tags.
- Type string
The link type to retrieve.
- Global
Network stringId The ID of the Global Network of the links to retrieve.
- Provider
Name string The link provider to retrieve.
- Site
Id string The ID of the site of the links to retrieve.
- map[string]string
Restricts the list to the links with these tags.
- Type string
The link type to retrieve.
- global
Network StringId The ID of the Global Network of the links to retrieve.
- provider
Name String The link provider to retrieve.
- site
Id String The ID of the site of the links to retrieve.
- Map<String,String>
Restricts the list to the links with these tags.
- type String
The link type to retrieve.
- global
Network stringId The ID of the Global Network of the links to retrieve.
- provider
Name string The link provider to retrieve.
- site
Id string The ID of the site of the links to retrieve.
- {[key: string]: string}
Restricts the list to the links with these tags.
- type string
The link type to retrieve.
- global_
network_ strid The ID of the Global Network of the links to retrieve.
- provider_
name str The link provider to retrieve.
- site_
id str The ID of the site of the links to retrieve.
- Mapping[str, str]
Restricts the list to the links with these tags.
- type str
The link type to retrieve.
- global
Network StringId The ID of the Global Network of the links to retrieve.
- provider
Name String The link provider to retrieve.
- site
Id String The ID of the site of the links to retrieve.
- Map<String>
Restricts the list to the links with these tags.
- type String
The link type to retrieve.
getLinks Result
The following output properties are available:
- Global
Network stringId - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
The IDs of the links.
- Provider
Name string - Site
Id string - Dictionary<string, string>
- Type string
- Global
Network stringId - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
The IDs of the links.
- Provider
Name string - Site
Id string - map[string]string
- Type string
- global
Network StringId - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
The IDs of the links.
- provider
Name String - site
Id String - Map<String,String>
- type String
- global
Network stringId - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
The IDs of the links.
- provider
Name string - site
Id string - {[key: string]: string}
- type string
- global_
network_ strid - id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
The IDs of the links.
- provider_
name str - site_
id str - Mapping[str, str]
- type str
- global
Network StringId - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
The IDs of the links.
- provider
Name String - site
Id String - Map<String>
- type String
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.