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

Question: ResourceLinkFields to two possible targets #129

Open
lllama opened this issue Jul 26, 2021 · 0 comments
Open

Question: ResourceLinkFields to two possible targets #129

lllama opened this issue Jul 26, 2021 · 0 comments

Comments

@lllama
Copy link

lllama commented Jul 26, 2021

I am currently trying to scan Base Path Mappings in API Gateway. This works as expected until it encounters an API Gateway V2 API. The get_base_mappings response data includes an API ID, but there is no way to tell whether this points to a V1 or a V2 API. As such, I can't just use a ResourceLinkField as usual.

Can you recommend a way to achieve the link? I'm thinking it would require checking the list of both v1 and v2 APIs for each mapping and setting my object as appropriate. I'll probably define two ResourceLinkFields and set them them as optional, unless there's some other better way to do this.

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

1 participant