AWS v6.64.0 published on Friday, Dec 6, 2024 by Pulumi
aws.outposts.getOutposts
Explore with Pulumi AI
Provides details about multiple Outposts.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.outposts.getOutposts({
siteId: id,
});
import pulumi
import pulumi_aws as aws
example = aws.outposts.get_outposts(site_id=id)
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.GetOutposts(ctx, &outposts.GetOutpostsArgs{
SiteId: pulumi.StringRef(id),
}, 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.GetOutposts.Invoke(new()
{
SiteId = id,
});
});
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.GetOutpostsArgs;
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.getOutposts(GetOutpostsArgs.builder()
.siteId(id)
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:outposts:getOutposts
Arguments:
siteId: ${id}
Using getOutposts
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 getOutposts(args: GetOutpostsArgs, opts?: InvokeOptions): Promise<GetOutpostsResult>
function getOutpostsOutput(args: GetOutpostsOutputArgs, opts?: InvokeOptions): Output<GetOutpostsResult>
def get_outposts(availability_zone: Optional[str] = None,
availability_zone_id: Optional[str] = None,
owner_id: Optional[str] = None,
site_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOutpostsResult
def get_outposts_output(availability_zone: Optional[pulumi.Input[str]] = None,
availability_zone_id: Optional[pulumi.Input[str]] = None,
owner_id: Optional[pulumi.Input[str]] = None,
site_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOutpostsResult]
func GetOutposts(ctx *Context, args *GetOutpostsArgs, opts ...InvokeOption) (*GetOutpostsResult, error)
func GetOutpostsOutput(ctx *Context, args *GetOutpostsOutputArgs, opts ...InvokeOption) GetOutpostsResultOutput
> Note: This function is named GetOutposts
in the Go SDK.
public static class GetOutposts
{
public static Task<GetOutpostsResult> InvokeAsync(GetOutpostsArgs args, InvokeOptions? opts = null)
public static Output<GetOutpostsResult> Invoke(GetOutpostsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOutpostsResult> getOutposts(GetOutpostsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:outposts/getOutposts:getOutposts
arguments:
# arguments dictionary
The following arguments are supported:
- Availability
Zone string - Availability Zone name.
- Availability
Zone stringId - Availability Zone identifier.
- Owner
Id string - AWS Account identifier of the Outpost owner.
- Site
Id string - Site identifier.
- Availability
Zone string - Availability Zone name.
- Availability
Zone stringId - Availability Zone identifier.
- Owner
Id string - AWS Account identifier of the Outpost owner.
- Site
Id string - Site identifier.
- availability
Zone String - Availability Zone name.
- availability
Zone StringId - Availability Zone identifier.
- owner
Id String - AWS Account identifier of the Outpost owner.
- site
Id String - Site identifier.
- availability
Zone string - Availability Zone name.
- availability
Zone stringId - Availability Zone identifier.
- owner
Id string - AWS Account identifier of the Outpost owner.
- site
Id string - Site identifier.
- availability_
zone str - Availability Zone name.
- availability_
zone_ strid - Availability Zone identifier.
- owner_
id str - AWS Account identifier of the Outpost owner.
- site_
id str - Site identifier.
- availability
Zone String - Availability Zone name.
- availability
Zone StringId - Availability Zone identifier.
- owner
Id String - AWS Account identifier of the Outpost owner.
- site
Id String - Site identifier.
getOutposts Result
The following output properties are available:
- Arns List<string>
- Set of Amazon Resource Names (ARNs).
- Availability
Zone string - Availability
Zone stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Set of identifiers.
- Owner
Id string - Site
Id string
- Arns []string
- Set of Amazon Resource Names (ARNs).
- Availability
Zone string - Availability
Zone stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Set of identifiers.
- Owner
Id string - Site
Id string
- arns List<String>
- Set of Amazon Resource Names (ARNs).
- availability
Zone String - availability
Zone StringId - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- Set of identifiers.
- owner
Id String - site
Id String
- arns string[]
- Set of Amazon Resource Names (ARNs).
- availability
Zone string - availability
Zone stringId - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- Set of identifiers.
- owner
Id string - site
Id string
- arns Sequence[str]
- Set of Amazon Resource Names (ARNs).
- availability_
zone str - availability_
zone_ strid - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- Set of identifiers.
- owner_
id str - site_
id str
- arns List<String>
- Set of Amazon Resource Names (ARNs).
- availability
Zone String - availability
Zone StringId - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- Set of identifiers.
- owner
Id String - site
Id String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.