AWS v6.64.0 published on Friday, Dec 6, 2024 by Pulumi
aws.outposts.getSites
Explore with Pulumi AI
Provides details about multiple Outposts Sites.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const all = aws.outposts.getSites({});
import pulumi
import pulumi_aws as aws
all = aws.outposts.get_sites()
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.GetSites(ctx, map[string]interface{}{}, 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 all = Aws.Outposts.GetSites.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.outposts.OutpostsFunctions;
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 all = OutpostsFunctions.getSites();
}
}
variables:
all:
fn::invoke:
Function: aws:outposts:getSites
Arguments: {}
Using getSites
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 getSites(opts?: InvokeOptions): Promise<GetSitesResult>
function getSitesOutput(opts?: InvokeOptions): Output<GetSitesResult>
def get_sites(opts: Optional[InvokeOptions] = None) -> GetSitesResult
def get_sites_output(opts: Optional[InvokeOptions] = None) -> Output[GetSitesResult]
func GetSites(ctx *Context, opts ...InvokeOption) (*GetSitesResult, error)
func GetSitesOutput(ctx *Context, opts ...InvokeOption) GetSitesResultOutput
> Note: This function is named GetSites
in the Go SDK.
public static class GetSites
{
public static Task<GetSitesResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetSitesResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetSitesResult> getSites(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:outposts/getSites:getSites
arguments:
# arguments dictionary
getSites 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.