AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.outposts.getSite
Explore with Pulumi AI
Provides details about an Outposts Site.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.outposts.getSite({
name: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.outposts.get_site(name="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/outposts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outposts.GetSite(ctx, &outposts.GetSiteArgs{
Name: pulumi.StringRef("example"),
}, 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.Outposts.GetSite.Invoke(new()
{
Name = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.outposts.OutpostsFunctions;
import com.pulumi.aws.outposts.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 = OutpostsFunctions.getSite(GetSiteArgs.builder()
.name("example")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:outposts:getSite
Arguments:
name: example
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(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSiteResult
def get_site_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSiteResult]
func GetSite(ctx *Context, args *GetSiteArgs, opts ...InvokeOption) (*GetSiteResult, error)
func GetSiteOutput(ctx *Context, args *GetSiteOutputArgs, opts ...InvokeOption) GetSiteResultOutput
> Note: This function is named GetSite
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:outposts/getSite:getSite
arguments:
# arguments dictionary
The following arguments are supported:
getSite Result
The following output properties are available:
- Account
Id string - AWS Account identifier.
- Description string
- Description.
- Id string
- Name string
- Account
Id string - AWS Account identifier.
- Description string
- Description.
- Id string
- Name string
- account
Id String - AWS Account identifier.
- description String
- Description.
- id String
- name String
- account
Id string - AWS Account identifier.
- description string
- Description.
- id string
- name string
- account_
id str - AWS Account identifier.
- description str
- Description.
- id str
- name str
- account
Id String - AWS Account identifier.
- description String
- Description.
- id String
- name String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.