FusionAuth

v0.9.7 published on Thursday, Jul 28, 2022 by Theo Gravity

getLambda

# Lambda Resource

Lambdas are user defined JavaScript functions that may be executed at runtime to perform various functions. Lambdas may be used to customize the claims returned in a JWT, reconcile a SAML v2 response or an OpenID Connect response when using these external identity providers.

Lambdas API

Example Usage

using Pulumi;
using Fusionauth = Pulumi.Fusionauth;

class MyStack : Stack
{
    public MyStack()
    {
        var defaultGoogleReconcile = Output.Create(Fusionauth.GetLambda.InvokeAsync(new Fusionauth.GetLambdaArgs
        {
            Name = "Default Google Reconcile provided by FusionAuth",
            Type = "GoogleReconcile",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-fusionauth/sdk/go/fusionauth"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/theogravity/pulumi-fusionauth/sdk/go/fusionauth"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fusionauth.GetLambda(ctx, &GetLambdaArgs{
			Name: pulumi.StringRef("Default Google Reconcile provided by FusionAuth"),
			Type: "GoogleReconcile",
		}, 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 defaultGoogleReconcile = Output.of(FusionauthFunctions.getLambda(GetLambdaArgs.builder()
            .name("Default Google Reconcile provided by FusionAuth")
            .type("GoogleReconcile")
            .build()));

    }
}
import pulumi
import pulumi_fusionauth as fusionauth

default_google_reconcile = fusionauth.get_lambda(name="Default Google Reconcile provided by FusionAuth",
    type="GoogleReconcile")
import * as pulumi from "@pulumi/pulumi";
import * as fusionauth from "@pulumi/fusionauth";

const defaultGoogleReconcile = pulumi.output(fusionauth.getLambda({
    name: "Default Google Reconcile provided by FusionAuth",
    type: "GoogleReconcile",
}));
variables:
  defaultGoogleReconcile:
    Fn::Invoke:
      Function: fusionauth:getLambda
      Arguments:
        name: Default Google Reconcile provided by FusionAuth
        type: GoogleReconcile

Using getLambda

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 getLambda(args: GetLambdaArgs, opts?: InvokeOptions): Promise<GetLambdaResult>
function getLambdaOutput(args: GetLambdaOutputArgs, opts?: InvokeOptions): Output<GetLambdaResult>
def get_lambda(id: Optional[str] = None,
               name: Optional[str] = None,
               type: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetLambdaResult
def get_lambda_output(id: Optional[pulumi.Input[str]] = None,
               name: Optional[pulumi.Input[str]] = None,
               type: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetLambdaResult]
func GetLambda(ctx *Context, args *GetLambdaArgs, opts ...InvokeOption) (*GetLambdaResult, error)
func GetLambdaOutput(ctx *Context, args *GetLambdaOutputArgs, opts ...InvokeOption) GetLambdaResultOutput

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

public static class GetLambda 
{
    public static Task<GetLambdaResult> InvokeAsync(GetLambdaArgs args, InvokeOptions? opts = null)
    public static Output<GetLambdaResult> Invoke(GetLambdaInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLambdaResult> getLambda(GetLambdaArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: fusionauth:index/getLambda:getLambda
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Type string

The Lambda type. The possible values are:

  • JWTPopulate
  • OpenIDReconcile
  • SAMLv2Reconcile
  • SAMLv2Populate
  • AppleReconcile
  • ExternalJWTReconcile
  • FacebookReconcile
  • GoogleReconcile
  • HYPRReconcile
  • TwitterReconcile
  • LDAPConnectorReconcile
  • LinkedInReconcile
  • EpicGamesReconcile
  • NintendoReconcile
  • SonyPSNReconcile
  • SteamReconcile
  • TwitchReconcile
  • XboxReconcile
  • ClientCredentialsJWTPopulate
Id string

The ID of the Lambda. At least one of id or name must be specified.

Name string

The name of the Lambda. At least one of id or name must be specified.

Type string

The Lambda type. The possible values are:

  • JWTPopulate
  • OpenIDReconcile
  • SAMLv2Reconcile
  • SAMLv2Populate
  • AppleReconcile
  • ExternalJWTReconcile
  • FacebookReconcile
  • GoogleReconcile
  • HYPRReconcile
  • TwitterReconcile
  • LDAPConnectorReconcile
  • LinkedInReconcile
  • EpicGamesReconcile
  • NintendoReconcile
  • SonyPSNReconcile
  • SteamReconcile
  • TwitchReconcile
  • XboxReconcile
  • ClientCredentialsJWTPopulate
Id string

The ID of the Lambda. At least one of id or name must be specified.

Name string

The name of the Lambda. At least one of id or name must be specified.

type String

The Lambda type. The possible values are:

  • JWTPopulate
  • OpenIDReconcile
  • SAMLv2Reconcile
  • SAMLv2Populate
  • AppleReconcile
  • ExternalJWTReconcile
  • FacebookReconcile
  • GoogleReconcile
  • HYPRReconcile
  • TwitterReconcile
  • LDAPConnectorReconcile
  • LinkedInReconcile
  • EpicGamesReconcile
  • NintendoReconcile
  • SonyPSNReconcile
  • SteamReconcile
  • TwitchReconcile
  • XboxReconcile
  • ClientCredentialsJWTPopulate
id String

The ID of the Lambda. At least one of id or name must be specified.

name String

The name of the Lambda. At least one of id or name must be specified.

type string

The Lambda type. The possible values are:

  • JWTPopulate
  • OpenIDReconcile
  • SAMLv2Reconcile
  • SAMLv2Populate
  • AppleReconcile
  • ExternalJWTReconcile
  • FacebookReconcile
  • GoogleReconcile
  • HYPRReconcile
  • TwitterReconcile
  • LDAPConnectorReconcile
  • LinkedInReconcile
  • EpicGamesReconcile
  • NintendoReconcile
  • SonyPSNReconcile
  • SteamReconcile
  • TwitchReconcile
  • XboxReconcile
  • ClientCredentialsJWTPopulate
id string

The ID of the Lambda. At least one of id or name must be specified.

name string

The name of the Lambda. At least one of id or name must be specified.

type str

The Lambda type. The possible values are:

  • JWTPopulate
  • OpenIDReconcile
  • SAMLv2Reconcile
  • SAMLv2Populate
  • AppleReconcile
  • ExternalJWTReconcile
  • FacebookReconcile
  • GoogleReconcile
  • HYPRReconcile
  • TwitterReconcile
  • LDAPConnectorReconcile
  • LinkedInReconcile
  • EpicGamesReconcile
  • NintendoReconcile
  • SonyPSNReconcile
  • SteamReconcile
  • TwitchReconcile
  • XboxReconcile
  • ClientCredentialsJWTPopulate
id str

The ID of the Lambda. At least one of id or name must be specified.

name str

The name of the Lambda. At least one of id or name must be specified.

type String

The Lambda type. The possible values are:

  • JWTPopulate
  • OpenIDReconcile
  • SAMLv2Reconcile
  • SAMLv2Populate
  • AppleReconcile
  • ExternalJWTReconcile
  • FacebookReconcile
  • GoogleReconcile
  • HYPRReconcile
  • TwitterReconcile
  • LDAPConnectorReconcile
  • LinkedInReconcile
  • EpicGamesReconcile
  • NintendoReconcile
  • SonyPSNReconcile
  • SteamReconcile
  • TwitchReconcile
  • XboxReconcile
  • ClientCredentialsJWTPopulate
id String

The ID of the Lambda. At least one of id or name must be specified.

name String

The name of the Lambda. At least one of id or name must be specified.

getLambda Result

The following output properties are available:

Body string

The lambda function body, a JavaScript function.

Debug bool

Whether or not debug event logging is enabled for this Lambda.

Id string
Type string
Name string
Body string

The lambda function body, a JavaScript function.

Debug bool

Whether or not debug event logging is enabled for this Lambda.

Id string
Type string
Name string
body String

The lambda function body, a JavaScript function.

debug Boolean

Whether or not debug event logging is enabled for this Lambda.

id String
type String
name String
body string

The lambda function body, a JavaScript function.

debug boolean

Whether or not debug event logging is enabled for this Lambda.

id string
type string
name string
body str

The lambda function body, a JavaScript function.

debug bool

Whether or not debug event logging is enabled for this Lambda.

id str
type str
name str
body String

The lambda function body, a JavaScript function.

debug Boolean

Whether or not debug event logging is enabled for this Lambda.

id String
type String
name String

Package Details

Repository
https://github.com/theogravity/pulumi-fusionauth
License
MIT
Notes

This Pulumi package is based on the fusionauth Terraform Provider.