Skip to content

update_resolver_type

update_resolver_type(
    case_id: CaseId,
    resolver_type: ResolverType,
    *,
    config_overrides: Optional[SecurityIRClientConfig] = None,
) -> UpdateResolverTypeResponse

Updates the resolver type for a case.

This is a one-way action and cannot be reversed.

Parameters:

  • case_id (CaseId) –

    Required element for UpdateResolverType to identify the case to update.

  • resolver_type (ResolverType) –

    Required element for UpdateResolverType to identify the new resolver.

Raises:

Examples:

Invoke UpdateResolverType

>>> client.update_resolver_type(case_id='8403556009', resolver_type='AWS')
Source code in docs_src/capo_security_ir/_services/security_ir.py
def update_resolver_type(
    self,
    case_id: "capo_security_ir.types.case_id.CaseId",
    resolver_type: "capo_security_ir.types.resolver_type.ResolverType",
    *,
    config_overrides: Optional[SecurityIRClientConfig] = None,
) -> "capo_security_ir.types.update_resolver_type_response.UpdateResolverTypeResponse":
    """<p>Updates the resolver type for a case.</p> <important> <p>This is a one-way action and cannot be reversed.</p> </important>

    Args:
        case_id: <p>Required element for UpdateResolverType to identify the case to update.</p>
        resolver_type: <p>Required element for UpdateResolverType to identify the new resolver.</p>

    Raises:
        capo_security_ir.errors.access_denied_exception.AccessDeniedException: <p/>
        capo_security_ir.errors.conflict_exception.ConflictException: <p/>
        capo_security_ir.errors.internal_server_exception.InternalServerException: <p/>
        capo_security_ir.errors.invalid_token_exception.InvalidTokenException: <p/>
        capo_security_ir.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
        capo_security_ir.errors.security_incident_response_not_active_exception.SecurityIncidentResponseNotActiveException: <p/>
        capo_security_ir.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p/>
        capo_security_ir.errors.throttling_exception.ThrottlingException: <p/>
        capo_security_ir.errors.validation_exception.ValidationException: <p/>
        capo_security_ir.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Invoke UpdateResolverType

        >>> client.update_resolver_type(case_id='8403556009', resolver_type='AWS')
    """

    def _handler(
        req: "OperationRequest[capo_security_ir.types.update_resolver_type_request.UpdateResolverTypeRequest]",
    ) -> OperationResponse[
        "capo_security_ir.types.update_resolver_type_response.UpdateResolverTypeResponse"
    ]:
        import capo_security_ir._operations.security_incident_response.update_resolver_type

        output, http_response = (
            capo_security_ir._operations.security_incident_response.update_resolver_type.update_resolver_type(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateResolverType")
    )
    input_: capo_security_ir.types.update_resolver_type_request.UpdateResolverTypeRequest = {
        "case_id": case_id,
        "resolver_type": resolver_type,
    }

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