AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.11.0 published on Wednesday, Aug 17, 2022 by Pulumi

getGlobalNetwork

Retrieve information about a global network.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.NetworkManager.GetGlobalNetwork.Invoke(new()
    {
        GlobalNetworkId = @var.Global_network_id,
    });

});
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.LookupGlobalNetwork(ctx, &networkmanager.LookupGlobalNetworkArgs{
			GlobalNetworkId: _var.Global_network_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetGlobalNetworkArgs;
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.getGlobalNetwork(GetGlobalNetworkArgs.builder()
            .globalNetworkId(var_.global_network_id())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.networkmanager.get_global_network(global_network_id=var["global_network_id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.networkmanager.getGlobalNetwork({
    globalNetworkId: _var.global_network_id,
});
variables:
  example:
    Fn::Invoke:
      Function: aws:networkmanager:getGlobalNetwork
      Arguments:
        globalNetworkId: ${var.global_network_id}

Using getGlobalNetwork

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 getGlobalNetwork(args: GetGlobalNetworkArgs, opts?: InvokeOptions): Promise<GetGlobalNetworkResult>
function getGlobalNetworkOutput(args: GetGlobalNetworkOutputArgs, opts?: InvokeOptions): Output<GetGlobalNetworkResult>
def get_global_network(global_network_id: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       opts: Optional[InvokeOptions] = None) -> GetGlobalNetworkResult
def get_global_network_output(global_network_id: Optional[pulumi.Input[str]] = None,
                       tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetGlobalNetworkResult]
func LookupGlobalNetwork(ctx *Context, args *LookupGlobalNetworkArgs, opts ...InvokeOption) (*LookupGlobalNetworkResult, error)
func LookupGlobalNetworkOutput(ctx *Context, args *LookupGlobalNetworkOutputArgs, opts ...InvokeOption) LookupGlobalNetworkResultOutput

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

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

The following arguments are supported:

GlobalNetworkId string

The id of the specific global network to retrieve.

Tags Dictionary<string, string>

A map of resource tags.

GlobalNetworkId string

The id of the specific global network to retrieve.

Tags map[string]string

A map of resource tags.

globalNetworkId String

The id of the specific global network to retrieve.

tags Map<String,String>

A map of resource tags.

globalNetworkId string

The id of the specific global network to retrieve.

tags {[key: string]: string}

A map of resource tags.

global_network_id str

The id of the specific global network to retrieve.

tags Mapping[str, str]

A map of resource tags.

globalNetworkId String

The id of the specific global network to retrieve.

tags Map<String>

A map of resource tags.

getGlobalNetwork Result

The following output properties are available:

Arn string

The ARN of the global network.

Description string

The description of the global network.

GlobalNetworkId string
Id string

The provider-assigned unique ID for this managed resource.

Tags Dictionary<string, string>

A map of resource tags.

Arn string

The ARN of the global network.

Description string

The description of the global network.

GlobalNetworkId string
Id string

The provider-assigned unique ID for this managed resource.

Tags map[string]string

A map of resource tags.

arn String

The ARN of the global network.

description String

The description of the global network.

globalNetworkId String
id String

The provider-assigned unique ID for this managed resource.

tags Map<String,String>

A map of resource tags.

arn string

The ARN of the global network.

description string

The description of the global network.

globalNetworkId string
id string

The provider-assigned unique ID for this managed resource.

tags {[key: string]: string}

A map of resource tags.

arn str

The ARN of the global network.

description str

The description of the global network.

global_network_id str
id str

The provider-assigned unique ID for this managed resource.

tags Mapping[str, str]

A map of resource tags.

arn String

The ARN of the global network.

description String

The description of the global network.

globalNetworkId String
id String

The provider-assigned unique ID for this managed resource.

tags Map<String>

A map of resource tags.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.