Skip to content

list_collaboration_change_requests async

list_collaboration_change_requests(
    collaboration_identifier: CollaborationIdentifier,
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
    status: Optional[ChangeRequestStatus] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListCollaborationChangeRequestsOutput

Lists all change requests for a collaboration with pagination support. Returns change requests sorted by creation time.

Parameters:

  • collaboration_identifier (CollaborationIdentifier) –

    The identifier of the collaboration that the change request is made against.

  • status (Optional[ChangeRequestStatus], default: None ) –

    A filter to only return change requests with the specified status.

  • 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.

Raises:

Source code in docs_src/capo_cleanrooms/_services/async_clean_rooms.py
async def list_collaboration_change_requests(
    self,
    collaboration_identifier: "capo_cleanrooms.types.collaboration_identifier.CollaborationIdentifier",
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
    status: Optional[
        "capo_cleanrooms.types.change_request_status.ChangeRequestStatus"
    ] = None,
    next_token: Optional[
        "capo_cleanrooms.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional["capo_cleanrooms.types.max_results.MaxResults"] = None,
) -> "capo_cleanrooms.types.list_collaboration_change_requests_output.ListCollaborationChangeRequestsOutput":
    """<p>Lists all change requests for a collaboration with pagination support. Returns change requests sorted by creation time.</p>

    Args:
        collaboration_identifier: <p>The identifier of the collaboration that the change request is made against.</p>
        status: <p>A filter to only return change requests with the specified status.</p>
        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.</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.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cleanrooms.types.list_collaboration_change_requests_input.ListCollaborationChangeRequestsInput]",
    ) -> AsyncOperationResponse[
        "capo_cleanrooms.types.list_collaboration_change_requests_output.ListCollaborationChangeRequestsOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.list_collaboration_change_requests

        (
            output,
            http_response,
        ) = await capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.list_collaboration_change_requests.async_list_collaboration_change_requests(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListCollaborationChangeRequests")
    )
    input_: capo_cleanrooms.types.list_collaboration_change_requests_input.ListCollaborationChangeRequestsInput = {
        "collaboration_identifier": collaboration_identifier
    }
    if status is not None:
        input_["status"] = status
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output