Skip to content

apigateway - add paginator for GetDomainNameAccessAssociations #3571

@mrweir

Description

@mrweir

Describe the bug

The API for GetDomainNameAccessAssociations is missing a paginator.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Paginator should work for the method get_domain_name_access_associations.

The missing entry in botocore/data/apigateway/2015-07-09/paginators-1.json should be:

{
    "GetDomainNameAccessAssociations": {
        "input_token": "position",
        "output_token": "position",
        "limit_key": "limit",
        "result_key": "items"
    }
}

Current Behavior

The paginator for this methods is not implemented (not present in botocore/data/apigateway/2015-07-09/paginators-1.json).

Reproduction Steps

Run:

import boto3
client = boto3.client('apigateway')
paginator = client.get_paginator("get_domain_name_access_associations")

Results in this error:

Traceback (most recent call last):
  File "/path/to/test.py", line 5, in <module>
    paginator = client.get_paginator("get_domain_name_access_associations")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/botocore/client.py", line 1151, in get_paginator
    if not self.can_paginate(operation_name):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/botocore/client.py", line 1222, in can_paginate
    actual_operation_name = self._PY_TO_OP_NAME[operation_name]
                            ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'get_domain_name_access_associations'

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.34.46

Environment details (OS name and version, etc.)

Ubuntu 24.04.2 LTS

Metadata

Metadata

Assignees

Labels

api-gatewayfeature-requestThis issue requests a feature.p3This is a minor priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions