Deletes multiple instrumentation configurations in a single request. Supports two mutually exclusive selection methods: - By scope: Delete all configurations matching a Service + Environment + InstrumentationType - By ARN list: Delete specific configurations by providing a list of resource ARNs
Parameters:
Raises:
Source code in docs_src/capo_application_signals/_services/async_application_signals.py
| async def batch_delete_instrumentation_configurations(
self,
deletion_target: "capo_application_signals.types.batch_delete_deletion_target.BatchDeleteDeletionTarget",
*,
config_overrides: Optional[AsyncApplicationSignalsClientConfig] = None,
) -> "capo_application_signals.types.batch_delete_instrumentation_configurations_response.BatchDeleteInstrumentationConfigurationsResponse":
"""Deletes multiple instrumentation configurations in a single request. Supports two mutually exclusive selection methods: - By scope: Delete all configurations matching a Service + Environment + InstrumentationType - By ARN list: Delete specific configurations by providing a list of resource ARNs
Args:
deletion_target: The deletion target - either bulk by scope or targeted by ARN list.
Raises:
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.batch_delete_instrumentation_configurations_request.BatchDeleteInstrumentationConfigurationsRequest]",
) -> AsyncOperationResponse[
"capo_application_signals.types.batch_delete_instrumentation_configurations_response.BatchDeleteInstrumentationConfigurationsResponse"
]:
import capo_application_signals._operations.application_signals.batch_delete_instrumentation_configurations
(
output,
http_response,
) = await capo_application_signals._operations.application_signals.batch_delete_instrumentation_configurations.async_batch_delete_instrumentation_configurations(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("BatchDeleteInstrumentationConfigurations"),
)
input_: capo_application_signals.types.batch_delete_instrumentation_configurations_request.BatchDeleteInstrumentationConfigurationsRequest = {
"deletion_target": deletion_target
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|