Skip to content

update_control_panel async

update_control_panel(
    *,
    config_overrides: Optional[AsyncRoute53RecoveryControlConfigClientConfig] = None,
    control_panel_arn: Optional[__stringMin1Max256PatternAZaZ09] = None,
    control_panel_name: Optional[__stringMin1Max64PatternS] = None,
) -> UpdateControlPanelResponse

Updates a control panel. The only update you can make to a control panel is to change the name of the control panel.

Parameters:

Raises:

  • AccessDeniedException –

    403 response - You do not have sufficient access to perform this action.

  • ConflictException –

    409 response - ConflictException. You might be using a predefined variable.

  • InternalServerException –

    500 response - InternalServiceError. Temporary service error. Retry the request.

  • ResourceNotFoundException –

    404 response - MalformedQueryString. The query string contains a syntax error or resource not found.

  • ThrottlingException –

    429 response - LimitExceededException or TooManyRequestsException.

  • ValidationException –

    400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you might have used parameters together incorrectly.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_route53_recovery_control_config/_services/async_route53_recovery_control_config.py
async def update_control_panel(
    self,
    *,
    config_overrides: Optional[
        AsyncRoute53RecoveryControlConfigClientConfig
    ] = None,
    control_panel_arn: Optional[
        "capo_route53_recovery_control_config.types.__string_min1_max256_pattern_a_za_z09.__stringMin1Max256PatternAZaZ09"
    ] = None,
    control_panel_name: Optional[
        "capo_route53_recovery_control_config.types.__string_min1_max64_pattern_s.__stringMin1Max64PatternS"
    ] = None,
) -> "capo_route53_recovery_control_config.types.update_control_panel_response.UpdateControlPanelResponse":
    """<p>Updates a control panel. The only update you can make to a control panel is to change the name of the control panel.</p>

    Args:
        control_panel_arn: <p>The Amazon Resource Name (ARN) of the control panel.</p>
        control_panel_name: <p>The name of the control panel.</p>

    Raises:
        capo_route53_recovery_control_config.errors.access_denied_exception.AccessDeniedException: <p>403 response - You do not have sufficient access to perform this action.</p>
        capo_route53_recovery_control_config.errors.conflict_exception.ConflictException: <p>409 response - ConflictException. You might be using a predefined variable.</p>
        capo_route53_recovery_control_config.errors.internal_server_exception.InternalServerException: <p>500 response - InternalServiceError. Temporary service error. Retry the request.</p>
        capo_route53_recovery_control_config.errors.resource_not_found_exception.ResourceNotFoundException: <p>404 response - MalformedQueryString. The query string contains a syntax error or resource not found.</p>
        capo_route53_recovery_control_config.errors.throttling_exception.ThrottlingException: <p>429 response - LimitExceededException or TooManyRequestsException.</p>
        capo_route53_recovery_control_config.errors.validation_exception.ValidationException: <p>400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you might have used parameters together incorrectly.</p>
        capo_route53_recovery_control_config.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_route53_recovery_control_config.types.update_control_panel_request.UpdateControlPanelRequest]",
    ) -> AsyncOperationResponse[
        "capo_route53_recovery_control_config.types.update_control_panel_response.UpdateControlPanelResponse"
    ]:
        import capo_route53_recovery_control_config._operations.route53_recovery_control_config.update_control_panel

        (
            output,
            http_response,
        ) = await capo_route53_recovery_control_config._operations.route53_recovery_control_config.update_control_panel.async_update_control_panel(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateControlPanel")
    )
    input_: capo_route53_recovery_control_config.types.update_control_panel_request.UpdateControlPanelRequest = {}
    if control_panel_arn is not None:
        input_["control_panel_arn"] = control_panel_arn
    if control_panel_name is not None:
        input_["control_panel_name"] = control_panel_name

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