Skip to content

delete_instrumentation_configuration async

delete_instrumentation_configuration(
    instrumentation_type: InstrumentationType,
    service: str,
    environment: str,
    signal_type: DynamicInstrumentationSignalType,
    location_identifier: LocationIdentifier,
    *,
    config_overrides: Optional[AsyncApplicationSignalsClientConfig] = None,
) -> DeleteInstrumentationConfigurationResponse

Deletes the specified instrumentation configuration. SDKs remove the instrumentation during their next sync after the configuration is deleted or expires.

Parameters:

  • instrumentation_type (InstrumentationType) –

    Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to delete.

  • service (str) –

    Service name for the instrumentation configuration.

  • environment (str) –

    Environment name for the instrumentation configuration.

  • signal_type (DynamicInstrumentationSignalType) –

    Signal type for the instrumentation configuration.

  • location_identifier (LocationIdentifier) –

    Location identifier - either full code location or a pre-computed hash.

Raises:

Source code in docs_src/capo_application_signals/_services/async_application_signals.py
async def delete_instrumentation_configuration(
    self,
    instrumentation_type: "capo_application_signals.types.instrumentation_type.InstrumentationType",
    service: str,
    environment: str,
    signal_type: "capo_application_signals.types.dynamic_instrumentation_signal_type.DynamicInstrumentationSignalType",
    location_identifier: "capo_application_signals.types.location_identifier.LocationIdentifier",
    *,
    config_overrides: Optional[AsyncApplicationSignalsClientConfig] = None,
) -> "capo_application_signals.types.delete_instrumentation_configuration_response.DeleteInstrumentationConfigurationResponse":
    """<p>Deletes the specified instrumentation configuration. SDKs remove the instrumentation during their next sync after the configuration is deleted or expires.</p>

    Args:
        instrumentation_type: Type of instrumentation configuration (BREAKPOINT or PROBE). Required to identify the configuration to delete.
        service: Service name for the instrumentation configuration.
        environment: Environment name for the instrumentation configuration.
        signal_type: Signal type for the instrumentation configuration.
        location_identifier: Location identifier - either full code location or a pre-computed hash.

    Raises:
        capo_application_signals.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found.</p>
        capo_application_signals.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
        capo_application_signals.errors.validation_exception.ValidationException: <p>The resource is not valid.</p>
        capo_application_signals.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_application_signals.types.delete_instrumentation_configuration_request.DeleteInstrumentationConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_application_signals.types.delete_instrumentation_configuration_response.DeleteInstrumentationConfigurationResponse"
    ]:
        import capo_application_signals._operations.application_signals.delete_instrumentation_configuration

        (
            output,
            http_response,
        ) = await capo_application_signals._operations.application_signals.delete_instrumentation_configuration.async_delete_instrumentation_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteInstrumentationConfiguration")
    )
    input_: capo_application_signals.types.delete_instrumentation_configuration_request.DeleteInstrumentationConfigurationRequest = {
        "instrumentation_type": instrumentation_type,
        "service": service,
        "environment": environment,
        "signal_type": signal_type,
        "location_identifier": location_identifier,
    }

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