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

"Sub-list" for resources with multiple primary identifiers #89

Open
benkehoe opened this issue Mar 18, 2020 · 0 comments
Open

"Sub-list" for resources with multiple primary identifiers #89

benkehoe opened this issue Mar 18, 2020 · 0 comments

Comments

@benkehoe
Copy link

When a resource schema providers more than one property for primaryIdentifier, it may make sense to list the resources for a fixed value of one or more of those properties.

We're building an S3 bucket notification resource, to solve a long-standing problem. Each item in the notification configuration for a bucket is a separate resource. The primaryIdentifier is the combination of the bucket name and the notification configuration item id. The list handler handler will iterate over all buckets, returning all notification configuration items inside. But it's also sensible to think that a user could ask to list all notification resources for a fixed bucket name.

It seems likely that people will order their primary identifier list from general to specific, so may it could be automatic that if a list handler supports this "sub-listing" the user could provide the first value, the first and second, etc.

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