Takes a list of configurationId as input and starts an asynchronous deletion task to remove the configurationItems. Returns a unique deletion task identifier.
Parameters:
Raises:
Source code in docs_src/capo_application_discovery_service/_services/async_application_discovery_service.py
| async def start_batch_delete_configuration_task(
self,
configuration_type: "capo_application_discovery_service.types.deletion_configuration_item_type.DeletionConfigurationItemType",
configuration_ids: "capo_application_discovery_service.types.configuration_id_list.ConfigurationIdList",
*,
config_overrides: Optional[AsyncApplicationDiscoveryServiceClientConfig] = None,
) -> "capo_application_discovery_service.types.start_batch_delete_configuration_task_response.StartBatchDeleteConfigurationTaskResponse":
"""<p> Takes a list of configurationId as input and starts an asynchronous deletion task to remove the configurationItems. Returns a unique deletion task identifier. </p>
Args:
configuration_type: <p> The type of configuration item to delete. Supported types are: SERVER. </p>
configuration_ids: <p> The list of configuration IDs that will be deleted by the task. </p>
Raises:
capo_application_discovery_service.errors.authorization_error_exception.AuthorizationErrorException: <p>The user does not have permission to perform the action. Check the IAM policy associated with this user.</p>
capo_application_discovery_service.errors.home_region_not_set_exception.HomeRegionNotSetException: <p>The home Region is not set. Set the home Region to continue.</p>
capo_application_discovery_service.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters are not valid. Verify the parameters and try again.</p>
capo_application_discovery_service.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The value of one or more parameters are either invalid or out of range. Verify the parameter values and try again.</p>
capo_application_discovery_service.errors.limit_exceeded_exception.LimitExceededException: <p> The limit of 200 configuration IDs per request has been exceeded. </p>
capo_application_discovery_service.errors.operation_not_permitted_exception.OperationNotPermittedException: <p>This operation is not permitted.</p>
capo_application_discovery_service.errors.server_internal_error_exception.ServerInternalErrorException: <p>The server experienced an internal error. Try again.</p>
capo_application_discovery_service.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_application_discovery_service.types.start_batch_delete_configuration_task_request.StartBatchDeleteConfigurationTaskRequest]",
) -> AsyncOperationResponse[
"capo_application_discovery_service.types.start_batch_delete_configuration_task_response.StartBatchDeleteConfigurationTaskResponse"
]:
import capo_application_discovery_service._operations.aws_poseidon_service_v2015_11_01.start_batch_delete_configuration_task
(
output,
http_response,
) = await capo_application_discovery_service._operations.aws_poseidon_service_v2015_11_01.start_batch_delete_configuration_task.async_start_batch_delete_configuration_task(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StartBatchDeleteConfigurationTask")
)
input_: capo_application_discovery_service.types.start_batch_delete_configuration_task_request.StartBatchDeleteConfigurationTaskRequest = {
"configuration_type": configuration_type,
"configuration_ids": configuration_ids,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|