-
Notifications
You must be signed in to change notification settings - Fork 634
Description
Describe the feature
Hi team,
I think we're missing the ability to paginate the Service Catalog list-provisioning-artifacts endpoint. I can see there is a paginateListProvisioningArtifactsForServiceAction
in ListProvisioningArtifactsForServiceActionPaginator.ts but there is no paginateListProvisioningArtifacts
that I can see.
If instead we look at the basic 'command' route and try to do the pagination ourselves, the response does return a NextPageToken
(according to the types), but there is no way to pass it back into the ListProvisioningArtifactsInput
type to retrieve the next page. Compare that to the ListProvisioningArtifactsForServiceActionInput
type, which does take a PageToken
and PageSize
.
I can see this also affects boto3, so it might be a wider issue than just the v3 js sdk.
For boto3, compare:
response = client.list_provisioning_artifacts(
AcceptLanguage='string',
ProductId='string'
)
to
response = client.list_provisioning_artifacts_for_service_action(
ServiceActionId='string',
PageSize=123,
PageToken='string',
AcceptLanguage='string'
)
Thanks,
Daniel
Use Case
Use case is enumerating product versions (AKA provisioning artifacts) so we can pass them back into the ProductStack construct to prevent them from being quietly deleted when publishing a new product version. We're aware of the ProductStackHistory
construct but it isn't suitable for our use case.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
SDK version used
3.864.0
Environment details (OS name and version, etc.)
Environment agnostic issue