get Outpost
Provides details about an Outposts Outpost.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.outposts.getOutpost({
name: "example",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.outposts.get_outpost(name="example")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Outposts.GetOutpost.Invoke(new()
{
Name = "example",
});
});
Content copied to clipboard
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.GetOutpost(ctx, &outposts.GetOutpostArgs{
Name: pulumi.StringRef("example"),
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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.GetOutpostArgs;
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.getOutpost(GetOutpostArgs.builder()
.name("example")
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: aws:outposts:getOutpost
arguments:
name: example
Content copied to clipboard
Return
A collection of values returned by getOutpost.
Parameters
argument
A collection of arguments for invoking getOutpost.
suspend fun getOutpost(arn: String? = null, id: String? = null, name: String? = null, ownerId: String? = null, tags: Map<String, String>? = null): GetOutpostResult
Return
A collection of values returned by getOutpost.
Parameters
arn
ARN.
id
Identifier of the Outpost.
name
Name of the Outpost.
owner Id
AWS Account identifier of the Outpost owner.
tags
The Outpost tags.
See also
Return
A collection of values returned by getOutpost.
Parameters
argument
Builder for com.pulumi.aws.outposts.kotlin.inputs.GetOutpostPlainArgs.