diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-09 04:18:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-09 04:18:10 +0000 |
commit | 35eb46090d96f946275c44447f23e19381192c74 (patch) | |
tree | bc707e8f4941a72b8b9cf169340f6432e6e9c943 | |
parent | 52c7058b8e92f12fe440159f1b7a7aca4e9e8901 (diff) |
automatic import of python-aws-cdk-aws-cloud9-alphaopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-aws-cdk-aws-cloud9-alpha.spec | 51 | ||||
-rw-r--r-- | sources | 2 |
3 files changed, 44 insertions, 10 deletions
@@ -1 +1,2 @@ /aws-cdk.aws-cloud9-alpha-2.81.0a0.tar.gz +/aws-cdk.aws-cloud9-alpha-2.83.0a0.tar.gz diff --git a/python-aws-cdk-aws-cloud9-alpha.spec b/python-aws-cdk-aws-cloud9-alpha.spec index d43e207..9e03985 100644 --- a/python-aws-cdk-aws-cloud9-alpha.spec +++ b/python-aws-cdk-aws-cloud9-alpha.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-aws-cdk.aws-cloud9-alpha -Version: 2.81.0a0 +Version: 2.83.0a0 Release: 1 Summary: The CDK Construct Library for AWS::Cloud9 License: Apache-2.0 URL: https://github.com/aws/aws-cdk -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b9/bd/12c8eda0adf11488de43a87045d79736523cb72a0ff9d21628266ff7a15c/aws-cdk.aws-cloud9-alpha-2.81.0a0.tar.gz +Source0: https://mirrors.aliyun.com/pypi/web/packages/84/2d/d57e1ea1ebbb187c53b1d174f5b5dac691e2833683089acff3e34c34f440/aws-cdk.aws-cloud9-alpha-2.83.0a0.tar.gz BuildArch: noarch Requires: python3-aws-cdk-lib @@ -106,6 +106,17 @@ cloud9.Ec2Environment(self, "C9Env", owner=cloud9.Owner.user(user) ) ``` +## Auto-Hibernation +A Cloud9 environemnt can automatically start and stop the associated EC2 instance to reduce costs. +Use `automaticStop` to specify the number of minutes until the running instance is shut down after the environment was last used. +```python +default_vpc = ec2.Vpc.from_lookup(self, "DefaultVPC", is_default=True) +cloud9.Ec2Environment(self, "Cloud9Env2", + vpc=default_vpc, + image_id=cloud9.ImageId.AMAZON_LINUX_2, + automatic_stop=Duration.minutes(30) +) +``` %package -n python3-aws-cdk.aws-cloud9-alpha Summary: The CDK Construct Library for AWS::Cloud9 @@ -205,6 +216,17 @@ cloud9.Ec2Environment(self, "C9Env", owner=cloud9.Owner.user(user) ) ``` +## Auto-Hibernation +A Cloud9 environemnt can automatically start and stop the associated EC2 instance to reduce costs. +Use `automaticStop` to specify the number of minutes until the running instance is shut down after the environment was last used. +```python +default_vpc = ec2.Vpc.from_lookup(self, "DefaultVPC", is_default=True) +cloud9.Ec2Environment(self, "Cloud9Env2", + vpc=default_vpc, + image_id=cloud9.ImageId.AMAZON_LINUX_2, + automatic_stop=Duration.minutes(30) +) +``` %package help Summary: Development documents and examples for aws-cdk.aws-cloud9-alpha @@ -301,9 +323,20 @@ cloud9.Ec2Environment(self, "C9Env", owner=cloud9.Owner.user(user) ) ``` +## Auto-Hibernation +A Cloud9 environemnt can automatically start and stop the associated EC2 instance to reduce costs. +Use `automaticStop` to specify the number of minutes until the running instance is shut down after the environment was last used. +```python +default_vpc = ec2.Vpc.from_lookup(self, "DefaultVPC", is_default=True) +cloud9.Ec2Environment(self, "Cloud9Env2", + vpc=default_vpc, + image_id=cloud9.ImageId.AMAZON_LINUX_2, + automatic_stop=Duration.minutes(30) +) +``` %prep -%autosetup -n aws-cdk.aws-cloud9-alpha-2.81.0a0 +%autosetup -n aws-cdk.aws-cloud9-alpha-2.83.0a0 %build %py3_build @@ -317,20 +350,20 @@ 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 + 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 + 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 + 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 + 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 + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . @@ -343,5 +376,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 2.81.0a0-1 +* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.83.0a0-1 - Package Spec generated @@ -1 +1 @@ -74ba7b1e872d28ccdb9992f5895944ce aws-cdk.aws-cloud9-alpha-2.81.0a0.tar.gz +179d15a3620248417d1e566a8fbe74cd aws-cdk.aws-cloud9-alpha-2.83.0a0.tar.gz |