GetSite

Provides details about an Outposts Site.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Outposts.GetSite.InvokeAsync(new Aws.Outposts.GetSiteArgs
        {
            Name = "example",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/outposts"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "example"
        _, err := outposts.GetSite(ctx, &outposts.GetSiteArgs{
            Name: &opt0,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.outposts.get_site(name="example")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.outposts.getSite({
    name: "example",
}, { async: true }));

Using GetSite

function getSite(args: GetSiteArgs, opts?: InvokeOptions): Promise<GetSiteResult>
function  get_site(id=None, name=None, opts=None)
func GetSite(ctx *Context, args *GetSiteArgs, opts ...InvokeOption) (*GetSiteResult, error)
public static class GetSite {
    public static Task<GetSiteResult> InvokeAsync(GetSiteArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Id string

Identifier of the Site.

Name string

Name of the Site.

Id string

Identifier of the Site.

Name string

Name of the Site.

id string

Identifier of the Site.

name string

Name of the Site.

id str

Identifier of the Site.

name str

Name of the Site.

GetSite Result

The following output properties are available:

AccountId string

AWS Account identifier.

Description string

Description.

Id string
Name string
AccountId string

AWS Account identifier.

Description string

Description.

Id string
Name string
accountId string

AWS Account identifier.

description string

Description.

id string
name string
account_id str

AWS Account identifier.

description str

Description.

id str
name str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.