|
Odyssey
|
Classes | |
| class | CustomArgumentParser |
Functions | |
| def | get_email_defaults () |
| def | get_parser () |
| def | main (argv) |
| def | run () |
Variables | |
| AWS_REGION = os.getenv('AWS_REGION', 'us-west-2') | |
| VERIFICATION_TEMPLATE | |
| tuple | USAGE |
Create AWS SES custom verification email template
This script is used to mimic the following aws ses custom verification
email template creation function:
aws ses create-custom-verification-email-template
--template-name <template-name>
--from-email-address <from-email-address>
--template-subject <template-subject>
--template-content <template-content>
--success-redirection-url <success-redirection-url>
--failure-redirection-url <failure-redirection-url>
Default AWS_REGION is `us-west-2` but the tempalte can be created in other
regions by setting up AWS_REGION env variable (check aws docuementation
for restrictions in certain regions.)
As os 2018-10-02, Update and Deletion of existing templates need to be
performed using the aws account with sufficient permissions to perform those
operations. If the local dev user is decided to grant such permissions in
the future, this script can be extended for deletion and update of the
existing custom verification email templates.
As of 2018-10-02, you can only run 4
`create-custom-verification-email-template` aws ses requests in a day in each
region.
| def CreateCustomVerificationTemplate.get_email_defaults | ( | ) |
return custom email verification template defaults
Definition at line 54 of file CreateCustomVerificationTemplate.py.
| def CreateCustomVerificationTemplate.get_parser | ( | ) |
Prepare argument parser.
Returns:
parser -- ArgumentParser object
Definition at line 98 of file CreateCustomVerificationTemplate.py.
| def CreateCustomVerificationTemplate.main | ( | argv | ) |
Main method to create custom verification template
Arguments:
argv {list} -- list of script arguments
Raises:
SystemExit -- [description]
Definition at line 143 of file CreateCustomVerificationTemplate.py.
| def CreateCustomVerificationTemplate.run | ( | ) |
Script entrypoint
Definition at line 208 of file CreateCustomVerificationTemplate.py.
| tuple CreateCustomVerificationTemplate.USAGE |
Definition at line 49 of file CreateCustomVerificationTemplate.py.
| CreateCustomVerificationTemplate.VERIFICATION_TEMPLATE |
Definition at line 45 of file CreateCustomVerificationTemplate.py.
1.8.15