FusionAuth v5.1.0 published on Tuesday, Oct 22, 2024 by Theo Gravity
fusionauth.getLambda
Explore with Pulumi AI
# 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.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fusionauth from "@pulumi/fusionauth";
const defaultGoogleReconcile = fusionauth.getLambda({
name: "Default Google Reconcile provided by FusionAuth",
type: "GoogleReconcile",
});
import pulumi
import pulumi_fusionauth as fusionauth
default_google_reconcile = fusionauth.get_lambda(name="Default Google Reconcile provided by FusionAuth",
type="GoogleReconcile")
package main
import (
"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, &fusionauth.GetLambdaArgs{
Name: pulumi.StringRef("Default Google Reconcile provided by FusionAuth"),
Type: "GoogleReconcile",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fusionauth = Pulumi.Fusionauth;
return await Deployment.RunAsync(() =>
{
var defaultGoogleReconcile = Fusionauth.GetLambda.Invoke(new()
{
Name = "Default Google Reconcile provided by FusionAuth",
Type = "GoogleReconcile",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fusionauth.FusionauthFunctions;
import com.pulumi.fusionauth.inputs.GetLambdaArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var defaultGoogleReconcile = FusionauthFunctions.getLambda(GetLambdaArgs.builder()
.name("Default Google Reconcile provided by FusionAuth")
.type("GoogleReconcile")
.build());
}
}
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
SelfServiceRegistrationValidation
ClientCredentialsJWTPopulate
- Id string
- The ID of the Lambda. At least one of
id
orname
must be specified. - Name string
- The name of the Lambda. At least one of
id
orname
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
SelfServiceRegistrationValidation
ClientCredentialsJWTPopulate
- Id string
- The ID of the Lambda. At least one of
id
orname
must be specified. - Name string
- The name of the Lambda. At least one of
id
orname
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
SelfServiceRegistrationValidation
ClientCredentialsJWTPopulate
- id String
- The ID of the Lambda. At least one of
id
orname
must be specified. - name String
- The name of the Lambda. At least one of
id
orname
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
SelfServiceRegistrationValidation
ClientCredentialsJWTPopulate
- id string
- The ID of the Lambda. At least one of
id
orname
must be specified. - name string
- The name of the Lambda. At least one of
id
orname
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
SelfServiceRegistrationValidation
ClientCredentialsJWTPopulate
- id str
- The ID of the Lambda. At least one of
id
orname
must be specified. - name str
- The name of the Lambda. At least one of
id
orname
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
SelfServiceRegistrationValidation
ClientCredentialsJWTPopulate
- id String
- The ID of the Lambda. At least one of
id
orname
must be specified. - name String
- The name of the Lambda. At least one of
id
orname
must be specified.
getLambda Result
The following output properties are available:
Package Details
- Repository
- fusionauth theogravity/pulumi-fusionauth
- License
- MIT
- Notes
- This Pulumi package is based on the
fusionauth
Terraform Provider.