AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.networkmanager.getLink
Explore with Pulumi AI
Retrieve information about a link.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.networkmanager.getLink({
globalNetworkId: globalNetworkId,
linkId: linkId,
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.get_link(global_network_id=global_network_id,
link_id=link_id)
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.LookupLink(ctx, &networkmanager.LookupLinkArgs{
GlobalNetworkId: globalNetworkId,
LinkId: linkId,
}, 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.GetLink.Invoke(new()
{
GlobalNetworkId = globalNetworkId,
LinkId = linkId,
});
});
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.GetLinkArgs;
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.getLink(GetLinkArgs.builder()
.globalNetworkId(globalNetworkId)
.linkId(linkId)
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:networkmanager:getLink
Arguments:
globalNetworkId: ${globalNetworkId}
linkId: ${linkId}
Using getLink
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 getLink(args: GetLinkArgs, opts?: InvokeOptions): Promise<GetLinkResult>
function getLinkOutput(args: GetLinkOutputArgs, opts?: InvokeOptions): Output<GetLinkResult>
def get_link(global_network_id: Optional[str] = None,
link_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetLinkResult
def get_link_output(global_network_id: Optional[pulumi.Input[str]] = None,
link_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLinkResult]
func LookupLink(ctx *Context, args *LookupLinkArgs, opts ...InvokeOption) (*LookupLinkResult, error)
func LookupLinkOutput(ctx *Context, args *LookupLinkOutputArgs, opts ...InvokeOption) LookupLinkResultOutput
> Note: This function is named LookupLink
in the Go SDK.
public static class GetLink
{
public static Task<GetLinkResult> InvokeAsync(GetLinkArgs args, InvokeOptions? opts = null)
public static Output<GetLinkResult> Invoke(GetLinkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLinkResult> getLink(GetLinkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:networkmanager/getLink:getLink
arguments:
# arguments dictionary
The following arguments are supported:
- Global
Network stringId - ID of the Global Network of the link to retrieve.
- Link
Id string - ID of the specific link to retrieve.
- Dictionary<string, string>
- Key-value tags for the link.
- Global
Network stringId - ID of the Global Network of the link to retrieve.
- Link
Id string - ID of the specific link to retrieve.
- map[string]string
- Key-value tags for the link.
- global
Network StringId - ID of the Global Network of the link to retrieve.
- link
Id String - ID of the specific link to retrieve.
- Map<String,String>
- Key-value tags for the link.
- global
Network stringId - ID of the Global Network of the link to retrieve.
- link
Id string - ID of the specific link to retrieve.
- {[key: string]: string}
- Key-value tags for the link.
- global_
network_ strid - ID of the Global Network of the link to retrieve.
- link_
id str - ID of the specific link to retrieve.
- Mapping[str, str]
- Key-value tags for the link.
- global
Network StringId - ID of the Global Network of the link to retrieve.
- link
Id String - ID of the specific link to retrieve.
- Map<String>
- Key-value tags for the link.
getLink Result
The following output properties are available:
- Arn string
- ARN of the link.
- Bandwidths
List<Get
Link Bandwidth> - Upload speed and download speed of the link as documented below
- Description string
- Description of the link.
- Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id string - Provider
Name string - Provider of the link.
- Site
Id string - ID of the site.
- Dictionary<string, string>
- Key-value tags for the link.
- Type string
- Type of the link.
- Arn string
- ARN of the link.
- Bandwidths
[]Get
Link Bandwidth - Upload speed and download speed of the link as documented below
- Description string
- Description of the link.
- Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id string - Provider
Name string - Provider of the link.
- Site
Id string - ID of the site.
- map[string]string
- Key-value tags for the link.
- Type string
- Type of the link.
- arn String
- ARN of the link.
- bandwidths
List<Get
Link Bandwidth> - Upload speed and download speed of the link as documented below
- description String
- Description of the link.
- global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- link
Id String - provider
Name String - Provider of the link.
- site
Id String - ID of the site.
- Map<String,String>
- Key-value tags for the link.
- type String
- Type of the link.
- arn string
- ARN of the link.
- bandwidths
Get
Link Bandwidth[] - Upload speed and download speed of the link as documented below
- description string
- Description of the link.
- global
Network stringId - id string
- The provider-assigned unique ID for this managed resource.
- link
Id string - provider
Name string - Provider of the link.
- site
Id string - ID of the site.
- {[key: string]: string}
- Key-value tags for the link.
- type string
- Type of the link.
- arn str
- ARN of the link.
- bandwidths
Sequence[Get
Link Bandwidth] - Upload speed and download speed of the link as documented below
- description str
- Description of the link.
- global_
network_ strid - id str
- The provider-assigned unique ID for this managed resource.
- link_
id str - provider_
name str - Provider of the link.
- site_
id str - ID of the site.
- Mapping[str, str]
- Key-value tags for the link.
- type str
- Type of the link.
- arn String
- ARN of the link.
- bandwidths List<Property Map>
- Upload speed and download speed of the link as documented below
- description String
- Description of the link.
- global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- link
Id String - provider
Name String - Provider of the link.
- site
Id String - ID of the site.
- Map<String>
- Key-value tags for the link.
- type String
- Type of the link.
Supporting Types
GetLinkBandwidth
- Download
Speed int - Download speed in Mbps.
- Upload
Speed int - Upload speed in Mbps.
- Download
Speed int - Download speed in Mbps.
- Upload
Speed int - Upload speed in Mbps.
- download
Speed Integer - Download speed in Mbps.
- upload
Speed Integer - Upload speed in Mbps.
- download
Speed number - Download speed in Mbps.
- upload
Speed number - Upload speed in Mbps.
- download_
speed int - Download speed in Mbps.
- upload_
speed int - Upload speed in Mbps.
- download
Speed Number - Download speed in Mbps.
- upload
Speed Number - Upload speed in Mbps.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.