Deletes all SimSpace Weaver resources assigned to the given simulation.
Your simulation uses resources in other Amazon Web Services. This API operation doesn't delete resources in other Amazon Web Services.
Parameters:
Raises:
Source code in docs_src/capo_simspaceweaver/_services/async_sim_space_weaver.py
| async def delete_simulation(
self,
simulation: "capo_simspaceweaver.types.sim_space_weaver_resource_name.SimSpaceWeaverResourceName",
*,
config_overrides: Optional[AsyncSimSpaceWeaverClientConfig] = None,
) -> "capo_simspaceweaver.types.delete_simulation_output.DeleteSimulationOutput":
"""<p>Deletes all SimSpace Weaver resources assigned to the given simulation.</p> <note> <p>Your simulation uses resources in other Amazon Web Services. This API operation doesn't delete resources in other Amazon Web Services.</p> </note>
Args:
simulation: <p>The name of the simulation.</p>
Raises:
capo_simspaceweaver.errors.access_denied_exception.AccessDeniedException: <p/>
capo_simspaceweaver.errors.conflict_exception.ConflictException: <p/>
capo_simspaceweaver.errors.internal_server_exception.InternalServerException: <p/>
capo_simspaceweaver.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
capo_simspaceweaver.errors.validation_exception.ValidationException: <p/>
capo_simspaceweaver.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_simspaceweaver.types.delete_simulation_input.DeleteSimulationInput]",
) -> AsyncOperationResponse[
"capo_simspaceweaver.types.delete_simulation_output.DeleteSimulationOutput"
]:
import capo_simspaceweaver._operations.sim_space_weaver.delete_simulation
(
output,
http_response,
) = await capo_simspaceweaver._operations.sim_space_weaver.delete_simulation.async_delete_simulation(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteSimulation")
)
input_: capo_simspaceweaver.types.delete_simulation_input.DeleteSimulationInput = {
"simulation": simulation
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|