Skip to content

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

Merged
kuhe merged 2 commits intoaws:mainfrom
kuhe:fix/paginator
Mar 7, 2023
Merged

fix(clients): remove aggregated client from paginators#4496
kuhe merged 2 commits intoaws:mainfrom
kuhe:fix/paginator

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