AWS Classic

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

getAssets

Information about hardware assets in an Outpost.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Outposts.GetAssets.InvokeAsync(new Aws.Outposts.GetAssetsArgs
        {
            Arn = data.Aws_outposts_outpost.Example.Arn,
        }));
    }

}
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.GetAssets(ctx, &outposts.GetAssetsArgs{
			Arn: data.Aws_outposts_outpost.Example.Arn,
		}, 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.getAssets(GetAssetsArgs.builder()
            .arn(data.aws_outposts_outpost().example().arn())
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.outposts.get_assets(arn=data["aws_outposts_outpost"]["example"]["arn"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.outposts.getAssets({
    arn: data.aws_outposts_outpost.example.arn,
});
variables:
  example:
    Fn::Invoke:
      Function: aws:outposts:getAssets
      Arguments:
        arn: ${data.aws_outposts_outpost.example.arn}

Using getAssets

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 getAssets(args: GetAssetsArgs, opts?: InvokeOptions): Promise<GetAssetsResult>
function getAssetsOutput(args: GetAssetsOutputArgs, opts?: InvokeOptions): Output<GetAssetsResult>
def get_assets(arn: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetAssetsResult
def get_assets_output(arn: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetAssetsResult]
func GetAssets(ctx *Context, args *GetAssetsArgs, opts ...InvokeOption) (*GetAssetsResult, error)
func GetAssetsOutput(ctx *Context, args *GetAssetsOutputArgs, opts ...InvokeOption) GetAssetsResultOutput

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

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

The following arguments are supported:

Arn string

Outpost ARN.

Arn string

Outpost ARN.

arn String

Outpost ARN.

arn string

Outpost ARN.

arn str

Outpost ARN.

arn String

Outpost ARN.

getAssets Result

The following output properties are available:

Arn string
AssetIds List<string>

A list of all the subnet ids found. This data source will fail if none are found.

Id string

The provider-assigned unique ID for this managed resource.

Arn string
AssetIds []string

A list of all the subnet ids found. This data source will fail if none are found.

Id string

The provider-assigned unique ID for this managed resource.

arn String
assetIds List<String>

A list of all the subnet ids found. This data source will fail if none are found.

id String

The provider-assigned unique ID for this managed resource.

arn string
assetIds string[]

A list of all the subnet ids found. This data source will fail if none are found.

id string

The provider-assigned unique ID for this managed resource.

arn str
asset_ids Sequence[str]

A list of all the subnet ids found. This data source will fail if none are found.

id str

The provider-assigned unique ID for this managed resource.

arn String
assetIds List<String>

A list of all the subnet ids found. This data source will fail if none are found.

id String

The provider-assigned unique ID for this managed resource.

Package Details

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

This Pulumi package is based on the aws Terraform Provider.