{"id":13561723,"url":"https://github.com/aws-cloudformation/cloudformation-cli-java-plugin","last_synced_at":"2025-04-06T16:15:55.334Z","repository":{"id":39719152,"uuid":"152624998","full_name":"aws-cloudformation/cloudformation-cli-java-plugin","owner":"aws-cloudformation","description":"The CloudFormation Provider Development Toolkit Java Plugin allows you to autogenerate java code based on an input schema.","archived":false,"fork":false,"pushed_at":"2025-03-21T18:21:05.000Z","size":1119,"stargazers_count":30,"open_issues_count":42,"forks_count":47,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-03-30T15:11:09.986Z","etag":null,"topics":["cloudformation-cli","java","resources"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aws-cloudformation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-11T16:47:40.000Z","updated_at":"2025-03-21T18:21:11.000Z","dependencies_parsed_at":"2023-11-08T05:45:47.511Z","dependency_job_id":"76dec80e-94ed-4ac6-9727-9c8ea99c9fa5","html_url":"https://github.com/aws-cloudformation/cloudformation-cli-java-plugin","commit_stats":{"total_commits":299,"total_committers":52,"mean_commits":5.75,"dds":0.8662207357859532,"last_synced_commit":"b9cfe28499c7340245b7e4c9ec586b99280828ba"},"previous_names":["aws-cloudformation/aws-cloudformation-rpdk-java-plugin"],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-cloudformation%2Fcloudformation-cli-java-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-cloudformation%2Fcloudformation-cli-java-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-cloudformation%2Fcloudformation-cli-java-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-cloudformation%2Fcloudformation-cli-java-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws-cloudformation","download_url":"https://codeload.github.com/aws-cloudformation/cloudformation-cli-java-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509238,"owners_count":20950232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudformation-cli","java","resources"],"created_at":"2024-08-01T13:01:00.378Z","updated_at":"2025-04-06T16:15:55.303Z","avatar_url":"https://github.com/aws-cloudformation.png","language":"Java","funding_links":[],"categories":["Java","Custom Resource Development"],"sub_categories":["Hooks"],"readme":"## AWS CloudFormation Resource Provider Java Plugin\n\nThe CloudFormation CLI (cfn) allows you to author your own resource providers that can be used by CloudFormation.\n\nThis plugin library helps to provide Java runtime bindings for the execution of your providers by CloudFormation.\n\nUsage\n-----\n\nIf you are using this package to build resource providers for CloudFormation, install the [CloudFormation CLI Java Plugin](https://github.com/aws-cloudformation/cloudformation-cli-java-plugin) - this will automatically install the the [CloudFormation CLI](https://github.com/aws-cloudformation/cloudformation-cli)! A Python virtual environment is recommended.\n\n**Prerequisites**\n\n - Python version 3.8 or above\n - Your choice of Java IDE\n - Lombok: The code generated by the CloudFormation CLI uses [Lombok](https://projectlombok.org/), which requires support in IDEs for some syntax highlighting to work. For the best development experience, it is recommended you install Lombok support in your IDE.\n\n**Installation**\n\n```shell\npip3 install cloudformation-cli-java-plugin\n```\n\nRefer to the [CloudFormation CLI User Guide](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html) for the [CloudFormation CLI](https://github.com/aws-cloudformation/cloudformation-cli) for usage instructions.\n\n### Alternate Type Formats\nThe `format` keyword can be specified on primitive types defined in a resource provider's schema to allow the CloudFormation CLI Java Plugin to generate more than the defaults for primitive types. Consult the table below for what formats are available and defaults for various types. The `default` value is used if omitted:\n\n| JSON Schema Type | Format value | Generated variable type  |\n| ---- | ----------- | ---------------------- |\n| boolean | `default` | [Boolean](https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html)|\n| integer | `default`, `int32` | [Integer](https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html)|\n| integer | `int64` | [Long](https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html)|\n| number | `default` | [Double](https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html)|\n| string | `default` | [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)|\n\nFor example, the below schema for a property would generate a variable of type `Long`.\n```\n{\n    \"type\": \"integer\",\n    \"format\": \"int64\"\n}\n```\n\n\nDevelopment\n-----------\n\nFor changes to the plugin, a Python virtual environment is recommended. Check out and install the plugin in editable mode:\n\n```shell\npython3 -m venv env\nsource env/bin/activate\npip3 install -e /path/to/cloudformation-cli-java-plugin\n```\n\nInstall `pytest-cov`, used when running unit tests for this plugin:\n\n```shell\npip3 install pytest-cov\n```\n\nYou may also want to check out the [CloudFormation CLI](https://github.com/aws-cloudformation/cloudformation-cli) if you wish to make edits to that. In this case, installing them in one operation works well:\n\n```shell\npip3 install \\\n  -e /path/to/cloudformation-cli \\\n  -e /path/to/cloudformation-cli-java-plugin\n```\n\nThat ensures neither is accidentally installed from PyPI.\n\nLinting and running unit tests is done via [pre-commit](https://pre-commit.com/), and so is performed automatically on commit after being installed (`pre-commit install`). The continuous integration also runs these checks. Manual options are available so you don't have to commit:\n\n```shell\n# run all hooks on all files, mirrors what the CI runs\npre-commit run --all-files\n# run unit tests only. can also be used for other hooks, e.g. black, flake8, pylint-local\npre-commit run pytest-local\n```\n\nLicense\n-------\n\nThis library is licensed under the Apache 2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-cloudformation%2Fcloudformation-cli-java-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws-cloudformation%2Fcloudformation-cli-java-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-cloudformation%2Fcloudformation-cli-java-plugin/lists"}