diff --git a/API.md b/API.md index 2dfd7ae8..fdc4dcfb 100644 --- a/API.md +++ b/API.md @@ -276,9 +276,23 @@ const sesSmtpCredentialsProps: SesSmtpCredentialsProps = { ... } | **Name** | **Type** | **Description** | | --- | --- | --- | +| passwordSecretKey | string | Optional, the key name to use in the secret to write the password to (defaults to Credentials.PASSWORD). | | secret | aws-cdk-lib.aws_secretsmanager.ISecret | Optional, an SecretsManager secret to write the AWS SES Smtp credentials to. | | user | aws-cdk-lib.aws_iam.IUser | The user for which to create an AWS Access Key and to generate the smtp password. | | userName | string | Optional, a username to create a new user if no existing user is given. | +| userNameSecretKey | string | Optional, the key name to use in the secret to write the username to (defaults to Credentials.USERNAME). | + +--- + +##### `passwordSecretKey`Optional + +```typescript +public readonly passwordSecretKey: string; +``` + +- *Type:* string + +Optional, the key name to use in the secret to write the password to (defaults to Credentials.PASSWORD). --- @@ -320,6 +334,18 @@ Optional, a username to create a new user if no existing user is given. --- +##### `userNameSecretKey`Optional + +```typescript +public readonly userNameSecretKey: string; +``` + +- *Type:* string + +Optional, the key name to use in the secret to write the username to (defaults to Credentials.USERNAME). + +--- + ## Enums diff --git a/src/provider/credentials-handler.lambda.ts b/src/provider/credentials-handler.lambda.ts index 59a261d1..9b7a47f9 100644 --- a/src/provider/credentials-handler.lambda.ts +++ b/src/provider/credentials-handler.lambda.ts @@ -16,6 +16,8 @@ export async function handler(event: OnEventRequest): Promise