Skip to content

No way to paginate list-provisioning-artifactsΒ #7257

@danielnixon

Description

@danielnixon

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

Metadata

Metadata

Assignees

Labels

closed-for-stalenessfeature-requestNew feature or enhancement. May require GitHub community feedback.p3This is a minor priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions