Deletes the specified resiliency group. Deletion is asynchronous: the resiliency group transitions through the deleting state before it reaches the deleted state. The response returns the resiliency group so you can observe its current state without a subsequent GetResiliencyGroup call.
Parameters:
Raises:
Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
| async def delete_resiliency_group(
self,
resiliency_group_id: "capo_direct_connect.types.resiliency_group_id.ResiliencyGroupId",
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
) -> "capo_direct_connect.types.delete_resiliency_group_result.DeleteResiliencyGroupResult":
"""<p>Deletes the specified resiliency group. Deletion is asynchronous: the resiliency group transitions through the <code>deleting</code> state before it reaches the <code>deleted</code> state. The response returns the resiliency group so you can observe its current state without a subsequent <a>GetResiliencyGroup</a> call.</p>
Args:
resiliency_group_id: <p>The ID of the resiliency group.</p>
Raises:
capo_direct_connect.errors.direct_connect_client_exception.DirectConnectClientException: <p>One or more parameters are not valid.</p>
capo_direct_connect.errors.direct_connect_server_exception.DirectConnectServerException: <p>A server-side error occurred.</p>
capo_direct_connect.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_direct_connect.types.delete_resiliency_group_request.DeleteResiliencyGroupRequest]",
) -> AsyncOperationResponse[
"capo_direct_connect.types.delete_resiliency_group_result.DeleteResiliencyGroupResult"
]:
import capo_direct_connect._operations.overture_service.delete_resiliency_group
(
output,
http_response,
) = await capo_direct_connect._operations.overture_service.delete_resiliency_group.async_delete_resiliency_group(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteResiliencyGroup")
)
input_: capo_direct_connect.types.delete_resiliency_group_request.DeleteResiliencyGroupRequest = {
"resiliency_group_id": resiliency_group_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|