Documentation
¶
Overview ¶
Command bootstrap is the AWS Lambda function for Amazon Cognito user pool hooks (PreSignUp, PostConfirmation, and PreAuthentication). Build it for the provided.al2023 runtime:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -tags lambda.norpc -o bootstrap .
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
devtool
command
Command devtool runs Cognito hook events locally.
|
Command devtool runs Cognito hook events locally. |
|
internal
|
|
|
action
Package action decodes the actions a policy returns.
|
Package action decodes the actions a policy returns. |
|
app
Package app wires the function together from its configuration.
|
Package app wires the function together from its configuration. |
|
cognito
Package cognito holds what every hook shares about Amazon Cognito user pool trigger events.
|
Package cognito holds what every hook shares about Amazon Cognito user pool trigger events. |
|
config
Package config reads the configuration from environment variables.
|
Package config reads the configuration from environment variables. |
|
handler
Package handler is the Lambda entry point: it decodes a Cognito trigger event and routes it to the hook for its trigger source.
|
Package handler is the Lambda entry point: it decodes a Cognito trigger event and routes it to the hook for its trigger source. |
|
logging
Package logging configures structured logging and masks personal data in log attributes.
|
Package logging configures structured logging and masks personal data in log attributes. |
|
password
Package password generates random passwords that satisfy any Cognito password policy.
|
Package password generates random passwords that satisfy any Cognito password policy. |
|
policy
Package policy compiles and evaluates the Rego policies that make each hook's decision.
|
Package policy compiles and evaluates the Rego policies that make each hook's decision. |
|
postconfirmation
Package postconfirmation implements the PostConfirmation hook.
|
Package postconfirmation implements the PostConfirmation hook. |
|
preauthentication
Package preauthentication implements the PreAuthentication hook.
|
Package preauthentication implements the PreAuthentication hook. |
|
presignup
Package presignup implements the PreSignUp hook.
|
Package presignup implements the PreSignUp hook. |
|
rotation
Package rotation records when the hooks last replaced each user's password.
|
Package rotation records when the hooks last replaced each user's password. |
|
sendgrid
Package sendgrid is a minimal client for the SendGrid v3 Email Address Validation API.
|
Package sendgrid is a minimal client for the SendGrid v3 Email Address Validation API. |
|
verify
Package verify checks whether an email address is likely to be deliverable.
|
Package verify checks whether an email address is likely to be deliverable. |
Click to show internal directories.
Click to hide internal directories.