GetOutpost
Provides details about an Outposts Outpost.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Outposts.GetOutpost.InvokeAsync(new Aws.Outposts.GetOutpostArgs
{
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.GetOutpost(ctx, &outposts.GetOutpostArgs{
Name: &opt0,
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.outposts.get_outpost(name="example")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = pulumi.output(aws.outposts.getOutpost({
name: "example",
}, { async: true }));Using GetOutpost
function getOutpost(args: GetOutpostArgs, opts?: InvokeOptions): Promise<GetOutpostResult>function get_outpost(id=None, name=None, opts=None)func GetOutpost(ctx *Context, args *GetOutpostArgs, opts ...InvokeOption) (*GetOutpostResult, error)public static class GetOutpost {
public static Task<GetOutpostResult> InvokeAsync(GetOutpostArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetOutpost Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.