AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

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/v5/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(OutpostsFunctions.getOutpost(GetOutpostArgs.builder()
            .name("example")
            .build()));

    }
}
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",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:outposts:getOutpost
      Arguments:
        name: example

Using getOutpost

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 getOutpost(args: GetOutpostArgs, opts?: InvokeOptions): Promise<GetOutpostResult>
function getOutpostOutput(args: GetOutpostOutputArgs, opts?: InvokeOptions): Output<GetOutpostResult>
def get_outpost(arn: Optional[str] = None,
                id: Optional[str] = None,
                name: Optional[str] = None,
                owner_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetOutpostResult
def get_outpost_output(arn: Optional[pulumi.Input[str]] = None,
                id: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                owner_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetOutpostResult]
func GetOutpost(ctx *Context, args *GetOutpostArgs, opts ...InvokeOption) (*GetOutpostResult, error)
func GetOutpostOutput(ctx *Context, args *GetOutpostOutputArgs, opts ...InvokeOption) GetOutpostResultOutput

> Note: This function is named GetOutpost in the Go SDK.

public static class GetOutpost 
{
    public static Task<GetOutpostResult> InvokeAsync(GetOutpostArgs args, InvokeOptions? opts = null)
    public static Output<GetOutpostResult> Invoke(GetOutpostInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOutpostResult> getOutpost(GetOutpostArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:outposts/getOutpost:getOutpost
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Arn string

Amazon Resource Name (ARN).

Id string

Identifier of the Outpost.

Name string

Name of the Outpost.

OwnerId string

AWS Account identifier of the Outpost owner.

Arn string

Amazon Resource Name (ARN).

Id string

Identifier of the Outpost.

Name string

Name of the Outpost.

OwnerId string

AWS Account identifier of the Outpost owner.

arn String

Amazon Resource Name (ARN).

id String

Identifier of the Outpost.

name String

Name of the Outpost.

ownerId String

AWS Account identifier of the Outpost owner.

arn string

Amazon Resource Name (ARN).

id string

Identifier of the Outpost.

name string

Name of the Outpost.

ownerId string

AWS Account identifier of the Outpost owner.

arn str

Amazon Resource Name (ARN).

id str

Identifier of the Outpost.

name str

Name of the Outpost.

owner_id str

AWS Account identifier of the Outpost owner.

arn String

Amazon Resource Name (ARN).

id String

Identifier of the Outpost.

name String

Name of the Outpost.

ownerId String

AWS Account identifier of the Outpost owner.

getOutpost Result

The following output properties are available:

Arn string
AvailabilityZone string

Availability Zone name.

AvailabilityZoneId string

Availability Zone identifier.

Description string

Description.

Id string
Name string
OwnerId string
SiteId string

Site identifier.

Arn string
AvailabilityZone string

Availability Zone name.

AvailabilityZoneId string

Availability Zone identifier.

Description string

Description.

Id string
Name string
OwnerId string
SiteId string

Site identifier.

arn String
availabilityZone String

Availability Zone name.

availabilityZoneId String

Availability Zone identifier.

description String

Description.

id String
name String
ownerId String
siteId String

Site identifier.

arn string
availabilityZone string

Availability Zone name.

availabilityZoneId string

Availability Zone identifier.

description string

Description.

id string
name string
ownerId string
siteId string

Site identifier.

arn str
availability_zone str

Availability Zone name.

availability_zone_id str

Availability Zone identifier.

description str

Description.

id str
name str
owner_id str
site_id str

Site identifier.

arn String
availabilityZone String

Availability Zone name.

availabilityZoneId String

Availability Zone identifier.

description String

Description.

id String
name String
ownerId String
siteId String

Site identifier.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.