Skip to content

list_context_changes

list_context_changes(
    context_store_id: ContextStoreId,
    from_version_id: ConstrainedString,
    *,
    config_overrides: Optional[NetworkManagerClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListContextChangesResponse

Returns the context entries that were added to or removed from a context store after the specified version. The context store must be in the AVAILABLE state.

Parameters:

  • context_store_id (ContextStoreId) –

    The ID of the context store.

  • from_version_id (ConstrainedString) –

    The version to return changes from. Specify a version returned by ListContexts, GetContextVersion, or the ToVersionId of a previous ListContextChanges request. If the version is no longer available, the request fails, and you must call ListContexts to get the current context entries.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of results to return.

  • next_token (Optional[NextToken], default: None ) –

    The token for the next page of results.

Raises:

Source code in docs_src/capo_networkmanager/_services/network_manager.py
def list_context_changes(
    self,
    context_store_id: "capo_networkmanager.types.context_store_id.ContextStoreId",
    from_version_id: "capo_networkmanager.types.constrained_string.ConstrainedString",
    *,
    config_overrides: Optional[NetworkManagerClientConfig] = None,
    max_results: Optional[
        "capo_networkmanager.types.max_results.MaxResults"
    ] = None,
    next_token: Optional["capo_networkmanager.types.next_token.NextToken"] = None,
) -> "capo_networkmanager.types.list_context_changes_response.ListContextChangesResponse":
    """<p>Returns the context entries that were added to or removed from a context store after the specified version. The context store must be in the <code>AVAILABLE</code> state.</p>

    Args:
        context_store_id: <p>The ID of the context store.</p>
        from_version_id: <p>The version to return changes from. Specify a version returned by <code>ListContexts</code>, <code>GetContextVersion</code>, or the <code>ToVersionId</code> of a previous <code>ListContextChanges</code> request. If the version is no longer available, the request fails, and you must call <code>ListContexts</code> to get the current context entries.</p>
        max_results: <p>The maximum number of results to return.</p>
        next_token: <p>The token for the next page of results.</p>

    Raises:
        capo_networkmanager.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_networkmanager.errors.internal_server_exception.InternalServerException: <p>The request has failed due to an internal error.</p>
        capo_networkmanager.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be found.</p>
        capo_networkmanager.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_networkmanager.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints.</p>
        capo_networkmanager.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_networkmanager.types.list_context_changes_request.ListContextChangesRequest]",
    ) -> OperationResponse[
        "capo_networkmanager.types.list_context_changes_response.ListContextChangesResponse"
    ]:
        import capo_networkmanager._operations.network_manager.list_context_changes

        output, http_response = (
            capo_networkmanager._operations.network_manager.list_context_changes.list_context_changes(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListContextChanges")
    )
    input_: capo_networkmanager.types.list_context_changes_request.ListContextChangesRequest = {
        "context_store_id": context_store_id,
        "from_version_id": from_version_id,
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output