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

fix(clients): remove aggregated client from paginators #4496

Merged
merged 2 commits into from
Mar 7, 2023

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Mar 7, 2023

Issue

#3093

Description

remove aggregated client usage from paginators. Explanation in smithy-lang/smithy-typescript#712.

Testing

  • add test example

@kuhe kuhe requested a review from a team as a code owner March 7, 2023 21:55
@kuhe
Copy link
Contributor Author

kuhe commented Mar 7, 2023

const { SFN, paginateListStateMachines, paginateListExecutions } = require("@aws-sdk/client-sfn");

(async () => {
  const y = paginateListStateMachines({ client: new SFN() }, {});
  for await (const i of y) {
    const z = paginateListExecutions(
      { client: new SFN() },
      {
        stateMachineArn: i.stateMachines[0].stateMachineArn,
      }
    );

    for await (const i of z) {
      console.log(i);
    }
  }
})();

@kuhe kuhe merged commit aea457a into aws:main Mar 7, 2023
@kuhe kuhe deleted the fix/paginator branch March 7, 2023 23:52
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants