diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-smtp-credentials-cdk-construct.spec | 271 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 273 insertions, 0 deletions
@@ -0,0 +1 @@ +/smtp-credentials-cdk-construct-2.0.0.tar.gz diff --git a/python-smtp-credentials-cdk-construct.spec b/python-smtp-credentials-cdk-construct.spec new file mode 100644 index 0000000..46ff4e7 --- /dev/null +++ b/python-smtp-credentials-cdk-construct.spec @@ -0,0 +1,271 @@ +%global _empty_manifest_terminate_build 0 +Name: python-smtp-credentials-cdk-construct +Version: 2.0.0 +Release: 1 +Summary: A CDK construct that creates SMTP credentials permitting emails to be sent via SES. +License: MIT +URL: https://github.com/charlesdotfish/smtp-credentials-cdk-construct +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d7/cc/96206b83a5757d718a8fbc12f2649da9bd3d20cd88b900aef8e4b642b769/smtp-credentials-cdk-construct-2.0.0.tar.gz +BuildArch: noarch + +Requires: python3-aws-cdk-lib +Requires: python3-constructs +Requires: python3-jsii +Requires: python3-publication + +%description +<p align="center"><a href="https://github.com/charlesdotfish"><img src="https://github.com/charlesdotfish/smtp-credentials-cdk-construct/raw/main/media/logo.png" alt="Charles Dot Fish" width="400"></a></p> + +# SMTP Credentials CDK Construct + +[](https://codecov.io/gh/charlesdotfish/smtp-credentials-cdk-construct) +[](https://github.com/charlesdotfish/smtp-credentials-cdk-construct/issues/) +[](https://github.com/charlesdotfish/smtp-credentials-cdk-construct/pulls/) + +This construct creates an IAM user, with a policy permitting emails to be sent via SES from a specified email address, creates an access key associated with this user, and converts the access key to SMTP credentials. + +The generated SMTP credentials are stored as a parameter in Parameter Store, and the name of this parameter is output as a CloudFormation output. The parameter may be safely deleted, once the credentials have been accessed. + +## Installation + +### JavaScript / TypeScript (npm / Yarn) + +```bash +# npm +npm i -D @charlesdotfish/smtp-credentials-cdk-construct + +# Yarn +yarn add -D @charlesdotfish/smtp-credentials-cdk-construct +``` + +See more details at npmjs.com: https://www.npmjs.com/package/@charlesdotfish/smtp-credentials-cdk-construct + +### C# / .NET (NuGet) + +```bash +dotnet add package CharlesDotFish.CdkConstructs.SmtpCredentials +``` + +See more details at nuget.org: https://www.nuget.org/packages/CharlesDotFish.CdkConstructs.SmtpCredentials/ + +### Python (pip) + +```bash +pip install smtp-credentials-cdk-construct +``` + +See more details at pypi.org: https://pypi.org/project/smtp-credentials-cdk-construct/ + +### Java (Maven) + +```xml +<dependency> + <groupId>fish.charles.cdk-constructs</groupId> + <artifactId>smtp-credentials-cdk-construct</artifactId> + <version>1.0</version> +</dependency> +``` + +See more details at maven.org: https://search.maven.org/artifact/fish.charles.cdk-constructs/smtp-credentials-cdk-construct + +## Example Usage + +See [API.md](https://github.com/charlesdotfish/smtp-credentials-cdk-construct/blob/main/API.md) for details on the exposed API. + +```python +new SmtpCredentials(this, 'SmtpCredentials', { + emailAddress: 'me@charles.fish', +}); +``` + + + + +%package -n python3-smtp-credentials-cdk-construct +Summary: A CDK construct that creates SMTP credentials permitting emails to be sent via SES. +Provides: python-smtp-credentials-cdk-construct +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-smtp-credentials-cdk-construct +<p align="center"><a href="https://github.com/charlesdotfish"><img src="https://github.com/charlesdotfish/smtp-credentials-cdk-construct/raw/main/media/logo.png" alt="Charles Dot Fish" width="400"></a></p> + +# SMTP Credentials CDK Construct + +[](https://codecov.io/gh/charlesdotfish/smtp-credentials-cdk-construct) +[](https://github.com/charlesdotfish/smtp-credentials-cdk-construct/issues/) +[](https://github.com/charlesdotfish/smtp-credentials-cdk-construct/pulls/) + +This construct creates an IAM user, with a policy permitting emails to be sent via SES from a specified email address, creates an access key associated with this user, and converts the access key to SMTP credentials. + +The generated SMTP credentials are stored as a parameter in Parameter Store, and the name of this parameter is output as a CloudFormation output. The parameter may be safely deleted, once the credentials have been accessed. + +## Installation + +### JavaScript / TypeScript (npm / Yarn) + +```bash +# npm +npm i -D @charlesdotfish/smtp-credentials-cdk-construct + +# Yarn +yarn add -D @charlesdotfish/smtp-credentials-cdk-construct +``` + +See more details at npmjs.com: https://www.npmjs.com/package/@charlesdotfish/smtp-credentials-cdk-construct + +### C# / .NET (NuGet) + +```bash +dotnet add package CharlesDotFish.CdkConstructs.SmtpCredentials +``` + +See more details at nuget.org: https://www.nuget.org/packages/CharlesDotFish.CdkConstructs.SmtpCredentials/ + +### Python (pip) + +```bash +pip install smtp-credentials-cdk-construct +``` + +See more details at pypi.org: https://pypi.org/project/smtp-credentials-cdk-construct/ + +### Java (Maven) + +```xml +<dependency> + <groupId>fish.charles.cdk-constructs</groupId> + <artifactId>smtp-credentials-cdk-construct</artifactId> + <version>1.0</version> +</dependency> +``` + +See more details at maven.org: https://search.maven.org/artifact/fish.charles.cdk-constructs/smtp-credentials-cdk-construct + +## Example Usage + +See [API.md](https://github.com/charlesdotfish/smtp-credentials-cdk-construct/blob/main/API.md) for details on the exposed API. + +```python +new SmtpCredentials(this, 'SmtpCredentials', { + emailAddress: 'me@charles.fish', +}); +``` + + + + +%package help +Summary: Development documents and examples for smtp-credentials-cdk-construct +Provides: python3-smtp-credentials-cdk-construct-doc +%description help +<p align="center"><a href="https://github.com/charlesdotfish"><img src="https://github.com/charlesdotfish/smtp-credentials-cdk-construct/raw/main/media/logo.png" alt="Charles Dot Fish" width="400"></a></p> + +# SMTP Credentials CDK Construct + +[](https://codecov.io/gh/charlesdotfish/smtp-credentials-cdk-construct) +[](https://github.com/charlesdotfish/smtp-credentials-cdk-construct/issues/) +[](https://github.com/charlesdotfish/smtp-credentials-cdk-construct/pulls/) + +This construct creates an IAM user, with a policy permitting emails to be sent via SES from a specified email address, creates an access key associated with this user, and converts the access key to SMTP credentials. + +The generated SMTP credentials are stored as a parameter in Parameter Store, and the name of this parameter is output as a CloudFormation output. The parameter may be safely deleted, once the credentials have been accessed. + +## Installation + +### JavaScript / TypeScript (npm / Yarn) + +```bash +# npm +npm i -D @charlesdotfish/smtp-credentials-cdk-construct + +# Yarn +yarn add -D @charlesdotfish/smtp-credentials-cdk-construct +``` + +See more details at npmjs.com: https://www.npmjs.com/package/@charlesdotfish/smtp-credentials-cdk-construct + +### C# / .NET (NuGet) + +```bash +dotnet add package CharlesDotFish.CdkConstructs.SmtpCredentials +``` + +See more details at nuget.org: https://www.nuget.org/packages/CharlesDotFish.CdkConstructs.SmtpCredentials/ + +### Python (pip) + +```bash +pip install smtp-credentials-cdk-construct +``` + +See more details at pypi.org: https://pypi.org/project/smtp-credentials-cdk-construct/ + +### Java (Maven) + +```xml +<dependency> + <groupId>fish.charles.cdk-constructs</groupId> + <artifactId>smtp-credentials-cdk-construct</artifactId> + <version>1.0</version> +</dependency> +``` + +See more details at maven.org: https://search.maven.org/artifact/fish.charles.cdk-constructs/smtp-credentials-cdk-construct + +## Example Usage + +See [API.md](https://github.com/charlesdotfish/smtp-credentials-cdk-construct/blob/main/API.md) for details on the exposed API. + +```python +new SmtpCredentials(this, 'SmtpCredentials', { + emailAddress: 'me@charles.fish', +}); +``` + + + + +%prep +%autosetup -n smtp-credentials-cdk-construct-2.0.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-smtp-credentials-cdk-construct -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +4fa40eb71992f20fce16396c8e114002 smtp-credentials-cdk-construct-2.0.0.tar.gz |