diff --git a/plugins/notifications-backend-module-email/README.md b/plugins/notifications-backend-module-email/README.md index 229f30a465..c1ead48876 100644 --- a/plugins/notifications-backend-module-email/README.md +++ b/plugins/notifications-backend-module-email/README.md @@ -81,9 +81,9 @@ notifications: receiver: 'users' # Optional SES config # sesConfig: - # SourceArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com' - # FromArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com' - # ConfigurationSetName: 'custom-config' + # sourceArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com' + # fromArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com' + # configurationSetName: 'custom-config' # How many emails to send concurrently, defaults to 2 concurrencyLimit: 10 # How much to throttle between emails, defaults to 100ms diff --git a/plugins/notifications-backend-module-email/config.d.ts b/plugins/notifications-backend-module-email/config.d.ts index d4c2ba06a3..7116826c5d 100644 --- a/plugins/notifications-backend-module-email/config.d.ts +++ b/plugins/notifications-backend-module-email/config.d.ts @@ -139,15 +139,15 @@ export interface Config { /** * ARN of the identity to use as the source of the email */ - SourceArn?: string; + sourceArn?: string; /** * ARN of the identity to use for the "From"/sender address of the email */ - FromArn?: string; + fromArn?: string; /** * Name of the configuration set to use when sending email via ses */ - ConfigurationSetName?: string; + configurationSetName?: string; }; cache?: { /** diff --git a/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.test.ts b/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.test.ts index 0b758a50f5..ebe1b90f35 100644 --- a/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.test.ts +++ b/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.test.ts @@ -458,9 +458,9 @@ describe('NotificationsEmailProcessor', () => { sender: 'backstage@backstage.io', replyTo: 'no-reply@backstage.io', sesConfig: { - SourceArn: + sourceArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com', - FromArn: + fromArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com', }, }, diff --git a/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.ts b/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.ts index 461b8ed2f1..39a0c5da02 100644 --- a/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.ts +++ b/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.ts @@ -299,10 +299,10 @@ export class NotificationsEmailProcessor implements NotificationProcessor { return undefined; } const ses: Record = {}; - const sourceArn = this.sesConfig.getOptionalString('SourceArn'); - const fromArn = this.sesConfig.getOptionalString('FromArn'); + const sourceArn = this.sesConfig.getOptionalString('sourceArn'); + const fromArn = this.sesConfig.getOptionalString('fromArn'); const configurationSetName = this.sesConfig.getOptionalString( - 'ConfigurationSetName', + 'configurationSetName', ); if (sourceArn) ses.SourceArn = sourceArn;