async def iter_list_custom_domain_associations(
self,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
next_token: Optional[
"capo_redshift_serverless.types.pagination_token.PaginationToken"
] = None,
max_results: Optional[int] = None,
custom_domain_name: Optional[
"capo_redshift_serverless.types.custom_domain_name.CustomDomainName"
] = None,
custom_domain_certificate_arn: Optional[
"capo_redshift_serverless.types.custom_domain_certificate_arn_string.CustomDomainCertificateArnString"
] = None,
) -> "AsyncIterator[capo_redshift_serverless.types.association.Association]":
_token = next_token
while True:
_response = await self.list_custom_domain_associations(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
custom_domain_name=custom_domain_name,
custom_domain_certificate_arn=custom_domain_certificate_arn,
)
_page = _resolve_path(_response, ("associations",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break