{ "info": { "author": "Michael Sverdlik", "author_email": "msverdlik@atlassian.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# cfn-custom-resource\n\nPython helper library for creation of Lambda based [Custom Resource](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html) \nfor AWS CloudFormation. The library allows the author to focus on the logic of creation/update/removal of the Custom \nResource instead of the details of the request/response format that CloudFormation expects. \n\n\n# Installation\n\nTo install simply use pip:\n\n pip install cfn-custom-resource\n\n\n# Basic usage\n\nHere's how a basic Custom Resource can be created:\n\n from cfn_custom_resource import lambda_handler, create, update, delete\n\n\t@create()\n\tdef create(event, context):\n\t # .. provision resource ..\n\n\t # resource_id = ...\n\t # output_attribures = {} \n\n\t return resource_id, output_attributes\n\n\t@update()\n\tdef update(event, context):\n\t # .. update resource ..\n\t # if resource_id changed cloudformation would trigger delete \n\n\t return resource_id, output_attributes\n\n\t@delete()\n\tdef delete(event, context):\n\t # .. cleanup ..\n\n\t return\n\nCheck [the wiki](https://bitbucket.org/atlassian/cfn-custom-resource/wiki/Home) for more details.\t \n\n\n# Contributing\n\nSee [CONTRIBUTING.md](https://bitbucket.org/atlassian/cfn-custom-resource/src/master/CONTRIBUTING.md)\n\n\n# License\n\nCopyright (c) 2018 Atlassian and others.\nApache 2.0 licensed, see [LICENSE](https://bitbucket.org/atlassian/cfn-custom-resource/src/master/LICENSE) file.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/atlassian/cfn-custom-resource", "keywords": "aws,cloudformation,lambda", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "cfn-custom-resource", "package_url": "https://pypi.org/project/cfn-custom-resource/", "platform": "any", "project_url": "https://pypi.org/project/cfn-custom-resource/", "project_urls": { "Homepage": "https://bitbucket.org/atlassian/cfn-custom-resource" }, "release_url": "https://pypi.org/project/cfn-custom-resource/1.0.1/", "requires_dist": [ "tox ; extra == 'dev'", "flake8 ; extra == 'dev'", "pytest ; extra == 'dev'", "pytest-localserver (==0.5.0) ; extra == 'dev'" ], "requires_python": "", "summary": "A helper lib for lambda based Custom Resources (AWS CloudFormation)", "version": "1.0.1" }, "last_serial": 4830356, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "fe6d82adcf075800468295039bc1c929", "sha256": "94452bfe9f5c125ae9ef73c44f8e8fdfb7435cba188ff781ec31f47484c75164" }, "downloads": -1, "filename": "cfn_custom_resource-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "fe6d82adcf075800468295039bc1c929", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4545, "upload_time": "2019-02-16T08:07:20", "url": "https://files.pythonhosted.org/packages/72/38/35fbe42165cc6da6ed2653c14d622788f03f8a1658a885fe704ceb93e59f/cfn_custom_resource-1.0.0-py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "d7a6d03577703af58fb3204f8bb3648f", "sha256": "de7f428ea7838738a18f7ccf10a3fea71d4edf37dda9b50ad7cd46e784042b5f" }, "downloads": -1, "filename": "cfn_custom_resource-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d7a6d03577703af58fb3204f8bb3648f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4691, "upload_time": "2019-02-17T04:13:44", "url": "https://files.pythonhosted.org/packages/16/b4/20bec633e699de3a6ddd2b80816c3715dc6dcd2c2580ef33ebee996f348f/cfn_custom_resource-1.0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d7a6d03577703af58fb3204f8bb3648f", "sha256": "de7f428ea7838738a18f7ccf10a3fea71d4edf37dda9b50ad7cd46e784042b5f" }, "downloads": -1, "filename": "cfn_custom_resource-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d7a6d03577703af58fb3204f8bb3648f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4691, "upload_time": "2019-02-17T04:13:44", "url": "https://files.pythonhosted.org/packages/16/b4/20bec633e699de3a6ddd2b80816c3715dc6dcd2c2580ef33ebee996f348f/cfn_custom_resource-1.0.1-py3-none-any.whl" } ] }