Formats a list of strings according to the given format. Argument values which are lists are “zipped” together to produce a list of results.
Using formatlist
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 formatlist(args: FormatlistArgs, opts?: InvokeOptions): Promise<FormatlistResult>
function formatlistOutput(args: FormatlistOutputArgs, opts?: InvokeOptions): Output<FormatlistResult>def formatlist(args: Optional[Sequence[Any]] = None,
input: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> FormatlistResult
def formatlist_output(args: Optional[pulumi.Input[Sequence[Any]]] = None,
input: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[FormatlistResult]func Formatlist(ctx *Context, args *FormatlistArgs, opts ...InvokeOption) (*FormatlistResult, error)
func FormatlistOutput(ctx *Context, args *FormatlistOutputArgs, opts ...InvokeOption) FormatlistResultOutput> Note: This function is named Formatlist in the Go SDK.
public static class Formatlist
{
public static Task<FormatlistResult> InvokeAsync(FormatlistArgs args, InvokeOptions? opts = null)
public static Output<FormatlistResult> Invoke(FormatlistInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<FormatlistResult> formatlist(FormatlistArgs args, InvokeOptions options)
public static Output<FormatlistResult> formatlist(FormatlistArgs args, InvokeOptions options)
fn::invoke:
function: std:formatlist
arguments:
# arguments dictionaryThe following arguments are supported:
formatlist Result
The following output properties are available:
- Result List<string>
- Result []string
- result List<String>
- result string[]
- result Sequence[str]
- result List<String>
Package Details
- Repository
- std pulumi/pulumi-std
- License
