AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.networkmanager.getGlobalNetwork
Explore with Pulumi AI
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:
- Global
Network stringId - ID of the specific global network to retrieve.
- Dictionary<string, string>
- Map of resource tags.
- Global
Network stringId - ID of the specific global network to retrieve.
- map[string]string
- Map of resource tags.
- global
Network StringId - ID of the specific global network to retrieve.
- Map<String,String>
- Map of resource tags.
- global
Network stringId - ID of the specific global network to retrieve.
- {[key: string]: string}
- Map of resource tags.
- global_
network_ strid - ID of the specific global network to retrieve.
- Mapping[str, str]
- Map of resource tags.
- global
Network StringId - ID of the specific global network to retrieve.
- 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.
- Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- Map of resource tags.
- Arn string
- ARN of the global network.
- Description string
- Description of the global network.
- Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- Map of resource tags.
- arn String
- ARN of the global network.
- description String
- Description of the global network.
- global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- Map of resource tags.
- arn string
- ARN of the global network.
- description string
- Description of the global network.
- global
Network stringId - id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- Map of resource tags.
- arn str
- ARN of the global network.
- description str
- Description of the global network.
- global_
network_ strid - id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- Map of resource tags.
- arn String
- ARN of the global network.
- description String
- Description of the global network.
- global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- 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.