Skip to content

IAM and pageable responses #805

@pchaganti

Description

@pchaganti

Retrieving a list of all AWS managed policies available to the account. The AWS console lists 122 available policies. The following API call only gets back 100. There does not seem to be a next_page to iterate over. Is this the right way to page through?

      iam_client.list_policies.each do |response|
        response.policies.each do |d|
          print d.policy_name
        end
      end

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions