pulumi/tests/testdata/codegen/functions-secrets/docs/funcwithsecrets/_index.md

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:

CryptoKey string
Plaintext string
CryptoKey string
Plaintext string
cryptoKey String
plaintext String
cryptoKey string
plaintext string
cryptoKey String
plaintext String

funcWithSecrets Result

The following output properties are available:

Ciphertext string
CryptoKey string
Id string
Plaintext string
Ciphertext string
CryptoKey string
Id string
Plaintext string
ciphertext String
cryptoKey String
id String
plaintext String
ciphertext string
cryptoKey string
id string
plaintext string
ciphertext str
crypto_key str
id str
plaintext str
ciphertext String
cryptoKey String
id String
plaintext String

Package Details

Repository
mypkg
License