AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.networkmanager.getConnections
Explore with Pulumi AI
Retrieve information about connections.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.networkmanager.getConnections({
    globalNetworkId: globalNetworkId,
    tags: {
        Env: "test",
    },
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.get_connections(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.GetConnections(ctx, &networkmanager.GetConnectionsArgs{
			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.GetConnections.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.GetConnectionsArgs;
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.getConnections(GetConnectionsArgs.builder()
            .globalNetworkId(globalNetworkId)
            .tags(Map.of("Env", "test"))
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:networkmanager:getConnections
      arguments:
        globalNetworkId: ${globalNetworkId}
        tags:
          Env: test
Using getConnections
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 getConnections(args: GetConnectionsArgs, opts?: InvokeOptions): Promise<GetConnectionsResult>
function getConnectionsOutput(args: GetConnectionsOutputArgs, opts?: InvokeOptions): Output<GetConnectionsResult>def get_connections(device_id: Optional[str] = None,
                    global_network_id: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    opts: Optional[InvokeOptions] = None) -> GetConnectionsResult
def get_connections_output(device_id: Optional[pulumi.Input[str]] = None,
                    global_network_id: Optional[pulumi.Input[str]] = None,
                    tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetConnectionsResult]func GetConnections(ctx *Context, args *GetConnectionsArgs, opts ...InvokeOption) (*GetConnectionsResult, error)
func GetConnectionsOutput(ctx *Context, args *GetConnectionsOutputArgs, opts ...InvokeOption) GetConnectionsResultOutput> Note: This function is named GetConnections in the Go SDK.
public static class GetConnections 
{
    public static Task<GetConnectionsResult> InvokeAsync(GetConnectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectionsResult> Invoke(GetConnectionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConnectionsResult> getConnections(GetConnectionsArgs args, InvokeOptions options)
public static Output<GetConnectionsResult> getConnections(GetConnectionsArgs args, InvokeOptions options)
fn::invoke:
  function: aws:networkmanager/getConnections:getConnections
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GlobalNetwork stringId 
- ID of the Global Network of the connections to retrieve.
- DeviceId string
- ID of the device of the connections to retrieve.
- Dictionary<string, string>
- Restricts the list to the connections with these tags.
- GlobalNetwork stringId 
- ID of the Global Network of the connections to retrieve.
- DeviceId string
- ID of the device of the connections to retrieve.
- map[string]string
- Restricts the list to the connections with these tags.
- globalNetwork StringId 
- ID of the Global Network of the connections to retrieve.
- deviceId String
- ID of the device of the connections to retrieve.
- Map<String,String>
- Restricts the list to the connections with these tags.
- globalNetwork stringId 
- ID of the Global Network of the connections to retrieve.
- deviceId string
- ID of the device of the connections to retrieve.
- {[key: string]: string}
- Restricts the list to the connections with these tags.
- global_network_ strid 
- ID of the Global Network of the connections to retrieve.
- device_id str
- ID of the device of the connections to retrieve.
- Mapping[str, str]
- Restricts the list to the connections with these tags.
- globalNetwork StringId 
- ID of the Global Network of the connections to retrieve.
- deviceId String
- ID of the device of the connections to retrieve.
- Map<String>
- Restricts the list to the connections with these tags.
getConnections 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 connections.
- DeviceId string
- Dictionary<string, string>
- GlobalNetwork stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- IDs of the connections.
- DeviceId string
- map[string]string
- globalNetwork StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- IDs of the connections.
- deviceId String
- Map<String,String>
- globalNetwork stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- IDs of the connections.
- deviceId string
- {[key: string]: string}
- global_network_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- IDs of the connections.
- device_id str
- Mapping[str, str]
- globalNetwork StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- IDs of the connections.
- deviceId String
- Map<String>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.