aws-cloudformation / aws-cloudformation/custom-resource-helper

Handling multiple resource types in a single function

Open
#13 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
382
Forks
61
PR merge metrics
No merged PRs in 30d

Description

With this library and its decorators, is it possible to map the received events to multiple functions depending on their `ResourceType`s?

For instance. I imagine multiple function definitions annotated with `@helper.create` and make `CfnResource` can decide which one to run depending on the resource type.

is it possible this way or in some other manner?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the @helper.create decorator and CfnResource handling first, then trace how ResourceType is dispatched. Define the expected behavior for multiple functions and confirm it with a focused example or test; the issue is complete when the supported approach is documented and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.