Updates a cell to replace the list of nested cells with a new list of nested cells.
Parameters:
-
cell_name
(__string)
–
-
cells
(Optional[__listOf__string], default:
None
)
–
A list of cell Amazon Resource Names (ARNs), which completely replaces the previous list.
Raises:
Source code in docs_src/capo_route53_recovery_readiness/_services/async_route53_recovery_readiness.py
| async def update_cell(
self,
cell_name: "capo_route53_recovery_readiness.types.__string.__string",
*,
config_overrides: Optional[AsyncRoute53RecoveryReadinessClientConfig] = None,
cells: Optional[
"capo_route53_recovery_readiness.types.__list_of__string.__listOf__string"
] = None,
) -> (
"capo_route53_recovery_readiness.types.update_cell_response.UpdateCellResponse"
):
"""<p>Updates a cell to replace the list of nested cells with a new list of nested cells.</p>
Args:
cell_name: <p>The name of the cell.</p>
cells: <p>A list of cell Amazon Resource Names (ARNs), which completely replaces the previous list.</p>
Raises:
capo_route53_recovery_readiness.errors.access_denied_exception.AccessDeniedException: User does not have sufficient access to perform this action.
capo_route53_recovery_readiness.errors.internal_server_exception.InternalServerException: An unexpected error occurred.
capo_route53_recovery_readiness.errors.resource_not_found_exception.ResourceNotFoundException: The requested resource does not exist.
capo_route53_recovery_readiness.errors.throttling_exception.ThrottlingException: Request was denied due to request throttling.
capo_route53_recovery_readiness.errors.validation_exception.ValidationException: The input fails to satisfy the constraints specified by an AWS service.
capo_route53_recovery_readiness.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_route53_recovery_readiness.types.update_cell_request.UpdateCellRequest]",
) -> AsyncOperationResponse[
"capo_route53_recovery_readiness.types.update_cell_response.UpdateCellResponse"
]:
import capo_route53_recovery_readiness._operations.route53_recovery_readiness.update_cell
(
output,
http_response,
) = await capo_route53_recovery_readiness._operations.route53_recovery_readiness.update_cell.async_update_cell(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateCell")
)
input_: capo_route53_recovery_readiness.types.update_cell_request.UpdateCellRequest = {
"cell_name": cell_name
}
if cells is not None:
input_["cells"] = cells
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|