diff options
Diffstat (limited to 'python-aws-amplify-cdk-exported-backend.spec')
-rw-r--r-- | python-aws-amplify-cdk-exported-backend.spec | 266 |
1 files changed, 266 insertions, 0 deletions
diff --git a/python-aws-amplify-cdk-exported-backend.spec b/python-aws-amplify-cdk-exported-backend.spec new file mode 100644 index 0000000..e2b18ad --- /dev/null +++ b/python-aws-amplify-cdk-exported-backend.spec @@ -0,0 +1,266 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aws-amplify.cdk.exported-backend +Version: 0.0.6 +Release: 1 +Summary: @aws-amplify/cdk-exported-backend +License: Apache-2.0 +URL: https://github.com/aws-amplify/amplify-cli-export-construct.git +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/01/9d/15ce23e7e554fe75302558faf8e0b9f1baea164ba850f43f48f16ada3a3e/aws-amplify.cdk.exported-backend-0.0.6.tar.gz +BuildArch: noarch + +Requires: python3-aws-cdk-lib +Requires: python3-constructs +Requires: python3-jsii +Requires: python3-publication +Requires: python3-typeguard + +%description +## Amplify CLI cdk-exported-backend + +[](https://github.com/aws-amplify/amplify-cli-export-construct/actions/workflows/integration-test.yml) + +This CDK construct is used to include the CloudFormation resources generated by [Amplify CLI Export command](https://docs.amplify.aws/cli/usage/export-to-cdk/). The construct handles assets and CloudFormation files. It offers abstractions over the Amplify CLI generated cloud resources. + +The library is published under the following + +|Language |Repository | +|--- |--- | +|Typescript/Javascript | [@aws-amplify/cdk-exported-backend](https://www.npmjs.com/package/@aws-amplify/cdk-exported-backend) | +|Python | [aws-amplify.cdk.exported-backend](https://pypi.org/project/aws-amplify.cdk.exported-backend/) | +|Java | [com.amplifyframework:exported-backend](https://search.maven.org/artifact/com.amplifyframework/exported-backend) | + +### Usage + +Install via NPM: + +```bash +npm i @aws-amplify/cdk-exported-backend@latest +``` + +Add to your CDK app: + +```js +import { AmplifyExportedBackend } from '@aws-amplify/cdk-exported-backend'; +... +const amplifyExport = new AmplifyExportedBackend(app, 'AmplifyExportedBackend', { + path: './amplify-export-myAmplifyApp', + amplifyEnvironment: 'dev', +}); + + +``` + +#### Construct Props + +The construct props extend [stack props](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.StackProps.html) and can be used to override the root stack properties. + +|Name |Type |Description |Required |Default | +|--- |--- |--- |--- |--- | +|path |String |You can use the absolute or the relative path to the location of the folder. When using relative paths it's important to note that the path is relative to the root of your CDK application |Yes |undefined | +|stage |String |This works similar to Amplify CLI's environment names. The construct makes modification to be able to integrate into the CDK app. |Yes | undefined | + +Deploy this to your account + +```bash +cdk deploy +``` + +### Contributing + +We welcome community contributions and pull requests. + +### Security + +See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. + +### License + +This project is licensed under the Apache-2.0 License. + + + + +%package -n python3-aws-amplify.cdk.exported-backend +Summary: @aws-amplify/cdk-exported-backend +Provides: python-aws-amplify.cdk.exported-backend +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-aws-amplify.cdk.exported-backend +## Amplify CLI cdk-exported-backend + +[](https://github.com/aws-amplify/amplify-cli-export-construct/actions/workflows/integration-test.yml) + +This CDK construct is used to include the CloudFormation resources generated by [Amplify CLI Export command](https://docs.amplify.aws/cli/usage/export-to-cdk/). The construct handles assets and CloudFormation files. It offers abstractions over the Amplify CLI generated cloud resources. + +The library is published under the following + +|Language |Repository | +|--- |--- | +|Typescript/Javascript | [@aws-amplify/cdk-exported-backend](https://www.npmjs.com/package/@aws-amplify/cdk-exported-backend) | +|Python | [aws-amplify.cdk.exported-backend](https://pypi.org/project/aws-amplify.cdk.exported-backend/) | +|Java | [com.amplifyframework:exported-backend](https://search.maven.org/artifact/com.amplifyframework/exported-backend) | + +### Usage + +Install via NPM: + +```bash +npm i @aws-amplify/cdk-exported-backend@latest +``` + +Add to your CDK app: + +```js +import { AmplifyExportedBackend } from '@aws-amplify/cdk-exported-backend'; +... +const amplifyExport = new AmplifyExportedBackend(app, 'AmplifyExportedBackend', { + path: './amplify-export-myAmplifyApp', + amplifyEnvironment: 'dev', +}); + + +``` + +#### Construct Props + +The construct props extend [stack props](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.StackProps.html) and can be used to override the root stack properties. + +|Name |Type |Description |Required |Default | +|--- |--- |--- |--- |--- | +|path |String |You can use the absolute or the relative path to the location of the folder. When using relative paths it's important to note that the path is relative to the root of your CDK application |Yes |undefined | +|stage |String |This works similar to Amplify CLI's environment names. The construct makes modification to be able to integrate into the CDK app. |Yes | undefined | + +Deploy this to your account + +```bash +cdk deploy +``` + +### Contributing + +We welcome community contributions and pull requests. + +### Security + +See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. + +### License + +This project is licensed under the Apache-2.0 License. + + + + +%package help +Summary: Development documents and examples for aws-amplify.cdk.exported-backend +Provides: python3-aws-amplify.cdk.exported-backend-doc +%description help +## Amplify CLI cdk-exported-backend + +[](https://github.com/aws-amplify/amplify-cli-export-construct/actions/workflows/integration-test.yml) + +This CDK construct is used to include the CloudFormation resources generated by [Amplify CLI Export command](https://docs.amplify.aws/cli/usage/export-to-cdk/). The construct handles assets and CloudFormation files. It offers abstractions over the Amplify CLI generated cloud resources. + +The library is published under the following + +|Language |Repository | +|--- |--- | +|Typescript/Javascript | [@aws-amplify/cdk-exported-backend](https://www.npmjs.com/package/@aws-amplify/cdk-exported-backend) | +|Python | [aws-amplify.cdk.exported-backend](https://pypi.org/project/aws-amplify.cdk.exported-backend/) | +|Java | [com.amplifyframework:exported-backend](https://search.maven.org/artifact/com.amplifyframework/exported-backend) | + +### Usage + +Install via NPM: + +```bash +npm i @aws-amplify/cdk-exported-backend@latest +``` + +Add to your CDK app: + +```js +import { AmplifyExportedBackend } from '@aws-amplify/cdk-exported-backend'; +... +const amplifyExport = new AmplifyExportedBackend(app, 'AmplifyExportedBackend', { + path: './amplify-export-myAmplifyApp', + amplifyEnvironment: 'dev', +}); + + +``` + +#### Construct Props + +The construct props extend [stack props](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.StackProps.html) and can be used to override the root stack properties. + +|Name |Type |Description |Required |Default | +|--- |--- |--- |--- |--- | +|path |String |You can use the absolute or the relative path to the location of the folder. When using relative paths it's important to note that the path is relative to the root of your CDK application |Yes |undefined | +|stage |String |This works similar to Amplify CLI's environment names. The construct makes modification to be able to integrate into the CDK app. |Yes | undefined | + +Deploy this to your account + +```bash +cdk deploy +``` + +### Contributing + +We welcome community contributions and pull requests. + +### Security + +See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. + +### License + +This project is licensed under the Apache-2.0 License. + + + + +%prep +%autosetup -n aws-amplify.cdk.exported-backend-0.0.6 + +%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-aws-amplify.cdk.exported-backend -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.6-1 +- Package Spec generated |