Class CfnUserPool.LambdaConfigProperty
Specifies the configuration for AWS Lambda triggers.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaConfigProperty : Object, CfnUserPool.ILambdaConfigProperty
Syntax (vb)
Public Class LambdaConfigProperty
Inherits Object
Implements CfnUserPool.ILambdaConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var lambdaConfigProperty = new LambdaConfigProperty {
CreateAuthChallenge = "createAuthChallenge",
CustomEmailSender = new CustomEmailSenderProperty {
LambdaArn = "lambdaArn",
LambdaVersion = "lambdaVersion"
},
CustomMessage = "customMessage",
CustomSmsSender = new CustomSMSSenderProperty {
LambdaArn = "lambdaArn",
LambdaVersion = "lambdaVersion"
},
DefineAuthChallenge = "defineAuthChallenge",
KmsKeyId = "kmsKeyId",
PostAuthentication = "postAuthentication",
PostConfirmation = "postConfirmation",
PreAuthentication = "preAuthentication",
PreSignUp = "preSignUp",
PreTokenGeneration = "preTokenGeneration",
PreTokenGenerationConfig = new PreTokenGenerationConfigProperty {
LambdaArn = "lambdaArn",
LambdaVersion = "lambdaVersion"
},
UserMigration = "userMigration",
VerifyAuthChallengeResponse = "verifyAuthChallengeResponse"
};
Synopsis
Constructors
LambdaConfigProperty() |
Properties
CreateAuthChallenge | Creates an authentication challenge. |
CustomEmailSender | A custom email sender AWS Lambda trigger. |
CustomMessage | A custom Message AWS Lambda trigger. |
CustomSmsSender | A custom SMS sender AWS Lambda trigger. |
DefineAuthChallenge | Defines the authentication challenge. |
KmsKeyId | The Amazon Resource Name of a AWS Key Management Service ( AWS KMS ) key. |
PostAuthentication | A post-authentication AWS Lambda trigger. |
PostConfirmation | A post-confirmation AWS Lambda trigger. |
PreAuthentication | A pre-authentication AWS Lambda trigger. |
PreSignUp | A pre-registration AWS Lambda trigger. |
PreTokenGeneration | The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger. |
PreTokenGenerationConfig | The detailed configuration of a pre token generation trigger. |
UserMigration | The user migration Lambda config type. |
VerifyAuthChallengeResponse | Verifies the authentication challenge response. |
Constructors
LambdaConfigProperty()
public LambdaConfigProperty()
Properties
CreateAuthChallenge
Creates an authentication challenge.
public string CreateAuthChallenge { get; set; }
Property Value
System.String
Remarks
CustomEmailSender
A custom email sender AWS Lambda trigger.
public object CustomEmailSender { get; set; }
Property Value
System.Object
Remarks
CustomMessage
A custom Message AWS Lambda trigger.
public string CustomMessage { get; set; }
Property Value
System.String
Remarks
CustomSmsSender
A custom SMS sender AWS Lambda trigger.
public object CustomSmsSender { get; set; }
Property Value
System.Object
Remarks
DefineAuthChallenge
Defines the authentication challenge.
public string DefineAuthChallenge { get; set; }
Property Value
System.String
Remarks
KmsKeyId
The Amazon Resource Name of a AWS Key Management Service ( AWS KMS ) key.
public string KmsKeyId { get; set; }
Property Value
System.String
Remarks
Amazon Cognito uses the key to encrypt codes and temporary passwords sent to CustomEmailSender
and CustomSMSSender
.
PostAuthentication
A post-authentication AWS Lambda trigger.
public string PostAuthentication { get; set; }
Property Value
System.String
Remarks
PostConfirmation
A post-confirmation AWS Lambda trigger.
public string PostConfirmation { get; set; }
Property Value
System.String
Remarks
PreAuthentication
A pre-authentication AWS Lambda trigger.
public string PreAuthentication { get; set; }
Property Value
System.String
Remarks
PreSignUp
A pre-registration AWS Lambda trigger.
public string PreSignUp { get; set; }
Property Value
System.String
Remarks
PreTokenGeneration
The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.
public string PreTokenGeneration { get; set; }
Property Value
System.String
Remarks
Set this parameter for legacy purposes. If you also set an ARN in PreTokenGenerationConfig
, its value must be identical to PreTokenGeneration
. For new instances of pre token generation triggers, set the LambdaArn
of PreTokenGenerationConfig
.
You can set ``
PreTokenGenerationConfig
The detailed configuration of a pre token generation trigger.
public object PreTokenGenerationConfig { get; set; }
Property Value
System.Object
Remarks
If you also set an ARN in PreTokenGeneration
, its value must be identical to PreTokenGenerationConfig
.
UserMigration
The user migration Lambda config type.
public string UserMigration { get; set; }
Property Value
System.String
Remarks
VerifyAuthChallengeResponse
Verifies the authentication challenge response.
public string VerifyAuthChallengeResponse { get; set; }
Property Value
System.String