1. Packages
  2. AWS
  3. API Docs
  4. networkmanager
  5. getGlobalNetwork
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.networkmanager.getGlobalNetwork

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Retrieve information about a global network.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.networkmanager.getGlobalNetwork({
        globalNetworkId: globalNetworkId,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.get_global_network(global_network_id=global_network_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.LookupGlobalNetwork(ctx, &networkmanager.LookupGlobalNetworkArgs{
    			GlobalNetworkId: globalNetworkId,
    		}, 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.GetGlobalNetwork.Invoke(new()
        {
            GlobalNetworkId = globalNetworkId,
        });
    
    });
    
    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(globalNetworkId)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:networkmanager:getGlobalNetwork
          Arguments:
            globalNetworkId: ${globalNetworkId}
    

    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
    ID of the specific global network to retrieve.
    Tags Dictionary<string, string>
    Map of resource tags.
    GlobalNetworkId string
    ID of the specific global network to retrieve.
    Tags map[string]string
    Map of resource tags.
    globalNetworkId String
    ID of the specific global network to retrieve.
    tags Map<String,String>
    Map of resource tags.
    globalNetworkId string
    ID of the specific global network to retrieve.
    tags {[key: string]: string}
    Map of resource tags.
    global_network_id str
    ID of the specific global network to retrieve.
    tags Mapping[str, str]
    Map of resource tags.
    globalNetworkId String
    ID of the specific global network to retrieve.
    tags Map<String>
    Map of resource tags.

    getGlobalNetwork Result

    The following output properties are available:

    Arn string
    ARN of the global network.
    Description string
    Description of the global network.
    GlobalNetworkId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags Dictionary<string, string>
    Map of resource tags.
    Arn string
    ARN of the global network.
    Description string
    Description of the global network.
    GlobalNetworkId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags map[string]string
    Map of resource tags.
    arn String
    ARN of the global network.
    description String
    Description of the global network.
    globalNetworkId String
    id String
    The provider-assigned unique ID for this managed resource.
    tags Map<String,String>
    Map of resource tags.
    arn string
    ARN of the global network.
    description string
    Description of the global network.
    globalNetworkId string
    id string
    The provider-assigned unique ID for this managed resource.
    tags {[key: string]: string}
    Map of resource tags.
    arn str
    ARN of the global network.
    description str
    Description of the global network.
    global_network_id str
    id str
    The provider-assigned unique ID for this managed resource.
    tags Mapping[str, str]
    Map of resource tags.
    arn String
    ARN of the global network.
    description String
    Description of the global network.
    globalNetworkId String
    id String
    The provider-assigned unique ID for this managed resource.
    tags Map<String>
    Map of resource tags.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi