Skip to content

update_resolver_type async

update_resolver_type(
    case_id: CaseId,
    resolver_type: ResolverType,
    *,
    config_overrides: Optional[AsyncSecurityIRClientConfig] = 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

>>> await client.update_resolver_type(case_id='8403556009', resolver_type='AWS')
Source code in docs_src/capo_security_ir/_services/async_security_ir.py
async 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[AsyncSecurityIRClientConfig] = 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

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

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

        (
            output,
            http_response,
        ) = await capo_security_ir._operations.security_incident_response.update_resolver_type.async_update_resolver_type(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output