Updates the state of an investigation.
Parameters:
-
graph_arn
(GraphArn)
–
The Amazon Resource Name (ARN) of the behavior graph.
-
investigation_id
(InvestigationId)
–
The investigation ID of the investigation report.
-
state
(State)
–
The current state of the investigation. An archived investigation indicates you have completed reviewing the investigation.
Raises:
Source code in docs_src/capo_detective/_services/detective.py
| def update_investigation_state(
self,
graph_arn: "capo_detective.types.graph_arn.GraphArn",
investigation_id: "capo_detective.types.investigation_id.InvestigationId",
state: "capo_detective.types.state.State",
*,
config_overrides: Optional[DetectiveClientConfig] = None,
) -> None:
"""<p>Updates the state of an investigation.</p>
Args:
graph_arn: <p>The Amazon Resource Name (ARN) of the behavior graph.</p>
investigation_id: <p>The investigation ID of the investigation report.</p>
state: <p>The current state of the investigation. An archived investigation indicates you have completed reviewing the investigation.</p>
Raises:
capo_detective.errors.access_denied_exception.AccessDeniedException: <p>The request issuer does not have permission to access this resource or perform this operation.</p>
capo_detective.errors.internal_server_exception.InternalServerException: <p>The request was valid but failed because of a problem with the service.</p>
capo_detective.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request refers to a nonexistent resource.</p>
capo_detective.errors.too_many_requests_exception.TooManyRequestsException: <p>The request cannot be completed because too many other requests are occurring at the same time.</p>
capo_detective.errors.validation_exception.ValidationException: <p>The request parameters are invalid.</p>
capo_detective.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_detective.types.update_investigation_state_request.UpdateInvestigationStateRequest]",
) -> OperationResponse[None]:
import capo_detective._operations.amazon_detective.update_investigation_state
output, http_response = (
capo_detective._operations.amazon_detective.update_investigation_state.update_investigation_state(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateInvestigationState")
)
input_: capo_detective.types.update_investigation_state_request.UpdateInvestigationStateRequest = {
"graph_arn": graph_arn,
"investigation_id": investigation_id,
"state": state,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|