async def iter_get_resource_share_associations(
self,
association_type: "capo_ram.types.resource_share_association_type.ResourceShareAssociationType",
*,
config_overrides: Optional[AsyncRAMClientConfig] = None,
resource_share_arns: Optional[
"capo_ram.types.resource_share_arn_list.ResourceShareArnList"
] = None,
resource_arn: Optional["capo_ram.types.string.String"] = None,
principal: Optional["capo_ram.types.string.String"] = None,
association_status: Optional[
"capo_ram.types.resource_share_association_status.ResourceShareAssociationStatus"
] = None,
next_token: Optional["capo_ram.types.string.String"] = None,
max_results: Optional["capo_ram.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_ram.types.get_resource_share_associations_response.GetResourceShareAssociationsResponse]":
_token = next_token
while True:
_response = await self.get_resource_share_associations(
association_type,
config_overrides=config_overrides,
resource_share_arns=resource_share_arns,
resource_arn=resource_arn,
principal=principal,
association_status=association_status,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break