Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Custom Types with CDK #233

Closed
njsnx opened this issue Aug 11, 2020 · 3 comments
Closed

Using Custom Types with CDK #233

njsnx opened this issue Aug 11, 2020 · 3 comments

Comments

@njsnx
Copy link

njsnx commented Aug 11, 2020

❓ General Issue

The Question

I want to make use of Custom Types with CDK - for example:
https://docs.datadoghq.com/developers/amazon_cloudformation/#resources-available

I am looking at the various classes available and trying to work out how I would be able to define a imported resource (vs a custom resource).

Looking for some guidance on a) is this possible yet and b) if so, where I should be reading and looking - I see the Provider class but this looks like what you would use to define your own type, rather than make use of a third party type (which Is already imported).

Lastly - I had a look at the Cfn* low level resources to see if I could figure out how to reverse engineer a Cfn* resource and create my own where I can set the Cfn Type and the Properties but got a bit stuck.

Environment

  • CDK CLI Version: 1.54.0
  • Module Version: 1.54.0
  • Node.js Version: v12.14.1
  • OS: OSX Mojave
  • Language (Version): Python (3.7.3)
@hoegertn
Copy link

@eladb we discussed this in LV and I still think we should have some kind of generator project that vendors can use to create a CDK library with the appropriate Cfn* classes for their customer providers.

Any further ideas on this topic?

@njsnx
Copy link
Author

njsnx commented Aug 11, 2020

Typical - post a question then find what I think I am looking for.

I assume in my case, where I want to make use of an existing type (vs writing my own) i can use https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.CfnResource.html - will give this a go

But yes, in general It would be cool to understand if this is the best way forward for custom types in general

@SomayaB SomayaB changed the title Using Custom Types with CDK[module] Using Custom Types with CDK Aug 11, 2020
@eladb eladb transferred this issue from aws/aws-cdk Aug 17, 2020
@eladb eladb removed their assignment Feb 25, 2021
@eladb
Copy link
Contributor

eladb commented Mar 11, 2021

Duplicate #77

@eladb eladb closed this as completed Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants