AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getGlobalNetworks

Retrieve information about global networks.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.NetworkManager.GetGlobalNetworks.InvokeAsync(new Aws.NetworkManager.GetGlobalNetworksArgs
        {
            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.GetGlobalNetworks(ctx, &networkmanager.GetGlobalNetworksArgs{
			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.getGlobalNetworks(GetGlobalNetworksArgs.builder()
            .tags(Map.of("Env", "test"))
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.networkmanager.get_global_networks(tags={
    "Env": "test",
})
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.networkmanager.getGlobalNetworks({
    tags: {
        Env: "test",
    },
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:networkmanager:getGlobalNetworks
      Arguments:
        tags:
          Env: test

Using getGlobalNetworks

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 getGlobalNetworks(args: GetGlobalNetworksArgs, opts?: InvokeOptions): Promise<GetGlobalNetworksResult>
function getGlobalNetworksOutput(args: GetGlobalNetworksOutputArgs, opts?: InvokeOptions): Output<GetGlobalNetworksResult>
def get_global_networks(tags: Optional[Mapping[str, str]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetGlobalNetworksResult
def get_global_networks_output(tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetGlobalNetworksResult]
func GetGlobalNetworks(ctx *Context, args *GetGlobalNetworksArgs, opts ...InvokeOption) (*GetGlobalNetworksResult, error)
func GetGlobalNetworksOutput(ctx *Context, args *GetGlobalNetworksOutputArgs, opts ...InvokeOption) GetGlobalNetworksResultOutput

> Note: This function is named GetGlobalNetworks in the Go SDK.

public static class GetGlobalNetworks 
{
    public static Task<GetGlobalNetworksResult> InvokeAsync(GetGlobalNetworksArgs args, InvokeOptions? opts = null)
    public static Output<GetGlobalNetworksResult> Invoke(GetGlobalNetworksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGlobalNetworksResult> getGlobalNetworks(GetGlobalNetworksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:networkmanager/getGlobalNetworks:getGlobalNetworks
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Tags Dictionary<string, string>

Restricts the list to the global networks with these tags.

Tags map[string]string

Restricts the list to the global networks with these tags.

tags Map<String,String>

Restricts the list to the global networks with these tags.

tags {[key: string]: string}

Restricts the list to the global networks with these tags.

tags Mapping[str, str]

Restricts the list to the global networks with these tags.

tags Map<String>

Restricts the list to the global networks with these tags.

getGlobalNetworks Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

The IDs of the global networks.

Tags Dictionary<string, string>
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

The IDs of the global networks.

Tags map[string]string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

The IDs of the global networks.

tags Map<String,String>
id string

The provider-assigned unique ID for this managed resource.

ids string[]

The IDs of the global networks.

tags {[key: string]: string}
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

The IDs of the global networks.

tags Mapping[str, str]
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

The IDs of the global networks.

tags Map<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.