Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.networkmanager.getGlobalNetworks
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Retrieve information about global networks.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.networkmanager.getGlobalNetworks({
tags: {
Env: "test",
},
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.get_global_networks(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.GetGlobalNetworks(ctx, &networkmanager.GetGlobalNetworksArgs{
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.GetGlobalNetworks.Invoke(new()
{
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.GetGlobalNetworksArgs;
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.getGlobalNetworks(GetGlobalNetworksArgs.builder()
.tags(Map.of("Env", "test"))
.build());
}
}
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:
- Dictionary<string, string>
- Restricts the list to the global networks with these tags.
- map[string]string
- Restricts the list to the global networks with these tags.
- Map<String,String>
- Restricts the list to the global networks with these tags.
- {[key: string]: string}
- Restricts the list to the global networks with these tags.
- Mapping[str, str]
- Restricts the list to the global networks with these tags.
- Map<String>
- Restricts the list to the global networks with these tags.
getGlobalNetworks Result
The following output properties are available:
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi