The Lambda trigger configuration information for the new user pool.
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a
function. So you will need to make an extra call to add permission for these event sources to invoke your
Lambda function.
For more information on using the Lambda API to add permission, see AddPermission .
For adding permission using the AWS CLI, see add-permission .
This is a convenience that creates an instance of the
LambdaConfigType.Builder avoiding the
need to create one manually via
LambdaConfigType#builder().
When the
Consumer completes,
LambdaConfigType.Builder#build() is called immediately and its
result is passed to
#lambdaConfig(LambdaConfigType).