1. Packages
  2. AWS
  3. API Docs
  4. networkmanager
  5. getSite
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.networkmanager.getSite

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Retrieve information about a site.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.networkmanager.getSite({
        globalNetworkId: globalNetworkId,
        siteId: siteId,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.get_site(global_network_id=global_network_id,
        site_id=site_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.LookupSite(ctx, &networkmanager.LookupSiteArgs{
    			GlobalNetworkId: globalNetworkId,
    			SiteId:          siteId,
    		}, 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.GetSite.Invoke(new()
        {
            GlobalNetworkId = globalNetworkId,
            SiteId = siteId,
        });
    
    });
    
    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.GetSiteArgs;
    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.getSite(GetSiteArgs.builder()
                .globalNetworkId(globalNetworkId)
                .siteId(siteId)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:networkmanager:getSite
          Arguments:
            globalNetworkId: ${globalNetworkId}
            siteId: ${siteId}
    

    Using getSite

    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 getSite(args: GetSiteArgs, opts?: InvokeOptions): Promise<GetSiteResult>
    function getSiteOutput(args: GetSiteOutputArgs, opts?: InvokeOptions): Output<GetSiteResult>
    def get_site(global_network_id: Optional[str] = None,
                 site_id: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 opts: Optional[InvokeOptions] = None) -> GetSiteResult
    def get_site_output(global_network_id: Optional[pulumi.Input[str]] = None,
                 site_id: Optional[pulumi.Input[str]] = None,
                 tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetSiteResult]
    func LookupSite(ctx *Context, args *LookupSiteArgs, opts ...InvokeOption) (*LookupSiteResult, error)
    func LookupSiteOutput(ctx *Context, args *LookupSiteOutputArgs, opts ...InvokeOption) LookupSiteResultOutput

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

    public static class GetSite 
    {
        public static Task<GetSiteResult> InvokeAsync(GetSiteArgs args, InvokeOptions? opts = null)
        public static Output<GetSiteResult> Invoke(GetSiteInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSiteResult> getSite(GetSiteArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:networkmanager/getSite:getSite
      arguments:
        # arguments dictionary

    The following arguments are supported:

    GlobalNetworkId string
    ID of the Global Network of the site to retrieve.
    SiteId string
    ID of the specific site to retrieve.
    Tags Dictionary<string, string>
    Key-value tags for the Site.
    GlobalNetworkId string
    ID of the Global Network of the site to retrieve.
    SiteId string
    ID of the specific site to retrieve.
    Tags map[string]string
    Key-value tags for the Site.
    globalNetworkId String
    ID of the Global Network of the site to retrieve.
    siteId String
    ID of the specific site to retrieve.
    tags Map<String,String>
    Key-value tags for the Site.
    globalNetworkId string
    ID of the Global Network of the site to retrieve.
    siteId string
    ID of the specific site to retrieve.
    tags {[key: string]: string}
    Key-value tags for the Site.
    global_network_id str
    ID of the Global Network of the site to retrieve.
    site_id str
    ID of the specific site to retrieve.
    tags Mapping[str, str]
    Key-value tags for the Site.
    globalNetworkId String
    ID of the Global Network of the site to retrieve.
    siteId String
    ID of the specific site to retrieve.
    tags Map<String>
    Key-value tags for the Site.

    getSite Result

    The following output properties are available:

    Arn string
    ARN of the site.
    Description string
    Description of the site.
    GlobalNetworkId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Locations List<GetSiteLocation>
    Site location as documented below.
    SiteId string
    Tags Dictionary<string, string>
    Key-value tags for the Site.
    Arn string
    ARN of the site.
    Description string
    Description of the site.
    GlobalNetworkId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Locations []GetSiteLocation
    Site location as documented below.
    SiteId string
    Tags map[string]string
    Key-value tags for the Site.
    arn String
    ARN of the site.
    description String
    Description of the site.
    globalNetworkId String
    id String
    The provider-assigned unique ID for this managed resource.
    locations List<GetSiteLocation>
    Site location as documented below.
    siteId String
    tags Map<String,String>
    Key-value tags for the Site.
    arn string
    ARN of the site.
    description string
    Description of the site.
    globalNetworkId string
    id string
    The provider-assigned unique ID for this managed resource.
    locations GetSiteLocation[]
    Site location as documented below.
    siteId string
    tags {[key: string]: string}
    Key-value tags for the Site.
    arn str
    ARN of the site.
    description str
    Description of the site.
    global_network_id str
    id str
    The provider-assigned unique ID for this managed resource.
    locations Sequence[GetSiteLocation]
    Site location as documented below.
    site_id str
    tags Mapping[str, str]
    Key-value tags for the Site.
    arn String
    ARN of the site.
    description String
    Description of the site.
    globalNetworkId String
    id String
    The provider-assigned unique ID for this managed resource.
    locations List<Property Map>
    Site location as documented below.
    siteId String
    tags Map<String>
    Key-value tags for the Site.

    Supporting Types

    GetSiteLocation

    Address string
    Address of the location.
    Latitude string
    Latitude of the location.
    Longitude string
    Longitude of the location.
    Address string
    Address of the location.
    Latitude string
    Latitude of the location.
    Longitude string
    Longitude of the location.
    address String
    Address of the location.
    latitude String
    Latitude of the location.
    longitude String
    Longitude of the location.
    address string
    Address of the location.
    latitude string
    Latitude of the location.
    longitude string
    Longitude of the location.
    address str
    Address of the location.
    latitude str
    Latitude of the location.
    longitude str
    Longitude of the location.
    address String
    Address of the location.
    latitude String
    Latitude of the location.
    longitude String
    Longitude of the location.

    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.60.0 published on Tuesday, Nov 19, 2024 by Pulumi