https://pulumi.com logo
Title
q

quiet-tomato-48326

01/20/2023, 5:32 AM
Hey all, just about to create a github issue, but I thought I’d post here first in case I’m looking for the wrong thing Does anyone know where to find API reference for AWS mixins? eg
const bucket = new aws.s3.Bucket('my-bucket')
bucket.onObjectCreated( /* ... */ ) // <-- I'm looking for this
I’ve had a poke around, but I can’t seem to find it.
c

clever-sunset-76585

01/20/2023, 5:36 AM
q

quiet-tomato-48326

01/20/2023, 7:25 AM
Cheers, but I was hoping for something like https://www.pulumi.com/registry/packages/aws/api-docs/s3/bucket/onEvent.html 😛 Though I can see that
BucketEventSubscription
is a subclass of
lambda.EventSubscription
which I can use to discover the rest of the mixins by searching the github repo: https://github.com/pulumi/pulumi-aws/search?q=lambda.EventSubscription where I ultimately found what I was looking for! https://github.com/pulumi/pulumi-aws/blob/1bf89fc855cd6dc7f1232ce2199aacd64bcbf5ca/sdk/nodejs/cloudwatch/eventRuleMixins.ts :woohoo: plus a bunch of other useful things, such as https://www.pulumi.com/docs/guides/crosswalk/aws/lambda/ 😛
w

white-balloon-205

01/21/2023, 7:46 PM
There are a set of these JavaScript specific APIs in Pulumi-aws that aren’t currently documented in the language-neutral docs in the registry. https://github.com/pulumi/pulumi-aws/issues/2035 is the primary issue tracking adding documentation to the registry for these (along with indication that they are JS-only).