Skip to content

Commit e58ac12

Browse files
committed
SES: initialize fromArn and rPathArn params #16
1 parent a86f0cb commit e58ac12

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

main.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,22 @@ func configure() error {
8282
return errors.New("Denied recipient emails: " + err.Error())
8383
}
8484
}
85+
if *sourceArn != "" {
86+
if *fromArn == "" {
87+
fromArn = sourceArn
88+
}
89+
if *rPathArn == "" {
90+
rPathArn = sourceArn
91+
}
92+
} else {
93+
sourceArn = nil
94+
}
95+
if *fromArn == "" {
96+
fromArn = nil
97+
}
98+
if *rPathArn == "" {
99+
rPathArn = nil
100+
}
85101
switch *relayAPI {
86102
case "pinpoint":
87103
relayClient = pinpointrelay.New(setName, allowFromRegExp, denyToRegExp)

0 commit comments

Comments
 (0)