Comments (2)
@t0yv0 I think this should actually be possible today. We can define functions as resource methods by adding a reference to the Methods
property of a ResourceSpec
using a SchemaPostProcessor
.
The only shortcoming I spotted so far is that resource methods do not support MultiArgumentInputs
which would cause additional breaking changes.
from pulumi.
It's interesting actually looking into it some more, we can schematize the ComponentResources, and the method overlays are typically just forwarders to the component resource:
Bucket.prototype.onEvent = function (this: Bucket, name, handler, args, opts) {
return new BucketEventSubscription(name, this, handler, args, opts);
}
If we didn't have this codegen feature we could still schematize the component resources but maintain overlays by hand, as they are fairly primitive. Perhaps this is less needed than appeared originally.
One possible advantage of doing it properly in codegen and schema is if registry can render the documentation for these.
According to this question: https://metabase.corp.pulumi.com/question/3883-snapshots-counts-of-aws-overlay-resources
We only have <2000 snapshots of these component resources, which in particular could be because they are not so easy to find in the docs and registry, and are a bit "muted".
from pulumi.
Related Issues (20)
- Python type error using StackReference `outputs` from "partially unknown" type HOT 2
- TypeScript type error using apply with StackReference `outputs` property HOT 6
- Enable installing binaries from PRs HOT 4
- Remove `pulumi query`
- Using the automation API with SSH URLs does not utilize ambient credentials HOT 2
- pulumi convert failed with 'element must be a list of tuple' errors HOT 2
- pulumi convert failed with 'element must be a list of tuple' errors HOT 1
- Regression in the `@pulumi/pulumi` 3.128.0 for `PULUMI_CONFIG` env variable? HOT 8
- Exposing documentation for dynamic bridged providers
- Panic using remote automation API HOT 1
- [programgen/python] Examples accessing properties of non-existent variables look incorrect HOT 1
- pulumi state move fails when providers have the same URN, but different IDs. HOT 3
- Remote automation API should support using the GitHub integration
- Remote Automation API should support specifying Agent Pools (aka Pulumi Deployments Runners) HOT 1
- Add prompting for `typechecker` to `pulumi new` HOT 2
- `pulumi logout --all` Command Displays Incomplete Logout output
- Pulumi CLI crashes when selecting detail output of pulumi up HOT 1
- Improve include component names and provider names in Exception: cannot construct components if the provider is configured with unknown values HOT 2
- Build fails with Go 1.23 HOT 3
- pulumi refresh fail to handle resource deleted outside of pulumi management (manual delete) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulumi.