Interface CfnUserPoolPropsMixin.ILambdaConfigProperty
A collection of user pool Lambda triggers.
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Cognito
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public interface CfnUserPoolPropsMixin.ILambdaConfigProperty
Syntax (vb)
Public Interface CfnUserPoolPropsMixin.ILambdaConfigProperty
Remarks
Amazon Cognito invokes triggers at several possible stages of user pool operations. Triggers can modify the outcome of the operations that invoked them.
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.CfnPropertyMixins.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",
InboundFederation = new InboundFederationProperty {
LambdaArn = "lambdaArn",
LambdaVersion = "lambdaVersion"
},
KmsKeyId = "kmsKeyId",
PostAuthentication = "postAuthentication",
PostConfirmation = "postConfirmation",
PreAuthentication = "preAuthentication",
PreSignUp = "preSignUp",
PreTokenGeneration = "preTokenGeneration",
PreTokenGenerationConfig = new PreTokenGenerationConfigProperty {
LambdaArn = "lambdaArn",
LambdaVersion = "lambdaVersion"
},
UserMigration = "userMigration",
VerifyAuthChallengeResponse = "verifyAuthChallengeResponse"
};
Synopsis
Properties
| CreateAuthChallenge | The configuration of a create auth challenge Lambda trigger, one of three triggers in the sequence of the custom authentication challenge triggers . |
| CustomEmailSender | The configuration of a custom email sender Lambda trigger. |
| CustomMessage | A custom message Lambda trigger. |
| CustomSmsSender | The configuration of a custom SMS sender Lambda trigger. |
| DefineAuthChallenge | The configuration of a define auth challenge Lambda trigger, one of three triggers in the sequence of the custom authentication challenge triggers . |
| InboundFederation | A collection of user pool Lambda triggers. |
| KmsKeyId | The ARN of an KMS key . Amazon Cognito uses the key to encrypt codes and temporary passwords sent to custom sender Lambda triggers. |
| PostAuthentication | The configuration of a post authentication Lambda trigger in a user pool. This trigger can take custom actions after a user signs in. |
| PostConfirmation | The configuration of a post confirmation Lambda trigger in a user pool. This trigger can take custom actions after a user confirms their user account and their email address or phone number. |
| PreAuthentication | The configuration of a pre authentication trigger in a user pool. This trigger can evaluate and modify user sign-in events. |
| PreSignUp | The configuration of a pre sign-up Lambda trigger in a user pool. This trigger evaluates new users and can bypass confirmation, link a federated user profile , or block sign-up requests. |
| PreTokenGeneration | The legacy configuration of a pre token generation Lambda trigger in a user pool. |
| PreTokenGenerationConfig | The detailed configuration of a pre token generation Lambda trigger in a user pool. If you also set an ARN in |
| UserMigration | The configuration of a migrate user Lambda trigger in a user pool. This trigger can create user profiles when users sign in or attempt to reset their password with credentials that don't exist yet. |
| VerifyAuthChallengeResponse | The configuration of a verify auth challenge Lambda trigger, one of three triggers in the sequence of the custom authentication challenge triggers . |
Properties
CreateAuthChallenge
The configuration of a create auth challenge Lambda trigger, one of three triggers in the sequence of the custom authentication challenge triggers .
object? CreateAuthChallenge { get; }
Property Value
Remarks
CustomEmailSender
The configuration of a custom email sender Lambda trigger.
object? CustomEmailSender { get; }
Property Value
Remarks
This trigger routes all email notifications from a user pool to a Lambda function that delivers the message using custom logic.
Type union: either IResolvable or CfnUserPoolPropsMixin.ICustomEmailSenderProperty
CustomMessage
A custom message Lambda trigger.
object? CustomMessage { get; }
Property Value
Remarks
This trigger is an opportunity to customize all SMS and email messages from your user pool. When a custom message trigger is active, your user pool routes all messages to a Lambda function that returns a runtime-customized message subject and body for your user pool to deliver to a user.
Type union: either string or IFunctionRef
CustomSmsSender
The configuration of a custom SMS sender Lambda trigger.
object? CustomSmsSender { get; }
Property Value
Remarks
This trigger routes all SMS notifications from a user pool to a Lambda function that delivers the message using custom logic.
Type union: either IResolvable or CfnUserPoolPropsMixin.ICustomSMSSenderProperty
DefineAuthChallenge
The configuration of a define auth challenge Lambda trigger, one of three triggers in the sequence of the custom authentication challenge triggers .
object? DefineAuthChallenge { get; }
Property Value
Remarks
InboundFederation
A collection of user pool Lambda triggers.
object? InboundFederation { get; }
Property Value
Remarks
KmsKeyId
The ARN of an KMS key . Amazon Cognito uses the key to encrypt codes and temporary passwords sent to custom sender Lambda triggers.
object? KmsKeyId { get; }
Property Value
Remarks
PostAuthentication
The configuration of a post authentication Lambda trigger in a user pool. This trigger can take custom actions after a user signs in.
object? PostAuthentication { get; }
Property Value
Remarks
PostConfirmation
The configuration of a post confirmation Lambda trigger in a user pool. This trigger can take custom actions after a user confirms their user account and their email address or phone number.
object? PostConfirmation { get; }
Property Value
Remarks
PreAuthentication
The configuration of a pre authentication trigger in a user pool. This trigger can evaluate and modify user sign-in events.
object? PreAuthentication { get; }
Property Value
Remarks
PreSignUp
The configuration of a pre sign-up Lambda trigger in a user pool. This trigger evaluates new users and can bypass confirmation, link a federated user profile , or block sign-up requests.
object? PreSignUp { get; }
Property Value
Remarks
PreTokenGeneration
The legacy configuration of a pre token generation Lambda trigger in a user pool.
object? PreTokenGeneration { get; }
Property Value
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 .
Type union: either string or IFunctionRef
PreTokenGenerationConfig
The detailed configuration of a pre token generation Lambda trigger in a user pool. If you also set an ARN in PreTokenGeneration , its value must be identical to PreTokenGenerationConfig .
object? PreTokenGenerationConfig { get; }
Property Value
Remarks
UserMigration
The configuration of a migrate user Lambda trigger in a user pool. This trigger can create user profiles when users sign in or attempt to reset their password with credentials that don't exist yet.
string? UserMigration { get; }
Property Value
Remarks
VerifyAuthChallengeResponse
The configuration of a verify auth challenge Lambda trigger, one of three triggers in the sequence of the custom authentication challenge triggers .
object? VerifyAuthChallengeResponse { get; }