mirror of https://github.com/pulumi/pulumi.git
9.7 KiB
9.7 KiB
title: "GetAsset" title_tag: "std.GetAsset" meta_desc: "Documentation for the std.GetAsset function with examples, input properties, output properties, and supporting types." layout: api no_edit_this_page: true
Using GetAsset
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 getAsset(args: GetAssetArgs, opts?: InvokeOptions): Promise<GetAssetResult>
function getAssetOutput(args: GetAssetOutputArgs, opts?: InvokeOptions): Output<GetAssetResult>
def get_asset(a: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetAssetResult
def get_asset_output(a: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAssetResult]
func GetAsset(ctx *Context, args *GetAssetArgs, opts ...InvokeOption) (*GetAssetResult, error)
func GetAssetOutput(ctx *Context, args *GetAssetOutputArgs, opts ...InvokeOption) GetAssetResultOutput
public static class GetAsset
{
public static Task<GetAssetResult> InvokeAsync(GetAssetArgs args, InvokeOptions? opts = null)
public static Output<GetAssetResult> Invoke(GetAssetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAssetResult> getAsset(GetAssetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: std:GetAsset
arguments:
# arguments dictionary
The following arguments are supported:
- A double
- A float64
- a Double
- a number
- a float
- a Number
GetAsset Result
The following output properties are available:
Package Details
- Repository
- std pulumi/pulumi-std
- License