Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.networkmanager.getLinks
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
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)
// 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 - ID of the Global Network of the links to retrieve.
- Provider
Name string - Link provider to retrieve.
- Site
Id 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.
- Global
Network stringId - ID of the Global Network of the links to retrieve.
- Provider
Name string - Link provider to retrieve.
- Site
Id 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.
- global
Network StringId - ID of the Global Network of the links to retrieve.
- provider
Name String - Link provider to retrieve.
- site
Id 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.
- global
Network stringId - ID of the Global Network of the links to retrieve.
- provider
Name string - Link provider to retrieve.
- site
Id 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.
- global
Network StringId - ID of the Global Network of the links to retrieve.
- provider
Name String - Link provider to retrieve.
- site
Id 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:
- Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- 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
- 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>
- 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[]
- 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]
- 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>
- IDs of the links.
- provider
Name String - site
Id 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
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi