mirror of https://github.com/pulumi/pulumi.git
22 KiB
22 KiB
title: "funcWithSecrets" title_tag: "mypkg.funcWithSecrets" meta_desc: "Documentation for the mypkg.funcWithSecrets function with examples, input properties, output properties, and supporting types." layout: api no_edit_this_page: true
Using funcWithSecrets
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 funcWithSecrets(args: FuncWithSecretsArgs, opts?: InvokeOptions): Promise<FuncWithSecretsResult>
function funcWithSecretsOutput(args: FuncWithSecretsOutputArgs, opts?: InvokeOptions): Output<FuncWithSecretsResult>
def func_with_secrets(crypto_key: Optional[str] = None,
plaintext: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> FuncWithSecretsResult
def func_with_secrets_output(crypto_key: Optional[pulumi.Input[str]] = None,
plaintext: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[FuncWithSecretsResult]
func FuncWithSecrets(ctx *Context, args *FuncWithSecretsArgs, opts ...InvokeOption) (*FuncWithSecretsResult, error)
func FuncWithSecretsOutput(ctx *Context, args *FuncWithSecretsOutputArgs, opts ...InvokeOption) FuncWithSecretsResultOutput
> Note: This function is named FuncWithSecrets
in the Go SDK.
public static class FuncWithSecrets
{
public static Task<FuncWithSecretsResult> InvokeAsync(FuncWithSecretsArgs args, InvokeOptions? opts = null)
public static Output<FuncWithSecretsResult> Invoke(FuncWithSecretsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<FuncWithSecretsResult> funcWithSecrets(FuncWithSecretsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mypkg:funcWithSecrets
arguments:
# arguments dictionary
The following arguments are supported:
-
crypto_
key str - plaintext str
funcWithSecrets Result
The following output properties are available:
- Ciphertext string
-
Crypto
Key string - Id string
- Plaintext string
- Ciphertext string
-
Crypto
Key string - Id string
- Plaintext string
- ciphertext String
-
crypto
Key String - id String
- plaintext String
- ciphertext string
-
crypto
Key string - id string
- plaintext string
- ciphertext str
-
crypto_
key str - id str
- plaintext str
- ciphertext String
-
crypto
Key String - id String
- plaintext String
Package Details
- Repository
- mypkg
- License