Skip to main content

@reapit-cdk/email-receiver

npm version npm downloads coverage: 99.02%25 Integ Tests: ✔

This construct sets up everything necessary to receive email. The emails get stored in a dynamodb table, queryable by recipient. This is designed to be used in end-to-end tests, with the @reapit-cdk/email-receiver-client helper library.

Package Installation:

yarn add --dev @reapit-cdk/email-receiver
# or
npm install @reapit-cdk/email-receiver --save-dev

Usage

import { CfnOutput, Stack, App } from 'aws-cdk-lib'
import { HostedZone } from 'aws-cdk-lib/aws-route53'
import { EmailReceiver } from '@reapit-cdk/email-receiver'

const app = new App()
const stack = new Stack(app, 'stack-name', {
  env: {
    region: 'us-east-1', // region must be specified
  },
})

const hostedZone = new HostedZone(stack, 'hostedZone', {
  zoneName: 'example.org',
})

const emailReceiver = new EmailReceiver(stack, 'domain', {
  hostedZone,
  // you can optionally override the parent domain
  // (e.g. your hosted zone is example.org but you want to use dev.example.org)
  // parentDomain: '',
  // you can optionally override the subdomain
  // this defaults to 'email' so the resulting domain will be email.example.org
  // subdomain: '',
})

new CfnOutput(stack, 'emailReceiverDomainName', {
  value: emailReceiver.domainName,
})
new CfnOutput(stack, 'emailReceiverTableArn', {
  value: emailReceiver.table.tableArn,
})

Metadata

Release files for reapit-cdk.email-receiver 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reapit-cdk.email-receiver 0.1.2
File Size Uploaded Provenance Actions
reapit-cdk.email-receiver-0.1.2.tar.gz 588.6 kB Without provenance Details for reapit-cdk.email-receiver-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reapit-cdk.email-receiver 0.1.2
File Interpreter ABI Platform Actions
reapit_cdk.email_receiver-0.1.2-py3-none-any.whl Python 3 none any Details for reapit_cdk.email_receiver-0.1.2-py3-none-any.whl

Total release size: 1.2 MB

Release files / reapit-cdk.email-receiver-0.1.2.tar.gz

Download URL reapit-cdk.email-receiver-0.1.2.tar.gz
Size 588.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ad25f21c7e83d2b6e8a22f2fc3d97c59b2f74113239f83f2dd1f645be0b8895d
BLAKE2b-256 checksum
How to use checksums
7500865525eec1e331c00f824f87fd39df9979dae658bd2e78d5006b1e2bd0eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / reapit_cdk.email_receiver-0.1.2-py3-none-any.whl

Download URL reapit_cdk.email_receiver-0.1.2-py3-none-any.whl
Size 587.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2064342b12b963cfc213bed0fb01fae0c87c9e5c2cc96bb54b0cf864edf38ba5
BLAKE2b-256 checksum
How to use checksums
50ef14b3ab6a473496fccc8443924831fd10a51627f878136b22ce722a4a75e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Security for reapit-cdk.email-receiver 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page