EC2 / Paginator / GetGroupsForCapacityReservation


class EC2.Paginator.GetGroupsForCapacityReservation#
paginator = client.get_paginator('get_groups_for_capacity_reservation')

Creates an iterator that will paginate through responses from EC2.Client.get_groups_for_capacity_reservation().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
  • CapacityReservationId (string) –


    The ID of the Capacity Reservation. If you specify a Capacity Reservation that is shared with you, the operation returns only Capacity Reservation groups that you own.

  • DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:



Response Syntax

    'CapacityReservationGroups': [
            'GroupArn': 'string',
            'OwnerId': 'string'

Response Structure

  • (dict) –

    • CapacityReservationGroups (list) –

      Information about the resource groups to which the Capacity Reservation has been added.

      • (dict) –

        Describes a resource group to which a Capacity Reservation has been added.

        • GroupArn (string) –

          The ARN of the resource group.

        • OwnerId (string) –

          The ID of the Amazon Web Services account that owns the resource group.