Skip to content

delete_launch_configuration_template async

delete_launch_configuration_template(
    launch_configuration_template_id: LaunchConfigurationTemplateID,
    *,
    config_overrides: Optional[AsyncmgnClientConfig] = None,
) -> DeleteLaunchConfigurationTemplateResponse

Deletes a single Launch Configuration Template by ID.

Parameters:

Raises:

Source code in docs_src/capo_mgn/_services/async_mgn.py
async def delete_launch_configuration_template(
    self,
    launch_configuration_template_id: "capo_mgn.types.launch_configuration_template_id.LaunchConfigurationTemplateID",
    *,
    config_overrides: Optional[AsyncmgnClientConfig] = None,
) -> "capo_mgn.types.delete_launch_configuration_template_response.DeleteLaunchConfigurationTemplateResponse":
    """<p>Deletes a single Launch Configuration Template by ID.</p>

    Args:
        launch_configuration_template_id: <p>ID of resource to be deleted.</p>

    Raises:
        capo_mgn.errors.conflict_exception.ConflictException: <p>The request could not be completed due to a conflict with the current state of the target resource.</p>
        capo_mgn.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found exception.</p>
        capo_mgn.errors.uninitialized_account_exception.UninitializedAccountException: <p>Uninitialized account exception.</p>
        capo_mgn.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_mgn.types.delete_launch_configuration_template_request.DeleteLaunchConfigurationTemplateRequest]",
    ) -> AsyncOperationResponse[
        "capo_mgn.types.delete_launch_configuration_template_response.DeleteLaunchConfigurationTemplateResponse"
    ]:
        import capo_mgn._operations.application_migration_service.delete_launch_configuration_template

        (
            output,
            http_response,
        ) = await capo_mgn._operations.application_migration_service.delete_launch_configuration_template.async_delete_launch_configuration_template(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteLaunchConfigurationTemplate")
    )
    input_: capo_mgn.types.delete_launch_configuration_template_request.DeleteLaunchConfigurationTemplateRequest = {
        "launch_configuration_template_id": launch_configuration_template_id
    }

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