René's URL Explorer Experiment


Title: Reusing code between resources · Issue #335 · aws-cloudformation/cloudformation-cli-java-plugin · GitHub

Open Graph Title: Reusing code between resources · Issue #335 · aws-cloudformation/cloudformation-cli-java-plugin

X Title: Reusing code between resources · Issue #335 · aws-cloudformation/cloudformation-cli-java-plugin

Description: Hi, I'm from AWS IoT, we have a question/feature request. Our handlers across different resources use the same code for exception translations and listing resource tags. These resources reside in the same GitHub repository, yet, since ea...

Open Graph Description: Hi, I'm from AWS IoT, we have a question/feature request. Our handlers across different resources use the same code for exception translations and listing resource tags. These resources reside in t...

X Description: Hi, I'm from AWS IoT, we have a question/feature request. Our handlers across different resources use the same code for exception translations and listing resource tags. These resources reside ...

Opengraph URL: https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reusing code between resources","articleBody":"Hi, I'm from AWS IoT, we have a question/feature request. \r\n\r\nOur handlers across different resources use the same code for exception translations and listing resource tags. These resources reside in the same GitHub repository, yet, since each resource has its own Maven project, we're unable to reuse that common code and haven't seen solutions in other repositories.\r\n\r\nSpecific examples from our AWS IoT repo (code is still in PRs):\r\n1. Exception translation code - [link](https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iot/blob/09e62a47f99448c366eb7eaceb8c8ea76f8d6d36/aws-iot-securityprofile/src/main/java/com/amazonaws/iot/securityprofile/Translator.java#L295). We have this method in the Translator class for each resource.\r\n1. `listTags` method (calls IoT::ListTagsForResource) - [link](https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iot/blob/09e62a47f99448c366eb7eaceb8c8ea76f8d6d36/aws-iot-securityprofile/src/main/java/com/amazonaws/iot/securityprofile/HandlerUtils.java#L46).\r\n\r\nFor both of these, we're able to reuse the code between handlers for the same resource, but we had to copy paste this piece of code for each resource.\r\n\r\nIs there a solution available for our use case?","author":{"url":"https://github.com/anton-aws","@type":"Person","name":"anton-aws"},"datePublished":"2020-12-04T22:09:07Z","url":"https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:93cf1968-4f7b-965f-497a-b09f1b8fc19f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB27C:25B7A4:1D41C4:280711:6AFD8F8C
html-safe-noncee5c4519575de8e49085992da8763e337c2268a2bb2d5dbb01ac6a4d6e8f96c05
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjdDOjI1QjdBNDoxRDQxQzQ6MjgwNzExOjZBRkQ4RjhDIiwidmlzaXRvcl9pZCI6IjEwMDUyNjAwNTQwMjM5OTkzNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacac6cd14a5278aa02964a12a4aa4b55aabda0f2d5fafe40109da548a05db6c569
hovercard-subject-tagissue:757441306
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aws-cloudformation/cloudformation-cli-java-plugin/335/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f12238de175c224fd1733e6a0c03b2aee4b09599aa168d29a973929d98754aa2/aws-cloudformation/cloudformation-cli-java-plugin/issues/335
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f12238de175c224fd1733e6a0c03b2aee4b09599aa168d29a973929d98754aa2/aws-cloudformation/cloudformation-cli-java-plugin/issues/335
og:image:altHi, I'm from AWS IoT, we have a question/feature request. Our handlers across different resources use the same code for exception translations and listing resource tags. These resources reside in t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameanton-aws
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
turbo-cache-controlno-preview
go-importgithub.com/aws-cloudformation/cloudformation-cli-java-plugin git https://github.com/aws-cloudformation/cloudformation-cli-java-plugin.git
octolytics-dimension-user_id19900777
octolytics-dimension-user_loginaws-cloudformation
octolytics-dimension-repository_id152624998
octolytics-dimension-repository_nwoaws-cloudformation/cloudformation-cli-java-plugin
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id152624998
octolytics-dimension-repository_network_root_nwoaws-cloudformation/cloudformation-cli-java-plugin
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Faws-cloudformation%2Fcloudformation-cli-java-plugin%2Fissues%2F335
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Faws-cloudformation%2Fcloudformation-cli-java-plugin%2Fissues%2F335
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=aws-cloudformation%2Fcloudformation-cli-java-plugin
Reloadhttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335
Reloadhttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335
Reloadhttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335
aws-cloudformationhttps://github.com/aws-cloudformation
cloudformation-cli-java-pluginhttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin
Codehttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin
Issues30 (30)https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues
Pull requests13 (13)https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/pulls
Actionshttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin/actions
Projectshttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin/projects
Security and quality1 (1)https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/security
Insightshttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin/insights
https://github.com/aws-cloudformation/cloudformation-cli-java-plugin
New issuehttps://github.com/login?return_to=https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335
New issuehttps://github.com/login?return_to=https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335
Reusing code between resourceshttps://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335#top
https://github.com/anton-aws
anton-awshttps://github.com/anton-aws
on Dec 4, 2020https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335#issue-757441306
linkhttps://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iot/blob/09e62a47f99448c366eb7eaceb8c8ea76f8d6d36/aws-iot-securityprofile/src/main/java/com/amazonaws/iot/securityprofile/Translator.java#L295
linkhttps://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iot/blob/09e62a47f99448c366eb7eaceb8c8ea76f8d6d36/aws-iot-securityprofile/src/main/java/com/amazonaws/iot/securityprofile/HandlerUtils.java#L46
Sign up for freehttps://github.com/signup?return_to=https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335
Sign in to commenthttps://github.com/login?return_to=https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/335
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.