Lists collaborations the caller owns, is active in, or has been invited to.
Parameters:
-
next_token
(Optional[PaginationToken], default:
None
)
–
The pagination token that's used to fetch the next set of results.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results that are returned for an API request call. The service chooses a default number if you don't set one. The service might return a `nextToken` even if the `maxResults` value has not been met.
-
member_status
(Optional[FilterableMemberStatus], default:
None
)
–
The caller's status in a collaboration.
Raises:
Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
| def list_collaborations(
self,
*,
config_overrides: Optional[CleanRoomsClientConfig] = None,
next_token: Optional[
"capo_cleanrooms.types.pagination_token.PaginationToken"
] = None,
max_results: Optional["capo_cleanrooms.types.max_results.MaxResults"] = None,
member_status: Optional[
"capo_cleanrooms.types.filterable_member_status.FilterableMemberStatus"
] = None,
) -> "capo_cleanrooms.types.list_collaborations_output.ListCollaborationsOutput":
"""<p>Lists collaborations the caller owns, is active in, or has been invited to.</p>
Args:
next_token: <p>The pagination token that's used to fetch the next set of results.</p>
max_results: <p>The maximum number of results that are returned for an API request call. The service chooses a default number if you don't set one. The service might return a `nextToken` even if the `maxResults` value has not been met.</p>
member_status: <p>The caller's status in a collaboration.</p>
Raises:
capo_cleanrooms.errors.access_denied_exception.AccessDeniedException: <p>Caller does not have sufficient access to perform this action.</p>
capo_cleanrooms.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
capo_cleanrooms.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
capo_cleanrooms.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
capo_cleanrooms.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cleanrooms.types.list_collaborations_input.ListCollaborationsInput]",
) -> OperationResponse[
"capo_cleanrooms.types.list_collaborations_output.ListCollaborationsOutput"
]:
import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.list_collaborations
output, http_response = (
capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.list_collaborations.list_collaborations(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListCollaborations")
)
input_: capo_cleanrooms.types.list_collaborations_input.ListCollaborationsInput = {}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
if member_status is not None:
input_["member_status"] = member_status
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|